Commit 65bc2c3b authored by wangdanlei's avatar wangdanlei

调漆bug修改

parent 7ea9fcbc
......@@ -12,8 +12,8 @@
@change="changeEvent"
>
<el-option
v-for="item in options"
:key="item.value"
v-for="(item,i) in options"
:key="i"
:label="item.label"
:value="item.value"
:disabled="item.disabled"
......@@ -75,7 +75,8 @@ export default {
time: null,
typeEnum: {
AssignCardPaint: 'ShellacCardPaint',
AssignCardLacquer: 'ShellacCardLacquer'
AssignCardLacquer: 'ShellacCardLacquer',
AssignCardItem: 'ShellacCardLacquer'
},
subTypeName: ''
}
......@@ -119,7 +120,7 @@ export default {
this.com = this.findByNameVnode(this, 'DeeAsForm')
this.getSubTypeName()
if (this.itemObj.attrKey === 'certificateNo') {
//
this.getCertificateNo('', 'certificateNo')
} else {
if (this.basicData.setAttrs) {
Object.keys(this.basicData.setAttrs).forEach(key => {
......@@ -494,6 +495,9 @@ export default {
},
remoteMethod(query) {
if (query && query.length >= 2) {
if (this.time) {
this.time = null
}
this.time = setTimeout(() => {
this.loading = true
if (this.itemObj.attrKey === 'certificateNo' || this.itemObj.attrKey === 'certificateNum') {
......@@ -501,7 +505,7 @@ export default {
} else {
this.getModelNo(query)
}
}, 200)
}, 500)
}
},
getModelNo(query) {
......
......@@ -202,7 +202,12 @@ export default {
}
},
selectionChange(val) {
this.setAttrs.assignCardDetails = val
this.setAttrs.assignCardDetails = val.map(item => {
return {
...item,
target: item
}
})
},
handleClose() {
this.drawer = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment