|
|
|
<template>
|
|
|
|
<view>
|
|
|
|
<view class="white-card">
|
|
|
|
<view class="list-list">
|
|
|
|
<view class="list-title">物料编号</view>
|
|
|
|
<view class="list-right">
|
|
|
|
<text>{{CyInfo.product_number}}</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="list-list">
|
|
|
|
<view class="list-title">填报日期</view>
|
|
|
|
<view class="list-right">
|
|
|
|
<text>{{CyInfo.production}}</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="list-list">
|
|
|
|
<view class="list-title">线别</view>
|
|
|
|
<view class="list-right">
|
|
|
|
<text>{{CyInfo.line_title}}</text>
|
|
|
|
<!-- <image class="next" src="../../static/next.png"></image> -->
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<picker @change="bindfrequencyIds" :value="frequencyIds" :range="frequency">
|
|
|
|
<view class="list-list">
|
|
|
|
<view class="list-title">班次</view>
|
|
|
|
<view class="list-right">
|
|
|
|
<text>{{frequency[frequencyIds]}}</text>
|
|
|
|
<image class="next" src="../../static/next.png"></image>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</picker>
|
|
|
|
</view>
|
|
|
|
<view class="white-card" style="margin-top: 30upx;">
|
|
|
|
<picker @change="bindReason" :value="reasonIds" :range="reason">
|
|
|
|
<view class="list-list">
|
|
|
|
<view class="list-title">停线原因</view>
|
|
|
|
<view class="list-right">
|
|
|
|
<text>{{reason[reasonIds]}}</text>
|
|
|
|
<image class="next" src="../../static/next.png"></image>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</picker>
|
|
|
|
</view>
|
|
|
|
<view class="big-titlt">模具维修</view>
|
|
|
|
<view class="white-card">
|
|
|
|
<picker @change="bindmouldIds" :value="mouldIds" :range="mould">
|
|
|
|
<view class="list-list">
|
|
|
|
<view class="list-title">模具编号</view>
|
|
|
|
<view class="list-right">
|
|
|
|
<text>{{mould[mouldIds]}}</text>
|
|
|
|
<image class="next" src="../../static/next.png"></image>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</picker>
|
|
|
|
<view class="list-list">
|
|
|
|
<view class="list-title">异常现象</view>
|
|
|
|
<view class="list-right">
|
|
|
|
<input placeholder="请输入异常现象" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="list-list">
|
|
|
|
<view class="list-title">原因分析</view>
|
|
|
|
<view class="list-right">
|
|
|
|
<input placeholder="请输入原因分析" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="list-list">
|
|
|
|
<view class="list-title">维修描述</view>
|
|
|
|
<view class="list-right">
|
|
|
|
<input placeholder="请输入维修描述" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="list-list">
|
|
|
|
<view class="list-title">维修时长</view>
|
|
|
|
<view class="list-right">
|
|
|
|
<input placeholder="请输入维修时长" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="list-list">
|
|
|
|
<view class="list-title">维修人员</view>
|
|
|
|
<view class="list-right">
|
|
|
|
<input placeholder="请输入维修人员" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="big-titlt">设备维修</view>
|
|
|
|
<view class="white-card">
|
|
|
|
<picker @change="bindmouldIds" :value="mouldIds" :range="mould">
|
|
|
|
<view class="list-list">
|
|
|
|
<view class="list-title">模具编号</view>
|
|
|
|
<view class="list-right">
|
|
|
|
<text>{{mould[mouldIds]}}</text>
|
|
|
|
<image class="next" src="../../static/next.png"></image>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</picker>
|
|
|
|
<view class="list-list">
|
|
|
|
<view class="list-title">异常现象</view>
|
|
|
|
<view class="list-right">
|
|
|
|
<input placeholder="请输入异常现象" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="list-list">
|
|
|
|
<view class="list-title">原因分析</view>
|
|
|
|
<view class="list-right">
|
|
|
|
<input placeholder="请输入原因分析" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="list-list">
|
|
|
|
<view class="list-title">维修描述</view>
|
|
|
|
<view class="list-right">
|
|
|
|
<input placeholder="请输入维修描述" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="list-list">
|
|
|
|
<view class="list-title">维修时长</view>
|
|
|
|
<view class="list-right">
|
|
|
|
<input placeholder="请输入维修时长" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="list-list">
|
|
|
|
<view class="list-title">维修人员</view>
|
|
|
|
<view class="list-right">
|
|
|
|
<input placeholder="请输入维修人员" />
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="bzqk-card">
|
|
|
|
<textarea value="" placeholder="备注情况说明" />
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
<view class="submit-btn">
|
|
|
|
<button type="primary">提交并发起审核</button>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import {stopLineReason} from "../../api/user.js"
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
line:["A线","B线"],
|
|
|
|
lineIndex:0,
|
|
|
|
frequency:["白班","夜班"],
|
|
|
|
frequencyIds:0,
|
|
|
|
reason:["模具维修","设备维修","品质待定","辅料短缺","偶发停电"],
|
|
|
|
reasonIds:0,
|
|
|
|
mould:["1","2","3"],
|
|
|
|
mouldIds:0,
|
|
|
|
CyInfo:{},
|
|
|
|
resonList:[],
|
|
|
|
|
|
|
|
forms:{
|
|
|
|
plan_id:'',
|
|
|
|
frequency:'',
|
|
|
|
reason_id:'',
|
|
|
|
remake:'',
|
|
|
|
device:[],
|
|
|
|
mode:[],
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
},
|
|
|
|
onLoad(e) {
|
|
|
|
this.getReson()
|
|
|
|
this.CyInfo = JSON.parse(decodeURIComponent(e.planInfo));
|
|
|
|
console.log('picker发送选择改变,携带值为',this.CyInfo)
|
|
|
|
},
|
|
|
|
methods:{
|
|
|
|
getReson(){
|
|
|
|
stopLineReason().then(res=>{
|
|
|
|
let arr = [];
|
|
|
|
for (let i in res) {
|
|
|
|
arr.push(res[i])
|
|
|
|
}
|
|
|
|
this.reason=arr
|
|
|
|
console.log("停线原因",this.reason)
|
|
|
|
})
|
|
|
|
},
|
|
|
|
bindline: function(e) {
|
|
|
|
this.lineIndex = e.target.value
|
|
|
|
},
|
|
|
|
bindfrequencyIds(e){
|
|
|
|
this.frequencyIds = e.target.value
|
|
|
|
},
|
|
|
|
bindReason(e){
|
|
|
|
console.log("原因",this.reasonIds)
|
|
|
|
this.reasonIds = e.target.value
|
|
|
|
},
|
|
|
|
bindmouldIds(e){
|
|
|
|
this.mouldIds = e.target.value
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import "./index.scss"
|
|
|
|
</style>
|