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