|
|
@@ -237,13 +237,6 @@
|
|
|
<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>
|
|
|
- <input v-model="form.smallRatio" @focus="form.smallRatio=''" placeholder-class="phcolor" class="tui-input" name="smallRatio" placeholder="填写数值"
|
|
|
- type="number" style="width:160upx;border:1upx solid #cccccc;text-align:center;" />
|
|
|
- <text style="margin-left:12upx;" v-if="Number(form.ratio)>0">X ¥{{parseFloat((Number(form.price)/Number(form.ratio)).toFixed(2))}} = ¥{{parseFloat((Number(form.smallRatio)*((Number(form.price)/Number(form.ratio)).toFixed(2))).toFixed(2))}}</text>
|
|
|
- </tui-list-cell>
|
|
|
-
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title">商城端隐藏</view>
|
|
|
<view class="switch_bx">
|
|
|
@@ -281,10 +274,6 @@
|
|
|
</radio-group>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
- <tui-list-cell class="line-cell" :hover="false">
|
|
|
- <view class="tui-title">处理区花材</view>
|
|
|
- <button v-if="productData.id > 0" class="admin-button-com default" @click="makeLose(productData)">设为处理花材</button>
|
|
|
- </tui-list-cell>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
@@ -496,7 +485,6 @@ export default {
|
|
|
stockWarning:5,
|
|
|
status:2,
|
|
|
itemId:0,
|
|
|
- smallRatio:1,
|
|
|
frontHide:0,
|
|
|
virtualStock:0,
|
|
|
ratioType:0,
|
|
|
@@ -819,16 +807,6 @@ export default {
|
|
|
closeMoreDoPop(){
|
|
|
this.$refs.rightShowMore.close()
|
|
|
},
|
|
|
- makeLose(item){
|
|
|
- let that = this
|
|
|
- that.$util.confirmModal({content:'确认设为处理用花材?不了解此功能请勿操作?'},() => {
|
|
|
- setLosing({id:item.id}).then(res=>{
|
|
|
- if(res.code == 1){
|
|
|
- this.$msg('设置成功')
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
- },
|
|
|
showChangeOnStock(item){
|
|
|
let that = this
|
|
|
that.$util.confirmModal({content:'确认了解修改后的影响,确认要修改?'},() => {
|
|
|
@@ -1101,7 +1079,6 @@ export default {
|
|
|
this.form.hjAddPrice = 3
|
|
|
this.form.discountPrice = 0
|
|
|
this.form.cost = 0
|
|
|
- this.form.smallRatio = 1
|
|
|
this.form.frontHide = 0
|
|
|
this.form.virtualStock = 0
|
|
|
this.form.limitBuy = 0
|