新增人工烘烤

This commit is contained in:
2022-12-08 16:47:39 +08:00
parent 5972753aa6
commit 0f47264ce0
3 changed files with 162 additions and 0 deletions

View File

@@ -44,6 +44,12 @@
"navigationStyle": "custom" "navigationStyle": "custom"
} }
} }
,{
"path" : "pages/ProductManage/ManmadeBake",
"style": {
"navigationStyle": "custom"
}
}
,{ ,{
"path" : "pages/ProductManage/PointManage", "path" : "pages/ProductManage/PointManage",
"style": { "style": {

View File

@@ -0,0 +1,132 @@
<template>
<view class="zd_container">
<nav-bar title="人工烘烤"></nav-bar>
<view class="zd_content">
<view class="zd_wrapper">
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">点位</span>
</view>
<view class="filter_input_wraper">
<search-box v-model="val1" />
</view>
</view>
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">母卷</span>
</view>
<view class="filter_input_wraper">
<search-box v-model="val2" />
</view>
</view>
<view class="filter_item">
<view class="filter_label">温度</view>
<view class="filter_input_wraper">
<input type="text" class="filter_input" v-model="val3">
</view>
</view>
<view class="filter_item">
<view class="filter_label">时间</view>
<view class="filter_input_wraper">
<input type="text" class="filter_input" v-model="val4">
</view>
</view>
<view class="filter_item">
<view class="filter_label_wraper">
<span class="filter_label">终点</span>
</view>
<view class="filter_input_wraper">
<search-box v-model="val5" />
</view>
</view>
</view>
</view>
<view class="submit-bar">
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2 || !val3 || !val4}" :disabled="disabled" @tap="_handleBakingovenInAndOut1('1')">入箱</button>
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled" @tap="_handleBakingovenInAndOut2('2')">出箱</button>
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled3" @tap="_handleBakingcheckConfirm">质检合格</button>
</view>
</view>
</template>
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {handleBakingovenInAndOut, handleBakingcheckConfirm} from '@/utils/getData1.js'
export default {
components: {
NavBar,
SearchBox
},
data() {
return {
val1: '',
val2: '',
val3: '',
val4: '',
val5: '',
disabled: false,
disabled3: false
};
},
methods: {
handleChange (e) {
console.log(e)
},
async _handleBakingovenInAndOut1 (type) {
this.disabled = true
if (!this.val1 || !this.val2 ||!this.val3 || !this.val4 || !this.val5) {
this.disabled = false
return
}
try {
let res = await handleBakingovenInAndOut(this.val1, this.val2,this.val3, this.val4, this.val5, type)
uni.showToast({
title: res.message,
icon: 'none'
})
this.disabled = false
} catch (e) {
this.disabled = false
}
},
async _handleBakingovenInAndOut2 (type) {
this.disabled = true
if (!this.val1 || !this.val2 || !this.val5) {
this.disabled = false
return
}
try {
let res = await handleBakingovenInAndOut(this.val1, this.val2, '', '', this.val5, type)
uni.showToast({
title: res.message,
icon: 'none'
})
this.disabled = false
} catch (e) {
this.disabled = false
}
},
async _handleBakingcheckConfirm () {
this.disabled3 = true
if (!this.val1 || !this.val2) {
this.disabled3 = false
return
}
try {
let res = await handleBakingcheckConfirm(this.val1, this.val2)
uni.showToast({
title: res.message,
icon: 'none'
})
this.disabled3 = false
} catch (e) {
this.disabled3 = false
}
}
}
}
</script>
<style lang="stylus">
</style>

View File

@@ -84,6 +84,30 @@ export const inCoolIvt = (pcode, cname) => request({
} }
}) })
/**
* 人工烘烤
*/
// 1.1出入烘箱
export const handleBakingovenInAndOut = (pcode, cname, temp, hours, nextpcode, option) => request({
url: 'api/pda/handleBaking/ovenInAndOut',
data: {
point_code: pcode,
container_name: cname,
temperature: temp,
hours: hours,
next_point_code: nextpcode,
option: option,
}
})
// 1.2入冷却
export const handleBakingcheckConfirm = (pcode, cname) => request({
url: 'api/pda/handleBaking/checkConfirm',
data: {
point_code: pcode,
container_name: cname
}
})
// 点位管理 // 点位管理
// 1.1点位解绑绑定 // 1.1点位解绑绑定
export const pointOperate = (pcode, cname, option) => request({ export const pointOperate = (pcode, cname, option) => request({