|
@@ -25,11 +25,11 @@
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
<div class="top">
|
|
|
- <el-input placeholder="用户名" class="input-demo" style="margin: 0;" v-model="userName"></el-input>
|
|
|
- <el-input placeholder="用户所在公司" class="input-demo" v-model="userCompany"></el-input>
|
|
|
- <el-input placeholder="批次号" class="input-demo" v-model="batchNumber"></el-input>
|
|
|
+ <el-input placeholder="用户名" class="input-demo" style="margin: 0;" v-model="customerName"></el-input>
|
|
|
+ <el-input placeholder="用户所在公司" class="input-demo" v-model="companyName"></el-input>
|
|
|
+ <el-input placeholder="批次号" class="input-demo" v-model="batchNum"></el-input>
|
|
|
<el-button style="margin-left: 1%;" @click="DownloadTemplate">下载模板</el-button>
|
|
|
- <el-button type="success" style="margin-left: 1%;" @click="queryLook">查询</el-button>
|
|
|
+ <el-button type="success" style="margin-left: 1%;" @click="loadData">查询</el-button>
|
|
|
<!-- <el-button type="info" style="margin-left: 1%;">重置</el-button> -->
|
|
|
</div>
|
|
|
</el-col>
|
|
@@ -48,16 +48,16 @@
|
|
|
tooltip-effect="dark">
|
|
|
<el-table-column
|
|
|
label="用户名"
|
|
|
- prop="userName"
|
|
|
+ prop="customerName"
|
|
|
show-overflow-tooltip>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
label="用户手机号"
|
|
|
- prop="userPhone"
|
|
|
+ prop="customerPhone"
|
|
|
show-overflow-tooltip>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="userCompany"
|
|
|
+ prop="company"
|
|
|
label="用户所在公司"
|
|
|
show-overflow-tooltip>
|
|
|
</el-table-column>
|
|
@@ -77,7 +77,7 @@
|
|
|
label="操作"
|
|
|
width="80">
|
|
|
<template slot-scope="scope" show-overflow-tooltip>
|
|
|
- <span style="cursor:pointer;" @click="checkLook(scope.row.id)">查看</span>
|
|
|
+ <span style="cursor:pointer;color: blue;" @click="checkLook(scope.row.batchNumber)">查看</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -105,19 +105,10 @@
|
|
|
<div class="tou">运单列表</div>
|
|
|
<div class="line"></div>
|
|
|
<div class="styleType">
|
|
|
- <el-input placeholder="运单编号" class="theinput" v-model="num"></el-input>
|
|
|
- <el-input placeholder="车牌号" class="theinput" v-model="plateNumber"></el-input>
|
|
|
+ <el-input placeholder="运单编号" class="theinput" v-model="billNum"></el-input>
|
|
|
+ <el-input placeholder="车牌号" class="theinput" v-model="plateNum"></el-input>
|
|
|
<el-input placeholder="税号" class="theinput" v-model="taxPlayerCode"></el-input>
|
|
|
- <el-input placeholder="运单状态" class="theinput" v-model="status"></el-input>
|
|
|
- <el-select v-model="isSuccess" placeholder="请选择上传结果">
|
|
|
- <el-option
|
|
|
- v-for="item in optionone"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- <el-button type="success" style="margin-left: 1%;" @click="queryLookTwo">查询</el-button>
|
|
|
+ <el-button type="success" style="margin-left: 1%;" @click="loadDataCar">查询</el-button>
|
|
|
<!-- <el-button type="info" style="margin-left: 1%;">重置</el-button> -->
|
|
|
</div>
|
|
|
<el-table
|
|
@@ -128,7 +119,7 @@
|
|
|
tooltip-effect="dark">
|
|
|
<el-table-column
|
|
|
label="运单编号"
|
|
|
- prop="num"
|
|
|
+ prop="billNum"
|
|
|
show-overflow-tooltip>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -170,30 +161,16 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
+ prop="billwayStatus"
|
|
|
label="运单状态"
|
|
|
show-overflow-tooltip>
|
|
|
- <template slot-scope="scope">
|
|
|
- <span v-if="scope.row.status == 1">未结束</span>
|
|
|
- <span v-else-if="scope.row.status == 2">已结束运单</span>
|
|
|
- <span v-else-if="scope.row.status == 3">已开发票</span>
|
|
|
- <span v-else-if="scope.row.status == 4">开票中</span>
|
|
|
- <span v-else-if="scope.row.status == 9">状态错误</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="isSuccess"
|
|
|
- label="是否成功"
|
|
|
- show-overflow-tooltip>
|
|
|
- <template slot-scope="scope">
|
|
|
- <span v-if="scope.row.isSuccess == 1">成功</span>
|
|
|
- <span v-else-if="scope.row.isSuccess == 2">失败</span>
|
|
|
+ <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: green">开票中</span>
|
|
|
+ <span v-else-if="scope.row.billwayStatus == 3" style="color: green">开票完成</span>
|
|
|
+ <span v-else-if="scope.row.billwayStatus == 4" style="color: red">超时运单</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="errorMsg"
|
|
|
- label="失败原因"
|
|
|
- show-overflow-tooltip>
|
|
|
- </el-table-column>
|
|
|
</el-table>
|
|
|
</template>
|
|
|
|
|
@@ -219,10 +196,9 @@ export default{
|
|
|
return {
|
|
|
loading: false,
|
|
|
fullscreenLoading: false,
|
|
|
- userName: '',
|
|
|
- userCompany: '',
|
|
|
- batchNumber: '',
|
|
|
- num: '',
|
|
|
+ customerName: '',
|
|
|
+ companyName: '',
|
|
|
+ billNum: '',
|
|
|
plateNumber: '',
|
|
|
taxPlayerCode: '',
|
|
|
status: '',
|
|
@@ -233,11 +209,12 @@ export default{
|
|
|
currenttwo: 1,
|
|
|
pagesizetwo: 8,
|
|
|
totaltwo: 0,
|
|
|
- batchId: '',
|
|
|
+ batchNum: '',
|
|
|
+ batchNumberQ:'',
|
|
|
usertable: [],
|
|
|
usertabletwo: [],
|
|
|
formUserList: {
|
|
|
- "userId": "",
|
|
|
+ "customerName": "",
|
|
|
"file": "",
|
|
|
"roleId": ""
|
|
|
},
|
|
@@ -252,70 +229,26 @@ export default{
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ this.formUserList.customerName = sessionStorage.getItem('userName');
|
|
|
this.loadData();
|
|
|
},
|
|
|
methods: {
|
|
|
// 列表展示
|
|
|
async loadData() {
|
|
|
- this.formUserList.userId = sessionStorage.getItem('userId');
|
|
|
- this.formUserList.roleId = sessionStorage.getItem('roleId');
|
|
|
- if(this.formUserList.roleId == 1) {
|
|
|
- const formData = new FormData();
|
|
|
- formData.append('current', this.current);
|
|
|
- formData.append('size', this.pagesize);
|
|
|
- formData.append('type', 2);
|
|
|
- const response = await this.$http.post(`batch/list`, formData);
|
|
|
- if (response.data.code === 0) {
|
|
|
- this.loading = false;
|
|
|
- this.usertable = response.data.data.records;
|
|
|
- this.total = response.data.data.total;
|
|
|
- }
|
|
|
- }else {
|
|
|
- const formData = new FormData();
|
|
|
+
|
|
|
+ const formData = new FormData();
|
|
|
formData.append('current', this.current);
|
|
|
formData.append('size', this.pagesize);
|
|
|
- formData.append('userId', this.formUserList.userId);
|
|
|
- formData.append('type', 2);
|
|
|
- const response = await this.$http.post(`batch/list`, formData);
|
|
|
+ formData.append('customerName',this.formUserList.customerName);
|
|
|
+ formData.append('company', this.companyName);
|
|
|
+ formData.append('batchNumer', this.batchNum);
|
|
|
+ formData.append('operType', 1);
|
|
|
+ const response = await this.$http.post(`noCar/findBatchList`, formData);
|
|
|
if (response.data.code === 0) {
|
|
|
this.loading = false;
|
|
|
this.usertable = response.data.data.records;
|
|
|
this.total = response.data.data.total;
|
|
|
}
|
|
|
- }
|
|
|
- },
|
|
|
- //查询
|
|
|
- async queryLook() {
|
|
|
- if(this.formUserList.roleId == 1) {
|
|
|
- const formData = new FormData();
|
|
|
- formData.append('current', this.current);
|
|
|
- formData.append('size', this.pagesize);
|
|
|
- formData.append('type', 2);
|
|
|
- formData.append('userName', this.userName);
|
|
|
- formData.append('userCompany', this.userCompany);
|
|
|
- formData.append('batchNumber', this.batchNumber);
|
|
|
- const response = await this.$http.post(`batch/list`, formData);
|
|
|
- if (response.data.code === 0) {
|
|
|
- this.loading = false;
|
|
|
- this.usertable = response.data.data.records;
|
|
|
- this.total = response.data.data.total;
|
|
|
- }
|
|
|
- }else {
|
|
|
- const formData = new FormData();
|
|
|
- formData.append('current', this.current);
|
|
|
- formData.append('size', this.pagesize);
|
|
|
- formData.append('userId', this.formUserList.userId);
|
|
|
- formData.append('type', 2);
|
|
|
- formData.append('userName', this.userName);
|
|
|
- formData.append('userCompany', this.userCompany);
|
|
|
- formData.append('batchNumber', this.batchNumber);
|
|
|
- const response = await this.$http.post(`batch/list`, formData);
|
|
|
- if (response.data.code === 0) {
|
|
|
- this.loading = false;
|
|
|
- this.usertable = response.data.data.records;
|
|
|
- this.total = response.data.data.total;
|
|
|
- }
|
|
|
- }
|
|
|
},
|
|
|
// 下载模板
|
|
|
DownloadTemplate() {
|
|
@@ -328,7 +261,7 @@ export default{
|
|
|
async batchUpload() {
|
|
|
this.fullscreenLoading = true;
|
|
|
const formData = new FormData();
|
|
|
- formData.append('userId', this.formUserList.userId);
|
|
|
+ formData.append('customerName', this.formUserList.customerName);
|
|
|
formData.append('file', this.formUserList.file);
|
|
|
const response = await this.$http.post(`noCar/batchImprotBillWay`,formData);
|
|
|
var {data: { code, msg, data }} = response;
|
|
@@ -347,87 +280,31 @@ export default{
|
|
|
// 查看批次数据
|
|
|
async checkLook(id) {
|
|
|
this.addList = true;
|
|
|
- this.batchId = id;
|
|
|
+ this.batchNumberQ = id;
|
|
|
this.loadDataCar();
|
|
|
},
|
|
|
+ handleEditDialogClose(){
|
|
|
+ this.addList = false;
|
|
|
+ },
|
|
|
// 查看实时数据
|
|
|
async loadDataCar() {
|
|
|
- if(this.formUserList.roleId == 1) {
|
|
|
- const formData = new FormData();
|
|
|
- formData.append('current', this.currenttwo);
|
|
|
- formData.append('size', this.pagesizetwo);
|
|
|
- formData.append('batchId', this.batchId);
|
|
|
- formData.append('isHistory', 1);
|
|
|
- const response = await this.$http.post(`carFreeCarrierBill/list`, formData);
|
|
|
- if (response.data.code === 0) {
|
|
|
- this.loading = false;
|
|
|
- this.usertabletwo = response.data.data.records;
|
|
|
- this.totaltwo = response.data.data.total;
|
|
|
- }
|
|
|
- }else {
|
|
|
+
|
|
|
const formData = new FormData();
|
|
|
formData.append('current', this.currenttwo);
|
|
|
formData.append('size', this.pagesizetwo);
|
|
|
- formData.append('userId', this.formUserList.userId);
|
|
|
- formData.append('batchId', this.batchId);
|
|
|
- formData.append('isHistory', 1);
|
|
|
- const response = await this.$http.post(`carFreeCarrierBill/list`, formData);
|
|
|
- if (response.data.code === 0) {
|
|
|
- this.loading = false;
|
|
|
- this.usertabletwo = response.data.data.records;
|
|
|
- this.totaltwo = response.data.data.total;
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- //查询(二)
|
|
|
- async queryLookTwo() {
|
|
|
- if(this.formUserList.roleId == 1) {
|
|
|
- const formData = new FormData();
|
|
|
- formData.append('current', this.currenttwo);
|
|
|
- formData.append('size', this.pagesizetwo);
|
|
|
- formData.append('batchId', this.batchId);
|
|
|
- formData.append('isHistory', 1);
|
|
|
- formData.append('num', this.num);
|
|
|
- formData.append('plateNumber', this.plateNumber);
|
|
|
+ formData.append('customerName', this.formUserList.customerName);
|
|
|
+ formData.append('batchNum', this.batchNumberQ);
|
|
|
+ formData.append('plateNumber', this.plateNumber);
|
|
|
formData.append('taxPlayerCode', this.taxPlayerCode);
|
|
|
- formData.append('status', this.status);
|
|
|
- formData.append('isSuccess', this.isSuccess);
|
|
|
- const response = await this.$http.post(`carFreeCarrierBill/list`, formData);
|
|
|
+ formData.append('hisFlag', 0);
|
|
|
+ const response = await this.$http.post(`noCar/findBillWay`, formData);
|
|
|
if (response.data.code === 0) {
|
|
|
this.loading = false;
|
|
|
this.usertabletwo = response.data.data.records;
|
|
|
this.totaltwo = response.data.data.total;
|
|
|
}
|
|
|
- }else {
|
|
|
- const formData = new FormData();
|
|
|
- formData.append('current', this.currenttwo);
|
|
|
- formData.append('size', this.pagesizetwo);
|
|
|
- formData.append('userId', this.formUserList.userId);
|
|
|
- formData.append('batchId', this.batchId);
|
|
|
- formData.append('isHistory', 1);
|
|
|
- formData.append('num', this.num);
|
|
|
- formData.append('plateNumber', this.plateNumber);
|
|
|
- formData.append('taxPlayerCode', this.taxPlayerCode);
|
|
|
- formData.append('status', this.status);
|
|
|
- formData.append('isSuccess', this.isSuccess);
|
|
|
- const response = await this.$http.post(`carFreeCarrierBill/list`, formData);
|
|
|
- if (response.data.code === 0) {
|
|
|
- this.loading = false;
|
|
|
- this.usertabletwo = response.data.data.records;
|
|
|
- this.totaltwo = response.data.data.total;
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- // 清空表单数据
|
|
|
- handleEditDialogClose() {
|
|
|
- this.num = '';
|
|
|
- this.plateNumber = '';
|
|
|
- this.taxPlayerCode = '';
|
|
|
- this.current = 1;
|
|
|
- this.pagesize = 8;
|
|
|
- this.currenttwo = 1;
|
|
|
- this.pagesizetwo = 8;
|
|
|
},
|
|
|
+
|
|
|
handleRemove(file, fileList) {
|
|
|
console.log(file, fileList);
|
|
|
},
|
|
@@ -441,38 +318,22 @@ export default{
|
|
|
// 分页方法
|
|
|
handleSizeChange(val) {
|
|
|
this.pagesize = val;
|
|
|
- if(this.userName !== '' || this.userCompany !== '' || this.batchNumber !== '') {
|
|
|
- this.queryLook();
|
|
|
- }else{
|
|
|
- this.loadData();
|
|
|
- };
|
|
|
+ this.loadData();
|
|
|
console.log(`每页 ${val} 条`);
|
|
|
},
|
|
|
handleCurrentChange(val) {
|
|
|
this.current = val;
|
|
|
- if(this.userName !== '' || this.userCompany !== '' || this.batchNumber !== '') {
|
|
|
- this.queryLook();
|
|
|
- }else{
|
|
|
- this.loadData();
|
|
|
- };
|
|
|
+ this.loadData();
|
|
|
console.log(`当前页: ${val}`);
|
|
|
},
|
|
|
handleSize(val) {
|
|
|
this.pagesizetwo = val;
|
|
|
- if(this.num !== '' || this.plateNumber !== '' || this.taxPlayerCode !== '' || this.status !== '' || this.isSuccess !== '') {
|
|
|
- this.queryLookTwo();
|
|
|
- }else{
|
|
|
- this.loadDataCar();
|
|
|
- };
|
|
|
+ this.loadDataCar();
|
|
|
console.log(`每页 ${val} 条`);
|
|
|
},
|
|
|
handleCurrent(val) {
|
|
|
this.currenttwo = val;
|
|
|
- if(this.num !== '' || this.plateNumber !== '' || this.taxPlayerCode !== '' || this.status !== '' || this.isSuccess !== '') {
|
|
|
- this.queryLookTwo();
|
|
|
- }else{
|
|
|
- this.loadDataCar();
|
|
|
- };
|
|
|
+ this.loadDataCar();
|
|
|
console.log(`当前页: ${val}`);
|
|
|
}
|
|
|
}
|