Commit 65bc2c3b authored by wangdanlei's avatar wangdanlei

调漆bug修改

parent 7ea9fcbc
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
@change="changeEvent" @change="changeEvent"
> >
<el-option <el-option
v-for="item in options" v-for="(item,i) in options"
:key="item.value" :key="i"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
:disabled="item.disabled" :disabled="item.disabled"
...@@ -75,7 +75,8 @@ export default { ...@@ -75,7 +75,8 @@ export default {
time: null, time: null,
typeEnum: { typeEnum: {
AssignCardPaint: 'ShellacCardPaint', AssignCardPaint: 'ShellacCardPaint',
AssignCardLacquer: 'ShellacCardLacquer' AssignCardLacquer: 'ShellacCardLacquer',
AssignCardItem: 'ShellacCardLacquer'
}, },
subTypeName: '' subTypeName: ''
} }
...@@ -119,7 +120,7 @@ export default { ...@@ -119,7 +120,7 @@ export default {
this.com = this.findByNameVnode(this, 'DeeAsForm') this.com = this.findByNameVnode(this, 'DeeAsForm')
this.getSubTypeName() this.getSubTypeName()
if (this.itemObj.attrKey === 'certificateNo') { if (this.itemObj.attrKey === 'certificateNo') {
// this.getCertificateNo('', 'certificateNo')
} else { } else {
if (this.basicData.setAttrs) { if (this.basicData.setAttrs) {
Object.keys(this.basicData.setAttrs).forEach(key => { Object.keys(this.basicData.setAttrs).forEach(key => {
...@@ -494,6 +495,9 @@ export default { ...@@ -494,6 +495,9 @@ export default {
}, },
remoteMethod(query) { remoteMethod(query) {
if (query && query.length >= 2) { if (query && query.length >= 2) {
if (this.time) {
this.time = null
}
this.time = setTimeout(() => { this.time = setTimeout(() => {
this.loading = true this.loading = true
if (this.itemObj.attrKey === 'certificateNo' || this.itemObj.attrKey === 'certificateNum') { if (this.itemObj.attrKey === 'certificateNo' || this.itemObj.attrKey === 'certificateNum') {
...@@ -501,7 +505,7 @@ export default { ...@@ -501,7 +505,7 @@ export default {
} else { } else {
this.getModelNo(query) this.getModelNo(query)
} }
}, 200) }, 500)
} }
}, },
getModelNo(query) { getModelNo(query) {
......
...@@ -202,7 +202,12 @@ export default { ...@@ -202,7 +202,12 @@ export default {
} }
}, },
selectionChange(val) { selectionChange(val) {
this.setAttrs.assignCardDetails = val this.setAttrs.assignCardDetails = val.map(item => {
return {
...item,
target: item
}
})
}, },
handleClose() { handleClose() {
this.drawer = false 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