|
@@ -74,7 +74,7 @@
|
|
|
<el-form-item label="费用名称:" prop="priceName" label-width="160px">
|
|
|
<!-- <el-input placeholder="费用名称" v-model="DecreasePaymentsData.priceName"></el-input> -->
|
|
|
<el-autocomplete style="width: 100%;" class="inline-input"
|
|
|
- v-model="DecreasePaymentsData.priceName" :fetch-suggestions="querySearch"
|
|
|
+ v-model="DecreasePaymentsData.priceName" @input="priceNameinput" :fetch-suggestions="querySearch"
|
|
|
placeholder="请输入内容" @select="priceNameSelect"></el-autocomplete>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
@@ -364,6 +364,7 @@ export default {
|
|
|
syhvalue: [],
|
|
|
syhoptions:[],
|
|
|
syhIdentification:false,
|
|
|
+ syhvalues:'',
|
|
|
}
|
|
|
},
|
|
|
watch:{
|
|
@@ -812,10 +813,19 @@ export default {
|
|
|
handleCheckedDatesChange(val){
|
|
|
console.log(val);
|
|
|
},
|
|
|
+ priceNameinput(val){
|
|
|
+ if((this.DiIdSelect ? this.DiIdSelect : this.DiId)==2590){
|
|
|
+ if (!this.DecreasePaymentsData.priceName.includes(this.syhvalues)) {
|
|
|
+ this.DecreasePaymentsData.priceName=this.syhvalues+'-';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
syhclick(){
|
|
|
+ this.DecreasePaymentsData.priceName='';
|
|
|
for (let i = 0; i < this.syhvalue.length; i++) {
|
|
|
this.DecreasePaymentsData.priceName += this.syhvalue[i] + '-';
|
|
|
}
|
|
|
+ this.syhvalues=this.DecreasePaymentsData.priceName.substring(0, this.DecreasePaymentsData.priceName.length - 1);
|
|
|
this.suppliesVisible=false;
|
|
|
},
|
|
|
xuanzebtn(){
|