|
@@ -14,6 +14,65 @@
|
|
label-position="right"
|
|
label-position="right"
|
|
>
|
|
>
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
|
|
+ <el-col :xs="24" :sm="24" :lg="24">
|
|
|
|
+ <el-form-item label="提货方式">
|
|
|
|
+ <el-radio-group v-model="radio" @change="handleReset">
|
|
|
|
+ <el-radio :label="0">物流公司</el-radio>
|
|
|
|
+ <el-radio :label="1">商家自提</el-radio>
|
|
|
|
+ </el-radio-group>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+
|
|
|
|
+ <template v-if="!radio">
|
|
|
|
+ <el-row :gutter="20">
|
|
|
|
+ <el-col :xs="24" :sm="8" :lg="6">
|
|
|
|
+ <el-form-item label="物流公司">
|
|
|
|
+ <el-select v-model="screenForm.logistics" placeholder="选择物流公司" clearable filterable >
|
|
|
|
+ <el-option v-for="item in logisticsArr"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.value">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :xs="24" :sm="8" :lg="6">
|
|
|
|
+ <el-form-item label="经销商">
|
|
|
|
+ <el-select v-model="screenForm.customerId" placeholder="选择经销商" clearable filterable >
|
|
|
|
+ <el-option v-for="item in dealerList"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :xs="24" :sm="8" :lg="6">
|
|
|
|
+ <el-form-item label="仓库">
|
|
|
|
+ <el-select v-model="screenForm.warehouse" placeholder="选择仓库" clearable filterable >
|
|
|
|
+ <el-option v-for="item in warehouseList"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :xs="24" :sm="8" :lg="6">
|
|
|
|
+ <el-button size="mini" type="primary" @click="getList"
|
|
|
|
+ >查 询</el-button
|
|
|
|
+ >
|
|
|
|
+ </el-col>
|
|
|
|
+
|
|
|
|
+ </el-row>
|
|
|
|
+
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <el-row :gutter="20">
|
|
<el-col :xs="24" :sm="8" :lg="6">
|
|
<el-col :xs="24" :sm="8" :lg="6">
|
|
<el-form-item label="提货人手机号" prop="phone">
|
|
<el-form-item label="提货人手机号" prop="phone">
|
|
<el-input
|
|
<el-input
|
|
@@ -135,6 +194,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
+ </template>
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -248,10 +308,16 @@
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <CopyButton :copyText='scope.row.orderType === "TRADE" ||
|
|
|
|
- scope.row.orderType === "HOME" || scope.row.orderType
|
|
|
|
- ==="REQUISITION_TRADE" || scope.row.orderType
|
|
|
|
- ==="REQUISITION_HOME"? scope.row.enginOrderNo:scope.row.mainOrderId' />
|
|
|
|
|
|
+ <CopyButton
|
|
|
|
+ :copyText="
|
|
|
|
+ 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>{{
|
|
<span>{{
|
|
scope.row.orderType === "TRADE" ||
|
|
scope.row.orderType === "TRADE" ||
|
|
scope.row.orderType === "HOME" ||
|
|
scope.row.orderType === "HOME" ||
|
|
@@ -505,6 +571,8 @@ export default {
|
|
customerName: "",
|
|
customerName: "",
|
|
warehouse: "",
|
|
warehouse: "",
|
|
customerId: "",
|
|
customerId: "",
|
|
|
|
+ logistics:"",
|
|
|
|
+ storeId:""
|
|
},
|
|
},
|
|
statusList: [
|
|
statusList: [
|
|
{ label: "未打单", value: 0 },
|
|
{ label: "未打单", value: 0 },
|
|
@@ -532,6 +600,8 @@ export default {
|
|
},
|
|
},
|
|
userList: [],
|
|
userList: [],
|
|
isShowDialog: false,
|
|
isShowDialog: false,
|
|
|
|
+ radio: 0,
|
|
|
|
+ logisticsArr:[]
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
|
|
@@ -545,7 +615,7 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
created() {
|
|
created() {
|
|
- // this.getDealerList()
|
|
|
|
|
|
+ this.getDealerList()
|
|
this.getWarehouseList();
|
|
this.getWarehouseList();
|
|
},
|
|
},
|
|
// activated(){
|
|
// activated(){
|
|
@@ -555,6 +625,9 @@ export default {
|
|
this.initPrint();
|
|
this.initPrint();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ handleReset(){
|
|
|
|
+ this.$refs.screenForm.resetFields()
|
|
|
|
+ },
|
|
getDate() {
|
|
getDate() {
|
|
var date = new Date();
|
|
var date = new Date();
|
|
var seperator1 = "-";
|
|
var seperator1 = "-";
|
|
@@ -570,7 +643,6 @@ export default {
|
|
var currentdate = year + seperator1 + month + seperator1 + strDate;
|
|
var currentdate = year + seperator1 + month + seperator1 + strDate;
|
|
return currentdate;
|
|
return currentdate;
|
|
},
|
|
},
|
|
-
|
|
|
|
async getDealerList() {
|
|
async getDealerList() {
|
|
const res = await getDealerList({ pageNum: 1, pageSize: -1 });
|
|
const res = await getDealerList({ pageNum: 1, pageSize: -1 });
|
|
this.dealerList = res.data.records;
|
|
this.dealerList = res.data.records;
|