diff --git a/src/pages/modules/finished/finished-instore.vue b/src/pages/modules/finished/finished-instore.vue index cc78ada..137e035 100644 --- a/src/pages/modules/finished/finished-instore.vue +++ b/src/pages/modules/finished/finished-instore.vue @@ -49,7 +49,7 @@
- +
@@ -77,6 +77,7 @@ {{e.material_name}} {{e.material_spec}} + {{e.qty_unit_name}} {{e.bucketunique}} {{e.sale_code}} @@ -115,12 +116,25 @@ export default { options3: [], value3: '', remark: '', - dataList: [{material_code: '1'}], + dataList: [{material_code: '1', sale_qty: '100'}], pkId: '', pkObj: {}, disabled2: false } }, + computed: { + flag () { + let flag = false + if (this.dataList.length) { + this.dataList.map(el => { + if (el.sale_qty === '' || Number(el.sale_qty) < 0) { + flag = true + } + }) + } + return flag + } + }, beforeRouteLeave (to, from, next) { if (to.path === '/home' || to.path === '/login') { this.$store.dispatch('setKeepAlive', []) @@ -142,7 +156,7 @@ export default { this.toSure() }, showDialog () { - if (this.value1 === '' || this.value2 === '' || this.value3 === '' || this.dataList === []) { + if (this.flag || this.value1 === '' || this.value2 === '' || this.value3 === '' || this.dataList === []) { // this.toast('请填写完整') return } @@ -226,5 +240,5 @@ export default { .search-label_1 width 45px .filter-table th, .filter-table td - line-height 24px + line-height 22px