From 6ebd978221c7bf469f5e1d821b4345101357ca4c Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期一, 10 二月 2025 09:32:22 +0800 Subject: [PATCH] faat:提煤单详情下磅文字修改 --- pages/loadUnload-page/selectTarget/selectTarget.vue | 66 +++++++++++++++++++++++++++++--- 1 files changed, 59 insertions(+), 7 deletions(-) diff --git a/pages/loadUnload-page/selectTarget/selectTarget.vue b/pages/loadUnload-page/selectTarget/selectTarget.vue index 9b44bae..1b6b060 100644 --- a/pages/loadUnload-page/selectTarget/selectTarget.vue +++ b/pages/loadUnload-page/selectTarget/selectTarget.vue @@ -23,10 +23,26 @@ <u-cell-group> <u-cell :title="dataForm.secondClass" value="璇烽�夋嫨" - @click="secondClassSelect"> + @click="secondClassSelect" + :disabled="!dataForm.firstClass"> <u-icon name="arrow-right" slot="right-icon" size="30"></u-icon></u-cell> + </u-cell-group> + </u-form-item> + <u-form-item label="纾呭崟" + prop="orderType" + :borderBottom="false"> + <u-cell-group> + <u-cell :title="dataForm.orderType" + :value="isOrderType" + @click="orderTypeSelect"> + <view slot="right-icon" + @click.stop="cleanOrderType"> + <u-icon :name="!dataForm.orderType?'arrow-right':'close-circle'" + size="30"></u-icon> + </view> + </u-cell> </u-cell-group> </u-form-item> </u--form> @@ -48,7 +64,7 @@ <u-button type="primary" shape="circle" text="鎻愪氦" - @click.stop="formHandle"></u-button> + @click.native.stop="formHandle"></u-button> </view> <!-- 鐓ゅ満 --> <u-action-sheet :actions="firstClassActionsList" @@ -64,6 +80,13 @@ :closeOnClickOverlay='true' @close='secondClassClose' @select="secondClassSelectClick"></u-action-sheet> + <!--纾呭崟绫诲瀷 --> + <u-action-sheet :actions="orderTypeList" + :show="orderTypeShow" + cancelText='鍙栨秷' + :closeOnClickOverlay='true' + @close='orderTypeClose' + @select="orderTypeSelectClick"></u-action-sheet> </view> </template> @@ -74,6 +97,7 @@ dataForm: { firstClass: "", secondClass: "", + orderType: '' }, index: '', // 鐓ゅ満鎿嶄綔鑿滃崟 @@ -86,7 +110,20 @@ checkedCoal: [], userInfo: {}, filedId: "", - selectedCoal: [] + selectedCoal: [], + orderTypeShow: false, + orderTypeList: [{ + name: '澶栭攢', + id: Math.floor(Math.random() * 100) + 1, + }, + { + name: '澶栬喘', + id: Math.floor(Math.random() * 100) + 1, + } + ], + isOrderType: '璇烽�夋嫨', //纾呮埧绫诲瀷鏄惁閫夋嫨浜� 閫夋嫨浜嗘竻绌� + cleanIconClick: true, //淇敼鐐瑰嚮娓呯┖纾呮埧閫夋嫨浼氬嚭鐜� + }; }, methods: { @@ -146,19 +183,34 @@ } }) }, + orderTypeSelect() { + this.orderTypeShow = true + }, + orderTypeClose() { + this.orderTypeShow = false + }, + orderTypeSelectClick(val) { + this.orderTypeShow = false + this.dataForm.orderType = val.name + this.isOrderType = '' + }, + cleanOrderType() { + this.dataForm.orderType = null + this.isOrderType = '璇烽�夋嫨' + this.orderTypeShow = false + }, checkboxChange(e) { this.selectedCoal = e }, formHandle() { - if (!this.dataForm.firstClass || !this.dataForm.secondClass) return this.$u.toast('璇烽�夋嫨鐓ゅ満鎴栬�呯叅浠�') + if (!this.dataForm.firstClass || !this.dataForm.secondClass || !this.dataForm.orderType) return this.$u.toast('璇烽�夋嫨鐓ゅ満鎴栬�呯叅浠撳拰纾呭崟绫诲瀷') if (this.selectedCoal.length === 0) return this.$u.toast('璇烽�夋嫨鐓ょ') this.$reqPost('updateUser', Object.assign(this.userInfo, { responsibilityCoal: this.selectedCoal.join(), - filedId: this - .filedId + filedId: this.filedId }), 'json').then(res => { uni.navigateTo({ - url: `/pages/loadUnload-page/loadUnload-detail/loadUnload-detail` + url: `/pages/loadUnload-page/loadUnload-detail/loadUnload-detail?orderType=${this.dataForm.orderType}` }) }) } -- Gitblit v1.9.1