|
@@ -26,21 +26,20 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="仓库" prop="correspondId">
|
|
|
- <el-select
|
|
|
- v-model="screenForm.correspondId"
|
|
|
- placeholder="请选择发货仓库"
|
|
|
- size="mini"
|
|
|
- style="margin-right: 10px"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="(item, index) in warehouseList"
|
|
|
- :key="index"
|
|
|
- :label="item.name"
|
|
|
- :value="item.id"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
+ <el-form-item label="仓库" prop="correspondId">
|
|
|
+ <el-select
|
|
|
+ v-model="screenForm.correspondId"
|
|
|
+ placeholder="请选择发货仓库"
|
|
|
+ size="mini"
|
|
|
+ style="margin-right: 10px"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in warehouseList"
|
|
|
+ :key="index"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -78,7 +77,7 @@
|
|
|
<el-date-picker
|
|
|
v-model="screenForm.date"
|
|
|
type="datetimerange"
|
|
|
-:default-time="['00:00:00','23:59:59']"
|
|
|
+ :default-time="['00:00:00', '23:59:59']"
|
|
|
range-separator="至"
|
|
|
style="width: 100%"
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
@@ -92,7 +91,7 @@
|
|
|
<el-date-picker
|
|
|
v-model="screenForm.printTime"
|
|
|
type="datetimerange"
|
|
|
-:default-time="['00:00:00','23:59:59']"
|
|
|
+ :default-time="['00:00:00', '23:59:59']"
|
|
|
range-separator="至"
|
|
|
style="width: 100%"
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
@@ -170,27 +169,27 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="left" label="销售订单号" prop="mainOrderId" min-width="140" show-overflow-tooltip>
|
|
|
- <template slot-scope="scope">
|
|
|
- <CopyButton
|
|
|
- :copy-text="
|
|
|
- scope.row.orderType === 'TRADE' ||
|
|
|
- scope.row.orderType === 'HOME' ||
|
|
|
- scope.row.orderType === 'REQUISITION_TRADE' ||
|
|
|
- scope.row.orderType === 'REQUISITION_HOME'
|
|
|
- ? scope.row.enginOrderNo
|
|
|
- : scope.row.mainOrderId
|
|
|
- "
|
|
|
- />
|
|
|
- <span>{{
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <CopyButton
|
|
|
+ :copy-text="
|
|
|
scope.row.orderType === 'TRADE' ||
|
|
|
scope.row.orderType === 'HOME' ||
|
|
|
scope.row.orderType === 'REQUISITION_TRADE' ||
|
|
|
scope.row.orderType === 'REQUISITION_HOME'
|
|
|
? scope.row.enginOrderNo
|
|
|
: scope.row.mainOrderId
|
|
|
- }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
+ "
|
|
|
+ />
|
|
|
+ <span>{{
|
|
|
+ scope.row.orderType === 'TRADE' ||
|
|
|
+ scope.row.orderType === 'HOME' ||
|
|
|
+ scope.row.orderType === 'REQUISITION_TRADE' ||
|
|
|
+ scope.row.orderType === 'REQUISITION_HOME'
|
|
|
+ ? scope.row.enginOrderNo
|
|
|
+ : scope.row.mainOrderId
|
|
|
+ }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column align="left" label="物料编码" prop="materialCode" min-width="120" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
<CopyButton :copy-text="scope.row.materialCode" />
|
|
@@ -297,18 +296,18 @@ export default {
|
|
|
jxsName: '',
|
|
|
jxsNum: '',
|
|
|
correspondId: '',
|
|
|
- date: '',
|
|
|
+ date: [],
|
|
|
status: '',
|
|
|
takerPhone: '',
|
|
|
takerId: '',
|
|
|
- printTime: '',
|
|
|
+ printTime: [],
|
|
|
salesOrderId: '',
|
|
|
logisticsId: ''
|
|
|
},
|
|
|
pickupManList: '',
|
|
|
isCollapse: true,
|
|
|
logisticsList: [],
|
|
|
- warehouseList:[]
|
|
|
+ warehouseList: []
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -325,8 +324,8 @@ export default {
|
|
|
takerPhone: this.screenForm.takerPhone,
|
|
|
takerId: this.screenForm.takerId,
|
|
|
logisticsId: this.screenForm.logisticsId,
|
|
|
- printStartTime: this.screenForm.printTime[0],
|
|
|
- printEndTime: this.screenForm.printTime[1],
|
|
|
+ printStartTime: this.screenForm.printTime ? this.screenForm.printTime[0] : '',
|
|
|
+ printEndTime: this.screenForm.printTime ? this.screenForm.printTime[1] : '',
|
|
|
salesOrderId: this.screenForm.salesOrderId
|
|
|
}
|
|
|
}
|
|
@@ -357,8 +356,8 @@ export default {
|
|
|
status: this.screenForm.status,
|
|
|
takerPhone: this.screenForm.takerPhone,
|
|
|
takerId: this.screenForm.takerId,
|
|
|
- printStartTime: this.screenForm.printTime[0],
|
|
|
- printEndTime: this.screenForm.printTime[1],
|
|
|
+ printStartTime: this.screenForm.printTime ? this.screenForm.printTime[0] : '',
|
|
|
+ printEndTime: this.screenForm.printTime ? this.screenForm.printTime[1] : '',
|
|
|
salesOrderId: this.screenForm.salesOrderId
|
|
|
}
|
|
|
getPickupList(params).then(res => {
|
|
@@ -367,8 +366,8 @@ export default {
|
|
|
this.listLoading = false
|
|
|
})
|
|
|
},
|
|
|
-// 获取仓库列表
|
|
|
-getWarehouseList() {
|
|
|
+ // 获取仓库列表
|
|
|
+ getWarehouseList() {
|
|
|
getWarehouseList({
|
|
|
pageNum: 1,
|
|
|
pageSize: -1
|
|
@@ -399,7 +398,7 @@ getWarehouseList() {
|
|
|
|
|
|
// 重置筛选表单
|
|
|
resetScreenForm() {
|
|
|
- this.$refs.screenForm.resetFields()
|
|
|
+ this.$refs.screenForm.resetFields()
|
|
|
this.currentPage = 1
|
|
|
this.getList()
|
|
|
},
|