|
|
@@ -38,17 +38,7 @@
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title">库存</view>
|
|
|
<input v-model="form.stock" style="width:260upx;" placeholder-class="phcolor" @focus="form.stock=''" @input="changeStock($event)" class="tui-input" name="stock" placeholder="请输入" type="digit"/>
|
|
|
- <button v-if="productData.id > 0" class="admin-button-com blue middle" @click="goStockDetail(productData.id)">库存变动明细</button>
|
|
|
- </tui-list-cell>
|
|
|
-
|
|
|
- <tui-list-cell class="line-cell" :hover="false">
|
|
|
- <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" />
|
|
|
- </tui-list-cell>
|
|
|
-
|
|
|
- <tui-list-cell class="line-cell" :hover="false">
|
|
|
- <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" />
|
|
|
+ <button v-if="productData.id > 0" class="admin-button-com blue middle" @click="goStockDetail(productData.id)">库存变动记录</button>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :arrow="true">
|
|
|
@@ -83,20 +73,6 @@
|
|
|
<button v-if="productData.id > 0" class="admin-button-com blue middle" @click="doPrintLabel(productData.id)">打标签</button>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
- <tui-list-cell class="line-cell" :hover="false">
|
|
|
- <view class="tui-title">颜色管理</view>
|
|
|
- <view class="switch_bx">
|
|
|
- <switch :checked="form.variety == 0 ? false : true" @change="varietyChange" style="transform: scale(0.8,0.8)" />
|
|
|
- <text v-if="form.variety == 1">开启</text>
|
|
|
- <text v-else>关闭</text>
|
|
|
- </view>
|
|
|
- </tui-list-cell>
|
|
|
-
|
|
|
- <tui-list-cell class="line-cell" :hover="false">
|
|
|
- <view class="tui-title">开单基数</view>
|
|
|
- <input v-model="form.scanNum" style="width:300upx;" @focus="form.scanNum=''" placeholder-class="phcolor" class="tui-input" name="scanNum" placeholder="0表示增加1扎,大于0表示增加多少支" maxlength="50" type="number" />
|
|
|
- </tui-list-cell>
|
|
|
-
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title">上架状态</view>
|
|
|
<view class="switch_bx">
|
|
|
@@ -117,6 +93,8 @@
|
|
|
|
|
|
</view>
|
|
|
|
|
|
+
|
|
|
+
|
|
|
<view class="module-com input-line-wrap goods-wrap">
|
|
|
<view class="module-tit">
|
|
|
<span>花材图片</span>
|
|
|
@@ -129,6 +107,49 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
+
|
|
|
+ <view class="module-com input-line-wrap">
|
|
|
+
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <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" />
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <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" />
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <view class="tui-title">颜色管理</view>
|
|
|
+ <view class="switch_bx">
|
|
|
+ <switch :checked="form.variety == 0 ? false : true" @change="varietyChange" style="transform: scale(0.8,0.8)" />
|
|
|
+ <text v-if="form.variety == 1">启用</text>
|
|
|
+ <text v-else>关闭</text>
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <view class="tui-title">开单默认基数</view>
|
|
|
+ <input v-model="form.scanNum" @focus="form.scanNum=''" placeholder-class="phcolor" class="tui-input" name="scanNum" placeholder="0表示1扎,大于0表示增加多少支" maxlength="50" type="number" />
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <view class="tui-title">允许单支购买</view>
|
|
|
+ <view class="switch_bx">
|
|
|
+ <switch :checked="form.smallShow == 0 ? false : true" @change="smallShowChange" style="transform: scale(0.8,0.8)" />
|
|
|
+ <text v-if="form.smallShow == 1">是</text>
|
|
|
+ <text v-else>否</text>
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <view class="tui-title">单支价格基数</view>
|
|
|
+ <input v-model="form.smallRatio" @focus="form.smallRatio=''" placeholder-class="phcolor" class="tui-input" name="smallRatio" placeholder="请填写" type="number" />
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
<view class="app-footer">
|
|
|
<button class="admin-button-com big default" @click="goBack()">取消</button>
|
|
|
<button v-if="option.ptItemId" class="admin-button-com big blue" formType="submit" @click="status = 1">添加</button>
|
|
|
@@ -137,11 +158,6 @@
|
|
|
|
|
|
</form>
|
|
|
|
|
|
- <!--<uni-popup ref="inputDialog" type="dialog">
|
|
|
- <uni-popup-dialog ref="inputClose" mode="input" title="标签数量" value=""
|
|
|
- placeholder="请输入标签数量" @confirm="dialogPrintLabelConfirm"></uni-popup-dialog>
|
|
|
- </uni-popup>-->
|
|
|
-
|
|
|
<modal-module :show="printLabelShow" @click="dialogInputConfirm" :maskClosable="true" title="打印数量" padding="30rpx 30rpx" >
|
|
|
<template v-slot:content>
|
|
|
<div class="app-modal-input-wrap">
|
|
|
@@ -200,7 +216,9 @@ export default {
|
|
|
delStatus:0,
|
|
|
itemId:0,
|
|
|
scanNum:0,
|
|
|
- variety:0
|
|
|
+ variety:0,
|
|
|
+ smallRatio:1,
|
|
|
+ smallShow:0
|
|
|
},
|
|
|
itemClassSelectedData:{},
|
|
|
itemClassData:[],
|
|
|
@@ -297,6 +315,9 @@ export default {
|
|
|
varietyChange(e){
|
|
|
this.form.variety = e.detail.value ? 1 : 0;
|
|
|
},
|
|
|
+ smallShowChange(e){
|
|
|
+ this.form.smallShow = e.detail.value ? 1 : 0;
|
|
|
+ },
|
|
|
statusChange(e){
|
|
|
this.form.status = e.detail.value ? 1 : 2;
|
|
|
},
|
|
|
@@ -569,7 +590,7 @@ export default {
|
|
|
{
|
|
|
name: "scanNum",
|
|
|
rule: ["required"],
|
|
|
- msg: ["请填写开单基数数量"]
|
|
|
+ msg: ["请填写开单默认基数数量"]
|
|
|
}
|
|
|
];
|
|
|
// 进行表单检查
|