|
@@ -2,10 +2,22 @@
|
|
|
<template>
|
|
|
<div class="steel_inbound">
|
|
|
<div class="sache">
|
|
|
- <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
|
|
|
- <el-button type="primary" class="btn" @click="onclick">
|
|
|
- <i class="el-icon-search"></i>查询
|
|
|
- </el-button>
|
|
|
+ <span>详单时间:</span>
|
|
|
+ <el-date-picker
|
|
|
+ v-model="startTime"
|
|
|
+ type="datetime"
|
|
|
+ placeholder="选择日期"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
+ <span>至</span>
|
|
|
+ <el-date-picker v-model="endTime" type="datetime" placeholder="选择日期">
|
|
|
+ </el-date-picker>
|
|
|
+ <el-button type="primary" class="btn" @click="onclick">
|
|
|
+ <i class="el-icon-search"></i>查询
|
|
|
+ </el-button>
|
|
|
+ <el-button type="primary" @click="exportData()"
|
|
|
+ ><i class="el-icon-download"></i>导出(Excel)</el-button
|
|
|
+ >
|
|
|
</div>
|
|
|
<div class="table">
|
|
|
<el-tabs v-model="activeName">
|
|
@@ -24,53 +36,58 @@
|
|
|
|
|
|
</div>
|
|
|
</template>
|
|
|
-
|
|
|
<script>
|
|
|
+import { sjTime } from "@/utils/sharedJsFile";
|
|
|
import { getCookie } from "@/utils/util.js";
|
|
|
export default {
|
|
|
- data(){
|
|
|
- return{
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ startTime: null,
|
|
|
+ endTime: null,
|
|
|
+ totalMoney: null,
|
|
|
+ totalTime: null,
|
|
|
//单价
|
|
|
- Fee:null,
|
|
|
+ Fee: null,
|
|
|
//加载
|
|
|
- selectLineLoading:false,
|
|
|
- input:"",
|
|
|
- activeName:"first",
|
|
|
- ssoId:null,
|
|
|
+ selectLineLoading: false,
|
|
|
+ input: "",
|
|
|
+ activeName: "first",
|
|
|
+ ssoId: null,
|
|
|
//详单Id
|
|
|
- detailsId:null,
|
|
|
- options1:{
|
|
|
+ detailsId: null,
|
|
|
+ options1: {
|
|
|
// first请求数据的地址
|
|
|
- requestUrl: "",
|
|
|
+ requestUrl: ""
|
|
|
},
|
|
|
- options2:{
|
|
|
+ options2: {
|
|
|
// second请求数据的地址
|
|
|
- requestUrl: "",
|
|
|
+ requestUrl: ""
|
|
|
},
|
|
|
//是否打开修改详单地址弹出框
|
|
|
- dialogFormVisible:false,
|
|
|
+ dialogFormVisible: false,
|
|
|
//原详单单价
|
|
|
- originalPriceValue:null,
|
|
|
+ originalPriceValue: null,
|
|
|
//新详单单价
|
|
|
- newPriceValue:null,
|
|
|
+ newPriceValue: null,
|
|
|
//原详单地址
|
|
|
- originalAddress:null,
|
|
|
+ originalAddress: null,
|
|
|
//新详单地址
|
|
|
- newAddress:null,
|
|
|
+ newAddress: null,
|
|
|
//新单价Id
|
|
|
- priceId:null,
|
|
|
+ priceId: null,
|
|
|
//是否打开运输单价的模态框
|
|
|
- addressDrawer:false,
|
|
|
+ addressDrawer: false,
|
|
|
//运输单价的表格
|
|
|
Address: {
|
|
|
requestUrl: "/api/v1/ams/getAddressDeliveryAddress?apiId=255",
|
|
|
- selectionType: "radio",
|
|
|
+ selectionType: "radio"
|
|
|
},
|
|
|
// addressText:null,
|
|
|
//缓存当前选中的运输单价
|
|
|
- priceMap:{},
|
|
|
- formLabelWidth: '125px'
|
|
|
- }
|
|
|
+ priceMap: {},
|
|
|
+ formLabelWidth: "125px",
|
|
|
+ tableTitle: "内转计次计费详单"
|
|
|
+ };
|
|
|
},
|
|
|
created(){
|
|
|
this.options1GetRequestUrl();
|
|
@@ -81,41 +98,106 @@ export default {
|
|
|
options1GetRequestUrl(){
|
|
|
if(getCookie("orgCode") == "chengyunshang"){
|
|
|
this.ssoId=getCookie('userId');
|
|
|
- this.options1.requestUrl = "/api/v1/bms/getInwardWeightDetailsOrder?apiId=461&orderType=11&detailStatus=0&carrierSsoId="+ getCookie('userId');
|
|
|
+ this.options1.requestUrl = "/api/v1/bms/getInwardWeightDetailsOrder?apiId=465&orderType=26&detailStatus=0&carrierSsoId="+ getCookie('userId');
|
|
|
}else if(getCookie("orgCode") == "dagangadmin"||getCookie("orgCode")=="zidonghuabu"||getCookie("orgCode")=="wuliuchuyunzhongxin"){
|
|
|
- this.options1.requestUrl = "/api/v1/bms/getInwardWeightDetailsOrder?apiId=461&orderType=11&detailStatus=0"
|
|
|
+ this.options1.requestUrl = "/api/v1/bms/getInwardWeightDetailsOrder?apiId=465&orderType=26&detailStatus=0"
|
|
|
}else{
|
|
|
- this.options1.requestUrl = "/api/v1/bms/getInwardWeightDetailsOrder?apiId=461&orderType=11&detailStatus=0&userId=" + getCookie("orgCode");
|
|
|
+ this.options1.requestUrl = "/api/v1/bms/getInwardWeightDetailsOrder?apiId=465&orderType=26&detailStatus=0&userId=" + getCookie("orgCode");
|
|
|
}
|
|
|
},
|
|
|
//已结算数据
|
|
|
options2GetRequestUrl(){
|
|
|
if(getCookie("orgCode") == "chengyunshang"){
|
|
|
this.ssoId=getCookie('userId');
|
|
|
- this.options2.requestUrl = "/api/v1/bms/getInwardWeightDetailsOrder?apiId=461&orderType=11&detailStatus=1&carrierSsoId="+ getCookie('userId');
|
|
|
- }else if(getCookie("orgCode") == "dagangadmin"||getCookie("orgCode")=="zidonghuabu"||getCookie("orgCode")=="wuliuchuyunzhongxin"){
|
|
|
- this.options2.requestUrl = "/api/v1/bms/getInwardWeightDetailsOrder?apiId=461&orderType=11&detailStatus=1"
|
|
|
- }else{
|
|
|
- this.options2.requestUrl = "/api/v1/bms/getInwardWeightDetailsOrder?apiId=461&orderType=11&detailStatus=1&userId=" + getCookie("orgCode");
|
|
|
- }
|
|
|
+ this.options2.requestUrl = "/api/v1/bms/getInwardWeightDetailsOrder?apiId=465&orderType=26&detailStatus=1&carrierSsoId="+ getCookie('userId');
|
|
|
+ }else if(getCookie("orgCode") == "dagangadmin"||getCookie("orgCode")=="zidonghuabu"||getCookie("orgCode")=="wuliuchuyunzhongxin"){
|
|
|
+ this.options2.requestUrl = "/api/v1/bms/getInwardWeightDetailsOrder?apiId=465&orderType=26&detailStatus=1"
|
|
|
+ }else{
|
|
|
+ this.options2.requestUrl = "/api/v1/bms/getInwardWeightDetailsOrder?apiId=465&orderType=26&detailStatus=1&userId=" + getCookie("orgCode");
|
|
|
+ }
|
|
|
},
|
|
|
- toInsert() {
|
|
|
- this.$router.push("/insertCheckInventory");
|
|
|
- },
|
|
|
-
|
|
|
- onclick(){
|
|
|
- console.log("查询待定值")
|
|
|
- // this.options.requestUrl = "/api/v1/bms/getTruckDetailsOrderList?apiId=176&orderType=1&con="+this.input;
|
|
|
+ onclick() {
|
|
|
+ let startTime = null;
|
|
|
+ let endTime = null;
|
|
|
+ if (this.startTime) {
|
|
|
+ startTime = sjTime(this.startTime);
|
|
|
+ }
|
|
|
+ if (this.endTime) {
|
|
|
+ endTime = sjTime(this.endTime);
|
|
|
+ }
|
|
|
+ if (startTime && endTime) {
|
|
|
+ if (startTime < endTime) {
|
|
|
+ if (
|
|
|
+ getCookie("orgCode") == "dagangadmin" ||
|
|
|
+ getCookie("orgCode") == "zidonghuabu" ||
|
|
|
+ getCookie("orgCode") == "wuliuchuyunzhongxin"
|
|
|
+ ) {
|
|
|
+ this.options1.requestUrl =
|
|
|
+ "/api/v1/bms/getInwardWeightDetailsOrder?apiId=465&orderType=26&detailStatus=0" +
|
|
|
+ "&startTime=" +
|
|
|
+ startTime +
|
|
|
+ "&endTime=" +
|
|
|
+ endTime +
|
|
|
+ "&i" +
|
|
|
+ new Date();
|
|
|
+ this.options2.requestUrl =
|
|
|
+ "/api/v1/bms/getInwardWeightDetailsOrder?apiId=465&orderType=26&detailStatus=1" +
|
|
|
+ "&startTime=" +
|
|
|
+ startTime +
|
|
|
+ "&endTime=" +
|
|
|
+ endTime +
|
|
|
+ "&i" +
|
|
|
+ new Date();
|
|
|
+ } else if (getCookie("orgCode") == "chengyunshang") {
|
|
|
+ this.options1.requestUrl =
|
|
|
+ "/api/v1/bms/getInwardWeightDetailsOrder?apiId=465&orderType=26&detailStatus=0&carrierSsoId=" +
|
|
|
+ getCookie("userId") +
|
|
|
+ "&startTime=" +
|
|
|
+ startTime +
|
|
|
+ "&endTime=" +
|
|
|
+ endTime +
|
|
|
+ "&i" +
|
|
|
+ new Date();
|
|
|
+ this.options2.requestUrl =
|
|
|
+ "/api/v1/bms/getInwardWeightDetailsOrder?apiId=465&orderType=26&detailStatus=1&carrierSsoId=" +
|
|
|
+ getCookie("userId") +
|
|
|
+ "&startTime=" +
|
|
|
+ startTime +
|
|
|
+ "&endTime=" +
|
|
|
+ endTime +
|
|
|
+ "&i" +
|
|
|
+ new Date();
|
|
|
+ } else {
|
|
|
+ this.options1.requestUrl =
|
|
|
+ "/api/v1/bms/getInwardWeightDetailsOrder?apiId=465&orderType=26&detailStatus=0&userId=" +
|
|
|
+ getCookie("orgCode") +
|
|
|
+ "&startTime=" +
|
|
|
+ startTime +
|
|
|
+ "&endTime=" +
|
|
|
+ endTime +
|
|
|
+ "&i" +
|
|
|
+ new Date();
|
|
|
+ this.options2.requestUrl =
|
|
|
+ "/api/v1/bms/getInwardWeightDetailsOrder?apiId=465&orderType=26&detailStatus=1&userId=" +
|
|
|
+ getCookie("orgCode") +
|
|
|
+ "&startTime=" +
|
|
|
+ startTime +
|
|
|
+ "&endTime=" +
|
|
|
+ endTime +
|
|
|
+ "&i" +
|
|
|
+ new Date();
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.startTime = null;
|
|
|
+ this.endTime = null;
|
|
|
+ this.$message.warning("开始时间要比结束时间早");
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
//运输订单点击浏览的事件
|
|
|
select(){
|
|
|
this.addressDrawer = true;
|
|
|
- },
|
|
|
- //运输单价模态窗口的框计算
|
|
|
- selectAddressClick(){
|
|
|
- this.Price.requestUrl = '/api/v1/ams/getAddressDeliveryAddress?apiId=255&con='+this.addressText;
|
|
|
- },
|
|
|
-
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -130,4 +212,4 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|