Browse Source

添加原始记录编号变化监听并判重

master
李磊 3 years ago
parent
commit
7cfb0d4173
  1. 5
      src/views/user/user.vue
  2. 16
      src/views/ysjl/3000/common/index.vue

5
src/views/user/user.vue

@ -151,7 +151,7 @@
:on-remove="handleRemove" :on-remove="handleRemove"
:file-list="fileList" :file-list="fileList"
:limit="1" :limit="1"
action="123" action=""
list-type="picture" list-type="picture"
> >
<el-button size="small" type="primary"> <el-button size="small" type="primary">
@ -363,8 +363,7 @@ export default {
}).then((data) => { }).then((data) => {
this.tempUser.signImg = data this.tempUser.signImg = data
this.fileList = JSON.parse(data) this.fileList = JSON.parse(data)
this.fileList[0].url = this.fileList[0].url = process.env.VUE_APP_IMG_URL + 'signImage/' + this.fileList[0].name
process.env.VUE_APP_IMG_URL + 'signImage/' + this.fileList[0].name
}) })
return true return true
}, },

16
src/views/ysjl/3000/common/index.vue

@ -890,6 +890,22 @@ export default {
tree: [] tree: []
} }
}, },
watch: {
jlbh4: function() {
this.ysjlService
.judgeRepeat(this.jlbh1 + this.jlbh2 + this.jlbh3 + '-' + this.jlbh4, this.ysjl.id)
.then((data) => {
this.isRepeat = data
})
},
'ysjl.jilubianhao': function() {
this.ysjlService
.judgeRepeat(this.ysjl.jilubianhao, this.ysjl.id)
.then((data) => {
this.isRepeat = data
})
}
},
created() { created() {
if (this.state === 'create') { if (this.state === 'create') {
this.initYsjl() this.initYsjl()

Loading…
Cancel
Save