Merge branch 'v2' of http://47.96.225.205:8888/r/hmy_farmer-main into remote-v2
| | |
| | | // #ifdef PUB_PARTNER |
| | | type: 'partner', |
| | | // #endif |
| | | salesTypeDef:0, |
| | | salesTypeList:[ |
| | | { |
| | | label: '请选择售后类型', |
| | | value: '', |
| | | }, |
| | | { |
| | | label: '换货', |
| | | value: 'barters', |
| | | }, |
| | | { |
| | | label: '退货', |
| | | value: 'returns', |
| | | }, |
| | | ], |
| | | }; |
| | | }, |
| | | onUnload() { |
| | |
| | | orderId: this.id, |
| | | // imageList: [], |
| | | videoList: [], |
| | | salesType:'', |
| | | reason: '', |
| | | // orderItems: [], |
| | | orderItemId: options.flowerId || '', |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | salesTypeChange(e){ |
| | | this.submitForm.salesType = e.value |
| | | }, |
| | | |
| | | async getDetail() { |
| | | this.$message.showLoading() |
| | |
| | | this.$message.showToast('售后数量需要大于0') |
| | | return |
| | | } |
| | | if (!this.submitForm.salesType) { |
| | | this.$message.showToast('未填写售后类型') |
| | | return |
| | | } |
| | | if (!this.submitForm.reason) { |
| | | this.$message.showToast('未填写理由') |
| | | return |
| | |
| | | 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"> |
| | | 理由 |
| | |
| | | <view class="value">{{ dto.totalOrderAmount || '-' }}</view> |
| | | </view> --> |
| | | <view class="form-item"> |
| | | <view class="label">售后类型:</view> |
| | | <view class="value">{{ dto.salesTypeStr || '-' }}</view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="label">理由:</view> |
| | | <view class="value">{{ dto.reason || '-' }}</view> |
| | | </view> |
| | |
| | | <view class="value">{{item.createTime||'-'}}</view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="label">售后类型</view> |
| | | <view class="value">{{item.salesTypeStr||'-'}}</view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="label">理由</view> |
| | | <view class="value">{{item.reason||'-'}}</view> |
| | | </view> |
| | |
| | | 手机号 |
| | | </view> |
| | | <view class="form-item-value"> |
| | | <input v-model="submitForm.tel" placeholder="请输入收货人手机号" class="form-input"></input> |
| | | <input v-model="submitForm.tel" placeholder="请输入收货人手机号" class="form-input" @blur="validatePhoneNumber()" ></input> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | |
| | | }; |
| | | }, |
| | | methods: { |
| | | validatePhoneNumber() { |
| | | |
| | | // 手机号码正则表达式,可以根据需要调整 |
| | | const phoneRegex = /^[1][3-9][0-9]{9}$/; |
| | | if (!phoneRegex.test(this.submitForm['tel'])) { |
| | | this.$message.showToast('请填写正确手机号码') |
| | | } |
| | | |
| | | }, |
| | | |
| | | addAddress() { |
| | | delete this.submitForm.id |
| | | this.submitForm['name'] = '' |
| | |
| | | this.$message.showToast('字段未填写完整') |
| | | return |
| | | } |
| | | |
| | | // 手机号码正则表达式,可以根据需要调整 |
| | | const phoneRegex = /^[1][3-9][0-9]{9}$/; |
| | | if (!phoneRegex.test(this.submitForm['tel'])) { |
| | | this.$message.showToast('请填写正确手机号码') |
| | | return |
| | | } |
| | | |
| | | |
| | | |
| | | this.$message.showLoading() |
| | | const { |
| | | code |
| | |
| | | }, |
| | | { |
| | | name: '优惠券', |
| | | api: '/api/v2/coupon/app/activy/list', |
| | | // api: '/api/v2/coupon/app/activy/list', |
| | | api: '/api/v2/coupon/point/active/list', |
| | | |
| | | }, |
| | | ], |
| | |
| | | <view @click.stop="clickButton('delete')" class="button button-search-delete" style="margin-top: -1rpx;">
|
| | | </view>
|
| | | </view>
|
| | | <view class="top-buttons" v-if="type==='delete'">
|
| | | <view v-if="type === 'delete'" class="button t-red " @click.stop="deleteSelected()">删除</view>
|
| | | <view v-if="type === 'delete'" class="button " @click.stop="recoverSelected()">恢复</view>
|
| | | |
| | | <view class="recycle-button" v-if="type==='delete'">
|
| | | <view class="buttons" >
|
| | | <view v-if="type === 'delete'" class="button t-red" @click.stop="deleteSelected()">删除</view>
|
| | | <view v-if="type === 'delete'" class="button" @click.stop="recoverSelected()">恢复</view>
|
| | | </view>
|
| | | </view>
|
| | | |
| | | <view class="p15" style="min-height: calc(100vh - 500rpx);">
|
| | | <no-data v-if="!list||list.length==0" style="width: 100%;"></no-data>
|
| | |
|
| | |
| | | <view class="button" @click.stop="openValue(item,'stock')">库存</view>
|
| | | <view class="button" @click.stop="toDetailAdd(item)">复制</view>
|
| | |
|
| | | <view class="button t-red" @click.stop="buttonDelete(item)">删除</view>
|
| | | <view v-if="type !== 'delete' && (item.status==='OFF' || item.status==='FORCE_OFF') " class="button t-red" @click.stop="buttonDelete(item)">删除</view>
|
| | |
|
| | | </view>
|
| | | </view>
|
| | |
| | |
|
| | | }
|
| | | }
|
| | | |
| | | .recycle-button{
|
| | | |
| | | |
| | | |
| | | min-height: 50rpx;
|
| | | background-color: #fff;
|
| | | |
| | | .buttons {
|
| | | display: flex;
|
| | | justify-content: flex-end;
|
| | | background-color: #fff;
|
| | | padding: 22rpx 42rpx;
|
| | | |
| | | .button {
|
| | | margin: 0 auto;
|
| | | width: 98rpx;
|
| | | line-height: 48rpx;
|
| | | border-radius: 24rpx;
|
| | | border: 2rpx solid #CECECE;
|
| | | text-align: center;
|
| | | font-size: 24rpx;
|
| | | color: #666666;
|
| | | line-height: 34rpx;
|
| | | }
|
| | | }
|
| | | }
|
| | | |
| | | }
|
| | | </style> |