| | |
| | | <label>{{item.TASK_NO}}</label> |
| | | </u-col> |
| | | </u-row> |
| | | <u-row customStyle="margin-bottom: 10px" v-if="item.LOT_NO"> |
| | | <u-col span="2"> |
| | | <label>销售单号:</label> |
| | | </u-col> |
| | | <u-col span="4"> |
| | | <label>{{item.LOT_NO}}</label> |
| | | </u-col> |
| | | </u-row> |
| | | <u-row customStyle="margin-bottom: 10px"> |
| | | <u-col span="2"> |
| | | <label>机台号:</label> |
| | | <label>工单数量:</label> |
| | | </u-col> |
| | | <u-col span="4"> |
| | | <label>{{item.DAA008}}</label> |
| | | </u-col> |
| | | </u-row> |
| | | <u-row customStyle="margin-bottom: 10px"> |
| | | <u-col span="2"> |
| | | <label>机台 / 产线:</label> |
| | | </u-col> |
| | | <u-col span="4"> |
| | | <label>{{item.MACHINE_NO}}</label> |
| | |
| | | </u-row> |
| | | <u-row customStyle="margin-bottom: 10px"> |
| | | <u-col span="2"> |
| | | <label>检验员:</label> |
| | | <label>检验员/检验类型:</label> |
| | | </u-col> |
| | | <u-col span="4"> |
| | | <label>{{name}}</label> |
| | | <label>{{item.OPERATE_MAN}} / {{item.FTYPE}}</label> |
| | | </u-col> |
| | | </u-row> |
| | | <u-row customStyle="margin-bottom: 10px"> |
| | | <u-col span="2"> |
| | | <label>检验类型</label> |
| | | </u-col> |
| | | <u-col span="4"> |
| | | <label>{{item.FTYPE}}</label> |
| | | </u-col> |
| | | </u-row> |
| | | <u-button text="生成检验资料" type="primary" :plain="true" style="width: 200px;height: 100px;position: absolute;top: 30%;right: 10%;" @click="generate()"></u-button> |
| | | </view> |
| | | </uni-card> |
| | | </view> |
| | |
| | | <!-- 表头行 --> |
| | | <uni-tr> |
| | | <uni-th align="center" width="60">检验项目</uni-th> |
| | | <uni-th align="center" width="80">检验工具</uni-th> |
| | | <uni-th align="center" width="60">检验工具</uni-th> |
| | | <uni-th align="center" width="140">规格</uni-th> |
| | | <uni-th align="center" width="40">检验数量</uni-th> |
| | | <uni-th align="center" width="80" v-if="item.DEPARTMENT_NO=='HS0202'">组件名称</uni-th> |
| | | <uni-th align="center" width="40">数量</uni-th> |
| | | <uni-th align="center" width="60">上限值</uni-th> |
| | | <uni-th align="center" width="60">下限值</uni-th> |
| | | <uni-th align="center" width="70">检验值</uni-th> |
| | | <uni-th align="center" width="78">检验结果</uni-th> |
| | | <uni-th align="center" width="78">结果</uni-th> |
| | | <uni-th align="center" width="80">不良原因</uni-th> |
| | | <uni-th align="center" width="80">备注</uni-th> |
| | | </uni-tr> |
| | |
| | | <uni-td>{{item.CHECK_ITEM}}</uni-td> |
| | | <uni-td>{{item.CHECK_TOOL}}</uni-td> |
| | | <uni-td>{{item.SPECIFICATION}}</uni-td> |
| | | <uni-td v-if="item.FTEXT_TYPE">{{item.FTEXT_TYPE}}</uni-td> |
| | | <uni-td>{{item.CHECK_NUM}}</uni-td> |
| | | <uni-td>{{item.UP_ALLOW}}</uni-td> |
| | | <uni-td>{{item.DOWN_ALLOW}}</uni-td> |
| | |
| | | </uni-td> |
| | | <uni-td> |
| | | <u-tag |
| | | v-if="item.UP_ALLOW && (item.VALUE <= item.UP_ALLOW && item.VALUE >= item.DOWN_ALLOW) || !item.UP_ALLOW && item.VALUE == '合格'" |
| | | v-if="item.UP_ALLOW && (parseFloat(item.VALUE) <= parseFloat(item.UP_ALLOW) && parseFloat(item.VALUE) >= parseFloat(item.DOWN_ALLOW)) || (!item.UP_ALLOW && item.VALUE == '合格')" |
| | | text="合格" type="success"></u-tag> |
| | | <u-tag |
| | | v-if="item.UP_ALLOW && (item.VALUE > item.UP_ALLOW || item.VALUE < item.DOWN_ALLOW) || !item.UP_ALLOW && item.VALUE == '不合格'" |
| | | v-else |
| | | text="不合格" type="error"></u-tag> |
| | | </uni-td> |
| | | <uni-td> |
| | |
| | | </view> --> |
| | | <view class="login"> |
| | | <w-select style="margin-left: 20rpx;" v-model='chooseValue' defaultValue="请选择" |
| | | :list='list' valueName='content' keyName="id" @change='change(index)'> |
| | | :list='list' valueName='CONTENT' keyName="ID" @change='change(index)'> |
| | | </w-select> |
| | | </view> |
| | | </uni-td> |
| | |
| | | <script> |
| | | import { |
| | | getInspectionInfo, |
| | | saveInspectionInfo |
| | | saveInspectionInfo, |
| | | getBadReason, |
| | | generateInfo |
| | | } from '../../api/inspection'; |
| | | import { |
| | | baseUrl |
| | |
| | | remeke: '', |
| | | //show: false |
| | | chooseValue: "", |
| | | list: [{ |
| | | id: '来料不良', |
| | | content: '来料不良' |
| | | }, { |
| | | id: '生产不良', |
| | | content: '生产不良' |
| | | }] |
| | | list: [] |
| | | } |
| | | }, |
| | | onLoad(option) { |
| | |
| | | this.item = item |
| | | this.getInspection(item.CHECK_NO) |
| | | this.name = uni.getStorageSync('userInfo').username |
| | | this.getBadReason() |
| | | }, |
| | | onNavigationBarButtonTap(e) { |
| | | let that = this |
| | |
| | | return |
| | | } |
| | | }, |
| | | generate(){ |
| | | generateInfo(this.item.CHECK_NO).then(res=>{ |
| | | if(!res.result){ |
| | | this.$refs.uToast.show({ |
| | | message:res.msg, |
| | | type:'error' |
| | | }) |
| | | return |
| | | }else{ |
| | | this.$refs.uToast.show({ |
| | | message: "更新成功", |
| | | type: 'success' |
| | | }) |
| | | this.table.splice(0,this.table.length) |
| | | this.getInspection(this.item.CHECK_NO) |
| | | } |
| | | }) |
| | | }, |
| | | getBadReason() { |
| | | getBadReason().then(res => { |
| | | console.log(res) |
| | | if(!res.result) { |
| | | this.$refs.uToast.show({ |
| | | message: res.msg, |
| | | type: 'error' |
| | | }) |
| | | return |
| | | } |
| | | this.list = res.data |
| | | }) |
| | | }, |
| | | check() { |
| | | for(let item of this.table) { |
| | | if(item.VALUE === null) { |