master
Wangxubin1999 3 years ago
parent 91a13110b4
commit c62b5e87a8

@ -123,7 +123,7 @@
<div style="width: 150px;">成交金额 : {{ inMoneys }}</div> <div style="width: 150px;">成交金额 : {{ inMoneys }}</div>
<div style="width: 150px;">转入金额 : {{ outMoneys }}</div> <div style="width: 150px;">转入金额 : {{ outMoneys }}</div>
<div style="width: 150px;">现付金额 : {{ payMoneys }}</div> <div style="width: 150px;">现付金额 : {{ payMoneys }}</div>
<div style="width: 150px;">欠款金额金额 : {{ debtMoney }}</div> <div style="width: 150px;">欠款金额 : {{ debtMoney }}</div>
</div> </div>
<el-table :data="inList" max-height="150" empty-text=' , ' <el-table :data="inList" max-height="150" empty-text=' , '
:header-cell-style="{ background: 'linear-gradient(#6cb3ff, #1873d4)', color: '#eeeeee' }" :header-cell-style="{ background: 'linear-gradient(#6cb3ff, #1873d4)', color: '#eeeeee' }"
@ -390,12 +390,9 @@ export default {
this.proForm.changeInPayMoney = payMoneys; this.proForm.changeInPayMoney = payMoneys;
this.proForm.changeInMoney = this.inMoneys.toFixed(2) * 1; this.proForm.changeInMoney = this.inMoneys.toFixed(2) * 1;
this.proForm.changeOutMoney = this.outMoneys.toFixed(2) * 1; this.proForm.changeOutMoney = this.outMoneys.toFixed(2) * 1;
// if (this.debtMoney < 0) { console.log("🚀 ~ file: index.vue ~ line 394 ~ submit ~ this.debtMoney", this.debtMoney)
// this.proForm.differenceMoney = this.debtMoney * -1;
// this.proForm.debtMoney = 0; console.log("🚀 ~ file: index.vue ~ line 400 ~ submit ~ this.proForm.debtMoney", this.proForm.debtMoney)
// } else {
// this.proForm.debtMoney = this.debtMoney;
// }
this.proForm.isAddition = this.isAddition; this.proForm.isAddition = this.isAddition;
this.proForm.payLists = payLists; this.proForm.payLists = payLists;
this.proForm.cardChangeOutProjectRequests = this.outList; this.proForm.cardChangeOutProjectRequests = this.outList;
@ -403,19 +400,26 @@ export default {
this.proForm.cardChangeInProjectRequest.salesmens = salesmens; this.proForm.cardChangeInProjectRequest.salesmens = salesmens;
this.proForm.cardChangeInProjectRequest.staffLists = this.proForm.cardChangeInProjectRequest.staffLists =
this.proForm.staffLists; this.proForm.staffLists;
if (this.proForm.cardChangeInProjectRequest.debtMoney != 0) { if (this.debtMoney < 0) {
this.proForm.debtMoney =
this.proForm.cardChangeInProjectRequest.debtMoney; this.proForm.differenceMoney = this.debtMoney * -1;
this.proForm.debtMoney =
this.proForm.cardChangeInProjectRequest.debtMoney;
this.proForm.cardChangeInProjectRequest.isDebt = 1;
this.proForm.isDebt = 1;
} else {
this.proForm.debtMoney = 0; this.proForm.debtMoney = 0;
this.proForm.isDebt = 0; this.proForm.isDebt = 0;
this.proForm.cardChangeInProjectRequest.isDebt = 0; this.proForm.cardChangeInProjectRequest.isDebt = 0;
} else {
this.proForm.debtMoney = this.debtMoney;
this.proForm.isDebt = 1;
this.proForm.cardChangeInProjectRequest.isDebt = 1;
} }
// if (this.proForm.cardChangeInProjectRequest.debtMoney != 0) {
// this.proForm.cardChangeInProjectRequest.isDebt = 1;
// this.proForm.isDebt = 1;
// } else {
// this.proForm.isDebt = 0;
// this.proForm.cardChangeInProjectRequest.isDebt = 0;
// }
let falg = true; let falg = true;
if (this.isAddition == 1) { if (this.isAddition == 1) {
if (this.proForm.additionDate) { if (this.proForm.additionDate) {
@ -430,9 +434,13 @@ export default {
}); });
this.loading = false; this.loading = false;
} }
} else {
let sessionStorageData = JSON.parse(sessionStorage.getItem("sessionStorageData"));
if(sessionStorageData.cardCangeListDebt==true){
}else{ }else{
if (this.debtMoney * 1 != 0) { if (this.debtMoney * 1 != 0) {
this.$alert("转入金额和转出加支付金额不相等", "提示", { this.$alert("转入金额和转出加支付金额不相等(本店不允许加价转疗程存在欠款)", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
confirmButtonClass: "confirmbtnFalses", confirmButtonClass: "confirmbtnFalses",
type: "warning", type: "warning",
@ -443,12 +451,15 @@ export default {
falg = false; falg = false;
} }
} }
}
if (falg) { if (falg) {
this.addCardChange(); this.addCardChange();
} }
}, },
addCardChange() { addCardChange() {
var that = this; var that = this;
console.log("🚀 ~ file: index.vue ~ line 461 ~ addCardChange ~ this.proForm", this.proForm)
addCardChange(this.proForm).then((res) => { addCardChange(this.proForm).then((res) => {
this.loading = false; this.loading = false;
if (res.code == "000000") { if (res.code == "000000") {

@ -671,9 +671,9 @@ export default {
dataList.cardCangeListDebt == 0 && dataList.cardCangeListDebt == 0 &&
dataList.cardCangeListDebt != undefined dataList.cardCangeListDebt != undefined
) { ) {
dataList.cardCangeListDebt = true;
} else {
dataList.cardCangeListDebt = false; dataList.cardCangeListDebt = false;
} else {
dataList.cardCangeListDebt = true;
} }
if (dataList.promotion == 1 && dataList.promotion != undefined) { if (dataList.promotion == 1 && dataList.promotion != undefined) {
@ -834,9 +834,9 @@ export default {
"|" + "|" +
"数字加价转疗程欠款的最大欠款比例"; "数字加价转疗程欠款的最大欠款比例";
} }
dataList.cardCangeListDebt = 0;
} else {
dataList.cardCangeListDebt = 1; dataList.cardCangeListDebt = 1;
} else {
dataList.cardCangeListDebt = 0;
delete dataList.cardCangeListDebtUsable; delete dataList.cardCangeListDebtUsable;
delete dataList.cardCangeListRatio; delete dataList.cardCangeListRatio;
} }
@ -1085,6 +1085,7 @@ export default {
}, },
}); });
} }
console.log(dataList)
}, },
// //
copy() { copy() {

Loading…
Cancel
Save