|
@@ -3,8 +3,7 @@
|
|
<div>
|
|
<div>
|
|
<BaseHeaderLayout :leftSpan="15">
|
|
<BaseHeaderLayout :leftSpan="15">
|
|
<template slot="left">
|
|
<template slot="left">
|
|
- <span style='width: 134px;
|
|
|
|
- display: inline-block;'>起点:</span>
|
|
|
|
|
|
+ <span style="width: 134px; display: inline-block">起点:</span>
|
|
<el-input
|
|
<el-input
|
|
label="起点"
|
|
label="起点"
|
|
placeholder="请输入起点"
|
|
placeholder="请输入起点"
|
|
@@ -12,8 +11,7 @@
|
|
maxlength="200"
|
|
maxlength="200"
|
|
type="input"
|
|
type="input"
|
|
></el-input>
|
|
></el-input>
|
|
- <span style='width: 134px;
|
|
|
|
- display: inline-block;'>终点:</span>
|
|
|
|
|
|
+ <span style="width: 134px; display: inline-block">终点:</span>
|
|
<el-input
|
|
<el-input
|
|
label="终点"
|
|
label="终点"
|
|
placeholder="请输入终点"
|
|
placeholder="请输入终点"
|
|
@@ -53,18 +51,32 @@
|
|
</template>
|
|
</template>
|
|
</BaseHeaderLayout>
|
|
</BaseHeaderLayout>
|
|
<div>
|
|
<div>
|
|
- <ws-button class="but" :type="primary==1?'primary':''" @click="handlestatus(1)">
|
|
|
|
- 执行中</ws-button
|
|
|
|
- >
|
|
|
|
- <ws-button class="but" :type="primary==2?'primary':''" @click="handlestatus(2)">已完成</ws-button>
|
|
|
|
- <ws-button class="but" :type="primary==3?'primary':''" @click="handlestatus('')">全部任务</ws-button>
|
|
|
|
|
|
+ <ws-button
|
|
|
|
+ class="but"
|
|
|
|
+ :type="primary == 1 ? 'primary' : ''"
|
|
|
|
+ @click="handlestatus(1)"
|
|
|
|
+ >
|
|
|
|
+ 执行中</ws-button
|
|
|
|
+ >
|
|
|
|
+ <ws-button
|
|
|
|
+ class="but"
|
|
|
|
+ :type="primary == 2 ? 'primary' : ''"
|
|
|
|
+ @click="handlestatus(2)"
|
|
|
|
+ >已完成</ws-button
|
|
|
|
+ >
|
|
|
|
+ <ws-button
|
|
|
|
+ class="but"
|
|
|
|
+ :type="primary == 3 ? 'primary' : ''"
|
|
|
|
+ @click="handlestatus('')"
|
|
|
|
+ >全部任务</ws-button
|
|
|
|
+ >
|
|
<el-table
|
|
<el-table
|
|
class="wenzi"
|
|
class="wenzi"
|
|
:data="gainList.records"
|
|
:data="gainList.records"
|
|
style="width: 100%; margin-top: 20px"
|
|
style="width: 100%; margin-top: 20px"
|
|
height="780"
|
|
height="780"
|
|
>
|
|
>
|
|
- <el-table-column type="index">
|
|
|
|
|
|
+ <el-table-column type="index" label="序号">
|
|
<template scope="scope">
|
|
<template scope="scope">
|
|
<span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
|
|
<span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
|
|
<span v-else>{{ scope.$index + 1 }}</span>
|
|
<span v-else>{{ scope.$index + 1 }}</span>
|
|
@@ -73,13 +85,18 @@
|
|
<el-table-column prop="taskNo" label="运输任务编号" width="160">
|
|
<el-table-column prop="taskNo" label="运输任务编号" width="160">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="contractNo" label="合同编号" width="160">
|
|
<el-table-column prop="contractNo" label="合同编号" width="160">
|
|
- </el-table-column>
|
|
|
|
|
|
+ </el-table-column>
|
|
<el-table-column prop=" weight" class="table_td" label="货物(吨数)">
|
|
<el-table-column prop=" weight" class="table_td" label="货物(吨数)">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{ scope.row.goodsName }}({{ scope.row.weight }})
|
|
{{ scope.row.goodsName }}({{ scope.row.weight }})
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="tranType" class="table_td" label="运输方式">
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="tranType"
|
|
|
|
+ class="table_td"
|
|
|
|
+ label="运输方式"
|
|
|
|
+ width="120"
|
|
|
|
+ >
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="" class="table_td" label="起点">
|
|
<el-table-column prop="" class="table_td" label="起点">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -154,13 +171,22 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="seller" label="操作" width="300">
|
|
<el-table-column prop="seller" label="操作" width="300">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <ws-button class="completed" @click="nocomplete(scope.row)">
|
|
|
|
|
|
+ <!-- <ws-button class="completed" @click="nocomplete(scope.row)">
|
|
查看
|
|
查看
|
|
</ws-button>
|
|
</ws-button>
|
|
<ws-button class="putstorage" @click="delivery(scope.row)">
|
|
<ws-button class="putstorage" @click="delivery(scope.row)">
|
|
编辑
|
|
编辑
|
|
</ws-button>
|
|
</ws-button>
|
|
- <ws-button @click="deleteclick(scope.row)"> 删除 </ws-button>
|
|
|
|
|
|
+ <ws-button @click="deleteclick(scope.row)"> 删除 </ws-button> -->
|
|
|
|
+ <div class="record" @click="nocomplete(scope.row)">
|
|
|
|
+ 查看
|
|
|
|
+ </div>
|
|
|
|
+ <div class="record" @click="delivery(scope.row)">
|
|
|
|
+ 编辑
|
|
|
|
+ </div>
|
|
|
|
+ <div class="record" @click="deleteclick(scope.row)">
|
|
|
|
+ 删除
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -203,7 +229,7 @@ export default {
|
|
year: '',
|
|
year: '',
|
|
gainList: [],
|
|
gainList: [],
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
- primary:1,
|
|
|
|
|
|
+ primary: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
searchType: 1,
|
|
searchType: 1,
|
|
searchTypeText: '未完成',
|
|
searchTypeText: '未完成',
|
|
@@ -275,14 +301,14 @@ export default {
|
|
},
|
|
},
|
|
handlestatus(status) {
|
|
handlestatus(status) {
|
|
this.searchType = status
|
|
this.searchType = status
|
|
- if(status==1){
|
|
|
|
- this.primary=1
|
|
|
|
- }else if(status==2){
|
|
|
|
- this.primary=2
|
|
|
|
- }else{
|
|
|
|
- this.primary=3
|
|
|
|
|
|
+ if (status == 1) {
|
|
|
|
+ this.primary = 1
|
|
|
|
+ } else if (status == 2) {
|
|
|
|
+ this.primary = 2
|
|
|
|
+ } else {
|
|
|
|
+ this.primary = 3
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
//编辑
|
|
//编辑
|
|
@@ -510,17 +536,17 @@ export default {
|
|
border-top-right-radius: 0px;
|
|
border-top-right-radius: 0px;
|
|
border-bottom-right-radius: 0px;
|
|
border-bottom-right-radius: 0px;
|
|
}
|
|
}
|
|
-.completed.el-button--default {
|
|
|
|
- border-color: #5878e8;
|
|
|
|
- background-color: #f6f7fc;
|
|
|
|
- color: #5878e8;
|
|
|
|
-}
|
|
|
|
-.putstorage.el-button--default,
|
|
|
|
-.deliverystorage.el-button--default {
|
|
|
|
- border-color: #8890b1;
|
|
|
|
- background-color: #fff;
|
|
|
|
- color: #8890b1;
|
|
|
|
-}
|
|
|
|
|
|
+// .completed.el-button--default {
|
|
|
|
+// border-color: #5878e8;
|
|
|
|
+// background-color: #f6f7fc;
|
|
|
|
+// color: #5878e8;
|
|
|
|
+// }
|
|
|
|
+// .putstorage.el-button--default,
|
|
|
|
+// .deliverystorage.el-button--default {
|
|
|
|
+// border-color: #8890b1;
|
|
|
|
+// background-color: #fff;
|
|
|
|
+// color: #8890b1;
|
|
|
|
+// }
|
|
/deep/.el-table tr td:first-child,
|
|
/deep/.el-table tr td:first-child,
|
|
/deep/.el-table tr th.is-leaf:first-child {
|
|
/deep/.el-table tr th.is-leaf:first-child {
|
|
border-left: 1px solid #e9ecf7;
|
|
border-left: 1px solid #e9ecf7;
|
|
@@ -542,20 +568,62 @@ export default {
|
|
height: 12px;
|
|
height: 12px;
|
|
background: #e9ecf7;
|
|
background: #e9ecf7;
|
|
}
|
|
}
|
|
- /deep/.base_header_layout .grid-content {
|
|
|
|
- margin-bottom: 60px;
|
|
|
|
|
|
+/deep/.base_header_layout .grid-content {
|
|
|
|
+ margin-bottom: 60px;
|
|
}
|
|
}
|
|
-/deep/.el-table td, /deep/.el-table th.is-leaf {
|
|
|
|
- border-right: 1px solid transparent;
|
|
|
|
|
|
+/deep/.el-table td,
|
|
|
|
+/deep/.el-table th.is-leaf {
|
|
|
|
+ border-right: 1px solid transparent;
|
|
|
|
+ text-align: center;
|
|
}
|
|
}
|
|
.findValue.el-input {
|
|
.findValue.el-input {
|
|
width: 50%;
|
|
width: 50%;
|
|
- margin:0;
|
|
|
|
|
|
+ margin: 0;
|
|
|
|
+}
|
|
|
|
+.el-input {
|
|
|
|
+ margin: 0 10px;
|
|
|
|
+}
|
|
|
|
+/deep/.search .el-button--small {
|
|
|
|
+ padding: 0;
|
|
|
|
+}
|
|
|
|
+//操作按钮
|
|
|
|
+.record,
|
|
|
|
+.adjustment {
|
|
|
|
+ display: inline-block;
|
|
|
|
+ color: #5878e8;
|
|
|
|
+ padding: 0 4px !important;
|
|
|
|
+ position: relative;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+}
|
|
|
|
+.record:after {
|
|
|
|
+ position: absolute;
|
|
|
|
+ content: '';
|
|
|
|
+ display: block;
|
|
|
|
+ top: 5px;
|
|
|
|
+ right: -2px;
|
|
|
|
+ width: 1px;
|
|
|
|
+ height: 12px;
|
|
|
|
+ background: #e9ecf7;
|
|
|
|
+}
|
|
|
|
+//状态样式
|
|
|
|
+.executory,
|
|
|
|
+.inExecution,
|
|
|
|
+.done {
|
|
|
|
+ width: 6px;
|
|
|
|
+ height: 6px;
|
|
|
|
+ display: inline-block;
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ position: relative;
|
|
|
|
+ top: -1px;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+}
|
|
|
|
+.executory {
|
|
|
|
+ background: #ff9f24;
|
|
}
|
|
}
|
|
-.el-input{
|
|
|
|
- margin:0 10px;
|
|
|
|
|
|
+.inExecution {
|
|
|
|
+ background: #5878e8;
|
|
}
|
|
}
|
|
-/deep/.search .el-button--small{
|
|
|
|
- padding:0;
|
|
|
|
|
|
+.done {
|
|
|
|
+ background: #50cad4;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|