|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <!-- 发送计量委托界面 -->
|
|
|
|
|
|
+ <!-- 万州港-达州计量委托界面 -->
|
|
<div class="trainTransport">
|
|
<div class="trainTransport">
|
|
<div class="top">
|
|
<div class="top">
|
|
<el-input
|
|
<el-input
|
|
@@ -9,15 +9,42 @@
|
|
clearable
|
|
clearable
|
|
>
|
|
>
|
|
</el-input>
|
|
</el-input>
|
|
|
|
+ <span class="item_details">时间段:</span>
|
|
|
|
+ <el-date-picker
|
|
|
|
+ style="width:200px"
|
|
|
|
+ class="date_picker_style"
|
|
|
|
+ v-model="time[0]"
|
|
|
|
+ type="time"
|
|
|
|
+ format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
+ placeholder="开始日期"
|
|
|
|
+ >
|
|
|
|
+ </el-date-picker>
|
|
|
|
+ <el-date-picker
|
|
|
|
+ style="width:200px"
|
|
|
|
+ class="date_picker_style"
|
|
|
|
+ v-model="time[1]"
|
|
|
|
+ type="time"
|
|
|
|
+ format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
+ placeholder="结束日期"
|
|
|
|
+ >
|
|
|
|
+ </el-date-picker>
|
|
<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>
|
|
- <!-- <el-button type="primary" @click="btnclick(0)">
|
|
|
|
- <i class="el-icon-s-promotion"></i>发送
|
|
|
|
- </el-button> -->
|
|
|
|
</div>
|
|
</div>
|
|
- <dilTable v-bind.sync="option" @selection-change="selectionChange">
|
|
|
|
- </dilTable>
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <el-tabs v-model="activeName" @tab-click="handleClick">
|
|
|
|
+ <el-tab-pane label="待计量" name="first">
|
|
|
|
+ <dilTable v-bind.sync="option" @selection-change="selectionChange">
|
|
|
|
+ </dilTable>
|
|
|
|
+ </el-tab-pane>
|
|
|
|
+ <el-tab-pane label="已计量" name="second">
|
|
|
|
+ <dilTable v-bind.sync="option2" @selection-change="selectionChange2">
|
|
|
|
+ </dilTable>
|
|
|
|
+ </el-tab-pane>
|
|
|
|
+ </el-tabs>
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -26,6 +53,8 @@
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ activeName:null,
|
|
|
|
+ time:[],
|
|
input: "",
|
|
input: "",
|
|
option: {
|
|
option: {
|
|
// 表格请求数据的地址
|
|
// 表格请求数据的地址
|
|
@@ -33,52 +62,36 @@ export default {
|
|
// 控制显示多选列
|
|
// 控制显示多选列
|
|
selectionType: "select",
|
|
selectionType: "select",
|
|
},
|
|
},
|
|
|
|
+ option2: {
|
|
|
|
+ // 表格请求数据的地址
|
|
|
|
+ requestUrl: "/api/v1/tms/getWeightResult?apiId=58&resultType=1",
|
|
|
|
+ // 控制显示多选列
|
|
|
|
+ selectionType: "select",
|
|
|
|
+ },
|
|
selectionListMap: [],
|
|
selectionListMap: [],
|
|
|
|
+ selectionListMap2:[],
|
|
resultIdList: [],
|
|
resultIdList: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ handleClick(tag,event){
|
|
|
|
+ console.log(tag,event);
|
|
|
|
+ },
|
|
onclick() {
|
|
onclick() {
|
|
this.option.requestUrl =
|
|
this.option.requestUrl =
|
|
"/api/v1/tms/getLoadResultToSendMC?apiId=58&resultType=1&con=" +
|
|
"/api/v1/tms/getLoadResultToSendMC?apiId=58&resultType=1&con=" +
|
|
this.input;
|
|
this.input;
|
|
},
|
|
},
|
|
- btnclick() {
|
|
|
|
- let map = {
|
|
|
|
- resultIdList: this.selectionListMap,
|
|
|
|
- };
|
|
|
|
- if (this.selectionListMap.length == 0) {
|
|
|
|
- this.$message({
|
|
|
|
- message: "请勾选要发送计量委托的实绩!",
|
|
|
|
- type: "warning",
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- this.axios
|
|
|
|
- .post("/api/v1/tms/batchSendMeasureCommission", map)
|
|
|
|
- .then((res) => {
|
|
|
|
- if (res.data.data == "发送成功") {
|
|
|
|
- this.$message({
|
|
|
|
- type: "success",
|
|
|
|
- message: res.data.data,
|
|
|
|
- });
|
|
|
|
- this.option.requestUrl =
|
|
|
|
- "/api/v1/tms/getLoadResultToSendMC?apiId=58&resultType=1" +
|
|
|
|
- "&i=" +
|
|
|
|
- new Date();
|
|
|
|
- }else{
|
|
|
|
- this.$message({
|
|
|
|
- type: "warning",
|
|
|
|
- message: res.data.data,
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
selectionChange(selection) {
|
|
selectionChange(selection) {
|
|
this.selectionListMap = [];
|
|
this.selectionListMap = [];
|
|
console.log(selection);
|
|
console.log(selection);
|
|
this.selectionListMap = selection;
|
|
this.selectionListMap = selection;
|
|
},
|
|
},
|
|
|
|
+ selectionChange2(selection) {
|
|
|
|
+ this.selectionListMap2 = [];
|
|
|
|
+ console.log(selection);
|
|
|
|
+ this.selectionListMap2 = selection;
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|