md
This commit is contained in:
parent
d8239818ac
commit
bcc72e5beb
@ -559,14 +559,25 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
handlePayRecord(){
|
handlePayRecord(){
|
||||||
// this.currentId= row.id || this.ids;
|
|
||||||
// this.openForm = true;
|
|
||||||
// this.titleForm = "收/退款:"+this.currentSettleBillNo;
|
|
||||||
|
|
||||||
this.$emit("onPayInput",this.currentSettleBillNo);
|
this.$emit("onPayInput",this.currentSettleBillNo);
|
||||||
},
|
},
|
||||||
handlePayRecordByMerge(){
|
handlePayRecordByMerge(){
|
||||||
this.$emit("onPayInputByMerge",this.selectList);
|
// 如果有已收款的账单则不允许合并收款
|
||||||
|
if(this.selectList&&this.selectList.length>0){
|
||||||
|
for(let i=0;i<this.selectList.length;i++){
|
||||||
|
let item=this.selectList[i];
|
||||||
|
if(item.paymentStatus!=0){
|
||||||
|
this.$modal.msgError("有收款,不允许合并收款!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
this.$emit("onPayInputByMerge",this.selectList);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
this.$modal.msgError("请先选择账单");
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
handleCharge(row) {
|
handleCharge(row) {
|
||||||
|
|||||||
@ -397,7 +397,21 @@ export default {
|
|||||||
this.$emit("onSelect",row);
|
this.$emit("onSelect",row);
|
||||||
},
|
},
|
||||||
handlePayRecordByInvoice(){
|
handlePayRecordByInvoice(){
|
||||||
this.$emit("onPayInputByInvoice",this.selectList);
|
if(this.selectList&&this.selectList.length>0){
|
||||||
|
for(let i=0;i<this.selectList.length;i++){
|
||||||
|
let item=this.selectList[i];
|
||||||
|
if(item.paymentStatus!=0){
|
||||||
|
this.$modal.msgError("有收款,不允许发票收款!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.$emit("onPayInputByInvoice",this.selectList);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
this.$modal.msgError("请先选择发票");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
handleRefuse(row) {
|
handleRefuse(row) {
|
||||||
const ids = row.id || this.ids;
|
const ids = row.id || this.ids;
|
||||||
|
|||||||
@ -220,9 +220,13 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div style="text-align: center;margin-bottom: 10px;">
|
<div style="text-align: center;margin-bottom: 10px;">
|
||||||
<el-button type="primary" :loading="isDoing" @click="submitForm">确 定</el-button>
|
<el-button type="primary" :loading="isDoing" @click="submitForm" :disabled="!this.isCanPay">确 定</el-button>
|
||||||
<el-button @click="cancel">取 消</el-button>
|
<el-button @click="cancel">取 消</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
<div style="text-align: center;margin-bottom: 10px;">
|
||||||
|
<span v-if="!this.isCanPay" style="color: red;">有收款,不允许发票收款!</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -249,6 +253,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
emisSettlePayRecordOptions: [],
|
emisSettlePayRecordOptions: [],
|
||||||
settleBillItem:this.settleBillObj,
|
settleBillItem:this.settleBillObj,
|
||||||
|
isCanPay:true,
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: true,
|
loading: true,
|
||||||
isDoing:false,
|
isDoing:false,
|
||||||
@ -304,6 +309,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
initData() {
|
initData() {
|
||||||
this.reset();
|
this.reset();
|
||||||
|
this.isCanPay=true;
|
||||||
this.form.recType=1;
|
this.form.recType=1;
|
||||||
this.form.payScope='1';
|
this.form.payScope='1';
|
||||||
this.form.payRelList=[];
|
this.form.payRelList=[];
|
||||||
@ -446,6 +452,7 @@ export default {
|
|||||||
relItem.hasApplyFee=0;
|
relItem.hasApplyFee=0;
|
||||||
console.log("===>=hasPayMap1111==>",hasPayMap[itemSubBill.billNo])
|
console.log("===>=hasPayMap1111==>",hasPayMap[itemSubBill.billNo])
|
||||||
if(itemSubBill.billNo in hasPayMap){
|
if(itemSubBill.billNo in hasPayMap){
|
||||||
|
this.isCanPay=false;
|
||||||
if(this.form.recType==1){
|
if(this.form.recType==1){
|
||||||
relItem.hasApplyFee=hasPayMap[itemSubBill.billNo];
|
relItem.hasApplyFee=hasPayMap[itemSubBill.billNo];
|
||||||
// relItem.payMoney=itemSubBill.money-hasPayMap[itemSubBill.billNo];
|
// relItem.payMoney=itemSubBill.money-hasPayMap[itemSubBill.billNo];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user