20231-9
This commit is contained in:
@@ -31,29 +31,29 @@
|
|||||||
oninput="value=value.replace(/[^0-9]/g,'')" />
|
oninput="value=value.replace(/[^0-9]/g,'')" />
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span class="item_text">单价:</span>
|
<span class="item_text">价格 (元/斤):</span>
|
||||||
<el-input v-model="formobj.price" placeholder="" class="item_input" clearable
|
<el-input v-model="formobj.price" placeholder="" class="item_input" clearable
|
||||||
oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '')" />
|
oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '')" />
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<!-- <div class="item">
|
||||||
<span class="item_text">标准单位:</span>
|
<span class="item_text">标准单位:</span>
|
||||||
<el-input v-model="formobj.unitName" placeholder="例如:份" class="item_input" clearable />
|
<el-input v-model="formobj.unitName" placeholder="例如:份" :readonly="true" class="item_input" clearable />
|
||||||
|
</div> -->
|
||||||
|
<div class="item">
|
||||||
|
<span class="item_text">商品单位:</span>
|
||||||
|
<el-input type="hidden" v-model="formobj.specificationUnit" placeholder="例如:斤/瓶/袋/箱/盒" class="item_input" clearable />
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span class="item_text">规格单位:</span>
|
<span class="item_text">规格 (斤/份):</span>
|
||||||
<el-input v-model="formobj.specificationUnit" placeholder="例如:斤/瓶/袋/箱/盒" class="item_input" clearable />
|
<el-input v-model="formobj.weight" placeholder="例如:30" class="item_input" clearable oninput="value=value.replace(/[^0-9]/g,'')" />
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span class="item_text">每份数量:</span>
|
<span class="item_text">规格描述:</span>
|
||||||
<el-input v-model="formobj.weight" placeholder="每份的重量,例如:30" class="item_input" clearable oninput="value=value.replace(/[^0-9]/g,'')" />
|
|
||||||
</div>
|
|
||||||
<div class="item">
|
|
||||||
<span class="item_text">标准规格:</span>
|
|
||||||
<el-input v-model="formobj.remarks" placeholder="例如:一份30斤" class="item_input" clearable />
|
<el-input v-model="formobj.remarks" placeholder="例如:一份30斤" class="item_input" clearable />
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span class="item_text">商品介绍:</span>
|
<span class="item_text">商品简介:</span>
|
||||||
<el-input v-model="formobj.content" placeholder="商品介绍" class="item_input" clearable />
|
<el-input v-model="formobj.content" placeholder="商品简介" class="item_input" clearable />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="item" style="margin-bottom: 100px;margin-top: 100px;">
|
<div class="item" style="margin-bottom: 100px;margin-top: 100px;">
|
||||||
@@ -98,7 +98,7 @@
|
|||||||
code: '',
|
code: '',
|
||||||
barcode: '',
|
barcode: '',
|
||||||
price: "",
|
price: "",
|
||||||
unitName: "",
|
unitName: "份",
|
||||||
specificationUnit:"",
|
specificationUnit:"",
|
||||||
weight:"",
|
weight:"",
|
||||||
remarks: "",
|
remarks: "",
|
||||||
@@ -150,7 +150,7 @@
|
|||||||
code: '',
|
code: '',
|
||||||
barcode: '',
|
barcode: '',
|
||||||
price: "",
|
price: "",
|
||||||
unitName: "",
|
unitName: "份",
|
||||||
specificationUnit:"",
|
specificationUnit:"",
|
||||||
weight:"",
|
weight:"",
|
||||||
remarks: "",
|
remarks: "",
|
||||||
|
|||||||
@@ -168,14 +168,14 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>商品数量</td>
|
<td>份数</td>
|
||||||
<td>
|
<td>
|
||||||
<el-input v-model="GiftBagGood.goodsNumber" style="width:100%"
|
<el-input v-model="GiftBagGood.goodsNumber" style="width:100%"
|
||||||
oninput="value=value.replace(/^(0+)|[^\d]+/g,'')" @input="input"></el-input>
|
oninput="value=value.replace(/^(0+)|[^\d]+/g,'')" @input="input"></el-input>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>商品价格</td>
|
<td>单价</td>
|
||||||
<td>
|
<td>
|
||||||
<!-- <span style="width:100%">{{GiftBagGood.price}}</span> -->
|
<!-- <span style="width:100%">{{GiftBagGood.price}}</span> -->
|
||||||
<el-input v-model="GiftBagGood.price" style="width:100%"
|
<el-input v-model="GiftBagGood.price" style="width:100%"
|
||||||
|
|||||||
Reference in New Issue
Block a user