子卷质检
This commit is contained in:
@@ -415,6 +415,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
,{
|
||||||
|
"path" : "pages/SecondPhase/production/ZjCheck",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
// "pageOrientation": "landscape",
|
// "pageOrientation": "landscape",
|
||||||
|
|||||||
73
pages/SecondPhase/production/ZjCheck.vue
Normal file
73
pages/SecondPhase/production/ZjCheck.vue
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
<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">检验结果</view>
|
||||||
|
<view class="filter_input_wraper">
|
||||||
|
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="zd-row submitbar">
|
||||||
|
<button class="zd-col-6 btn-submit btn-default" @tap="clearUp">清空</button>
|
||||||
|
<button class="zd-col-15 btn-submit btn-success" :class="{'btn-info': !val1 || !index}" :disabled="disabled" @tap="_updatePackageInfo">确认</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
|
import {updatePackageInfo} from '@/utils/getData3.js'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
NavBar,
|
||||||
|
SearchBox
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
val1: '',
|
||||||
|
options: [{value: '3', text: '合格品'}, {value: '4', text: '管制品'}],
|
||||||
|
index: '',
|
||||||
|
disabled: false
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
selectChange (e) {
|
||||||
|
this.index = e
|
||||||
|
},
|
||||||
|
async _updatePackageInfo () {
|
||||||
|
this.disabled = true
|
||||||
|
if (!this.val1 || !this.index) {
|
||||||
|
this.disabled = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
let res = await updatePackageInfo(this.index, this.val1)
|
||||||
|
uni.showToast({
|
||||||
|
title: res.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.disabled = false
|
||||||
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
clearUp () {
|
||||||
|
this.val1 = ''
|
||||||
|
this.index = ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@@ -146,4 +146,11 @@ export const getShaftPoint = () => request({
|
|||||||
export const doInitShaftPoint = (code) => request({
|
export const doInitShaftPoint = (code) => request({
|
||||||
url:'api/pda/slitter/doInitShaftPoint',
|
url:'api/pda/slitter/doInitShaftPoint',
|
||||||
data: {point_code: code}
|
data: {point_code: code}
|
||||||
|
})
|
||||||
|
/**
|
||||||
|
* 子卷质检
|
||||||
|
*/
|
||||||
|
export const updatePackageInfo = (ivt, cn) => request({
|
||||||
|
url:'api/twoPda/vehicle/updatePackageInfo',
|
||||||
|
data: {ivt_status: ivt, container_name: cn}
|
||||||
})
|
})
|
||||||
@@ -70,7 +70,8 @@ export const authority = () => {
|
|||||||
{menu_id: '2', title: '生箔工序', path: '/pages/SecondPhase/production/SboProcess'},
|
{menu_id: '2', title: '生箔工序', path: '/pages/SecondPhase/production/SboProcess'},
|
||||||
{menu_id: '3', title: '烘烤工序', path: '/pages/SecondPhase/production/BakeProcess'},
|
{menu_id: '3', title: '烘烤工序', path: '/pages/SecondPhase/production/BakeProcess'},
|
||||||
{menu_id: '4', title: '表处工序', path: '/pages/SecondPhase/production/SurfaceProcess'},
|
{menu_id: '4', title: '表处工序', path: '/pages/SecondPhase/production/SurfaceProcess'},
|
||||||
{menu_id: '5', title: '人工烘烤', path: '/pages/SecondPhase/production/ManmadeBake'}
|
{menu_id: '5', title: '人工烘烤', path: '/pages/SecondPhase/production/ManmadeBake'},
|
||||||
|
{menu_id: '6', title: '子卷质检', path: '/pages/SecondPhase/production/ZjCheck'}
|
||||||
]},
|
]},
|
||||||
{menu_id: '5', path: 'RF03', title: '分切管理', sonTree: [
|
{menu_id: '5', path: 'RF03', title: '分切管理', sonTree: [
|
||||||
{menu_id: '1', title: '分切上料', path: '/pages/SecondPhase/slitting/SlittingFeeding'},
|
{menu_id: '1', title: '分切上料', path: '/pages/SecondPhase/slitting/SlittingFeeding'},
|
||||||
|
|||||||
Reference in New Issue
Block a user