md
This commit is contained in:
parent
cf67862dba
commit
8e10b33d96
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<SearchForm :model="queryParams" ref="queryForm" size="mini" :maxShow="8" label-width="100px" v-show="showSearch" @search="handleQuery" @reset="resetQuery">
|
<SearchForm :model="queryParams" ref="queryForm" size="mini" :maxShow="8" label-width="100px" v-show="showSearch" @search="handleQuery" @reset="resetQuery">
|
||||||
|
|
||||||
<el-form-item label="运单号" prop="billCode">
|
<!-- <el-form-item label="运单号" prop="billCode">
|
||||||
<XdTextareaInput
|
<XdTextareaInput
|
||||||
v-model="queryParams.billCode"
|
v-model="queryParams.billCode"
|
||||||
:placeholder="$t('多个流水号逗号或换行隔开')"
|
:placeholder="$t('多个流水号逗号或换行隔开')"
|
||||||
@ -22,6 +22,22 @@
|
|||||||
:rows="1"
|
:rows="1"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
</el-form-item> -->
|
||||||
|
<el-form-item label="" prop="queryKey">
|
||||||
|
<div slot="label">
|
||||||
|
<el-radio-group class="query-label" v-model="queryParams.queryOrderType">
|
||||||
|
<el-radio :key="1" label="1">运单号</el-radio>
|
||||||
|
<el-radio :key="2" label="2">订单号</el-radio>
|
||||||
|
<el-radio :key="3" label="3">进仓单</el-radio>
|
||||||
|
</el-radio-group>
|
||||||
|
</div>
|
||||||
|
<XdTextareaInput
|
||||||
|
v-model="queryParams.queryKey"
|
||||||
|
:placeholder="$t('多个流水号逗号或换行隔开')"
|
||||||
|
clearable
|
||||||
|
:rows="4"
|
||||||
|
/>
|
||||||
|
<!-- -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="下单日期" prop="dateTimeRange">
|
<el-form-item label="下单日期" prop="dateTimeRange">
|
||||||
<elDateAdvPicker clearable v-model="dateTimeRange" @dateTimeChange="onDateSelect" ></elDateAdvPicker>
|
<elDateAdvPicker clearable v-model="dateTimeRange" @dateTimeChange="onDateSelect" ></elDateAdvPicker>
|
||||||
@ -424,6 +440,12 @@
|
|||||||
<div v-else>不发送</div>
|
<div v-else>不发送</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column :label="$t('仓库名称')" align="center" prop="intoWarehouseName" min-width="80" :show-overflow-tooltip="true"/>
|
||||||
|
<el-table-column :label="$t('仓库联系人')" align="center" prop="intoWarehouseContact" min-width="80" :show-overflow-tooltip="true"/>
|
||||||
|
<el-table-column :label="$t('仓库联系电话')" align="center" prop="intoWarehousePhone" min-width="150" :show-overflow-tooltip="true"/>
|
||||||
|
<el-table-column :label="$t('仓库地址')" align="center" prop="intoWarehouseAddress" min-width="80" :show-overflow-tooltip="true"/>
|
||||||
|
<el-table-column :label="$t('预计入仓时间')" align="center" prop="pickStartDate" min-width="150" :show-overflow-tooltip="true"/>
|
||||||
|
|
||||||
|
|
||||||
<el-table-column :label="$t('目的地')" align="center" prop="destinationName" min-width="80" :show-overflow-tooltip="true"/>
|
<el-table-column :label="$t('目的地')" align="center" prop="destinationName" min-width="80" :show-overflow-tooltip="true"/>
|
||||||
<el-table-column :label="$t('目的网点')" align="center" prop="dispatchUnderlingSiteName" min-width="80" :show-overflow-tooltip="true"/>
|
<el-table-column :label="$t('目的网点')" align="center" prop="dispatchUnderlingSiteName" min-width="80" :show-overflow-tooltip="true"/>
|
||||||
@ -586,10 +608,15 @@ export default {
|
|||||||
titleView:"",
|
titleView:"",
|
||||||
openView: false,
|
openView: false,
|
||||||
|
|
||||||
|
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
|
|
||||||
|
queryOrderType:'1',
|
||||||
|
queryKey:null,
|
||||||
|
|
||||||
orderSn: null,
|
orderSn: null,
|
||||||
billCode: null,
|
billCode: null,
|
||||||
billCodeSub: null,
|
billCodeSub: null,
|
||||||
@ -752,9 +779,9 @@ export default {
|
|||||||
const start = new Date()
|
const start = new Date()
|
||||||
start.setHours(0,0,0,0)
|
start.setHours(0,0,0,0)
|
||||||
end.setHours(23,59,59,0)
|
end.setHours(23,59,59,0)
|
||||||
this.dateTimeRange=[timeFormat(start), timeFormat(end)]
|
// this.dateTimeRange=[timeFormat(start), timeFormat(end)]
|
||||||
|
|
||||||
//this.queryParams.orderStatus='0';
|
this.queryParams.orderStatus='0';
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -776,6 +803,22 @@ export default {
|
|||||||
/** 查询运单列表列表 */
|
/** 查询运单列表列表 */
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
if(this.queryParams.queryOrderType==1){
|
||||||
|
this.queryParams.billCode= this.queryParams.queryKey;
|
||||||
|
this.queryParams.orderSn= null;
|
||||||
|
this.queryParams.intoWarehouseBillCode= null;
|
||||||
|
}
|
||||||
|
else if(this.queryParams.queryOrderType==2){
|
||||||
|
this.queryParams.billCode= null;
|
||||||
|
this.queryParams.orderSn= this.queryParams.queryKey;
|
||||||
|
this.queryParams.intoWarehouseBillCode= null;
|
||||||
|
}
|
||||||
|
else if(this.queryParams.queryOrderType==3){
|
||||||
|
this.queryParams.billCode= null;
|
||||||
|
this.queryParams.orderSn= null;
|
||||||
|
this.queryParams.intoWarehouseBillCode=this.queryParams.queryKey;
|
||||||
|
}
|
||||||
|
|
||||||
listEmisOrder(this.addDateRange(this.queryParams, this.dateTimeRange,"orderDate")).then(response => {
|
listEmisOrder(this.addDateRange(this.queryParams, this.dateTimeRange,"orderDate")).then(response => {
|
||||||
this.emisWaybillList = response.rows;
|
this.emisWaybillList = response.rows;
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
|
|||||||
@ -1037,8 +1037,20 @@ computed: {
|
|||||||
this.action="add";
|
this.action="add";
|
||||||
this.addFrom="userOrder";
|
this.addFrom="userOrder";
|
||||||
this.billCode=this.$route.query.billCode;
|
this.billCode=this.$route.query.billCode;
|
||||||
this.$route.meta.title = "接单";
|
// this.$route.meta.title = "接单";
|
||||||
|
|
||||||
|
const title = '接单';
|
||||||
|
const route = Object.assign({}, this.$route, { title: `${title}` })
|
||||||
|
this.$store.dispatch('tagsView/updateVisitedView', route)
|
||||||
|
|
||||||
this.initData();
|
this.initData();
|
||||||
|
}else{
|
||||||
|
if(this.$route.query.action='add'){
|
||||||
|
const title = '运单录入';
|
||||||
|
const route = Object.assign({}, this.$route, { title: `${title}` })
|
||||||
|
this.$store.dispatch('tagsView/updateVisitedView', route)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -1052,11 +1064,27 @@ created() {
|
|||||||
this.action=this.$route.query.action;
|
this.action=this.$route.query.action;
|
||||||
if(!this.action){
|
if(!this.action){
|
||||||
this.action="add";
|
this.action="add";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.$route.query.addFrom=="userOrder"){
|
if(this.$route.query.addFrom=="userOrder"){
|
||||||
this.billCode=this.$route.query.billCode;
|
this.billCode=this.$route.query.billCode;
|
||||||
this.addFrom="userOrder";
|
this.addFrom="userOrder";
|
||||||
|
|
||||||
|
const title = '接单';
|
||||||
|
const route = Object.assign({}, this.$route, { title: `${title}` })
|
||||||
|
this.$store.dispatch('tagsView/updateVisitedView', route)
|
||||||
|
|
||||||
|
}
|
||||||
|
else if(this.action=='add'){
|
||||||
|
const title = '运单录入';
|
||||||
|
const route = Object.assign({}, this.$route, { title: `${title}` })
|
||||||
|
this.$store.dispatch('tagsView/updateVisitedView', route)
|
||||||
|
}
|
||||||
|
else if(this.action=='modify'){
|
||||||
|
const title = '运单修改';
|
||||||
|
const route = Object.assign({}, this.$route, { title: `${title}` })
|
||||||
|
this.$store.dispatch('tagsView/updateVisitedView', route)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.initData();
|
this.initData();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user