|
@@ -9,7 +9,8 @@
|
|
|
</el-col>
|
|
|
<el-col :span="10">
|
|
|
<div class="screen">
|
|
|
- <el-input class='find' placeholder="可按货主姓名、账号查找" v-model="searchkeyWord" clearable @change="find"></el-input>
|
|
|
+ <el-input class='find' placeholder="可按货主姓名、账号查找" v-model="searchkeyWord" clearable
|
|
|
+ @change="find"></el-input>
|
|
|
<el-button class="search" @click="find"><img width="16" height="16"
|
|
|
style="margin-left: -8px" src="../../../public/img/sousuo.png" /></el-button><span
|
|
|
class="count_css">共{{ deptBudgetTotal }}条</span>
|
|
@@ -36,10 +37,11 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
- <el-table :data="tableData" style="width: 98%; margin: 0 auto; border-radius: 10px" height="55.8vh" border highlight-current-row>
|
|
|
- <el-table-column type="index" width="60" label="序号" align="center">
|
|
|
+ <el-table :data="tableData" style="width: 98%; margin: 0 auto; border-radius: 10px" height="68vh" border
|
|
|
+ highlight-current-row>
|
|
|
+ <el-table-column type="index" width="60" label="序号" align="center">
|
|
|
<template scope="scope">
|
|
|
- <span>{{scope.$index + 1}}</span>
|
|
|
+ <span>{{ scope.$index + 1 }}</span>
|
|
|
<!-- <span v-else>{{scope.$index}}</span> -->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -48,24 +50,27 @@
|
|
|
<el-table-column prop="cargoOwnerPhone" label="货主账号" min-width="108"></el-table-column>
|
|
|
<el-table-column prop="amountMoney" label="发货地" min-width="150">
|
|
|
<template slot-scope="scope">
|
|
|
- {{scope.row.sendPrivate}}{{scope.row.sendCity}}{{scope.row.sendArea}}{{scope.row.sendDetailedAddress}}
|
|
|
+ {{ scope.row.sendPrivate }}{{ scope.row.sendCity }}{{ scope.row.sendArea }}{{ scope.row.sendDetailedAddress }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="amountMoney" label="收货地" min-width="150">
|
|
|
<template slot-scope="scope">
|
|
|
- {{scope.row.unloadPrivate}}{{scope.row.unloadCity}}{{scope.row.unloadArea}}{{scope.row.unloadDetailedAddress}}
|
|
|
+ {{ scope.row.unloadPrivate }}{{ scope.row.unloadCity }}{{ scope.row.unloadArea }}{{ scope.row.unloadDetailedAddress }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="createDate" label="发布日期" min-width="100"></el-table-column>
|
|
|
-
|
|
|
+
|
|
|
<el-table-column prop="backStageStatus" label="状态"></el-table-column>
|
|
|
<el-table-column label="操作" min-width="350">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-link target="_blank" @click="adopt(scope.row)" type="primary" :underline="false" :disabled="scope.row.status != '审核中'">通过</el-link>
|
|
|
+ <el-link target="_blank" @click="adopt(scope.row)" type="primary" :underline="false"
|
|
|
+ :disabled="scope.row.status != '审核中'">通过</el-link>
|
|
|
<el-divider direction="vertical"></el-divider>
|
|
|
- <el-link target="_blank" @click="reject(scope.row)" type="primary" :underline="false" :disabled="scope.row.status != '审核中'">驳回</el-link>
|
|
|
+ <el-link target="_blank" @click="reject(scope.row)" type="primary" :underline="false"
|
|
|
+ :disabled="scope.row.status != '审核中'">驳回</el-link>
|
|
|
<el-divider direction="vertical"></el-divider>
|
|
|
- <el-link target="_blank" @click="reject(scope.row)" type="primary" :underline="false">查看</el-link>
|
|
|
+ <el-link target="_blank" @click="reject(scope.row)" type="primary"
|
|
|
+ :underline="false">查看</el-link>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -97,396 +102,401 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-dialog> -->
|
|
|
- <el-drawer title="任务详情" :visible.sync="rightSee" >
|
|
|
+ <el-drawer title="任务详情" :visible.sync="rightSee">
|
|
|
<div class="right_css">
|
|
|
- <div class="right_item">任务编号:{{taskLook.taskNo}}</div>
|
|
|
- <div class="right_title">公司</div>
|
|
|
- <div class="right_item">{{taskLook.cargoOwner}}</div>
|
|
|
- <div class="right_title">发货地区</div>
|
|
|
- <div class="right_item">{{taskLook.sendPrivate}}{{taskLook.sendCity}}{{taskLook.sendArea}}</div>
|
|
|
- <div class="right_title">发货详细地址</div>
|
|
|
- <div class="right_item">{{taskLook.sendDetailedAddress}}</div>
|
|
|
- <div class="right_title">收货地区</div>
|
|
|
- <div class="right_item">{{taskLook.unloadPrivate}}{{taskLook.unloadCity}}{{taskLook.unloadArea}}</div>
|
|
|
- <div class="right_title">收货详细地址</div>
|
|
|
- <div class="right_item">{{taskLook.unloadDetailedAddress}}</div>
|
|
|
- <div class="right_title">发货联系人</div>
|
|
|
- <div class="right_item">{{taskLook.sender}}</div>
|
|
|
- <div class="right_title">发货联系人电话</div>
|
|
|
- <div class="right_item">{{taskLook.senderPhone}}</div>
|
|
|
-
|
|
|
- <div class="right_title">收货联系人</div>
|
|
|
- <div class="right_item">{{taskLook.receiver}}</div>
|
|
|
- <div class="right_title">收货联系人电话</div>
|
|
|
- <div class="right_item">{{taskLook.receiverPhone}}</div>
|
|
|
- <div class="right_title">收货人身份证号</div>
|
|
|
- <div class="right_item">{{taskLook.receiverIdcard}}</div>
|
|
|
- <div class="right_title">收货方信用代码(选填)</div>
|
|
|
- <div class="right_item">{{taskLook.receiverCreditCode?taskLook.receiverCreditCode:'暂无'}}</div>
|
|
|
- <div class="right_title">运输距离</div>
|
|
|
- <div class="right_item">约{{taskLook.distance ? taskLook.distance : 0}}km</div>
|
|
|
- <div class="right_title">货物类别</div>
|
|
|
- <div class="right_item">{{taskLook.goodsType}}</div>
|
|
|
- <div class="right_title">货名</div>
|
|
|
- <div class="right_item">{{taskLook.goodsName}}</div>
|
|
|
- <div class="right_title">重量(吨)</div>
|
|
|
- <div class="right_item">{{taskLook.weight}}</div>
|
|
|
- <div class="right_title">运费计算方式</div>
|
|
|
- <div class="right_item">{{taskLook.billingMethod == 0 ? "元/吨":"元/车"}}</div>
|
|
|
- <div class="right_title">{{taskLook.billingMethod == 0 ? "运费单价(元/吨)":"运费单价(元/车)"}}</div>
|
|
|
- <div class="right_item">{{taskLook.freightPrice}}</div>
|
|
|
- <div class="right_title">预计装车日期起</div>
|
|
|
- <div class="right_item">{{taskLook. loadingDateStart}}</div>
|
|
|
- <div class="right_title">预计装车日期止</div>
|
|
|
- <div class="right_item">{{taskLook.loadingDateEnd}}</div>
|
|
|
- <div class="right_title">车长要求(米)</div>
|
|
|
- <div class="right_item">{{taskLook.carLengthSmall}}~{{taskLook.carLength}}</div>
|
|
|
- <div class="right_title">载重要求(吨)</div>
|
|
|
- <div class="right_item">{{taskLook.loadWeightSmall}}~{{taskLook.loadWeight}}</div>
|
|
|
- <div class="right_title">车型要求</div>
|
|
|
- <div class="right_item">{{taskLook.carModelText}}</div>
|
|
|
- <div class="right_title">任务描述</div>
|
|
|
- <div class="right_item">{{taskLook.taskDescription}}</div>
|
|
|
- <div class="right_title">任务有效期</div>
|
|
|
- <div class="right_item">{{taskLook.taskValidity}}</div>
|
|
|
- <div class="right_item">{{taskLook.freightAdvance == 0 ? "该任务未申请运费垫付":"该任务申请运费垫付"}}</div>
|
|
|
- <div class="right_btn">
|
|
|
- <el-button @click="submit(1)" v-if="taskLook.status == '审核中'">通过</el-button>
|
|
|
- <el-button @click="submit(2)" v-if="taskLook.status == '审核中'">驳回</el-button>
|
|
|
- <el-button @click="rightSee = false">关闭</el-button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <div class="right_item">任务编号:{{ taskLook.taskNo }}</div>
|
|
|
+ <div class="right_title">公司</div>
|
|
|
+ <div class="right_item">{{ taskLook.cargoOwner }}</div>
|
|
|
+ <div class="right_title">发货地区</div>
|
|
|
+ <div class="right_item">{{ taskLook.sendPrivate }}{{ taskLook.sendCity }}{{ taskLook.sendArea }}</div>
|
|
|
+ <div class="right_title">发货详细地址</div>
|
|
|
+ <div class="right_item">{{ taskLook.sendDetailedAddress }}</div>
|
|
|
+ <div class="right_title">收货地区</div>
|
|
|
+ <div class="right_item">{{ taskLook.unloadPrivate }}{{ taskLook.unloadCity }}{{ taskLook.unloadArea }}</div>
|
|
|
+ <div class="right_title">收货详细地址</div>
|
|
|
+ <div class="right_item">{{ taskLook.unloadDetailedAddress }}</div>
|
|
|
+ <div class="right_title">发货联系人</div>
|
|
|
+ <div class="right_item">{{ taskLook.sender }}</div>
|
|
|
+ <div class="right_title">发货联系人电话</div>
|
|
|
+ <div class="right_item">{{ taskLook.senderPhone }}</div>
|
|
|
+
|
|
|
+ <div class="right_title">收货联系人</div>
|
|
|
+ <div class="right_item">{{ taskLook.receiver }}</div>
|
|
|
+ <div class="right_title">收货联系人电话</div>
|
|
|
+ <div class="right_item">{{ taskLook.receiverPhone }}</div>
|
|
|
+ <div class="right_title">收货人身份证号</div>
|
|
|
+ <div class="right_item">{{ taskLook.receiverIdcard }}</div>
|
|
|
+ <div class="right_title">收货方信用代码(选填)</div>
|
|
|
+ <div class="right_item">{{ taskLook.receiverCreditCode ? taskLook.receiverCreditCode : '暂无' }}</div>
|
|
|
+ <div class="right_title">运输距离</div>
|
|
|
+ <div class="right_item">约{{ taskLook.distance ? taskLook.distance : 0 }}km</div>
|
|
|
+ <div class="right_title">货物类别</div>
|
|
|
+ <div class="right_item">{{ taskLook.goodsType }}</div>
|
|
|
+ <div class="right_title">货名</div>
|
|
|
+ <div class="right_item">{{ taskLook.goodsName }}</div>
|
|
|
+ <div class="right_title">重量(吨)</div>
|
|
|
+ <div class="right_item">{{ taskLook.weight }}</div>
|
|
|
+ <div class="right_title">运费计算方式</div>
|
|
|
+ <div class="right_item">{{ taskLook.billingMethod == 0 ? "元/吨" : "元/车" }}</div>
|
|
|
+ <div class="right_title">{{ taskLook.billingMethod == 0 ? "运费单价(元/吨)" : "运费单价(元/车)" }}</div>
|
|
|
+ <div class="right_item">{{ taskLook.freightPrice }}</div>
|
|
|
+ <div class="right_title">预计装车日期起</div>
|
|
|
+ <div class="right_item">{{ taskLook.loadingDateStart }}</div>
|
|
|
+ <div class="right_title">预计装车日期止</div>
|
|
|
+ <div class="right_item">{{ taskLook.loadingDateEnd }}</div>
|
|
|
+ <div class="right_title">车长要求(米)</div>
|
|
|
+ <div class="right_item">{{ taskLook.carLengthSmall }}~{{ taskLook.carLength }}</div>
|
|
|
+ <div class="right_title">载重要求(吨)</div>
|
|
|
+ <div class="right_item">{{ taskLook.loadWeightSmall }}~{{ taskLook.loadWeight }}</div>
|
|
|
+ <div class="right_title">车型要求</div>
|
|
|
+ <div class="right_item">{{ taskLook.carModelText }}</div>
|
|
|
+ <div class="right_title">任务描述</div>
|
|
|
+ <div class="right_item">{{ taskLook.taskDescription }}</div>
|
|
|
+ <div class="right_title">任务有效期</div>
|
|
|
+ <div class="right_item">{{ taskLook.taskValidity }}</div>
|
|
|
+ <div class="right_item">{{ taskLook.freightAdvance == 0 ? "该任务未申请运费垫付" : "该任务申请运费垫付" }}</div>
|
|
|
+ <div class="right_btn">
|
|
|
+ <el-button @click="submit(1)" v-if="taskLook.status == '审核中'">通过</el-button>
|
|
|
+ <el-button @click="submit(2)" v-if="taskLook.status == '审核中'">驳回</el-button>
|
|
|
+ <el-button @click="rightSee = false">关闭</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</el-drawer>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
- import {
|
|
|
- getListLook,
|
|
|
- toTaskExamine
|
|
|
- } from '@/api/cargoOwnerManagement'
|
|
|
- export default {
|
|
|
- data() {
|
|
|
- return {
|
|
|
- tableData: [],
|
|
|
- //分页
|
|
|
- searchkeyWord: "",
|
|
|
- currentPage: 1,
|
|
|
- pageSize: 10,
|
|
|
- deptBudgetTotal: 0,
|
|
|
- deptCircularPage: {},
|
|
|
- search: "",
|
|
|
- addressUrl: [],
|
|
|
- disabled: false,
|
|
|
- form: {
|
|
|
- checkList: [],
|
|
|
- textarea: "",
|
|
|
- },
|
|
|
- rightSee:false,
|
|
|
- taskLook:{},
|
|
|
- };
|
|
|
- },
|
|
|
- mounted() {
|
|
|
- this.getList()
|
|
|
- },
|
|
|
- methods: {
|
|
|
-
|
|
|
- getList() {
|
|
|
-
|
|
|
- this.loading = true
|
|
|
- let _obj = {}
|
|
|
- _obj.currentPage = this.currentPage
|
|
|
- _obj.pageSize = this.pageSize
|
|
|
- _obj.searchKeyWord = this.searchkeyWord
|
|
|
- _obj.searchType = this.search
|
|
|
- getListLook(_obj).then(response => {
|
|
|
-
|
|
|
- this.tableData = response.data.records
|
|
|
- this.deptBudgetTotal = response.data.total
|
|
|
- this.listLoading = false
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- this.loading = false
|
|
|
- })
|
|
|
+import {
|
|
|
+ getListLook,
|
|
|
+ toTaskExamine
|
|
|
+} from '@/api/cargoOwnerManagement'
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ tableData: [],
|
|
|
+ //分页
|
|
|
+ searchkeyWord: "",
|
|
|
+ currentPage: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ deptBudgetTotal: 0,
|
|
|
+ deptCircularPage: {},
|
|
|
+ search: "",
|
|
|
+ addressUrl: [],
|
|
|
+ disabled: false,
|
|
|
+ form: {
|
|
|
+ checkList: [],
|
|
|
+ textarea: "",
|
|
|
},
|
|
|
- adopt(row) {
|
|
|
- this.taskLook = row
|
|
|
- if(row.carModel){
|
|
|
- var arr=[]
|
|
|
- if(row.carModel.indexOf('1')!=-1){
|
|
|
- arr.push('不限')
|
|
|
- }
|
|
|
- if(row.carModel.indexOf('2')!=-1){
|
|
|
- arr.push('高栏')
|
|
|
- }
|
|
|
- if(row.carModel.indexOf('3')!=-1){
|
|
|
- arr.push('集装箱')
|
|
|
- }
|
|
|
- if(row.carModel.indexOf('4')!=-1){
|
|
|
- arr.push('自卸车')
|
|
|
- }
|
|
|
- row.carModelText=arr.toString()
|
|
|
- }else{
|
|
|
- row.carModelText=''
|
|
|
+ rightSee: false,
|
|
|
+ taskLook: {},
|
|
|
+ };
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+
|
|
|
+ getList() {
|
|
|
+
|
|
|
+ this.loading = true
|
|
|
+ let _obj = {}
|
|
|
+ _obj.currentPage = this.currentPage
|
|
|
+ _obj.pageSize = this.pageSize
|
|
|
+ _obj.searchKeyWord = this.searchkeyWord
|
|
|
+ _obj.searchType = this.search
|
|
|
+ getListLook(_obj).then(response => {
|
|
|
+
|
|
|
+ this.tableData = response.data.records
|
|
|
+ this.deptBudgetTotal = response.data.total
|
|
|
+ this.listLoading = false
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
+ },
|
|
|
+ adopt(row) {
|
|
|
+ this.taskLook = row
|
|
|
+ if (row.carModel) {
|
|
|
+ var arr = []
|
|
|
+ if (row.carModel.indexOf('1') != -1) {
|
|
|
+ arr.push('不限')
|
|
|
}
|
|
|
- this.rightSee = true
|
|
|
- },
|
|
|
- reject(row) {
|
|
|
- if(row.carModel){
|
|
|
- var arr=[]
|
|
|
- if(row.carModel.indexOf('1')!=-1){
|
|
|
- arr.push('不限')
|
|
|
- }
|
|
|
- if(row.carModel.indexOf('2')!=-1){
|
|
|
- arr.push('高栏')
|
|
|
- }
|
|
|
- if(row.carModel.indexOf('3')!=-1){
|
|
|
- arr.push('集装箱')
|
|
|
- }
|
|
|
- if(row.carModel.indexOf('4')!=-1){
|
|
|
- arr.push('自卸车')
|
|
|
- }
|
|
|
- row.carModelText=arr.toString()
|
|
|
- }else{
|
|
|
- row.carModelText=''
|
|
|
+ if (row.carModel.indexOf('2') != -1) {
|
|
|
+ arr.push('高栏')
|
|
|
}
|
|
|
- this.taskLook = row
|
|
|
- this.rightSee = true
|
|
|
- },
|
|
|
- submit(num) {
|
|
|
- var _taskObj = {}
|
|
|
- _taskObj.id = this.taskLook.id
|
|
|
- let taskTitle = ""
|
|
|
- if(num == 1){
|
|
|
- _taskObj.flag = 1
|
|
|
- taskTitle = "通过"
|
|
|
- }else if(num == 2){
|
|
|
- _taskObj.flag = 2
|
|
|
- taskTitle = "驳回"
|
|
|
+ if (row.carModel.indexOf('3') != -1) {
|
|
|
+ arr.push('集装箱')
|
|
|
}
|
|
|
- this.$confirm('确定'+ taskTitle + this.taskLook.cargoOwnerName + '的发运任务?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- this.listLoading = true
|
|
|
-
|
|
|
- toTaskExamine(_taskObj).then(response => {
|
|
|
- this.rightSee = false
|
|
|
- this.taskLook = {}
|
|
|
- this.$notify({
|
|
|
- title: '成功',
|
|
|
- message: taskTitle+'成功!',
|
|
|
- type: 'success'
|
|
|
- });
|
|
|
- this.getList()
|
|
|
- this.listLoading = false
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- this.loading = false
|
|
|
- })
|
|
|
- })
|
|
|
- },
|
|
|
- searchBtn(num) {
|
|
|
- this.search = num;
|
|
|
- this.getList();
|
|
|
- },
|
|
|
- find() {
|
|
|
- this.currentPage = 1
|
|
|
- this.getList();
|
|
|
- },
|
|
|
- onChange() {
|
|
|
- this.$refs.upload
|
|
|
- .handleSaveBill()
|
|
|
- .then(async (response) => {
|
|
|
- this.formData.addressUrl = response;
|
|
|
- })
|
|
|
- .catch((res) => {
|
|
|
- EventBus.$emit("error", (JSON.parse(res) || {}).message);
|
|
|
- this.$refs.upload.clearFiles();
|
|
|
- });
|
|
|
- },
|
|
|
- handleSizeChange(val) {
|
|
|
- console.log(`每页 ${val} 条`);
|
|
|
- this.pageSize = val;
|
|
|
- this.getList();
|
|
|
- },
|
|
|
- handleCurrentChange(val) {
|
|
|
- this.currentPage = val;
|
|
|
- console.log(`当前页: ${val}`);
|
|
|
- this.getList();
|
|
|
- },
|
|
|
+ if (row.carModel.indexOf('4') != -1) {
|
|
|
+ arr.push('自卸车')
|
|
|
+ }
|
|
|
+ row.carModelText = arr.toString()
|
|
|
+ } else {
|
|
|
+ row.carModelText = ''
|
|
|
+ }
|
|
|
+ this.rightSee = true
|
|
|
},
|
|
|
- };
|
|
|
-</script>
|
|
|
-<style lang="scss" scoped>
|
|
|
- .center {
|
|
|
- padding: 10px 20px;
|
|
|
- background: #f5f6f7;
|
|
|
- height: calc(100vh - 5vh);
|
|
|
-
|
|
|
- .top_css {
|
|
|
- padding: 10px;
|
|
|
-
|
|
|
- .search_btn {
|
|
|
- height: 80px;
|
|
|
- background: linear-gradient(#fafbfb, #ffffff);
|
|
|
- display: flex;
|
|
|
- margin-top: 20px;
|
|
|
- .search_block{
|
|
|
- margin-left: 20px;
|
|
|
- }
|
|
|
-
|
|
|
- .search_item {
|
|
|
- text-align: center;
|
|
|
- font-size: 14px;
|
|
|
- font-weight: 600;
|
|
|
- line-height: 40px;
|
|
|
- width: 112px;
|
|
|
- height: 40px;
|
|
|
- background: #f7f8f9;
|
|
|
- cursor: pointer;
|
|
|
- margin-top: 30px;
|
|
|
+ reject(row) {
|
|
|
+ if (row.carModel) {
|
|
|
+ var arr = []
|
|
|
+ if (row.carModel.indexOf('1') != -1) {
|
|
|
+ arr.push('不限')
|
|
|
}
|
|
|
-
|
|
|
- .searchNo {
|
|
|
- color: #323233;
|
|
|
+ if (row.carModel.indexOf('2') != -1) {
|
|
|
+ arr.push('高栏')
|
|
|
}
|
|
|
-
|
|
|
- .search {
|
|
|
- color: #2f53eb;
|
|
|
- background: #ffffff;
|
|
|
+ if (row.carModel.indexOf('3') != -1) {
|
|
|
+ arr.push('集装箱')
|
|
|
+ }
|
|
|
+ if (row.carModel.indexOf('4') != -1) {
|
|
|
+ arr.push('自卸车')
|
|
|
}
|
|
|
+ row.carModelText = arr.toString()
|
|
|
+ } else {
|
|
|
+ row.carModelText = ''
|
|
|
}
|
|
|
- }
|
|
|
+ this.taskLook = row
|
|
|
+ this.rightSee = true
|
|
|
+ },
|
|
|
+ submit(num) {
|
|
|
+ var _taskObj = {}
|
|
|
+ _taskObj.id = this.taskLook.id
|
|
|
+ let taskTitle = ""
|
|
|
+ if (num == 1) {
|
|
|
+ _taskObj.flag = 1
|
|
|
+ taskTitle = "通过"
|
|
|
+ } else if (num == 2) {
|
|
|
+ _taskObj.flag = 2
|
|
|
+ taskTitle = "驳回"
|
|
|
+ }
|
|
|
+ this.$confirm('确定' + taskTitle + this.taskLook.cargoOwnerName + '的发运任务?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.listLoading = true
|
|
|
|
|
|
- .center_css {
|
|
|
- background: #ffffff;
|
|
|
- border-radius: 1px;
|
|
|
- margin-top: 10px;
|
|
|
- padding-bottom: 10px;
|
|
|
- }
|
|
|
+ toTaskExamine(_taskObj).then(response => {
|
|
|
+ this.rightSee = false
|
|
|
+ this.taskLook = {}
|
|
|
+ this.$notify({
|
|
|
+ title: '成功',
|
|
|
+ message: taskTitle + '成功!',
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ this.getList()
|
|
|
+ this.listLoading = false
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ searchBtn(num) {
|
|
|
+ this.search = num;
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ find() {
|
|
|
+ this.currentPage = 1
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ onChange() {
|
|
|
+ this.$refs.upload
|
|
|
+ .handleSaveBill()
|
|
|
+ .then(async (response) => {
|
|
|
+ this.formData.addressUrl = response;
|
|
|
+ })
|
|
|
+ .catch((res) => {
|
|
|
+ EventBus.$emit("error", (JSON.parse(res) || {}).message);
|
|
|
+ this.$refs.upload.clearFiles();
|
|
|
+ });
|
|
|
+ },
|
|
|
+ handleSizeChange(val) {
|
|
|
+ console.log(`每页 ${val} 条`);
|
|
|
+ this.pageSize = val;
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ handleCurrentChange(val) {
|
|
|
+ this.currentPage = val;
|
|
|
+ console.log(`当前页: ${val}`);
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+<style lang="scss" scoped>
|
|
|
+.center {
|
|
|
+ padding: 10px 20px;
|
|
|
+ background: #f5f6f7;
|
|
|
+ min-height: calc(100vh - 50px);
|
|
|
+
|
|
|
+ .top_css {
|
|
|
+ padding: 10px;
|
|
|
|
|
|
- .screen {
|
|
|
+ .search_btn {
|
|
|
+ height: 80px;
|
|
|
+ background: linear-gradient(#fafbfb, #ffffff);
|
|
|
display: flex;
|
|
|
+ margin-top: 20px;
|
|
|
|
|
|
- .search {
|
|
|
- width: 40px;
|
|
|
- height: 40px;
|
|
|
- background: #2f53eb;
|
|
|
- border-radius: 0px 2px 2px 0px;
|
|
|
- border: 1px solid #DCDFE6;
|
|
|
- margin-left:-1px;
|
|
|
+ .search_block {
|
|
|
+ margin-left: 20px;
|
|
|
}
|
|
|
|
|
|
- .count_css {
|
|
|
- width: 80px;
|
|
|
+ .search_item {
|
|
|
text-align: center;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 600;
|
|
|
line-height: 40px;
|
|
|
- color: #666666;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .el-button {
|
|
|
- padding: 10px 20px !important;
|
|
|
- }
|
|
|
-
|
|
|
- .center_css {
|
|
|
-
|
|
|
- ::v-deep .el-table th,
|
|
|
- ::v-deep .el-table td {
|
|
|
- text-align: center;
|
|
|
+ width: 112px;
|
|
|
+ height: 40px;
|
|
|
+ background: #f7f8f9;
|
|
|
+ cursor: pointer;
|
|
|
+ margin-top: 30px;
|
|
|
}
|
|
|
|
|
|
- .fujian {
|
|
|
- font-size: 24px;
|
|
|
- color: #409eff;
|
|
|
+ .searchNo {
|
|
|
+ color: #323233;
|
|
|
}
|
|
|
|
|
|
- .warning {
|
|
|
- font-size: 14px;
|
|
|
- color: #ed1d1d;
|
|
|
+ .search {
|
|
|
+ color: #2f53eb;
|
|
|
+ background: #ffffff;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- .car_css {
|
|
|
- width: 50%;
|
|
|
- display: inline-block;
|
|
|
- text-align: center;
|
|
|
- margin-top: 20px;
|
|
|
+ .center_css {
|
|
|
+ background: #ffffff;
|
|
|
+ border-radius: 1px;
|
|
|
+ margin-top: 10px;
|
|
|
+ padding-bottom: 10px;
|
|
|
}
|
|
|
|
|
|
- .car_item {
|
|
|
- width: 100px;
|
|
|
- height: 100px;
|
|
|
- }
|
|
|
+ .screen {
|
|
|
+ display: flex;
|
|
|
|
|
|
- .user {
|
|
|
- margin-bottom: 20px;
|
|
|
+ .search {
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ background: #2f53eb;
|
|
|
+ border-radius: 0px 2px 2px 0px;
|
|
|
+ border: 1px solid #DCDFE6;
|
|
|
+ margin-left: -1px;
|
|
|
+ }
|
|
|
|
|
|
- .user_id {
|
|
|
- display: flex;
|
|
|
- height: 30px;
|
|
|
+ .count_css {
|
|
|
+ width: 80px;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 40px;
|
|
|
+ color: #666666;
|
|
|
}
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-button {
|
|
|
+ padding: 10px 20px !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ .center_css {
|
|
|
|
|
|
- .name_css,
|
|
|
- .id_css {
|
|
|
- width: 50%;
|
|
|
+ ::v-deep .el-table th,
|
|
|
+ ::v-deep .el-table td {
|
|
|
+ text-align: center;
|
|
|
}
|
|
|
|
|
|
- .name_css {
|
|
|
- text-align: right;
|
|
|
+ .fujian {
|
|
|
+ font-size: 24px;
|
|
|
+ color: #409eff;
|
|
|
}
|
|
|
|
|
|
- .user_item {
|
|
|
- width: 450px;
|
|
|
- height: 300px;
|
|
|
+ .warning {
|
|
|
+ font-size: 14px;
|
|
|
+ color: #ed1d1d;
|
|
|
}
|
|
|
}
|
|
|
+}
|
|
|
|
|
|
- ::v-deep .el-table--border .el-table__header th {
|
|
|
- background: #f7f8f9;
|
|
|
+.car_css {
|
|
|
+ width: 50%;
|
|
|
+ display: inline-block;
|
|
|
+ text-align: center;
|
|
|
+ margin-top: 20px;
|
|
|
+}
|
|
|
+
|
|
|
+.car_item {
|
|
|
+ width: 100px;
|
|
|
+ height: 100px;
|
|
|
+}
|
|
|
+
|
|
|
+.user {
|
|
|
+ margin-bottom: 20px;
|
|
|
+
|
|
|
+ .user_id {
|
|
|
+ display: flex;
|
|
|
+ height: 30px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .name_css,
|
|
|
+ .id_css {
|
|
|
+ width: 50%;
|
|
|
}
|
|
|
|
|
|
- .btn_css {
|
|
|
- color: #2f53eb;
|
|
|
- cursor: pointer
|
|
|
+ .name_css {
|
|
|
+ text-align: right;
|
|
|
}
|
|
|
|
|
|
- .sign {
|
|
|
+ .user_item {
|
|
|
+ width: 450px;
|
|
|
+ height: 300px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+::v-deep .el-table--border .el-table__header th {
|
|
|
+ background: #f7f8f9;
|
|
|
+}
|
|
|
+
|
|
|
+.btn_css {
|
|
|
+ color: #2f53eb;
|
|
|
+ cursor: pointer
|
|
|
+}
|
|
|
+
|
|
|
+.sign {
|
|
|
+ font-size: 14px;
|
|
|
+ color: red;
|
|
|
+}
|
|
|
+
|
|
|
+.right_css {
|
|
|
+ padding: 0 20px;
|
|
|
+
|
|
|
+ .right_title {
|
|
|
+ color: #9D9D9D;
|
|
|
font-size: 14px;
|
|
|
- color: red;
|
|
|
+ margin-bottom: 4px;
|
|
|
}
|
|
|
- .right_css {
|
|
|
- padding:0 20px;
|
|
|
- .right_title {
|
|
|
- color: #9D9D9D;
|
|
|
- font-size: 14px;
|
|
|
- margin-bottom: 4px;
|
|
|
- }
|
|
|
-
|
|
|
- .right_item {
|
|
|
- color: #0D0D0D;
|
|
|
- font-size: 14px;
|
|
|
- margin-bottom: 20px;
|
|
|
- }
|
|
|
-
|
|
|
- .right_btn {
|
|
|
- text-align: right;
|
|
|
- margin: 10px 0;
|
|
|
- }
|
|
|
-
|
|
|
- .right_img {
|
|
|
- width: 200px;
|
|
|
- height: 120px;
|
|
|
- margin-top: 10px;
|
|
|
- }
|
|
|
- }
|
|
|
- ::v-deep .el-drawer {
|
|
|
- overflow: auto;
|
|
|
- }
|
|
|
- .find::v-deep input.el-input__inner{
|
|
|
- border-radius:0;
|
|
|
- }
|
|
|
+
|
|
|
+ .right_item {
|
|
|
+ color: #0D0D0D;
|
|
|
+ font-size: 14px;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .right_btn {
|
|
|
+ text-align: right;
|
|
|
+ margin: 10px 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .right_img {
|
|
|
+ width: 200px;
|
|
|
+ height: 120px;
|
|
|
+ margin-top: 10px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+::v-deep .el-drawer {
|
|
|
+ overflow: auto;
|
|
|
+}
|
|
|
+
|
|
|
+.find::v-deep input.el-input__inner {
|
|
|
+ border-radius: 0;
|
|
|
+}
|
|
|
</style>
|