diff --git a/src/api/modular/main/BookingLedger.js b/src/api/modular/main/BookingLedger.js
index e0069ba..bca9f41 100644
--- a/src/api/modular/main/BookingLedger.js
+++ b/src/api/modular/main/BookingLedger.js
@@ -378,6 +378,17 @@ export function SendLetterYard(parameter) {
})
}
+/**
+ * 删除放舱
+ */
+export function DeleteLetterYard(parameter) {
+ return axios({
+ url: '/BookingLetteryard/LetterYardDelete',
+ method: 'post',
+ data: parameter
+ })
+}
+
/**
* 样单
*/
@@ -493,9 +504,9 @@ export function DjyCustomerdetail(parameter) {
* 批量保存关系人(同时新增、删除、修改)
* @params Name
*/
-export function BookingOrderContactSavebatch(parameter) {
+export function BookingOrderContactSavebatch(id, parameter) {
return axios({
- url: '/BookingOrderContact/savebatch',
+ url: `/BookingOrderContact/savebatch?bookingId=${id}`,
method: 'post',
data: parameter
})
diff --git a/src/views/main/BookingLedger/detail/components/ediMore.vue b/src/views/main/BookingLedger/detail/components/ediMore.vue
index b5c9469..06db5af 100644
--- a/src/views/main/BookingLedger/detail/components/ediMore.vue
+++ b/src/views/main/BookingLedger/detail/components/ediMore.vue
@@ -268,7 +268,6 @@ export default {
watch: {
details: {
handler(nval, oval) {
- // console.log('数据改变', nval)
this.$emit('changeDetail', {
detail: nval,
type: 'ediMore'
diff --git a/src/views/main/BookingLedger/detail/components/sedOrder.vue b/src/views/main/BookingLedger/detail/components/sedOrder.vue
index 40c9f1a..500a5cc 100644
--- a/src/views/main/BookingLedger/detail/components/sedOrder.vue
+++ b/src/views/main/BookingLedger/detail/components/sedOrder.vue
@@ -111,7 +111,6 @@ export default {
sedOrderList: {
handler (nval, oval) {
if (nval.length > 0) {
- console.log(nval)
if (!nval[this.editIndex].bookingEDIExt) {
nval[this.editIndex].bookingEDIExt = {
weiTuoFang: '',
@@ -141,6 +140,7 @@ export default {
},
created() {
if (this.sedOrderList.length > 0) {
+ console.log('=== 分单加载 created ===')
const data = JSON.parse(JSON.stringify(this.sedOrderList[0]))
if (!data.bookingEDIExt) {
data.bookingEDIExt = {
@@ -153,6 +153,11 @@ export default {
this.editDetails = data
}
},
+ mounted() {
+ // setTimeout(() => {
+ // this.$message.destroy()
+ // }, 1500)
+ },
methods: {
addSedOrder () {
if (this.isAdd) {
@@ -206,7 +211,6 @@ export default {
},
bookingOrderUpdate () {
- console.log('保存', this.editDetails)
if (!this.editDetails.hblno) {
this.$message.error('请输入分提单号')
return false
@@ -231,7 +235,6 @@ export default {
},
bookingOrderAdd () {
- console.log('新增', this.editDetails)
if (!this.editDetails.hblno) {
this.$message.error('请输入分提单号')
return false
diff --git a/src/views/main/BookingLedger/detail/index.vue b/src/views/main/BookingLedger/detail/index.vue
index fe81f33..f877c83 100644
--- a/src/views/main/BookingLedger/detail/index.vue
+++ b/src/views/main/BookingLedger/detail/index.vue
@@ -2,7 +2,7 @@
-
+
0) {
+ this.Showtabs = true
+ }
if (!res.data.bookingEDIExt) {
res.data.bookingEDIExt = {
weiTuoFang: '',
@@ -526,7 +428,15 @@ export default {
this.isCopy = false
this.isAdd = false
this.$message.success('保存成功')
- this.init()
+ if (this.$route.query.mblno === this.bookingDetails.mblno) {
+ this.init()
+ } else {
+ this.$router.replace({
+ name: 'BookingDetail',
+ query: { id: this.id, type: this.bookingDetails.carrierid, noOpenTab: true, mblno: this.bookingDetails.mblno }
+ })
+ }
+ // this.init()
this.$forceUpdate()
} else {
this.$message.error(res.message)
@@ -552,7 +462,7 @@ export default {
this.$message.success('保存成功')
this.$router.replace({
name: 'BookingDetail',
- query: { id: res.data, type: this.bookingDetails.carrierid, noOpenTab: true }
+ query: { id: res.data, type: this.bookingDetails.carrierid, noOpenTab: true, mblno: this.bookingDetails.mblno }
})
this.$forceUpdate()
} else {
@@ -650,6 +560,7 @@ export default {
this.$message.error('请先保存主单')
return false
}
+ // this.$message.loading('加载中...')
const data = JSON.parse(JSON.stringify(this.bookingDetails))
data.isNoSave = true
data.hblno = ''
@@ -658,6 +569,7 @@ export default {
data.notifyparty = ''
this.bookingDetails.hbList = [data]
this.tabActiveKey = '2'
+ this.Showtabs = true
},
changeHBFun (data) {
const arr = data.map((item, index) => {
@@ -668,7 +580,6 @@ export default {
} else {
this.checkSaveFun({ type: 'hbList', hasChange: false })
}
-
},
checkSaveFun (data) {
const lastPages = this.needSavePages
@@ -682,7 +593,6 @@ export default {
const key = this.$route.fullPath
this.$set(lastPages, key, $data)
this.setNeedSavePages(lastPages)
- console.log(' ==== > 父组件监听到总数据改变: ', key, $data, lastPages, this.needSavePages)
}
}
}
diff --git a/src/views/main/BookingLedger/detail/modules/basicInfo.vue b/src/views/main/BookingLedger/detail/modules/basicInfo.vue
index 8f5b589..7a48c23 100644
--- a/src/views/main/BookingLedger/detail/modules/basicInfo.vue
+++ b/src/views/main/BookingLedger/detail/modules/basicInfo.vue
@@ -31,7 +31,6 @@
:allowClear="true"
:data-source="carrierDataArr"
v-model="details.carrier"
-
@select="carrierSelect"
@change="carrierChange"
/> -->
@@ -100,16 +99,16 @@
-
+
-
+
-
+
-
+
@@ -141,37 +140,37 @@
-
+
-
+
-
+
-
+
@@ -234,7 +233,7 @@
/>
-
+
{
+ debugger
+ BookingOrderContactSavebatch(this.$route.query.id, data).then(res => {
if (res.success) {
this.$message.success('保存成功')
} else {
@@ -860,7 +860,6 @@ export default {
this.details.customerid = this.customerData[index].id
},
customerChange(value) {
- console.log(value)
// this.getCustomer(value)
this.getDjyCustomerpage(value, 'customer', 'consignor')
},
@@ -893,7 +892,6 @@ export default {
this.carrierSelectData = arr
this.$forceUpdate()
}
- console.log(this.carrierSelectData)
})
.catch(err => {
console.log(err)
@@ -907,13 +905,11 @@ export default {
},
// 模糊搜索暂时不用
carrierChange(value) {
- console.log(value)
// this.getCarrier(value)
},
handleCarrierChange(data) {
this.carrierSelectData.forEach(item => {
if (item.code == data) {
- console.log(item)
this.details.carrier = item.cnName
}
})
@@ -1074,7 +1070,6 @@ export default {
if (this.details.customerid) {
this.customerType = type
this.customerVisible = true
-
DjyCustomerdetail({ id: this.details.customerid }).then(res => {
console.log(res.data.contacts)
this.customerContactsData = res.data.contacts
diff --git a/src/views/main/BookingLedger/detail/modules/mailingInfo.vue b/src/views/main/BookingLedger/detail/modules/mailingInfo.vue
index 2276f29..eb53b9c 100644
--- a/src/views/main/BookingLedger/detail/modules/mailingInfo.vue
+++ b/src/views/main/BookingLedger/detail/modules/mailingInfo.vue
@@ -147,6 +147,7 @@
+ >
@@ -455,7 +456,7 @@
@select="placereceiptSelect"
@change="placereceiptChange"
@focus="placereceiptChange"
- />
+ >
@@ -1025,6 +1026,7 @@ export default {
.then(res => {
if (res.code === 200) {
this[`${type}Data`] = res.data
+ console.log('== 装货港/收货地 ==', type, this[`${type}Data`])
this.$forceUpdate()
}
})
diff --git a/src/views/main/BookingLedger/detail/modules/operationArea.vue b/src/views/main/BookingLedger/detail/modules/operationArea.vue
index fc207d5..13aecb3 100644
--- a/src/views/main/BookingLedger/detail/modules/operationArea.vue
+++ b/src/views/main/BookingLedger/detail/modules/operationArea.vue
@@ -257,7 +257,7 @@
has-feedback
>
@@ -384,12 +384,13 @@
has-feedback
>
+
{{ billPdfTip }}
@@ -403,7 +404,7 @@
type="primary"
@click="removeModel"
:loading="DelLoading"
- v-if="['initCabin', 'vgmlink'].includes(modelType)"
+ v-if="['initCabin'].includes(modelType)"
>
删除
@@ -504,7 +505,8 @@ import {
BookingOrderOcrGetImg,
BookingOrderOcrGetText,
BookingOrderPrintTemplateList,
- DownloadBookingOrClosingEDI
+ DownloadBookingOrClosingEDI,
+ DeleteLetterYard
} from '@/api/modular/main/BookingLedger'
export default {
@@ -760,6 +762,23 @@ export default {
} else if (['vgm', 'paper'].includes(type)) {
this.openDialog(type)
}
+ if (['initCabin', 'ladingBill', 'vgmlink'].includes(type)) {
+ this.initCabinFrom = {
+ toName: '',
+ attn: '',
+ attnTel: '',
+ attnMail: '',
+ fromName: '',
+ fromTel: '',
+ fromMail: '',
+ orderUrl: {
+ urlTxxp: '',
+ urlVgm: '',
+ urlVgmSi: ''
+ },
+ remark: ''
+ }
+ }
if (type === 'initCabin') {
this.getLetterYard()
} else if (type === 'ladingBill') {
@@ -947,10 +966,20 @@ export default {
// 获取VGM信息
getVgmLink() {
- VgmLink(this.id)
+ LetterYard(this.id)
.then(res => {
if (res.success) {
- // this.initCabinFrom = res.data
+ this.initCabinFrom = { ...this.initCabinFrom, ...res.data }
+ // VgmLink(this.id)
+ // .then(oRes => {
+ // if (oRes.success) {
+ // } else {
+ // this.$message.error(oRes.message)
+ // }
+ // })
+ // .catch(oErr => {
+ // console.log(oErr)
+ // })
} else {
this.$message.error(res.message)
}
@@ -1032,7 +1061,21 @@ export default {
removeModel() {
if (this.modelType === 'initCabin') {
// 放舱
- console.log('暂无接口')
+ debugger
+ this.DelLoading = true
+ DeleteLetterYard(this.id)
+ .then(res => {
+ if (res.success) {
+ this.$message.success('删除成功')
+ this.handleModelCancel()
+ } else {
+ this.$message.error(res.message)
+ }
+ this.DelLoading = false
+ })
+ .catch(() => {
+ this.DelLoading = false
+ })
} else if (this.modelType === 'vgmlink') {
// VGM 链接
console.log('暂无接口')
diff --git a/src/views/main/BookingLedger/detail/modules/rightContent.vue b/src/views/main/BookingLedger/detail/modules/rightContent.vue
index 26ac5fc..9127040 100644
--- a/src/views/main/BookingLedger/detail/modules/rightContent.vue
+++ b/src/views/main/BookingLedger/detail/modules/rightContent.vue
@@ -210,6 +210,7 @@
>
选择文件
+ 支持格式:xls,xlsx,pdf,txt,pms
2. 选择文件类型
@@ -425,7 +426,7 @@ export default {
},
handleUpload() {
const { upFileList, attachCode, attachName } = this
- if (!upFileList) {
+ if (upFileList.length === 0) {
this.$message.error('请上传文件')
return false
}
@@ -1040,10 +1041,22 @@ export default {
border: 1px dashed #ccc;
padding: 15px;
display: flex;
+ position: relative;
.tip {
width: 140px;
line-height: 32px;
}
+ .format{
+ color: #999;
+ // color: @primary-color;
+ // opacity: .8;
+ font-size: 12px;
+ float: right;
+ margin-right: 20px;
+ position: absolute;
+ top: 24px;
+ right: 0;
+ }
}
.uplad-type {
margin-top: 20px;