diff --git a/src/pages/xinrui/storage/settings/ChengPinBarrelPrint.vue b/src/pages/xinrui/storage/settings/ChengPinBarrelPrint.vue
index fd5dca3..cd72b84 100644
--- a/src/pages/xinrui/storage/settings/ChengPinBarrelPrint.vue
+++ b/src/pages/xinrui/storage/settings/ChengPinBarrelPrint.vue
@@ -17,13 +17,13 @@
-
+
@@ -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 = ''