| | |
| | | {{item.categoryStr || '-'}} |
| | | </view> |
| | | </view> |
| | | <view class="each-list m-t-12"> |
| | | <view class="each-list"> |
| | | <view class="each-item"> |
| | | <view class="label">状态</view> |
| | | <view class="value">{{item.statusStr || '-'}}</view> |
| | |
| | | <view class="buttons"> |
| | | <view class="button" @click.stop="toDetail(item)">编辑</view> |
| | | |
| | | <view class="button" @click.stop="buttonStatus(item,'FORCE_OFF')" |
| | | v-if="item.status=='FORCE_UP'">下架</view> |
| | | <view class="button" @click.stop="buttonStatus(item,'FORCE_UP')" |
| | | v-if="item.status=='FORCE_OFF'">上架</view> |
| | | <view class="button" @click.stop="buttonStatus(item,'OFF')" |
| | | v-if="item.status=='UP'">下架</view> |
| | | <view class="button" @click.stop="buttonStatus(item,'UP')" |
| | | v-if="item.status=='OFF'||item.status=='FORCE_OFF'">上架</view> |
| | | <view class="button" @click.stop="openValue(item,'price')">价格</view> |
| | | <view class="button" @click.stop="openValue(item,'stock')">库存</view> |
| | | <view class="button" @click.stop="toDetailAdd(item)">复制</view> |
| | |
| | | </view> |
| | | |
| | | <!-- 输入框--> |
| | | <view class="flex w-fit"> |
| | | <view class="flex w-fit "> |
| | | |
| | | <u-input v-model="content" :placeholder="inputplaceholder" type="digit" |
| | | style="max-width: 390rpx;background-color: #F2F2F2;" v-if="currentInputKey=='price'" /> |
| | |
| | | </view> |
| | | <!-- 提交按钮 --> |
| | | <view class="line-gray" style="margin-bottom: 0px;"></view> |
| | | <view class="flex"> |
| | | <view class="flex flex-wrap-normal"> |
| | | <u-button type="default" class="w-fit flex1 " text="取消" |
| | | @click="()=>{$refs.popup_input.close()}"></u-button> |
| | | <view class="component-line-vert"></view> |
| | |
| | | title = '商品管理-已上架' |
| | | } |
| | | if (this.type === 'unpass') { |
| | | this.query.status = 'DRAFT,OFF,FORCE_OFF' |
| | | title = '商品管理-仓库中' |
| | | } |
| | | if (this.type === 'rejectpass') { |
| | | this.query.status = 'REJECT' |
| | | title = '商品管理-审核拒绝' |
| | | title = '商品管理-未审核通过' |
| | | } |
| | | } |
| | | if (title) { |
| | |
| | | }) |
| | | }, |
| | | async buttonStatus(item, status) { |
| | | await this.$message.confirm(`确定${status==='FORCE_OFF'?'下降':'上架'}此商品吗`) |
| | | await this.$message.confirm(`确定${status==='OFF'?'下降':'上架'}此商品吗`) |
| | | this.$message.showLoading() |
| | | this.$http.request('get', '/api/supplier/flower/list/' + status, { |
| | | params: { |
| | |
| | | if (res.code == 0) { |
| | | this.$message.showToast('操作成功') |
| | | item.status = status |
| | | item.statusStr = (status == 'FORCE_OFF' ? '下架' : '上架') |
| | | item.statusStr = (status == 'OFF' ? '下架' : '上架') |
| | | } |
| | | }).finally(() => { |
| | | this.$message.hideLoading() |
| | |
| | | }, |
| | | toDetail(item) { |
| | | uni.navigateTo({ |
| | | url: '/pages/farmer/flower-manage/flower-add?id=' + item.id |
| | | url: '/sub_pages/farmer/flower-manage/flower-add?id=' + item.id |
| | | }) |
| | | }, |
| | | toDetailAdd(item) { |
| | | uni.navigateTo({ |
| | | url: '/pages/farmer/flower-manage/flower-add?copyId=' + item.id |
| | | url: '/sub_pages/farmer/flower-manage/flower-add?copyId=' + item.id |
| | | }) |
| | | }, |
| | | clickButton(type) { |
| | | if (type == 'add') { |
| | | //添加页面 |
| | | uni.navigateTo({ |
| | | url: '/pages/farmer/flower-manage/flower-add' |
| | | url: '/sub_pages/farmer/flower-manage/flower-add' |
| | | }) |
| | | } else { |
| | | uni.navigateTo({ |
| | | url: '/pages/farmer/flower-manage/flower-manage?type=' + type |
| | | url: '/sub_pages/farmer/flower-manage/flower-manage?type=' + type |
| | | }) |
| | | } |
| | | }, |
| | |
| | | .flow-manage { |
| | | .flow-manage-list { |
| | | // padding: 20rpx 30rpx; |
| | | padding: 22rpx; |
| | | padding: 22rpx 22rpx 20rpx 22rpx; |
| | | background-color: #fff; |
| | | |
| | | .flow-manage-list-item { |
| | | |
| | | margin-bottom: 20rpx; |
| | | // margin-bottom: 20rpx; |
| | | |
| | | .title { |
| | | font-weight: 600; |
| | |
| | | border-radius: 24rpx; |
| | | border: 2rpx solid #CECECE; |
| | | text-align: center; |
| | | font-size: 24rpx; |
| | | color: #666666; |
| | | line-height: 34rpx; |
| | | } |
| | | } |
| | | |
| | |
| | | .each-list { |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | margin-top: 6rpx; |
| | | |
| | | .each-item { |
| | | min-width: 30%; |
| | |
| | | content: ": " |
| | | } |
| | | |
| | | .value {} |
| | | .value { |
| | | font-weight: 400; |
| | | font-size: 24rpx; |
| | | color: #666666; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | // max-width: 90rpx; |
| | | margin-left: 14rpx; |
| | | margin-right: 14rpx; |
| | | font-weight: 400; |
| | | |
| | | } |
| | | |
| | | .button:first-child { |