From e3c0ebbd9f9ee111f29be9f76979edd97f1d6f3a Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期三, 11 九月 2024 10:32:33 +0800 Subject: [PATCH] Merge branch 'v2' of http://47.96.225.205:8888/r/hmy_farmer-main into remote-v2 --- pages/order/order-detail.vue | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/pages/order/order-detail.vue b/pages/order/order-detail.vue index 6018509..eca56b0 100644 --- a/pages/order/order-detail.vue +++ b/pages/order/order-detail.vue @@ -14,6 +14,21 @@ // #ifdef PUB_PARTNER type: 'partner', // #endif + salesTypeDef:0, + salesTypeList:[ + { + label: '请选择售后类型', + value: '', + }, + { + label: '换货', + value: 'barters', + }, + { + label: '退货', + value: 'returns', + }, + ], }; }, onUnload() { @@ -31,6 +46,7 @@ orderId: this.id, // imageList: [], videoList: [], + salesType:'', reason: '', // orderItems: [], orderItemId: options.flowerId || '', @@ -85,6 +101,9 @@ } }, methods: { + salesTypeChange(e){ + this.submitForm.salesType = e.value + }, async getDetail() { this.$message.showLoading() @@ -379,6 +398,10 @@ this.$message.showToast('售后数量需要大于0') return } + if (!this.submitForm.salesType) { + this.$message.showToast('未填写售后类型') + return + } if (!this.submitForm.reason) { this.$message.showToast('未填写理由') return @@ -647,6 +670,16 @@ class="form-input"></input> </view> </view> + + <view class="form-item"> + <view class="form-item-label require"> + 售后类型 + </view> + <view class="form-item-value"> + <um-dropdown @change="salesTypeChange" :defaultIndex="salesTypeDef" rangeKey="label" :optionList="salesTypeList" placeholder="售后类型"></um-dropdown> + </view> + </view> + <view class="form-item"> <view class="form-item-label require"> 理由 -- Gitblit v1.9.3