jg-waiwang-pro
胡川虎 5 months ago
parent b301125b30
commit 3a474f748a

@ -901,12 +901,14 @@ public class VoucherServiceImpl extends ServiceImpl<VoucherMapper, VoucherEntity
int sum = 0;
//记录第几条失败
int num = 0;
String voucherCode = generaterSwapUtil.getBillNumber("fhpz", false);
for(int i=0; i<dataList.size(); i++){
int aa = i+1;
VoucherExcelVO222 model = dataList.get(i);
VoucherEntity voucherEntity = new VoucherEntity();
voucherEntity.setBusinessType(StringUtil.equals(model.getBusinessType(), "采购") ? "1" : "2");//业务类型
voucherEntity.setDocumentType(StringUtil.equals(model.getDocumentType(), "收货凭证") ? "1" : "2");//单据类型
voucherEntity.setVoucherCode(generaterSwapUtil.getBillNumber("fhpz", false));//'凭证编号
voucherEntity.setVoucherCode(voucherCode + "(" + aa + ")");//'凭证编号
//凭证类型
if(StringUtil.equals(model.getVoucherType(), "磅单")){
voucherEntity.setVoucherType("1");

@ -284,7 +284,6 @@ export default {
})
},
initList(list,index) {
debugger
this.list[index].productId = list.id;
this.list[index].productName = list.name;
},
@ -351,8 +350,8 @@ export default {
}
let flag = false
let index = 0
console.log('555555555', this.list)
debugger
/* console.log('555555555', this.list)
debugger */
for(let i=0;i<this.list.length; i++){
if(!this.list[i].productId){
flag = true

@ -102,7 +102,6 @@ export default {
if (productName && typeof(productName) == 'string') {
this.keyword = productName;
}
debugger
if ((index && typeof(index) == 'number') || index == 0 ) {
this.index = index;
}

@ -80,12 +80,12 @@
<el-table-column prop="paymentState" label="付款状态" width="100" align="center">
<template slot-scope="scope">
<el-tag type="warning" v-if="scope.row.paymentState==1 && (scope.row.businessType==1 || scope.row.businessType==4)"></el-tag>
<el-tag type="success" v-if="scope.row.paymentState==2 && scope.row.businessType==1 || scope.row.businessType==4"></el-tag>
<el-tag type="danger" v-if="scope.row.paymentState==3 && scope.row.businessType==1 || scope.row.businessType==4"></el-tag>
<el-tag type="success" v-if="scope.row.paymentState==2 && (scope.row.businessType==1 || scope.row.businessType==4)"></el-tag>
<el-tag type="danger" v-if="scope.row.paymentState==3 && (scope.row.businessType==1 || scope.row.businessType==4)"></el-tag>
<el-tag type="warning" v-if="scope.row.paymentState==1 && (scope.row.businessType==2 || scope.row.businessType==3)"></el-tag>
<el-tag type="success" v-if="scope.row.paymentState==2 && scope.row.businessType==2 || scope.row.businessType==3"></el-tag>
<el-tag type="danger" v-if="scope.row.paymentState==3 && scope.row.businessType==2 || scope.row.businessType==3"></el-tag>
<el-tag type="success" v-if="scope.row.paymentState==2 && (scope.row.businessType==2 || scope.row.businessType==3)"></el-tag>
<el-tag type="danger" v-if="scope.row.paymentState==3 && (scope.row.businessType==2 || scope.row.businessType==3)"></el-tag>
</template>
</el-table-column>
<el-table-column prop="settlementSubjectName" label="结算主体名称" align="center" width="250">

Loading…
Cancel
Save