|
|
@@ -75,7 +75,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
<el-form-item label="申请单号" prop="billNo">
|
|
|
- <el-input style="width: 100%;" v-model="form.billNo"
|
|
|
+ <el-input style="width: 100%;" v-model="form.requestNo"
|
|
|
size="small" autocomplete="off"
|
|
|
:disabled="editSave"
|
|
|
clearable placeholder="请输入单号" >
|
|
|
@@ -114,6 +114,7 @@
|
|
|
:clearable="true"
|
|
|
:disabled="editSave"
|
|
|
:buttonIf="false"
|
|
|
+ :multiple="true"
|
|
|
@corpChange="corpChange($event,'businessTypes')">
|
|
|
</search-query>
|
|
|
</el-form-item>
|
|
|
@@ -536,7 +537,7 @@
|
|
|
this.$message.warning('请选择结算单位');
|
|
|
return
|
|
|
}
|
|
|
- // 业务类型
|
|
|
+ // // 业务类型
|
|
|
if (!this.form.businessTypes) {
|
|
|
this.$message.warning('请选择业务类型');
|
|
|
return
|
|
|
@@ -553,6 +554,7 @@
|
|
|
this.form.businessTypeCode = 'HYFF'
|
|
|
this.form.businessType = 'STL' // 结算单
|
|
|
this.form.dc = 'C' // 付
|
|
|
+ this.form.businessTypes = this.form.businessTypes.join(',') // 业务类型
|
|
|
|
|
|
if (this.whetherAuditing == '0') {
|
|
|
for (let item of this.handleSelectionData) {
|
|
|
@@ -603,6 +605,24 @@
|
|
|
this.tableData = res.data.data.finStlBillsItemsList.map(item=>{
|
|
|
item.id = ''
|
|
|
item.pid = ''
|
|
|
+ item.stlTtlAmountNet = Number(item.stlTtlAmount) - (Number(item.stlTtlAmount) * (Number(item.taxRate) + Number(item.surchargeRate)))
|
|
|
+ if(item.curCode == 'CNY') {
|
|
|
+ this.$set(item,'currentInvoiceAmountRMB',item.currentInvoiceAmount)
|
|
|
+ this.$set(item,'amountRMB',item.amount)
|
|
|
+ this.$set(item,'amountNetRMB',item.amountNet)
|
|
|
+ this.$set(item,'stlTtlAmountRMB',item.stlTtlAmount)
|
|
|
+ this.$set(item,'stlTtlAmountNetRMB',item.stlTtlAmountNet)
|
|
|
+ this.$set(item,'currentStlAmountRMB',item.unsettledAmount) // 未结算金额
|
|
|
+ this.$set(item,'currentStlAmountNetRMB',item.currentStlAmountNet)
|
|
|
+ }else {
|
|
|
+ this.$set(item,'currentInvoiceAmountUSD',item.currentInvoiceAmount)
|
|
|
+ this.$set(item,'amountUSD',item.amount)
|
|
|
+ this.$set(item,'amountNetUSD',item.amountNet)
|
|
|
+ this.$set(item,'stlTtlAmountNetUSD',item.stlTtlAmountNet)
|
|
|
+ this.$set(item,'stlTtlAmountUSD',item.stlTtlAmount)
|
|
|
+ this.$set(item,'currentStlAmountUSD',item.unsettledAmount) // 未结算金额
|
|
|
+ this.$set(item,'currentStlAmountNetUSD',item.currentStlAmountNet)
|
|
|
+ }
|
|
|
return item
|
|
|
})
|
|
|
})
|
|
|
@@ -619,6 +639,7 @@
|
|
|
this.pageLoading = true
|
|
|
finstlbillsDetail(id).then(res=>{
|
|
|
this.form = res.data.data
|
|
|
+ this.form.businessTypes = this.form.businessTypes.split(',') // 业务类型转换成数组显示
|
|
|
this.tableData = this.form.finStlBillsItemsList.map(item=>{
|
|
|
item.stlTtlAmountNet = Number(item.stlTtlAmount) - (Number(item.stlTtlAmount) * (Number(item.taxRate) + Number(item.surchargeRate)))
|
|
|
item.currentStlAmountNet = Number(item.unsettledAmount) - (Number(item.unsettledAmount) * (Number(item.taxRate) + Number(item.surchargeRate)))
|
|
|
@@ -660,16 +681,16 @@
|
|
|
return
|
|
|
}
|
|
|
if (this.whetherAuditing == '1') {
|
|
|
- if (!this.form.billNo) {
|
|
|
+ if (!this.form.requestNo) {
|
|
|
this.$message.warning('请输入申请单号');
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
// 业务类型
|
|
|
- // if (!this.form.businessTypes) {
|
|
|
- // this.$message.warning('请选择业务类型');
|
|
|
- // return
|
|
|
- // }
|
|
|
+ if (!this.form.businessTypes) {
|
|
|
+ this.$message.warning('请选择业务类型');
|
|
|
+ return
|
|
|
+ }
|
|
|
delete this.form.id
|
|
|
// let obj = JSON.parse(JSON.stringify(this.form))
|
|
|
let obj = {}
|
|
|
@@ -677,19 +698,19 @@
|
|
|
obj.dc = 'C' // 付
|
|
|
obj.corpCnName = this.form.corpId // 结算单位
|
|
|
obj.curCode = this.form.curCode // 币别
|
|
|
- // obj.dc = this.form.dc // 收付 D=收 C=付
|
|
|
obj.accBillNo = this.form.accountNo // 账单编号 ACCT NO
|
|
|
obj.billNo = this.form.businessNo // 单据编号 JOB NO
|
|
|
obj.checkBillNo = this.form.checkNo // CHK NO
|
|
|
obj.mblno = this.form.mblno // MB/L NO
|
|
|
obj.hblno = this.form.hblno // HB/L NO
|
|
|
obj.queryAmount = this.form.queryAmount // 查询金额
|
|
|
- obj.businessType = this.form.businessTypes // 业务类型
|
|
|
+ obj.businessType = this.form.businessTypes?this.form.businessTypes.join(','):'' // 业务类型
|
|
|
obj.vesselCnName = this.form.vesselCnName // 中文船名
|
|
|
obj.receivableAdvance = this.form.receivableAdvance // 预收帐款
|
|
|
obj.voyageNo = this.form.voyageNo // 航次
|
|
|
obj.signforDateList = this.form.signforDateList // 签收日期
|
|
|
- obj.billNo = this.form.billNo // 申请单号
|
|
|
+ obj.billNo = this.form.requestNo // 申请单号
|
|
|
+
|
|
|
// 审核期间
|
|
|
if (this.form.approvedDate) {
|
|
|
obj.approveTimeList = this.form.approvedDate
|
|
|
@@ -703,6 +724,7 @@
|
|
|
this.approveDetailfun(obj.billNo)
|
|
|
}else {
|
|
|
finstlbillslistAccBillV1(obj).then(res=>{
|
|
|
+ console.log(res.data.data,709)
|
|
|
this.tableData = res.data.data.map(item=>{
|
|
|
item.stlTtlAmountNet = Number(item.stlTtlAmount) - (Number(item.stlTtlAmount) * (Number(item.taxRate) + Number(item.surchargeRate)))
|
|
|
if(item.curCode == 'CNY') {
|
|
|
@@ -729,12 +751,13 @@
|
|
|
},
|
|
|
// 结算确认
|
|
|
finstlbillsConfirmSettlementfun(){
|
|
|
- this.$confirm("确定进行对账操作?", {
|
|
|
+ this.$confirm("确定进行结算操作?", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(()=>{
|
|
|
this.pageLoading = true
|
|
|
+ this.form.businessTypes = this.form.businessTypes.join(',') // 业务类型
|
|
|
finstlbillsConfirmSettlement(this.form).then(res=>{
|
|
|
this.pageLoading = false
|
|
|
this.$message.success('操作成功');
|
|
|
@@ -746,12 +769,13 @@
|
|
|
},
|
|
|
// 结算撤销
|
|
|
finstlbillsRevokeSettlementfun(){
|
|
|
- this.$confirm("确定进行撤销对账操作?", {
|
|
|
+ this.$confirm("确定进行撤销结算操作?", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(()=>{
|
|
|
this.pageLoading = true
|
|
|
+ this.form.businessTypes = this.form.businessTypes.join(',') // 业务类型
|
|
|
finstlbillsRevokeSettlement(this.form).then(res=>{
|
|
|
this.pageLoading = false
|
|
|
this.$message.success('操作成功');
|