b2f407c6 by weimo934

feat(fg,hb):分割合并

1 parent e738fd2d
......@@ -530,7 +530,7 @@
props: {},
data() {
return {
tabName:'zd',
tabName: 'zd',
isopenXz: false,
centerDialogVisible: false,
selectIndex: 0,// 当前选中序号
......@@ -601,7 +601,7 @@
value: "Z",
}
],
Data: {
checkedData: {
xzqbsm: "",
djqbsm: "",
djzqbsm: "",
......@@ -646,11 +646,11 @@
},
getJbxx(id) {
getQjZdjbxxDetailById(id).then(res => {
this.Data = res.result
this.checkedData = res.result
// 用户bsm暂时传空
this.Data.userbsm = ''
this.checkedData.userbsm = ''
// fwlist 暂时传空
this.Data.fwlist = [{zdbsm: '', ztype: ''}]
this.checkedData.fwlist = [{zdbsm: '', ztype: ''}]
})
},
getzdtzm() {
......@@ -669,8 +669,10 @@
changeXzq(id, index) {
this.djq = [];
this.djzq = [];
if (index != undefined) {
this.fghData.newZdlist[index].djqbsm = ''
this.fghData.newZdlist[index].djzqbsm = ''
}
getListByXzqbsm(id)
.then((res) => {
if (res.result == null) {
......@@ -684,10 +686,11 @@
},
changeDjq(item, index) {
this.djzq = [];
if (index != undefined) {
this.fghData.newZdlist[index].djzqbsm = ''
}
if (item == null) {
} else {
console.log(item);
getListByPbsm(item)
.then((res) => {
if (res.result == null) {
......@@ -716,7 +719,7 @@
}
]
});
this.fghData.newZdlist[this.fghData.newZdlist.length - 1] = JSON.parse(JSON.stringify(this.Data));
this.fghData.newZdlist[this.fghData.newZdlist.length - 1] = JSON.parse(JSON.stringify(this.checkedData));
},
delRow(index) {
......@@ -745,7 +748,7 @@
},
deep: true
},
Data: {
checkedData: {
handler: function (item) {
this.changeXzq(item.xzqbsm)
this.changeDjq(item.djqbsm)
......