|
@@ -38,7 +38,7 @@
|
|
<u-button class="btn" text="确认装车" @click="confirmLoading(3)" v-if="dataObj.cargoOwnerStatus=='待确认装车'">
|
|
<u-button class="btn" text="确认装车" @click="confirmLoading(3)" v-if="dataObj.cargoOwnerStatus=='待确认装车'">
|
|
</u-button>
|
|
</u-button>
|
|
|
|
|
|
- <u-button class="btn" text="驳回卸车信息" @click="confirmUnLoading" v-if="dataObj.cargoOwnerStatus=='待收货'">
|
|
|
|
|
|
+ <u-button class="btn" text="驳回卸车信息" @click="confirmUnLoading(6)" v-if="dataObj.cargoOwnerStatus=='待收货'">
|
|
</u-button>
|
|
</u-button>
|
|
<u-button class="btn" text="确认卸车" @click="confirmUnLoading(4)" v-if="dataObj.cargoOwnerStatus=='待收货'">
|
|
<u-button class="btn" text="确认卸车" @click="confirmUnLoading(4)" v-if="dataObj.cargoOwnerStatus=='待收货'">
|
|
</u-button>
|
|
</u-button>
|
|
@@ -474,9 +474,16 @@
|
|
},
|
|
},
|
|
confirmUnLoading(type) {
|
|
confirmUnLoading(type) {
|
|
this.type=type
|
|
this.type=type
|
|
- this.alertTitle = '确认卸车?'
|
|
|
|
- this.confirmText = '确定'
|
|
|
|
- this.isShowAlert = true
|
|
|
|
|
|
+ if(type == 4){
|
|
|
|
+ this.alertTitle = '确认卸车?'
|
|
|
|
+ this.confirmText = '确定'
|
|
|
|
+ this.isShowAlert = true
|
|
|
|
+ }else if(type == 6){
|
|
|
|
+ this.alertTitle = '确定驳回卸车信息?'
|
|
|
|
+ this.confirmText = '确定'
|
|
|
|
+ this.isShowAlert = true
|
|
|
|
+ }
|
|
|
|
+
|
|
// let item = this.dataObj
|
|
// let item = this.dataObj
|
|
// uni.$u.route('/pages/order/confirmUnloading', item);
|
|
// uni.$u.route('/pages/order/confirmUnloading', item);
|
|
},
|
|
},
|
|
@@ -546,8 +553,53 @@
|
|
.catch(res => {
|
|
.catch(res => {
|
|
uni.$u.toast(res.message);
|
|
uni.$u.toast(res.message);
|
|
});
|
|
});
|
|
- }else if(this.type==""){
|
|
|
|
|
|
+ }else if(this.type==5){
|
|
|
|
+ this.$request.baseRequest('post', '/carrierInfo/cargoOwnerLoadingAdd', {
|
|
|
|
+ id: this.dataObj.id,
|
|
|
|
+ loadingFlag: 1,
|
|
|
|
+ flag: 2
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.$refs.uToast.show({
|
|
|
|
+ type: 'success',
|
|
|
|
+ message: "驳回装车成功!",
|
|
|
|
+ complete() {
|
|
|
|
+ that.getList()
|
|
|
|
+ // that.upCallback({
|
|
|
|
+ // size: 10,
|
|
|
|
+ // num: 1
|
|
|
|
+ // })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .catch(res => {
|
|
|
|
+ uni.$u.toast(res.message);
|
|
|
|
+ });
|
|
|
|
+ }else if(this.type == 6){
|
|
|
|
+ this.$request.baseRequest('post', '/carrierInfo/cargoOwnerLoadingAdd', {
|
|
|
|
+ id: this.dataObj.id,
|
|
|
|
+ loadingFlag: 2,
|
|
|
|
+ flag: 2
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.$refs.uToast.show({
|
|
|
|
+ type: 'success',
|
|
|
|
+ message: "驳回卸车信息成功",
|
|
|
|
+ complete() {
|
|
|
|
+ that.getList()
|
|
|
|
+ // that.upCallback({
|
|
|
|
+ // size: 10,
|
|
|
|
+ // num: 1
|
|
|
|
+ // })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .catch(res => {
|
|
|
|
+ uni.$u.toast(res.message);
|
|
|
|
+ });
|
|
} else {
|
|
} else {
|
|
if (this.radiovalue1 == '其他' && !this.value2) {
|
|
if (this.radiovalue1 == '其他' && !this.value2) {
|
|
this.$refs.uToast.show({
|
|
this.$refs.uToast.show({
|