|
|
@@ -336,7 +336,8 @@ import {
|
|
|
billsListAll, billsRevokeCheckBills, editypesSendingEdi,
|
|
|
billsSubmit,
|
|
|
billsAdd,
|
|
|
- deptGetDetailPol, postSelectByUser, documentVerification, agreementpriceList
|
|
|
+ deptGetDetailPol, postSelectByUser, documentVerification,
|
|
|
+ agreementpriceList, createAndAdd
|
|
|
} from '@/api/iosBasicData/bills'
|
|
|
import { dateFormat } from "@/util/date";
|
|
|
import checkSchedule from "@/components/checkH/checkSchedule.vue";
|
|
|
@@ -2118,7 +2119,7 @@ export default {
|
|
|
})
|
|
|
return;
|
|
|
}
|
|
|
- console.log("this.verifySymbolStatus",this.verifySymbolStatus)
|
|
|
+ console.log("this.verifySymbolStatus", this.verifySymbolStatus)
|
|
|
if (this.verifySymbolStatus == 1) {
|
|
|
/*
|
|
|
let msgsList = []
|
|
|
@@ -2384,7 +2385,7 @@ export default {
|
|
|
} else {
|
|
|
this.billsSubmitfun(status)
|
|
|
}
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
console.log("this.editCustomer not valid")
|
|
|
}
|
|
|
})
|
|
|
@@ -2654,6 +2655,82 @@ export default {
|
|
|
loading.close();
|
|
|
})
|
|
|
},
|
|
|
+ copyCreateAndAdd(id, type) {
|
|
|
+ console.log(id,1234556)
|
|
|
+ let obj={
|
|
|
+ id:id
|
|
|
+ }
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: '加载中',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(255,255,255,0.7)'
|
|
|
+ });
|
|
|
+ createAndAdd(obj).then(res => {
|
|
|
+ this.form = res.data.data;
|
|
|
+ this.pageLoading = false
|
|
|
+ // 配箱最上面可以编辑
|
|
|
+ for (let item of this.form.containersList) {
|
|
|
+ item.edit = false
|
|
|
+ }
|
|
|
+ // 先把状态改成可以编辑,然后判断是否可以编辑
|
|
|
+ this.generateBillsfalse = false
|
|
|
+ // 应收
|
|
|
+ for (let item of this.form.feeCenterListD) {
|
|
|
+ // 判断是否生成了账单
|
|
|
+ if (item.accStatus == 1) {
|
|
|
+ this.columnforfun('corpCnName').disabled = true
|
|
|
+ this.columnforfun('srcType').disabled = true
|
|
|
+ this.columnforfun('mblno').disabled = true
|
|
|
+ this.columnforfun('bookingNo').disabled = true
|
|
|
+ this.columnforfun('refno').disabled = true
|
|
|
+ this.generateBillsfalse = true
|
|
|
+ }
|
|
|
+ if (item.curCode == 'CNY') {
|
|
|
+ this.$set(item, 'rmbAmount', item.amount)
|
|
|
+ this.$set(item, 'usdAmount', '')
|
|
|
+ this.$set(item, 'rmbAmountNet', item.amountNet)
|
|
|
+ this.$set(item, 'usdAmountNet', '')
|
|
|
+ } else {
|
|
|
+ this.$set(item, 'usdAmount', item.amount)
|
|
|
+ this.$set(item, 'rmbAmount', '')
|
|
|
+ this.$set(item, 'usdAmountNet', item.amountNet)
|
|
|
+ this.$set(item, 'rmbAmountNet', '')
|
|
|
+ }
|
|
|
+ item.edit = false
|
|
|
+ }
|
|
|
+ // 应付
|
|
|
+ for (let item of this.form.feeCenterListC) {
|
|
|
+ // 判断是否生成了账单
|
|
|
+ if (item.accStatus == 1) {
|
|
|
+ this.generateBillsfalse = true
|
|
|
+ this.columnforfun('corpCnName').disabled = true
|
|
|
+ this.columnforfun('srcType').disabled = true
|
|
|
+ this.columnforfun('mblno').disabled = true
|
|
|
+ this.columnforfun('bookingNo').disabled = true
|
|
|
+ this.columnforfun('refno').disabled = true
|
|
|
+ }
|
|
|
+ if (item.curCode == 'CNY') {
|
|
|
+ this.$set(item, 'rmbAmount', item.amount)
|
|
|
+ this.$set(item, 'usdAmount', '')
|
|
|
+ this.$set(item, 'rmbAmountNet', item.amountNet)
|
|
|
+ this.$set(item, 'usdAmountNet', '')
|
|
|
+ } else {
|
|
|
+ this.$set(item, 'usdAmount', item.amount)
|
|
|
+ this.$set(item, 'rmbAmount', '')
|
|
|
+ this.$set(item, 'usdAmountNet', item.amountNet)
|
|
|
+ this.$set(item, 'rmbAmountNet', '')
|
|
|
+ }
|
|
|
+ item.edit = false
|
|
|
+ }
|
|
|
+ // 文件中心
|
|
|
+ for (let item of this.form.filesList) {
|
|
|
+ this.$set(item, 'edit', false)
|
|
|
+ }
|
|
|
+ }).finally(() => {
|
|
|
+ loading.close();
|
|
|
+ })
|
|
|
+ },
|
|
|
// 详情接口
|
|
|
async billsDetailfun(id, status) {
|
|
|
const res = await billsDetail(id)
|