From fc4c8b7e4f9d926a43903389afb21d5a09208f8e Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期四, 13 二月 2025 16:41:30 +0800 Subject: [PATCH] feat:承运单位改为非必填样式 --- pages/driver-page/appointment/appointment.vue | 32 +++++++++++++++++++------------- 1 files changed, 19 insertions(+), 13 deletions(-) diff --git a/pages/driver-page/appointment/appointment.vue b/pages/driver-page/appointment/appointment.vue index a2da1a9..46db2fe 100644 --- a/pages/driver-page/appointment/appointment.vue +++ b/pages/driver-page/appointment/appointment.vue @@ -23,7 +23,7 @@ <uni-td align="center">{{ item.carNum1 || '' }}</uni-td> <uni-td><u-button text="閫夋嫨" type="primary" - :disabled="item.carNum == item.carNum1" + :disabled="item.carNum == item.carNum1&&!isRCSQ" @click="yuYueBtnClick(item)"></u-button></uni-td> </uni-tr> </uni-table> @@ -74,6 +74,7 @@ this.yuYueListParams.filedId = params.filedId; this.yuYueListParams.deptId = params.deptId; this.yuYueListParams.sendDate = params.sendDate; + this.yuYueListParams.coalName = params.coalName; this.coalStatus = params.coalStatus; this.tmId = params.tmId }, @@ -123,23 +124,18 @@ }) }, 1500); } else { - this.$u.toast(res.msg ? res.msg : '棰勭害澶辫触'); + // this.$u.toast(res.msg ? res.msg.replaceAll('<br/>',"\n").replaceAll(/\n/g, "\n").replaceAll(/\r/g, "\r") : '棰勭害澶辫触'); + uni.showModal({ + title: "鎻愮ず", + content: res.msg || '棰勭害澶辫触', + confirmText: "纭畾", + showCancel: false, + }) } }) }, // 鏇存崲棰勭害鏃堕棿娈� saveRCSQ(value) { - //濡傛灉鏈鍒� 鍏堢鍒板啀鐢宠 - if (this.coalStatus < 2) { - this.$u.toast('璇峰厛绛惧埌'); - setTimeout(() => { - uni.navigateTo({ - url: `/pages/driver-page/driver-index/bill-of-lading-details/punchTheClock/punchTheClock?orderPlanId=${this.yuYuePostParams.takeCoalId}&coalStatus=${ - this.coalStatus}&tmId=${this.tmId}&yyId=${this.rcsqData.originalYyId}&filedId=${this.yuYueListParams.filedId}&deptId=${this.yuYueListParams.deptId}&sendDate=${this.yuYueListParams.sendDate}&yuYueSection=${this.yuYueSection}` - }) - }, 1500) - return - } this.rcsqData.yyId = value.id; this.rcsqData.deptId = value.deptId; this.rcsqData.filedId = value.filedId; @@ -151,6 +147,16 @@ url: '/pages/tabbar-page/index-tabbar/index-tabbar' }) }, 1500); + //濡傛灉鏈鍒� 鍏堢鍒板啀鐢宠 + } else if (res.code == 3) { + this.$u.toast('璇峰厛绛惧埌'); + setTimeout(() => { + uni.navigateTo({ + url: `/pages/driver-page/driver-index/bill-of-lading-details/punchTheClock/punchTheClock?orderPlanId=${this.yuYuePostParams.takeCoalId}&coalStatus=${ + this.coalStatus}&tmId=${this.tmId}&yyId=${this.rcsqData.originalYyId}&filedId=${this.yuYueListParams.filedId}&deptId=${this.yuYueListParams.deptId}&sendDate=${this.yuYueListParams.sendDate}&yuYueSection=${this.yuYueSection}` + }) + }, 1500) + return } else { this.$u.toast(res.msg ? res.msg : '鏇存崲棰勭害鏃堕棿娈靛け璐ワ紝璇风◢鍚庨噸璇�'); } -- Gitblit v1.9.1