Commit 95fc1f87 by 前端

结清按钮功能提交

1 parent 2e8835e7
......@@ -1695,7 +1695,7 @@ export default {
},
// 获取特约门店数据
getStoreList() {
getStoreList(flag) {
let _this = this;
_this.loading = true;
getOrgTree({ hasUserLeaf: true }).then((res) => {
......@@ -1703,6 +1703,19 @@ export default {
_this.loading = false;
if (code == 200) {
this.filterTextData = data;
if (flag == 'settle') {
console.log('this.filterTextData', this.filterTextData);
if (this.filterTextData.length == 1) {//如果只有一个组织,则查找下面带“结清”得子组织
let settleObj = this.filterTextData[0].children[0].children.find(item => item.label.indexOf('结清') > -1);
console.log('settleObj', settleObj);
if (settleObj) {
if (settleObj.origin.type == 'u') {
this.$set(this.snForm, "organizationName", settleObj.label);
this.snForm.organizationId = settleObj.id;
}
}
}
}
}
});
},
......@@ -2246,7 +2259,10 @@ export default {
},
changeSettleFlag() {
console.log('1111');
console.log('snForm.settleFlag', this.snForm.settleFlag);
if (this.snForm.settleFlag == 1) {
this.getStoreList('settle')
}
}
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!