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 sum = 0;
//记录第几条失败 //记录第几条失败
int num = 0; int num = 0;
String voucherCode = generaterSwapUtil.getBillNumber("fhpz", false);
for(int i=0; i<dataList.size(); i++){ for(int i=0; i<dataList.size(); i++){
int aa = i+1;
VoucherExcelVO222 model = dataList.get(i); VoucherExcelVO222 model = dataList.get(i);
VoucherEntity voucherEntity = new VoucherEntity(); VoucherEntity voucherEntity = new VoucherEntity();
voucherEntity.setBusinessType(StringUtil.equals(model.getBusinessType(), "采购") ? "1" : "2");//业务类型 voucherEntity.setBusinessType(StringUtil.equals(model.getBusinessType(), "采购") ? "1" : "2");//业务类型
voucherEntity.setDocumentType(StringUtil.equals(model.getDocumentType(), "收货凭证") ? "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(), "磅单")){ if(StringUtil.equals(model.getVoucherType(), "磅单")){
voucherEntity.setVoucherType("1"); voucherEntity.setVoucherType("1");

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

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

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

Loading…
Cancel
Save