|
@@ -3,7 +3,7 @@
|
|
|
<div class="transportOrder">
|
|
|
<div class="transportOrder_top">
|
|
|
<el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
|
|
|
- <el-button type="primary" class="btn" @click="onclick">
|
|
|
+ <el-button type="primary" class="btn" @click="getRequestUrl">
|
|
|
<i class="el-icon-search"></i>查询
|
|
|
</el-button>
|
|
|
<el-badge
|
|
@@ -183,13 +183,13 @@ export default {
|
|
|
"/api/v1/ams/getPurRequirementList?apiId=431&requirementStatus=1&planStatus=3";
|
|
|
} else {
|
|
|
this.first.requestUrl =
|
|
|
- "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=4&planEnableStatus=1";
|
|
|
+ "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=4&planEnableStatus=1&userId="+getCookie("orgCode");
|
|
|
this.Received.requestUrl =
|
|
|
- "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=5";
|
|
|
+ "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=5&userId="+getCookie("orgCode");
|
|
|
this.completed.requestUrl =
|
|
|
- "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=2";
|
|
|
+ "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=2&userId="+getCookie("orgCode");
|
|
|
this.dispatched.requestUrl =
|
|
|
- "/api/v1/ams/getPurRequirementList?apiId=431&requirementStatus=1&planStatus=3";
|
|
|
+ "/api/v1/ams/getPurRequirementList?apiId=431&requirementStatus=1&planStatus=3&userId="+getCookie("orgCode");
|
|
|
}
|
|
|
// this.initWebSocket();
|
|
|
},
|
|
@@ -265,19 +265,24 @@ export default {
|
|
|
},
|
|
|
getRequestUrl() {
|
|
|
if (getCookie("orgCode") == "chengyunshang") {
|
|
|
- (this.first.requestUrl =
|
|
|
+ this.first.requestUrl =
|
|
|
"/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=4&planEnableStatus=1&carrierId=" +
|
|
|
this.carrierUserId +
|
|
|
"&test=" +
|
|
|
- new Date()),
|
|
|
- (this.Received.requestUrl =
|
|
|
+ new Date()+
|
|
|
+ "&con="+this.input,
|
|
|
+
|
|
|
+ this.Received.requestUrl =
|
|
|
"/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=5&planEnableStatus=1&carrierId=" +
|
|
|
this.carrierUserId +
|
|
|
"&test=" +
|
|
|
- new Date());
|
|
|
+ new Date()+
|
|
|
+ "&con="+this.input,
|
|
|
+
|
|
|
this.completed.requestUrl =
|
|
|
"/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=2&carrierId=" +
|
|
|
- getCookie("userId");
|
|
|
+ getCookie("userId")+
|
|
|
+ "&con="+this.input;
|
|
|
} else if (
|
|
|
getCookie("orgCode") == "dagangadmin" ||
|
|
|
getCookie("orgCode") == "zidonghuabu"
|
|
@@ -285,24 +290,42 @@ export default {
|
|
|
this.first.requestUrl =
|
|
|
"/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=4&planEnableStatus=1" +
|
|
|
"&test=" +
|
|
|
- new Date();
|
|
|
+ new Date()+
|
|
|
+ "&con="+this.input;
|
|
|
+
|
|
|
this.Received.requestUrl =
|
|
|
"/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=5" +
|
|
|
"&test=" +
|
|
|
- new Date();
|
|
|
+ new Date()+
|
|
|
+ "&con="+this.input;
|
|
|
+
|
|
|
this.completed.requestUrl =
|
|
|
- "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=2";
|
|
|
+ "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=2"+
|
|
|
+ "&test=" +
|
|
|
+ new Date()+
|
|
|
+ "&con="+this.input;
|
|
|
} else {
|
|
|
+
|
|
|
this.first.requestUrl =
|
|
|
"/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=4&planEnableStatus=1" +
|
|
|
"&test=" +
|
|
|
- new Date();
|
|
|
+ new Date()+
|
|
|
+ "&con="+this.input+
|
|
|
+ "&userId="+getCookie("orgCode");
|
|
|
+
|
|
|
this.Received.requestUrl =
|
|
|
"/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=5" +
|
|
|
"&test=" +
|
|
|
- new Date();
|
|
|
+ new Date()+
|
|
|
+ "&con="+this.input+
|
|
|
+ "&userId="+getCookie("orgCode");
|
|
|
+
|
|
|
this.completed.requestUrl =
|
|
|
- "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=2";
|
|
|
+ "/api/v1/oms/getPurInwardOrderList?apiId=432&orderStatus=2"+
|
|
|
+ "&test=" +
|
|
|
+ new Date()+
|
|
|
+ "&con="+this.input+
|
|
|
+ "&userId="+getCookie("orgCode");
|
|
|
}
|
|
|
},
|
|
|
getTruckRequestUrl() {
|