change
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
<span class="filter_label">库存数量</span>
|
||||
</view>
|
||||
<view class="zd-col-16">
|
||||
<input type="number" v-model="materialData.qty1" class="filter_input" disabled>
|
||||
<input type="number" v-model="kcqty" class="filter_input" disabled>
|
||||
</view>
|
||||
<view class="zd-col-2"><span class="filter_unit">KG</span></view>
|
||||
</view>
|
||||
@@ -86,6 +86,7 @@
|
||||
return {
|
||||
title: '',
|
||||
val1: '',
|
||||
kcqty: '',
|
||||
materialData: {},
|
||||
disabled: false
|
||||
};
|
||||
@@ -111,6 +112,7 @@
|
||||
},
|
||||
async _getInvInfoQty () {
|
||||
let res = await getInvInfoQty(this.val1)
|
||||
this.kcqty = res.data.ivt_qty
|
||||
this.materialData.qty1 = res.data.ivt_qty
|
||||
},
|
||||
async _materialBoxInventoryConfirm () {
|
||||
@@ -127,6 +129,10 @@
|
||||
icon: 'none'
|
||||
})
|
||||
this.clearUp()
|
||||
this.$store.dispatch('setPublicObj', '')
|
||||
uni.navigateTo({
|
||||
url: '/pages/Material/dlx-pan-store?title=大料箱盘库'
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
<span class="filter_label">库存数量</span>
|
||||
</view>
|
||||
<view class="zd-col-16">
|
||||
<input type="number" v-model="materialData.qty1" class="filter_input" disabled>
|
||||
<input type="number" v-model="kcqty" class="filter_input" disabled>
|
||||
</view>
|
||||
<view class="zd-col-2"><span class="filter_unit">KG</span></view>
|
||||
</view>
|
||||
@@ -80,7 +80,7 @@
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-5 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-9 button-primary" :class="{'button-info': !val1}" :disabled="disabled1" @tap="labelPrint">标签打印</button>
|
||||
<button class="zd-col-9 button-primary" :class="{'button-info': !val1 || !val2 || !index}" :disabled="disabled" @tap="_materialBoxOutConfirm">确认出库</button>
|
||||
<button class="zd-col-9 button-primary" :class="{'button-info': !val1 && !kcqty}" :disabled="disabled" @tap="_materialBoxOutConfirm">确认出库</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -99,6 +99,7 @@
|
||||
title: '',
|
||||
val1: '',
|
||||
val2: '',
|
||||
kcqty: '',
|
||||
materialData: {},
|
||||
// suppData: {},
|
||||
disabled: false,
|
||||
@@ -127,11 +128,12 @@
|
||||
},
|
||||
async _getInvInfoQty () {
|
||||
let res = await getInvInfoQty(this.val1)
|
||||
this.kcqty = res.data.ivt_qty
|
||||
this.materialData.qty1 = res.data.ivt_qty
|
||||
},
|
||||
async _materialBoxOutConfirm () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.val2) {
|
||||
if (!this.val1 || !this.kcqty) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
@@ -143,6 +145,10 @@
|
||||
icon: 'none'
|
||||
})
|
||||
this.clearUp()
|
||||
this.$store.dispatch('setPublicObj', '')
|
||||
uni.navigateTo({
|
||||
url: '/pages/Material/dlx-out-store?title=大料箱出库'
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
|
||||
@@ -167,7 +167,11 @@
|
||||
icon: 'none'
|
||||
})
|
||||
this.clearUp()
|
||||
uni.navigateBack()
|
||||
this.$store.dispatch('setPublicObj', '')
|
||||
this.$store.dispatch('setpublicArr', '')
|
||||
uni.navigateTo({
|
||||
url: '/pages/Material/mater-in-store?title=物料入库'
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
|
||||
Reference in New Issue
Block a user