成品组桶打印

This commit is contained in:
2022-07-14 09:55:51 +08:00
parent 60fa5f13de
commit b1e6790c16

View File

@@ -17,13 +17,13 @@
</div> </div>
</div> </div>
<div class="mgl20"> <div class="mgl20">
<button class="btn" @click="searchList">查询</button> <button class="btn" :class="{'btn-disabled': JSON.stringify($store.getters.materObj1) !== '{}'}" @click="searchList">查询</button>
</div> </div>
</div> </div>
<div class="bottom-filter-tip"> <div class="bottom-filter-tip">
<div class="filter-label txtjustify">批次</div> <div class="filter-label txtjustify">批次</div>
<div class="fxcol mgl20"> <div class="fxcol mgl20">
<input type="text" class="filter-input filter-scan-input" v-model="val3"> <input type="text" class="filter-input filter-scan-input" v-model="val3" :disabled="disabled3">
</div> </div>
</div> </div>
<div class="bottom-filter-tip"> <div class="bottom-filter-tip">
@@ -104,7 +104,8 @@ export default {
qtyunitName: '', qtyunitName: '',
disabled1: false, disabled1: false,
disabled2: false, disabled2: false,
materialId: '' materialId: '',
disabled3: JSON.stringify(this.$store.getters.materObj1) !== '{}'
} }
}, },
beforeRouteLeave (to, from, next) { beforeRouteLeave (to, from, next) {
@@ -119,7 +120,7 @@ export default {
this.val2 = this.$store.getters.materObj1.material_code this.val2 = this.$store.getters.materObj1.material_code
this.materialId = this.$store.getters.materObj1.material_id this.materialId = this.$store.getters.materObj1.material_id
this.val3 = this.$store.getters.materObj1.pcsn this.val3 = this.$store.getters.materObj1.pcsn
this.val4 = '50.000' this.val4 = Number(this.$store.getters.materObj1.standard_weight).toFixed(3) + ''
} }
if (JSON.stringify(this.$store.getters.materObj) !== '{}') { if (JSON.stringify(this.$store.getters.materObj) !== '{}') {
this.val2 = this.$store.getters.materObj.material_code this.val2 = this.$store.getters.materObj.material_code
@@ -173,9 +174,11 @@ export default {
}, },
/** 物料查询 */ /** 物料查询 */
async searchList () { async searchList () {
this.$router.push({ if (JSON.stringify(this.$store.getters.materObj1) === '{}') {
path: '/MaterInfoSearchRadio' this.$router.push({
}) path: '/MaterInfoSearchRadio'
})
}
}, },
/** 根据桶查询 */ /** 根据桶查询 */
async _endProductqueryInfoBybucket () { async _endProductqueryInfoBybucket () {
@@ -197,10 +200,12 @@ export default {
}, },
/** 清空 */ /** 清空 */
clearUp () { clearUp () {
this.val1 = ''
this.val2 = ''
this.$store.dispatch('materObj', '') this.$store.dispatch('materObj', '')
this.val3 = '' this.val1 = ''
if (JSON.stringify(this.$store.getters.materObj1) === '{}') {
this.val2 = ''
this.val3 = ''
}
this.val4 = '' this.val4 = ''
this.val5 = '' this.val5 = ''
this.val6 = '' this.val6 = ''