erp 新洋电子
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

102 lines
2.7 KiB

<template>
<view>
<view class="white-card">
<view class="list-list">
<view class="list-title">物料编号</view>
<view class="list-right">
<text>5651145dssdffd</text>
</view>
</view>
<view class="list-list">
<view class="list-title">填报日期</view>
<view class="list-right">
<text>5651145dssdffd</text>
</view>
</view>
<picker @change="bindline" :value="lineIndex" :range="line">
<view class="list-list">
<view class="list-title">线别</view>
<view class="list-right">
<text>{{line[lineIndex]}}</text>
<image class="next" src="../../static/next.png"></image>
</view>
</view>
</picker>
<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: 24upx;padding-top: 30upx;padding-bottom: 30upx;">
<view class="mid-card">
<picker @change="bindReason" :value="reasonIds" :range="reason">
<view class="list-reson">
<view class="left">不良原因</view>
<view class="right">
<text>{{reason[reasonIds]}}</text>
<image src="../../static/next.png"></image>
</view>
</view>
</picker>
<view class="list-reson">
<view class="left">数量</view>
<view class="right">
<input placeholder="请输入" />
</view>
</view>
<view class="list-reson">
<view class="left">不良品处置</view>
<view class="right">
<input placeholder="请输入" />
</view>
</view>
<view class="btn-jian">
<image src="../../static/jian.png"></image>
<text>删除</text>
</view>
</view>
</view>
<view class="btn-jia">
<image src="../../static/jia.png"></image>
<text>添加</text>
</view>
<view class="submit-btn">
<button type="primary">提交并发起审核</button>
</view>
</view>
</template>
<script>
export default {
data() {
return {
line:["A线","B线"],
lineIndex:0,
frequency:["白班","夜班"],
frequencyIds:0,
reason:["模具维修","设备维修","品质待定","辅料短缺","偶发停电"],
reasonIds:0,
};
},methods:{
bindline: function(e) {
console.log('picker发送选择改变,携带值为', e.target.value)
this.lineIndex = e.target.value
},
bindfrequencyIds(e){
this.frequencyIds = e.target.value
},
bindReason(e){
this.reasonIds = e.target.value
},
}
}
</script>
<style lang="scss">
@import "./index.scss";
</style>