|
@@ -30,7 +30,7 @@
|
|
v-if="dataObj.cargoOwnerStatus=='待确认装车'&&dataObj.cargoOwnerContract!='1'">
|
|
v-if="dataObj.cargoOwnerStatus=='待确认装车'&&dataObj.cargoOwnerContract!='1'">
|
|
</u-button>
|
|
</u-button>
|
|
|
|
|
|
- <u-button class="btn" text="驳回装车信息" @click="confirmLoading()" v-if="dataObj.cargoOwnerStatus=='待确认装车'">
|
|
|
|
|
|
+ <u-button class="btn" text="驳回装车信息" @click="confirmLoading(5)" v-if="dataObj.cargoOwnerStatus=='待确认装车'">
|
|
</u-button>
|
|
</u-button>
|
|
<!-- <u-button class="btn" text="确认装车" @click="confirmLoading(3)"
|
|
<!-- <u-button class="btn" text="确认装车" @click="confirmLoading(3)"
|
|
v-if="dataObj.cargoOwnerStatus=='待确认装车'&&dataObj.cargoOwnerContract=='1'">
|
|
v-if="dataObj.cargoOwnerStatus=='待确认装车'&&dataObj.cargoOwnerContract=='1'">
|
|
@@ -445,13 +445,16 @@
|
|
this.isShowAlert = true
|
|
this.isShowAlert = true
|
|
},
|
|
},
|
|
confirmLoading(type) {
|
|
confirmLoading(type) {
|
|
- if (this.dataObj.cargoOwnerContract != '1') {
|
|
|
|
|
|
+ if(this.type == 3 && this.type == 4){
|
|
|
|
+ if (this.dataObj.cargoOwnerContract != '1') {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: '请先签订合同',
|
|
title: '请先签订合同',
|
|
icon: 'none'
|
|
icon: 'none'
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ }
|
|
|
|
+
|
|
this.type = type
|
|
this.type = type
|
|
if (type == 3) {
|
|
if (type == 3) {
|
|
this.alertTitle = '确认装车?'
|
|
this.alertTitle = '确认装车?'
|
|
@@ -461,6 +464,10 @@
|
|
this.alertTitle = '确认卸车?'
|
|
this.alertTitle = '确认卸车?'
|
|
this.confirmText = '确定'
|
|
this.confirmText = '确定'
|
|
this.isShowAlert = true
|
|
this.isShowAlert = true
|
|
|
|
+ } else if (type == 5) { //驳回装车信息不用签合同
|
|
|
|
+ this.alertTitle = '确认驳回装车信息?'
|
|
|
|
+ this.confirmText = '确定'
|
|
|
|
+ this.isShowAlert = true
|
|
}
|
|
}
|
|
|
|
|
|
// uni.$u.route('/pages/order/confirmLoading', item);
|
|
// uni.$u.route('/pages/order/confirmLoading', item);
|
|
@@ -539,6 +546,8 @@
|
|
.catch(res => {
|
|
.catch(res => {
|
|
uni.$u.toast(res.message);
|
|
uni.$u.toast(res.message);
|
|
});
|
|
});
|
|
|
|
+ }else if(this.type==""){
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
if (this.radiovalue1 == '其他' && !this.value2) {
|
|
if (this.radiovalue1 == '其他' && !this.value2) {
|
|
this.$refs.uToast.show({
|
|
this.$refs.uToast.show({
|