diff --git a/src/store/getters.js b/src/store/getters.js index c27a7c7..abe8f27 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -9,6 +9,7 @@ const getters = { nickname: state => state.user.name, welcome: state => state.user.welcome, roles: state => state.user.roles, + feeShow: state => state.user.feeShow, buttons: state => state.user.buttons, admintype: state => state.user.admintype, userInfo: state => state.user.info, diff --git a/src/store/modules/user.js b/src/store/modules/user.js index e26b804..3a2bbcd 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -15,6 +15,7 @@ const user = { name: '', welcome: '', firstFlag: true, + feeShow: false, slotShow: false, avatar: '', buttons: [], // 按钮权限 @@ -82,6 +83,9 @@ const user = { SET_SLOTSHOW: (state, type) => { state.slotShow = type }, + SET_FEESHOW: (state, type) => { + state.feeShow = type + }, SET_BOOKINGGRIDOPTIONS: (state, obj) => { state.bookingGridOptions = obj }, @@ -159,9 +163,17 @@ const user = { commit('SET_SLOTSHOW', false) } } + if (item.paraCode === 'ENABLE_FEE_ABILITY') { + if (item.paraValue === 'YES') { + commit('SET_FEESHOW', true) + } else { + commit('SET_FEESHOW', false) + } + } }) if (data.tenantParams.length === 0) { commit('SET_SLOTSHOW', false) + commit('SET_FEESHOW', false) } } resolve(data) diff --git a/src/views/main/BookingLedger/detail/index.vue b/src/views/main/BookingLedger/detail/index.vue index 4802f24..1fd8718 100644 --- a/src/views/main/BookingLedger/detail/index.vue +++ b/src/views/main/BookingLedger/detail/index.vue @@ -39,7 +39,7 @@ -
  • +
  • @@ -114,7 +114,7 @@ @@ -474,7 +474,8 @@ export default { 'issuetypeList', 'blfrtList', 'inBookingDetailsSave', - 'topDown' + 'topDown', + 'feeShow' ]) }, created() { @@ -639,6 +640,7 @@ export default { kgs: this.bookingDetails.kgs, pkgs: this.bookingDetails.pkgs, customername: this.bookingDetails.customername, + customerid: this.bookingDetails.customerid, portdischarge: this.bookingDetails.portdischarge, vessel: this.bookingDetails.vessel, voyno: this.bookingDetails.voyno, @@ -647,15 +649,29 @@ export default { blfrt: this.bookingDetails.blfrt, destination: this.bookingDetails.destination, portload: this.bookingDetails.portload, + truckerid: this.bookingDetails.truckerid, + trucker: this.bookingDetails.trucker, + customser: this.bookingDetails.customser, + customserid: this.bookingDetails.customserid, + forwarder: this.bookingDetails.forwarder, + forwarderid: this.bookingDetails.forwarderid, + agentname: this.bookingDetails.agentname, + agentnameid: this.bookingDetails.agentnameid, + yard: this.bookingDetails.yard, + yardid: this.bookingDetails.yardid, + shipagency: this.bookingDetails.shipagency, + shipagencyid: this.bookingDetails.shipagencyid, id: this.bookingDetails.id } - const iframeWin = mapFrame.contentWindow - console.log(mapFrame.contentWindow) + if (this.feeShow) { + const iframeWin = mapFrame.contentWindow iframeWin.postMessage( { token: localStorage.getItem('pro__Access-Token'), - data: data + data: data, + customerTypeList: this.$options.filters['dictData']('djy_cust_prop') }, '*') + } }, ...mapActions(['setNeedSavePages', 'setBookingList', 'setBookingGridOptions', 'setInBookingDetailsSave', 'setSET_SAVEFLAG']), getRouterHis() { diff --git a/src/views/main/ViewDeletedList/ViewDeletedList.vue b/src/views/main/ViewDeletedList/ViewDeletedList.vue index 3e12ff0..dfb578d 100644 --- a/src/views/main/ViewDeletedList/ViewDeletedList.vue +++ b/src/views/main/ViewDeletedList/ViewDeletedList.vue @@ -5,18 +5,18 @@ - - + + - + - + + + + + + @@ -274,6 +279,7 @@ export default { searchData: {}, formAllData: null, createdUserName:'', + customername:'', formMoreData: null, formBtnCol: 8, delDate: [], @@ -924,6 +930,7 @@ export default { tableRefresh() { this.formRes.MBLNO = this.SearchContent this.formRes.createdUserName = this.createdUserName + this.formRes.customername = this.customername const data = { ...this.formRes } this.searchData = JSON.parse(JSON.stringify(data)) if (this.delDate) { @@ -972,6 +979,7 @@ export default { tableReset() { this.SearchContent = '' this.createdUserName = '' + this.customername = '' this.delDate = [] }, diff --git a/src/views/main/fee/feeCode.vue b/src/views/main/fee/feeCode.vue index b103bb8..63db91b 100644 --- a/src/views/main/fee/feeCode.vue +++ b/src/views/main/fee/feeCode.vue @@ -108,20 +108,22 @@ - + + {{ item.name }} + - {{ item.name }} + {{ item.name }} - {{ item.name }} + {{ item.name }} @@ -137,7 +139,8 @@ - {{ item.name }} + PP + CC @@ -186,7 +189,8 @@ FeeCodeSave, FeeCodeDelete, GetFeeCustomerList, - FeeCurrencyList + FeeCurrencyList, + GetFeeUnitList } from '@/api/modular/main/mailSetting' import columnSetting from '@/components/tableColumnSetting' export default { @@ -204,6 +208,7 @@ title: '', againVisible: false, fileList: [], + unitList:[], setVisible: false, setVisible1: false, customerList: [], @@ -351,6 +356,7 @@ this.FnGetData() this.customerTypeList = this.$options.filters['dictData']('djy_cust_prop') this.getCurrency() + this.GetFeeUnit() }, methods: { toggleAdvanced() { @@ -369,6 +375,16 @@ this.customerList = res.data }) }, + GetFeeUnit() { + GetFeeUnitList().then(res => { + res.data.forEach((item, index) => { + if (!item.name) { + res.data.splice(index, 1) + } + }) + this.unitList = res.data + }) + }, handleEdit(row) { this.title = '费用代码编辑' this.addForm = JSON.parse(JSON.stringify(row)) diff --git a/src/views/main/fee/feeTemplate.vue b/src/views/main/fee/feeTemplate.vue index 5d725ee..0679772 100644 --- a/src/views/main/fee/feeTemplate.vue +++ b/src/views/main/fee/feeTemplate.vue @@ -6,7 +6,7 @@ - + 应收 应付 @@ -49,8 +49,8 @@ :fixed="item.fixed" :align="item.align">