|
|
@@ -14,23 +14,17 @@
|
|
|
存在重复编号花材,点击查看,请删除其中一个
|
|
|
</view>
|
|
|
</block>
|
|
|
- <tui-list-cell class="line-cell" :hover="false" v-if="productData.id && productData.id>0">
|
|
|
- <view class="tui-title">编号</view>
|
|
|
- <view style="color:#CCCCCC;width:300upx;" @click="getProductId(productData)">
|
|
|
- {{productData.id?productData.id:0}}-{{productData.itemId?productData.itemId:0}}
|
|
|
- </view>
|
|
|
- <button v-if="productData.id > 0" class="admin-button-com blue middle" @click="moreDo()">更多操作</button>
|
|
|
- </tui-list-cell>
|
|
|
+
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title">名称</view>
|
|
|
- <input v-model="form.name" placeholder-class="phcolor" class="tui-input" name="name" placeholder="请填写名称" @input="fillName($event)" maxlength="50" type="text" />
|
|
|
+ <input v-model="form.name" placeholder-class="phcolor" class="tui-input" name="name" placeholder="请填写名称" @input="fillName($event)" type="text" />
|
|
|
</tui-list-cell>
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title">初始名称</view>
|
|
|
<view style="color:#CCCCCC;width:300upx;height:45upx;display:flex;align-items:center;overflow:hidden;">
|
|
|
{{productData.ptItemInfo ? productData.ptItemInfo.name : ''}}
|
|
|
- <image :src="`${constant.imgUrl}/icon/official8.png`" v-if="productData.auth == 1" mode="widthFix" style="width:38upx;height:38upx;display:inline-block;margin-left:10upx;"></image>
|
|
|
</view>
|
|
|
+ <button v-if="productData.id > 0" class="admin-button-com blue middle" @click="moreDo()">更多操作</button>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
@@ -92,9 +86,17 @@
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title" style="color:#3385FF;font-weight:bold;">库存</view>
|
|
|
- <input v-model="form.stock" style="width:300upx;" placeholder-class="phcolor" @focus="form.stock=''" @input="changeStock($event)" class="tui-input" name="stock" placeholder="请输入" type="digit"/>
|
|
|
+ <input v-model="form.stock" style="color:#3385FF;width:300upx;font-weight:bold;" 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)">库存记录</button>
|
|
|
+ <button v-if="productData.id > 0" class="admin-button-com blue middle" @click="goStockDetail(productData)">变动明细</button>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <view class="tui-title">库存不足</view>
|
|
|
+ <view class="tui-input">
|
|
|
+ <button class="admin-button-com middle" :class="form.virtualStock == 0 ? 'blue' : 'default'" @click="virtualStockChange(0)">无需自动补充</button>
|
|
|
+ <button class="admin-button-com middle" :class="form.virtualStock == 1 ? 'blue' : 'default'" @click="virtualStockChange(1)" style="margin-left:38upx;">需要自动补充</button>
|
|
|
+ </view>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
@@ -118,21 +120,6 @@
|
|
|
</view>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
- <tui-list-cell class="line-cell" :hover="false">
|
|
|
- <view class="tui-title">比例类型</view>
|
|
|
- <radio-group class="tui-input" @change="ratioTypeChange">
|
|
|
- <label class="list" for="fixedLink">
|
|
|
- <radio id="fixedLink" value="0" :checked="form.ratioType == 0" style="transform: scale(0.7,0.7);" />
|
|
|
- <span class="checkbox-text" style="font-size:30upx;">固定</span>
|
|
|
- </label>
|
|
|
- <label class="list" for="dimLink">
|
|
|
- <radio id="dimLink" value="1" :checked="form.ratioType == 1" style="transform: scale(0.7,0.7);" />
|
|
|
-
|
|
|
- <span class="checkbox-text" style="font-size:30upx;">模糊(若干)</span>
|
|
|
- </label>
|
|
|
- </radio-group>
|
|
|
- </tui-list-cell>
|
|
|
-
|
|
|
<tui-list-cell class="line-cell" :arrow="false" :hover="false">
|
|
|
<view class="tui-title">大单位</view>
|
|
|
<input v-model="form.bigUnitId" name="bigUnitId" type="text" hidden />
|
|
|
@@ -149,8 +136,16 @@
|
|
|
<button v-else class="admin-button-com default middle" style="width:150upx;" @click.stop="notAllowChange()">修改</button>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <view class="tui-title">包装类型</view>
|
|
|
+ <view class="tui-input">
|
|
|
+ <button class="admin-button-com middle" :class="form.ratioType == 0 ? 'blue' : 'default'" @click="ratioTypeChange(0)">固定支数</button>
|
|
|
+ <button class="admin-button-com middle" :class="form.ratioType == 1 ? 'blue' : 'default'" @click="ratioTypeChange(1)" style="margin-left:140upx;">没有固定</button>
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
<tui-list-cell class="line-cell" :arrow="false" v-if="form.ratioType == 0" :hover="false">
|
|
|
- <view class="tui-title">单位比</view>
|
|
|
+ <view class="tui-title">几支装</view>
|
|
|
<input v-model="form.ratio" disabled="true" placeholder-class="phcolor" @click="$msg('不可修改')" style="width:300upx;color:#CCCCCC;"
|
|
|
class="tui-input" name="ratio" placeholder="1扎=20支,请填写20" maxlength="50" type="number" />
|
|
|
<button v-if="productData.id > 0 && productData.hasRightChange == 1" class="admin-button-com blue middle" @click.stop="changeRatio()" style="width:150upx;">修改</button>
|
|
|
@@ -246,45 +241,33 @@
|
|
|
</block>
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title">顺序值</view>
|
|
|
-
|
|
|
<input v-model="form.inTurn" placeholder-class="phcolor" class="tui-input" name="inTurn" @focus="form.inTurn=''" placeholder="请填写数字" type="number" />
|
|
|
</tui-list-cell>
|
|
|
|
|
|
- <tui-list-cell class="line-cell" :hover="false">
|
|
|
- <view class="tui-title">线上隐藏</view>
|
|
|
+ <tui-list-cell class="line-cell" :hover="false" v-if="Number(getMyShopInfo.pfShopId)>0">
|
|
|
+ <view class="tui-title">线上状态</view>
|
|
|
<view class="switch_bx">
|
|
|
<switch :checked="form.frontHide == 0 ? false : true" @change="frontHideChange" style="transform: scale(0.8,0.8)" />
|
|
|
- <text v-if="form.frontHide == 0">否</text>
|
|
|
- <text v-else>是</text>
|
|
|
+ <text v-if="form.frontHide == 0">批发端显示</text>
|
|
|
+ <text v-else>批发端隐藏</text>
|
|
|
</view>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
- <view class="tui-title">库存类型</view>
|
|
|
- <radio-group class="tui-input" @change="virtualStockChange">
|
|
|
- <label class="list" for="realLink">
|
|
|
- <radio id="realLink" value="0" :checked="form.virtualStock == 0" style="transform: scale(0.7,0.7);" />
|
|
|
- <span class="checkbox-text" style="font-size:30upx;">真实</span>
|
|
|
- </label>
|
|
|
- <label class="list" for="virLink">
|
|
|
- <radio id="virLink" value="1" :checked="form.virtualStock == 1" style="transform: scale(0.7,0.7);" />
|
|
|
- <span class="checkbox-text" style="font-size:30upx;">虚拟</span>
|
|
|
- </label>
|
|
|
- </radio-group>
|
|
|
+ <view class="tui-title">线上状态</view>
|
|
|
+ <view class="switch_bx">
|
|
|
+ <switch :checked="form.frontUse == 0 ? false : true" @change="frontUseChange" style="transform: scale(0.8,0.8)" />
|
|
|
+ <text v-if="form.frontUse == 0">显示</text>
|
|
|
+ <text v-else>隐藏</text>
|
|
|
+ </view>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title">单独统计</view>
|
|
|
- <radio-group class="tui-input" @change="belongCostChange">
|
|
|
- <label class="list" for="noLink">
|
|
|
- <radio id="noLink" value="0" :checked="belongCost == 0" style="transform: scale(0.7,0.7);" />
|
|
|
- <span class="checkbox-text" style="font-size:30upx;">不要</span>
|
|
|
- </label>
|
|
|
- <label class="list" for="needLink">
|
|
|
- <radio id="needLink" value="1" :checked="belongCost == 1" style="transform: scale(0.7,0.7);" />
|
|
|
- <span class="checkbox-text" style="font-size:30upx;">需要</span>
|
|
|
- </label>
|
|
|
- </radio-group>
|
|
|
+ <view class="tui-input">
|
|
|
+ <button class="admin-button-com" :class="belongCost == 0 ? 'blue' : 'default'" @click="belongCostChange(0)">不要</button>
|
|
|
+ <button class="admin-button-com" :class="belongCost == 1 ? 'blue' : 'default'" @click="belongCostChange(1)" style="margin-left: 20upx;">需要</button>
|
|
|
+ </view>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :arrow="true" @click="selectMyItem()" v-if="productData.id && Number(productData.id)>0">
|
|
|
@@ -292,6 +275,13 @@
|
|
|
<view>{{ productData.partAcceptItemName?productData.partAcceptItemName:'' }}</view>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
+ <tui-list-cell class="line-cell" :hover="false" v-if="productData.id && productData.id>0">
|
|
|
+ <view class="tui-title">编号</view>
|
|
|
+ <view style="color:#CCCCCC;width:300upx;" @click="getProductId(productData)">
|
|
|
+ {{productData.id?productData.id:0}}-{{productData.itemId?productData.itemId:0}}
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
<view class="app-footer">
|
|
|
@@ -502,7 +492,9 @@ export default {
|
|
|
stockWarning:5,
|
|
|
status:2,
|
|
|
itemId:0,
|
|
|
+ smallRatio:1,
|
|
|
frontHide:0,
|
|
|
+ frontUse:0,
|
|
|
virtualStock:0,
|
|
|
ratioType:0,
|
|
|
inTurn:100,
|
|
|
@@ -1012,8 +1004,8 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- ratioTypeChange(e) {
|
|
|
- this.form.ratioType = e.detail.value;
|
|
|
+ ratioTypeChange(value) {
|
|
|
+ this.form.ratioType = value;
|
|
|
},
|
|
|
fastSubmit(){
|
|
|
this.dialogInputConfirm({index: 1})
|
|
|
@@ -1027,12 +1019,9 @@ export default {
|
|
|
goStockDetail(item){
|
|
|
this.$util.pageTo({url: "/pagesStorehouse/stockWarn/detailed?id="+item.id+'&name='+item.name})
|
|
|
},
|
|
|
- virtualStockChange(e){
|
|
|
- this.form.virtualStock = e.detail.value
|
|
|
- },
|
|
|
- belongCostChange(e){
|
|
|
+ belongCostChange(value){
|
|
|
let that = this
|
|
|
- this.belongCost = e.detail.value
|
|
|
+ this.belongCost = value
|
|
|
changeBelongCost({id:this.productData.id,belongCost:this.belongCost}).then(res=>{
|
|
|
if(res.code == 1){
|
|
|
that.$msg(res.msg)
|
|
|
@@ -1056,6 +1045,12 @@ export default {
|
|
|
this.form.status = 2
|
|
|
}
|
|
|
},
|
|
|
+ virtualStockChange(value){
|
|
|
+ this.form.virtualStock = value
|
|
|
+ },
|
|
|
+ frontUseChange(e){
|
|
|
+ this.form.frontUse = e.detail.value ? 1 : 0;
|
|
|
+ },
|
|
|
//获取拼音首字母 shish 20210707
|
|
|
fillName(event){
|
|
|
let val = event.target.value
|
|
|
@@ -1115,7 +1110,9 @@ export default {
|
|
|
this.form.hjAddPrice = 3
|
|
|
this.form.discountPrice = 0
|
|
|
this.form.cost = 0
|
|
|
+ this.form.smallRatio = 1
|
|
|
this.form.frontHide = 0
|
|
|
+ this.form.frontUse = 0
|
|
|
this.form.virtualStock = 0
|
|
|
this.form.limitBuy = 0
|
|
|
this.cost = res.data && res.data.cost ? parseFloat(res.data.cost) : 0
|