From f1950b48fec6421b50580f2a8899b360b314b73c Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期四, 10 四月 2025 15:29:33 +0800 Subject: [PATCH] feat:增加车牌号,和规格Bug修改 --- pages/customer-page/zhijian-bangfang/zhijian-bangfang.vue | 51 +++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 43 insertions(+), 8 deletions(-) diff --git a/pages/customer-page/zhijian-bangfang/zhijian-bangfang.vue b/pages/customer-page/zhijian-bangfang/zhijian-bangfang.vue index 2e33703..57e5352 100644 --- a/pages/customer-page/zhijian-bangfang/zhijian-bangfang.vue +++ b/pages/customer-page/zhijian-bangfang/zhijian-bangfang.vue @@ -46,8 +46,16 @@ </view> <view class="second-line justyflyItem"> <text class="car-num " style="font-size: 28rpx;">鍙告満锛歿{ item.xsUser1Name }}</text> + </view> + <view class="second-line justyflyItem"> + <text class="car-num " style="font-size: 28rpx;">澶嶇锛歿{ item.remarks }}</text> + </view> + <view class="second-line justyflyEndItem"> <view class="agreeBtn"> <u-button type="primary" :loading="agreeModalShow" loadingText="纭涓�" @click="agreeWeighClick(item)">鍚屾剰澶嶇</u-button> + </view> + <view class="agreeBtn"> + <u-button :loading="disAgreeModalShow" loadingText="纭涓�" @click="disAgreeWeighClick(item)">鎷掔粷澶嶇</u-button> </view> </view> @@ -66,7 +74,8 @@ return { bangfangList:[], liebiaoList: [], - agreeModalShow: false + agreeModalShow: false, + disAgreeModalShow: false, } }, onShow() { @@ -86,6 +95,27 @@ console.log(res, '鍚屾剰'); if (res.code == 0) { this.$u.toast(res.msg ? res.msg : '鍚屾剰'); + this.agreeModalShow = false; + this.getReWeighList() //鍒锋柊鍒楄〃 + } else { + this.$u.toast(res.msg ? res.msg : '澶辫触'); + this.agreeModalShow = false; + } + }).finally(() => { + this.agreeModalShow = false + }) + }, + disAgreeWeighClick(item) { + let params = { + deptId: item.deptId, + filedId: item.filedId, + tmId: item.id + } + this.agreeModalShow = true + this.$reqPost('disAgreeWeigh', params, 'json').then(res => { + console.log(res, '鎷掔粷'); + if (res.code == 0) { + this.$u.toast(res.msg ? res.msg : '鎷掔粷瀹屾垚'); this.agreeModalShow = false; this.getReWeighList() //鍒锋柊鍒楄〃 } else { @@ -321,16 +351,21 @@ .justyflyItem{ width: 100%; justify-content: space-between; + } + .justyflyEndItem{ + width: 100%; + display: flex; + justify-content: flex-end; .agreeBtn{ margin-right: 20rpx; - ::v-deep{ - .u-button{ - border-radius: 50rpx; - padding: 0 36rpx!important; - height: 72rpx!important; - } - + } + ::v-deep{ + .u-button{ + border-radius: 50rpx; + padding: 0 36rpx!important; + height: 68rpx!important; } + } } } -- Gitblit v1.9.1