| | |
| | | </zxz-uni-data-select> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title required">验收项目:</view> |
| | | <view class="title">验收项目:</view> |
| | | <zxz-uni-data-select required class="right" :localdata="HRepairCheckList" dataKey="维修验收项目" |
| | | dataValue="hitemid" v-model="hform.HRepairCheckID"> |
| | | </zxz-uni-data-select> |
| | |
| | | try { |
| | | let sWhere= " where 1=1 " |
| | | if(this.hform.HDeptName && uni.getStorageSync("Organization") == '宁波市华舟包装有限公司'){ |
| | | sWhere += ` and HDeptName = '${this.hform.HDeptName}'` |
| | | // sWhere += ` and HDeptName = '${this.hform.HDeptName}'` |
| | | } |
| | | let res = await CommonUtils.doRequest2Async({ |
| | | url: '/PublicPageMethod/UserList', |
| | |
| | | let {data, count, Message} = res.data |
| | | if(count == 1) { |
| | | this.hform.HRepairCheckID = this.HRepairCheckList.find(item => data[0]["表体维修项目"] == item["维修验收项目"])?.hitemid |
| | | this.HDetailList[0].HRepairCheckContent = data[0].维修内容 |
| | | }else { |
| | | CommonUtils.showTips({ |
| | | title: "温馨提示", |
| | |
| | | this.hform.HBarName = data[0].设备名称 |
| | | this.hform.HBarModel = data[0].设备规格 |
| | | this.hform.HBarSpec = data[0].设备规格 |
| | | this.HDetailList[0].HRepairCheckContent = data[0].故障描述 |
| | | |
| | | this.hform.HMainSourceBillNo = data[0]["设备维修记录单"]; |
| | | this.hform.HMainSourceInterID = data[0]["HEquipRepairCheckBillInterID"]; |
| | | this.hform.HMainSourceEntryID = data[0]["HEquipRepairCheckBillEntryID"]; |