|
|
@@ -3,7 +3,8 @@
|
|
|
<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:200upx;" placeholder-style="color:#CCCCCC" v-model="option.price" type="digit" placeholder="请填写" />
|
|
|
+ 单价:<input @focus="option.price=''" style="border:1upx solid #CCC;width:160upx;margin-right:40upx;" placeholder-style="color:#CCCCCC" v-model="option.price" type="digit" placeholder="请填写" />
|
|
|
+ <button class="admin-button-com mini-btn blue" @click="goChange()">修改库存</button>
|
|
|
</view>
|
|
|
<view class="scroll-middle_bx">
|
|
|
<block>
|
|
|
@@ -81,8 +82,13 @@ export default {
|
|
|
onPullDownRefresh() {
|
|
|
},
|
|
|
onShow(){
|
|
|
+ this.init()
|
|
|
},
|
|
|
methods: {
|
|
|
+ goChange(){
|
|
|
+ let productId = this.option.productId ? this.option.productId : 0
|
|
|
+ this.$util.pageTo({url:'/admin/item/xjSelect?itemId='+productId})
|
|
|
+ },
|
|
|
clearXj(){
|
|
|
let that = this
|
|
|
this.$util.confirmModal({content:'确认全部清除?'},() => {
|
|
|
@@ -333,8 +339,8 @@ export default {
|
|
|
}
|
|
|
& .kc {
|
|
|
color: #999999;
|
|
|
- font-size: 24upx;
|
|
|
- padding: 10upx 0 10upx;
|
|
|
+ font-size: 26upx;
|
|
|
+ padding: 12upx 0 12upx;
|
|
|
}
|
|
|
& .num-open_bx {
|
|
|
display: flex;
|