Browse Source

fix:[麻精药表单]申请单

lkf
15881625488@163.com 2 months ago
parent
commit
c19b40ec26
1 changed files with 14 additions and 9 deletions
  1. +14
    -9
      src/views/business/comps/template/comps/gsp/MJYLQSQD.vue

+ 14
- 9
src/views/business/comps/template/comps/gsp/MJYLQSQD.vue View File

@ -224,14 +224,15 @@ export default {
} }
}, },
onSelectBlur(val) { onSelectBlur(val) {
if (val.key == 'sywzmc' && !val.type != 'cancel') {
if (val.key == 'sywzmc' && ((!this.formData.sywzmc||this.formData.sywzmc=='') || val.type == 'save')) {
this.filterGyjl(val, true) this.filterGyjl(val, true)
} }
if (val.key == 'gyjl' && !val.type != 'cancel') {
if (val.key == 'gyjl' && ((!this.formData.gyjl||this.formData.gyjl=='') || val.type == 'save')) {
this.filterGynd(val, true) this.filterGynd(val, true)
} }
}, },
filterGyjl(val, reset) { filterGyjl(val, reset) {
let that = this
let tmp = [] let tmp = []
_.forEach(_.filter(this.gyjlOptionsOld, function (o) { _.forEach(_.filter(this.gyjlOptionsOld, function (o) {
if (o.remark && o.remark != '') { if (o.remark && o.remark != '') {
@ -248,10 +249,12 @@ export default {
this.gyjlOptions = tmp this.gyjlOptions = tmp
if (reset) { if (reset) {
this.gyndOptions = [] this.gyndOptions = []
this.$refs.baseInfoRef.batchUpdateFormData({
gyjl: ' ',
xynd: ' ',
});
setTimeout(() => {
that.$refs.baseInfoRef.batchUpdateFormData({
gyjl: '',
xynd: '',
});
}, 10)
} }
}, },
filterGynd(val, reset) { filterGynd(val, reset) {
@ -270,9 +273,11 @@ export default {
}) })
this.gyndOptions = tmp this.gyndOptions = tmp
if (reset) { if (reset) {
this.$refs.baseInfoRef.batchUpdateFormData({
xynd: ' ',
});
setTimeout(() => {
that.$refs.baseInfoRef.batchUpdateFormData({
xynd: '',
});
}, 10)
} }
}, },
// //

Loading…
Cancel
Save