|
@@ -64,7 +64,7 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
<el-date-picker
|
|
|
- v-show="screen2=='制单日期'"
|
|
|
+ v-show="screen2 == '制单日期'"
|
|
|
v-model="startTime"
|
|
|
type="datetime"
|
|
|
placeholder="选择日期"
|
|
@@ -72,7 +72,7 @@
|
|
|
>
|
|
|
</el-date-picker>
|
|
|
<el-date-picker
|
|
|
- v-show="screen2=='订单日期'"
|
|
|
+ v-show="screen2 == '订单日期'"
|
|
|
v-model="startTime"
|
|
|
type="date"
|
|
|
placeholder="选择日期"
|
|
@@ -81,7 +81,7 @@
|
|
|
</el-date-picker>
|
|
|
<span>至</span>
|
|
|
<el-date-picker
|
|
|
- v-show="screen2=='制单日期'"
|
|
|
+ v-show="screen2 == '制单日期'"
|
|
|
v-model="endTime"
|
|
|
type="datetime"
|
|
|
placeholder="选择日期"
|
|
@@ -89,8 +89,8 @@
|
|
|
>
|
|
|
</el-date-picker>
|
|
|
<el-date-picker
|
|
|
- v-show="screen2=='订单日期'"
|
|
|
- v-model="startTime"
|
|
|
+ v-show="screen2 == '订单日期'"
|
|
|
+ v-model="endTime"
|
|
|
type="date"
|
|
|
placeholder="选择日期"
|
|
|
style="width:150px"
|
|
@@ -991,9 +991,7 @@
|
|
|
align="center"
|
|
|
:resizable="false"
|
|
|
>
|
|
|
- <template slot-scope="scope">{{
|
|
|
- scope.row.group + 1
|
|
|
- }}</template>
|
|
|
+ <template slot-scope="scope">{{ scope.row.group + 1 }}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="orderTime"
|
|
@@ -1072,11 +1070,7 @@
|
|
|
width="150px"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="netWeight"
|
|
|
- label="磅重"
|
|
|
- show-overflow-tooltip
|
|
|
- >
|
|
|
+ <el-table-column prop="netWeight" label="磅重" show-overflow-tooltip>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="saleRemark"
|
|
@@ -1191,11 +1185,7 @@
|
|
|
show-overflow-tooltip
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- @click="showPhoto(scope.row)"
|
|
|
- type="text"
|
|
|
- size="small"
|
|
|
- >
|
|
|
+ <el-button @click="showPhoto(scope.row)" type="text" size="small">
|
|
|
{{ scope.row.detailsRemark }}
|
|
|
</el-button>
|
|
|
</template>
|
|
@@ -1204,18 +1194,18 @@
|
|
|
<el-form style="margin-left:20%">
|
|
|
<el-form-item label="收货客户">
|
|
|
<el-autocomplete
|
|
|
- class="inline-input"
|
|
|
- v-model="consigneeName"
|
|
|
- :fetch-suggestions="querySearchConsignee"
|
|
|
- placeholder="请输入收货客户名称"
|
|
|
- :trigger-on-focus="false"
|
|
|
- @select="handleSelectConsignee"
|
|
|
- style="width:300px"
|
|
|
- >
|
|
|
- <template slot-scope="{ item }">
|
|
|
- <div class="name">{{ item.consigneeCompanyName }}</div>
|
|
|
- </template>
|
|
|
- </el-autocomplete>
|
|
|
+ class="inline-input"
|
|
|
+ v-model="consigneeName"
|
|
|
+ :fetch-suggestions="querySearchConsignee"
|
|
|
+ placeholder="请输入收货客户名称"
|
|
|
+ :trigger-on-focus="false"
|
|
|
+ @select="handleSelectConsignee"
|
|
|
+ style="width:300px"
|
|
|
+ >
|
|
|
+ <template slot-scope="{ item }">
|
|
|
+ <div class="name">{{ item.consigneeCompanyName }}</div>
|
|
|
+ </template>
|
|
|
+ </el-autocomplete>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<el-button
|
|
@@ -1345,7 +1335,7 @@ export default {
|
|
|
lable: '收款客户'
|
|
|
}
|
|
|
],
|
|
|
- options2: [
|
|
|
+ options2: [
|
|
|
{
|
|
|
value: '订单日期',
|
|
|
lable: '订单日期'
|
|
@@ -1573,13 +1563,13 @@ export default {
|
|
|
showStatementUpLoad: false,
|
|
|
detailAmount: null,
|
|
|
detailsList: [],
|
|
|
- consigneeUpdList:[],
|
|
|
+ consigneeUpdList: [],
|
|
|
showDetailsUpLoad: false,
|
|
|
showDetailsAdd: false,
|
|
|
- showConsigneeUpd:false,
|
|
|
- updateConsigneeRow:null,
|
|
|
- consigneeId:null,
|
|
|
- consigneeName:'',
|
|
|
+ showConsigneeUpd: false,
|
|
|
+ updateConsigneeRow: null,
|
|
|
+ consigneeId: null,
|
|
|
+ consigneeName: '',
|
|
|
detailRemark: null,
|
|
|
showPhotoPreview: false,
|
|
|
previewList: [],
|
|
@@ -2228,7 +2218,7 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- openConsigneeUpd(){
|
|
|
+ openConsigneeUpd() {
|
|
|
if (
|
|
|
!this.$refs.tableRef.selection ||
|
|
|
this.$refs.tableRef.selection.length != 1
|
|
@@ -2236,15 +2226,15 @@ export default {
|
|
|
this.$message.warning('请选择需要修改的订单,一次只允许选中一个')
|
|
|
return
|
|
|
} else {
|
|
|
- this.consigneeUpdList = [];
|
|
|
+ this.consigneeUpdList = []
|
|
|
let data = this.$refs.tableRef.selection
|
|
|
if (!data[0].orderId || !data[0].detailsId) {
|
|
|
this.$message.warning('没有派发运单或没有详单,无法修改此项')
|
|
|
return
|
|
|
}
|
|
|
- this.consigneeUpdList = this.visibleList.filter((item)=>{
|
|
|
- return item.orderId == data[0].orderId;
|
|
|
- });
|
|
|
+ this.consigneeUpdList = this.visibleList.filter(item => {
|
|
|
+ return item.orderId == data[0].orderId
|
|
|
+ })
|
|
|
this.showConsigneeUpd = true
|
|
|
this.updateConsigneeRow = null
|
|
|
this.consigneeId = null
|
|
@@ -2252,9 +2242,9 @@ export default {
|
|
|
this.isLoading = false
|
|
|
}
|
|
|
},
|
|
|
- consigneeUpdSelect(selection){
|
|
|
- console.log(selection);
|
|
|
- this.updateConsigneeRow=selection;
|
|
|
+ consigneeUpdSelect(selection) {
|
|
|
+ console.log(selection)
|
|
|
+ this.updateConsigneeRow = selection
|
|
|
},
|
|
|
handleSelectConsignee(item) {
|
|
|
this.consigneeName = item.consigneeCompanyName
|
|
@@ -2285,7 +2275,7 @@ export default {
|
|
|
)
|
|
|
}
|
|
|
},
|
|
|
- updateConsignee(){
|
|
|
+ updateConsignee() {
|
|
|
this.isLoading = true
|
|
|
if (!this.consigneeId || !this.updateConsigneeRow) {
|
|
|
this.$message.warning('请点击物资并填写、选中收货客户!')
|
|
@@ -2295,7 +2285,7 @@ export default {
|
|
|
orderId: this.updateConsigneeRow.orderId,
|
|
|
detailsId: this.updateConsigneeRow.detailsId,
|
|
|
userId: getCookie('userId'),
|
|
|
- consigneeId:this.consigneeId
|
|
|
+ consigneeId: this.consigneeId
|
|
|
}
|
|
|
this.axios.post('/api/v1/bms/updateConsignee', map).then(res => {
|
|
|
if (res.data.status == 'succeed') {
|
|
@@ -3985,8 +3975,8 @@ export default {
|
|
|
if (!obj) {
|
|
|
obj = new Object()
|
|
|
}
|
|
|
- if(this.screen2=='制单日期'){
|
|
|
- obj.saleMakeDate=1;
|
|
|
+ if (this.screen2 == '制单日期') {
|
|
|
+ obj.saleMakeDate = 1
|
|
|
}
|
|
|
if (this.activeName == 'first') {
|
|
|
const loading = this.$loading({
|