diff --git a/src/store/getters.js b/src/store/getters.js
index d4da459..4f70466 100644
--- a/src/store/getters.js
+++ b/src/store/getters.js
@@ -15,6 +15,7 @@ const getters = {
userInfo: state => state.user.info,
userNotices: state => state.user.notices,
isShowBook: state => state.user.isShowBook,
+ erpCodeEdit: state => state.user.erpCodeEdit,
addRouters: state => state.permission.addRouters,
multiTab: state => state.app.multiTab,
lang: state => state.i18n.lang,
diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index 0a030f7..623762e 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -19,6 +19,7 @@ const user = {
firstFlag: true, // 订舱台账首次加载
desChinaFlag: false, // 货描是否可以输入中文
feeShow: false, // 订舱详情是否显示费用
+ erpCodeEdit: true, // ERP 代码是否可以编辑 默认不可以
slotShow: false, // 订舱详情是否显示舱位
vesselFrom: false, // 船名下拉框采用哪种方式
isShowBook: false, // 台账是否显示删除的
@@ -110,6 +111,9 @@ const user = {
SET_VESSELFROM: (state, type) => {
state.vesselFrom = type
},
+ SET_ERPCODE: (state, type) => {
+ state.erpCodeEdit = type
+ },
SET_BOOKINGGRIDOPTIONS: (state, obj) => {
state.bookingGridOptions = obj
},
@@ -230,6 +234,14 @@ const user = {
// 货描是否允许中文
if (item.paraCode === 'DESCRIP_CAN_CHINESE') {
commit('SET_DESCHINA', item.paraValue)
+ }
+ // EP代码是否可以编辑 默认不可以
+ if (item.paraCode === 'ERP_CODE_CAN_EDIT') {
+ if (item.paraValue === 'YES') {
+ commit('SET_ERPCODE', false)
+ } else {
+ commit('SET_ERPCODE', true)
+ }
}
// 台账是否显示删除
if (item.paraCode === 'BOOKING_LIST_SHOW_CANCEL') {
diff --git a/src/views/main/BookingGangjie/detail/modules/basicInfo.vue b/src/views/main/BookingGangjie/detail/modules/basicInfo.vue
index 282282c..f9e0134 100644
--- a/src/views/main/BookingGangjie/detail/modules/basicInfo.vue
+++ b/src/views/main/BookingGangjie/detail/modules/basicInfo.vue
@@ -335,7 +335,7 @@
has-feedback
prop="vessel">
-
-
+ -->
+
@@ -996,7 +1011,7 @@ export default {
},
computed: {
...mapGetters([
- 'projectDict', 'vesselFrom', 'subTenant'
+ 'projectDict', 'vesselFrom', 'subTenant', 'erpCodeEdit'
])
},
methods: {
@@ -1336,9 +1351,13 @@ export default {
}
},
getAutoViewRes({ type, res }) {
+ console.log(type, res)
if (type === 'contractno') {
this.details.contractno = res.contractNo || ''
}
+ if (type === 'vesselGangjie') {
+ this.details.vessel = res || ''
+ }
}
}
}
diff --git a/src/views/main/BookingLedger/detail/childModules/sendMail.vue b/src/views/main/BookingLedger/detail/childModules/sendMail.vue
index a406b5e..5d497ab 100644
--- a/src/views/main/BookingLedger/detail/childModules/sendMail.vue
+++ b/src/views/main/BookingLedger/detail/childModules/sendMail.vue
@@ -161,11 +161,13 @@ export default {
}
})
PrintTuoshu({ bookingId: form.id }).then(res => {
- this.fileList.push({
+ const arr = []
+ arr.push({
name: res.data,
path: res.data,
type: 'print'
})
+ this.fileList = arr
})
},
handleDownFile(row) {
@@ -215,7 +217,6 @@ export default {
arr.push(item.path)
})
data.fileList = arr
- console.log(data)
this.load = true
SendTuoshu(data).then(res => {
if (res.success) {
diff --git a/src/views/main/BookingLedger/detail/components/autoView.vue b/src/views/main/BookingLedger/detail/components/autoView.vue
index 771921c..3859960 100644
--- a/src/views/main/BookingLedger/detail/components/autoView.vue
+++ b/src/views/main/BookingLedger/detail/components/autoView.vue
@@ -225,7 +225,7 @@ export default {
return false
}
if (
- !['vessel', 'lineName', 'notifypartycountryName', 'consigneecountryName', 'shippercountryName'].includes(
+ !['vessel', 'lineName', 'notifypartycountryName', 'consigneecountryName', 'shippercountryName','vesselGangjie'].includes(
this.type
) &&
this.bookingInitData[`${this.type}InitList`].length > 0
diff --git a/src/views/main/BookingLedger/detail/index.vue b/src/views/main/BookingLedger/detail/index.vue
index 87942da..a4be1ab 100644
--- a/src/views/main/BookingLedger/detail/index.vue
+++ b/src/views/main/BookingLedger/detail/index.vue
@@ -1351,6 +1351,7 @@ export default {
if (arr.includes('ctnall')) {
copyData.ctnInputs = res.data.ctnInputs
}
+ this.isLockBooking = false
newData = { ...JSON.parse(JSON.stringify(initDetail)), ...copyData }
}
const $BookingEDIExt = { ...JSON.parse(JSON.stringify(bookingEDIExt)), ...res.data.bookingEDIExt }
@@ -1374,6 +1375,7 @@ export default {
const secActive = this.$refs.sedOrder.$data.editIndex
hisData.secActive = secActive
}
+ this.isLockBooking = false
this.$set(this.historyData, `copyMore-${this.id}`, hisData)
}
// this.getDefaultVal()
diff --git a/src/views/main/BookingLedger/detail/modules/basicInfo.vue b/src/views/main/BookingLedger/detail/modules/basicInfo.vue
index d656904..28ac18b 100644
--- a/src/views/main/BookingLedger/detail/modules/basicInfo.vue
+++ b/src/views/main/BookingLedger/detail/modules/basicInfo.vue
@@ -225,25 +225,8 @@
-
-
-
-
-
-
-
+ v-if="['VOLTA', 'WHL', 'CSL', 'MSC', 'VOL', 'MSCFD', 'REL', 'FCS', 'YML','ESL','ESL-NEW'].includes(details.carrierid)">