| | |
| | | <template> |
| | | <view class="content"> |
| | | <view class="list"> |
| | | <uni-card :title="'当期订单:'+currentOrder[0].HSourceBillNo" |
| | | style="margin: 10px;"> |
| | | <view class="card-detail"> |
| | | <view class="detail" v-if="currentOrder[0].HSourceName" style="width: 100%;"> |
| | | <text>当前设备:</text>{{currentOrder[0].HSourceName}} |
| | | </view> |
| | | <view class="detail" v-if="currentOrder[0].首检次数?currentOrder[0].首检次数:0" style="width: 100%;"> |
| | | <text>首检次数:</text>{{currentOrder[0].首检次数}} |
| | | </view> |
| | | <view class="detail"> |
| | | <text>巡检次数:</text>{{currentOrder[0].巡检次数?currentOrder[0].巡检次数:0}} |
| | | </view> |
| | | <view class="detail"> |
| | | <text>过程检次数:</text>{{currentOrder[0].过程检次数?currentOrder[0].过程检次数:0}} |
| | | </view> |
| | | <view class="detail" v-if="currentOrder[0].当日点检完成情况"> |
| | | <text>点检完成情况:</text>{{currentOrder[0].当日点检完成情况}} |
| | | </view> |
| | | <view class="detail" v-if="currentOrder[0].安灯未验收数量"> |
| | | <text>异常反馈未验收:</text>{{currentOrder[0].安灯未验收数量}} |
| | | <view style="width: 6rpx; display: inline-block;"></view> |
| | | <template v-if="currentOrder[0].安灯未验收数量 == 0"> |
| | | <uni-icons type="smallcircle-filled" size="12" |
| | | color="#13ad4c"></uni-icons> |
| | | </template> |
| | | <template v-else-if="currentOrder[0].安灯未验收数量 != 0"> |
| | | <uni-icons type="smallcircle-filled" size="12" |
| | | color="#e74c3c"></uni-icons> |
| | | </template> |
| | | </view> |
| | | </view> |
| | | </uni-card> |
| | | </view> |
| | | <view class="list" v-for="(item,index) in listData" :key="index"> |
| | | <uni-card :title="'工单号:'+item.HICMOBillNo" :extra="'日期:'+item.计划日期" style="margin: 10px;" @tap="edit(item)"> |
| | | <view class="card-detail"> |
| | |
| | | chooseIt: '', |
| | | popList: ['人员原因', '设备原因', '材料原因', '工艺原因', '模具原因', '测试原因', '环境原因'], |
| | | badReasonBackTypeList: [], |
| | | currentOrder: [], |
| | | // 定义操作映射配置 |
| | | actionConfig: { |
| | | '开工': { |
| | |
| | | if (res.data.count == 1) { |
| | | console.log(res.data.data.h_p_JIT_GetWorkBillListInfoBySource) |
| | | this.listData = res.data.data.h_p_JIT_GetWorkBillListInfoBySource |
| | | this.currentOrder = res.data.data.h_p_JIT_GetWorkBillListInfoBySource1 |
| | | for (var i = 0; i < this.listData.length; i++) { |
| | | this.listData[i].percent = (this.listData[i].HDateFinishQty / this.listData[ |
| | | i].HDatePlanQty).toFixed(4) |