md
This commit is contained in:
parent
b75dc23892
commit
6060f4f195
@ -55,7 +55,7 @@
|
||||
</span>
|
||||
<div style="display:inline-flex; width: 50%;" v-if="form.openBillScope==0">
|
||||
<el-input v-model="form.params.billCodeStr" rows="2" type="textarea" placeholder="部分开票请填写单号,多单请使用逗号隔开" />
|
||||
<el-button type="primary" @click="addBillToApply" v-preventReClick>加入单号</el-button>
|
||||
<el-button type="primary" @click="addBillToApply" :disable="isPreventReClick">加入单号</el-button>
|
||||
</div>
|
||||
<el-table
|
||||
class="cargoList"
|
||||
@ -222,6 +222,8 @@ export default {
|
||||
emisSettleInvoiceRecordOptions: [],
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
|
||||
isPreventReClick:false,
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
@ -360,6 +362,12 @@ export default {
|
||||
}
|
||||
},
|
||||
async addBillToApply(){
|
||||
if(this.isPreventReClick){
|
||||
return;
|
||||
}
|
||||
|
||||
this.isPreventReClick=true;
|
||||
|
||||
this.form.invoiceRelList=[];
|
||||
|
||||
let hasOpenMap = {}
|
||||
@ -397,9 +405,16 @@ export default {
|
||||
relItem.money=relItem.billFee-hasOpenMap[itemSubBill.billNo];
|
||||
}
|
||||
if(relItem.canApplyFee>0){
|
||||
this.form.invoiceRelList.push(relItem);
|
||||
let objExist =this.form.invoiceRelList.find((item)=>{item.billNo===relItem.billNo});
|
||||
if(objExist){
|
||||
// 如果已经存在则继续
|
||||
continue;
|
||||
}else{
|
||||
this.form.invoiceRelList.push(relItem);
|
||||
}
|
||||
}
|
||||
};
|
||||
this.isPreventReClick=false;
|
||||
this.handleCalcFeeItem();
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user