|
@@ -2,7 +2,35 @@
|
|
<template>
|
|
<template>
|
|
<div class="steel_inbound">
|
|
<div class="steel_inbound">
|
|
<div class="sache">
|
|
<div class="sache">
|
|
- <el-input placeholder="请输入内容" v-model="inputText" clearable>
|
|
|
|
|
|
+ <el-select v-model="condition1" placeholder="请选择筛选条件" style="width:150px" clearable>
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in options"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.value">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ <el-input
|
|
|
|
+ placeholder="请输入内容"
|
|
|
|
+ v-model="input1"
|
|
|
|
+ style="width:200px"
|
|
|
|
+ clearable
|
|
|
|
+ >
|
|
|
|
+ </el-input>
|
|
|
|
+ <el-select v-model="condition2" placeholder="请选择筛选条件" style="width:150px" clearable>
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in options"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.value">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ <el-input
|
|
|
|
+ placeholder="请输入内容"
|
|
|
|
+ v-model="input2"
|
|
|
|
+ style="width:200px"
|
|
|
|
+ clearable
|
|
|
|
+ >
|
|
</el-input>
|
|
</el-input>
|
|
<el-button type="primary" class="btn" @click="onClick">
|
|
<el-button type="primary" class="btn" @click="onClick">
|
|
<i class="el-icon-search"></i>查询
|
|
<i class="el-icon-search"></i>查询
|
|
@@ -104,7 +132,7 @@
|
|
:shiyHeigth="shiyHeigth"
|
|
:shiyHeigth="shiyHeigth"
|
|
:isKuang="isKuang"
|
|
:isKuang="isKuang"
|
|
>
|
|
>
|
|
- <el-table-column fixed="right" label="操作" width="50">
|
|
|
|
|
|
+ <el-table-column fixed="right" label="操作" width="80">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
@click="detailclick(scope.row)"
|
|
@click="detailclick(scope.row)"
|
|
@@ -145,7 +173,7 @@
|
|
:shiyHeigth="shiyHeigth"
|
|
:shiyHeigth="shiyHeigth"
|
|
:isKuang="isKuang"
|
|
:isKuang="isKuang"
|
|
>
|
|
>
|
|
- <el-table-column fixed="right" label="操作" width="50">
|
|
|
|
|
|
+ <el-table-column fixed="right" label="操作" width="80">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
@click="detailclick1(scope.row)"
|
|
@click="detailclick1(scope.row)"
|
|
@@ -185,6 +213,24 @@ import { getCookie } from "@/utils/util.js";
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ condition1:null,
|
|
|
|
+ condition2:null,
|
|
|
|
+ input1:null,
|
|
|
|
+ input2:null,
|
|
|
|
+ options:[
|
|
|
|
+ {
|
|
|
|
+ label:"车牌号",
|
|
|
|
+ value:"capacityNumber"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label:"发货单位",
|
|
|
|
+ value:"shipperName"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label:"收货单位",
|
|
|
|
+ value:"consigneeCompanyName"
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
shiyHeigth: 190,
|
|
shiyHeigth: 190,
|
|
isHeigth: true,
|
|
isHeigth: true,
|
|
pageSize: 100,
|
|
pageSize: 100,
|
|
@@ -459,49 +505,60 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- onClick() {
|
|
|
|
|
|
+ async onClick() {
|
|
|
|
+ let option={
|
|
|
|
+ requestQuery:{}
|
|
|
|
+ }
|
|
|
|
+ option.requestQuery[this.condition1]=[];
|
|
|
|
+ option.requestQuery[this.condition2]=[];
|
|
|
|
+ if(this.condition1 == this.condition2){
|
|
|
|
+ option.requestQuery[this.condition1]=[this.input1,this.input2]
|
|
|
|
+ }else{
|
|
|
|
+ option.requestQuery[this.condition1]=[this.input1]
|
|
|
|
+ option.requestQuery[this.condition2]=[this.input2]
|
|
|
|
+ }
|
|
if (getCookie("orgCode") == "chengyunshang") {
|
|
if (getCookie("orgCode") == "chengyunshang") {
|
|
if (this.activeName == "first") {
|
|
if (this.activeName == "first") {
|
|
- this.option1.requestUrl =
|
|
|
|
|
|
+ option.requestUrl =
|
|
"/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=2&orderStatus=5&shipperId=2&carrierSsoId=" +
|
|
"/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=2&orderStatus=5&shipperId=2&carrierSsoId=" +
|
|
- getCookie("userId") +
|
|
|
|
- "&con=" +
|
|
|
|
- this.inputText;
|
|
|
|
|
|
+ getCookie("userId")
|
|
|
|
+ await this.setOption("option1",option);
|
|
} else if (this.activeName == "second") {
|
|
} else if (this.activeName == "second") {
|
|
- this.option2.requestUrl =
|
|
|
|
|
|
+ option.requestUrl =
|
|
"/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=2&orderStatus=6&shipperId=2&carrierSsoId=" +
|
|
"/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=2&orderStatus=6&shipperId=2&carrierSsoId=" +
|
|
- getCookie("userId") +
|
|
|
|
- "&con=" +
|
|
|
|
- this.inputText;
|
|
|
|
|
|
+ getCookie("userId")
|
|
|
|
+ await this.setOption("option2",option);
|
|
} else {
|
|
} else {
|
|
- this.option3.requestUrl =
|
|
|
|
|
|
+ option.requestUrl =
|
|
"/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=2&orderStatus=4&shipperId=2&carrierSsoId=" +
|
|
"/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=2&orderStatus=4&shipperId=2&carrierSsoId=" +
|
|
- getCookie("userId") +
|
|
|
|
- "&con=" +
|
|
|
|
- this.inputText;
|
|
|
|
|
|
+ getCookie("userId")
|
|
|
|
+ await this.setOption("option3",option);
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
if (this.activeName == "first") {
|
|
if (this.activeName == "first") {
|
|
- this.option1.requestUrl =
|
|
|
|
|
|
+ option.requestUrl =
|
|
"/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=2&orderStatus=5&shipperId=2&carrierSsoId=" +
|
|
"/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=2&orderStatus=5&shipperId=2&carrierSsoId=" +
|
|
- "" +
|
|
|
|
- "&con=" +
|
|
|
|
- this.inputText;
|
|
|
|
|
|
+ ""
|
|
|
|
+ await this.setOption("option1",option);
|
|
} else if (this.activeName == "second") {
|
|
} else if (this.activeName == "second") {
|
|
- this.option2.requestUrl =
|
|
|
|
|
|
+ option.requestUrl =
|
|
"/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=2&orderStatus=6&shipperId=2&carrierSsoId=" +
|
|
"/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=2&orderStatus=6&shipperId=2&carrierSsoId=" +
|
|
- "" +
|
|
|
|
- "&con=" +
|
|
|
|
- this.inputText;
|
|
|
|
|
|
+ ""
|
|
|
|
+ await this.setOption("option2",option);
|
|
} else {
|
|
} else {
|
|
- this.option3.requestUrl =
|
|
|
|
|
|
+ option.requestUrl =
|
|
"/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=2&orderStatus=4&shipperId=2&carrierSsoId=" +
|
|
"/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=2&orderStatus=4&shipperId=2&carrierSsoId=" +
|
|
- "" +
|
|
|
|
- "&con=" +
|
|
|
|
- this.inputText;
|
|
|
|
|
|
+ ""
|
|
|
|
+ await this.setOption("option3",option);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ setOption(prop,option){
|
|
|
|
+ return new Promise((resolve,reject)=>{
|
|
|
|
+ this.$set(this,prop,option)
|
|
|
|
+ resolve("更新表格数据成功!");
|
|
|
|
+ });
|
|
|
|
+ },
|
|
// -------查看物资详情 (已接收)
|
|
// -------查看物资详情 (已接收)
|
|
detailclick(row) {
|
|
detailclick(row) {
|
|
// 记录重复点击次数
|
|
// 记录重复点击次数
|
|
@@ -632,7 +689,6 @@ export default {
|
|
.sache {
|
|
.sache {
|
|
padding: 1.25rem 0.375rem;
|
|
padding: 1.25rem 0.375rem;
|
|
.el-input {
|
|
.el-input {
|
|
- width: 20%;
|
|
|
|
margin-right: 1.25rem;
|
|
margin-right: 1.25rem;
|
|
}
|
|
}
|
|
}
|
|
}
|