|
@@ -348,6 +348,7 @@
|
|
|
<th>原价<i class="red">*</i></th>
|
|
|
<th>库存<i class="red">*</i></th>
|
|
|
<th>产品编号</th>
|
|
|
+ <th>瓶数</th>
|
|
|
<th>重量(KG)</th>
|
|
|
<th>体积(m³)</th>
|
|
|
</tr>
|
|
@@ -378,6 +379,8 @@
|
|
|
class="layui-input"></td>
|
|
|
<td><input type="text" v-model="formData.attr.bar_code"
|
|
|
class="layui-input"></td>
|
|
|
+ <td><input type="text" v-model="formData.attr.bottle"
|
|
|
+ class="layui-input"></td>
|
|
|
<td><input type="text" v-model="formData.attr.weight"
|
|
|
class="layui-input"></td>
|
|
|
<td><input type="text" v-model="formData.attr.volume"
|
|
@@ -494,6 +497,7 @@
|
|
|
<th>原价<i class="red">*</i></th>
|
|
|
<th>库存<i class="red">*</i></th>
|
|
|
<th>产品编号</th>
|
|
|
+ <th>瓶数</th>
|
|
|
<th>重量(KG)</th>
|
|
|
<th>体积(m³)</th>
|
|
|
<th width="15%" style="text-align: center;">操作</th>
|
|
@@ -530,6 +534,10 @@
|
|
|
<input type="text" v-model="batchAttr.bar_code"
|
|
|
class="layui-input">
|
|
|
</td>
|
|
|
+ <td>
|
|
|
+ <input type="text" v-model="batchAttr.bottle"
|
|
|
+ class="layui-input">
|
|
|
+ </td>
|
|
|
<td>
|
|
|
<input type="text" v-model="batchAttr.weight"
|
|
|
class="layui-input">
|
|
@@ -597,6 +605,8 @@
|
|
|
<input type="text" v-model="item.bar_code"
|
|
|
class="layui-input">
|
|
|
</td>
|
|
|
+ <td><input type="text" v-model="item.bottle"
|
|
|
+ class="layui-input"></td>
|
|
|
<td>
|
|
|
<input type="number" v-model="item.weight"
|
|
|
class="layui-input">
|
|
@@ -697,21 +707,21 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
|
|
|
- <div class="grid-demo grid-demo-bg1">
|
|
|
- <div class="layui-form-item">
|
|
|
- <label class="layui-form-label">佣金设置</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input type="radio" name="is_sub" lay-filter="is_sub" value="1"
|
|
|
- title="单独设置"
|
|
|
- :checked="formData.is_sub == 1 ? true : false">
|
|
|
- <input type="radio" name="is_sub" lay-filter="is_sub" value="0"
|
|
|
- title="默认设置"
|
|
|
- :checked="formData.is_sub == 0 ? true : false">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+<!-- <div class="layui-col-xs12 layui-col-sm12 layui-col-md12">-->
|
|
|
+<!-- <div class="grid-demo grid-demo-bg1">-->
|
|
|
+<!-- <div class="layui-form-item">-->
|
|
|
+<!-- <label class="layui-form-label">佣金设置</label>-->
|
|
|
+<!-- <div class="layui-input-block">-->
|
|
|
+<!-- <input type="radio" name="is_sub" lay-filter="is_sub" value="1"-->
|
|
|
+<!-- title="单独设置"-->
|
|
|
+<!-- :checked="formData.is_sub == 1 ? true : false">-->
|
|
|
+<!-- <input type="radio" name="is_sub" lay-filter="is_sub" value="0"-->
|
|
|
+<!-- title="默认设置"-->
|
|
|
+<!-- :checked="formData.is_sub == 0 ? true : false">-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </div>-->
|
|
|
<div class="layui-col-xs12 layui-col-sm12 layui-col-md12"
|
|
|
v-if="formData.is_sub == 1 && formData.spec_type == 1">
|
|
|
<div class="grid-demo grid-demo-bg1">
|
|
@@ -751,6 +761,7 @@
|
|
|
<th>原价</th>
|
|
|
<th>库存</th>
|
|
|
<th>产品编号</th>
|
|
|
+ <th>瓶数</th>
|
|
|
<th>重量</th>
|
|
|
<th>体积</th>
|
|
|
<th>一级返佣</th>
|
|
@@ -771,6 +782,7 @@
|
|
|
<td>{{formData.attr.ot_price}}</td>
|
|
|
<td>{{formData.attr.stock}}</td>
|
|
|
<td>{{formData.attr.bar_code}}</td>
|
|
|
+ <td>{{formData.attr.bottle}}</td>
|
|
|
<td>{{formData.attr.weight}}</td>
|
|
|
<td>{{formData.attr.volume}}</td>
|
|
|
<td><input type="text" v-model="formData.attr.brokerage"
|
|
@@ -814,6 +826,7 @@
|
|
|
<td>{{item.ot_price}}</td>
|
|
|
<td>{{item.stock}}</td>
|
|
|
<td>{{item.bar_code}}</td>
|
|
|
+ <td>{{item.bottle}}</td>
|
|
|
<td>{{item.weight}}</td>
|
|
|
<td>{{item.volume}}</td>
|
|
|
<td>
|
|
@@ -920,28 +933,28 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="layui-row layui-col-space15">
|
|
|
- <div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
|
|
|
- <div class="grid-demo grid-demo-bg1">
|
|
|
- <div class="layui-form-item">
|
|
|
- <label class="layui-form-label">活动优先级</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <span class="layui-btn layui-btn-sm layui-btn-normal"
|
|
|
- :style="'background-color:'+activity[item]"
|
|
|
- v-for="(item,index) in formData.activity" :key="index"
|
|
|
- draggable="true"
|
|
|
- @dragstart="handleDragStart($event, item)"
|
|
|
- @dragover.prevent="handleDragOver($event, item)"
|
|
|
- @dragenter="handleDragEnter($event, item)"
|
|
|
- @dragend="handleDragEnd($event, item)">
|
|
|
- {{item}}
|
|
|
- </span>
|
|
|
- <span class="info">可拖动按钮调整活动的优先展示顺序</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+<!-- <div class="layui-row layui-col-space15">-->
|
|
|
+<!-- <div class="layui-col-xs12 layui-col-sm12 layui-col-md12">-->
|
|
|
+<!-- <div class="grid-demo grid-demo-bg1">-->
|
|
|
+<!-- <div class="layui-form-item">-->
|
|
|
+<!-- <label class="layui-form-label">活动优先级</label>-->
|
|
|
+<!-- <div class="layui-input-block">-->
|
|
|
+<!-- <span class="layui-btn layui-btn-sm layui-btn-normal"-->
|
|
|
+<!-- :style="'background-color:'+activity[item]"-->
|
|
|
+<!-- v-for="(item,index) in formData.activity" :key="index"-->
|
|
|
+<!-- draggable="true"-->
|
|
|
+<!-- @dragstart="handleDragStart($event, item)"-->
|
|
|
+<!-- @dragover.prevent="handleDragOver($event, item)"-->
|
|
|
+<!-- @dragenter="handleDragEnter($event, item)"-->
|
|
|
+<!-- @dragend="handleDragEnd($event, item)">-->
|
|
|
+<!-- {{item}}-->
|
|
|
+<!-- </span>-->
|
|
|
+<!-- <span class="info">可拖动按钮调整活动的优先展示顺序</span>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </div>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1020,6 +1033,7 @@
|
|
|
volume: 0,
|
|
|
brokerage: 0,
|
|
|
brokerage_two: 0,
|
|
|
+ bottle: 0,
|
|
|
},
|
|
|
attrs: [],
|
|
|
description: '',
|
|
@@ -1054,6 +1068,7 @@
|
|
|
ot_price: 0,
|
|
|
stock: 0,
|
|
|
bar_code: '',
|
|
|
+ bottle: 0,
|
|
|
weight: 0,
|
|
|
volume: 0,
|
|
|
},
|
|
@@ -1166,6 +1181,7 @@
|
|
|
ot_price: 0,
|
|
|
stock: 0,
|
|
|
bar_code: '',
|
|
|
+ bottle: 0,
|
|
|
weight: 0,
|
|
|
volume: 0,
|
|
|
});
|
|
@@ -1197,6 +1213,9 @@
|
|
|
if (that.batchAttr.bar_code != '') {
|
|
|
item.bar_code = that.batchAttr.bar_code;
|
|
|
}
|
|
|
+ if (that.batchAttr.bottle > 0) {
|
|
|
+ item.bottle = that.batchAttr.bottle;
|
|
|
+ }
|
|
|
if (that.batchAttr.weight > 0) {
|
|
|
item.weight = that.batchAttr.weight;
|
|
|
}
|
|
@@ -1610,6 +1629,7 @@
|
|
|
weight: that.formData.attr.weight,
|
|
|
brokerage: that.formData.attr.brokerage,
|
|
|
brokerage_two: that.formData.attr.brokerage_two,
|
|
|
+ bottle: that.formData.attr.bottle,
|
|
|
};
|
|
|
that.formData.attrs = [attr];
|
|
|
} else {
|