|
@@ -749,7 +749,6 @@ export default {
|
|
currentPage: 1, // 当前页码
|
|
currentPage: 1, // 当前页码
|
|
pageSize: 10, // 每页数量
|
|
pageSize: 10, // 每页数量
|
|
listTotal: 0, // 列表总数
|
|
listTotal: 0, // 列表总数
|
|
-
|
|
|
|
cusIndex: 0,
|
|
cusIndex: 0,
|
|
radio: "",
|
|
radio: "",
|
|
pop: "",
|
|
pop: "",
|
|
@@ -879,13 +878,15 @@ export default {
|
|
this.getDictList();
|
|
this.getDictList();
|
|
this.getWalletList();
|
|
this.getWalletList();
|
|
this.getWarehouseList();
|
|
this.getWarehouseList();
|
|
- this.getPolicyList();
|
|
|
|
|
|
+
|
|
this.getTypeList();
|
|
this.getTypeList();
|
|
if (this.listItem) {
|
|
if (this.listItem) {
|
|
this.getDetail();
|
|
this.getDetail();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ beforeUpdate() {
|
|
|
|
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
// 返回列表
|
|
// 返回列表
|
|
goBack() {
|
|
goBack() {
|
|
@@ -973,6 +974,7 @@ export default {
|
|
},
|
|
},
|
|
handleShow() {
|
|
handleShow() {
|
|
this.isShowDialog = true;
|
|
this.isShowDialog = true;
|
|
|
|
+ this.getPolicyList()
|
|
},
|
|
},
|
|
// 获取钱包列表
|
|
// 获取钱包列表
|
|
getWalletList() {
|
|
getWalletList() {
|
|
@@ -1160,12 +1162,15 @@ export default {
|
|
this.getConditionList(params[3], this.step);
|
|
this.getConditionList(params[3], this.step);
|
|
},
|
|
},
|
|
getConditionList(policyConditionId, popType) {
|
|
getConditionList(policyConditionId, popType) {
|
|
|
|
+ let arr = []
|
|
getConditionList({
|
|
getConditionList({
|
|
pageNum: this.currentPage,
|
|
pageNum: this.currentPage,
|
|
pageSize: this.pageSize,
|
|
pageSize: this.pageSize,
|
|
policyConditionId,
|
|
policyConditionId,
|
|
popType,
|
|
popType,
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
|
|
+ console.log(this.cusIndex);
|
|
|
|
+ const datas = res.data.records
|
|
for (let i = 0; i < res.data.records.length; i++) {
|
|
for (let i = 0; i < res.data.records.length; i++) {
|
|
res.data.records[i].qty = 1;
|
|
res.data.records[i].qty = 1;
|
|
}
|
|
}
|
|
@@ -1175,8 +1180,34 @@ export default {
|
|
if (this.cusIndex == 0) {
|
|
if (this.cusIndex == 0) {
|
|
this.popDataArr = [];
|
|
this.popDataArr = [];
|
|
}
|
|
}
|
|
- this.popDataArr.push(res.data.records);
|
|
|
|
- // console.log(this.popDataArr, "[]", this.radioObj);
|
|
|
|
|
|
+
|
|
|
|
+ if (this.cusIndex == 1) {
|
|
|
|
+ for (let l = 0; l < this.dataList.length; l++) {
|
|
|
|
+
|
|
|
|
+ for (let k = 0; k < datas.length; k++) {
|
|
|
|
+ console.log(this.dataList[l].id == datas[k].id,'hahah',datas,this.dataList);
|
|
|
|
+ if (this.dataList[l].id == datas[k].id) {
|
|
|
|
+ datas.splice(k,1)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ this.popDataArr.push(datas);
|
|
|
|
+ }else{
|
|
|
|
+
|
|
|
|
+ for (let j = 0; j < this.popDataArr[this.cusIndex-1].length; j++) {
|
|
|
|
+ for (let k = 0; k < datas.length; k++) {
|
|
|
|
+
|
|
|
|
+ if (this.dataList[l].id == datas[k].id) {
|
|
|
|
+ datas.splice(k,1)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ this.popDataArr.push(datas);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // this.popDataArr.push(res.data.records);
|
|
|
|
+
|
|
});
|
|
});
|
|
},
|
|
},
|
|
hanlePopData() {
|
|
hanlePopData() {
|