|
@@ -567,6 +567,11 @@ export default {
|
|
this.$refs.detailTable.innerHTML = this.printDomData;
|
|
this.$refs.detailTable.innerHTML = this.printDomData;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ getDictLabel(value, dictLsit = []) {
|
|
|
|
+ return dictLsit.find((item) => {
|
|
|
|
+ return item.value == value;
|
|
|
|
+ })?.label;
|
|
|
|
+ },
|
|
// 获取详情html字符串
|
|
// 获取详情html字符串
|
|
async getDetailTableString(row) {
|
|
async getDetailTableString(row) {
|
|
let { saleOrderSaleNo } = row;
|
|
let { saleOrderSaleNo } = row;
|
|
@@ -646,7 +651,10 @@ export default {
|
|
let customCountryType = customData?.customCountryType || "";
|
|
let customCountryType = customData?.customCountryType || "";
|
|
let contactPerson = customData?.contactPerson || "无";
|
|
let contactPerson = customData?.contactPerson || "无";
|
|
let directionOfTwistDescription = directionOfTwist
|
|
let directionOfTwistDescription = directionOfTwist
|
|
- ? this.getDictLabel(directionOfTwist, "direction_of_twist")
|
|
|
|
|
|
+ ? this.getDictLabel(
|
|
|
|
+ directionOfTwist,
|
|
|
|
+ this.dict.type.direction_of_twist
|
|
|
|
+ )
|
|
: "";
|
|
: "";
|
|
let printStr = `
|
|
let printStr = `
|
|
<table style="width:1050px; border-collapse:collapse;" border="1" cellpadding="10" align="center">
|
|
<table style="width:1050px; border-collapse:collapse;" border="1" cellpadding="10" align="center">
|
|
@@ -842,7 +850,7 @@ export default {
|
|
if (valid) {
|
|
if (valid) {
|
|
let payload = {
|
|
let payload = {
|
|
idList: this.ids,
|
|
idList: this.ids,
|
|
- status: this.approveForm.orderType == '1' ? '5' : '3',
|
|
|
|
|
|
+ status: this.approveForm.orderType == "1" ? "5" : "3",
|
|
finance: this.nickName,
|
|
finance: this.nickName,
|
|
};
|
|
};
|
|
let res = await batchApproval(payload);
|
|
let res = await batchApproval(payload);
|
|
@@ -1326,7 +1334,7 @@ export default {
|
|
};
|
|
};
|
|
});
|
|
});
|
|
}
|
|
}
|
|
- let { saleOrderSaleNo, saleOrderId,saleOrderOrderType } = row;
|
|
|
|
|
|
+ let { saleOrderSaleNo, saleOrderId, saleOrderOrderType } = row;
|
|
this.ids.push(saleOrderId);
|
|
this.ids.push(saleOrderId);
|
|
this.approveForm.orderType = saleOrderOrderType;
|
|
this.approveForm.orderType = saleOrderOrderType;
|
|
this.approveNo = saleOrderSaleNo;
|
|
this.approveNo = saleOrderSaleNo;
|