|
@ -1011,12 +1011,10 @@ export default { |
|
|
created() { |
|
|
created() { |
|
|
if (this.state === 'create') { |
|
|
if (this.state === 'create') { |
|
|
this.initYsjl() |
|
|
this.initYsjl() |
|
|
this.getJyxm(1) |
|
|
|
|
|
// 查询最大记录编号 |
|
|
// 查询最大记录编号 |
|
|
this.getMaxBh() |
|
|
this.getMaxBh() |
|
|
} else { |
|
|
} else { |
|
|
this.getYsjl(this.$route.query.id) |
|
|
this.getYsjl(this.$route.query.id) |
|
|
this.getJyxm(1) |
|
|
|
|
|
} |
|
|
} |
|
|
this.getDepartment() |
|
|
this.getDepartment() |
|
|
}, |
|
|
}, |
|
@ -1094,6 +1092,7 @@ export default { |
|
|
}).then((data) => { |
|
|
}).then((data) => { |
|
|
this.ysjl = data.ysjl |
|
|
this.ysjl = data.ysjl |
|
|
this.departmentId = this.ysjl.departmentId |
|
|
this.departmentId = this.ysjl.departmentId |
|
|
|
|
|
this.getJyxm(1) |
|
|
this.param = |
|
|
this.param = |
|
|
data.param !== null && data.param !== undefined ? data.param : {} |
|
|
data.param !== null && data.param !== undefined ? data.param : {} |
|
|
this.ysjl.jianyanjieshuriqi = this.formatter.dateFormat('YYYY-MM-dd') |
|
|
this.ysjl.jianyanjieshuriqi = this.formatter.dateFormat('YYYY-MM-dd') |
|
@ -1129,6 +1128,7 @@ export default { |
|
|
}).then((data) => { |
|
|
}).then((data) => { |
|
|
this.ysjl = data |
|
|
this.ysjl = data |
|
|
this.departmentId = this.ysjl.departmentId |
|
|
this.departmentId = this.ysjl.departmentId |
|
|
|
|
|
this.getJyxm(1) |
|
|
if ( |
|
|
if ( |
|
|
this.ysjl.jianyanrenyuan !== null && |
|
|
this.ysjl.jianyanrenyuan !== null && |
|
|
this.ysjl.jianyanrenyuan.length > 0 |
|
|
this.ysjl.jianyanrenyuan.length > 0 |
|
@ -1165,10 +1165,15 @@ export default { |
|
|
getJyxm(sort) { |
|
|
getJyxm(sort) { |
|
|
if (this.$route.query.state === 'update') { |
|
|
if (this.$route.query.state === 'update') { |
|
|
this.jyxmService |
|
|
this.jyxmService |
|
|
.getJdCyJyxm(this.ysjlId, this.$route.query.templateId, sort) |
|
|
.getJdCyJyxm(this.ysjlId, this.$route.query.templateId, sort, 0) |
|
|
|
|
|
.then((data) => { |
|
|
|
|
|
this.bgfyData = data |
|
|
|
|
|
this.tableJs.getData(this.cols, this.rows, this.bgfyData) |
|
|
|
|
|
}) |
|
|
|
|
|
this.jyxmService |
|
|
|
|
|
.getJdCyJyxm(this.ysjlId, this.ysjl.jybgTemplateId, sort, 1) |
|
|
.then((data) => { |
|
|
.then((data) => { |
|
|
this.sybjSData = data |
|
|
this.jybgData = data |
|
|
this.tableJs.getData(this.cols, undefined, this.sybjSData) |
|
|
|
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
this.jyxmService |
|
|
this.jyxmService |
|
@ -1177,9 +1182,16 @@ export default { |
|
|
data.forEach((row) => { |
|
|
data.forEach((row) => { |
|
|
row.dicJyxmId = row.id |
|
|
row.dicJyxmId = row.id |
|
|
}) |
|
|
}) |
|
|
|
|
|
this.bgfyData = data |
|
|
this.sybjSData = data |
|
|
this.tableJs.getData(this.cols, this.rows, this.bgfyData) |
|
|
this.tableJs.getData(this.cols, undefined, this.sybjSData) |
|
|
}) |
|
|
|
|
|
this.jyxmService |
|
|
|
|
|
.getCyJyxm(this.ysjl.jybgTemplateId, sort) |
|
|
|
|
|
.then((data) => { |
|
|
|
|
|
data.forEach((row) => { |
|
|
|
|
|
row.dicJyxmId = row.id |
|
|
|
|
|
}) |
|
|
|
|
|
this.jybgData = data |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|