|
|
@@ -3,7 +3,7 @@
|
|
|
<view class="billing_box_bg">
|
|
|
<view class="input-wrap">
|
|
|
<text style="margin-right:30upx;">剩{{stock}}扎</text>
|
|
|
- 单价:<input @focus="option.price=''" style="border:1upx solid #CCC;width:110upx;margin-right:40upx;height:70upx;" placeholder-style="color:#CCCCCC" v-model="option.price" type="digit" placeholder="" />
|
|
|
+ 单价:<input @focus="option.price=''" style="border:1upx solid #CCC;width:110upx;margin-right:40upx;height:70upx;text-align:center;" placeholder-style="color:#CCCCCC" v-model="option.price" type="digit" placeholder="" />
|
|
|
<button class="admin-button-com middle blue" @click="goChange()">修改库存</button>
|
|
|
</view>
|
|
|
<view class="scroll-middle_bx">
|
|
|
@@ -93,14 +93,23 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
confirmClearXj(){
|
|
|
- uni.removeStorageSync("xj"+this.option.customId)
|
|
|
+
|
|
|
+ let saveInfo = uni.getStorageSync("xj"+this.option.customId)
|
|
|
+ let ptItemId = this.option.ptItemId?this.option.ptItemId:0
|
|
|
+ if (!this.$util.isEmpty(saveInfo)) {
|
|
|
+ saveInfo.forEach((colorItem, colorIndex) => {
|
|
|
+ if (colorItem.ptItemId == ptItemId) {
|
|
|
+ saveInfo.splice(colorIndex, 1)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ uni.setStorageSync("xj"+this.option.customId, saveInfo)
|
|
|
+ }
|
|
|
+
|
|
|
if(!this.$util.isEmpty(this.numList)){
|
|
|
- console.log('this.numList',this.numList)
|
|
|
this.numList.forEach((item,index,arr)=>{
|
|
|
arr[index]=''
|
|
|
})
|
|
|
- this.$forceUpdate();
|
|
|
- console.log('this.numList',this.numList)
|
|
|
+ this.$forceUpdate()
|
|
|
}
|
|
|
|
|
|
//返回上一页带参数
|