|
@@ -30,7 +30,7 @@
|
|
|
</image>
|
|
|
</view>
|
|
|
<view class="add_css">
|
|
|
- <view @click='add(1)' class="add">添加</view>
|
|
|
+ <view @click='add(1)' class="add" v-if="status == '执行中'">添加</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="content" v-for="(v_item,index1) in sendCar">
|
|
@@ -85,7 +85,7 @@
|
|
|
<view class="c-row">
|
|
|
<view class="title">装车日期</view>
|
|
|
<view @click='show=true' class="con-list">{{v_item.loadingDate?v_item.loadingDate:"请选择装车日期"}}</view>
|
|
|
- <u-picker v-model="show" mode="time" @confirm='dateChange($event,index1)' :params="params">
|
|
|
+ <u-picker v-model="show" mode="time" class="con-list" @confirm='dateChange($event,index1)' :params="params">
|
|
|
</u-picker>
|
|
|
</view>
|
|
|
<view class="flex">
|
|
@@ -158,7 +158,7 @@
|
|
|
@click="trainCar"></image>
|
|
|
</view>
|
|
|
<view class="add_css">
|
|
|
- <view @click='add(2)' class="add">添加</view>
|
|
|
+ <view @click='add(2)' class="add" v-if="status == '执行中'">添加</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="content" v-for="(item_add1,index) in huoYun">
|
|
@@ -247,7 +247,7 @@
|
|
|
</image>
|
|
|
</view>
|
|
|
<view class="add_css">
|
|
|
- <view @click='add(3)' class="add">添加</view>
|
|
|
+ <view @click='add(3)' class="add" v-if="status == '执行中'">添加</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="content" v-for="(item_add3,index) in looseShip">
|
|
@@ -316,15 +316,13 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 以上散船反馈 -->
|
|
|
-
|
|
|
-
|
|
|
<!-- 集装箱船反馈 -->
|
|
|
<view class="flex title_css">
|
|
|
<view class="head_css">集装箱船反馈({{containerList ? containerList : 0}})<image :src="containerUrl" class="open_css"
|
|
|
@click="containerchange"></image>
|
|
|
</view>
|
|
|
<view class="add_css">
|
|
|
- <view @click='add(4)' class="add">添加</view>
|
|
|
+ <view @click='add(4)' class="add" v-if="status == '执行中'">添加</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="content" v-for="(item_add4,index) in container">
|
|
@@ -395,7 +393,7 @@
|
|
|
</view>
|
|
|
<view style='padding:10px;' class='flex bottom-btn'>
|
|
|
<!-- <u-button @click='pass' type="error" class="btn1" hover-class='none'>提交</u-button> -->
|
|
|
- <u-button @click='finishedgoods' type="success" class="btn2">完货</u-button>
|
|
|
+ <u-button @click='finishedgoods' type="success" class="btn2" :disabled="status != '执行中'">完货</u-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -410,6 +408,7 @@
|
|
|
data() {
|
|
|
return {
|
|
|
id: '',
|
|
|
+ status:"",
|
|
|
currentPage: 1,
|
|
|
pageSize: 10,
|
|
|
maxSize: 50 * 1024 * 1024,
|
|
@@ -448,24 +447,16 @@
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
this.id = options.id
|
|
|
+ this.status = options.status
|
|
|
},
|
|
|
onShow() {
|
|
|
this.getList()
|
|
|
},
|
|
|
- computed: {
|
|
|
- total: function() {
|
|
|
- var maxStorage = 0
|
|
|
- if (this.detailData.tranCarInfoList) {
|
|
|
- // for (var i = 0; i < this.detailData.tranCarInfoList.length; i++) {
|
|
|
- // maxStorage += Number(
|
|
|
- // this.detailData.tranCarInfoList[i].loadNetWeight
|
|
|
- // )
|
|
|
- // }
|
|
|
- }
|
|
|
- return maxStorage
|
|
|
- },
|
|
|
- },
|
|
|
+ computed: {},
|
|
|
methods: {
|
|
|
+ qiehuan(){
|
|
|
+ this.show = !this.show
|
|
|
+ },
|
|
|
//汽运展开显示
|
|
|
openCar() {
|
|
|
this.carShow = !this.carShow
|
|
@@ -596,14 +587,14 @@
|
|
|
if (res.confirm) {
|
|
|
if (num == 1) {
|
|
|
that.sendCar.splice(index, 1)
|
|
|
- if (this.shipList) {
|
|
|
- that.count = Number(this.shipList) + 1
|
|
|
+ if (that.sendCarList) {
|
|
|
+ that.count = Number(that.sendCarList)
|
|
|
} else {
|
|
|
- that.count = 1
|
|
|
+ that.count = 0
|
|
|
}
|
|
|
for (var i = 0; i < that.sendCar.length; i++) {
|
|
|
if (that.count < 10) {
|
|
|
- that.sendCar[i].tranCarNo = "C00" + that.count
|
|
|
+ that.sendCar[i].tranCarNo = "C00" + (that.count+1)
|
|
|
} else if (that.count < 100) {
|
|
|
that.sendCar[i].tranCarNo = "C0" + that.count
|
|
|
} else if (that.count < 1000) {
|
|
@@ -698,7 +689,7 @@
|
|
|
content: "确定保存反馈信息?",
|
|
|
success(res) {
|
|
|
if (res.confirm) {
|
|
|
- that.huoYun[index].boxNo = "" + that.huoYun.boxNo1 + "," + that.huoYun.boxNo2
|
|
|
+ that.huoYun[index].boxNo = "" + that.huoYun[index].boxNo1 + "," + that.huoYun[index].boxNo2
|
|
|
_pro.tranCarInfoList2 = [that.huoYun[index]]
|
|
|
_pro.threeTranType = "火运"
|
|
|
that.$api.doRequest('post', '/tranProcessInfo/api/addTranCar', _pro).then(res => {
|
|
@@ -792,9 +783,6 @@
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- // }
|
|
|
- // }
|
|
|
- // })
|
|
|
},
|
|
|
getList() {
|
|
|
this.$api.doRequest('get', '/tranProcessInfo/getThreeTranProcess', {
|
|
@@ -802,11 +790,19 @@
|
|
|
}).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
this.detailData = res.data.data
|
|
|
- this.sendCarList = this.detailData.tranCarInfoList1.length
|
|
|
- this.count = this.detailData.tranCarInfoList1.length
|
|
|
- this.trainCarList = this.detailData.tranCarInfoList2.length
|
|
|
- this.shipList = this.detailData.tranCarInfoList3.length
|
|
|
- this.containerList = this.detailData.tranCarInfoList4.length
|
|
|
+ if(this.detailData.tranCarInfoList1){
|
|
|
+ this.sendCarList = this.detailData.tranCarInfoList1.length
|
|
|
+ this.count = this.detailData.tranCarInfoList1.length
|
|
|
+ }
|
|
|
+ if(this.detailData.tranCarInfoList2){
|
|
|
+ this.trainCarList = this.detailData.tranCarInfoList2.length
|
|
|
+ for(var i = 0 ; i < this.detailData.tranCarInfoList2.length; i++){
|
|
|
+ this.detailData.tranCarInfoList2[i].boxNo1=this.detailData.tranCarInfoList2[i].boxNo.split(",")[0]
|
|
|
+ this.detailData.tranCarInfoList2[i].boxNo2=this.detailData.tranCarInfoList2[i].boxNo.split(",")[1]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(this.detailData.tranCarInfoList3){this.shipList = this.detailData.tranCarInfoList3.length}
|
|
|
+ if(this.detailData.tranCarInfoList4){this.containerList = this.detailData.tranCarInfoList4.length}
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -1018,7 +1014,6 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
.open_css {
|
|
|
width: 36rpx;
|
|
|
height: 20rpx;
|