diff --git a/common/style/layout.css b/common/style/layout.css index f426132..401504a 100644 --- a/common/style/layout.css +++ b/common/style/layout.css @@ -283,7 +283,8 @@ uni-button:after { background: #fff; } .slide_new table tbody tr.checked td { - background-color: #fef6e4; + background-color: #f2f2f2; + color: #000 } /** 提交栏 **/ diff --git a/pages/manage/man-group-disk.vue b/pages/manage/man-group-disk.vue index 9bd6a52..e708946 100644 --- a/pages/manage/man-group-disk.vue +++ b/pages/manage/man-group-disk.vue @@ -53,15 +53,17 @@ 物料编码 物料名称 点位 + 物料数量 - + {{e.vehicle_code}} {{e.vehicle_type}} {{e.material_code}} {{e.material_name}} {{e.point_code}} + {{e.material_qty}} @@ -77,7 +79,7 @@ - + @@ -106,8 +108,7 @@ isV: false, disabled1: false, disabled2: false, - pkId: '', - pkObj: {} + checkArr: [] }; }, created () { @@ -150,6 +151,9 @@ /** grid */ async _queryVehicleGroup () { let res = await queryVehicleGroup() + res.map(el => { + this.$set(el, 'checked', false) + }) this.dataList = [...res] }, getMater () { @@ -158,8 +162,8 @@ }) }, toCheck (e) { - this.pkId = this.pkId === e.group_id ? '' : e.group_id - this.pkObj = this.pkId === e.group_id ? e : {} + e.checked = !e.checked + this.checkArr = this.dataList.filter(i => { return i.checked === true }) }, isVirtual () { this.isV = !this.isV @@ -174,7 +178,7 @@ try { let res = await groupManual(this.index1, this.val1, this.index2, this.val4, this.val5, this.val3, this.isV) this.disabled1 = false - this.pkId = '' + this.checkArr = [] this.clearUp() this._queryVehicleGroup() uni.showToast({ @@ -188,14 +192,20 @@ /** 开始配盘 */ async _groupLink () { this.disabled2 = true - if (!this.pkId) { + if (this.checkArr.length === 0) { this.disabled2 = false return } try { - let res = await groupLink(this.pkId, this.val1) + let arr = [] + this.checkArr.map(el => { + if (el.checked) { + arr.push(el.group_id) + } + }) + let res = await groupLink(arr.toString(), this.val1) this.disabled2 = false - this.pkId = '' + this.checkArr = [] this.clearUp() this._queryVehicleGroup() uni.showToast({ diff --git a/pages/manage/task-flow.vue b/pages/manage/task-flow.vue index 5bcedc8..b00a2ca 100644 --- a/pages/manage/task-flow.vue +++ b/pages/manage/task-flow.vue @@ -37,7 +37,7 @@ - + {{el.point_code}} {{el.point_name}} @@ -68,7 +68,8 @@ dataList: [], disabled: false, pkId1: '', - pkId2: '' + pkId2: '', + pkId3: '' }; }, created () { @@ -81,10 +82,18 @@ this.dataList = [...res] }, checkcode1 (e) { + if (this.pkId3 !== '' && e.point_code !== this.pkId3) { + this.pkId2 = '' + this.pkId3 = '' + } this.pkId1 = this.pkId1 === e.point_code ? '' : e.point_code }, - checkcode2 (e) { - this.pkId2 = this.pkId2 === e.point_code ? '' : e.point_code + checkcode2 (el, e) { + if (this.pkId1 !== '' && this.pkId1 !== e.point_code) { + return + } + this.pkId2 = this.pkId2 === el.point_code ? '' : el.point_code + this.pkId3 = this.pkId2 === el.point_code ? e.point_code : '' }, /** 重新下发 */ async toSure () {