+
@@ -134,9 +138,13 @@
:wrapperCol="wrapperCol"
has-feedback
>
-
@@ -148,9 +156,13 @@
:wrapperCol="wrapperCol"
has-feedback
>
-
@@ -162,9 +174,13 @@
:wrapperCol="wrapperCol"
has-feedback
>
-
@@ -514,7 +530,7 @@
import { XCard } from '@/components'
import { AutoComplete } from 'ant-design-vue'
-import { BookingTemplate, GetYardlist, GetPortloadlist, GetPortlist, GetPackage, BookingTemplateAdd } from '@/api/modular/main/BookingLedger'
+import { BookingTemplate, GetYardlist, GetPortloadlist, GetPortlist, GetPackage, BookingTemplateAdd, DjyCustomerpage } from '@/api/modular/main/BookingLedger'
export default {
components: {
XCard,
@@ -554,6 +570,9 @@ export default {
placedeliveryData: [], // 交货地
placereceiptData: [], // 收货地
kindpkgsData: [],
+ customserData: [], // 报关行
+ truckerData: [], // 车队
+ agentidData: [], // 国外代理
shippername: '',
consigneename: '',
notifypartyname: '',
@@ -718,6 +737,45 @@ export default {
} else {
return []
}
+ },
+ customserDataArr () {
+ if (this.customserData) {
+ const arr = []
+ this.customserData.map((item, index) => {
+ if (!arr.includes(item.shortName)) {
+ arr.push(item.shortName)
+ }
+ })
+ return arr
+ } else {
+ return []
+ }
+ },
+ truckerDataArr () {
+ if (this.truckerData) {
+ const arr = []
+ this.truckerData.map((item, index) => {
+ if (!arr.includes(item.shortName)) {
+ arr.push(item.shortName)
+ }
+ })
+ return arr
+ } else {
+ return []
+ }
+ },
+ agentidDataArr () {
+ if (this.agentidData) {
+ const arr = []
+ this.agentidData.map((item, index) => {
+ if (!arr.includes(item.shortName)) {
+ arr.push(item.shortName)
+ }
+ })
+ return arr
+ } else {
+ return []
+ }
}
},
created() {
@@ -848,7 +906,7 @@ export default {
})
.then((res) => {
if (res.code === 200) {
- this[`${type}Data`] = res.data.splice(0, 500)
+ this[`${type}Data`] = res.data.splice(0, 50)
this.$forceUpdate()
}
})
@@ -917,6 +975,49 @@ export default {
},
// 包装 - end
+ // 报关行 - start
+ getDjyCustomerpage (name = '', type, key) {
+ DjyCustomerpage({
+ SearchValue: name,
+ PropString: key
+ })
+ .then((res) => {
+ if (res.code === 200) {
+ this[`${type}Data`] = res.data.rows
+ console.log(this[`${type}DataArr`])
+ this.$forceUpdate()
+ }
+ })
+ .catch((err) => {
+ console.log(err)
+ })
+ },
+ customserSelect (value) {
+ this.details.customser = value
+ },
+ customserChange(value) {
+ this.getDjyCustomerpage(value, 'customser', 'customs_broker')
+ },
+ // 报关行 - end
+
+ // 车队 - start
+ truckerSelect (value) {
+ this.details.trucker = value
+ },
+ truckerChange(value) {
+ this.getDjyCustomerpage(value, 'trucker', 'fleet')
+ },
+ // 车队 - end
+
+ // 国外代理 - start
+ agentidSelect (value) {
+ this.details.agentid = value
+ },
+ agentidChange(value) {
+ this.getDjyCustomerpage(value, 'agentid', 'out_agent')
+ },
+ // 国外代理 - end
+
// 保存模板
saveModel (type) {
this.modelVisible = true
@@ -1138,6 +1239,15 @@ ${newStr.slice(split)}`
}
}
}
+.yard-box{
+ position: relative;
+}
+.feeself{
+ position: absolute;
+ top: -1px;
+ right: -63px;
+ transform: scale(.8);
+}
.from-label {
margin-bottom: 10px;
}
diff --git a/src/views/main/BookingLedger/detail/modules/operationArea.vue b/src/views/main/BookingLedger/detail/modules/operationArea.vue
index 559cd8e..5432e9d 100644
--- a/src/views/main/BookingLedger/detail/modules/operationArea.vue
+++ b/src/views/main/BookingLedger/detail/modules/operationArea.vue
@@ -566,9 +566,7 @@ export default {
},
sendXHZ() {
- SendXHZ({
- bookingId: this.id,
- })
+ SendXHZ(this.id)
.then((res) => {
if (res.success) {
this.$message.success(`下货纸发送成功`)
@@ -582,9 +580,7 @@ export default {
},
vgmSend() {
- VgmSend({
- bookingId: this.id,
- })
+ VgmSend(this.id)
.then((res) => {
if (res.success) {
this.$message.success(`VGM发送成功`)
@@ -599,9 +595,7 @@ export default {
// 获取放舱信息
getLetterYard() {
- LetterYard({
- bookingId: this.id,
- })
+ LetterYard(this.id)
.then((res) => {
console.log('== 放舱信息 ==', res.data)
if (res.success) {
@@ -617,9 +611,7 @@ export default {
// 获取样单信息
getSampleBill() {
- SampleBill({
- bookingId: this.id,
- })
+ SampleBill(this.id)
.then((res) => {
console.log('== 样单信息 ==', res.data)
if (res.success) {
@@ -635,9 +627,7 @@ export default {
// 获取VGM信息
getVgmLink() {
- VgmLink({
- bookingId: this.id,
- })
+ VgmLink(this.id)
.then((res) => {
console.log('== VGM信息 ==', res.data)
if (res.success) {
@@ -652,9 +642,7 @@ export default {
},
sampleBillPdf () {
- SampleBillPdf({
- bookingId: this.id
- })
+ SampleBillPdf(this.id)
.then((res) => {
if (res.success) {
this.hsaBillPdf = true
@@ -774,9 +762,7 @@ export default {
// 发送放舱
sendLetterYard() {
- SendLetterYard({
- bookingId: this.id
- })
+ SendLetterYard(this.id)
.then((res) => {
if (res.success) {
this.$message.success('发送成功')
@@ -790,9 +776,7 @@ export default {
},
TxxpLink() {
- TxxpLink({
- bookingId: this.id
- })
+ TxxpLink(this.id)
.then((res) => {
if (res.success) {
console.log(res.data)
@@ -807,9 +791,7 @@ export default {
},
checkFun () {
- ExcuteRulesOceanBooking({
- bookingId: this.id
- })
+ ExcuteRulesOceanBooking(this.id)
.then((res) => {
if (res.success) {
this.$emit('rules', res.data.rows)
diff --git a/src/views/main/BookingLedger/list/index.vue b/src/views/main/BookingLedger/list/index.vue
index d0d26a8..2946dc5 100644
--- a/src/views/main/BookingLedger/list/index.vue
+++ b/src/views/main/BookingLedger/list/index.vue
@@ -57,7 +57,7 @@