成品组桶打印
This commit is contained in:
@@ -17,13 +17,13 @@
|
||||
</div>
|
||||
</div>
|
||||
<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 class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">批次</div>
|
||||
<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 class="bottom-filter-tip">
|
||||
@@ -104,7 +104,8 @@ export default {
|
||||
qtyunitName: '',
|
||||
disabled1: false,
|
||||
disabled2: false,
|
||||
materialId: ''
|
||||
materialId: '',
|
||||
disabled3: JSON.stringify(this.$store.getters.materObj1) !== '{}'
|
||||
}
|
||||
},
|
||||
beforeRouteLeave (to, from, next) {
|
||||
@@ -119,7 +120,7 @@ export default {
|
||||
this.val2 = this.$store.getters.materObj1.material_code
|
||||
this.materialId = this.$store.getters.materObj1.material_id
|
||||
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) !== '{}') {
|
||||
this.val2 = this.$store.getters.materObj.material_code
|
||||
@@ -173,9 +174,11 @@ export default {
|
||||
},
|
||||
/** 物料查询 */
|
||||
async searchList () {
|
||||
this.$router.push({
|
||||
path: '/MaterInfoSearchRadio'
|
||||
})
|
||||
if (JSON.stringify(this.$store.getters.materObj1) === '{}') {
|
||||
this.$router.push({
|
||||
path: '/MaterInfoSearchRadio'
|
||||
})
|
||||
}
|
||||
},
|
||||
/** 根据桶查询 */
|
||||
async _endProductqueryInfoBybucket () {
|
||||
@@ -197,10 +200,12 @@ export default {
|
||||
},
|
||||
/** 清空 */
|
||||
clearUp () {
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
this.$store.dispatch('materObj', '')
|
||||
this.val3 = ''
|
||||
this.val1 = ''
|
||||
if (JSON.stringify(this.$store.getters.materObj1) === '{}') {
|
||||
this.val2 = ''
|
||||
this.val3 = ''
|
||||
}
|
||||
this.val4 = ''
|
||||
this.val5 = ''
|
||||
this.val6 = ''
|
||||
|
||||
Reference in New Issue
Block a user