|
@@ -4,12 +4,21 @@
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
<div class="top">
|
|
<div class="top">
|
|
- <el-input placeholder="企业" class="input-demo" v-model="noCarWayBill.companyName"></el-input>
|
|
|
|
- <el-select v-model="noCarWayBill.historyFlag" placeholder="请选择类型">
|
|
|
|
- <el-option v-for="item in optionone" :key="item.value" :label="item.label" :value="item.value"/>
|
|
|
|
- </el-select>
|
|
|
|
|
|
+ <div class="demo-input-suffix">
|
|
|
|
+ <el-input placeholder="客户名称" class="input-demo" v-model="noCarWayBill.companyName"></el-input>
|
|
|
|
+ <el-input placeholder="运单编号" class="input-demo" v-model="noCarWayBill.billNum"></el-input>
|
|
|
|
+ <el-input placeholder="税号" class="input-demo" v-model="noCarWayBill.taxplayerCode"></el-input>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="demo-input-suffix" style="margin-top: 5px;margin-left: 10px;">
|
|
|
|
+ <el-date-picker v-model="noCarWayBill.startBegin" type="daterange" value-format="yyyy-MM-dd HH:mm:SS" range-separator="至" start-placeholder="指令开始始" end-placeholder="指令开始止"></el-date-picker>
|
|
|
|
+ <el-date-picker v-model="noCarWayBill.endBegin" type="daterange" value-format="yyyy-MM-dd HH:mm:SS" range-separator="至" start-placeholder="指令结束始" end-placeholder="指令结束止"></el-date-picker>
|
|
|
|
+ <!-- <el-date-picker v-model="noCarWayBill.startEnd" type="date" placeholder="开始指令上传时间止"></el-date-picker>
|
|
|
|
+ <el-date-picker v-model="noCarWayBill.startBegin" type="date" placeholder="开始指令上传时间始"></el-date-picker> -->
|
|
|
|
+ <!-- <el-date-picker v-model="noCarWayBill.endBegin" type="date" placeholder="结束指令上传时间始"></el-date-picker>
|
|
|
|
+ <el-date-picker v-model="noCarWayBill.endEnd" type="date" placeholder="结束指令上传时间止"></el-date-picker> -->
|
|
<el-button type="success" style="margin-left: 1%;" @click="loadData">查询</el-button>
|
|
<el-button type="success" style="margin-left: 1%;" @click="loadData">查询</el-button>
|
|
- <el-button type="success" style="margin-left: 1%;">重新(待实现)</el-button>
|
|
|
|
|
|
+ <el-button type="success" style="margin-left: 1%;" @click="updateStatus">更新状态</el-button>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -24,13 +33,13 @@
|
|
border
|
|
border
|
|
tooltip-effect="dark">
|
|
tooltip-effect="dark">
|
|
<el-table-column
|
|
<el-table-column
|
|
- label="客户名称"
|
|
|
|
- prop="customerName"
|
|
|
|
|
|
+ label="企业编号"
|
|
|
|
+ prop="companyNum"
|
|
show-overflow-tooltip>
|
|
show-overflow-tooltip>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="companyName"
|
|
prop="companyName"
|
|
- label="公司名称"
|
|
|
|
|
|
+ label="客戶名称"
|
|
show-overflow-tooltip>
|
|
show-overflow-tooltip>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -38,9 +47,9 @@
|
|
label="运单编号"
|
|
label="运单编号"
|
|
show-overflow-tooltip>
|
|
show-overflow-tooltip>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column
|
|
|
|
- prop="plateNum"
|
|
|
|
- label="车牌号"
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="taxplayerCode"
|
|
|
|
+ label="税号"
|
|
show-overflow-tooltip>
|
|
show-overflow-tooltip>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -49,9 +58,21 @@
|
|
width="120"
|
|
width="120"
|
|
show-overflow-tooltip>
|
|
show-overflow-tooltip>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="intfaceStartTime"
|
|
|
|
+ label="开始指令时间"
|
|
|
|
+ width="120"
|
|
|
|
+ show-overflow-tooltip>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="predictEndTime"
|
|
prop="predictEndTime"
|
|
- label="预计完成时间"
|
|
|
|
|
|
+ label="运单结束时间"
|
|
|
|
+ width="120"
|
|
|
|
+ show-overflow-tooltip>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="interfaceEndTime"
|
|
|
|
+ label="结束指令时间"
|
|
width="120"
|
|
width="120"
|
|
show-overflow-tooltip>
|
|
show-overflow-tooltip>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -63,7 +84,7 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="destAddr"
|
|
prop="destAddr"
|
|
- label="运单目的地址"
|
|
|
|
|
|
+ label="运单结束地址"
|
|
width="120"
|
|
width="120"
|
|
show-overflow-tooltip>
|
|
show-overflow-tooltip>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -72,23 +93,31 @@
|
|
label="运单费用"
|
|
label="运单费用"
|
|
show-overflow-tooltip>
|
|
show-overflow-tooltip>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column
|
|
|
|
- prop="taxplayerCode"
|
|
|
|
- label="税号"
|
|
|
|
- show-overflow-tooltip>
|
|
|
|
-
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
+
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="billwayStatus"
|
|
prop="billwayStatus"
|
|
label="运单状态"
|
|
label="运单状态"
|
|
show-overflow-tooltip>
|
|
show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <span v-if="scope.row.billwayStatus == 1" style="color: green">开票中</span>
|
|
|
|
- <span v-else-if="scope.row.billwayStatus == -2" style="color: red">运单超时</span>
|
|
|
|
- <span v-else-if="scope.row.billwayStatus == -1" style="color: green">指令开始</span>
|
|
|
|
- <span v-else-if="scope.row.billwayStatus == 0" style="color: green">指令结束</span>
|
|
|
|
|
|
+ <span v-if="scope.row.billwayStatus == 1" style="color: green">未结束</span>
|
|
|
|
+ <span v-else-if="scope.row.billwayStatus == 2" style="color: green">开票中</span>
|
|
<span v-else-if="scope.row.billwayStatus == 3" style="color: green">开票完成</span>
|
|
<span v-else-if="scope.row.billwayStatus == 3" style="color: green">开票完成</span>
|
|
- <span v-else-if="scope.row.billwayStatus == 2" style="color: red">作废</span>
|
|
|
|
|
|
+ <span v-else-if="scope.row.billwayStatus == 4" style="color: red">超时运单</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="updateTime"
|
|
|
|
+ label="最后更新时间"
|
|
|
|
+ width="120"
|
|
|
|
+ show-overflow-tooltip>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="hisFlag"
|
|
|
|
+ label="运单类型"
|
|
|
|
+ show-overflow-tooltip>
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span v-if="scope.row.hisFlag == 0" >实时运单</span>
|
|
|
|
+ <span v-else-if="scope.row.hisFlag == 1">历史运单</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -112,8 +141,6 @@
|
|
data(){
|
|
data(){
|
|
return{
|
|
return{
|
|
noCarWayBill:{
|
|
noCarWayBill:{
|
|
- companyName:'',
|
|
|
|
- historyFlag:0
|
|
|
|
},
|
|
},
|
|
optionone: [{
|
|
optionone: [{
|
|
value: 0,
|
|
value: 0,
|
|
@@ -137,13 +164,31 @@
|
|
const formData = new FormData();
|
|
const formData = new FormData();
|
|
formData.append('current', this.current);
|
|
formData.append('current', this.current);
|
|
formData.append('size', this.pagesize);
|
|
formData.append('size', this.pagesize);
|
|
- formData.append('hisFlag',this.noCarWayBill.historyFlag);
|
|
|
|
|
|
+ for(var i in this.noCarWayBill){
|
|
|
|
+ formData.append(i,this.noCarWayBill[i]);
|
|
|
|
+ }
|
|
|
|
+
|
|
const response = await this.$http.post(`noCar/findBillWay`, formData);
|
|
const response = await this.$http.post(`noCar/findBillWay`, formData);
|
|
if (response.data.code === 0) {
|
|
if (response.data.code === 0) {
|
|
this.billWayTable = response.data.data.records;
|
|
this.billWayTable = response.data.data.records;
|
|
this.total = response.data.data.total;
|
|
this.total = response.data.data.total;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ async updateStatus(){
|
|
|
|
+ const response = await this.$http.post(`noCar/updateStatus`);
|
|
|
|
+ if(response.data.code === 0) {
|
|
|
|
+ this.loadData();
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'success',
|
|
|
|
+ message: '更新成功'
|
|
|
|
+ });
|
|
|
|
+ }else {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'error',
|
|
|
|
+ message: '更新失败'
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
// 分页方法
|
|
// 分页方法
|
|
handleSizeChange(val) {
|
|
handleSizeChange(val) {
|
|
this.pagesize = val;
|
|
this.pagesize = val;
|