|
@@ -79,14 +79,34 @@
|
|
|
<ws-form-item label="运输方式" span="1" prop="contractNo">{{ deptBudgetList.contractNo }}</ws-form-item>
|
|
|
</ws-info-table>
|
|
|
|
|
|
- <div class="small-title" style="font-size: 16px">卸车详情</div>
|
|
|
-
|
|
|
+ <div class="small-title" style="font-size: 16px;width: 50%;float: left;">卸车详情</div>
|
|
|
+ <!-- 导入 -->
|
|
|
+ <div style="font-size: 16px;width: 50%; margin-left: 1150px;">
|
|
|
+ <el-button
|
|
|
+ class="bg-bottom"
|
|
|
+ type="primary"
|
|
|
+ size="small"
|
|
|
+ @click="import(deptBudgetList)"
|
|
|
+ >导入</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
<div
|
|
|
class="driver position liaison"
|
|
|
v-for="(item, index) in deptBudgetList.tranCarInfoList"
|
|
|
+ :key="index"
|
|
|
>
|
|
|
<ws-info-table>
|
|
|
- <div class="catNos" v-show="item.temporaryDriverFlag == 0">司机-{{index+1}}</div>
|
|
|
+ <div class="catNos" v-show="item.temporaryDriverFlag == 0">司机-{{index+1}}
|
|
|
+ <span class="noservice" v-show="item.status == '未装车'">{{
|
|
|
+ item.status
|
|
|
+ }}</span>
|
|
|
+ <span class="service" v-show="item.status == '已装车'">
|
|
|
+ 未卸车
|
|
|
+ </span>
|
|
|
+ <span class="serviced" v-show="item.status == '已送达'">
|
|
|
+ 已卸车
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
<div class="catNos catNosCor" v-show="item.temporaryDriverFlag != 0">司机-{{index+1}}(临)</div>
|
|
|
<!--姓名-->
|
|
|
<ws-form-item
|
|
@@ -136,6 +156,24 @@
|
|
|
size="small"
|
|
|
/>
|
|
|
</ws-form-item>
|
|
|
+ <!--卸车日期-->
|
|
|
+ <el-form-item label="卸车日期:" span="1" prop="receiveDateEnd" >
|
|
|
+ <ws-date-picker
|
|
|
+ v-model="item.receiveDateEnd"
|
|
|
+ v-if="item.status == '已送达'"
|
|
|
+ :disabled="readonly"
|
|
|
+ type="date"
|
|
|
+ style="width: 300px;"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ />
|
|
|
+ <ws-date-picker
|
|
|
+ v-model="item.receiveDateEnd"
|
|
|
+ v-else
|
|
|
+ type="date"
|
|
|
+ placeholder="请选择日期"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
<!--磅单-->
|
|
|
<ws-form-item label="磅单:" span="1" prop="unloadPoundImg">
|
|
|
<template >
|
|
@@ -185,13 +223,27 @@
|
|
|
</div>
|
|
|
</ws-info-table>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
<div
|
|
|
style="text-align: right; color: #8890b1; font-size: 16px"
|
|
|
- >合计{{ total }}/{{ deptBudgetList.weight }}</div>
|
|
|
+ >合计{{ total }}/{{ deptBudgetList.weight }}
|
|
|
+ <!--阶段状态-->
|
|
|
+ <span class="noservice" v-show="deptBudgetList.receivingStatus=='执行中'">
|
|
|
+ 未完货
|
|
|
+ </span>
|
|
|
+ <span class="service" v-show="deptBudgetList.receivingStatus=='已完货'">{{
|
|
|
+ deptBudgetList.receivingStatus
|
|
|
+ }}</span></div>
|
|
|
<div style="text-align: right; padding: 10px">
|
|
|
<el-button class="bg-bottom-up" type="primary" size="small" @click="submit()">提交</el-button>
|
|
|
+ <el-button
|
|
|
+ class="bg-bottom"
|
|
|
+ type="primary"
|
|
|
+ size="small"
|
|
|
+ @click="finished (deptBudgetList)"
|
|
|
+ >完货</el-button
|
|
|
+ >
|
|
|
</div>
|
|
|
- </div>
|
|
|
</ws-form>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -199,7 +251,7 @@
|
|
|
<script>
|
|
|
import Pagination from '@/components/Pagination'
|
|
|
import WsUpload from '@/components/WsUpload'
|
|
|
-import { seeCat, packList, feedback, getbank } from '@/model/transport/index'
|
|
|
+import { seeCat, packList, feedback, getbank,stateRec } from '@/model/transport/index'
|
|
|
// import { dayjs, fmoney, EventBus } from 'base-core-lib'
|
|
|
import { dayjs, EventBus } from 'base-core-lib'
|
|
|
export default {
|
|
@@ -362,7 +414,42 @@ export default {
|
|
|
return false
|
|
|
})
|
|
|
},
|
|
|
+ //导入
|
|
|
+ import(){
|
|
|
+
|
|
|
+ },
|
|
|
+ finished(){
|
|
|
+ this.$confirm(`完货操作后,卸车信息不可修改,是否确定完货?`, {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.$refs.deptBudgetList.validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ var tranProcessInfo = {}
|
|
|
+ tranProcessInfo.id = this.deptBudgetList.id
|
|
|
+ stateRec(tranProcessInfo)
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$message.success('完货成功')
|
|
|
+ this.deptBudgetList = {}
|
|
|
+ this.freightspace = {}
|
|
|
+ this.selectedOptions = ''
|
|
|
+ this.$router.push({
|
|
|
+ path: 'tranManagementTransporHairRespond',
|
|
|
+ })
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ return false
|
|
|
+ })
|
|
|
|
|
|
+ },
|
|
|
handleClose() {
|
|
|
this.accessoryTFs = false
|
|
|
},
|