|
|
@@ -80,9 +80,10 @@
|
|
|
<el-button size="small" type="warning" :disabled="!form.id || detailData.seeDisabled || showLock"
|
|
|
v-if="form.status == 1 && form.billType != 'MH'" @click.stop="revokeDocumentApproval">撤销单据请核
|
|
|
</el-button>
|
|
|
- <el-button size="small" type="success" :disabled="!form.id || detailData.seeDisabled || showLock"
|
|
|
- v-if="(form.status == 0 || form.status == 4 && form.billType != 'MH')"
|
|
|
- @click.stop="DocumentApproval">单据请核
|
|
|
+ <el-button size="small" type="success" :disabled="!form.id || detailData.seeDisabled || showLock" v-if="
|
|
|
+ form.status == 0 ||
|
|
|
+ (form.status == 4 && form.billType != 'MH')
|
|
|
+ " @click.stop="DocumentApproval">单据请核
|
|
|
</el-button>
|
|
|
<el-button size="small" type="primary" style="margin-right: 8px"
|
|
|
:disabled="detailData.seeDisabled || showLock" :loading="saveLoading" @click="editCustomer">保 存
|
|
|
@@ -109,7 +110,8 @@
|
|
|
<containerTitle title="基础资料"></containerTitle>
|
|
|
<basic-container>
|
|
|
<el-row :gutter="60">
|
|
|
- <el-col v-for="(item, index) in basicData.column" :key="index" :span="8">
|
|
|
+ <el-col v-for="(item,
|
|
|
+ index) in basicData.column" :key="index" :span="8">
|
|
|
<!--数组-->
|
|
|
<div v-if="item instanceof Array"
|
|
|
style="display: flex;align-items: center;justify-content: space-between">
|
|
|
@@ -190,15 +192,10 @@
|
|
|
)
|
|
|
">
|
|
|
</search-query>
|
|
|
- <el-input v-else type="age" style="width: 100%;" v-model="form[
|
|
|
- item[0].prop
|
|
|
- ]
|
|
|
- " size="small" autocomplete="off" :disabled="detailData.seeDisabled ||
|
|
|
- item[0]
|
|
|
- .disabled
|
|
|
- " :placeholder="item[0].text ||
|
|
|
- ''
|
|
|
- "></el-input>
|
|
|
+ <el-input v-else type="age" style="width: 100%;" v-model="form[item[0].prop]
|
|
|
+ " size="small" autocomplete="off"
|
|
|
+ :disabled="detailData.seeDisabled || item[0].disabled || form.feeCenterListD.filter(item => item.auditStatus > 0).length || form.feeCenterListC.filter(item => item.auditStatus > 0).length"
|
|
|
+ :placeholder="item[0].text || ''"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="item[1].span
|
|
|
@@ -226,37 +223,13 @@
|
|
|
.disabled
|
|
|
" value-format="yyyy-MM-dd HH:mm" placeholder="选择日期">
|
|
|
</el-date-picker>
|
|
|
- <search-query v-else-if="
|
|
|
- item[1].type ==
|
|
|
- 'select'
|
|
|
- " :datalist="item[1].dicData
|
|
|
- " :selectValue="form[
|
|
|
- item[1].prop
|
|
|
- ]
|
|
|
- " :filterable="true" :remote="true" :disabled="detailData.seeDisabled ||
|
|
|
- item[1]
|
|
|
- .disabled
|
|
|
- " :buttonIf="false" :placeholder="`${item[1]
|
|
|
- .text ||
|
|
|
- ''}`
|
|
|
- " :forParameter="item[1]
|
|
|
- .forParameter
|
|
|
- " @remoteMethod="
|
|
|
- remoteMethod(
|
|
|
- $event,
|
|
|
- item[1].prop
|
|
|
- )
|
|
|
- " @corpChange="
|
|
|
- corpChange(
|
|
|
- $event,
|
|
|
- item[1].prop
|
|
|
- )
|
|
|
- " @corpFocus="
|
|
|
- remoteMethod(
|
|
|
- $event,
|
|
|
- item[1].prop
|
|
|
- )
|
|
|
- ">
|
|
|
+ <search-query v-else-if="item[1].type == 'select'"
|
|
|
+ :datalist="item[1].dicData" :selectValue="form[item[1].prop]" :filterable="true" :remote="true"
|
|
|
+ :disabled="detailData.seeDisabled || item[1].disabled || form.feeCenterListD.filter(item => item.auditStatus > 0).length || form.feeCenterListC.filter(item => item.auditStatus > 0).length"
|
|
|
+ :buttonIf="false" :placeholder="`${item[1].text || ''}`"
|
|
|
+ :forParameter="item[1].forParameter" @remoteMethod="remoteMethod($event, item[1].prop)"
|
|
|
+ @corpChange="corpChange($event, item[1].prop)"
|
|
|
+ @corpFocus="remoteMethod($event, item[1].prop)">
|
|
|
</search-query>
|
|
|
|
|
|
<tree-select v-else-if="
|
|
|
@@ -363,21 +336,20 @@
|
|
|
<search-query v-if="item.type == 'select'" ref="searchQueryRef"
|
|
|
:datalist="item.dicData" :selectValue="form[item.prop]
|
|
|
" :filterable="true" :clearable="false" :remote="true"
|
|
|
- :disabled="detailData.seeDisabled ||
|
|
|
- item.disabled
|
|
|
- " :buttonIf="item.buttonIf" :forParameter="item.forParameter
|
|
|
- " :placeholder="`${item.text || ''}`
|
|
|
- " :joinData="item.joinData" @remoteMethod="
|
|
|
- remoteMethod(
|
|
|
+ :disabled="detailData.seeDisabled || item.disabled || form.feeCenterListD.filter(item => item.auditStatus > 0).length || form.feeCenterListC.filter(item => item.auditStatus > 0).length"
|
|
|
+ :buttonIf="item.buttonIf" :forParameter="item.forParameter
|
|
|
+ " :placeholder="`${item.text || ''}`
|
|
|
+ " :joinData="item.joinData" @remoteMethod="
|
|
|
+ remoteMethod(
|
|
|
+ $event,
|
|
|
+ item.prop
|
|
|
+ )
|
|
|
+ " @corpChange="
|
|
|
+ corpChange(
|
|
|
$event,
|
|
|
item.prop
|
|
|
)
|
|
|
- " @corpChange="
|
|
|
- corpChange(
|
|
|
- $event,
|
|
|
- item.prop
|
|
|
- )
|
|
|
- " @corpFocus="
|
|
|
+ " @corpFocus="
|
|
|
remoteMethod(
|
|
|
$event,
|
|
|
item.prop
|
|
|
@@ -505,7 +477,7 @@
|
|
|
<!--预览报表弹窗-->
|
|
|
<el-dialog append-to-body title="预览报表" class="el-dialogDeep" :visible.sync="previewDialog" width="60%"
|
|
|
:close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" v-dialog-drag>
|
|
|
- <business-reports v-if='previewDialog' :id="form.id" :classifycode="getReportTypeByBigHandle()"
|
|
|
+ <business-reports v-if="previewDialog" :id="form.id" :classifycode="getReportTypeByBigHandle()"
|
|
|
:disabled="detailData.seeDisabled"></business-reports>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
@@ -520,35 +492,18 @@ import edicode from "@/views/iosBasicData/OceanFreightImport/bills/assembly/edic
|
|
|
import filescenter from "@/views/iosBasicData/OceanFreightImport/bills/assembly/filescenter.vue";
|
|
|
import DistributionBox from "@/views/iosBasicData/OceanFreightImport/bills/assembly/DistributionBox.vue";
|
|
|
import feecenter from "@/views/iosBasicData/OceanFreightImport/bills/assembly/feecenter.vue";
|
|
|
-import {
|
|
|
- getList as userGetList
|
|
|
-} from "@/api/system/user";
|
|
|
+import { getList as userGetList } from "@/api/system/user";
|
|
|
import SearchQuery from "@/components/iosbasic-data/searchquery.vue";
|
|
|
import TreeSelect from "@/components/iosbasic-data/TreeSelect.vue";
|
|
|
import bcorps from "@/views/iosBasicData/bcorps/index.vue";
|
|
|
import bcorpstypedefine from "@/views/iosBasicData/bcorps/bcorpstypedefine.vue";
|
|
|
import SplitList from "@/views/iosBasicData/OceanFreightImport/bills/assembly/SplitList.vue";
|
|
|
-import {
|
|
|
- getLazylist
|
|
|
-} from "@/api/basicData/agreement";
|
|
|
-import {
|
|
|
- getBcorpsList,
|
|
|
- getBcorpslistByType
|
|
|
-} from "@/api/iosBasicData/bcorps";
|
|
|
-import {
|
|
|
- getBlocationsList
|
|
|
-} from "@/api/iosBasicData/blocations";
|
|
|
-import {
|
|
|
- getBcorpsattnList
|
|
|
-} from "@/api/iosBasicData/bcorpsattn";
|
|
|
-import {
|
|
|
- getWorkDicts
|
|
|
-} from "@/api/system/dictbiz";
|
|
|
-import {
|
|
|
- getDeptLazyTree,
|
|
|
- getDeptTree,
|
|
|
- getLazyList
|
|
|
-} from "@/api/system/dept";
|
|
|
+import { getLazylist } from "@/api/basicData/agreement";
|
|
|
+import { getBcorpsList, getBcorpslistByType } from "@/api/iosBasicData/bcorps";
|
|
|
+import { getBlocationsList } from "@/api/iosBasicData/blocations";
|
|
|
+import { getBcorpsattnList } from "@/api/iosBasicData/bcorpsattn";
|
|
|
+import { getWorkDicts } from "@/api/system/dictbiz";
|
|
|
+import { getDeptLazyTree, getDeptTree, getLazyList } from "@/api/system/dept";
|
|
|
import {
|
|
|
billsCheckBills,
|
|
|
billsCopyBills,
|
|
|
@@ -569,36 +524,18 @@ import {
|
|
|
returningSecurityMoney,
|
|
|
revokeReturningSecurityMoney
|
|
|
} from "@/api/iosBasicData/bills";
|
|
|
-import {
|
|
|
- dateFormat
|
|
|
-} from "@/util/date";
|
|
|
+import { dateFormat } from "@/util/date";
|
|
|
import checkSchedule from "@/components/checkH/checkSchedule.vue";
|
|
|
-import {
|
|
|
- getBvesselsList
|
|
|
-} from "@/api/iosBasicData/bvessels";
|
|
|
+import { getBvesselsList } from "@/api/iosBasicData/bvessels";
|
|
|
import DocumentCenter from "@/views/iosBasicData/OceanFreightImport/bills/assembly/DocumentCenter.vue";
|
|
|
import businessReports from "@/views/iosBasicData/OceanFreightImport/bills/assembly/businessReports.vue";
|
|
|
-import {
|
|
|
- popupReminder
|
|
|
-} from "@/util/messageReminder";
|
|
|
+import { popupReminder } from "@/util/messageReminder";
|
|
|
import editypes from "@/views/iosBasicData/editypes/index.vue";
|
|
|
-import {
|
|
|
- editypesList
|
|
|
-} from "@/api/iosBasicData/editypes";
|
|
|
-import {
|
|
|
- verifyEnglish,
|
|
|
- checkFullWidthSymbols
|
|
|
-} from "@/util/date";
|
|
|
-import {
|
|
|
- contrastObj,
|
|
|
- contrastList
|
|
|
-} from "@/util/contrastData";
|
|
|
-import {
|
|
|
- selectListLos
|
|
|
-} from "@/api/approval/processConfig";
|
|
|
-import {
|
|
|
- isProcurement
|
|
|
-} from "@/api/basicData/configuration";
|
|
|
+import { editypesList } from "@/api/iosBasicData/editypes";
|
|
|
+import { verifyEnglish, checkFullWidthSymbols } from "@/util/date";
|
|
|
+import { contrastObj, contrastList } from "@/util/contrastData";
|
|
|
+import { selectListLos } from "@/api/approval/processConfig";
|
|
|
+import { isProcurement } from "@/api/basicData/configuration";
|
|
|
import _ from "lodash";
|
|
|
export default {
|
|
|
components: {
|
|
|
@@ -644,8 +581,10 @@ export default {
|
|
|
copyFormData: {}, // 详情的备份数据
|
|
|
// 详情数据
|
|
|
form: {
|
|
|
- branchId: JSON.parse(localStorage.getItem('sysitemData')).deptId,
|
|
|
- branchName: JSON.parse(localStorage.getItem('sysitemData')).deptName,
|
|
|
+ branchId: JSON.parse(localStorage.getItem("sysitemData"))
|
|
|
+ .deptId,
|
|
|
+ branchName: JSON.parse(localStorage.getItem("sysitemData"))
|
|
|
+ .deptName,
|
|
|
billDate: dateFormat(new Date(), "yyyy-MM-dd") + " 00:00", // 单据日期 默认 当天
|
|
|
operatorName: JSON.parse(localStorage.getItem("saber-userInfo"))
|
|
|
.content.user_name, // OP 默认登录人
|
|
|
@@ -658,10 +597,11 @@ export default {
|
|
|
issueType: "ORI", // 签单方式 默认 正本提单
|
|
|
mpaymode: "PP", // 主单付费方式 默认PP
|
|
|
hpaymode: "PP", // 分单付费方式 默认 PP
|
|
|
- loadType: JSON.parse(localStorage.getItem("saber-tenantId"))
|
|
|
- .content == "409341" ?
|
|
|
- "FCL" :
|
|
|
- "整箱", // 装箱方式默认整箱
|
|
|
+ loadType:
|
|
|
+ JSON.parse(localStorage.getItem("saber-tenantId"))
|
|
|
+ .content == "409341"
|
|
|
+ ? "FCL"
|
|
|
+ : "整箱", // 装箱方式默认整箱
|
|
|
srcType: "OWN", // 业务来源默认公司 来源 内容 默认登录人所属公司
|
|
|
numberOfObl: "THREE", // 正本份数 默认 THREE
|
|
|
numberOfCopy: "THREE", // 副本份数 默认 THREE
|
|
|
@@ -692,11 +632,15 @@ export default {
|
|
|
hmmEdi: {}
|
|
|
},
|
|
|
oldForm: {
|
|
|
- branchId: JSON.parse(localStorage.getItem('sysitemData')).deptId,
|
|
|
- branchName: JSON.parse(localStorage.getItem('sysitemData')).deptName,
|
|
|
+ branchId: JSON.parse(localStorage.getItem("sysitemData"))
|
|
|
+ .deptId,
|
|
|
+ branchName: JSON.parse(localStorage.getItem("sysitemData"))
|
|
|
+ .deptName,
|
|
|
billDate: dateFormat(new Date(), "yyyy-MM-dd") + " 00:00", // 单据日期 默认 当天
|
|
|
- operatorName: JSON.parse(localStorage.getItem("saber-userInfo")).content.user_name, // OP 默认登录人
|
|
|
- operatorId: JSON.parse(localStorage.getItem("saber-userInfo")).content.user_id, // OP 默认登录人
|
|
|
+ operatorName: JSON.parse(localStorage.getItem("saber-userInfo"))
|
|
|
+ .content.user_name, // OP 默认登录人
|
|
|
+ operatorId: JSON.parse(localStorage.getItem("saber-userInfo"))
|
|
|
+ .content.user_id, // OP 默认登录人
|
|
|
businessType: "SI", // 业务类型 默认 海运出口
|
|
|
businessTypes: "海运",
|
|
|
billType: "DD", // 单据类型 默认 直单
|
|
|
@@ -704,10 +648,11 @@ export default {
|
|
|
issueType: "ORI", // 签单方式 默认 正本提单
|
|
|
mpaymode: "PP", // 主单付费方式 默认PP
|
|
|
hpaymode: "PP", // 分单付费方式 默认 PP
|
|
|
- loadType: JSON.parse(localStorage.getItem("saber-tenantId"))
|
|
|
- .content == "409341" ?
|
|
|
- "FCL" :
|
|
|
- "整箱", // 装箱方式默认整箱
|
|
|
+ loadType:
|
|
|
+ JSON.parse(localStorage.getItem("saber-tenantId"))
|
|
|
+ .content == "409341"
|
|
|
+ ? "FCL"
|
|
|
+ : "整箱", // 装箱方式默认整箱
|
|
|
srcType: "OWN", // 业务来源默认公司 来源 内容 默认登录人所属公司
|
|
|
numberOfObl: "THREE", // 正本份数 默认 THREE
|
|
|
numberOfCopy: "THREE", // 副本份数 默认 THREE
|
|
|
@@ -739,66 +684,70 @@ export default {
|
|
|
},
|
|
|
// 循环的配置
|
|
|
basicData: {
|
|
|
- column: [{
|
|
|
- label: "客户简称", // 调往来单位接口
|
|
|
- prop: "corpCnName",
|
|
|
- text: "请选择客户名称",
|
|
|
- type: "select",
|
|
|
- dicData: [],
|
|
|
- disabled: false,
|
|
|
- buttonIf: true,
|
|
|
- joinData: true,
|
|
|
- slot: "bcorps",
|
|
|
- display: true,
|
|
|
- forParameter: {
|
|
|
- key: "id",
|
|
|
- label: "cnName",
|
|
|
- value: "cnName",
|
|
|
- short: "shortName"
|
|
|
+ column: [
|
|
|
+ {
|
|
|
+ label: "客户简称", // 调往来单位接口
|
|
|
+ prop: "corpCnName",
|
|
|
+ text: "请选择客户名称",
|
|
|
+ type: "select",
|
|
|
+ dicData: [],
|
|
|
+ disabled: false,
|
|
|
+ buttonIf: true,
|
|
|
+ joinData: true,
|
|
|
+ slot: "bcorps",
|
|
|
+ display: true,
|
|
|
+ forParameter: {
|
|
|
+ key: "id",
|
|
|
+ label: "cnName",
|
|
|
+ value: "cnName",
|
|
|
+ short: "shortName"
|
|
|
+ },
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: " ",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
- rules: [{
|
|
|
- required: true,
|
|
|
- message: " ",
|
|
|
- trigger: "blur"
|
|
|
- }]
|
|
|
- },
|
|
|
- {
|
|
|
- label: "booking NO", // 订舱号
|
|
|
- text: "请输入booking NO",
|
|
|
- prop: "bookingNo",
|
|
|
- disabled: false,
|
|
|
- display: true,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "HB/L NO",
|
|
|
- text: "请输入MB/L NO",
|
|
|
- prop: "hblno",
|
|
|
- disabled: false,
|
|
|
- display: false,
|
|
|
- },
|
|
|
- [{
|
|
|
- label: "MB/L NO",
|
|
|
- text: "请输入MB/L NO",
|
|
|
- prop: "mblno",
|
|
|
- span: 18,
|
|
|
- disabled: false,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "", // MB/L 付款方式 PP=预付, CC=到付, FPA, Other
|
|
|
- text: "请选择付款方式",
|
|
|
- prop: "mpaymode",
|
|
|
- type: 'select',
|
|
|
- labelWidth: '30px',
|
|
|
- disabled: false,
|
|
|
- span: 6,
|
|
|
- dicData: [],
|
|
|
- forParameter: {
|
|
|
- key: 'dictKey',
|
|
|
- label: 'dictValue',
|
|
|
- value: 'dictKey',
|
|
|
+ {
|
|
|
+ label: "booking NO", // 订舱号
|
|
|
+ text: "请输入booking NO",
|
|
|
+ prop: "bookingNo",
|
|
|
+ disabled: false,
|
|
|
+ display: true
|
|
|
},
|
|
|
- },
|
|
|
- ],
|
|
|
+ {
|
|
|
+ label: "HB/L NO",
|
|
|
+ text: "请输入MB/L NO",
|
|
|
+ prop: "hblno",
|
|
|
+ disabled: false,
|
|
|
+ display: false
|
|
|
+ },
|
|
|
+ [
|
|
|
+ {
|
|
|
+ label: "MB/L NO",
|
|
|
+ text: "请输入MB/L NO",
|
|
|
+ prop: "mblno",
|
|
|
+ span: 18,
|
|
|
+ disabled: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "", // MB/L 付款方式 PP=预付, CC=到付, FPA, Other
|
|
|
+ text: "请选择付款方式",
|
|
|
+ prop: "mpaymode",
|
|
|
+ type: "select",
|
|
|
+ labelWidth: "30px",
|
|
|
+ disabled: false,
|
|
|
+ span: 6,
|
|
|
+ dicData: [],
|
|
|
+ forParameter: {
|
|
|
+ key: "dictKey",
|
|
|
+ label: "dictValue",
|
|
|
+ value: "dictKey"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
// [
|
|
|
// {
|
|
|
// label: "OP", // 操作id 用户管理下拉 模糊搜索
|
|
|
@@ -844,94 +793,98 @@ export default {
|
|
|
saberUserInfo: {}, // 当前登录人信息
|
|
|
roleName: [], // 当前的角色权限
|
|
|
// 需要加判断是否必填的数据
|
|
|
- messageData: [{
|
|
|
- name: "客户",
|
|
|
- value: "corpCnName"
|
|
|
- },
|
|
|
- {
|
|
|
- name: "业务来源",
|
|
|
- value: "srcType"
|
|
|
- },
|
|
|
- {
|
|
|
- name: "MBLNO",
|
|
|
- value: "mblno"
|
|
|
- },
|
|
|
- // {
|
|
|
- // name: 'booking NO',
|
|
|
- // value: 'bookingNo',
|
|
|
- // },
|
|
|
- // {
|
|
|
- // name: 'REF MBLNO',
|
|
|
- // value: 'refno',
|
|
|
- // },
|
|
|
- {
|
|
|
- name: "船名(VSL)",
|
|
|
- value: "vesselCnName"
|
|
|
- },
|
|
|
- {
|
|
|
- name: "航次(VOY)",
|
|
|
- value: "voyageNo"
|
|
|
- },
|
|
|
- // {
|
|
|
- // name: 'ETD',
|
|
|
- // value: 'etd',
|
|
|
- // },
|
|
|
- {
|
|
|
- name: "装货港",
|
|
|
- value: "polCnName"
|
|
|
- },
|
|
|
- {
|
|
|
- name: "目的港",
|
|
|
- value: "destinationNamePrint"
|
|
|
- },
|
|
|
- // {
|
|
|
- // name: '包装单位',
|
|
|
- // value: 'packingUnit',
|
|
|
- // },
|
|
|
- {
|
|
|
- name: "船公司",
|
|
|
- value: "carrierCnName"
|
|
|
- },
|
|
|
- {
|
|
|
- name: "场站",
|
|
|
- value: "cyCnName"
|
|
|
- }
|
|
|
+ messageData: [
|
|
|
+ {
|
|
|
+ name: "客户",
|
|
|
+ value: "corpCnName"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "业务来源",
|
|
|
+ value: "srcType"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "MBLNO",
|
|
|
+ value: "mblno"
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // name: 'booking NO',
|
|
|
+ // value: 'bookingNo',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // name: 'REF MBLNO',
|
|
|
+ // value: 'refno',
|
|
|
+ // },
|
|
|
+ {
|
|
|
+ name: "船名(VSL)",
|
|
|
+ value: "vesselCnName"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "航次(VOY)",
|
|
|
+ value: "voyageNo"
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // name: 'ETD',
|
|
|
+ // value: 'etd',
|
|
|
+ // },
|
|
|
+ {
|
|
|
+ name: "装货港",
|
|
|
+ value: "polCnName"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "目的港",
|
|
|
+ value: "destinationNamePrint"
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // name: '包装单位',
|
|
|
+ // value: 'packingUnit',
|
|
|
+ // },
|
|
|
+ {
|
|
|
+ name: "船公司",
|
|
|
+ value: "carrierCnName"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "场站",
|
|
|
+ value: "podCyCnName"
|
|
|
+ }
|
|
|
],
|
|
|
- imporiData: [{
|
|
|
- id: 0,
|
|
|
- name: "导入 ONE 模板"
|
|
|
- },
|
|
|
- {
|
|
|
- id: 1,
|
|
|
- name: "导入 PIL 订舱模板"
|
|
|
- },
|
|
|
- {
|
|
|
- id: 2,
|
|
|
- name: "导入截单格式"
|
|
|
- },
|
|
|
- {
|
|
|
- id: 3,
|
|
|
- name: "导入海信提单"
|
|
|
- }
|
|
|
+ imporiData: [
|
|
|
+ {
|
|
|
+ id: 0,
|
|
|
+ name: "导入 ONE 模板"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 1,
|
|
|
+ name: "导入 PIL 订舱模板"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 2,
|
|
|
+ name: "导入截单格式"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 3,
|
|
|
+ name: "导入海信提单"
|
|
|
+ }
|
|
|
],
|
|
|
excelForm: {},
|
|
|
excelLoading: false,
|
|
|
excelOption: {
|
|
|
submitBtn: false,
|
|
|
emptyBtn: false,
|
|
|
- column: [{
|
|
|
- label: "模板上传",
|
|
|
- prop: "excelFile",
|
|
|
- type: "upload",
|
|
|
- drag: true,
|
|
|
- loadText: "模板上传中,请稍等",
|
|
|
- span: 24,
|
|
|
- propsHttp: {
|
|
|
- res: "data"
|
|
|
- },
|
|
|
- tip: "请上传 .xls,.xlsx 标准格式文件",
|
|
|
- action: "api/blade-los/templateImport/importOne"
|
|
|
- }]
|
|
|
+ column: [
|
|
|
+ {
|
|
|
+ label: "模板上传",
|
|
|
+ prop: "excelFile",
|
|
|
+ type: "upload",
|
|
|
+ drag: true,
|
|
|
+ loadText: "模板上传中,请稍等",
|
|
|
+ span: 24,
|
|
|
+ propsHttp: {
|
|
|
+ res: "data"
|
|
|
+ },
|
|
|
+ tip: "请上传 .xls,.xlsx 标准格式文件",
|
|
|
+ action: "api/blade-los/templateImport/importOne"
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
excelBox: false,
|
|
|
saberTenantId: 0
|
|
|
@@ -1117,22 +1070,25 @@ export default {
|
|
|
submitText: "确认",
|
|
|
emptyText: "取消",
|
|
|
span: 24,
|
|
|
- column: [{
|
|
|
- label: "复制类型",
|
|
|
- prop: "checkbox",
|
|
|
- type: "checkbox",
|
|
|
- dicData: [{
|
|
|
- label: "复制费用",
|
|
|
- value: "复制费用"
|
|
|
- },
|
|
|
+ column: [
|
|
|
{
|
|
|
- label: "复制箱型箱量",
|
|
|
- value: "复制箱型箱量"
|
|
|
+ label: "复制类型",
|
|
|
+ prop: "checkbox",
|
|
|
+ type: "checkbox",
|
|
|
+ dicData: [
|
|
|
+ {
|
|
|
+ label: "复制费用",
|
|
|
+ value: "复制费用"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "复制箱型箱量",
|
|
|
+ value: "复制箱型箱量"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ dataType: "string",
|
|
|
+ span: 24
|
|
|
}
|
|
|
- ],
|
|
|
- dataType: "string",
|
|
|
- span: 24
|
|
|
- }]
|
|
|
+ ]
|
|
|
},
|
|
|
beforeClose: done => {
|
|
|
done();
|
|
|
@@ -1147,17 +1103,13 @@ export default {
|
|
|
//文档导入
|
|
|
importData(row) {
|
|
|
if (row == 0) {
|
|
|
- this.excelOption.column[0].action =
|
|
|
- `/api/blade-los/templateImport/importOne?billId=${this.form.id}`;
|
|
|
+ this.excelOption.column[0].action = `/api/blade-los/templateImport/importOne?billId=${this.form.id}`;
|
|
|
} else if (row == 1) {
|
|
|
- this.excelOption.column[0].action =
|
|
|
- `/api/blade-los/templateImport/importPilBooking?billId=${this.form.id}`;
|
|
|
+ this.excelOption.column[0].action = `/api/blade-los/templateImport/importPilBooking?billId=${this.form.id}`;
|
|
|
} else if (row == 2) {
|
|
|
- this.excelOption.column[0].action =
|
|
|
- `/api/blade-los/templateImport/importPilCutOffOrders?billId=${this.form.id}`;
|
|
|
+ this.excelOption.column[0].action = `/api/blade-los/templateImport/importPilCutOffOrders?billId=${this.form.id}`;
|
|
|
} else if (row == 3) {
|
|
|
- this.excelOption.column[0].action =
|
|
|
- `/api/blade-los/templateImport/importHisenseBill?billId=${this.form.id}`;
|
|
|
+ this.excelOption.column[0].action = `/api/blade-los/templateImport/importHisenseBill?billId=${this.form.id}`;
|
|
|
}
|
|
|
this.excelBox = true;
|
|
|
},
|
|
|
@@ -1557,7 +1509,7 @@ export default {
|
|
|
},
|
|
|
// 报表弹窗
|
|
|
previewDialogfun() {
|
|
|
- this.getReportTypeByBigHandle('业务')
|
|
|
+ this.getReportTypeByBigHandle("业务");
|
|
|
this.previewDialog = true;
|
|
|
},
|
|
|
//请核关闭
|
|
|
@@ -1569,20 +1521,34 @@ export default {
|
|
|
deptGetDetailPol(this.saberUserInfo.dept_pid.split(",")[0]).then(
|
|
|
res => {
|
|
|
// 收货地
|
|
|
- this.form.placeReceiptName = res.data.data.polEnName ? res.data.data.polEnName.split(",")[
|
|
|
- 0] : null;
|
|
|
- this.form.placeReceiptId = res.data.data.polId ? res.data.data.polId.split(",")[0] : null;
|
|
|
- this.form.placeReceiptCode = res.data.data.polCode ? res.data.data.polCode.split(",")[0] :
|
|
|
- null;
|
|
|
- this.form.placeReceiptNamePrint = res.data.data.polEnName ? res.data.data.polEnName.split(
|
|
|
- ",")[0] : null;
|
|
|
+ this.form.placeReceiptName = res.data.data.polEnName
|
|
|
+ ? res.data.data.polEnName.split(",")[0]
|
|
|
+ : null;
|
|
|
+ this.form.placeReceiptId = res.data.data.polId
|
|
|
+ ? res.data.data.polId.split(",")[0]
|
|
|
+ : null;
|
|
|
+ this.form.placeReceiptCode = res.data.data.polCode
|
|
|
+ ? res.data.data.polCode.split(",")[0]
|
|
|
+ : null;
|
|
|
+ this.form.placeReceiptNamePrint = res.data.data.polEnName
|
|
|
+ ? res.data.data.polEnName.split(",")[0]
|
|
|
+ : null;
|
|
|
// 装货港
|
|
|
- this.form.polCnName = res.data.data.polCnName ? res.data.data.polCnName.split(",")[0] : null
|
|
|
- this.form.polEnName = res.data.data.polEnName ? res.data.data.polEnName.split(",")[0] : null
|
|
|
- this.form.polId = res.data.data.polId ? res.data.data.polId.split(",")[0] : null
|
|
|
- this.form.polCode = res.data.data.polCode ? res.data.data.polCode.split(",")[0] : null
|
|
|
- this.form.polNamePrint = res.data.data.polEnName ? res.data.data.polEnName.split(",")[0] :
|
|
|
- null
|
|
|
+ this.form.polCnName = res.data.data.polCnName
|
|
|
+ ? res.data.data.polCnName.split(",")[0]
|
|
|
+ : null;
|
|
|
+ this.form.polEnName = res.data.data.polEnName
|
|
|
+ ? res.data.data.polEnName.split(",")[0]
|
|
|
+ : null;
|
|
|
+ this.form.polId = res.data.data.polId
|
|
|
+ ? res.data.data.polId.split(",")[0]
|
|
|
+ : null;
|
|
|
+ this.form.polCode = res.data.data.polCode
|
|
|
+ ? res.data.data.polCode.split(",")[0]
|
|
|
+ : null;
|
|
|
+ this.form.polNamePrint = res.data.data.polEnName
|
|
|
+ ? res.data.data.polEnName.split(",")[0]
|
|
|
+ : null;
|
|
|
// 签单地点 默认 装货港
|
|
|
this.$set(this.form, "issueAtId", this.form.polId);
|
|
|
this.$set(this.form, "issueAt", this.form.polEnName);
|
|
|
@@ -1631,10 +1597,10 @@ export default {
|
|
|
},
|
|
|
// 获取付款方式字典数据
|
|
|
mpaymodeWorkDictsfun() {
|
|
|
- getWorkDicts('payment_method_los').then((res) => {
|
|
|
- this.columnforfun('mpaymode').dicData = res.data.data
|
|
|
+ getWorkDicts("payment_method_los").then(res => {
|
|
|
+ this.columnforfun("mpaymode").dicData = res.data.data;
|
|
|
// this.columnforfun('hpaymode').dicData = res.data.data
|
|
|
- })
|
|
|
+ });
|
|
|
},
|
|
|
// 获取核算部分数据 // 机构管理接口
|
|
|
getLazylistfun() {
|
|
|
@@ -2107,15 +2073,25 @@ export default {
|
|
|
// }
|
|
|
// }
|
|
|
// }
|
|
|
- else if (name == 'mpaymode') {
|
|
|
+ else if (name == "mpaymode") {
|
|
|
// 主单付费方式
|
|
|
- this.form[name] = value
|
|
|
- if (value == 'PP') {
|
|
|
- this.$set(this.form, 'mpayplace', this.form.polEnName ? this.form.polEnName.split(' - ')[0] :
|
|
|
- '')
|
|
|
+ this.form[name] = value;
|
|
|
+ if (value == "PP") {
|
|
|
+ this.$set(
|
|
|
+ this.form,
|
|
|
+ "mpayplace",
|
|
|
+ this.form.polEnName
|
|
|
+ ? this.form.polEnName.split(" - ")[0]
|
|
|
+ : ""
|
|
|
+ );
|
|
|
} else {
|
|
|
- this.$set(this.form, 'mpayplace', this.form.podEnName ? this.form.podEnName.split(' - ')[0] :
|
|
|
- '')
|
|
|
+ this.$set(
|
|
|
+ this.form,
|
|
|
+ "mpayplace",
|
|
|
+ this.form.podEnName
|
|
|
+ ? this.form.podEnName.split(" - ")[0]
|
|
|
+ : ""
|
|
|
+ );
|
|
|
}
|
|
|
}
|
|
|
// else if (name == 'hpaymode') {
|
|
|
@@ -2305,7 +2281,8 @@ export default {
|
|
|
this.pageLoading = true;
|
|
|
billsCheckBills({
|
|
|
id: this.form.id,
|
|
|
- url: "/iosBasicData/OceanFreightImport/bills/approvalDetails",
|
|
|
+ url:
|
|
|
+ "/iosBasicData/OceanFreightImport/bills/approvalDetails",
|
|
|
pageStatus: "this.$store.getters.approvalDetails",
|
|
|
pageLabel: "审批详情(F)"
|
|
|
})
|
|
|
@@ -2396,25 +2373,20 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
for (let item of this.form.feeCenterListD) {
|
|
|
- if (
|
|
|
- !item.corpId ||
|
|
|
- !item.feeId ||
|
|
|
- !item.curCode
|
|
|
- ) {
|
|
|
+ if (!item.corpId || !item.feeId || !item.curCode) {
|
|
|
msgs.push(
|
|
|
`应收第${item.$index + 1}行${!item.corpId ? " 往来单位" : ""
|
|
|
- }${!item.feeId ? " 费用简称" : ""}${!item.curCode ? " 币种" : ""}`
|
|
|
+ }${!item.feeId ? " 费用简称" : ""}${!item.curCode ? " 币种" : ""
|
|
|
+ }`
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
for (let item of this.form.feeCenterListC) {
|
|
|
- if (
|
|
|
- !item.corpId ||
|
|
|
- !item.feeId ||
|
|
|
- !item.curCode
|
|
|
- ) {
|
|
|
+ if (!item.corpId || !item.feeId || !item.curCode) {
|
|
|
msgs.push(
|
|
|
- `应付第${item.$index + 1}行${!item.corpId ? " 往来单位" : ""}${!item.feeId ? " 费用简称" : ""}${!item.curCode ? " 币种" : ""}`
|
|
|
+ `应付第${item.$index + 1}行${!item.corpId ? " 往来单位" : ""
|
|
|
+ }${!item.feeId ? " 费用简称" : ""}${!item.curCode ? " 币种" : ""
|
|
|
+ }`
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
@@ -2748,23 +2720,23 @@ export default {
|
|
|
// 税额 = 净额 * 总税率
|
|
|
// 含税
|
|
|
if (row.curCode == this.getLocalCurrency()) {
|
|
|
- row.amount = row.rmbAmount ?
|
|
|
- row.rmbAmount :
|
|
|
- (Number(row.quantity) * Number(row.price)).toFixed(2);
|
|
|
+ row.amount = row.rmbAmount
|
|
|
+ ? row.rmbAmount
|
|
|
+ : (Number(row.quantity) * Number(row.price)).toFixed(2);
|
|
|
} else {
|
|
|
- row.amount = row.usdAmount ?
|
|
|
- row.usdAmount :
|
|
|
- (Number(row.quantity) * Number(row.price)).toFixed(2);
|
|
|
+ row.amount = row.usdAmount
|
|
|
+ ? row.usdAmount
|
|
|
+ : (Number(row.quantity) * Number(row.price)).toFixed(2);
|
|
|
}
|
|
|
// 净额
|
|
|
if (row.curCode == this.getLocalCurrency()) {
|
|
|
- row.amountNet = row.rmbAmountNet ?
|
|
|
- row.rmbAmountNet :
|
|
|
- (Number(row.quantity) * Number(row.price)).toFixed(2);
|
|
|
+ row.amountNet = row.rmbAmountNet
|
|
|
+ ? row.rmbAmountNet
|
|
|
+ : (Number(row.quantity) * Number(row.price)).toFixed(2);
|
|
|
} else {
|
|
|
- row.amountNet = row.usdAmountNet ?
|
|
|
- row.usdAmountNet :
|
|
|
- (Number(row.quantity) * Number(row.price)).toFixed(2);
|
|
|
+ row.amountNet = row.usdAmountNet
|
|
|
+ ? row.usdAmountNet
|
|
|
+ : (Number(row.quantity) * Number(row.price)).toFixed(2);
|
|
|
}
|
|
|
});
|
|
|
// 费用 付 赋值数据
|
|
|
@@ -2803,23 +2775,23 @@ export default {
|
|
|
// 税额 = 净额 * 总税率
|
|
|
// 含税
|
|
|
if (row.curCode == this.getLocalCurrency()) {
|
|
|
- row.amount = row.rmbAmount ?
|
|
|
- row.rmbAmount :
|
|
|
- (Number(row.quantity) * Number(row.price)).toFixed(2);
|
|
|
+ row.amount = row.rmbAmount
|
|
|
+ ? row.rmbAmount
|
|
|
+ : (Number(row.quantity) * Number(row.price)).toFixed(2);
|
|
|
} else {
|
|
|
- row.amount = row.usdAmount ?
|
|
|
- row.usdAmount :
|
|
|
- (Number(row.quantity) * Number(row.price)).toFixed(2);
|
|
|
+ row.amount = row.usdAmount
|
|
|
+ ? row.usdAmount
|
|
|
+ : (Number(row.quantity) * Number(row.price)).toFixed(2);
|
|
|
}
|
|
|
// 净额
|
|
|
if (row.curCode == this.getLocalCurrency()) {
|
|
|
- row.amountNet = row.rmbAmountNet ?
|
|
|
- row.rmbAmountNet :
|
|
|
- (Number(row.quantity) * Number(row.price)).toFixed(2);
|
|
|
+ row.amountNet = row.rmbAmountNet
|
|
|
+ ? row.rmbAmountNet
|
|
|
+ : (Number(row.quantity) * Number(row.price)).toFixed(2);
|
|
|
} else {
|
|
|
- row.amountNet = row.usdAmountNet ?
|
|
|
- row.usdAmountNet :
|
|
|
- (Number(row.quantity) * Number(row.price)).toFixed(2);
|
|
|
+ row.amountNet = row.usdAmountNet
|
|
|
+ ? row.usdAmountNet
|
|
|
+ : (Number(row.quantity) * Number(row.price)).toFixed(2);
|
|
|
}
|
|
|
});
|
|
|
this.pageLoading = true;
|
|
|
@@ -2884,7 +2856,7 @@ export default {
|
|
|
});
|
|
|
let res = await billsCopyBills({
|
|
|
id
|
|
|
- })
|
|
|
+ });
|
|
|
loading.close();
|
|
|
let types = typeof type == "string" ? type.split(",") : [];
|
|
|
// if (type == '复制费用' || type == '') {
|
|
|
@@ -2901,7 +2873,7 @@ export default {
|
|
|
res.data.data.feeCenterListD = [];
|
|
|
res.data.data.feeCenterListC = [];
|
|
|
}
|
|
|
- await this.saveLocalCurrency(res.data.data.branchId)
|
|
|
+ await this.saveLocalCurrency(res.data.data.branchId);
|
|
|
this.form = res.data.data;
|
|
|
this.pageLoading = false;
|
|
|
// this.searchMontage() // 下拉 中文名称和编号拼接
|
|
|
@@ -2975,11 +2947,11 @@ export default {
|
|
|
|
|
|
this.copyFormData = JSON.parse(JSON.stringify(res.data.data));
|
|
|
// 如果已经请核就禁用按钮
|
|
|
- // if (this.form.status == 1 || this.form.status == 2 || this.form.status == 3) {
|
|
|
- // this.detailData.seeDisabled = true
|
|
|
- // }else {
|
|
|
- // this.detailData.seeDisabled = false
|
|
|
- // }
|
|
|
+ if (this.form.status == 1 || this.form.status == 2 || this.form.status == 3) {
|
|
|
+ this.detailData.seeDisabled = true
|
|
|
+ }else {
|
|
|
+ this.detailData.seeDisabled = false
|
|
|
+ }
|
|
|
// this.columnforfun('teamName').disabled = true
|
|
|
|
|
|
// this.columnforfun('operatorName').disabled = true
|
|
|
@@ -3029,13 +3001,12 @@ export default {
|
|
|
for (let item of this.form.feeCenterListD) {
|
|
|
// 判断是否生成了账单
|
|
|
if (item.accStatus == 1) {
|
|
|
+ this.generateBillsfalse = true;
|
|
|
this.columnforfun("corpCnName").disabled = true;
|
|
|
- this.columnforfun("srcType").disabled = true;
|
|
|
+ // this.columnforfun('srcType').disabled = true
|
|
|
this.columnforfun("mblno").disabled = true;
|
|
|
this.columnforfun("bookingNo").disabled = true;
|
|
|
- this.columnforfun("refno").disabled = true;
|
|
|
- this.columnforfun("teamName").disabled = true;
|
|
|
- this.generateBillsfalse = true;
|
|
|
+ // this.columnforfun('refno').disabled = true
|
|
|
}
|
|
|
if (item.curCode == this.getLocalCurrency()) {
|
|
|
this.$set(item, "rmbAmount", item.amount);
|
|
|
@@ -3056,11 +3027,10 @@ export default {
|
|
|
if (item.accStatus == 1) {
|
|
|
this.generateBillsfalse = true;
|
|
|
this.columnforfun("corpCnName").disabled = true;
|
|
|
- this.columnforfun("srcType").disabled = true;
|
|
|
+ // this.columnforfun('srcType').disabled = true
|
|
|
this.columnforfun("mblno").disabled = true;
|
|
|
this.columnforfun("bookingNo").disabled = true;
|
|
|
- this.columnforfun("refno").disabled = true;
|
|
|
- this.columnforfun("teamName").disabled = true;
|
|
|
+ // this.columnforfun('refno').disabled = true
|
|
|
}
|
|
|
if (item.curCode == this.getLocalCurrency()) {
|
|
|
this.$set(item, "rmbAmount", item.amount);
|
|
|
@@ -3089,22 +3059,21 @@ export default {
|
|
|
handleClick(tba, event) { },
|
|
|
// 大tbas切换
|
|
|
bigHandleClick() {
|
|
|
- if (this.bigtabs == 'fd') {
|
|
|
+ if (this.bigtabs == "fd") {
|
|
|
if (this.form.id) {
|
|
|
- this.billsListAllfun(this.form.id)
|
|
|
+ this.billsListAllfun(this.form.id);
|
|
|
}
|
|
|
}
|
|
|
- if (this.bigtabs == 'dz') {
|
|
|
+ if (this.bigtabs == "dz") {
|
|
|
if (this.form.id) {
|
|
|
this.$refs.documentCenter.reportslogListfun({
|
|
|
currentPage: 1,
|
|
|
pageSize: 10
|
|
|
- })
|
|
|
+ });
|
|
|
}
|
|
|
- this.getReportTypeByBigHandle('单证')
|
|
|
+ this.getReportTypeByBigHandle("单证");
|
|
|
}
|
|
|
- if (this.bigtabs == 'fy') this.getReportTypeByBigHandle('费用')
|
|
|
-
|
|
|
+ if (this.bigtabs == "fy") this.getReportTypeByBigHandle("费用");
|
|
|
},
|
|
|
getReportTypeByBigHandle(name) {
|
|
|
return name;
|