@@ -303,12 +300,9 @@
:title="TaskShippingOrderCompareData.isExistsDiff ? '下货纸比对(有差异)' : '下货纸比对(正常)'"
@cancel="TaskShippingOrderCompareHandleCancel"
:visible="TaskShippingOrderCompareVisible"
- width="40%"
- >
+ width="40%">
-
- 关闭
-
+ 关闭
{{ TaskShippingOrderCompareData.compareTime }}
@@ -337,8 +331,7 @@
class="TaskShippingOrderCompareMainList"
v-for="(item, index) in TaskShippingOrderCompareData.showDetailList"
:key="index"
- v-show="item.pCode != 'ContaList'"
- >
+ v-show="item.pCode != 'ContaList'">
{{ item.fieldName }}:
{{ item.reqVal }}
@@ -364,10 +357,8 @@
v-for="(item, index) in TaskShippingOrderCompareData.showDetailList"
:key="index"
v-show="item.pCode == 'ContaList'"
- :class="
- item.fieldName == '箱号' ? 'TaskShippingOrderCompareMainList BoxNo' : 'TaskShippingOrderCompareMainList'
- "
- >
+ :class="item.fieldName == '箱号' ? 'TaskShippingOrderCompareMainList BoxNo' : 'TaskShippingOrderCompareMainList'
+ ">
{{ item.fieldName }}:
{{ item.reqVal }}
@@ -410,8 +401,7 @@
:width="400"
:visible="moreNumVisible"
@ok="moreNumSubmit"
- @cancel="moreNumCancel"
- >
+ @cancel="moreNumCancel">
@@ -423,8 +413,7 @@
:formAllData="formMoreData"
type="from"
@ok="submitForm"
- v-if="formMoreData"
- >
+ v-if="formMoreData">
+ v-if="formMoreTableData">
备注内容:
@@ -451,8 +439,7 @@
{ 'seat-top': goodStatusSeat === 'top' },
{ 'seat-bottom': goodStatusSeat === 'bottom' }
]"
- :style="{ top: `${goodStatusScreenY}px`, left: `${goodStatusScreenX}px` }"
- >
+ :style="{ top: `${goodStatusScreenY}px`, left: `${goodStatusScreenX}px` }">
货运动态
@@ -468,11 +455,7 @@
-
+
{{ goodStatusItem.statusName }}
@@ -487,15 +470,13 @@
label="请选择订阅内容"
:labelCol="{ xs: { span: 24 }, sm: { span: 6 } }"
:wrapperCol="{ xs: { span: 24 }, sm: { span: 15 } }"
- has-feedback
- >
+ has-feedback>
+ @change="onTraceChange" />
@@ -511,8 +492,7 @@
v-model="editingModalVisible"
title="批量编辑"
@ok="editingHandleOk"
- @cancel="editingHandleCancel"
- >
+ @cancel="editingHandleCancel">
@@ -521,8 +501,7 @@
label="船名"
:labelCol="{ xs: { span: 24 }, sm: { span: 5 } }"
:wrapperCol="{ xs: { span: 24 }, sm: { span: 18 } }"
- has-feedback
- >
+ has-feedback>
+ :not-found-content="null">
{{ item.name }}
@@ -546,14 +524,12 @@
label="开船日期"
:labelCol="{ xs: { span: 24 }, sm: { span: 5 } }"
:wrapperCol="{ xs: { span: 24 }, sm: { span: 18 } }"
- has-feedback
- >
+ has-feedback>
+ valueFormat="YYYY-MM-DD" />
@@ -561,8 +537,7 @@
label="内部航次"
:labelCol="{ xs: { span: 24 }, sm: { span: 5 } }"
:wrapperCol="{ xs: { span: 24 }, sm: { span: 18 } }"
- has-feedback
- >
+ has-feedback>
@@ -572,8 +547,7 @@
label="海关航次"
:labelCol="{ xs: { span: 24 }, sm: { span: 5 } }"
:wrapperCol="{ xs: { span: 24 }, sm: { span: 18 } }"
- has-feedback
- >
+ has-feedback>
@@ -582,8 +556,7 @@
label="卸货港"
:labelCol="{ xs: { span: 24 }, sm: { span: 5 } }"
:wrapperCol="{ xs: { span: 24 }, sm: { span: 18 } }"
- has-feedback
- >
+ has-feedback>
+ :not-found-content="null">
{{ item.enName }}
@@ -607,8 +579,7 @@
label="卸货代码"
:labelCol="{ xs: { span: 24 }, sm: { span: 5 } }"
:wrapperCol="{ xs: { span: 24 }, sm: { span: 18 } }"
- has-feedback
- >
+ has-feedback>
@@ -617,8 +588,7 @@
label="目的港"
:labelCol="{ xs: { span: 24 }, sm: { span: 5 } }"
:wrapperCol="{ xs: { span: 24 }, sm: { span: 18 } }"
- has-feedback
- >
+ has-feedback>
+ :not-found-content="null">
{{ item.enName }}
@@ -642,8 +611,7 @@
label="目的代码"
:labelCol="{ xs: { span: 24 }, sm: { span: 5 } }"
:wrapperCol="{ xs: { span: 24 }, sm: { span: 18 } }"
- has-feedback
- >
+ has-feedback>
@@ -652,16 +620,14 @@
label="截港时间"
:labelCol="{ xs: { span: 24 }, sm: { span: 5 } }"
:wrapperCol="{ xs: { span: 24 }, sm: { span: 18 } }"
- has-feedback
- >
+ has-feedback>
+ format="YYYY-MM-DD HH" />
@@ -669,22 +635,38 @@
label="截单时间"
:labelCol="{ xs: { span: 24 }, sm: { span: 5 } }"
:wrapperCol="{ xs: { span: 24 }, sm: { span: 18 } }"
- has-feedback
- >
+ has-feedback>
+ format="YYYY-MM-DD HH" />
+
+
+
时间{{ bcFile.executeTime }}
+
{{ bcFile.batchTotal }}
+
+
+
+ {{ item.bno }}
+ {{ item.msg }}
+
+
+ {{ bcFile.msg }}
+
@@ -713,7 +695,11 @@ import {
DjyUserConfigMulti,
DeleteBookingOrder,
ExcuteShippingOrderCompareBatch,
- GetTenantLineList
+ GetTenantLineList,
+ downloadBookingConfirm,
+ downloadDraft,
+ checkUpdateETA,
+ checkUpdateManifestNo
} from '@/api/modular/main/BookingLedger'
import initData from './modules/initData'
@@ -821,7 +807,9 @@ export default {
portDischargeData: [],
destinationData: [],
RcarrierData: [],
- RecentlyCarrierData: []
+ RecentlyCarrierData: [],
+ bcFile: { ext: [] },
+ bcFileFlag: false
}
},
computed: {
@@ -855,7 +843,7 @@ export default {
next()
},
beforeRouteEnter(to, from, next) {
- next(vm => {
+ next((vm) => {
vm.upDate()
})
},
@@ -923,6 +911,59 @@ export default {
// }
}
},
+ handleDownByBc(type) {
+ const select = this.$refs.xGrid.getCheckboxRecords()
+ const pkIdArr = select.map((item, index) => {
+ return item.id
+ })
+ if (pkIdArr.length === 0) {
+ this.$message.error('请至少选择一条数据')
+ return false
+ } else {
+ if (type === 1) {
+ downloadBookingConfirm(pkIdArr)
+ .then((res) => {
+ if (res.success) {
+ this.bcFileFlag = true
+ this.bcFile = res.data
+ } else {
+ this.$message.error(res.message)
+ }
+ })
+ .catch((err) => {
+ console.log(err)
+ })
+ }
+ if (type === 2) {
+ downloadDraft(pkIdArr)
+ .then((res) => {
+ if (res.success) {
+ this.bcFileFlag = true
+ this.bcFile = res.data
+ } else {
+ this.$message.error(res.message)
+ }
+ })
+ .catch((err) => {
+ console.log(err)
+ })
+ }
+ if (type === 4) {
+ checkUpdateManifestNo(pkIdArr)
+ .then((res) => {
+ if (res.success) {
+ this.bcFileFlag = true
+ this.bcFile = res.data
+ } else {
+ this.$message.error(res.message)
+ }
+ })
+ .catch((err) => {
+ console.log(err)
+ })
+ }
+ }
+ },
// 批量编辑
editingHandleOk() {
const {
@@ -932,10 +973,10 @@ export default {
if (!errors) {
values.id = []
const select = this.$refs.xGrid.getCheckboxRecords()
- select.forEach(item => {
+ select.forEach((item) => {
values.id.push(item.id)
})
- BookingOrderBachUpdate(values).then(res => {
+ BookingOrderBachUpdate(values).then((res) => {
if (res.success) {
this.$message.success('编辑成功')
this.editingHandleCancel()
@@ -962,7 +1003,7 @@ export default {
this.WebVessel = data
}
- GetVessellist({ KeyWord: data }).then(res => {
+ GetVessellist({ KeyWord: data }).then((res) => {
this.vesselData = res.data
})
},
@@ -977,12 +1018,12 @@ export default {
}
},
portDischargeSearch(data) {
- GetPortlist({ KeyWord: data }).then(res => {
+ GetPortlist({ KeyWord: data }).then((res) => {
this.portDischargeData = res.data
})
},
portDischargeChange(value) {
- this.portDischargeData.forEach(item => {
+ this.portDischargeData.forEach((item) => {
if (item.enName == value) {
setTimeout(() => {
this.editingForm.setFieldsValue({
@@ -994,12 +1035,12 @@ export default {
})
},
destinationSearch(data) {
- GetPortlist({ KeyWord: data }).then(res => {
+ GetPortlist({ KeyWord: data }).then((res) => {
this.destinationData = res.data
})
},
destinationChange(value) {
- this.destinationData.forEach(item => {
+ this.destinationData.forEach((item) => {
if (item.enName == value) {
setTimeout(() => {
this.editingForm.setFieldsValue({
@@ -1031,9 +1072,9 @@ export default {
},
getConfigUser(isInit = false) {
const query = {
- typeArr: ['booking_list_cond', 'booking_list_column', 'booking_list_page']
+ typeArr: ['booking_list_cond', 'booking_list_column', 'booking_list_page', 'booking_sort']
}
- DjyUserConfigMulti(this.$qs.stringify(query, { arrayFormat: 'repeat' })).then(res => {
+ DjyUserConfigMulti(this.$qs.stringify(query, { arrayFormat: 'repeat' })).then((res) => {
const $data = {}
res.data.map((item, index) => {
switch (item.type) {
@@ -1045,6 +1086,9 @@ export default {
this.$set($data, 'booking_list_column', item)
// this.setTableList(item)
break
+ case 'booking_sort':
+ this.setSort(item)
+ break
case 'booking_list_page':
this.setPageSize(item)
break
@@ -1063,34 +1107,42 @@ export default {
}
})
},
+ setSort(item) {
+ const key = JSON.parse(item.configJson).key
+ const sort = JSON.parse(item.configJson).sort
+ this.tableOrderLabel = key || ''
+ this.tableOrderType = sort || ''
+ this.$refs.xGrid.sort(key, sort)
+ console.log(this.$refs.xGrid)
+ },
// 船公司 - start
getCarrier() {
- const Rdata = data => {
- let RData = {}
+ const Rdata = (data) => {
+ const RData = {}
for (var i = 0; i < 26; i++) {
RData[String.fromCharCode(65 + i)] = []
- data.forEach(item => {
+ data.forEach((item) => {
if (String.fromCharCode(65 + i) == item.enName[0].toUpperCase()) {
RData[String.fromCharCode(65 + i)].push(item)
}
})
}
- let Obj = {
+ const Obj = {
'A-D': ['A', 'B', 'C', 'D'],
'E-L': ['E', 'F', 'G', 'H', 'I', 'J', 'K', 'L'],
'M-R': ['M', 'N', 'O', 'P', 'Q', 'R'],
'S-U': ['S', 'T', 'U'],
'V-Z': ['V', 'W', 'X', 'Y', 'Z']
}
- let Data = {
+ const Data = {
'A-D': [],
'E-L': [],
'M-R': [],
'S-U': [],
'V-Z': []
}
- Object.keys(Obj).forEach(e => {
- Obj[e].forEach(item => {
+ Object.keys(Obj).forEach((e) => {
+ Obj[e].forEach((item) => {
RData[item].forEach((Ai, AiIndex) => {
let imgSrc = ''
try {
@@ -1106,15 +1158,15 @@ export default {
this.RcarrierData = Data
}
GetCarrierlist()
- .then(res => {
+ .then((res) => {
if (res.code === 200) {
Rdata(res.data)
DjyUserConfigGet({ type: 'booking_memory' })
- .then(e => {
+ .then((e) => {
if (e.data) {
- let data = []
- JSON.parse(e.data.configJson).forEach(item => {
- res.data.forEach(item2 => {
+ const data = []
+ JSON.parse(e.data.configJson).forEach((item) => {
+ res.data.forEach((item2) => {
if (item == item2.code) {
data.push(item2)
}
@@ -1128,7 +1180,7 @@ export default {
})
}
})
- .catch(err => {
+ .catch((err) => {
console.log(err)
})
},
@@ -1189,6 +1241,7 @@ export default {
}
this.$forceUpdate()
},
+ customSortMethod() { },
setTableList(data) {
if (Object.keys(data).length > 0 && JSON.parse(data.configJson).length) {
this.formTableData = JSON.parse(data.configJson)
@@ -1224,7 +1277,7 @@ export default {
setPageSize(data) {
if (data && JSON.parse(data.configJson)) {
this.gridOptions.pagerConfig.pageSize = JSON.parse(data.configJson).pageSize
- this.getList({}, true, 'add')
+ // this.getList({}, true, 'add')
this.$forceUpdate()
} else {
this.getList({}, true)
@@ -1232,7 +1285,7 @@ export default {
},
getFormData(isReset = false) {
- DjyUserConfigGet({ type: 'booking_list_cond' }).then(res => {
+ DjyUserConfigGet({ type: 'booking_list_cond' }).then((res) => {
this.setFormData(res.data)
})
},
@@ -1254,7 +1307,7 @@ export default {
},
getFromSelectData(func, ...args) {
return new Promise((resolve, reject) => {
- func(...args).then(res => {
+ func(...args).then((res) => {
if (res.code === 200) {
resolve(res.data)
} else {
@@ -1279,7 +1332,7 @@ export default {
DjyUserConfigAdd({
type: 'booking_list_page',
configJson: JSON.stringify(data)
- }).then(res => {
+ }).then((res) => {
console.log('页码设置成功')
})
},
@@ -1287,7 +1340,7 @@ export default {
toggleAdvanced() {
this.advanced = !this.advanced
this.$forceUpdate()
- let start = new Date().getTime()
+ const start = new Date().getTime()
console.log('== 点击展开 ==', start)
if (!this.advanced) {
const len = this.formData.length % 4
@@ -1372,7 +1425,7 @@ export default {
DjyUserConfigAdd({
type: 'booking_list_cond',
configJson: JSON.stringify(arr)
- }).then(res => {
+ }).then((res) => {
this.$message.success('保存成功')
this.$refs.setForm.handleCancel()
Object.keys(this.$refs).map((label, index) => {
@@ -1422,7 +1475,7 @@ export default {
DjyUserConfigAdd({
type: 'booking_list_column',
configJson: JSON.stringify(data)
- }).then(res => {
+ }).then((res) => {
this.$refs.setForm.handleCancel()
})
},
@@ -1442,6 +1495,15 @@ export default {
handledbclick({ row }) {
this.editColumns(row)
},
+ handleCopy() {
+ const text = this.$refs.bcBox.innerText
+ var cInput = document.createElement('input');
+ cInput.value = text;
+ document.body.appendChild(cInput);
+ cInput.select(); // 选取文本框内容
+ document.execCommand('copy');
+ document.body.removeChild(cInput);
+ },
editColumns(row) {
this.$router.push({ name: 'BookingDetail', query: { id: row.id, type: row.carrierid, mblno: row.mblno } })
},
@@ -1474,7 +1536,7 @@ export default {
query.firstFlag = true
}
BookingOrderPage(query)
- .then(res => {
+ .then((res) => {
if (res.success) {
let newBookingList = {}
if (query.PageNo !== 1) {
@@ -1519,6 +1581,10 @@ export default {
})
this.$set(this.gridOptions.pagerConfig, 'total', res.data.totalCount)
this.setBookingList(newBookingList)
+ if (this.tableOrderType) {
+ this.$refs.xGrid.sort(this.tableOrderLabel, this.tableOrderType)
+ }
+
this.$forceUpdate()
} else {
this.$set(this.gridOptions, 'data', [...[]])
@@ -1528,7 +1594,7 @@ export default {
this.ResetType = true
console.log(this.gridOptions)
})
- .catch(err => {
+ .catch((err) => {
console.log(err)
})
},
@@ -1561,10 +1627,10 @@ export default {
}
},
addSubmit() {
- let data = []
+ const data = []
data.push(this.carrierRadio)
if (this.RecentlyCarrierData.length) {
- this.RecentlyCarrierData.forEach(item => {
+ this.RecentlyCarrierData.forEach((item) => {
if (item.code != this.carrierRadio && data.length < 10) {
data.push(item.code)
}
@@ -1574,7 +1640,7 @@ export default {
DjyUserConfigAdd({
type: 'booking_memory',
configJson: JSON.stringify(data)
- }).then(res => {
+ }).then((res) => {
this.getCarrier()
this.addVisible = false
this.addNum = Math.round(Math.random() * 1000)
@@ -1596,7 +1662,7 @@ export default {
this.moreNumVal
.replace(/\n|\r/g, ',')
.split(',')
- .forEach(item => {
+ .forEach((item) => {
if (item.replace(/\s*/g, '')) {
if (data) {
data = `${data},${item}`
@@ -1616,10 +1682,20 @@ export default {
},
tableSortChange(e) {
const { property, order } = e
+ console.log(property, order)
this.tableOrderLabel = property || ''
this.tableOrderType = order || ''
- console.log('== 当前搜索内容 ==', this.searchData)
- this.getList(this.searchData)
+ const data = {
+ key: property,
+ sort: order
+ }
+ DjyUserConfigAdd({
+ type: 'booking_sort',
+ configJson: JSON.stringify(data)
+ }).then((res) => {
+ this.getList(this.searchData)
+ })
+ // this.$refs.xGrid.sort(this.tableOrderLabel, this.tableOrderType)
},
enmuBookingBtn(val) {
switch (val) {
@@ -1756,7 +1832,7 @@ export default {
}
SendTrace(arr)
- .then(res => {
+ .then((res) => {
if (res.success) {
const tip = `订阅成功`
this.$message.success(tip)
@@ -1768,7 +1844,7 @@ export default {
this.traceValue = []
}
})
- .catch(err => {
+ .catch((err) => {
console.log(err)
})
},
@@ -1830,7 +1906,7 @@ export default {
}
const fun = this.emnuCompleteApi(form.label)
if (fun) {
- this.getFromSelectData(this.emnuCompleteApi(form.label), query).then(data => {
+ this.getFromSelectData(this.emnuCompleteApi(form.label), query).then((data) => {
if (['CUSTOMERNAME', 'FORWARDER', 'CUSTOMSER', 'AGENTID', 'TRUCKER'].includes(form.label)) {
this.$refs[`fromlabel-${form.label}`][0].$data.dataSourceList = data.rows
} else {
@@ -1864,8 +1940,8 @@ export default {
return GetSysUserPage
case 'ROUTE':
return GetSysUserPage
- case 'OP':
- return GetSysUserPage
+ // case 'OP':
+ // return GetSysUserPage
case 'DOC':
return GetSysUserPage
case 'CUSTOMSER':
@@ -1892,7 +1968,7 @@ export default {
getSelectFirst({ form, index, value }) {
const fun = this.emnuSelectApi(form.label)
if (fun) {
- this.getFromSelectData(fun).then(data => {
+ this.getFromSelectData(fun).then((data) => {
this.formData[index].dataList = data
this.$refs[`fromlabel-${form.label}`][0].$data.dataList = data
})
@@ -1915,10 +1991,10 @@ export default {
},
deleteBookingOrder(arr) {
DeleteBookingOrder(arr.toString())
- .then(res => {
+ .then((res) => {
if (res.success) {
this.$message.success('删除成功')
- const _data = this.gridOptions.data.filter(item => !arr.includes(item.id))
+ const _data = this.gridOptions.data.filter((item) => !arr.includes(item.id))
this.$refs.xGrid.reloadData(_data).then(() => {
this.gridOptions.pagerConfig.total = this.gridOptions.pagerConfig.total - arr.length
})
@@ -1927,7 +2003,7 @@ export default {
this.$message.error(res.message)
}
})
- .catch(err => {
+ .catch((err) => {
console.log(err)
})
},
@@ -1957,7 +2033,7 @@ export default {
}
this.spinning = true
ExcuteShippingOrderCompareBatch(arr)
- .then(res => {
+ .then((res) => {
if (res.success) {
this.spinning = false
if (!res.data.succ) {
@@ -1976,7 +2052,7 @@ export default {
this.$message.error(res.data.msg)
}
})
- .catch(err => {
+ .catch((err) => {
console.log(err)
this.spinning = false
})
@@ -1991,22 +2067,27 @@ export default {
/*列表排序按钮 */
.vxe-cell--sort {
margin-top: -6px;
+
i {
font-size: 10px;
}
+
.vxe-sort--asc-btn {
margin-top: 6px;
}
}
+
/*列表表头 */
.vxe-header--row {
position: relative;
background: #fff !important;
+
.vxe-cell--sort {
position: absolute;
z-index: 3;
right: 0;
}
+
&::after {
content: '';
position: absolute;
@@ -2019,6 +2100,7 @@ export default {
opacity: 0.04;
}
}
+
/*列表分页 */
.vxe-pager {
margin: 8px 0;
@@ -2029,14 +2111,17 @@ export default {
.mblno {
text-align: left;
color: @primary-color !important;
+
span {
margin-right: 0.5rem;
cursor: pointer;
}
+
.CSMblnoCopy {
cursor: pointer;
}
}
+
// .vessel {
// color: #77c950;
// }
@@ -2052,6 +2137,7 @@ export default {
height: 28px;
line-height: 26px;
color: #000;
+
.iconfont {
margin-right: 6px;
}
@@ -2065,6 +2151,7 @@ export default {
.iconfont {
color: #1d8aff;
}
+
&:hover {
background: #fff;
box-shadow: 0 0 10px #eee;
@@ -2075,6 +2162,7 @@ export default {
.iconfont {
color: #865ef8;
}
+
&:hover {
background: #fff;
box-shadow: 0 0 10px #eee;
@@ -2085,6 +2173,7 @@ export default {
.iconfont {
color: #ff9702;
}
+
&:hover {
background: #fff;
box-shadow: 0 0 10px #eee;
@@ -2095,6 +2184,7 @@ export default {
.iconfont {
color: #1d8aff;
}
+
&:hover {
background: #fff;
box-shadow: 0 0 10px #eee;
@@ -2105,6 +2195,7 @@ export default {
.iconfont {
color: #ff1062;
}
+
&:hover {
background: #fff;
box-shadow: 0 0 10px #eee;
@@ -2115,6 +2206,7 @@ export default {
.iconfont {
color: #1ebeca;
}
+
&:hover {
background: #fff;
box-shadow: 0 0 10px #eee;
@@ -2125,6 +2217,7 @@ export default {
.iconfont {
color: #82c93d;
}
+
&:hover {
background: #fff;
box-shadow: 0 0 10px #eee;
@@ -2135,15 +2228,18 @@ export default {
.iconfont {
color: #1d8aff;
}
+
&:hover {
background: #fff;
box-shadow: 0 0 10px #eee;
}
}
+
&:nth-of-type(9) {
.iconfont {
color: #f6826b;
}
+
&:hover {
background: #fff;
box-shadow: 0 0 10px #eee;
@@ -2157,8 +2253,10 @@ export default {
cursor: pointer;
padding-top: 6px;
}
+
.BookTopButton {
height: 33px;
+
.tab-btn {
padding: 6px 9px;
border: 1px solid #c7c7c9;
@@ -2171,13 +2269,16 @@ export default {
-webkit-user-select: 0 2px 0 rgba(0, 0, 0, 0.02);
}
}
+
.table-page-search-submitButtons {
text-align: right;
padding-top: 6px;
+
.reset {
margin-left: 8px;
margin-right: 8px;
}
+
.more-search {
margin-left: 8px;
margin-right: 20px;
@@ -2186,6 +2287,7 @@ export default {
position: relative;
box-shadow: none !important;
}
+
/*.tab-btn{
margin-left:8px;
margin-right: 10px;
@@ -2198,11 +2300,13 @@ export default {
.tab-btn {
cursor: pointer;
position: relative;
+
i {
font-size: 14px;
margin-left: 8px;
}
}
+
.tab-btn::before {
content: '';
position: absolute;
@@ -2212,15 +2316,18 @@ export default {
top: 2px;
left: -20px;
}
+
.senior-search {
margin-left: 36px;
color: rgba(0, 0, 0, 0.65);
position: relative;
+
i {
margin-left: 3px;
font-size: 15px;
}
}
+
.senior-search::before {
content: '';
position: absolute;
@@ -2230,16 +2337,20 @@ export default {
top: 2px;
left: -16px;
}
+
.senior-search:hover {
color: @primary-color;
+
i {
color: @primary-color;
}
}
}
+
.ant-btn {
margin-right: 8px;
}
+
.table {
margin: 8px auto 20px;
}
@@ -2249,23 +2360,28 @@ export default {
// height: 40px;
display: inline-block;
}
+
.group-label-box {
width: 100%;
+
.group-label {
width: 100%;
display: flex;
flex-wrap: wrap;
+
.ant-radio-wrapper {
height: 45px !important;
line-height: 45px !important;
width: 10%;
margin: 0;
}
+
// .label-flex {
// flex: 1;
// }
}
}
+
.Awrapper {
width: 100% !important;
display: flex !important;
@@ -2273,6 +2389,7 @@ export default {
line-height: 45px !important;
width: 10%;
margin: 0;
+
.line {
margin-left: 10px;
margin-right: 40px;
@@ -2281,6 +2398,7 @@ export default {
border-bottom: 1px solid #c9c9c9;
}
}
+
/*查询区日期默认颜色 */
/deep/ .ant-calendar-today {
.ant-calendar-date {
@@ -2288,12 +2406,14 @@ export default {
border-color: @primary-color !important;
}
}
+
/*方块边框按钮 */
.tab-btn:hover {
border-color: @primary-color;
color: @primary-color;
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}
+
/*列表双列背景色 */
// /deep/ .vxe-table--render-default .vxe-body--row.row--stripe {
// // background: #f5f9fe;
@@ -2317,10 +2437,12 @@ export default {
/deep/ .operate-btn {
color: @primary-color;
}
+
/deep/ .operate-btn:hover {
color: @primary-color !important;
opacity: 0.7;
}
+
.book-btn {
display: inline-block;
padding: 0 10px;
@@ -2330,28 +2452,35 @@ export default {
color: #999;
font-size: 12px;
line-height: 24px;
+
i {
display: none;
}
+
&.sta_so {
color: #8bc34a;
border: 1px solid #8bc34a;
}
+
&.sta_bc {
color: #fbc02d;
border: 1px solid #fbc02d;
}
+
&.sta_letter_yard {
color: #00bcd4;
border: 1px solid #00bcd4;
}
+
&.sta_xhz {
color: #e64a19;
border: 1px solid #e64a19;
}
}
+
.billtrace-box {
width: 100%;
+
// display: flex;
// height: 48px;
// flex-wrap:wrap;
@@ -2361,6 +2490,7 @@ export default {
display: inline-block;
font-size: 12px;
height: 16px;
+
// width:30%;
// display: flex;
span {
@@ -2368,15 +2498,18 @@ export default {
text-align: right;
color: #999;
}
+
i {
font-size: 12px;
color: #ccc;
// flex: 1;
text-align: center;
+
&.hide {
opacity: 0;
}
}
+
.active {
cursor: pointer;
// color: @primary-color;
@@ -2385,11 +2518,13 @@ export default {
}
}
}
+
.normal-box {
.billtrace-btn {
display: inline-block;
}
}
+
.flex-box {
display: flex;
height: 48px;
@@ -2397,31 +2532,37 @@ export default {
padding: 3px 0;
text-align: center;
justify-content: center;
+
.billtrace-btn {
font-size: 12px;
height: 16px;
width: 30%;
display: flex;
+
span {
flex: 1;
text-align: right;
color: #999;
}
+
i {
font-size: 12px;
color: #ccc;
flex: 1;
text-align: center;
+
&.hide {
opacity: 0;
}
}
+
.active {
cursor: pointer;
// color: @primary-color;
color: #ff9702;
font-weight: bold;
}
+
&:nth-of-type(3) {
i {
opacity: 0;
@@ -2429,23 +2570,29 @@ export default {
}
}
}
+
/deep/ .ant-form-item {
margin-bottom: 10px !important;
}
+
/deep/ .table-page-search-submitButtons {
margin-bottom: 10px !important;
}
+
/deep/ .ant-input {
height: 28px;
margin-top: 4px;
// transform: scaleY(.8);
}
+
/deep/ .ant-card-body {
padding-top: 10px;
}
+
/deep/ .ant-calendar-picker-input {
padding: 0 4px;
}
+
/deep/ .ant-calendar-range-picker-input {
height: 28px;
font-size: 12px;
@@ -2453,9 +2600,11 @@ export default {
text-align: center;
// background: #f99;
}
+
.reamrk-btns {
overflow: visible;
}
+
/deep/ .from-label {
padding: 0 !important;
}
@@ -2477,8 +2626,10 @@ export default {
margin-right: 4px;
}
}
+
.table-page-search-submitButtons .senior-search {
margin-left: 20px;
+
&::before {
left: -7px;
}
@@ -2486,9 +2637,10 @@ export default {
}
/deep/ .book-remark-box {
- > .vxe-cell {
+ >.vxe-cell {
overflow: visible !important;
}
+
/deep/ .vxe-cell {
overflow: visible !important;
}
@@ -2496,6 +2648,7 @@ export default {
.bookremark {
position: relative;
+
.reamrk-label {
width: 100%;
white-space: nowrap;
@@ -2512,12 +2665,14 @@ export default {
display: flex;
height: 48px;
align-items: center;
+
.goods-status-left {
flex: 1;
overflow: hidden;
height: 48px;
text-overflow: ellipsis;
white-space: nowrap;
+
.goods-tip {
font-size: 12px;
margin: 0 4px;
@@ -2528,10 +2683,12 @@ export default {
color: @primary-color;
}
}
+
.goods-status-right {
width: 30px;
text-align: center;
height: 48px;
+
i {
color: @primary-color;
cursor: pointer;
@@ -2539,6 +2696,7 @@ export default {
line-height: 48px;
}
}
+
.TablelstShipOrderCompareRltRedo {
cursor: pointer;
margin-left: 0.5rem;
@@ -2570,9 +2728,11 @@ export default {
/deep/.line-box:nth-of-type(2n) {
position: relative;
background: #fff;
- > * {
+
+ >* {
z-index: 1;
}
+
&::after {
content: '';
position: absolute;
@@ -2584,6 +2744,7 @@ export default {
background: @primary-color;
opacity: 0.04;
}
+
.book-remark-box {
.bookremark {
.reamrk-list {
@@ -2609,12 +2770,14 @@ export default {
white-space: normal;
text-align: left;
z-index: 999 !important;
+
.title {
height: 30px;
line-height: 30px;
font-size: 12px;
font-weight: 600;
}
+
.list {
border-bottom: 1px solid #eee;
padding: 6px 0;
@@ -2622,15 +2785,18 @@ export default {
font-size: 12px;
color: #666;
word-break: break-all;
+
&:nth-last-of-type(1) {
border: none;
}
+
.icon {
margin-right: 4px;
color: @primary-color;
}
}
}
+
.goods-hovers-list {
max-height: 400px;
position: fixed;
@@ -2649,6 +2815,7 @@ export default {
transition: 0.5s all;
display: block;
opacity: 1;
+
&.seat-top {
&::before {
display: none;
@@ -2657,10 +2824,12 @@ export default {
// left: 50%;
}
}
+
&.hide-goods-hover {
display: none;
opacity: 0;
}
+
// overflow: auto;
&::before {
content: '';
@@ -2684,6 +2853,7 @@ export default {
font-size: 12px;
font-weight: 600;
}
+
.goods-btn {
display: inline-block;
font-size: 12px;
@@ -2698,10 +2868,12 @@ export default {
text-align: center;
margin: 0 2px 8px;
cursor: pointer;
+
&.active {
color: @primary-color;
border: 1px solid @primary-color;
}
+
.icon {
margin-right: 4px;
color: @primary-color;
@@ -2712,6 +2884,7 @@ export default {
@media (min-width: 1192px) and (max-width: 1591px) {
.booking-from-box {
padding-right: 24px;
+
/deep/ .ant-calendar-picker-icon {
display: none;
}
@@ -2723,6 +2896,7 @@ export default {
margin-top: -4px !important;
}
}
+
/deep/ .ant-form-item-control-wrapper {
overflow: hidden !important;
}
@@ -2731,59 +2905,73 @@ export default {
display: block;
color: #aaa;
font-size: 14px;
+
i {
line-height: 120px;
font-size: 100px;
}
}
+
/deep/ .content-table .vxe-body--column .vxe-cell div {
color: #000;
}
+
.pono {
text-align: left;
}
+
/deep/ .vxe-header--row th {
text-align: left !important;
}
+
/deep/ .vxe-cell--title {
width: 100%;
text-align: left;
}
+
.TaskShippingOrderCompareP {
border-bottom: 1px solid #000;
padding: 5px;
background: #0000000e;
+
.TaskShippingOrderCompareSpan {
font-weight: bolder;
color: red;
}
}
+
.TaskShippingOrderCompareMainBox {
height: 55vh;
overflow-y: auto;
+
.TaskShippingOrderCompareMain {
p {
margin-bottom: 0;
}
+
.TaskShippingOrderCompareMainHeader {
display: flex;
- > div {
+
+ >div {
&:nth-child(1) {
flex: 3;
}
+
&:nth-child(2) {
width: 46px;
}
+
&:nth-child(3) {
flex: 3;
}
- > p {
+ >p {
&:first-child {
font-weight: bolder;
}
}
}
+
&.Box {
border-top: 1px solid #000;
// border-bottom: 1px solid #000;
@@ -2791,22 +2979,28 @@ export default {
margin-bottom: 0.5rem;
}
}
+
.TaskShippingOrderCompareMainList {
display: flex;
align-items: center;
margin-bottom: 0.5rem;
- > p {
+
+ >p {
flex: 2;
+
&:nth-child(1) {
flex: 1;
}
+
&:nth-child(3) {
flex: 0;
margin: 0 1rem;
}
+
&:nth-child(4) {
flex: 1;
}
+
// &:nth-child(3) {
// flex: 2;
// margin: 0 1rem;
@@ -2824,9 +3018,11 @@ export default {
// padding-left: 0.5rem;
// }
}
+
&.BoxNo {
padding-top: 0.5rem;
border-top: 1px solid #000;
+
&:nth-child(1) {
padding-top: 0;
border: none;
@@ -2835,6 +3031,7 @@ export default {
}
}
}
+
// .form-box{
// .form-main{
// float: left;
@@ -2853,4 +3050,22 @@ export default {
// .more-btn{
// }
// }
+.bcfile-title{
+ border-bottom:1px dashed black;
+ padding-bottom: 5px;
+ margin-bottom: 10px;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+}
+.bc-box{
+ max-height: 200px;
+ overflow-y: auto;
+ padding-right: 14px;
+ .bc-item{
+ margin: 7px 0px;
+ display: flex;
+ justify-content: space-between;
+ }
+}
diff --git a/src/views/main/BookingLedger/list/modules/formLabel.vue b/src/views/main/BookingLedger/list/modules/formLabel.vue
index 68f1794..a0b6205 100644
--- a/src/views/main/BookingLedger/list/modules/formLabel.vue
+++ b/src/views/main/BookingLedger/list/modules/formLabel.vue
@@ -4,50 +4,21 @@
-
+
-
+
{{ sitem[labelData.showLabel2] }}/ {{ sitem[labelData.showLabel] }}
@@ -66,18 +37,9 @@
-
+
-
+
{{ item[labelData.showLabel] }}
@@ -188,7 +146,7 @@ export default {
'bookingInitData'
])
},
- mounted() {},
+ mounted() { },
methods: {
debounce(func, wait, ...args) {
if (timer) clearTimeout(timer)
@@ -286,10 +244,7 @@ export default {
'NOBILL',
'CARGOID',
'zhanCangFlag',
- 'status',
- 'taskCategory',
- 'taskSource',
- 'taskType'
+ 'OP'
].includes(this.labelData.label)
) {
this.dataList = this.emnuData(this.labelData.label)
@@ -303,6 +258,7 @@ export default {
}
},
emnuData(type) {
+ console.log(this.bookingInitData.opInitList)
switch (type) {
case 'LINENAME':
return this.lineList
@@ -322,14 +278,8 @@ export default {
return this.labelData.data
case 'zhanCangFlag':
return this.labelData.data
- case 'status':
- return this.labelData.data
- case 'taskCategory':
- return this.labelData.data
- case 'taskSource':
- return this.labelData.data
- case 'taskType':
- return this.labelData.data
+ case 'OP':
+ return this.bookingInitData.opInitList
}
},
completeSelect(value) {
@@ -362,7 +312,6 @@ export default {
'FORWARDER',
'SALE',
'CUSTSERVICE',
- 'OP',
'DOC',
'ROUTE',
'PAYABLEAT',
@@ -413,10 +362,13 @@ export default {
.aa {
transform: scaleY(0.8);
}
+
/deep/ .ant-select-selection__clear {
margin-top: 0;
}
+
.vessel-label {
+
// border-bottom:1px solid #eee;
.title {
height: 28px;
@@ -427,6 +379,7 @@ export default {
border-bottom: 1px dashed #ddd;
margin-bottom: 4px;
}
+
.voyno,
.etd {
height: 22px;
@@ -439,10 +392,12 @@ export default {
/deep/.ant-calendar-picker-input {
overflow: hidden;
}
+
/deep/.ant-calendar-range-picker-input {
height: 24px !important;
line-height: 24px !important;
}
+
/deep/ .ant-input {
height: 24px !important;
}
diff --git a/src/views/main/BookingLedger/list/modules/initData.js b/src/views/main/BookingLedger/list/modules/initData.js
index 51822fe..0d98e00 100644
--- a/src/views/main/BookingLedger/list/modules/initData.js
+++ b/src/views/main/BookingLedger/list/modules/initData.js
@@ -468,7 +468,7 @@ export default {
{ title: '装货港', align: 'center', width: 120, label: 'PORTLOAD', type: 'complete', showLabel: 'enName' },
{ title: '揽货人', align: 'center', width: 120, label: 'SALE', type: 'complete', showLabel: 'name' }, // 销售
{ title: '客服员', align: 'center', width: 120, label: 'CUSTSERVICE', type: 'complete', showLabel: 'name' },
- { title: '操作员', align: 'center', width: 120, label: 'OP', type: 'complete', showLabel: 'name' },
+ { title: '操作员', align: 'center', width: 120, label: 'OP', type: 'select', showLabel: 'name' },
{ title: '单证员', align: 'center', width: 120, label: 'DOC', type: 'complete', showLabel: 'name' },
{ title: '报关行', align: 'center', width: 120, label: 'CUSTOMSER', type: 'complete', showLabel: 'shortName' },
{ title: '订舱编号', align: 'center', width: 120, label: 'CUSTNO', type: 'input' },
diff --git a/src/views/main/SendCar/addForm.vue b/src/views/main/SendCar/addForm.vue
index d33fb4e..5840346 100644
--- a/src/views/main/SendCar/addForm.vue
+++ b/src/views/main/SendCar/addForm.vue
@@ -92,10 +92,15 @@
:showSearch="true"
:filterOption="filterOption"
v-decorator="['truckId']"
- @focus="gettruckIdData"
- @change="ChangetruckId"
+ @change="Changeyardid"
allowClear
- :disabled="taskPKId ? false : true"
+ :default-active-first-option="false"
+ :show-arrow="false"
+ :filter-option="false"
+ :not-found-content="null"
+ show-search
+ @search="gettruckIdData"
+ @focus="gettruckIdData"
>
{{ item.shortName }}
@@ -318,16 +323,21 @@
-
-
+
+
-
+
@@ -1200,7 +1210,8 @@ export default {
}
})
},
- gettruckIdData(name = '', type) {
+ gettruckIdData(name, type) {
+ console.log(name)
DjyCustomerQuerytDjyCustomerInfo({ queryType: 'fleet', queryItem: name }).then((res) => {
this.truckIdData = res.data
})
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 0c5a7f9..a6d8a8f 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -50,12 +50,17 @@
:columns="columns"
:data="loadData"
:alert="true"
+ :pageSizeOptions="['10', '20', '50', '100']"
:rowKey="record => record.id"
:rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
>
- 新增用户
+ 新增用户
-
{{ sexFilter(text) }}
@@ -173,13 +177,15 @@ export default {
},
{
title: '姓名',
- dataIndex: 'name'
+ dataIndex: 'name',
+ sorter: true
},
{
title: '部门',
- dataIndex: 'sysEmpInfo',
+ dataIndex: 'orgName',
+ sorter: true,
scopedSlots: {
- customRender: 'sysEmpInfo'
+ customRender: 'orgName'
}
},
{
@@ -256,6 +262,9 @@ export default {
}
},
methods: {
+ handleTableChange(pagination, filters, sorter) {
+ console.log(pagination, filters, sorter);
+ },
departmentFilter(sysEmpInfo) {
// console.log('sysEmpInfo===>>',sysEmpInfo)
return sysEmpInfo.orgName
@@ -361,13 +370,13 @@ export default {
})
},
downloadfile(res) {
- let fileReader = new FileReader()
- let _this = this
+ const fileReader = new FileReader()
+ const _this = this
fileReader.onload = function() {
try {
// 如果JSON.parse(this.result)不报错,说明this.result是json对象,则弹框提示
// 如果JSON.parse(this.result)报错,说明返回的是文件流,进入catch,下载文件
- let r = JSON.parse(this.result)
+ const r = JSON.parse(this.result)
if (!r.success) {
_this.$message.error(r.message)
} else {