Commit 004e560f authored by 许珑标's avatar 许珑标

Merge branch 'yx-test' into yx-master

parents 1d854240 e8ccce25
...@@ -572,7 +572,6 @@ export default { ...@@ -572,7 +572,6 @@ export default {
}, },
//更新视图方法 //更新视图方法
changeItemForceupdate() { changeItemForceupdate() {
console.log('执行立刻', this.formApply.items);
this.$forceUpdate() this.$forceUpdate()
}, },
//获取企业信息数据 //获取企业信息数据
...@@ -636,8 +635,6 @@ export default { ...@@ -636,8 +635,6 @@ export default {
this.batchNos = selection.map(item => item.batchNo) this.batchNos = selection.map(item => item.batchNo)
this.single = selection.length !== 1 this.single = selection.length !== 1
this.multiple = !selection.length this.multiple = !selection.length
console.log(this.ids);
console.log(this.batchNos);
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
...@@ -733,7 +730,6 @@ export default { ...@@ -733,7 +730,6 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
console.log(this.formApply)
addApplyInvoice(this.formApply).then(response => { addApplyInvoice(this.formApply).then(response => {
this.loading = false; this.loading = false;
if (response.code == 200) { if (response.code == 200) {
...@@ -759,16 +755,35 @@ export default { ...@@ -759,16 +755,35 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.openApply = true;
//ids转字符串,逗号隔开 //ids转字符串,逗号隔开
this.formApply.batchPayIds = ids; this.formApply.batchPayIds = ids;
this.formApply.batchPayOrderIds = ids.join(','); this.formApply.batchPayOrderIds = ids.join(',');
const selectItemList = this.payOrderList.filter(item => ids.includes(item.id)); const selectItemList = this.payOrderList.filter(item => ids.includes(item.id));
const payAccNoSet = new Set(selectItemList.map(item => item.payerAccNo));
if (payAccNoSet.size > 1) {
this.$modal.msgWarning("您所选的数据不是同一个付款账户,无法进行合并开票操作")
return;
}
let sumSuccessAmount = 0; let sumSuccessAmount = 0;
selectItemList.forEach(item => { selectItemList.forEach(item => {
sumSuccessAmount += Number(item.successAmount); sumSuccessAmount += Number(item.successAmount);
}); });
getSellerInvoiceInfo([...payAccNoSet][0]).then(resp => {
if (200 === resp.code) {
this.formApply.taxCompanyId = resp.data.taxUnitId
this.formApply.taxCompanyInvoice.companyId = resp.data.taxUnitId
this.formApply.taxCompanyInvoice.invoiceTitle = resp.data.taxUnitName
this.formApply.taxCompanyInvoice.companyName = resp.data.taxUnitName
this.formApply.taxCompanyInvoice.taxRegistrationNumber = resp.data.taxUnitCode
this.formApply.applyCompanyId = resp.data.inviterId
this.formApply.applyCompanyInvoice.companyId = resp.data.inviterId
this.formApply.applyCompanyInvoice.companyName = resp.data.inviterName
this.formApply.applyCompanyInvoice.invoiceTitle = resp.data.inviterName
this.formApply.applyCompanyInvoice.taxRegistrationNumber = resp.data.inviterCode
}
})
this.formApply.totalAmountTax = Number.parseFloat(sumSuccessAmount).toFixed(2); this.formApply.totalAmountTax = Number.parseFloat(sumSuccessAmount).toFixed(2);
this.openApply = true;
}) })
}, },
addItemClick() { addItemClick() {
...@@ -794,7 +809,6 @@ export default { ...@@ -794,7 +809,6 @@ export default {
classify.taxAmount = '' classify.taxAmount = ''
classify.freeType = '' classify.freeType = ''
this.formApply.items.push(classify) this.formApply.items.push(classify)
console.log('表格数据', this.formApply);
this.taxCategoryPanel.open = false this.taxCategoryPanel.open = false
// this.$forceUpdate() // this.$forceUpdate()
......
...@@ -59,6 +59,13 @@ ...@@ -59,6 +59,13 @@
<dict-tag :options="dict.type.pay_status" :value="scope.row.payStatus" /> <dict-tag :options="dict.type.pay_status" :value="scope.row.payStatus" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="支付类型" align="center" prop="payTitle" />
<el-table-column label="数据来源" align="center" prop="dataSource" width="180">
<template slot-scope="scope">
<el-tag type="success" v-if="scope.row.dataSource && 2 === scope.row.dataSource">接口</el-tag>
<el-tag v-if="scope.row.dataSource && 1 === scope.row.dataSource">平台</el-tag>
</template>
</el-table-column>
<el-table-column label="详情预览" align="center"> <el-table-column label="详情预览" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<p style="margin: 0px;padding: 0px;">批次总笔数:{{ scope.row.totalCount }}</p> <p style="margin: 0px;padding: 0px;">批次总笔数:{{ scope.row.totalCount }}</p>
...@@ -76,8 +83,7 @@ ...@@ -76,8 +83,7 @@
<span>{{ parseTime(scope.row.transactionTime) }}</span> <span>{{ parseTime(scope.row.transactionTime) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="支付类型" align="center" prop="payTitle" /> <!-- <el-table-column label="支付备注" align="center" prop="payRemark" />-->
<el-table-column label="支付备注" align="center" prop="payRemark" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="scope.row.payStatus && scope.row.payStatus === 1" size="mini" type="text" icon="el-icon-money" @click="doPay(scope.row)">确认支付</el-button> <el-button v-if="scope.row.payStatus && scope.row.payStatus === 1" size="mini" type="text" icon="el-icon-money" @click="doPay(scope.row)">确认支付</el-button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment