|
@@ -105,7 +105,7 @@
|
|
<view class="left">发船日期</view>
|
|
<view class="left">发船日期</view>
|
|
<view>
|
|
<view>
|
|
<view @click='show1=true'>{{detailData.sendDateStart}}</view>
|
|
<view @click='show1=true'>{{detailData.sendDateStart}}</view>
|
|
- <u-picker v-model="show1" mode="time" @confirm='dateChange($event)' :params="params">
|
|
|
|
|
|
+ <u-picker :mask-close-able='false' v-model="show1" mode="time" @confirm='dateChange($event)' :params="params">
|
|
</u-picker>
|
|
</u-picker>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -144,7 +144,12 @@
|
|
<view style='margin-left:10px;'>装车详情</view>
|
|
<view style='margin-left:10px;'>装车详情</view>
|
|
<view v-for='(item,index) in freightspace' class="content">
|
|
<view v-for='(item,index) in freightspace' class="content">
|
|
<view class="row">
|
|
<view class="row">
|
|
- <view class="left">车厢号-{{index+1}}</view>
|
|
|
|
|
|
+ <view class="left">车厢-{{index+1}}</view>
|
|
|
|
+ <view v-if="item.status == '' ||item.status == null ||item.status == '未装车'">未装车</view>
|
|
|
|
+ <view v-if="item.status == '已装车' ||item.status == '已送达'">已装车</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row">
|
|
|
|
+ <view class="left">车厢号</view>
|
|
<view>{{item.boxNo}}</view>
|
|
<view>{{item.boxNo}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="row">
|
|
@@ -157,12 +162,16 @@
|
|
</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="row">
|
|
<view class="left">磅单</view>
|
|
<view class="left">磅单</view>
|
|
- <view v-if="item.status == '已装车' || item.status == '已送达'">
|
|
|
|
- <image v-if="item.loadPoundImg" @click='shadeshow(item.loadPoundImg)' style='width:100px;height:100px;' :src="item.loadPoundImg" mode=""></image>
|
|
|
|
- <view v-else>暂无图片</view>
|
|
|
|
|
|
+ <view v-if="item.status == '已装车' || item.status == '已送达'" v-for="(items,count) in item.imgUrl">
|
|
|
|
+ <view class="pound_list1">
|
|
|
|
+ <image v-if="items.url" @click='shadeshow(item.loadPoundImg)' style='width:100px;height:100px;margin: 0rpx;' :src="items.url" mode=""></image>
|
|
|
|
+ <view v-else>暂无图片</view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
- <view v-else>
|
|
|
|
- <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1" :file-list="imgUrl"
|
|
|
|
|
|
+ <view v-else class="pound_list">
|
|
|
|
+ <!-- <image v-if="item.loadPoundImg" @click='shadeshow(item.loadPoundImg)' style='width:100px;height:100px;' :src="item.loadPoundImg" mode=""></image> -->
|
|
|
|
+ <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="9" :file-list="item.imgUrl"
|
|
:size-type="['compressed']" :imgIndex='index' @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
|
|
:size-type="['compressed']" :imgIndex='index' @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress"></upload>
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress"></upload>
|
|
</view>
|
|
</view>
|
|
@@ -172,7 +181,7 @@
|
|
<view>
|
|
<view>
|
|
<view v-if="item.status == '已装车' || item.status == '已送达'">{{item.loadingDate}}</view>
|
|
<view v-if="item.status == '已装车' || item.status == '已送达'">{{item.loadingDate}}</view>
|
|
<view v-else @click='train(index)'>{{item.loadingDate?item.loadingDate:'请选择日期'}}</view>
|
|
<view v-else @click='train(index)'>{{item.loadingDate?item.loadingDate:'请选择日期'}}</view>
|
|
- <u-picker v-model="item.show2" mode="time" @cancel='datecancel()' @confirm='dateChange1($event,item)' :params="params">
|
|
|
|
|
|
+ <u-picker :mask-close-able='false' v-model="item.show2" mode="time" @cancel='datecancel()' @confirm='dateChange1($event,item)' :params="params">
|
|
</u-picker>
|
|
</u-picker>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -210,9 +219,9 @@
|
|
<view class="row">
|
|
<view class="row">
|
|
<view class="left">装车日期</view>
|
|
<view class="left">装车日期</view>
|
|
<view>
|
|
<view>
|
|
- <view v-if="item.status == '已装车' || item.status == '已送达'">{{item.loadingDate}}</view>
|
|
|
|
- <view v-else @click='train(index)'>{{item.loadingDate?item.loadingDate:'请选择日期'}}</view>
|
|
|
|
- <u-picker v-model="item.show2" mode="time" @cancel='datecancel()' @confirm='dateChange1($event,index)' :params="params">
|
|
|
|
|
|
+ <view v-if="item.status == '已装车' || item.status == '已送达'">{{item.sendDateStart}}</view>
|
|
|
|
+ <view v-else @click='train(index)'>{{item.sendDateStart?item.sendDateStart:'请选择日期'}}</view>
|
|
|
|
+ <u-picker :mask-close-able='false' v-model="item.show2" mode="time" @cancel='datecancel()' @confirm='dateChange2($event,index)' :params="params">
|
|
</u-picker>
|
|
</u-picker>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -221,8 +230,8 @@
|
|
<view v-if="item.loadPoundImg">
|
|
<view v-if="item.loadPoundImg">
|
|
<image style='width:100px;height:100px;' @click='shadeshow(item.loadPoundImg)' :src="item.loadPoundImg" mode=""></image>
|
|
<image style='width:100px;height:100px;' @click='shadeshow(item.loadPoundImg)' :src="item.loadPoundImg" mode=""></image>
|
|
</view>
|
|
</view>
|
|
- <view v-else>
|
|
|
|
- <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1" :file-list="imgUrl"
|
|
|
|
|
|
+ <view v-else class="pound_list">
|
|
|
|
+ <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="9" :file-list="item.imgUrl"
|
|
:size-type="['compressed']" :imgIndex='index' @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
|
|
:size-type="['compressed']" :imgIndex='index' @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress"></upload>
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress"></upload>
|
|
</view>
|
|
</view>
|
|
@@ -246,14 +255,14 @@
|
|
<view v-if="item.shipType == '集装箱'" class="row">
|
|
<view v-if="item.shipType == '集装箱'" class="row">
|
|
<view class="left">集装箱-{{index+1}}</view>
|
|
<view class="left">集装箱-{{index+1}}</view>
|
|
<view v-if="item.status == '未装车'">未装船</view>
|
|
<view v-if="item.status == '未装车'">未装船</view>
|
|
- <view v-if="item.status == '已装车'">已装船</view>
|
|
|
|
- <view v-if="item.status == '已送达'">{{item.status}}</view>
|
|
|
|
|
|
+ <view v-if="item.status == '已装车'">未卸船</view>
|
|
|
|
+ <view v-if="item.status == '已送达'">已卸船</view>
|
|
</view>
|
|
</view>
|
|
<view v-if="item.shipType == '散船'" class="row">
|
|
<view v-if="item.shipType == '散船'" class="row">
|
|
<view class="left">仓位号-{{index+1}}</view>
|
|
<view class="left">仓位号-{{index+1}}</view>
|
|
<view v-if="item.status == '未装车'">未装船</view>
|
|
<view v-if="item.status == '未装车'">未装船</view>
|
|
- <view v-if="item.status == '已装车'">已装船</view>
|
|
|
|
- <view v-if="item.status == '已送达'">{{item.status}}</view>
|
|
|
|
|
|
+ <view v-if="item.status == '已装车'">未卸船</view>
|
|
|
|
+ <view v-if="item.status == '已送达'">已卸船</view>
|
|
</view>
|
|
</view>
|
|
<view v-if="item.shipType == '集装箱'" class="row">
|
|
<view v-if="item.shipType == '集装箱'" class="row">
|
|
<view class="left">箱号</view>
|
|
<view class="left">箱号</view>
|
|
@@ -294,20 +303,21 @@
|
|
<view>
|
|
<view>
|
|
<view v-if="item.status == '已装车' || item.status == '已送达'">{{item.loadingDate}}</view>
|
|
<view v-if="item.status == '已装车' || item.status == '已送达'">{{item.loadingDate}}</view>
|
|
<view v-else @click='train(index)'>{{item.loadingDate?item.loadingDate:'请选择日期'}}</view>
|
|
<view v-else @click='train(index)'>{{item.loadingDate?item.loadingDate:'请选择日期'}}</view>
|
|
- <u-picker v-model="item.show2" mode="time" @cancel='datecancel()' @confirm='dateChange1($event,index)' :params="params">
|
|
|
|
|
|
+ <u-picker :mask-close-able='false' v-model="item.show2" mode="time" @cancel='datecancel()' @confirm='dateChange1($event,index)' :params="params">
|
|
</u-picker>
|
|
</u-picker>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view style='text-align:right;' v-if="item.status == '已装车' || item.status == '已送达'">{{item.status}}</view>
|
|
|
|
- <u-button v-else @click='submit(index,3)' type="success">保存</u-button>
|
|
|
|
|
|
+ <!-- <view style='text-align:right;' v-if="item.status == '已装车'">未装船</view>
|
|
|
|
+ <view style='text-align:right;' v-else-if="item.status == '已送达'">已装船</view> -->
|
|
|
|
+ <u-button v-if="item.status == '未装车'" @click='submit(index,3)' type="success">保存</u-button>
|
|
</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="row">
|
|
<view style='margin-left:10px;' class="left">运单</view>
|
|
<view style='margin-left:10px;' class="left">运单</view>
|
|
<view v-if="pictureTotal.length>0">
|
|
<view v-if="pictureTotal.length>0">
|
|
- <image v-for='item in pictureTotal' @click='shadeshow(item)' style='width:100px;height:100px;' :src="item" mode=""></image>
|
|
|
|
|
|
+ <image v-for='item in pictureTotal' @click='shadeshow(item)' style='width:100px;height:100px;margin:5px;' :src="item" mode=""></image>
|
|
</view>
|
|
</view>
|
|
- <view v-else>
|
|
|
|
- <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1" :file-list="imgUrl"
|
|
|
|
|
|
+ <view >
|
|
|
|
+ <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="9" :file-list="imgUrl"
|
|
:size-type="['compressed']" @on-success="getImgUrl1" @on-error="onError" @on-remove="onRemove"
|
|
:size-type="['compressed']" @on-success="getImgUrl1" @on-error="onError" @on-remove="onRemove"
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress"></upload>
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress"></upload>
|
|
</view>
|
|
</view>
|
|
@@ -365,7 +375,12 @@
|
|
imgUrl:[],
|
|
imgUrl:[],
|
|
unloadPoundImg:'',
|
|
unloadPoundImg:'',
|
|
action: this.$uploadUrl,
|
|
action: this.$uploadUrl,
|
|
- freightspace:[],
|
|
|
|
|
|
+ freightspace:[
|
|
|
|
+ {
|
|
|
|
+ imgUrl:[],
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ ],
|
|
feedbackFlag:1,
|
|
feedbackFlag:1,
|
|
detailData:{},
|
|
detailData:{},
|
|
allWarehouse: [],
|
|
allWarehouse: [],
|
|
@@ -403,6 +418,14 @@
|
|
this.freightspace[this.index].show2=true
|
|
this.freightspace[this.index].show2=true
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
},
|
|
},
|
|
|
|
+ getImgUrl1(res1,res2,res3,res4){
|
|
|
|
+ console.log(res1,res2,res3,res4)
|
|
|
|
+ if (this.freightspace[0].loadPoundImg) {
|
|
|
|
+ this.freightspace[0].loadPoundImg += ',' + res1
|
|
|
|
+ } else {
|
|
|
|
+ this.freightspace[0].loadPoundImg = res1
|
|
|
|
+ }
|
|
|
|
+ },
|
|
submit(index,status){
|
|
submit(index,status){
|
|
var that = this
|
|
var that = this
|
|
if(this.detailData.tranType=='火运'){
|
|
if(this.detailData.tranType=='火运'){
|
|
@@ -535,7 +558,7 @@
|
|
tranProcessInfo.caseNo = that.freightspace[index].caseNo
|
|
tranProcessInfo.caseNo = that.freightspace[index].caseNo
|
|
tranProcessInfo.titleNo = that.freightspace[index].titleNo
|
|
tranProcessInfo.titleNo = that.freightspace[index].titleNo
|
|
tranProcessInfo.loadNetWeight = that.freightspace[index].loadNetWeight
|
|
tranProcessInfo.loadNetWeight = that.freightspace[index].loadNetWeight
|
|
- tranProcessInfo.loadingDate = that.freightspace[index].loadingDate
|
|
|
|
|
|
+ tranProcessInfo.sendDateStart = that.freightspace[index].sendDateStart
|
|
tranProcessInfo.loadPoundImg = that.freightspace[index].loadPoundImg
|
|
tranProcessInfo.loadPoundImg = that.freightspace[index].loadPoundImg
|
|
tranProcessInfo.tranType = status
|
|
tranProcessInfo.tranType = status
|
|
tranProcessInfo.contractNo = that.detailData.contractNo
|
|
tranProcessInfo.contractNo = that.detailData.contractNo
|
|
@@ -556,6 +579,7 @@
|
|
content: "完货操作后,装车信息不可修改,是否确定完货?",
|
|
content: "完货操作后,装车信息不可修改,是否确定完货?",
|
|
success(res) {
|
|
success(res) {
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
|
+ uni.showLoading({title: '加载中'});
|
|
that.tranCarInfoList = that.freightspace
|
|
that.tranCarInfoList = that.freightspace
|
|
that.tranCarInfoList.driver = that.detailData.driver
|
|
that.tranCarInfoList.driver = that.detailData.driver
|
|
that.tranCarInfoList.driverPhone = that.detailData.driverPhone
|
|
that.tranCarInfoList.driverPhone = that.detailData.driverPhone
|
|
@@ -581,10 +605,13 @@
|
|
tranProcessInfo.tranCarInfoList = that.tranCarInfoList
|
|
tranProcessInfo.tranCarInfoList = that.tranCarInfoList
|
|
that.$api.doRequest('post', '/tranProcessInfo/api/editFeedbackStatus', tranProcessInfo).then(res => {
|
|
that.$api.doRequest('post', '/tranProcessInfo/api/editFeedbackStatus', tranProcessInfo).then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
- that.$api.msg('提交成功')
|
|
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ that.$api.msg('完货成功')
|
|
that.detailData = {}
|
|
that.detailData = {}
|
|
that.freightspace = {}
|
|
that.freightspace = {}
|
|
- uni.navigateBack({})
|
|
|
|
|
|
+ setTimeout(function() {
|
|
|
|
+ uni.navigateBack({})
|
|
|
|
+ }, 1000);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -595,14 +622,18 @@
|
|
content: "完货操作后,装船信息不可修改,是否确定完货?",
|
|
content: "完货操作后,装船信息不可修改,是否确定完货?",
|
|
success(res) {
|
|
success(res) {
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
|
+ uni.showLoading({title: '加载中'});
|
|
var tranProcessInfo = {}
|
|
var tranProcessInfo = {}
|
|
tranProcessInfo.id = that.detailData.id
|
|
tranProcessInfo.id = that.detailData.id
|
|
that.$api.doRequest('post', '/tranProcessInfo/api/editFeedbackStatus', tranProcessInfo).then(res => {
|
|
that.$api.doRequest('post', '/tranProcessInfo/api/editFeedbackStatus', tranProcessInfo).then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
- that.$api.msg('提交成功')
|
|
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ that.$api.msg('完货成功')
|
|
that.detailData = {}
|
|
that.detailData = {}
|
|
that.freightspace = {}
|
|
that.freightspace = {}
|
|
- uni.navigateBack({})
|
|
|
|
|
|
+ setTimeout(function() {
|
|
|
|
+ uni.navigateBack({})
|
|
|
|
+ }, 1000);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -613,14 +644,19 @@
|
|
content: "完货操作后,装车信息不可修改,是否确定完货?",
|
|
content: "完货操作后,装车信息不可修改,是否确定完货?",
|
|
success(res) {
|
|
success(res) {
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
|
+ uni.showLoading({title: '加载中'});
|
|
var tranProcessInfo = {}
|
|
var tranProcessInfo = {}
|
|
tranProcessInfo.id = that.detailData.id
|
|
tranProcessInfo.id = that.detailData.id
|
|
that.$api.doRequest('post', '/tranProcessInfo/api/editFeedbackStatus', tranProcessInfo).then(res => {
|
|
that.$api.doRequest('post', '/tranProcessInfo/api/editFeedbackStatus', tranProcessInfo).then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
- that.$api.msg('提交成功')
|
|
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ that.$api.msg('完货成功')
|
|
that.detailData = {}
|
|
that.detailData = {}
|
|
that.freightspace = {}
|
|
that.freightspace = {}
|
|
uni.navigateBack({})
|
|
uni.navigateBack({})
|
|
|
|
+ setTimeout(function() {
|
|
|
|
+ uni.navigateBack({})
|
|
|
|
+ }, 1000);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -629,6 +665,7 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
pass(){
|
|
pass(){
|
|
|
|
+
|
|
var that = this
|
|
var that = this
|
|
if(this.detailData.tranType=='火运'){
|
|
if(this.detailData.tranType=='火运'){
|
|
for(var i=0;i<this.freightspace.length;i++){
|
|
for(var i=0;i<this.freightspace.length;i++){
|
|
@@ -652,6 +689,7 @@
|
|
content: "提交成功后提醒司机及时签订运输合同,确定提交装车信息?",
|
|
content: "提交成功后提醒司机及时签订运输合同,确定提交装车信息?",
|
|
success(res) {
|
|
success(res) {
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
|
+ uni.showLoading({title: '加载中'});
|
|
that.tranCarInfoList = that.freightspace
|
|
that.tranCarInfoList = that.freightspace
|
|
that.tranCarInfoList.driver = that.detailData.driver
|
|
that.tranCarInfoList.driver = that.detailData.driver
|
|
that.tranCarInfoList.driverPhone = that.detailData.driverPhone
|
|
that.tranCarInfoList.driverPhone = that.detailData.driverPhone
|
|
@@ -677,12 +715,13 @@
|
|
tranProcessInfo.tranCarInfoList = that.tranCarInfoList
|
|
tranProcessInfo.tranCarInfoList = that.tranCarInfoList
|
|
that.$api.doRequest('post', '/tranProcessInfo/api/insertTranCar', tranProcessInfo).then(res => {
|
|
that.$api.doRequest('post', '/tranProcessInfo/api/insertTranCar', tranProcessInfo).then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
|
|
+ uni.hideLoading()
|
|
that.$api.msg('提交成功')
|
|
that.$api.msg('提交成功')
|
|
that.detailData = {}
|
|
that.detailData = {}
|
|
that.freightspace = {}
|
|
that.freightspace = {}
|
|
- uni.navigateBack({
|
|
|
|
-
|
|
|
|
- })
|
|
|
|
|
|
+ setTimeout(function() {
|
|
|
|
+ uni.navigateBack({})
|
|
|
|
+ }, 1000);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -699,6 +738,7 @@
|
|
content: "提交成功后装船信息不可修改,是否确定提交?",
|
|
content: "提交成功后装船信息不可修改,是否确定提交?",
|
|
success(res) {
|
|
success(res) {
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
|
+ uni.showLoading({title: '加载中'});
|
|
that.tranCarInfoList = that.freightspace
|
|
that.tranCarInfoList = that.freightspace
|
|
that.tranCarInfoList[0].sendDateStart = that.detailData.sendDateStart
|
|
that.tranCarInfoList[0].sendDateStart = that.detailData.sendDateStart
|
|
for (var i = 0; i < that.tranCarInfoList.length; i++) {
|
|
for (var i = 0; i < that.tranCarInfoList.length; i++) {
|
|
@@ -711,12 +751,16 @@
|
|
tranProcessInfo.tranCarInfoList = that.tranCarInfoList
|
|
tranProcessInfo.tranCarInfoList = that.tranCarInfoList
|
|
that.$api.doRequest('post', '/tranProcessInfo/api/insertTranCar', tranProcessInfo).then(res => {
|
|
that.$api.doRequest('post', '/tranProcessInfo/api/insertTranCar', tranProcessInfo).then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
|
|
+ uni.hideLoading()
|
|
that.$api.msg('提交成功')
|
|
that.$api.msg('提交成功')
|
|
that.detailData = {}
|
|
that.detailData = {}
|
|
that.freightspace = {}
|
|
that.freightspace = {}
|
|
- uni.navigateBack({
|
|
|
|
-
|
|
|
|
- })
|
|
|
|
|
|
+ setTimeout(function() {
|
|
|
|
+ uni.navigateBack({})
|
|
|
|
+ }, 1000);
|
|
|
|
+ }else{
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ that.$api.msg('系统异常,请联系管理员')
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -727,6 +771,7 @@
|
|
content: "提交成功后提醒司机及时签订运输合同,确定提交装车信息?",
|
|
content: "提交成功后提醒司机及时签订运输合同,确定提交装车信息?",
|
|
success(res) {
|
|
success(res) {
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
|
+ uni.showLoading({title: '加载中'});
|
|
that.tranCarInfoList = that.freightspace
|
|
that.tranCarInfoList = that.freightspace
|
|
that.tranCarInfoList.driver = that.detailData.driver
|
|
that.tranCarInfoList.driver = that.detailData.driver
|
|
that.tranCarInfoList.driverPhone = that.detailData.driverPhone
|
|
that.tranCarInfoList.driverPhone = that.detailData.driverPhone
|
|
@@ -751,12 +796,16 @@
|
|
tranProcessInfo.tranCarInfoList = that.tranCarInfoList
|
|
tranProcessInfo.tranCarInfoList = that.tranCarInfoList
|
|
that.$api.doRequest('post', '/tranProcessInfo/api/insertTranCar', tranProcessInfo).then(res => {
|
|
that.$api.doRequest('post', '/tranProcessInfo/api/insertTranCar', tranProcessInfo).then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
|
|
+ uni.hideLoading()
|
|
that.$api.msg('提交成功')
|
|
that.$api.msg('提交成功')
|
|
that.detailData = {}
|
|
that.detailData = {}
|
|
that.freightspace = {}
|
|
that.freightspace = {}
|
|
- uni.navigateBack({
|
|
|
|
-
|
|
|
|
- })
|
|
|
|
|
|
+ setTimeout(function() {
|
|
|
|
+ uni.navigateBack({})
|
|
|
|
+ }, 1000);
|
|
|
|
+ }else{
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ that.$api.msg('系统异常,请联系管理员')
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -775,15 +824,21 @@
|
|
if(res.data.data.tranCarInfoList[0].driver){
|
|
if(res.data.data.tranCarInfoList[0].driver){
|
|
this.detailData.driver = res.data.data.tranCarInfoList[0].driver
|
|
this.detailData.driver = res.data.data.tranCarInfoList[0].driver
|
|
}
|
|
}
|
|
- for (var i = 0; i < res.data.data.tranCarInfoList.length; i++) {
|
|
|
|
- res.data.data.tranCarInfoList[i].show2=false
|
|
|
|
- }
|
|
|
|
this.detailData.driverPhone =res.data.data.tranCarInfoList[0].driverPhone
|
|
this.detailData.driverPhone =res.data.data.tranCarInfoList[0].driverPhone
|
|
this.$set(this.detailData,'sendDateStart',res.data.data.tranCarInfoList[0].sendDateStart)
|
|
this.$set(this.detailData,'sendDateStart',res.data.data.tranCarInfoList[0].sendDateStart)
|
|
this.detailData.receiveDateEnd =
|
|
this.detailData.receiveDateEnd =
|
|
res.data.data.tranCarInfoList[0].receiveDateEnd
|
|
res.data.data.tranCarInfoList[0].receiveDateEnd
|
|
this.detailData.carModel = res.data.data.tranCarInfoList[0].carModel
|
|
this.detailData.carModel = res.data.data.tranCarInfoList[0].carModel
|
|
this.freightspace=res.data.data.tranCarInfoList
|
|
this.freightspace=res.data.data.tranCarInfoList
|
|
|
|
+ for (var i = 0; i < res.data.data.tranCarInfoList.length; i++) {
|
|
|
|
+ this.imgUrl = []
|
|
|
|
+ res.data.data.tranCarInfoList[i].show2=false
|
|
|
|
+ let imgs = res.data.data.tranCarInfoList[i].loadPoundImg.split(",")
|
|
|
|
+ for(let j = 0 ; j < imgs.length ; j++){
|
|
|
|
+ this.imgUrl.push({url:imgs[j]})
|
|
|
|
+ }
|
|
|
|
+ this.freightspace[i].imgUrl = this.imgUrl
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}else if(res.data.data.tranType=='汽运'){
|
|
}else if(res.data.data.tranType=='汽运'){
|
|
for (var i = 0; i < res.data.data.tranCarInfoList.length; i++) {
|
|
for (var i = 0; i < res.data.data.tranCarInfoList.length; i++) {
|
|
@@ -860,6 +915,9 @@
|
|
dateChange1(e){
|
|
dateChange1(e){
|
|
this.$set(this.freightspace[this.index],'loadingDate',e.year + "-" + e.month + "-" + e.day)
|
|
this.$set(this.freightspace[this.index],'loadingDate',e.year + "-" + e.month + "-" + e.day)
|
|
},
|
|
},
|
|
|
|
+ dateChange2(e){
|
|
|
|
+ this.$set(this.freightspace[this.index],'sendDateStart',e.year + "-" + e.month + "-" + e.day)
|
|
|
|
+ },
|
|
statuschange(e) {
|
|
statuschange(e) {
|
|
this.status = this.statusList[e[0]].name
|
|
this.status = this.statusList[e[0]].name
|
|
this.getList()
|
|
this.getList()
|
|
@@ -996,4 +1054,10 @@
|
|
width:100%;height:100%;
|
|
width:100%;height:100%;
|
|
z-index:10000;
|
|
z-index:10000;
|
|
}
|
|
}
|
|
|
|
+ .pound_list{
|
|
|
|
+ width: 452rpx;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: flex-end;
|
|
|
|
+ text-align: right;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|