|
@@ -96,6 +96,16 @@
|
|
|
@click="handleAdd"
|
|
|
>新增</el-button>
|
|
|
</el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ type="warning"
|
|
|
+ plain
|
|
|
+ icon="el-icon-download"
|
|
|
+ size="mini"
|
|
|
+ @click="handleExport"
|
|
|
+ >老人导出
|
|
|
+ </el-button>
|
|
|
+ </el-col>
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleImport(true)" v-if="level===4"
|
|
@@ -1225,6 +1235,9 @@
|
|
|
this.form.xzqh = this.form.xzqhCode
|
|
|
? JSON.stringify(this.form.xzqhCode.split(","))
|
|
|
: [];
|
|
|
+ this.form.xjdxzqh = this.form.xjdxzqhCode
|
|
|
+ ? JSON.stringify(this.form.xjdxzqhCode.split(","))
|
|
|
+ : [];
|
|
|
this.getKhyh();
|
|
|
/****** sks 需要改动的地方 start ******/
|
|
|
// this.copyForm=this.deepCopy(response.data)
|
|
@@ -1319,6 +1332,8 @@
|
|
|
if (valid) {
|
|
|
this.submitFormLoading = true;
|
|
|
let xzqh = "";
|
|
|
+ let xjdxzqh = "";
|
|
|
+ let qur = {};
|
|
|
if (this.form.xzqh !== null) {
|
|
|
if (Array.isArray(this.form.xzqh)) {
|
|
|
xzqh = this.form.xzqh[this.form.xzqh.length - 1];
|
|
@@ -1327,15 +1342,28 @@
|
|
|
xzqh = data[data.length - 1];
|
|
|
}
|
|
|
}
|
|
|
+ if (this.form.xjdxzqh !== null) {
|
|
|
+ if (Array.isArray(this.form.xjdxzqh)) {
|
|
|
+ xjdxzqh = this.form.xjdxzqh[this.form.xjdxzqh.length - 1];
|
|
|
+ } else {
|
|
|
+ let data = JSON.parse(this.form.xjdxzqh);
|
|
|
+ xjdxzqh = data[data.length - 1];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ qur = {
|
|
|
+ ...this.form,
|
|
|
+ xzqh: xzqh,
|
|
|
+ xjdxzqh: xjdxzqh,
|
|
|
+ };
|
|
|
if (this.form.id != null) {
|
|
|
/****** sks 需要改动的地方 start ******/
|
|
|
- updateGljtLr({...this.form,xzqh:xzqh}).then(response => {
|
|
|
+ updateGljtLr(qur).then(response => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|
|
|
}).finally(() => this.submitFormLoading = false);
|
|
|
} else {
|
|
|
- addGljtLr({...this.form,xzqh:xzqh}).then(response => {
|
|
|
+ addGljtLr(qur).then(response => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|
|
@@ -1405,7 +1433,7 @@
|
|
|
deptL = this.user.userData.dept.locationCode;
|
|
|
}
|
|
|
const sss1 = {
|
|
|
- tab: {tab: 'jtmd', qh: deptL},
|
|
|
+ tab: {tab: 'jtmdn', qh: deptL},
|
|
|
sys: {dpt: '高龄津贴老人名册(' + this.user.userData.dept.deptName + ')', dt: Date.now()},
|
|
|
tj: tj
|
|
|
}
|