|
@@ -63,7 +63,8 @@
|
|
|
/>
|
|
|
</template>
|
|
|
<template slot-scope="scope" slot="salesman">
|
|
|
- <el-select v-model="goodsForm.salesman" placeholder="请选择" :disabled="goodsForm.status !== 0">
|
|
|
+ <el-select v-model="goodsForm.salesman" placeholder="请选择" :disabled="goodsForm.status !== 0"
|
|
|
+ @change="changeSelect">
|
|
|
<el-option
|
|
|
v-for="item in salesmanList"
|
|
|
:key="item.id"
|
|
@@ -155,7 +156,7 @@
|
|
|
<template slot="headerSerial" slot-scope="{column}">
|
|
|
<el-tooltip class="item" effect="dark" content="录入明细" placement="top">
|
|
|
<el-button type="primary" icon="el-icon-circle-plus-outline" circle size="mini"
|
|
|
- @click="$refs.crudBox.rowCellAdd({arrivalTime:goodsForm.arrivalTime})"></el-button>
|
|
|
+ @click="$refs.crudBox.rowCellAdd({arrivalTime:new Date((new Date).getTime() + 8 * 60 * 60 * 1000).toJSON().split('T').join(' ').substr(0, 19)})"></el-button>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
<template slot="ctnTypeHeader" slot-scope="{column}">
|
|
@@ -570,77 +571,129 @@ export default {
|
|
|
type: 'sum',
|
|
|
decimals: 0
|
|
|
}],
|
|
|
- column: [
|
|
|
- {
|
|
|
- label: '状态',
|
|
|
- width: 100,
|
|
|
- type: 'select',
|
|
|
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=land_order_status",
|
|
|
- props: {
|
|
|
- label: "dictValue",
|
|
|
- value: "dictKey"
|
|
|
- },
|
|
|
- dataType: "string",
|
|
|
- prop: 'status'
|
|
|
- }, {
|
|
|
- label: '车队',
|
|
|
- width: 200,
|
|
|
- prop: 'fleetName'
|
|
|
- }, {
|
|
|
- label: '应付陆运费',
|
|
|
- cell: true,
|
|
|
- prop: 'landAmountC'
|
|
|
- }, {
|
|
|
- label: '箱型',
|
|
|
- width: 100,
|
|
|
- slot: true,
|
|
|
- prop: 'ctnType'
|
|
|
- }, {
|
|
|
- label: '箱量',
|
|
|
- width: 50,
|
|
|
- prop: 'ctnQuantity'
|
|
|
- }, {
|
|
|
- label: '重量',
|
|
|
- width: 160,
|
|
|
- prop: 'landWeight',
|
|
|
- controls: false,
|
|
|
- precision: 2,
|
|
|
- type: 'number'
|
|
|
- }, {
|
|
|
- label: '货运日期',
|
|
|
- type: "datetime",
|
|
|
- format: 'yyyy-MM-dd HH:mm:ss',
|
|
|
- valueFormat: 'yyyy-MM-dd HH:mm:ss',
|
|
|
- width: 200,
|
|
|
- prop: 'arrivalTime'
|
|
|
- }, {
|
|
|
- label: '车号',
|
|
|
- width: 150,
|
|
|
- prop: 'plateNo'
|
|
|
- }, {
|
|
|
- label: '司机',
|
|
|
- width: 115,
|
|
|
- prop: 'driverName'
|
|
|
- }, {
|
|
|
- label: '电话',
|
|
|
- width: 160,
|
|
|
- prop: 'tel'
|
|
|
- }, {
|
|
|
- label: '运费',
|
|
|
- prop: 'landAmountD'
|
|
|
- }, {
|
|
|
- label: '委托备注',
|
|
|
- width: 245,
|
|
|
- prop: 'remarks'
|
|
|
- }, {
|
|
|
- label: '车队备注',
|
|
|
- width: 245,
|
|
|
- prop: 'fleetRemarks'
|
|
|
- }, {
|
|
|
- label: '司机备注',
|
|
|
- width: 245,
|
|
|
- prop: 'driverRemarks'
|
|
|
- }
|
|
|
+ column: [{
|
|
|
+ label: '货运日期',
|
|
|
+ type: "datetime",
|
|
|
+ format: 'yyyy-MM-dd HH:mm:ss',
|
|
|
+ valueFormat: 'yyyy-MM-dd HH:mm:ss',
|
|
|
+ width: 200,
|
|
|
+ index: 1,
|
|
|
+ prop: 'arrivalTime'
|
|
|
+ }, {
|
|
|
+ label: '受理日期',
|
|
|
+ type: "datetime",
|
|
|
+ format: 'yyyy-MM-dd HH:mm:ss',
|
|
|
+ valueFormat: 'yyyy-MM-dd HH:mm:ss',
|
|
|
+ width: 200,
|
|
|
+ index: 2,
|
|
|
+ prop: 'acceptTime'
|
|
|
+ }, {
|
|
|
+ label: '实际到厂时间',
|
|
|
+ prop: 'realArrivalTime',
|
|
|
+ overHidden: true,
|
|
|
+ type: "date",
|
|
|
+ searchRange: true,
|
|
|
+ defaultTime: ['00:00:00', '23:59:59'],
|
|
|
+ format: "yyyy-MM-dd HH:mm:ss",
|
|
|
+ valueFormat: "yyyy-MM-dd HH:mm:ss",
|
|
|
+ index:3,
|
|
|
+ width: 140,
|
|
|
+ }, {
|
|
|
+ label: '完工日期',
|
|
|
+ prop: 'finishedTime',
|
|
|
+ overHidden: true,
|
|
|
+ type: "date",
|
|
|
+ searchRange: true,
|
|
|
+ defaultTime: ['00:00:00', '23:59:59'],
|
|
|
+ format: "yyyy-MM-dd HH:mm:ss",
|
|
|
+ valueFormat: "yyyy-MM-dd HH:mm:ss",
|
|
|
+ index: 4,
|
|
|
+ width: 140,
|
|
|
+ }, {
|
|
|
+ label: '箱型',
|
|
|
+ width: 100,
|
|
|
+ slot: true,
|
|
|
+ index: 5,
|
|
|
+ prop: 'ctnType'
|
|
|
+ }, {
|
|
|
+ label: '箱量',
|
|
|
+ width: 50,
|
|
|
+ index: 6,
|
|
|
+ prop: 'ctnQuantity'
|
|
|
+ }, {
|
|
|
+ label: '货物名称',
|
|
|
+ overHidden: true,
|
|
|
+ width: 160,
|
|
|
+ index: 7,
|
|
|
+ prop: 'goods'
|
|
|
+ }, {
|
|
|
+ label: '件数',
|
|
|
+ width: 100,
|
|
|
+ overHidden: true,
|
|
|
+ controls: false,
|
|
|
+ cell: true,
|
|
|
+ index: 8,
|
|
|
+ prop: 'quantity',
|
|
|
+ type: 'number',
|
|
|
+ precision: 0
|
|
|
+ }, {
|
|
|
+ label: '重量',
|
|
|
+ width: 160,
|
|
|
+ prop: 'landWeight',
|
|
|
+ controls: false,
|
|
|
+ precision: 2,
|
|
|
+ index: 9,
|
|
|
+ type: 'number'
|
|
|
+ }, {
|
|
|
+ label: '尺码',
|
|
|
+ width: 100,
|
|
|
+ overHidden: true,
|
|
|
+ index: 10,
|
|
|
+ prop: 'size',
|
|
|
+ }, {
|
|
|
+ label: '委托备注',
|
|
|
+ width: 245,
|
|
|
+ index: 11,
|
|
|
+ prop: 'remarks'
|
|
|
+ }, {
|
|
|
+ label: '状态',
|
|
|
+ width: 100,
|
|
|
+ index: 12,
|
|
|
+ type: 'select',
|
|
|
+ dicUrl: "/api/blade-system/dict-biz/dictionary?code=land_order_status",
|
|
|
+ props: {
|
|
|
+ label: "dictValue",
|
|
|
+ value: "dictKey"
|
|
|
+ },
|
|
|
+ dataType: "string",
|
|
|
+ prop: 'status'
|
|
|
+ }
|
|
|
+ // {
|
|
|
+ // label: '应付陆运费',
|
|
|
+ // cell: true,
|
|
|
+ // prop: 'landAmountC'
|
|
|
+ // }
|
|
|
+ // , {
|
|
|
+ // label: '车号',
|
|
|
+ // width: 150,
|
|
|
+ // prop: 'plateNo'
|
|
|
+ // }, {
|
|
|
+ // label: '司机',
|
|
|
+ // width: 115,
|
|
|
+ // prop: 'driverName'
|
|
|
+ // }, {
|
|
|
+ // label: '电话',
|
|
|
+ // width: 160,
|
|
|
+ // prop: 'tel'
|
|
|
+ // }, {
|
|
|
+ // label: '车队备注',
|
|
|
+ // width: 245,
|
|
|
+ // prop: 'fleetRemarks'
|
|
|
+ // }, {
|
|
|
+ // label: '司机备注',
|
|
|
+ // width: 245,
|
|
|
+ // prop: 'driverRemarks'
|
|
|
+ // }
|
|
|
]
|
|
|
},
|
|
|
vehicleOption: {},
|
|
@@ -892,22 +945,25 @@ export default {
|
|
|
message: " ",
|
|
|
trigger: "blur"
|
|
|
}],
|
|
|
- }, {
|
|
|
- label: '货运日期',
|
|
|
- type: "datetime",
|
|
|
- format: 'yyyy-MM-dd HH:mm:ss',
|
|
|
- valueFormat: 'yyyy-MM-dd HH:mm:ss',
|
|
|
- prop: 'arrivalTime',
|
|
|
- rules: [{
|
|
|
- required: true,
|
|
|
- message: " ",
|
|
|
- trigger: "blur"
|
|
|
- }],
|
|
|
- }, {
|
|
|
- label: '备注',
|
|
|
- span: 24,
|
|
|
- prop: 'remarks'
|
|
|
- }]
|
|
|
+ }
|
|
|
+ // , {
|
|
|
+ // label: '货运日期',
|
|
|
+ // type: "datetime",
|
|
|
+ // format: 'yyyy-MM-dd HH:mm:ss',
|
|
|
+ // valueFormat: 'yyyy-MM-dd HH:mm:ss',
|
|
|
+ // prop: 'arrivalTime',
|
|
|
+ // rules: [{
|
|
|
+ // required: true,
|
|
|
+ // message: " ",
|
|
|
+ // trigger: "blur"
|
|
|
+ // }],
|
|
|
+ // }
|
|
|
+ , {
|
|
|
+ label: '备注',
|
|
|
+ span: 24,
|
|
|
+ prop: 'remarks',
|
|
|
+ type: 'textarea'
|
|
|
+ }]
|
|
|
},
|
|
|
goodsOptionFormTwo: {
|
|
|
menuBtn: false,
|
|
@@ -958,8 +1014,7 @@ export default {
|
|
|
prop: 'podId'
|
|
|
}, {
|
|
|
label: '预配箱量',
|
|
|
- prop: 'expectCtnQty',
|
|
|
- type: 'date'
|
|
|
+ prop: 'expectCtnQty'
|
|
|
}, {
|
|
|
label: '截单日期',
|
|
|
prop: 'siCutoffDate',
|
|
@@ -1283,36 +1338,66 @@ export default {
|
|
|
this.collectionOption = await this.getColumnData(this.getColumnName(85.4), this.collectionOptionBackup);
|
|
|
this.paymentOption = await this.getColumnData(this.getColumnName(85.5), this.paymentOptionBackup);
|
|
|
if (this.id) {
|
|
|
- detailDelegationList({id: this.id, kind: '1'}).then(res => {
|
|
|
- this.goodsForm = res.data.data
|
|
|
- this.tableData = res.data.data.orderAddressList
|
|
|
- this.entrustList = res.data.data.itemList
|
|
|
- this.goodsList = res.data.data.itemList
|
|
|
- this.vehicleList = res.data.data.orderItemList
|
|
|
- this.orderFilesList = res.data.data.fileList
|
|
|
- if (res.data.data.orderFeeList.length > 0) {
|
|
|
- res.data.data.orderFeeList.forEach(item => {
|
|
|
- if (item.type == 1) {
|
|
|
- this.collectionList.push(item)
|
|
|
- } else {
|
|
|
- this.paymentList.push(item)
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- this.goodsOptionFormTwo.disabled = this.goodsOptionForm.disabled = this.goodsOptionFormC.disabled = this.collectionOption.disabled = this.paymentOption.disabled = this.goodsForm.status !== 0
|
|
|
- delete this.goodsForm.orderAddressList
|
|
|
- delete this.goodsForm.itemList
|
|
|
- delete this.goodsForm.orderFeeList
|
|
|
- // this.tableData.forEach(item => {
|
|
|
- // if (item.region) item.region = item.region.split(',')
|
|
|
- // })
|
|
|
- //查询业务员
|
|
|
- this.salesmanQuery()
|
|
|
- })
|
|
|
+ if (this.id.slice(0, 4) === 'copy') {
|
|
|
+ detailDelegationList({id: this.id.slice(4, this.id.length), kind: '1'}).then(res => {
|
|
|
+ this.goodsForm = res.data.data
|
|
|
+ this.tableData = res.data.data.orderAddressList
|
|
|
+ this.entrustList = res.data.data.itemList
|
|
|
+ this.goodsList = res.data.data.itemList
|
|
|
+ this.vehicleList = res.data.data.orderItemList
|
|
|
+ this.orderFilesList = res.data.data.fileList
|
|
|
+ if (res.data.data.orderFeeList.length > 0) {
|
|
|
+ res.data.data.orderFeeList.forEach(item => {
|
|
|
+ if (item.type == 1) {
|
|
|
+ this.collectionList.push(item)
|
|
|
+ } else {
|
|
|
+ this.paymentList.push(item)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.goodsOptionFormTwo.disabled = this.goodsOptionForm.disabled = this.goodsOptionFormC.disabled = this.collectionOption.disabled = this.paymentOption.disabled = this.goodsForm.status !== 0
|
|
|
+ delete this.goodsForm.orderAddressList
|
|
|
+ delete this.goodsForm.itemList
|
|
|
+ delete this.goodsForm.orderFeeList
|
|
|
+ this.goodsForm.id = ''
|
|
|
+ this.tableData.forEach(item => item.id = '')
|
|
|
+ this.entrustList.forEach(item => item.id = '')
|
|
|
+ this.goodsList.forEach(item => item.id = '')
|
|
|
+ this.vehicleList.forEach(item => item.id = '')
|
|
|
+ this.orderFilesList.forEach(item => item.id = '')
|
|
|
+ //查询业务员
|
|
|
+ this.salesmanQuery()
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ detailDelegationList({id: this.id, kind: '1'}).then(res => {
|
|
|
+ this.goodsForm = res.data.data
|
|
|
+ this.tableData = res.data.data.orderAddressList
|
|
|
+ this.entrustList = res.data.data.itemList
|
|
|
+ this.goodsList = res.data.data.itemList
|
|
|
+ this.vehicleList = res.data.data.orderItemList
|
|
|
+ this.orderFilesList = res.data.data.fileList
|
|
|
+ if (res.data.data.orderFeeList.length > 0) {
|
|
|
+ res.data.data.orderFeeList.forEach(item => {
|
|
|
+ if (item.type == 1) {
|
|
|
+ this.collectionList.push(item)
|
|
|
+ } else {
|
|
|
+ this.paymentList.push(item)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.goodsOptionFormTwo.disabled = this.goodsOptionForm.disabled = this.goodsOptionFormC.disabled = this.collectionOption.disabled = this.paymentOption.disabled = this.goodsForm.status !== 0
|
|
|
+ delete this.goodsForm.orderAddressList
|
|
|
+ delete this.goodsForm.itemList
|
|
|
+ delete this.goodsForm.orderFeeList
|
|
|
+ // this.tableData.forEach(item => {
|
|
|
+ // if (item.region) item.region = item.region.split(',')
|
|
|
+ // })
|
|
|
+ //查询业务员
|
|
|
+ this.salesmanQuery()
|
|
|
+ })
|
|
|
+ }
|
|
|
} else {
|
|
|
- this.tableData = [{
|
|
|
- }, {
|
|
|
- }]
|
|
|
+ this.tableData = [{}, {}]
|
|
|
getCorp().then(res => {
|
|
|
this.goodsForm = {
|
|
|
corpId: res.data.data ? res.data.data.id : '',
|
|
@@ -1324,7 +1409,7 @@ export default {
|
|
|
}
|
|
|
this.salesmanQuery()
|
|
|
})
|
|
|
- this.entrustList = [{$cellEdit: true}]
|
|
|
+ this.entrustList = []
|
|
|
}
|
|
|
// 非租户模式默认加载管理组数据
|
|
|
if (!website.tenantMode) {
|
|
@@ -1335,6 +1420,13 @@ export default {
|
|
|
this.$refs.other.show = false
|
|
|
},
|
|
|
methods: {
|
|
|
+ changeSelect(val) {
|
|
|
+ for (let item of this.salesmanList) {
|
|
|
+ if (item.id == val) {
|
|
|
+ this.goodsForm.salesmanDept = item.deptId.split(',')[0]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
initData(tenantId) {
|
|
|
getDeptTree(tenantId).then(res => {
|
|
|
const column = this.findObject(this.goodsOptionForm.column, "salesmanDept");
|
|
@@ -1756,4 +1848,9 @@ export default {
|
|
|
::v-deep .el-form-item__content {
|
|
|
line-height: 32px;
|
|
|
}
|
|
|
+
|
|
|
+::v-deep .el-card__body {
|
|
|
+ padding: 10px 15px;
|
|
|
+ font-size: 14px;
|
|
|
+}
|
|
|
</style>
|