|
@@ -20,7 +20,7 @@
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
- <view class="tui-title">花店价</view>
|
|
|
|
|
|
|
+ <view class="tui-title">批发价</view>
|
|
|
<input v-model="form.price" style="width:260upx;" placeholder-class="phcolor" class="tui-input" name="price" @focus="form.price=''" placeholder="请填写" type="digit" />
|
|
<input v-model="form.price" style="width:260upx;" placeholder-class="phcolor" class="tui-input" name="price" @focus="form.price=''" placeholder="请填写" type="digit" />
|
|
|
<button v-if="productData.id > 0" class="admin-button-com blue middle" @click="goPriceDetail(productData)">价格变动记录</button>
|
|
<button v-if="productData.id > 0" class="admin-button-com blue middle" @click="goPriceDetail(productData)">价格变动记录</button>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
@@ -127,12 +127,12 @@
|
|
|
<view class="module-com input-line-wrap">
|
|
<view class="module-com input-line-wrap">
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
- <view class="tui-title">花店价比成本贵</view>
|
|
|
|
|
|
|
+ <view class="tui-title">批发价比成本贵</view>
|
|
|
<input v-model="form.addPrice" placeholder-class="phcolor" class="tui-input" name="addPrice" @focus="form.addPrice=''" placeholder="请填写" maxlength="50" type="digit" />
|
|
<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>
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
- <view class="tui-title">散客价比花店贵</view>
|
|
|
|
|
|
|
+ <view class="tui-title">零售价比花店贵</view>
|
|
|
<input v-model="form.skMore" placeholder-class="phcolor" class="tui-input" name="skMore" @focus="form.skMore=''" placeholder="请填写" maxlength="50" type="digit" />
|
|
<input v-model="form.skMore" placeholder-class="phcolor" class="tui-input" name="skMore" @focus="form.skMore=''" placeholder="请填写" maxlength="50" type="digit" />
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
@@ -530,15 +530,15 @@ export default {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
if(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/.test(this.form.price) == false){
|
|
if(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/.test(this.form.price) == false){
|
|
|
- uni.showToast({title:"请填写花店价",icon:"none"})
|
|
|
|
|
|
|
+ uni.showToast({title:"请填写批发价",icon:"none"})
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
if(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/.test(this.form.addPrice) == false){
|
|
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;
|
|
return;
|
|
|
}
|
|
}
|
|
|
if(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/.test(this.form.skMore) == false){
|
|
if(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/.test(this.form.skMore) == false){
|
|
|
- uni.showToast({title:"请填写散客价比花店贵多少",icon:"none"})
|
|
|
|
|
|
|
+ uni.showToast({title:"请填写零售价比花店贵多少",icon:"none"})
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -603,7 +603,7 @@ export default {
|
|
|
{
|
|
{
|
|
|
name: "addPrice",
|
|
name: "addPrice",
|
|
|
rule: ["required"],
|
|
rule: ["required"],
|
|
|
- msg: ["请填写花店价比成本贵多少"]
|
|
|
|
|
|
|
+ msg: ["请填写批发价比成本贵多少"]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
name: "discountPrice",
|
|
name: "discountPrice",
|
|
@@ -618,7 +618,7 @@ export default {
|
|
|
{
|
|
{
|
|
|
name: "skMore",
|
|
name: "skMore",
|
|
|
rule: ["required"],
|
|
rule: ["required"],
|
|
|
- msg: ["请填写散客价比花店贵多少"]
|
|
|
|
|
|
|
+ msg: ["请填写零售价比花店贵多少"]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
name: "weight",
|
|
name: "weight",
|