| | |
| | | <view class="form-item"> |
| | | <view class="left">源单单号</view> |
| | | <view class="right" :class="!hasSourceBill?'':'disabled'"> |
| | | <input type="text" :disabled="hasSourceBill" placeholder="请输入或扫描源单号" v-model="hform.HSourceBillNo" |
| | | @confirm="getSourceBillInfo(hform.HSourceBillNo)" /> |
| | | <input type="text" :disabled="hasSourceBill" placeholder="请输入或扫描源单号" |
| | | v-model="hform.HSourceBillNo" @confirm="getSourceBillInfo(hform.HSourceBillNo)" /> |
| | | </view> |
| | | <view class="icon-wrapper-big"> |
| | | <uni-icons class="right-icon" type="scan" style=" |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | </view> |
| | | </view> |
| | | <!-- 子表区域 --> |
| | |
| | | |
| | | mainTabSelected: 1, |
| | | subTabSelected: 1, |
| | | |
| | | |
| | | // 源单状态控制 |
| | | hasSourceBill: false, |
| | | |
| | |
| | | this.hform.HQCSchemeID = data[0].检验方案ID; |
| | | this.hform.HProcName = data[0].当前工序; |
| | | this.hform.HBatchNo = data[0].批号; |
| | | |
| | | |
| | | this.hasSourceBill = true |
| | | this.get_CheckItem(); |
| | | } catch (err) { |
| | |
| | | this.hform.HQCSchemeName = data[0].检验方案名称; |
| | | this.hform.HQCSchemeID = data[0].检验方案ID; |
| | | this.hform.HProcName = data[0].当前工序; |
| | | |
| | | for(let i =0; i<data.length;i++) { |
| | | |
| | | for (let i = 0; i < data.length; i++) { |
| | | this.addCheckItem(data[i]) |
| | | } |
| | | |
| | | |
| | | this.hasSourceBill = true |
| | | this.get_CheckItem(); |
| | | } catch (err) { |
| | |
| | | console.log("e: ", e); |
| | | let key = e.num; |
| | | e.HStatus = e.HStatus ? 1 : 0 |
| | | if(e.HResult2 == ''){ |
| | | if (e.HResult2 == '') { |
| | | e.HResult2 = this.checkItems[key].HResult |
| | | } |
| | | Object.assign(this.checkItems[key], e); |
| | |
| | | return; |
| | | } |
| | | try { |
| | | console.log('this.$refs: ',this.$refs); |
| | | console.log('this.$refs: ', this.$refs); |
| | | // 检查是否有未切换的检验值模块(是否包含set_SaveValue方法),如果有,则运行一次保存检验值的方法,根据检验值是否保存成功再执行下一步 |
| | | if (typeof this.$refs.InspectValueModules != "undefined" && this.$refs.InspectValueModules.length > 0) { |
| | | if (typeof this.$refs.InspectValueModules != "undefined" && this.$refs.InspectValueModules |
| | | .length > 0) { |
| | | // 加载有检验值模块 |
| | | await this.$refs.InspectValueModules[0].set_SaveValue(); |
| | | this.InspectValues[0] = this.$refs.InspectValueModules[0].InSpectValues; |
| | |
| | | } |
| | | let checkItemsArray = []; |
| | | for (var key in this.checkItems) { |
| | | let checkItem = JSON.parse(JSON.stringify(this.checkItems[key])) |
| | | let checkItem = JSON.parse(JSON.stringify(this.checkItems[key])) |
| | | delete checkItem.data |
| | | checkItemsArray.push(checkItem); |
| | | } |
| | | console.log('checkItemsArray: ',checkItemsArray); |
| | | console.log('checkItemsArray: ', checkItemsArray); |
| | | let sMainSub = `${JSON.stringify(this.hform)};${JSON.stringify( |
| | | checkItemsArray |
| | | )};${this.operationType};${getUserInfo()["Czymc"]};${InspectValuesTrans[0]}`; |
| | |
| | | HLastResult: data[0].判定结论 == "合格" ? true : false, |
| | | HTakeSampleCheckBillID: data[0].HTakeSampleCheckBillID, |
| | | HTakeSampleCheckBillNo: data[0].HTakeSampleCheckBillNo, |
| | | HAnalysisMethod: function(){ |
| | | if(data[0].HAnalysisMethod == 1) { |
| | | HAnalysisMethod: function() { |
| | | if (data[0].HAnalysisMethod == 1) { |
| | | return '定性检验' |
| | | }else if(data[0].HAnalysisMethod == 2) { |
| | | } else if (data[0].HAnalysisMethod == 2) { |
| | | return '定量检验' |
| | | }else { |
| | | return '其他检验' |
| | | } else { |
| | | return '其他检验' |
| | | } |
| | | }(), |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | }); |
| | | |
| | |
| | | HStrictness: data[i].严格度, |
| | | HInspectResultToSee: data[i].检验结果 |
| | | }); |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | this.hasSourceBill = true |
| | | } else { |
| | | CommonUtils.showTips({ |
| | |
| | | if (this.operationType == 1) { |
| | | await this.getMaxBillNo(); |
| | | } else if (this.operationType == 2) { |
| | | |
| | | |
| | | } else if (this.operationType == 3) { |
| | | await this.RoadBillMain(); |
| | | } |