|
@@ -1,45 +1,34 @@
|
|
|
<!--运输任务-->
|
|
|
<template>
|
|
|
<div>
|
|
|
- <BaseHeaderLayout :leftSpan="20">
|
|
|
- <template slot="right">
|
|
|
- <ws-button class="but" type="primary" @click="handleAdd()"
|
|
|
- >添加</ws-button
|
|
|
- >
|
|
|
- </template>
|
|
|
+ <BaseHeaderLayout :leftSpan="15">
|
|
|
<template slot="left">
|
|
|
- <ws-button class="but" type="primary" @click="handlestatus(1)">
|
|
|
- 执行中</ws-button
|
|
|
- >
|
|
|
- <ws-button class="but" @click="handlestatus(2)">已完成</ws-button>
|
|
|
- <ws-button class="but" @click="handlestatus('')">全部任务</ws-button>
|
|
|
- </template>
|
|
|
- <template slot="left">
|
|
|
- <ws-input
|
|
|
+ <span style='width: 134px;
|
|
|
+ display: inline-block;'>起点:</span>
|
|
|
+ <el-input
|
|
|
label="起点"
|
|
|
placeholder="请输入起点"
|
|
|
clearable
|
|
|
maxlength="200"
|
|
|
type="input"
|
|
|
- class="find"
|
|
|
- ></ws-input>
|
|
|
-
|
|
|
- <ws-input
|
|
|
+ ></el-input>
|
|
|
+ <span style='width: 134px;
|
|
|
+ display: inline-block;'>终点:</span>
|
|
|
+ <el-input
|
|
|
label="终点"
|
|
|
placeholder="请输入终点"
|
|
|
clearable
|
|
|
maxlength="200"
|
|
|
type="input"
|
|
|
- class="find"
|
|
|
- ></ws-input>
|
|
|
- <ws-input
|
|
|
+ ></el-input>
|
|
|
+ <el-input
|
|
|
v-model="warehouseName"
|
|
|
placeholder="可按合同编号或运输任务编号查找"
|
|
|
clearable
|
|
|
maxlength="500"
|
|
|
type="input"
|
|
|
class="findValue"
|
|
|
- ></ws-input>
|
|
|
+ ></el-input>
|
|
|
<!-- v-hasPermission="'procurement.sparepart.directShip'" -->
|
|
|
<div class="search">
|
|
|
<ws-button class="find" type="primary" @click="lookUp()"
|
|
@@ -57,21 +46,31 @@
|
|
|
/></ws-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
+ <template slot="right">
|
|
|
+ <ws-button class="but" type="primary" @click="handleAdd()"
|
|
|
+ >添加</ws-button
|
|
|
+ >
|
|
|
+ </template>
|
|
|
</BaseHeaderLayout>
|
|
|
<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>
|
|
|
<el-table
|
|
|
class="wenzi"
|
|
|
:data="gainList.records"
|
|
|
style="width: 100%; margin-top: 20px"
|
|
|
height="780"
|
|
|
>
|
|
|
- <el-table-column type="index" label="序号">
|
|
|
+ <el-table-column type="index">
|
|
|
<template scope="scope">
|
|
|
<span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
|
|
|
<span v-else>{{ scope.$index + 1 }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="taskNo" label="运输任务编号" width="80">
|
|
|
+ <el-table-column prop="taskNo" label="运输任务编号" width="140">
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="contractNo" label="合同编号"> </el-table-column>
|
|
|
<el-table-column prop=" weight" class="table_td" label="货物(吨数)">
|
|
@@ -203,6 +202,7 @@ export default {
|
|
|
year: '',
|
|
|
gainList: [],
|
|
|
currentPage: 1,
|
|
|
+ primary:1,
|
|
|
pageSize: 10,
|
|
|
searchType: 1,
|
|
|
searchTypeText: '未完成',
|
|
@@ -274,6 +274,14 @@ export default {
|
|
|
},
|
|
|
handlestatus(status) {
|
|
|
this.searchType = status
|
|
|
+ if(status==1){
|
|
|
+ this.primary=1
|
|
|
+ }else if(status==2){
|
|
|
+ this.primary=2
|
|
|
+ }else{
|
|
|
+ this.primary=3
|
|
|
+ }
|
|
|
+
|
|
|
this.getList()
|
|
|
},
|
|
|
//编辑
|
|
@@ -512,11 +520,6 @@ export default {
|
|
|
background-color: #fff;
|
|
|
color: #8890b1;
|
|
|
}
|
|
|
-/deep/.el-table td,
|
|
|
-/deep/.el-table th.is-leaf {
|
|
|
- border-right: 1px solid #e9ecf7;
|
|
|
- text-align: center;
|
|
|
-}
|
|
|
/deep/.el-table tr td:first-child,
|
|
|
/deep/.el-table tr th.is-leaf:first-child {
|
|
|
border-left: 1px solid #e9ecf7;
|
|
@@ -538,24 +541,20 @@ export default {
|
|
|
height: 12px;
|
|
|
background: #e9ecf7;
|
|
|
}
|
|
|
-.el-row {
|
|
|
- height: 150px;
|
|
|
-}
|
|
|
-.base_header_layout .grid-content {
|
|
|
- margin-top: 80px;
|
|
|
+ /deep/.base_header_layout .grid-content {
|
|
|
+ margin-bottom: 60px;
|
|
|
}
|
|
|
-.but {
|
|
|
- margin-top: 150px;
|
|
|
+/deep/.el-table td, /deep/.el-table th.is-leaf {
|
|
|
+ border-right: 1px solid transparent;
|
|
|
}
|
|
|
-.findValue {
|
|
|
+.findValue.el-input {
|
|
|
width: 50%;
|
|
|
- margin-left: 25%;
|
|
|
+ margin:0;
|
|
|
}
|
|
|
-/deep/.el-input--small .el-input__inner {
|
|
|
- margin-left: -230px;
|
|
|
- width: 300px;
|
|
|
+.el-input{
|
|
|
+ margin:0 10px;
|
|
|
}
|
|
|
-.search {
|
|
|
- margin-left: -100px;
|
|
|
+/deep/.search .el-button--small{
|
|
|
+ padding:0;
|
|
|
}
|
|
|
</style>
|