diff --git a/src/api/modular/main/TaskmanageList.js b/src/api/modular/main/TaskmanageList.js index 869ece8..24f3eae 100644 --- a/src/api/modular/main/TaskmanageList.js +++ b/src/api/modular/main/TaskmanageList.js @@ -335,3 +335,10 @@ export function TaskManageBCSendEmai1(parameter) { params: parameter }) } +export function TaskManageBCGetCompareResult(parameter) { + return axios({ + url: '/TaskManageBC/GetCompareResult', + method: 'get', + params: parameter + }) +} diff --git a/src/api/modular/main/mailSetting.js b/src/api/modular/main/mailSetting.js index 3986a03..b60e7ce 100644 --- a/src/api/modular/main/mailSetting.js +++ b/src/api/modular/main/mailSetting.js @@ -174,3 +174,27 @@ export function EmaiReceiveRecordReParseEmailBatch(parameter) { data: parameter }) } + +export function FeeCustTemplatePage(parameter) { + return axios({ + url: '/FeeCustTemplate/Page', + method: 'get', + params: parameter + }) +} + +export function FeeCustTemplateSave(parameter) { + return axios({ + url: '/FeeCustTemplate/Save', + method: 'post', + data: parameter + }) +} + +export function FeeCustTemplateDelete(parameter) { + return axios({ + url: '/FeeCustTemplate/Delete', + method: 'post', + data: parameter + }) +} diff --git a/src/router/generator-routers.js b/src/router/generator-routers.js index 124e331..a7e50e6 100644 --- a/src/router/generator-routers.js +++ b/src/router/generator-routers.js @@ -39,6 +39,8 @@ const constantRouterComponents = { TaskOriginalLost: () => import('@/views/main/Taskmanage/TaskOriginalLost'), TaskChangeShip: () => import('@/views/main/Taskmanage/TaskChangeShip'), BcFileDetail: () => import('@/views/main/Taskmanage/BcFileDetail'), + BCModify: () => import('@/views/main/Taskmanage/BCModify/index'), + cancellation: () => import('@/views/main/Taskmanage/cancellation/index'), BcEditing: () => import('@/views/main/Taskmanage/BcFileDetail/Editing'), BookingDetailTest: () => import('@/views/main/BookingLedger/detail/BookingDetailTest'), BookingCustomerDetail: () => import('@/views/main/BookingCustomerLedger/detail') @@ -177,6 +179,28 @@ const userAccount = [ }, component: 'BcEditing' }, + { + name: 'BCModify', + path: '/commontaskmanage/BCModify', + pid: 0, + id: 183190, + meta: { + title: 'BC变更', + show: false + }, + component: 'BCModify' + }, + { + name: 'Cancellation', + path: '/commontaskmanage/Cancellation', + pid: 0, + id: 183191, + meta: { + title: 'Cancellation', + show: false + }, + component: 'cancellation' + }, { name: 'TaskmanageDetail', path: '/commontaskmanage/TaskmanageDetail', diff --git a/src/utils/request.js b/src/utils/request.js index 50a75a1..af3cf81 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -5,7 +5,7 @@ import { message, Modal, notification } from 'ant-design-vue' /// es/notificatio import { VueAxios } from './axios' import { ACCESS_TOKEN, X_ACCESS_TOKEN } from '@/store/mutation-types' -// 创建 axios 实例 +// 创建 axios 实例ACCESS_TOKEN const service = axios.create({ // baseURL: '/api', // api base_url baseURL: process.env.VUE_APP_API_BASE_URL, // 不用代理就用这个 diff --git a/src/views/main/BookingLedger/detail/index.vue b/src/views/main/BookingLedger/detail/index.vue index 497a917..4802f24 100644 --- a/src/views/main/BookingLedger/detail/index.vue +++ b/src/views/main/BookingLedger/detail/index.vue @@ -39,6 +39,10 @@ +
  • + + +
  • @@ -106,6 +110,13 @@ isParent="parent" @changeDetail="changeDetailFun">
    +
    + +
    @@ -435,10 +446,17 @@ export default { if (nVal == '1-1') { document.querySelector('#tab1').checked = true document.querySelector('#tab2').checked = false + document.querySelector('#tab3').checked = false } if (nVal == '2-2') { document.querySelector('#tab2').checked = true document.querySelector('#tab1').checked = false + document.querySelector('#tab3').checked = false + } + if (nVal == '3-3') { + document.querySelector('#tab3').checked = true + document.querySelector('#tab1').checked = false + document.querySelector('#tab2').checked = false } } } @@ -611,6 +629,34 @@ export default { // this.$refs.basicInfo.refresh() // this.$refs.goodsTable.tableData = data.data2 }, + sendMessageFY() { + const mapFrame = this.$refs['iframe'] + const data = { + custno: this.bookingDetails.custno, + mblno: this.bookingDetails.mblno, + cntrtotal: this.bookingDetails.cntrtotal, + cbm: this.bookingDetails.cbm, + kgs: this.bookingDetails.kgs, + pkgs: this.bookingDetails.pkgs, + customername: this.bookingDetails.customername, + portdischarge: this.bookingDetails.portdischarge, + vessel: this.bookingDetails.vessel, + voyno: this.bookingDetails.voyno, + sale: this.bookingDetails.sale, + etd: this.bookingDetails.etd, + blfrt: this.bookingDetails.blfrt, + destination: this.bookingDetails.destination, + portload: this.bookingDetails.portload, + id: this.bookingDetails.id + } + const iframeWin = mapFrame.contentWindow + console.log(mapFrame.contentWindow) + iframeWin.postMessage( + { + token: localStorage.getItem('pro__Access-Token'), + data: data + }, '*') + }, ...mapActions(['setNeedSavePages', 'setBookingList', 'setBookingGridOptions', 'setInBookingDetailsSave', 'setSET_SAVEFLAG']), getRouterHis() { this.inChildLoading = true @@ -782,7 +828,7 @@ export default { }, 200) setTimeout(() => { const key = this.$route.fullPath - + this.sendMessageFY() setTimeout(() => { const detailsChange = Object.keys(this.needSavePages).includes(key) ? !!this.needSavePages[key].details @@ -1198,6 +1244,7 @@ export default { const $BookingEDIExt = { ...JSON.parse(JSON.stringify(bookingEDIExt)), ...res.data.bookingEDIExt } this.$set(this, 'bookingDetails', { ...this.bookingDetails, ...newData, ...{ bookingEDIExt: $BookingEDIExt } }) this.oldBookingDetails = JSON.parse(JSON.stringify(this.bookingDetails)) + this.sendMessageFY() if (this.$route.query.isCopy && this.$route.query.copyId) { const hisData = { bookingDetails: this.bookingDetails, @@ -1299,7 +1346,13 @@ export default { return true }, handleSaveCtnList(data, slots) { - this.bookingDetails.ctnInputs = data + const arr = [] + data.forEach(item => { + if (item.ctnnum > 0) { + arr.push(item) + } + }) + this.bookingDetails.ctnInputs = arr this.bookingDetails.slots = slots this.$refs.goodsTable.init() }, diff --git a/src/views/main/CabinInventory/index.vue b/src/views/main/CabinInventory/index.vue index b99b31f..f294ed9 100644 --- a/src/views/main/CabinInventory/index.vue +++ b/src/views/main/CabinInventory/index.vue @@ -80,12 +80,16 @@
    {{ row.vessel }}/{{ row.voyno }}
    -
    +
    {{ row.eta?row.eta.substring(0,10):'' }}
    -
    +
    {{ row.etd?row.etd.substring(0,10):'' }}
    +
    + {{ row.totaL_ORDERS - row.usE_NUM }} +
    + {{ row[item.dataIndex] }} @@ -204,7 +208,12 @@ export default { width: '100', dataIndex: 'ctN_STAT' }, - + { + title: '剩余箱型箱量', + align: 'center', + width: '110', + dataIndex: 'remaiN_CTN_STAT' + }, { title: 'ETD', align: 'center', diff --git a/src/views/main/CabinManagement/index.vue b/src/views/main/CabinManagement/index.vue index af541f1..41225a4 100644 --- a/src/views/main/CabinManagement/index.vue +++ b/src/views/main/CabinManagement/index.vue @@ -171,12 +171,13 @@
    {{ row.vessel }}/{{ row.voyno }}
    -
    +
    {{ row.eta?row.eta.substring(0,10):'' }}
    -
    +
    {{ row.etd?row.etd.substring(0,10):'' }}
    + {{ row[item.dataIndex] }} diff --git a/src/views/main/Taskmanage/BCModify/index.vue b/src/views/main/Taskmanage/BCModify/index.vue new file mode 100644 index 0000000..6c32575 --- /dev/null +++ b/src/views/main/Taskmanage/BCModify/index.vue @@ -0,0 +1,893 @@ + + + diff --git a/src/views/main/Taskmanage/BcFileDetail/Editing.vue b/src/views/main/Taskmanage/BcFileDetail/Editing.vue index 35c6ac5..6200727 100644 --- a/src/views/main/Taskmanage/BcFileDetail/Editing.vue +++ b/src/views/main/Taskmanage/BcFileDetail/Editing.vue @@ -13,7 +13,9 @@ {{ form.mblNo }} + :wrapper-col="formItemLayout.wrapperCol1"> + {{ form.mblNo }} + @@ -59,7 +61,7 @@ label="样单截止时间:" :label-col="formItemLayout.labelCol1" :wrapper-col="formItemLayout.wrapperCol1"> - {{ form.sICutDate }} + {{ form.siCutDate }} @@ -91,7 +93,7 @@ label="MDGF截止时间:" :label-col="formItemLayout.labelCol1" :wrapper-col="formItemLayout.wrapperCol1"> - {{ formext2.MDGFCutDate }} + {{ form.mdgfCutDate }} @@ -99,7 +101,7 @@ label="VGM截止时间:" :label-col="formItemLayout.labelCol2" :wrapper-col="formItemLayout.wrapperCol2"> - {{ formext2.VGMCutoffTime }} + {{ form.vgmCutoffTime }} @@ -307,6 +309,7 @@ 匹配已有订舱 + 是否直接发送邮件给订舱联系人

    订舱录入

    @@ -331,13 +334,13 @@ {{ item.name }} @@ -574,6 +577,16 @@ export default { this.getList() }, methods: { + copyText(text) { + const inputDom = document.createElement('textarea') + document.body.appendChild(inputDom) + inputDom.value = text + inputDom.select() + inputDom.focus() + document.execCommand('copy') + document.body.removeChild(inputDom) + this.$message.success('复制成功') + }, ChangeFileRadio() { this.spinning = true const ApiData = { @@ -678,9 +691,9 @@ export default { taskPKId: this.$route.query.taskPKId } GetInfoByTaskId(ApiData).then(res => { - console.log(res.data) if (res.data.succ) { this.form = res.data.ext + console.log(this.form) if (this.form.fileList) { this.isPdf = this.form.fileList[0].fileType } @@ -714,7 +727,9 @@ export default { }, OpenModal() { this.CreateData = { - generateMethod: 'GEN_BOOKING_SLOT' + generateMethod: 'GEN_BOOKING_SLOT', + customerList: [], + isDirectSend: false } this.UserList.forEach(item => { if (item.id == this.userInfo.id) { @@ -743,6 +758,20 @@ export default { projectList, ...this.CreateData } + if (this.CreateData.customerList.length > 0) { + const arr = [] + this.customerByList.forEach(item => { + this.CreateData.customerList.forEach(ite => { + if (ite == item.id) { + arr.push({ + customerContactId: item.id, + customerContactName: item.name + }) + } + }) + }) + ApiData.customerContactList = arr + } console.log(ApiData) CreateBookingAndSlot(ApiData).then(res => { if (res.data.succ) { diff --git a/src/views/main/Taskmanage/TaskmanageList/index.vue b/src/views/main/Taskmanage/TaskmanageList/index.vue index 33fe96d..5b8f4ce 100644 --- a/src/views/main/Taskmanage/TaskmanageList/index.vue +++ b/src/views/main/Taskmanage/TaskmanageList/index.vue @@ -10,8 +10,9 @@