diff --git a/public/index.html b/public/index.html
index 5aaa34e..2283547 100644
--- a/public/index.html
+++ b/public/index.html
@@ -95,7 +95,7 @@
<% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.css) { %>
<% } %>
-
+
diff --git a/src/api/modular/main/BookingLedger.js b/src/api/modular/main/BookingLedger.js
index dea094f..4e35fd9 100644
--- a/src/api/modular/main/BookingLedger.js
+++ b/src/api/modular/main/BookingLedger.js
@@ -36,7 +36,17 @@ export function DjyCustomerpage(parameter) {
params: parameter
})
}
-
+/**
+ * 获取分页查询客户
+ * @params keyword
+ */
+export function DjyCustomerSuggest(parameter) {
+ return axios({
+ url: '/DjyCustomer/Suggest',
+ method: 'get',
+ params: parameter
+ })
+}
/**
* 获取船公司
* @params CnName
@@ -568,3 +578,11 @@ export function BookingOrderAddOrUpdate(parameter) {
data: parameter
})
}
+export function BookingOrderPrintTemplateList(parameter) {
+ return axios({
+ url: '/BookingOrder/PrintTemplateList',
+ method: 'get',
+ params: parameter
+ })
+}
+//
diff --git a/src/api/modular/main/CompanySiteaccount.js b/src/api/modular/main/CompanySiteaccount.js
new file mode 100644
index 0000000..96dd799
--- /dev/null
+++ b/src/api/modular/main/CompanySiteaccount.js
@@ -0,0 +1,53 @@
+import { axios } from '@/utils/request'
+
+/**
+ * 分页查询网站账号维护(租户公司)
+ *
+ * @author Myshipping
+ */
+export function DjyWebsiteAccountConfigPageTenant(parameter) {
+ return axios({
+ url: '/DjyWebsiteAccountConfig/PageTenant',
+ method: 'get',
+ params: parameter
+ })
+}
+
+/**
+ * 增加网站账号维护(同一租户、同类型账号不允许重复)
+ *
+ * @author Myshipping
+ */
+export function DjyWebsiteAccountConfigAddTenant(parameter) {
+ return axios({
+ url: '/DjyWebsiteAccountConfig/AddTenant',
+ method: 'post',
+ data: parameter
+ })
+}
+
+/**
+ * 更新网站账号维护(租户公司)
+ *
+ * @author Myshipping
+ */
+export function DjyWebsiteAccountConfigEditTenant(parameter) {
+ return axios({
+ url: '/DjyWebsiteAccountConfig/EditTenant',
+ method: 'post',
+ data: parameter
+ })
+}
+
+/**
+ * 删除网站账号维护(租户公司)
+ *
+ * @author Myshipping
+ */
+export function DjyWebsiteAccountConfigDeleteTenant(parameter) {
+ return axios({
+ url: '/DjyWebsiteAccountConfig/DeleteTenant',
+ method: 'post',
+ data: parameter
+ })
+}
diff --git a/src/components/MultiTab/MultiTab.vue b/src/components/MultiTab/MultiTab.vue
index 7fc1706..c8cd4f8 100644
--- a/src/components/MultiTab/MultiTab.vue
+++ b/src/components/MultiTab/MultiTab.vue
@@ -42,20 +42,29 @@ export default {
},
methods: {
onEdit(targetKey, action) {
- // let _that = this
- // if (targetKey.split('?')[0] == '/BookingDetail') {
- // this.$confirm({
- // title: '请确认无未保存数据!',
- // content: '当点击确定按钮时,此页面 将会关闭。',
- // onOk() {
- // _that[action](targetKey)
- // },
- // onCancel() {}
- // })
- // } else {
- // this[action](targetKey)
- // }
- this[action](targetKey)
+ let _that = this
+ let data = Object.fromEntries(new URLSearchParams(targetKey.split('?')[1]))
+ console.log(targetKey.split('?')[0] == '/BookingDetail')
+ console.log(localStorage.getItem(data.id))
+ console.log(localStorage.getItem(data.id) == 'true')
+ console.log(data.id != null)
+ console.log(
+ targetKey.split('?')[0] == '/BookingDetail' && data.id != null && localStorage.getItem(data.id) == 'true'
+ )
+ if (targetKey.split('?')[0] == '/BookingDetail' && data.id != null && localStorage.getItem(data.id) == 'true') {
+ this.$confirm({
+ title: '请确认无未保存数据!',
+ content: '当点击确定按钮时,此页面 将会关闭。',
+ onOk() {
+ _that[action](targetKey)
+ localStorage.removeItem(data.id)
+ },
+ onCancel() {}
+ })
+ } else {
+ this[action](targetKey)
+ localStorage.removeItem(data.id)
+ }
console.log('关闭?', targetKey, action)
},
remove(targetKey) {
diff --git a/src/views/main/BookingLedger/detail/index.vue b/src/views/main/BookingLedger/detail/index.vue
index 17f3d85..6cad7e3 100644
--- a/src/views/main/BookingLedger/detail/index.vue
+++ b/src/views/main/BookingLedger/detail/index.vue
@@ -140,13 +140,11 @@ export default {
moreStr: '',
tabActiveKey: '1',
historyData: {},
- noSave: false
}
},
computed: {
...mapGetters(['bookingList', 'needSavePages']),
Showtabs() {
- console.log(this.bookingDetails, 'bookingDetails')
let Rdata = true
if (this.bookingDetails.hbList && this.bookingDetails.hbList.length) {
Rdata = false
@@ -159,8 +157,7 @@ export default {
watch: {
bookingDetails: {
handler(nval, oval) {
- this.noSave = true
- // console.log('父级 -- 数据改变', nval)
+ localStorage.setItem(`${this.id}`, true)
},
deep: true
}
@@ -168,6 +165,9 @@ export default {
created() {
this.init()
},
+ updated() {
+ localStorage.setItem(`${this.id}`, false)
+ },
beforeRouteUpdate(to, from, next) {
if (!Object.keys(this.historyData).includes(this.$route.query.id)) {
const hisData = {
@@ -202,11 +202,7 @@ export default {
next()
},
beforeRouteEnter(to, from, next) {
- console.log('进入 beforeRouteEnter: to', to.name)
- console.log('进入 beforeRouteEnter: from', from.name)
next(vm => {
- console.log('vm', vm)
- console.log('进入路由之后: ', vm.$route.query.id)
vm.getRouterHis()
})
},
@@ -215,11 +211,6 @@ export default {
getRouterHis() {
const newId = this.$route.query.id
if (Object.keys(this.historyData).includes(newId)) {
- // const newType = this.$route.query.type
- // const newIsCopy = this.$route.query.isCopy || false
- // if (newType === this.historyData[newId].type && newIsCopy === this.historyData[newId].isCopy) {
- // }
- console.log('4. 获取到历史数据', this.historyData[newId].bookingDetails.mblno)
const $data = this.historyData[newId]
this.bookingDetails = $data.bookingDetails
this.excuteRules = $data.excuteRules
@@ -400,7 +391,6 @@ export default {
ediAttnMail: ''
}
}
- this.noSave = false
this.$set(this, 'bookingDetails', res.data)
this.$forceUpdate()
})
@@ -415,20 +405,17 @@ export default {
},
bookingOrderUpdate() {
- console.log('保存', this.bookingDetails)
if (!this.bookingDetails.mblno) {
this.$message.error('请输入提单号')
return false
}
const _data = JSON.parse(JSON.stringify(this.bookingDetails))
delete _data.hbList
- console.log(JSON.stringify(_data))
BookingOrderAddOrUpdate(_data)
.then(res => {
if (res.success) {
this.isCopy = false
this.isAdd = false
- this.noSave = false
this.$message.success('保存成功')
this.init()
this.$forceUpdate()
@@ -442,7 +429,6 @@ export default {
},
bookingOrderAdd() {
- console.log('新增', this.bookingDetails)
if (!this.bookingDetails.mblno) {
this.$message.error('请输入提单号')
return false
@@ -454,7 +440,6 @@ export default {
if (res.success) {
this.isAdd = false
this.id = res.data
- this.noSave = false
this.$message.success('保存成功')
this.$router.replace({
name: 'BookingDetail',
@@ -475,7 +460,6 @@ export default {
},
changeTab(e) {
- console.log(e)
this.tabActiveKey = e
},
@@ -506,7 +490,11 @@ export default {
}
const prevId = arr[index - 1]
const prevType = this.bookingList[prevId].carrierid
- this.$router.replace({ name: 'BookingDetail', query: { id: prevId, type: prevType } })
+ this.$router.replace({
+ name: 'BookingDetail',
+ query: { id: prevId, type: prevType, mblno: this.bookingList[prevId].mblno }
+ })
+ // this.$route.query.id = 1123
} else {
if (index === arr.length - 1) {
this.$message.error('当前已经是最后一票')
@@ -514,7 +502,10 @@ export default {
}
const nextId = arr[index + 1]
const nextType = this.bookingList[nextId].carrierid
- this.$router.replace({ name: 'BookingDetail', query: { id: nextId, type: nextType } })
+ this.$router.replace({
+ name: 'BookingDetail',
+ query: { id: nextId, type: nextType, mblno: this.bookingList[nextId].mblno }
+ })
}
},
handleReload() {
@@ -537,9 +528,6 @@ export default {
this.bookingDetails.hbList = [data]
this.tabActiveKey = '2'
}
- },
- deactivated () {
- console.log('页面销毁', this.noSave)
}
}
diff --git a/src/views/main/BookingLedger/detail/modules/basicInfo.vue b/src/views/main/BookingLedger/detail/modules/basicInfo.vue
index b0afb82..c67b025 100644
--- a/src/views/main/BookingLedger/detail/modules/basicInfo.vue
+++ b/src/views/main/BookingLedger/detail/modules/basicInfo.vue
@@ -14,6 +14,7 @@
:data-source="customerDataArr"
@select="customerSelect"
@change="customerChange"
+ @focus="customerChange"
/>
@@ -124,6 +126,7 @@
:data-source="vesselDataArr"
@select="vesselSelect"
@change="vesselChange"
+ @focus="vesselChange"
/>
@@ -154,6 +157,7 @@
:data-source="voynoinnerDataArr"
@select="voynoinnerSelect"
@change="voynoinnerChange"
+ @focus="voynoinnerChange"
/>
@@ -213,6 +217,7 @@
:data-source="lanenameDataArr"
@select="lanenameSelect"
@change="lanenameChange"
+ @focus="lanenameChange"
/>
@@ -225,6 +230,7 @@
:data-source="shipagencyDataArr"
@select="shipagencySelect"
@change="shipagencyChange"
+ @focus="shipagencyChange"
/>
@@ -259,6 +265,7 @@
:data-source="saleUserListArr"
@select="saleSelect"
@change="saleChange"
+ @focus="saleChange"
/>
@@ -277,6 +284,7 @@
:data-source="opUserListArr"
@select="opSelect"
@change="opChange"
+ @focus="opChange"
/>
@@ -295,6 +303,7 @@
:data-source="docUserListArr"
@select="docSelect"
@change="docChange"
+ @focus="docChange"
/>
@@ -313,6 +322,7 @@
:data-source="custserviceUserListArr"
@select="custserviceSelect"
@change="custserviceChange"
+ @focus="custserviceChange"
/>
@@ -418,6 +428,7 @@ import { XCard } from '@/components'
import { AutoComplete } from 'ant-design-vue'
import {
DjyCustomerpage,
+ DjyCustomerSuggest,
GetCarrierlist,
GetVessellist,
GetSysUserPage,
@@ -825,10 +836,10 @@ export default {
},
// 客户 - start
getDjyCustomerpage(name = '', type, key) {
- DjyCustomerpage({
+ DjyCustomerSuggest({
// SearchValue: name,
// PropString: key,
- ShortName: name
+ keyword: name
})
.then(res => {
if (res.code === 200) {
@@ -848,6 +859,7 @@ export default {
this.details.customerid = this.customerData[index].id
},
customerChange(value) {
+ console.log(value)
// this.getCustomer(value)
this.getDjyCustomerpage(value, 'customer', 'consignor')
},
@@ -865,8 +877,7 @@ export default {
// 船公司 - start
getCarrier(name = '') {
GetCarrierlist({
- CnName: name,
- keyword: ''
+ KeyWord: name
})
.then(res => {
if (res.code === 200) {
@@ -914,7 +925,7 @@ export default {
// 船代 - start
getForwarderlist(name = '') {
GetForwarderlist({
- Name: name
+ KeyWord: name
})
.then(res => {
if (res.code === 200) {
@@ -938,7 +949,7 @@ export default {
// 船名 - start
getVessel(name = '') {
GetVessellist({
- Name: name
+ KeyWord: name
})
.then(res => {
if (res.code === 200) {
diff --git a/src/views/main/BookingLedger/detail/modules/billInfo.vue b/src/views/main/BookingLedger/detail/modules/billInfo.vue
index 3cb9fdd..3e51b79 100644
--- a/src/views/main/BookingLedger/detail/modules/billInfo.vue
+++ b/src/views/main/BookingLedger/detail/modules/billInfo.vue
@@ -58,10 +58,12 @@
>
默认打印格式为pdf,如需其他格式请选择
+
+ 打印格式:
+
基本信息
+基本信息
联系人信息
+联系人信息
财务信息
+财务信息