|
|
@@ -52,7 +52,7 @@
|
|
|
class="tui-input"
|
|
|
name="discountPrice"
|
|
|
@focus="form.discountPrice=''"
|
|
|
- placeholder="没有做特价活动请填0"
|
|
|
+ placeholder="没有特价填0"
|
|
|
maxlength="50"
|
|
|
type="digit"
|
|
|
/>
|
|
|
@@ -64,20 +64,6 @@
|
|
|
<button v-if="productData.id" class="admin-button-com blue small" @click="goStockDetail(productData.id)">库存明细</button>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
- <tui-list-cell class="line-cell" :hover="false">
|
|
|
- <div class="tui-title">每扎加价</div>
|
|
|
- <input
|
|
|
- v-model="form.addPrice"
|
|
|
- placeholder-class="phcolor"
|
|
|
- class="tui-input"
|
|
|
- name="addPrice"
|
|
|
- @focus="form.addPrice=''"
|
|
|
- placeholder="请填写加价"
|
|
|
- maxlength="50"
|
|
|
- type="digit"
|
|
|
- />
|
|
|
- </tui-list-cell>
|
|
|
-
|
|
|
<tui-list-cell class="line-cell" :arrow="true">
|
|
|
<div class="tui-title">分类</div>
|
|
|
<picker
|
|
|
@@ -126,6 +112,59 @@
|
|
|
</picker>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <div class="tui-title">散客加价</div>
|
|
|
+ <input
|
|
|
+ v-model="form.skAddPrice"
|
|
|
+ placeholder-class="phcolor"
|
|
|
+ class="tui-input"
|
|
|
+ name="skAddPrice"
|
|
|
+ @focus="form.skAddPrice=''"
|
|
|
+ placeholder="请填写散客加价"
|
|
|
+ maxlength="50"
|
|
|
+ type="digit"
|
|
|
+ />
|
|
|
+ </tui-list-cell>
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <div class="tui-title">普店加价</div>
|
|
|
+ <input
|
|
|
+ v-model="form.addPrice"
|
|
|
+ placeholder-class="phcolor"
|
|
|
+ class="tui-input"
|
|
|
+ name="addPrice"
|
|
|
+ @focus="form.addPrice=''"
|
|
|
+ placeholder="请填写普店加价"
|
|
|
+ maxlength="50"
|
|
|
+ type="digit"
|
|
|
+ />
|
|
|
+ </tui-list-cell>
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <div class="tui-title">银店加价</div>
|
|
|
+ <input
|
|
|
+ v-model="form.hjAddPrice"
|
|
|
+ placeholder-class="phcolor"
|
|
|
+ class="tui-input"
|
|
|
+ name="hjAddPrice"
|
|
|
+ @focus="form.hjAddPrice=''"
|
|
|
+ placeholder="请填写银店加价"
|
|
|
+ maxlength="50"
|
|
|
+ type="digit"
|
|
|
+ />
|
|
|
+ </tui-list-cell>
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <div class="tui-title">金店加价</div>
|
|
|
+ <input
|
|
|
+ v-model="form.zsAddPrice"
|
|
|
+ placeholder-class="phcolor"
|
|
|
+ class="tui-input"
|
|
|
+ name="zsAddPrice"
|
|
|
+ @focus="form.zsAddPrice=''"
|
|
|
+ placeholder="请填写金店加价"
|
|
|
+ maxlength="50"
|
|
|
+ type="digit"
|
|
|
+ />
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<div class="tui-title">单位比</div>
|
|
|
<input
|
|
|
@@ -232,7 +271,10 @@ export default {
|
|
|
smallUnitId:2,
|
|
|
classId:'',
|
|
|
price:'',
|
|
|
+ skAddPrice:'',
|
|
|
addPrice:'',
|
|
|
+ hjAddPrice:'',
|
|
|
+ zsAddPrice:'',
|
|
|
discountPrice:'',
|
|
|
weight:'',
|
|
|
cover:'',
|
|
|
@@ -328,7 +370,10 @@ export default {
|
|
|
this.form.delStatus = 0
|
|
|
this.form.id = 0
|
|
|
this.form.price = ''
|
|
|
+ this.form.skAddPrice =''
|
|
|
this.form.addPrice =''
|
|
|
+ this.form.hjAddPrice =''
|
|
|
+ this.form.zsAddPrice =''
|
|
|
this.form.discountPrice = ''
|
|
|
})
|
|
|
},
|
|
|
@@ -425,8 +470,20 @@ export default {
|
|
|
uni.showToast({title:"请填写售价",icon:"none"})
|
|
|
return;
|
|
|
}
|
|
|
+ if(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/.test(this.form.skAddPrice) == false){
|
|
|
+ uni.showToast({title:"请填写散客加价",icon:"none"})
|
|
|
+ return;
|
|
|
+ }
|
|
|
if(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/.test(this.form.addPrice) == false){
|
|
|
- uni.showToast({title:"请填写加价",icon:"none"})
|
|
|
+ uni.showToast({title:"请填写普店加价",icon:"none"})
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/.test(this.form.hjAddPrice) == false){
|
|
|
+ uni.showToast({title:"请填写银店加价",icon:"none"})
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/.test(this.form.zsAddPrice) == false){
|
|
|
+ uni.showToast({title:"请填写金店加价",icon:"none"})
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
@@ -486,10 +543,25 @@ export default {
|
|
|
rule: ["required"],
|
|
|
msg: ["请填写售价"]
|
|
|
},
|
|
|
+ {
|
|
|
+ name: "skAddPrice",
|
|
|
+ rule: ["required"],
|
|
|
+ msg: ["请填写散客加价"]
|
|
|
+ },
|
|
|
{
|
|
|
name: "addPrice",
|
|
|
rule: ["required"],
|
|
|
- msg: ["请填写每扎加价"]
|
|
|
+ msg: ["请填写普店加价"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "hjAddPrice",
|
|
|
+ rule: ["required"],
|
|
|
+ msg: ["请填写银店加价"]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "zsAddPrice",
|
|
|
+ rule: ["required"],
|
|
|
+ msg: ["请填写金店加价"]
|
|
|
},
|
|
|
{
|
|
|
name: "discountPrice",
|