| | |
| | | checkRemarks: '', |
| | | deductAmount: 0, |
| | | }, |
| | | check_status: [ |
| | | { |
| | | check_status: [{ |
| | | label: '退回', |
| | | value: 'back' |
| | | }, |
| | |
| | | async clickCheck(item, status) { |
| | | this.form = { |
| | | id: item.id || '', |
| | | status: '', |
| | | status: status, |
| | | statusStr: '', |
| | | checkImageList: item.checkImageList || [], |
| | | checkRemarks: item.checkRemarks || '', |
| | |
| | | this.$message.showLoading() |
| | | const { |
| | | code |
| | | } = await this.$http.request('get', '/api/delivery/list/view/check', { |
| | | } = await this.$http.request('post', '/api/delivery/list/view/check', { |
| | | data: { |
| | | ...this.form |
| | | ...this.form, |
| | | deductAmount: parseFloat(this.form.deductAmount) || 0 |
| | | } |
| | | }) |
| | | this.$message.hideLoading() |
| | |
| | | .url || '' |
| | | that.$message.hideLoading() |
| | | that.form.checkImageList.push(pic) |
| | | console.log('form', that.form) |
| | | that.$forceUpdate() |
| | | }).catch(res => { |
| | | that.$message.hideLoading() |
| | |
| | | } |
| | | </script> |
| | | <template> |
| | | <view class="delivery-detail-page"> |
| | | <view class="delivery-detail-page bg-white p20"> |
| | | <view v-if="dto.id"> |
| | | <view class="delivery-info flex"> |
| | | <view class="flex1 desc"> |
| | |
| | | </view> |
| | | <view v-for="(item,index) of dto.items" :key="index" class="delivery-order-item m-t-12"> |
| | | <view class="flex"> |
| | | <image class="flower-img img100 m-r-6" :src="item.flowerCover" @click="previewImg(item.flowerCover)"> |
| | | <image class="flower-img img100 m-r-6" :src="item.flowerCover" |
| | | @click="previewImg(item.flowerCover)"> |
| | | </image> |
| | | <view class="flex1"> |
| | | <view class=" flex"> |
| | | <view class="title">{{ item.flowerName }}<span class="level">{{ item.flowerLevelStr }}</span></view> |
| | | <view class="title">{{ item.flowerName }}<span |
| | | class="level">{{ item.flowerLevelStr }}</span></view> |
| | | </view> |
| | | <view class="each-list"> |
| | | <view class="each-item"> |
| | |
| | | |
| | | </view> |
| | | <view class="buttons"> |
| | | <view class="button" v-for="button of check_status" :key="check_status.value" |
| | | <view class="button text-center" v-for="button of check_status" :key="button.value" |
| | | @click.stop="clickCheck(item,button.value)">{{ button.label }} |
| | | </view> |
| | | </view> |
| | |
| | | 扣款金额 |
| | | </view> |
| | | <view class="form-item-value"> |
| | | <input v-model="form.deductAmount" placeholder="请输入扣款金额" type="digit" class="form-input"></input> |
| | | <input v-model="form.deductAmount" placeholder="请输入扣款金额" type="digit" |
| | | class="form-input"></input> |
| | | |
| | | </view> |
| | | </view> |
| | |
| | | <view class="form-item-label require"> |
| | | 图片 |
| | | </view> |
| | | <view class="form-item-value"> |
| | | <u-button type="text" @click="uploadCheckImage()">上传</u-button> |
| | | <view class="form-item-value m-l-a m-r-0"> |
| | | <view class="t-red" @click="uploadCheckImage()">上传</view> |
| | | </view> |
| | | </view> |
| | | <view class="flex p20" |
| | | v-if="form.checkImageList&&form.checkImageList.length>0"> |
| | | <view class="m-t-12 m-r-10 " v-for="(timg,index) of dto.checkImageList" :key="index"> |
| | | <view class="flex p20" v-if="form.checkImageList&&form.checkImageList.length>0"> |
| | | <view class="m-t-12 m-r-10 " v-for="(timg,index) of form.checkImageList" :key="index"> |
| | | <image class="check-img" :src="timg" @click.stop="previewImg(timg)"> |
| | | </image> |
| | | <view class="t-red text-center" @click.stop="deleteCheckImage(index)">删除</view> |