xuxueyang
2024-09-11 e3c0ebbd9f9ee111f29be9f76979edd97f1d6f3a
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">
               理由