|
@@ -20,30 +20,36 @@
|
|
placeholder="选择日期时间"
|
|
placeholder="选择日期时间"
|
|
>
|
|
>
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
- <el-form-item>
|
|
|
|
- <el-input
|
|
|
|
- v-model="inputReceiveName"
|
|
|
|
- style="width:200px"
|
|
|
|
- placeholder="输入收货单位"
|
|
|
|
- clearable
|
|
|
|
- ></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item>
|
|
|
|
- <el-input
|
|
|
|
- v-model="wareHouse"
|
|
|
|
|
|
+ <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"
|
|
style="width:200px"
|
|
- placeholder="输入装货地点"
|
|
|
|
clearable
|
|
clearable
|
|
- ></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item>
|
|
|
|
- <el-input
|
|
|
|
- v-model="inputMaterial"
|
|
|
|
|
|
+ >
|
|
|
|
+ </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"
|
|
style="width:200px"
|
|
- placeholder="输入物资名称或备注"
|
|
|
|
clearable
|
|
clearable
|
|
- ></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ >
|
|
|
|
+ </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>
|
|
</el-button>
|
|
</el-button>
|
|
@@ -269,6 +275,28 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ condition1:null,
|
|
|
|
+ condition2:null,
|
|
|
|
+ input1:null,
|
|
|
|
+ input2:null,
|
|
|
|
+ options:[
|
|
|
|
+ {
|
|
|
|
+ label:"车牌号",
|
|
|
|
+ value:"capacityNumber"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label:"收货单位",
|
|
|
|
+ value:"receivName"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label:"物资名称/备注",
|
|
|
|
+ value:"remark"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label:"装货地点",
|
|
|
|
+ value:"wareHouse"
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
orderNumber: null,
|
|
orderNumber: null,
|
|
orderId:null,
|
|
orderId:null,
|
|
disabled: false,
|
|
disabled: false,
|
|
@@ -280,7 +308,8 @@ export default {
|
|
isKuang: false,
|
|
isKuang: false,
|
|
option: {
|
|
option: {
|
|
requestUrl: "",
|
|
requestUrl: "",
|
|
- selectionType:"radio"
|
|
|
|
|
|
+ selectionType:"radio",
|
|
|
|
+ requestQuery:null
|
|
},
|
|
},
|
|
startTime: null,
|
|
startTime: null,
|
|
endTime: null,
|
|
endTime: null,
|
|
@@ -686,6 +715,10 @@ export default {
|
|
onclick() {
|
|
onclick() {
|
|
let startTime = null;
|
|
let startTime = null;
|
|
let endTime = null;
|
|
let endTime = null;
|
|
|
|
+ let requestQuery={}
|
|
|
|
+ requestQuery[this.condition1]=this.input1+''
|
|
|
|
+ requestQuery[this.condition2]=this.input2+''
|
|
|
|
+ this.option.requestQuery=requestQuery;
|
|
if (this.startTime && this.endTime) {
|
|
if (this.startTime && this.endTime) {
|
|
startTime = sjTime(this.startTime);
|
|
startTime = sjTime(this.startTime);
|
|
endTime = sjTime(this.endTime);
|
|
endTime = sjTime(this.endTime);
|
|
@@ -703,13 +736,7 @@ export default {
|
|
"&carrierSsoId=" +
|
|
"&carrierSsoId=" +
|
|
getCookie("userId") +
|
|
getCookie("userId") +
|
|
"&i=" +
|
|
"&i=" +
|
|
- new Date() +
|
|
|
|
- "&receiveName=" +
|
|
|
|
- this.inputReceiveName +
|
|
|
|
- "&materialName=" +
|
|
|
|
- this.inputMaterial
|
|
|
|
- +"&wareHouse="+
|
|
|
|
- this.wareHouse;
|
|
|
|
|
|
+ new Date();
|
|
} else {
|
|
} else {
|
|
this.option.requestUrl =
|
|
this.option.requestUrl =
|
|
"/api/v1/tms/getAllSaleReport?apiId=526&startTime=" +
|
|
"/api/v1/tms/getAllSaleReport?apiId=526&startTime=" +
|
|
@@ -720,13 +747,7 @@ export default {
|
|
"&carrierSsoId=" +
|
|
"&carrierSsoId=" +
|
|
null +
|
|
null +
|
|
"&i=" +
|
|
"&i=" +
|
|
- new Date() +
|
|
|
|
- "&receiveName=" +
|
|
|
|
- this.inputReceiveName +
|
|
|
|
- "&materialName=" +
|
|
|
|
- this.inputMaterial
|
|
|
|
- +"&wareHouse="+
|
|
|
|
- this.wareHouse;
|
|
|
|
|
|
+ new Date();
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
if (this.startTime) {
|
|
if (this.startTime) {
|
|
@@ -745,12 +766,7 @@ export default {
|
|
"&carrierSsoId=" +
|
|
"&carrierSsoId=" +
|
|
getCookie("userId") +
|
|
getCookie("userId") +
|
|
"&i=" +
|
|
"&i=" +
|
|
- new Date() +
|
|
|
|
- "&receiveName=" +
|
|
|
|
- this.inputReceiveName +
|
|
|
|
- "&materialName=" +
|
|
|
|
- this.inputMaterial +"&wareHouse="+
|
|
|
|
- this.wareHouse;
|
|
|
|
|
|
+ new Date();
|
|
} else {
|
|
} else {
|
|
this.option.requestUrl =
|
|
this.option.requestUrl =
|
|
"/api/v1/tms/getAllSaleReport?apiId=526&startTime=" +
|
|
"/api/v1/tms/getAllSaleReport?apiId=526&startTime=" +
|
|
@@ -761,12 +777,7 @@ export default {
|
|
"&carrierSsoId=" +
|
|
"&carrierSsoId=" +
|
|
null +
|
|
null +
|
|
"&i=" +
|
|
"&i=" +
|
|
- new Date() +
|
|
|
|
- "&receiveName=" +
|
|
|
|
- this.inputReceiveName +
|
|
|
|
- "&materialName=" +
|
|
|
|
- this.inputMaterial +"&wareHouse="+
|
|
|
|
- this.wareHouse;
|
|
|
|
|
|
+ new Date();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|