|
|
|
@ -180,8 +180,7 @@ |
|
|
|
</el-table-column> |
|
|
|
<el-table-column v-if="query.chargeFlag == 'N'" width="30" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<i class="el-icon-search" @click="getCardId(scope.$index)" |
|
|
|
v-if="scope.row.payModeId == '05'" |
|
|
|
<i class="el-icon-search" @click="getCardId(scope.$index)" v-if="scope.row.payModeId == '05'" |
|
|
|
style="font-size: 24px;color: blue;cursor:pointer;"></i> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -276,7 +275,8 @@ |
|
|
|
<el-option label="身份证号" value="idNo" /> |
|
|
|
<el-option label="手机号" value="phone" /> |
|
|
|
</el-select> |
|
|
|
<el-input placeholder="卡号" v-model="queryCard.value" size="small" clearable style="width: 190px" @change="btnQueryCard"/> |
|
|
|
<el-input placeholder="卡号" v-model="queryCard.value" size="small" clearable style="width: 190px" |
|
|
|
@change="btnQueryCard" /> |
|
|
|
</div> |
|
|
|
<div class="query"> |
|
|
|
<el-button class="commonbutton" @click="btnQueryCard">查询</el-button> |
|
|
|
@ -431,7 +431,8 @@ export default { |
|
|
|
cardChoosed: {}, //选中卡 |
|
|
|
winDialog: { |
|
|
|
queryCard: false, |
|
|
|
} |
|
|
|
}, |
|
|
|
charge_normal_card: 1, // 单次收费允许使用多少张充值卡 |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -704,11 +705,11 @@ export default { |
|
|
|
|
|
|
|
// 确定选中卡记录 |
|
|
|
btnOkCard() { |
|
|
|
this.chargePays[this.cardSeq].cardNo = this.cardChoosed.cardNo |
|
|
|
this.chargePays[this.cardSeq].cardNo = this.cardChoosed.cardNo + ' 余:' + this.cardChoosed.cardBalance |
|
|
|
this.chargePays[this.cardSeq].cardRegisterId = this.cardChoosed.id |
|
|
|
// 将折扣带回,并触发 |
|
|
|
this.form.discount = this.cardChoosed.discount||100 |
|
|
|
this.discountToDetails() |
|
|
|
this.form.discount = this.cardChoosed.discount || 100 |
|
|
|
this.discountToDetails() |
|
|
|
|
|
|
|
this.winDialog.queryCard = false |
|
|
|
}, |
|
|
|
@ -1241,6 +1242,27 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// 获取系统参数 charge_normal_card 的值 |
|
|
|
getChargeNormalCard() { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
// 获取系统参数(pacs系统条码类型:0:检查条码,1:人员条码) |
|
|
|
postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId: 'charge_normal_card' }) |
|
|
|
.then(res => { |
|
|
|
if (res.code > -1) { |
|
|
|
try { |
|
|
|
this.charge_normal_card = Number(res.data || "1") || 1 |
|
|
|
} catch (error) { |
|
|
|
console.log('charge_normal_card', error) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
.finally(() => { |
|
|
|
resolve() |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//数据初始化 |
|
|
|
dictInit() { |
|
|
|
|
|
|
|
@ -1350,17 +1372,27 @@ export default { |
|
|
|
|
|
|
|
*/ |
|
|
|
//支付方式 /api/app/pay-mode(全部) |
|
|
|
getapi("/api/app/paymode/getlistinisactive").then((res) => { |
|
|
|
if (res.code == 1) { |
|
|
|
this.dict.payMode = res.data; |
|
|
|
//未收费时 |
|
|
|
this.chargePaysInit = []; |
|
|
|
this.dict.payMode.forEach(e => { |
|
|
|
this.chargePaysInit.push({ chargeId: null, payModeId: e.id, chargeMoney: 0, cardBillId: null, cardRegisterId: '', cardNo: '' }) |
|
|
|
}); |
|
|
|
this.chargePays = deepCopy(this.chargePaysInit); |
|
|
|
} |
|
|
|
}); |
|
|
|
this.getChargeNormalCard() |
|
|
|
.then(() => { |
|
|
|
return getapi("/api/app/paymode/getlistinisactive") |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
if (res.code == 1) { |
|
|
|
this.dict.payMode = res.data; |
|
|
|
//未收费时 |
|
|
|
this.chargePaysInit = []; |
|
|
|
this.dict.payMode.forEach(e => { |
|
|
|
if(e.id == '05'){ |
|
|
|
for (let index = 0; index < this.charge_normal_card; index++) { |
|
|
|
this.chargePaysInit.push({ chargeId: null, payModeId: e.id, chargeMoney: 0, cardBillId: null, cardRegisterId: '', cardNo: '' }) |
|
|
|
} |
|
|
|
}else{ |
|
|
|
this.chargePaysInit.push({ chargeId: null, payModeId: e.id, chargeMoney: 0, cardBillId: null, cardRegisterId: '', cardNo: '' }) |
|
|
|
} |
|
|
|
}); |
|
|
|
this.chargePays = deepCopy(this.chargePaysInit); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
// postapi("/api/app/asbitem/getasbitemlist", {}).then((res) => { |
|
|
|
// if (res.code == 1) { |
|
|
|
@ -1391,7 +1423,7 @@ export default { |
|
|
|
case '卡号': |
|
|
|
if (input.value) this.btnQueryCard() |
|
|
|
//input.select() |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
|