|
|
@ -374,7 +374,6 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
initYsjl() { |
|
|
|
const tempTime = new Date() |
|
|
|
this.api({ |
|
|
|
url: '/ysjl/initYsjl', |
|
|
|
method: 'post', |
|
|
@ -392,7 +391,7 @@ export default { |
|
|
|
this.param = (data.param !== null && data.param !== undefined) ? data.param : {} |
|
|
|
this.ysjl.jilubianhao = this.jilubianhao |
|
|
|
this.ysjl.baogaobianhao = null // 避免从设备中取值导致信息错误 |
|
|
|
this.ysjl.bianzhiriqi = tempTime.getFullYear() + '-' + (tempTime.getMonth() + 1) + '-' + tempTime.getDate() |
|
|
|
this.ysjl.bianzhiriqi = this.formatter.dateFormat('YYYY-MM-dd') |
|
|
|
this.ysjl.jianyanjielun = '合格' |
|
|
|
this.ysjl.jigouhezhunzhenghao = process.env.VUE_APP_HZZBH |
|
|
|
this.ysjl.beizhu = '/' |
|
|
@ -407,13 +406,13 @@ export default { |
|
|
|
}, |
|
|
|
getYsjl(id) { |
|
|
|
this.api({ |
|
|
|
url: '/ysjl/getYsjlById', |
|
|
|
url: '/ysjl', |
|
|
|
method: 'get', |
|
|
|
params: { |
|
|
|
ysjlId: id |
|
|
|
} |
|
|
|
}).then(data => { |
|
|
|
this.ysjl = data.ysjl |
|
|
|
this.ysjl = data |
|
|
|
if (this.ysjl.jianyanrenyuan !== null && this.ysjl.jianyanrenyuan.length > 0) { |
|
|
|
this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan) |
|
|
|
} |
|
|
@ -518,7 +517,7 @@ export default { |
|
|
|
let type = '' |
|
|
|
this.ysjl.bglx = 1 |
|
|
|
this.ysjl.cjState = 'ysjl' |
|
|
|
this.ysjl.zfState = '0' |
|
|
|
this.ysjl.zfState = 0 |
|
|
|
this.ysjl.jianyanxiangmu = 'sysy' |
|
|
|
this.ysjl.jlprintState = 0 |
|
|
|
if (operation === 'add') { |
|
|
@ -556,8 +555,10 @@ export default { |
|
|
|
data: { |
|
|
|
ysjl: this.ysjl, |
|
|
|
param: this.param, |
|
|
|
jyxm: jyxm, |
|
|
|
bgjyxm: jyxm, |
|
|
|
cyJyxm: { |
|
|
|
jyxm: jyxm, |
|
|
|
bgjyxm: jyxm |
|
|
|
}, |
|
|
|
flag: operation |
|
|
|
} |
|
|
|
}).then(data => { |
|
|
@ -567,8 +568,6 @@ export default { |
|
|
|
this.$message({ message: '保存成功, 请前往待办记录中查看。', type: 'success' }) |
|
|
|
this.ysjl.id = data |
|
|
|
this.param.ysjlId = data |
|
|
|
// 修改16版任务状态 |
|
|
|
this.common.updStateByNew(this.ysjl.renwuId, '2', false) |
|
|
|
// 刷新路由网址 |
|
|
|
this.$store.dispatch('delCurrentViews', { |
|
|
|
view: this.$route, |
|
|
|