|
@@ -751,18 +751,20 @@
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="合同编号" :label-width="formLabelWidth">
|
|
|
- <ws-select
|
|
|
+ <el-select
|
|
|
v-model="aduitlist.contractNo"
|
|
|
placeholder="请选择合同编号"
|
|
|
class="deal"
|
|
|
+ filterable
|
|
|
+ :filter-method="dataFilter"
|
|
|
>
|
|
|
- <ws-option
|
|
|
- v-for="item in contractNolist"
|
|
|
+ <el-option
|
|
|
+ v-for="item in options"
|
|
|
:key="item.constKey"
|
|
|
:label="item.contractNo"
|
|
|
:value="item.contractNo"
|
|
|
/>
|
|
|
- </ws-select>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
@@ -1036,7 +1038,8 @@ export default {
|
|
|
transactionRecordList: {},
|
|
|
pcFlag: 1,
|
|
|
invoiceList: [],
|
|
|
- contractNolist: [],
|
|
|
+ contractNoList: [],
|
|
|
+ options:[],
|
|
|
pricechange: [],
|
|
|
searchTypeList: [
|
|
|
{ value: '待审核', type: 1 },
|
|
@@ -1124,6 +1127,24 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ dataFilter(val) {
|
|
|
+ // console.log(val,"名")
|
|
|
+ this.aduitlist.contractNo = val
|
|
|
+ if (val) {
|
|
|
+ //val存在
|
|
|
+ this.options = this.contractNoList.filter(item => {
|
|
|
+ if (
|
|
|
+ !!~item.contractNo.indexOf(val) ||
|
|
|
+ !!~item.contractNo.toUpperCase().indexOf(val.toUpperCase())
|
|
|
+ ) {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ //val为空时,还原数组
|
|
|
+ this.options =this.contractNoList
|
|
|
+ }
|
|
|
+ },
|
|
|
//完成
|
|
|
handle(item) {
|
|
|
this.$confirm(`状态修改为已完成后不可再进行交易操作,是否确定修改?`, {
|
|
@@ -1689,6 +1710,7 @@ export default {
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
this.contractNolist = response
|
|
|
+ this.options=response
|
|
|
})
|
|
|
},
|
|
|
Changepricerecord(item) {
|