|
@@ -53,15 +53,14 @@
|
|
|
{{detailData.carrierInfo.unloadingDate?detailData.carrierInfo.unloadingDate:'选择卸车日期'}}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class='row-between'>
|
|
|
+ <!-- <view class='row-between'>
|
|
|
<view class="row-left-text">合计运费(元)</view>
|
|
|
<view style='position:relative;'>
|
|
|
<input :style="{color:this.detailData.freight!=detailData.totalFreight?'red':'#000'}" class="totalFreight-input" placeholder="输入合计运费" v-model="detailData.totalFreight"
|
|
|
type="number" />
|
|
|
<image @click='eliminate' class='close' v-if='detailData.totalFreight.length>0' src="../../static/images/order/guanbi.png" mode=""></image>
|
|
|
</view>
|
|
|
-
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
<view class='row-between'>
|
|
|
<view class="row-left-text">定位</view>
|
|
|
<view class="flex align-center">
|
|
@@ -388,13 +387,13 @@
|
|
|
} else {
|
|
|
this.alertContent = '确定提交卸车信息?'
|
|
|
}
|
|
|
- if(!this.detailData.totalFreight){
|
|
|
- this.$refs.uToast.show({
|
|
|
- type: 'error',
|
|
|
- message: "请输入合计运费!",
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
+ // if(!this.detailData.totalFreight){
|
|
|
+ // this.$refs.uToast.show({
|
|
|
+ // type: 'error',
|
|
|
+ // message: "请输入合计运费!",
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
this.isShowAlert = true
|
|
|
this.detailData.statusFlag = type
|
|
|
},
|
|
@@ -417,19 +416,20 @@
|
|
|
// });
|
|
|
// return
|
|
|
// }
|
|
|
- if (
|
|
|
- this.detailData.carrierInfo.totalFreight < 0 || this.detailData.carrierInfo.totalFreight > 100000 || (
|
|
|
- String(this.detailData.carrierInfo.totalFreight).indexOf('.') != -1 && String(this.detailData
|
|
|
- .carrierInfo.totalFreight).length - (String(this.detailData.carrierInfo.totalFreight).indexOf(
|
|
|
- '.') + 1) > 2)
|
|
|
- ) {
|
|
|
- uni.showToast({
|
|
|
- title: '运费输入错误!',
|
|
|
- duration: 2000,
|
|
|
- icon: "none",
|
|
|
- });
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (
|
|
|
+ // this.detailData.carrierInfo.totalFreight < 0 || this.detailData.carrierInfo.totalFreight > 100000 || (
|
|
|
+ // String(this.detailData.carrierInfo.totalFreight).indexOf('.') != -1 && String(this.detailData
|
|
|
+ // .carrierInfo.totalFreight).length - (String(this.detailData.carrierInfo.totalFreight).indexOf(
|
|
|
+ // '.') + 1) > 2)
|
|
|
+ // ) {
|
|
|
+ // uni.showToast({
|
|
|
+ // title: '运费输入错误!',
|
|
|
+ // duration: 2000,
|
|
|
+ // icon: "none",
|
|
|
+ // });
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+
|
|
|
if (!this.detailData.carrierInfo.unloadingImg) {
|
|
|
uni.showToast({
|
|
|
title: '卸车照片不能为空!',
|
|
@@ -458,7 +458,7 @@
|
|
|
if(this.detailData.carrierInfo.unloadingDate){//卸车时间 去当前时间的时分秒
|
|
|
this.detailData.carrierInfo.unloadingDate= this.detailData.carrierInfo.unloadingDate.split(" ")[0] + " " + h + ":" + f + ":" + m
|
|
|
}
|
|
|
- this.detailData.carrierInfo.totalFreight = this.detailData.totalFreight
|
|
|
+ // this.detailData.carrierInfo.totalFreight = this.detailData.totalFreight
|
|
|
this.detailData.carrierInfo.carNo = this.detailData.carNumber
|
|
|
this.$request.baseRequest('post', '/carrierInfo/unLoadingAdd', this.detailData.carrierInfo).then(res => {
|
|
|
if (res.code == 200) {
|