App 报工台页面 添加 首检 巡检 末检按钮 跳转到检验单制单页面
| | |
| | | // 调用原始 $t 执行翻译 |
| | | const translated = originalT.call(this, key, args); |
| | | |
| | | // console.log(i18n.getLocaleMessage(i18n.locale)) |
| | | |
| | | if (translated == key) { |
| | | // 翻译后的文本与传入的key相同,则表示翻译文本缺失 记录缺失的翻译文本 |
| | | let [moduleName, fieldCode] = key.split(".") |
| | |
| | | // 不良类型 |
| | | popList: [], |
| | | badReasonBackTypeList: [], |
| | | |
| | | |
| | | // 检验方案 |
| | | arrayAnalysisMethod: [{ |
| | | value: 1, |
| | |
| | | return |
| | | } |
| | | // 根据 提交返回 的是否允许显示提示信息 判断是直接新增单据还是提示信息 |
| | | if(res.data.NotShowTips) { |
| | | if (res.data.NotShowTips) { |
| | | this.addNew() |
| | | return |
| | | } |
| | |
| | | this.hform.HTakeSampleCheckBillID = e.linterid; |
| | | //取样单查询数据 |
| | | await this.LoadingInformation_TakeSampleCheckBill(e.linterid); |
| | | } else if (e.HSouceBillType == "3772") { |
| | | if (uni.getStorageSync('Organization') == "宁波市华舟包装有限公司") { |
| | | this.HSourceBillType = "工序流转卡"; // 显示名称 |
| | | this.hform.HSourceBillType = "3772"; // 对应的值 |
| | | this.hform.HSourceBillNo = e.HBillNo |
| | | } |
| | | |
| | | this.hform.HProcExchBillNo = e.HBillNo |
| | | this.hform.HProcExchInterID = e.linterid |
| | | this.hform.HProcExchEntryID = e.hsubid |
| | | |
| | | await this.HandleBillSelectComplete({ |
| | | HInterID: e.linterid, |
| | | HEntryID: e.hsubid |
| | | }) |
| | | } |
| | | } else if (this.operationType == 3) { |
| | | await this.RoadBillMain(); |
| | |
| | | margin-left: 4px; |
| | | font-weight: bold; |
| | | } |
| | | |
| | | |
| | | .popup-content { |
| | | width: 500rpx; |
| | | border-radius: 20rpx; |
| | | text-align: center; |
| | | padding-bottom: 20rpx; |
| | | |
| | | |
| | | .tit { |
| | | height: 120rpx; |
| | | line-height: 120rpx; |
| | |
| | | color: #222; |
| | | font-weight: bold; |
| | | } |
| | | |
| | | |
| | | .item { |
| | | height: 88rpx; |
| | | line-height: 88rpx; |
| | |
| | | await this.getMaxBillNo(); |
| | | } else if (this.operationType == 2) { |
| | | //有源单下推 |
| | | await this.getMaxBillNo(); |
| | | await this.getMaxBillNo(); |
| | | |
| | | if (e.HSouceBillType == "7521") { |
| | | if (uni.getStorageSync('Organization') == "宁波市华舟包装有限公司") { |
| | |
| | | this.hform.HTakeSampleCheckBillID = e.linterid; |
| | | //取样单查询数据 |
| | | await this.LoadingInformation_TakeSampleCheckBill(e.linterid); |
| | | } else if (e.HSouceBillType == "3772"){ |
| | | if (uni.getStorageSync('Organization') == "宁波市华舟包装有限公司") { |
| | | this.HSourceBillType = "工序流转卡"; // 显示名称 |
| | | this.hform.HSourceBillType = "3772"; // 对应的值 |
| | | this.hform.HSourceBillNo = e.HBillNo |
| | | } |
| | | |
| | | this.hform.HProcExchBillNo = e.HBillNo |
| | | this.hform.HProcExchInterID = e.linterid |
| | | this.hform.HProcExchEntryID = e.hsubid |
| | | |
| | | await this.HandleBillSelectComplete({HInterID: e.linterid, HEntryID: e.hsubid}) |
| | | } |
| | | } else if (this.operationType == 3) { |
| | | this.hform.HInterID = e.linterid || 0; |
| | |
| | | return |
| | | } |
| | | // 根据 提交返回 的是否允许显示提示信息 判断是直接新增单据还是提示信息 |
| | | if(res.data.NotShowTips) { |
| | | if (res.data.NotShowTips) { |
| | | this.addNew() |
| | | return |
| | | } |
| | | |
| | | |
| | | uni.showModal({ |
| | | title: "提示", |
| | | content: res.data.Message + "。是否返回?", |
| | |
| | | this.hform.HTakeSampleCheckBillNo = e.HBillNo; |
| | | this.hform.HTakeSampleCheckBillID = e.linterid; |
| | | //取样单查询数据 |
| | | } else if (e.HSouceBillType == "3772") { |
| | | if (uni.getStorageSync('Organization') == "宁波市华舟包装有限公司") { |
| | | this.HSourceBillType = "工序流转卡"; // 显示名称 |
| | | this.hform.HSourceBillType = "3772"; // 对应的值 |
| | | this.hform.HSourceBillNo = e.HBillNo |
| | | } |
| | | |
| | | this.hform.HProcExchBillNo = e.HBillNo |
| | | this.hform.HProcExchInterID = e.linterid |
| | | this.hform.HProcExchEntryID = e.hsubid |
| | | |
| | | await this.LoadingInformation_ProcExchange(e.HBillNo) |
| | | } |
| | | } else if (this.operationType == 3) { |
| | | await this.RoadBillMain(); |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { CommonUtils } from "../../utils/common"; |
| | | import { |
| | | import { |
| | | CommonUtils |
| | | } from "../../utils/common"; |
| | | import { |
| | | getUserInfo |
| | | } from "@/utils/auth.js"; |
| | | export default { |
| | |
| | | handler: 'handleICMOTechParam', |
| | | checkStatus: true, |
| | | denyMsg: '单据状态不满足工艺参数点检条件!' // 固定错误提示 |
| | | }, |
| | | '首检': { |
| | | apiUrl: '', |
| | | type: '首检', |
| | | handler: 'handleFirstCheck', |
| | | checkStatus: false, |
| | | denyMsg: '单据状态不满足工艺参数点检条件!' |
| | | }, |
| | | '巡检': { |
| | | apiUrl: '', // 巡检需要检查首件是否完成 |
| | | type: '巡检', |
| | | handler: 'handlePatrolCheck', |
| | | checkStatus: false, |
| | | denyMsg: '单据状态不满足巡检条件!' |
| | | }, |
| | | '末检': { |
| | | apiUrl: '', |
| | | type: '末检', |
| | | handler: 'handleProcessCheck', |
| | | checkStatus: false, |
| | | denyMsg: '单据状态不满足末检条件!' |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | onLoad(e) { |
| | | console.log(e) |
| | |
| | | }, |
| | | methods: { |
| | | async getErrMsgBackType() { |
| | | try{ |
| | | try { |
| | | let res = await CommonUtils.doRequest2Async({ |
| | | url: '/Gy_BadReason/Gy_ErrMsgBackTypeList', |
| | | data: { |
| | |
| | | user: getUserInfo()['Czymc'] |
| | | } |
| | | }) |
| | | |
| | | let {data, count, Message} = res.data |
| | | if(count == 1) { |
| | | |
| | | let { |
| | | data, |
| | | count, |
| | | Message |
| | | } = res.data |
| | | if (count == 1) { |
| | | this.popList = Array.from(data).map(item => item['异常反馈类型名称']) |
| | | this.badReasonBackTypeList = data |
| | | }else { |
| | | } else { |
| | | CommonUtils.showTips({ |
| | | title: '温馨提示', |
| | | message: `获取异常反馈类型失败: ${Message}` |
| | | }) |
| | | } |
| | | }catch(err){ |
| | | } catch (err) { |
| | | CommonUtils.showTips({ |
| | | title: '温馨提示', |
| | | message: `获取异常反馈类型失败: ${err}` |
| | |
| | | upData |
| | | ) |
| | | }, |
| | | handleFirstCheck(item, config) { |
| | | let uri = `?HSouceBillType=${item.HBillType}&HBillNo=${item.HICMOBillNo}` + |
| | | `&linterid=${item.HProcExchInterID}&hsubid=${item.HProcExchEntryID || 1}` |
| | | uni.navigateTo({ |
| | | url: '/pages/ZLGL/shoujianjianyan/firstCheckBill' + uri + `&operationType=2` |
| | | }) |
| | | }, |
| | | handlePatrolCheck(item, config) { |
| | | let uri = `?HSouceBillType=${item.HBillType}&HBillNo=${item.HICMOBillNo}` + |
| | | `&linterid=${item.HProcExchInterID}&hsubid=${item.HProcExchEntryID || 1}` |
| | | uni.navigateTo({ |
| | | url: '/pages/ZLGL/xunjianjianyan/PatrolProcCheckBill' + uri + `&operationType=2` |
| | | }) |
| | | }, |
| | | handleProcessCheck(item, config) { |
| | | let uri = `?HSouceBillType=${item.HBillType}&HBillNo=${item.HICMOBillNo}` + |
| | | `&linterid=${item.HProcExchInterID}&hsubid=${item.HProcExchEntryID || 1}` |
| | | uni.navigateTo({ |
| | | url: '/pages/ZLGL/mojianjianyan/ProcessCheckBill' + uri + `&operationType=2` |
| | | }) |
| | | }, |
| | | // 创建通用的请求数据 |
| | | createUpData(item) { |
| | | return { |
| | |
| | | mask: true |
| | | }) |
| | | console.log('执行操作参数:', upData) |
| | | |
| | | |
| | | if (actionType == '工艺参数点检') { |
| | | uni.hideLoading() |
| | | console.log('item: ',item); |
| | | console.log('item: ', item); |
| | | uni.navigateTo({ |
| | | url: `/pages/MJGL/SB_EquipICMOTechParamBill/SB_EquipICMOTechParamBillEdit?hinterid=${item.HSourceInterID}&hsubid=${item.HSourceEntryID}&operationType=5` |
| | | }) |
| | |
| | | title: `${actionType}成功!`, |
| | | icon: 'success' |
| | | }) |
| | | |
| | | if(actionType == '完工') { |
| | | |
| | | if (actionType == '完工') { |
| | | // 完工单提交成功后。提示是否需要跳转达到下模单 |
| | | uni.showModal({ |
| | | title: "跳转页面", |
| | |
| | | } |
| | | } |
| | | }) |
| | | |
| | | |
| | | } |
| | | } else { |
| | | uni.hideLoading() |
| | |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">源单单号:</view> |
| | | <view class="title">{{$t(`Gy.HMainSourceBillNo`) == "Gy.HMainSourceBillNo"?"源单单号": $t(`Gy.HMainSourceBillNo`) }}:</view> |
| | | <view class="right" v-show="showHSourceBillNo"> |
| | | <!-- <uni-combox v-if="reHSourceBillNo" :candidates="arrayHSourceBillNo" placeholder="请输入源单单号" |
| | | v-model="hform.HSourceBillNo" @input="HSourceBillNoChange"></uni-combox> --> |
| | |
| | | "宁波华舟包装1": "http://192.168.110.222:8082/API_NW/", |
| | | "宁波华舟包装2": "http://192.168.88.167:8082/API_NW/", |
| | | "宁波华舟包装": "http://61.164.64.222:8082/API_WW/", |
| | | //余姚华远 |
| | | "余姚华远": "http://192.168.3.248:82/HuaYuaAPI/", |
| | | //余姚华远 |
| | | "余姚华远": "http://192.168.3.248:82/HuaYuaAPI/", |
| | | }, |
| | | serverUrlName: uni.getStorageSync('serverUrlName') || '宁波华舟包装', |
| | | |
| | |
| | | methods: { |
| | | async ApplyLanguagePack(lang, forceUpdate = false) { |
| | | // 读取语言包并加载 |
| | | let {data, getRemoteFile} = await getLanguagePackJson(lang) |
| | | if(getRemoteFile){ |
| | | this.$i18n.setLocaleMessage(lang, data) |
| | | } |
| | | // let { |
| | | // data, |
| | | // getRemoteFile |
| | | // } = await getLanguagePackJson(lang) |
| | | // if (getRemoteFile) { |
| | | // this.$i18n.setLocaleMessage(lang, data) |
| | | // } |
| | | this.$i18n.locale = lang |
| | | }, |
| | | onLanguageChangeHandler(e) { |
| | |
| | | title: "温馨提示", |
| | | message: "[i18n]获取语言包失败: " + Message |
| | | }) |
| | | return |
| | | return { |
| | | data: [], |
| | | getRemoteFile: false |
| | | } |
| | | } |
| | | } catch (err) { |
| | | enableCollectMissingKey = false |