| | |
| | | <view class="form-item before-line">
|
| | | <view class="label required">售价(元)</view>
|
| | | <view class="m-l-a m-r-0 flex">
|
| | | <input v-model="dto.price" placeholder="请输入数字" type="digit"
|
| | | style="margin-top: 16px;text-align: right;"></input>
|
| | | <input v-model="dto.price" placeholder="请输入数字" type="digit" class="text-right m-t-15"></input>
|
| | | </view>
|
| | | </view>
|
| | | <view class="form-item ">
|
| | | <view class="label required">库存</view>
|
| | | <view class="m-l-a m-r-0 flex">
|
| | | <input v-model="dto.stock" placeholder="请输入数字" type="number"
|
| | | style="margin-top: 16px;text-align: right;"></input>
|
| | | <input v-model="dto.stock" placeholder="请输入数字" type="number" class="text-right m-t-15"></input>
|
| | | </view>
|
| | | </view>
|
| | |
|
| | |
| | | this.$refs.picker_category.selectedClear()
|
| | | },
|
| | | async PickCategory(item, e) {
|
| | | console.log('PickCategory', item, e)
|
| | | console.log('PickCategory', item, e, this.columns_categorys_dict)
|
| | | if (e.detail.value) {
|
| | | var currentnode = this.columns_categorys_dict['@' + e.detail.value[e.detail.value.length - 1]
|
| | | .value]
|
| | | let levelLimit = currentnode && currentnode.levelLimit || ''
|
| | | if (!levelLimit) {
|
| | | if (currentnode.parentId) {
|
| | | var currentnodeParentNode = this.columns_categorys_dict['@' + currentnode.parentId]
|
| | | if (currentnodeParentNode) {
|
| | | levelLimit = currentnodeParentNode.levelLimit || ''
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | let tmpe = e
|
| | |
|
| | |
|
| | |
| | | this.dto.color = currentnode.color
|
| | | //设置等级
|
| | | // console.log('tmpe', currentnode)
|
| | | if (currentnode.levelLimit) {
|
| | | if (levelLimit) {
|
| | |
|
| | | this.columns_levels = []
|
| | | var tarr = []
|
| | | var filterLevel = currentnode.levelLimit.split(",")
|
| | | var filterLevel = levelLimit.split(",")
|
| | | for (var t of this.columns_levels_all) {
|
| | | if (filterLevel.indexOf(t.value) >= 0) {
|
| | | tarr.push(t)
|
| | |
| | | } else {
|
| | | //设置等级
|
| | | // console.log('tmpe', currentnode)
|
| | | if (currentnode.levelLimit) {
|
| | | if (levelLimit) {
|
| | |
|
| | | this.columns_levels = []
|
| | | var tarr = []
|
| | | var filterLevel = currentnode.levelLimit.split(",")
|
| | | var filterLevel = levelLimit.split(",")
|
| | | for (var t of this.columns_levels_all) {
|
| | | if (filterLevel.indexOf(t.value) >= 0) {
|
| | | tarr.push(t)
|