|
|
|
@ -1267,7 +1267,6 @@ import formLabel from './modules/formLabel'
|
|
|
|
|
import importBc from './modules/importBc'
|
|
|
|
|
import importBcMore from './modules/importBcMore'
|
|
|
|
|
import {
|
|
|
|
|
PageDataByBooking,
|
|
|
|
|
SendTrace,
|
|
|
|
|
getVesselInfoService,
|
|
|
|
|
GetPortlist,
|
|
|
|
@ -1394,7 +1393,7 @@ export default {
|
|
|
|
|
pageSize: 20,
|
|
|
|
|
pageSizes: [10, 20, 50, 100, 200, 500]
|
|
|
|
|
},
|
|
|
|
|
columns: JSON.parse(JSON.stringify(initData.columns)),
|
|
|
|
|
columns: [],
|
|
|
|
|
data: []
|
|
|
|
|
},
|
|
|
|
|
formTableData: JSON.parse(JSON.stringify(initData.columns)),
|
|
|
|
@ -1448,7 +1447,7 @@ export default {
|
|
|
|
|
txxpFlag: false,
|
|
|
|
|
formatPdf: '',
|
|
|
|
|
formatFlag: false,
|
|
|
|
|
showLabel:[]
|
|
|
|
|
showLabel: []
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
@ -1502,6 +1501,11 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.createdInit()
|
|
|
|
|
if (localStorage.getItem('formTableData')) {
|
|
|
|
|
this.gridOptions.columns = JSON.parse(localStorage.getItem('formTableData'));
|
|
|
|
|
} else {
|
|
|
|
|
this.gridOptions.columns = JSON.parse(JSON.stringify(initData.columns))
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.onresize()
|
|
|
|
@ -1563,7 +1567,13 @@ export default {
|
|
|
|
|
this.bcObj = {}
|
|
|
|
|
},
|
|
|
|
|
getListByone(listId, listIndex) {
|
|
|
|
|
PageDataByBooking({ id: listId }).then(res => {
|
|
|
|
|
const showArr = []
|
|
|
|
|
this.showLabel.forEach(item => {
|
|
|
|
|
if (item.field) {
|
|
|
|
|
showArr.push(item.field)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
PageDataNew({ id: listId, showColumns: showArr }).then(res => {
|
|
|
|
|
const item = res.data.items[0]
|
|
|
|
|
const bookstatus = [
|
|
|
|
|
{ staCode: 'sta_cangdan', isChecked: false },
|
|
|
|
@ -1689,7 +1699,13 @@ export default {
|
|
|
|
|
SaveServiceStatusByList(data).then(res => {
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
this.$message.success(res.data.msg)
|
|
|
|
|
PageDataByBooking({ id: row.id }).then(ress => {
|
|
|
|
|
const showArr = []
|
|
|
|
|
this.showLabel.forEach(item => {
|
|
|
|
|
if (item.field) {
|
|
|
|
|
showArr.push(item.field)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
PageDataNew({ id: row.id, showColumns: showArr }).then(ress => {
|
|
|
|
|
const itme = ress.data.items[0]
|
|
|
|
|
row.bsstatusname = itme.bsstatusname
|
|
|
|
|
row.serviceLoad = false
|
|
|
|
@ -1709,7 +1725,13 @@ export default {
|
|
|
|
|
CancelServiceStatusByList(data).then(res => {
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
this.$message.success(res.data.msg)
|
|
|
|
|
PageDataByBooking({ id: row.id }).then(ress => {
|
|
|
|
|
const showArr = []
|
|
|
|
|
this.showLabel.forEach(item => {
|
|
|
|
|
if (item.field) {
|
|
|
|
|
showArr.push(item.field)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
PageDataNew({ id: row.id, showColumns: showArr }).then(ress => {
|
|
|
|
|
const itme = ress.data.items[0]
|
|
|
|
|
row.bsstatusname = itme.bsstatusname
|
|
|
|
|
row.serviceLoad = false
|
|
|
|
@ -1731,7 +1753,13 @@ export default {
|
|
|
|
|
SaveServiceStatusByList(data).then(res => {
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
this.$message.success(res.data.msg)
|
|
|
|
|
PageDataByBooking({ id: this.editRow.id }).then(ress => {
|
|
|
|
|
const showArr = []
|
|
|
|
|
this.showLabel.forEach(item => {
|
|
|
|
|
if (item.field) {
|
|
|
|
|
showArr.push(item.field)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
PageDataNew({ id: this.editRow.id, showColumns: showArr }).then(ress => {
|
|
|
|
|
const itme = ress.data.items[0]
|
|
|
|
|
this.editRow.bsstatusname = itme.bsstatusname
|
|
|
|
|
})
|
|
|
|
@ -1750,7 +1778,13 @@ export default {
|
|
|
|
|
CancelServiceStatusByList(data).then(res => {
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
this.$message.success(res.data.msg)
|
|
|
|
|
PageDataByBooking({ id: this.editRow.id }).then(ress => {
|
|
|
|
|
const showArr = []
|
|
|
|
|
this.showLabel.forEach(item => {
|
|
|
|
|
if (item.field) {
|
|
|
|
|
showArr.push(item.field)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
PageDataNew({ id: this.editRow.id, showColumns: showArr }).then(ress => {
|
|
|
|
|
const itme = ress.data.items[0]
|
|
|
|
|
this.editRow.bsstatusname = itme.bsstatusname
|
|
|
|
|
})
|
|
|
|
@ -2045,7 +2079,13 @@ export default {
|
|
|
|
|
row.refshYzitemLoad = true
|
|
|
|
|
RefreshBillTrace('ids=' + row.id).then(res => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
PageDataByBooking({ id: row.id }).then(ress => {
|
|
|
|
|
const showArr = []
|
|
|
|
|
this.showLabel.forEach(item => {
|
|
|
|
|
if (item.field) {
|
|
|
|
|
showArr.push(item.field)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
PageDataNew({ id: row.id, showColumns: showArr }).then(ress => {
|
|
|
|
|
const item = ress.data.items[0]
|
|
|
|
|
row.refshYzitemLoad = false
|
|
|
|
|
const bookstatus = [
|
|
|
|
@ -2614,6 +2654,7 @@ export default {
|
|
|
|
|
submitTableForm(data) {
|
|
|
|
|
this.showLabel = JSON.parse(JSON.stringify(data))
|
|
|
|
|
this.gridOptions.columns = JSON.parse(JSON.stringify(data))
|
|
|
|
|
localStorage.setItem('formTableData', JSON.stringify(data));
|
|
|
|
|
this.$refs.setTableForm.handleCancel()
|
|
|
|
|
this.editColumnsSave(this.gridOptions.columns)
|
|
|
|
|
},
|
|
|
|
@ -3411,7 +3452,13 @@ export default {
|
|
|
|
|
this.TaskShippingOrderCompareData = res.data.extra
|
|
|
|
|
this.TaskShippingOrderCompareData.total = res.data.total
|
|
|
|
|
this.TaskShippingOrderCompareVisible = true
|
|
|
|
|
PageDataByBooking({ id: data.id }).then(ress => {
|
|
|
|
|
const showArr = []
|
|
|
|
|
this.showLabel.forEach(item => {
|
|
|
|
|
if (item.field) {
|
|
|
|
|
showArr.push(item.field)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
PageDataNew({ id: data.id, showColumns: showArr }).then(ress => {
|
|
|
|
|
const itme = ress.data.items[0]
|
|
|
|
|
this.spinning = false
|
|
|
|
|
data.lstShipOrderCompareRlt = itme.lstShipOrderCompareRlt
|
|
|
|
|