| | |
| | | <template> |
| | | <view style="padding: 20rpx 40rpx;"> |
| | | <view> |
| | | <view v-for="item in HTechParams"> |
| | | {{ item["分组名称"] }} |
| | | <uni-row :gutter="3"> |
| | | <uni-col :span="8" v-for="unit in item['参数列表']"> |
| | | <view> |
| | | <uni-tag :text="`${unit.HTechParamName}:${unit.HResult}`" type="primary" /> |
| | | </view> |
| | | </uni-col> |
| | | </uni-row> |
| | | <view v-for="item in HTechParams" style="padding-bottom: 20rpx;"> |
| | | <view class="row-head">{{ item["分组名称"] }}</view> |
| | | <uni-row :gutter="3" class="row-content"> |
| | | <uni-col class="equal-height-col" :span="8" v-for="unit in item['参数列表']"> |
| | | <view style="font-size: 28rpx;"> |
| | | {{ unit.HTechParamName }}:{{unit.HResult}} |
| | | </view> |
| | | </uni-col> |
| | | </uni-row> |
| | | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import { CommonUtils } from '@/utils/common'; |
| | | import { getUserInfo } from '@/utils/auth'; |
| | | import { |
| | | CommonUtils |
| | | } from '@/utils/common'; |
| | | import { |
| | | getUserInfo |
| | | } from '@/utils/auth'; |
| | | export default { |
| | | data() { |
| | | return { |
| | | HTechParams: [] |
| | | }; |
| | | }, |
| | | }, |
| | | methods: { |
| | | async loadBillMain(HEquipID) { |
| | | try { |
| | |
| | | HEquipID: HEquipID, |
| | | } |
| | | }) |
| | | |
| | | |
| | | let { |
| | | data, |
| | | count, |
| | | Message, |
| | | code |
| | | } = res.data |
| | | |
| | | |
| | | if (code == 1) { |
| | | // Object.assign(this.hform, { |
| | | // "HMaterID": data[0].HMaterID, |
| | | // "HMaterNumber": data[0].产品代码, |
| | | // "HMaterName": data[0].产品名称, |
| | | // "HMaterModel": data[0].规格型号, |
| | | // "HProcID": data[0].HProcID, |
| | | // "HProcName": data[0].工序名称, |
| | | // "HProcNo": data[0].工序号, |
| | | // //"HGroupID": data[0].HGroupID == undefined ? 0 : data[0].HGroupID, |
| | | // //"HGroupName": data[0].班组, |
| | | // "HDeptID": data[0].HDeptID == undefined ? 0 : data[0].HDeptID, |
| | | // "HDeptName": data[0].加工车间, |
| | | |
| | | // "HSourceID": data[0].HSourceID, |
| | | // "HSourceName": data[0].生产资源, |
| | | |
| | | // "HEquipID": data[0].HEquipID, |
| | | // "HEquipName": data[0].设备名称, |
| | | |
| | | // "HICMOInterID": data[0].hicmointerid, |
| | | // "HICMOEntryID": data[0].HICMOEntryID, |
| | | // "HICMOBillNo": data[0].任务单号, |
| | | |
| | | // "HProcExchInterID": data[0].hmainid, |
| | | // "HProcExchEntryID": data[0].HEntryID, |
| | | // "HProcExchBillNo": data[0].单据号, |
| | | |
| | | // "HMainSourceInterID": data[0].hmainid, |
| | | // "HMainSourceEntryID": data[0].HEntryID, |
| | | // "HMainSourceBillNo": data[0].单据号, |
| | | // "HMainSourceBillType": data[0].单据类型, |
| | | |
| | | // "HMouldName": data[0].模具名称, |
| | | // "HMouldID": data[0].HMouldID |
| | | // }) |
| | | |
| | | // Object.assign(this.hform, { |
| | | // "HMaterID": data[0].HMaterID, |
| | | // "HMaterNumber": data[0].产品代码, |
| | | // "HMaterName": data[0].产品名称, |
| | | // "HMaterModel": data[0].规格型号, |
| | | // "HProcID": data[0].HProcID, |
| | | // "HProcName": data[0].工序名称, |
| | | // "HProcNo": data[0].工序号, |
| | | // //"HGroupID": data[0].HGroupID == undefined ? 0 : data[0].HGroupID, |
| | | // //"HGroupName": data[0].班组, |
| | | // "HDeptID": data[0].HDeptID == undefined ? 0 : data[0].HDeptID, |
| | | // "HDeptName": data[0].加工车间, |
| | | |
| | | // "HSourceID": data[0].HSourceID, |
| | | // "HSourceName": data[0].生产资源, |
| | | |
| | | // "HEquipID": data[0].HEquipID, |
| | | // "HEquipName": data[0].设备名称, |
| | | |
| | | // "HICMOInterID": data[0].hicmointerid, |
| | | // "HICMOEntryID": data[0].HICMOEntryID, |
| | | // "HICMOBillNo": data[0].任务单号, |
| | | |
| | | // "HProcExchInterID": data[0].hmainid, |
| | | // "HProcExchEntryID": data[0].HEntryID, |
| | | // "HProcExchBillNo": data[0].单据号, |
| | | |
| | | // "HMainSourceInterID": data[0].hmainid, |
| | | // "HMainSourceEntryID": data[0].HEntryID, |
| | | // "HMainSourceBillNo": data[0].单据号, |
| | | // "HMainSourceBillType": data[0].单据类型, |
| | | |
| | | // "HMouldName": data[0].模具名称, |
| | | // "HMouldID": data[0].HMouldID |
| | | // }) |
| | | |
| | | this.HTechParams = data |
| | | } else { |
| | | CommonUtils.showTips({ |
| | |
| | | message: `获取源单信息失败: ${Message}` |
| | | }) |
| | | } |
| | | |
| | | |
| | | } catch (err) { |
| | | CommonUtils.showTips({ |
| | | title: '温馨提示', |
| | |
| | | }, |
| | | }, |
| | | onLoad(e) { |
| | | let {HEquipID} = e |
| | | let { |
| | | HEquipID |
| | | } = e |
| | | this.loadBillMain(HEquipID) |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | .row-head { |
| | | border-radius: 10rpx 10rpx 0 0; |
| | | background-color: rgb(229, 236, 243); |
| | | padding: 0 12rpx; |
| | | font-family: "PingFang SC", "Microsoft YaHei", sans-serifs; |
| | | } |
| | | |
| | | </style> |
| | | .row-content { |
| | | width: 100%; |
| | | padding: 15rpx; |
| | | background: #f5f5f5; |
| | | word-break: break-all; |
| | | display: flex; |
| | | align-items: stretch; |
| | | flex-wrap: wrap; |
| | | border-collapse: collapse; |
| | | border: #f0f0f0 2px solid; |
| | | } |
| | | |
| | | .row-content:last-child { |
| | | border-radius: 0 0 10rpx 10rpx; |
| | | } |
| | | |
| | | .equal-height-col { |
| | | display: flex; |
| | | height: inherit; |
| | | padding: 1rpx; |
| | | justify-content: center; |
| | | color: rgba(124, 124, 124, 1.0); |
| | | font-family: "PingFang SC", "Microsoft YaHei", sans-serifs; |
| | | } |
| | | </style> |