Commit 7d5d6d31 authored by chenwei's avatar chenwei

feat: 修复1/14日禅道问题

parent a379aec8
...@@ -284,7 +284,8 @@ export const DICT_TYPE = { ...@@ -284,7 +284,8 @@ export const DICT_TYPE = {
INVOICEING_LINK: "invoicing_link", //开票环节 INVOICEING_LINK: "invoicing_link", //开票环节
RECEIPT_GENERATE_PATH: "receipt_generate_path", //收款单生成路径 RECEIPT_GENERATE_PATH: "receipt_generate_path", //收款单生成路径
RECEIPT_LINK: "receipt_link", //应收款日志环节 RECEIPT_LINK: "receipt_link", //应收款日志环节
ECW_INCOME_RELATION_SYMBOL: "income_relation_symbol" //银行收支明细查询关系符号 ECW_INCOME_RELATION_SYMBOL: "income_relation_symbol", //银行收支明细查询关系符号
LADING_BILL_STATUS_DATA: "lading_Bill_Status_Data"
} }
/** /**
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<el-table-column :label="$t('费用明细')"> <el-table-column :label="$t('费用明细')">
<template v-slot="{ row }"> <template v-slot="{ row }">
<div> <div>
<router-link :to="`/financial/orderItemCostDetails/${row.orderId}`" class="link-type"> <router-link :to="`/financial/orderItemCostDetails/${row.orderId}/${row.drawee}`" class="link-type">
{{ $t("费用明细") }} {{ $t("费用明细") }}
</router-link> </router-link>
</div> </div>
...@@ -390,13 +390,13 @@ export default { ...@@ -390,13 +390,13 @@ export default {
}, },
created() { created() {
getWarehouseList().then((res) => { getWarehouseList().then((res) => {
this.loadOrderDataList()
this.warehouseList = res.data this.warehouseList = res.data
}) })
getBankAccountPage({ pageNo: 1, pageSize: 1000 }).then((res) => { getBankAccountPage({ pageNo: 1, pageSize: 1000 }).then((res) => {
this.bankData = res.data.list this.bankData = res.data.list
}) })
this.queryParams.orderIds = this.$route.params.id.split(",") this.queryParams.orderIds = this.$route.params.id.split(",")
this.loadOrderDataList()
}, },
methods: { methods: {
setWhetherToInvoice() { setWhetherToInvoice() {
...@@ -414,6 +414,17 @@ export default { ...@@ -414,6 +414,17 @@ export default {
this.$modal.msgError(`请先选择需要批量处理的订单`) this.$modal.msgError(`请先选择需要批量处理的订单`)
return return
} }
const stringLabel = []
let multiple = this.multipleSelectedList.filter((item) => {
if (item.openInvoice == 0) {
stringLabel.push(item.tidanNo + "/" + item.orderNo)
}
return item.openInvoice == 0
})
if (multiple.length > 0) {
this.$modal.msgError(`订单/提单号:${stringLabel}状态为不开票,无需设置开票信息`)
return
}
this.openBatchInvoiceInfo = true //批量设置信息 this.openBatchInvoiceInfo = true //批量设置信息
this.$nextTick(() => { this.$nextTick(() => {
this.$refs["singlEditForm"].clearValidate() this.$refs["singlEditForm"].clearValidate()
...@@ -430,19 +441,22 @@ export default { ...@@ -430,19 +441,22 @@ export default {
if (this.singlEditForm.platformAccountId) { if (this.singlEditForm.platformAccountId) {
this.changePlatformAccountId(this.singlEditForm.platformAccountId) this.changePlatformAccountId(this.singlEditForm.platformAccountId)
} }
// element.taxPoint= this.singlEditForm. if (this.singlEditForm.openInvoice == 0) {
// element.platformAccountId= this.singlEditForm. element.invoice = null
// element.platformAccountName= this.singlEditForm. element.taxpayer = null
// element.rateValidateDate= this.singlEditForm. element.accountBank = null
// element.remark= this.singlEditForm. element.accountName = null
// element.element = this.singlEditForm.element element.projectName = null
element.taxRate = null
element.addressPhone = null
}
element = { ...element, ...this.singlEditForm } element = { ...element, ...this.singlEditForm }
} }
this.$refs.multipleTable.toggleRowSelection(element, true) this.$refs.multipleTable.toggleRowSelection(element, true)
return element return element
}) })
this.$nextTick(() => { this.$nextTick(() => {
console.log("999")
this.list.forEach((element) => { this.list.forEach((element) => {
const current = currentSelectRow.filter((item) => item.orderId == element.orderId) const current = currentSelectRow.filter((item) => item.orderId == element.orderId)
if (current.length > 0) { if (current.length > 0) {
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
<el-table-column :label="$t('应收汇总')"> <el-table-column :label="$t('应收汇总')">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<div v-for="item in row.receivableAmount"> <div v-for="item in row.receivableAmount">
{{ getCurrencySymbol(item.countryId) }} {{ getCurrencySymbol(item.currencyId) }}
{{ item.amount }} {{ item.amount }}
</div> </div>
</template> </template>
......
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
<div v-html="continueUploadModal.msg"></div> <div v-html="continueUploadModal.msg"></div>
<span slot="footer" class="dialog-footer-upload"> <span slot="footer" class="dialog-footer-upload">
<el-button @click="continueUploadModal.show = false">{{ $t("取 消") }}</el-button> <el-button @click="continueUploadModal.show = false">{{ $t("取 消") }}</el-button>
<el-button type="primary" @click="continueUpload">{{ $t("确 定") }}</el-button> <el-button type="primary" :disabled="!fileCopy" @click="continueUpload">{{ $t("确 定") }}</el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
...@@ -382,7 +382,9 @@ export default { ...@@ -382,7 +382,9 @@ export default {
}, },
methods: { methods: {
continueUpload() { continueUpload() {
this.$message.success(this.$t("正在提交,请稍后。"))
this.$refs.upload.handleStart(this.fileCopy.raw) this.$refs.upload.handleStart(this.fileCopy.raw)
this.fileCopy = null
this.$refs.upload.submit() this.$refs.upload.submit()
}, },
handleShowFileUploadDialog() { handleShowFileUploadDialog() {
...@@ -410,6 +412,7 @@ export default { ...@@ -410,6 +412,7 @@ export default {
// 文件上传成功处理 // 文件上传成功处理
handleFileSuccess(response, file, fileList) { handleFileSuccess(response, file, fileList) {
this.upload.isUploading = false this.upload.isUploading = false
this.continueUploadModal.show = false
// 错误 // 错误
if (response.code == "1004520042") { if (response.code == "1004520042") {
// this.$modal.msgError(response.msg) // this.$modal.msgError(response.msg)
...@@ -438,7 +441,7 @@ export default { ...@@ -438,7 +441,7 @@ export default {
return return
} }
this.upload.open = false this.upload.open = false
this.fileCopy = null
this.$refs.upload.clearFiles() this.$refs.upload.clearFiles()
// 拼接提示语 // 拼接提示语
// let data = response.data // let data = response.data
...@@ -459,7 +462,9 @@ export default { ...@@ -459,7 +462,9 @@ export default {
}, },
// 提交上传文件 // 提交上传文件
submitFileForm() { submitFileForm() {
this.$refs.upload.submit() if (!this.fileCopy) {
this.$refs.upload.submit()
}
}, },
//发票新增/编辑页面 //发票新增/编辑页面
goInvoiceOperate({ id, key }) { goInvoiceOperate({ id, key }) {
......
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