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