|
@@ -99,7 +99,52 @@
|
|
</ws-info-table>
|
|
</ws-info-table>
|
|
|
|
|
|
<div class="small-title" style="font-size: 16px">派车</div>
|
|
<div class="small-title" style="font-size: 16px">派车</div>
|
|
-
|
|
|
|
|
|
+ <div class="myTest">
|
|
|
|
+ <!--当前运输单价-->
|
|
|
|
+ <ws-form-item label="当前运输单价(元/吨):" span="1" prop="tranPrice">
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="deptBudgetList.tranPrice"
|
|
|
|
+ maxlength="70"
|
|
|
|
+ :disabled="readonly"
|
|
|
|
+ size="small"
|
|
|
|
+ style="width:70px"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--审核中的运输单价-->
|
|
|
|
+ <ws-form-item label="审核中的运输单价(元/吨):" span="1" prop="tranPriceIng">
|
|
|
|
+ <ws-input
|
|
|
|
+ v-if="deptBudgetList.priceStatus=='审核中'"
|
|
|
|
+ :disabled="readonly"
|
|
|
|
+ v-model="deptBudgetList.tranPriceIng"
|
|
|
|
+ maxlength="70"
|
|
|
|
+ size="small"
|
|
|
|
+ style="width:70px"
|
|
|
|
+ />
|
|
|
|
+ <ws-input
|
|
|
|
+ v-else
|
|
|
|
+ v-model="deptBudgetList.tranPriceIng"
|
|
|
|
+ maxlength="70"
|
|
|
|
+ size="small"
|
|
|
|
+ style="width:70px"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <ws-form-item>
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="deptBudgetList.priceStatus=='审核中'"
|
|
|
|
+ type="primary"
|
|
|
|
+ size="small"
|
|
|
|
+ @click="examine()"
|
|
|
|
+ >审核中</el-button
|
|
|
|
+ >
|
|
|
|
+ <el-button
|
|
|
|
+ v-else
|
|
|
|
+ type="primary"
|
|
|
|
+ size="small"
|
|
|
|
+ @click="priceSubmit()"
|
|
|
|
+ >提交</el-button
|
|
|
|
+ >
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ </div>
|
|
<div
|
|
<div
|
|
class="driver position liaison"
|
|
class="driver position liaison"
|
|
v-for="(item, index) in deptBudgetList.tranCarInfoList"
|
|
v-for="(item, index) in deptBudgetList.tranCarInfoList"
|
|
@@ -108,10 +153,13 @@
|
|
<ws-info-table>
|
|
<ws-info-table>
|
|
<div class="catNos">
|
|
<div class="catNos">
|
|
司机-{{ index + 1 }}
|
|
司机-{{ index + 1 }}
|
|
- <span class="noservice" v-show="item.status == '未送达'">{{
|
|
|
|
|
|
+ <span class="noservice" v-show="item.status == '未装车'">{{
|
|
|
|
+ item.status
|
|
|
|
+ }}</span>
|
|
|
|
+ <span class="service" v-show="item.status == '已装车'">{{
|
|
item.status
|
|
item.status
|
|
}}</span>
|
|
}}</span>
|
|
- <span class="service" v-show="item.status == '已送达'">{{
|
|
|
|
|
|
+ <span class="serviced" v-show="item.status == '已送达'">{{
|
|
item.status
|
|
item.status
|
|
}}</span>
|
|
}}</span>
|
|
</div>
|
|
</div>
|
|
@@ -191,6 +239,66 @@
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
+ <!--派车编号-->
|
|
|
|
+ <ws-form-item
|
|
|
|
+ label="派车编号:"
|
|
|
|
+ span="1"
|
|
|
|
+ prop="carModel"
|
|
|
|
+ class="siji"
|
|
|
|
+ style="width:245px"
|
|
|
|
+ >
|
|
|
|
+ <ws-input
|
|
|
|
+ :disabled="readonly"
|
|
|
|
+ v-model="item.tranCarNo"
|
|
|
|
+ maxlength="120"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--箱号-->
|
|
|
|
+ <ws-form-item
|
|
|
|
+ label="箱号:"
|
|
|
|
+ span="1"
|
|
|
|
+ prop="carModel"
|
|
|
|
+ class="siji"
|
|
|
|
+ >
|
|
|
|
+ <ws-input
|
|
|
|
+ v-if="item.status == '未装车'"
|
|
|
|
+ v-model="item.caseNo"
|
|
|
|
+ placeholder="请输入箱号"
|
|
|
|
+ maxlength="120"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ <ws-input
|
|
|
|
+ v-else
|
|
|
|
+ :disabled="readonly"
|
|
|
|
+ v-model="item.caseNo"
|
|
|
|
+ maxlength="120"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <!--封号-->
|
|
|
|
+ <ws-form-item
|
|
|
|
+ label="封号:"
|
|
|
|
+ span="1"
|
|
|
|
+ prop="carModel"
|
|
|
|
+ class="siji"
|
|
|
|
+ >
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="item.titleNo"
|
|
|
|
+ placeholder="请输入封号"
|
|
|
|
+ v-if="item.status == '未装车'"
|
|
|
|
+ maxlength="120"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="item.titleNo"
|
|
|
|
+ placeholder="请输入封号"
|
|
|
|
+ v-else
|
|
|
|
+ :disabled="readonly"
|
|
|
|
+ maxlength="120"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
<!--车型-->
|
|
<!--车型-->
|
|
<ws-form-item
|
|
<ws-form-item
|
|
label="车型:"
|
|
label="车型:"
|
|
@@ -236,13 +344,28 @@
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
+ <!--运输单价-->
|
|
|
|
+ <ws-form-item
|
|
|
|
+ label="运输单价(元/吨):"
|
|
|
|
+ span="1"
|
|
|
|
+ prop="carModel"
|
|
|
|
+ class="siji"
|
|
|
|
+ style="width:250px"
|
|
|
|
+ >
|
|
|
|
+ <ws-input
|
|
|
|
+ :disabled="readonly"
|
|
|
|
+ v-model="item.tranPrice"
|
|
|
|
+ maxlength="120"
|
|
|
|
+ size="small"
|
|
|
|
+ />
|
|
|
|
+ </ws-form-item>
|
|
</ws-info-table>
|
|
</ws-info-table>
|
|
<span
|
|
<span
|
|
- v-show="!item.temporaryDriverFlag"
|
|
|
|
|
|
+ v-if="item.status == '未装车'||item.temporaryDriverFlag!=0"
|
|
width="22"
|
|
width="22"
|
|
height="22"
|
|
height="22"
|
|
class="del"
|
|
class="del"
|
|
- @click="del(index)"
|
|
|
|
|
|
+ @click="del(index, item)"
|
|
src="../../../public/img/del.png"
|
|
src="../../../public/img/del.png"
|
|
alt=""
|
|
alt=""
|
|
>×</span
|
|
>×</span
|
|
@@ -282,6 +405,8 @@ import {
|
|
nameXiala,
|
|
nameXiala,
|
|
arrange,
|
|
arrange,
|
|
dispatchCat,
|
|
dispatchCat,
|
|
|
|
+ delhaulagestage,
|
|
|
|
+ setUpTranPrice
|
|
} from '@/model/transport/index'
|
|
} from '@/model/transport/index'
|
|
// import { dayjs, fmoney, EventBus } from 'base-core-lib'
|
|
// import { dayjs, fmoney, EventBus } from 'base-core-lib'
|
|
import { dayjs, EventBus } from 'base-core-lib'
|
|
import { dayjs, EventBus } from 'base-core-lib'
|
|
@@ -361,24 +486,110 @@ export default {
|
|
revert() {
|
|
revert() {
|
|
this.$router.go(-1)
|
|
this.$router.go(-1)
|
|
},
|
|
},
|
|
- del(index) {
|
|
|
|
- if (this.deptBudgetList.tranCarInfoList.length > 1) {
|
|
|
|
- this.deptBudgetList.tranCarInfoList.splice(index, 1)
|
|
|
|
- }
|
|
|
|
|
|
+ del(index, row) {
|
|
|
|
+ this.$confirm('派车信息删除后不可恢复,是否确定删除?', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ }).then(() => {
|
|
|
|
+ delhaulagestage({ id: row.id })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.$message.success('删除成功')
|
|
|
|
+ if (this.deptBudgetList.tranCarInfoList.length > 1) {
|
|
|
|
+ this.deptBudgetList.tranCarInfoList.splice(index, 1)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
},
|
|
},
|
|
add() {
|
|
add() {
|
|
- this.deptBudgetList.tranCarInfoList.push({
|
|
|
|
- driverName: '',
|
|
|
|
- driverPhone: '',
|
|
|
|
- carLength: 0,
|
|
|
|
- carLengthKey: '',
|
|
|
|
- loadWeight: null,
|
|
|
|
- carModel: '',
|
|
|
|
- carModelKey: '',
|
|
|
|
- carNumber: '',
|
|
|
|
- disabled: false,
|
|
|
|
- tranType: '1',
|
|
|
|
|
|
+ if(!this.deptBudgetList.tranPrice){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '请设置运输单价!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ else{
|
|
|
|
+ var tmp1='C00'
|
|
|
|
+ if(this.deptBudgetList.tranCarInfoList.length<10){
|
|
|
|
+ this.deptBudgetList.tranCarInfoList.push({
|
|
|
|
+ driverName: '',
|
|
|
|
+ driverPhone: '',
|
|
|
|
+ carLength: 0,
|
|
|
|
+ carLengthKey: '',
|
|
|
|
+ loadWeight: null,
|
|
|
|
+ carModel: '',
|
|
|
|
+ carModelKey: '',
|
|
|
|
+ carNumber: '',
|
|
|
|
+ disabled: false,
|
|
|
|
+ tranType: '1',
|
|
|
|
+ tranCarNo: tmp1+(this.deptBudgetList.tranCarInfoList.length+1),
|
|
|
|
+ tranPrice:this.deptBudgetList.tranPrice
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ else if(this.deptBudgetList.tranCarInfoList.length>=10){
|
|
|
|
+ tmp1='C0'
|
|
|
|
+ this.deptBudgetList.tranCarInfoList.push({
|
|
|
|
+ driverName: '',
|
|
|
|
+ driverPhone: '',
|
|
|
|
+ carLength: 0,
|
|
|
|
+ carLengthKey: '',
|
|
|
|
+ loadWeight: null,
|
|
|
|
+ carModel: '',
|
|
|
|
+ carModelKey: '',
|
|
|
|
+ carNumber: '',
|
|
|
|
+ disabled: false,
|
|
|
|
+ tranType: '1',
|
|
|
|
+ tranCarNo: tmp1+(this.deptBudgetList.tranCarInfoList.length+1),
|
|
|
|
+ tranPrice:this.deptBudgetList.tranPrice
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ //审核
|
|
|
|
+ examine(){
|
|
|
|
+ this.$prompt('运输单价审核', {
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ }).then(({ value }) => {
|
|
|
|
+ var tranProcessInfo = {}
|
|
|
|
+ tranProcessInfo.id = this.deptBudgetList.id
|
|
|
|
+ tranProcessInfo.flag = "2"
|
|
|
|
+ tranProcessInfo.tranPriceIng = value
|
|
|
|
+ setUpTranPrice(tranProcessInfo)
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.$message.success('审核成功')
|
|
|
|
+ this.getList()
|
|
|
|
+ });
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'info',
|
|
|
|
+ message: '取消审核'
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ priceSubmit(){
|
|
|
|
+ this.$confirm(`运输单价将发送给决策人审核,确定提交?`, {
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ type: 'warning',
|
|
})
|
|
})
|
|
|
|
+ .then(() => {
|
|
|
|
+ var tranProcessInfo = {}
|
|
|
|
+ tranProcessInfo.id = this.deptBudgetList.id
|
|
|
|
+ tranProcessInfo.flag = "1"
|
|
|
|
+ tranProcessInfo.tranPriceIng = this.deptBudgetList.tranPriceIng
|
|
|
|
+ setUpTranPrice(tranProcessInfo)
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.$message.success('提交成功')
|
|
|
|
+ this.getList()
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ return false
|
|
|
|
+ })
|
|
},
|
|
},
|
|
//提交按钮
|
|
//提交按钮
|
|
submit() {
|
|
submit() {
|
|
@@ -459,6 +670,7 @@ export default {
|
|
carNumber: '',
|
|
carNumber: '',
|
|
disabled: false,
|
|
disabled: false,
|
|
tranType: '1',
|
|
tranType: '1',
|
|
|
|
+ tranCarNo: tmp1+(this.deptBudgetList.tranCarInfoList.length+1),
|
|
},
|
|
},
|
|
]
|
|
]
|
|
}
|
|
}
|
|
@@ -537,6 +749,11 @@ export default {
|
|
.ws-info-table {
|
|
.ws-info-table {
|
|
border: none;
|
|
border: none;
|
|
}
|
|
}
|
|
|
|
+ .myTest{
|
|
|
|
+ width: 800px;
|
|
|
|
+ display: flex;
|
|
|
|
+ height: 40px;
|
|
|
|
+ }
|
|
.el-form-item {
|
|
.el-form-item {
|
|
width: 33.3333%;
|
|
width: 33.3333%;
|
|
border: none;
|
|
border: none;
|
|
@@ -701,6 +918,15 @@ export default {
|
|
background: #e5f1f7;
|
|
background: #e5f1f7;
|
|
color: #50cad4;
|
|
color: #50cad4;
|
|
}
|
|
}
|
|
|
|
+.serviced {
|
|
|
|
+ display: inline-block;
|
|
|
|
+ border-radius: 4px;
|
|
|
|
+ border: 1px solid #d8dce6;
|
|
|
|
+ padding: 2px;
|
|
|
|
+ font-size: 12px;
|
|
|
|
+ background: #e5f1f7;
|
|
|
|
+ color: #2c81cf;
|
|
|
|
+}
|
|
//添加司机
|
|
//添加司机
|
|
.add {
|
|
.add {
|
|
width: 100px;
|
|
width: 100px;
|