diff --git a/pages/manage/bake-process.vue b/pages/manage/bake-process.vue index 0e68171..0eaaedb 100644 --- a/pages/manage/bake-process.vue +++ b/pages/manage/bake-process.vue @@ -31,17 +31,6 @@ - - - 大/小卷 - - - - {{index1 !== '' ? options1[index1].text : ''}} - - - - 是否烘烤 @@ -51,24 +40,6 @@ - - - 温度 - - - - - - - - - 时间 - - - - - 小时 - @@ -92,10 +63,10 @@ - - - - + + + + @@ -114,11 +85,7 @@ title: '', val1: '', val2: '', - options1: [{value: '1', text: '大卷'}, {value: '2', text: '小卷'}], - index1: '', isChecked: false, - val3: '', - val4: '', obj: {container_name: '-', status: '-', tip: '-'}, disabled: false, val5: '' @@ -145,19 +112,13 @@ this._getHotTempPointInfo() } }, - pickerChange (e) { - this.index1 = e.detail.value - }, setWStatus () { this.isChecked = !this.isChecked }, clearUp () { this.val1 = '' this.val2 = '' - this.index1 = '' this.isChecked = false - this.val3 = '' - this.val4 = '' this.val5 = '' this.obj = {container_name: '-', status: '-', tip: '-'} this.disabled = false @@ -181,13 +142,13 @@ }, async _doModifyRawInfos () { this.disabled = true - if (!this.val1 || !this.val5 || this.index1 === '' || !this.val3 || !this.val4 || !this.val2) { + if (!this.val1 || !this.val5 || !this.val2) { this.disabled = false return } try { let checked = this.isChecked ? '1' : '0' - let res = await doModifyRawInfos(this.val1, this.val2, this.options1[this.index1].value, checked, this.val3, this.val4, this.val5) + let res = await doModifyRawInfos(this.val1, this.val2, checked, this.val5) this.clearUp() uni.showToast({ title: res.message, diff --git a/utils/getData2.js b/utils/getData2.js index 18a7f82..c5759c4 100644 --- a/utils/getData2.js +++ b/utils/getData2.js @@ -192,15 +192,12 @@ export const getHotTempPointInfo = (code, order) => request({ url:'api/pda/baking/getHotTempPointInfo', data: {point_code: code, order_code: order} }) -export const doModifyRawInfos = (code, order, type, is, temperature, time, roll) => request({ +export const doModifyRawInfos = (code, order, is, roll) => request({ url:'api/pda/baking/doModifyRawInfos', data: { point_code: code, order_code: order, - roll_type: type, is_baking: is, - temperature: temperature, - time: time, roll_code: roll } })