| | |
| | | <view class="form-item"> |
| | | <view class="title">相关设备:</view> |
| | | <view class="right"> |
| | | <uni-combox :candidates="arrayHEquipName" placeholder="请选择" v-model="hform.HEquipName" |
| | | <uni-combox :candidates="arrayHEquipName" placeholder="请选择设备" v-model="hform.HEquipName" |
| | | @input="HEquipNameChange"></uni-combox> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">相关模具:</view> |
| | | <view class="right"> |
| | | <uni-combox :candidates="arrayHMouldName" placeholder="请选择" v-model="hform.HMouldName" |
| | | <uni-combox :candidates="arrayHMouldName" placeholder="请选择模具" v-model="hform.HMouldName" |
| | | @input="HMouldIDNameChange"></uni-combox> |
| | | </view> |
| | | </view> |
| | |
| | | this.OperationType = e.OperationType |
| | | } |
| | | |
| | | // 新增:获取路由参数 |
| | | this.linterid = e.linterid || '' |
| | | this.HEntryID = e.HEntryID || '0' |
| | | this.HSouceBillType = e.HSouceBillType || '' |
| | | |
| | | if (this.OperationType == 1) { |
| | | // 新增 |
| | | this.getMaxNum() |
| | | } else if (this.OperationType == 2) { |
| | | // 有源单 |
| | | this.getMaxNum() |
| | | // 获取源单数据并赋值 |
| | | this.getSourceData(this.linterid, this.HEntryID, this.HSouceBillType) |
| | | } else if (this.OperationType == 3) { |
| | | // 编辑 |
| | | this.getEditData(e.hmainid) |
| | |
| | | }); |
| | | }, |
| | | // 获取所有列表数据 |
| | | async getListData() { |
| | | getListData() { |
| | | // 获取部门列表 |
| | | await this.getDepartmentList(); |
| | | this.getDepartmentList(); |
| | | // 获取异常反馈类型列表 |
| | | await this.getHErrMesTypeList(); |
| | | this.getHErrMesTypeList(); |
| | | // 获取人员列表(接收人、验收人、抄送人、责任人、QE责任人) |
| | | await this.getPersonList(); |
| | | this.getPersonList(); |
| | | // 获取设备列表 |
| | | await this.getEquipList(); |
| | | this.getEquipList(); |
| | | // 获取模具列表 |
| | | await this.getModList(); |
| | | this.getModList(); |
| | | }, |
| | | |
| | | // 获取部门列表 |
| | |
| | | }, |
| | | }); |
| | | }, |
| | | // 获取源单数据并赋值 |
| | | getSourceData(HInterID, HEntryID, HSouceBillType) { |
| | | let num = 1 |
| | | if (HSouceBillType == '4502') { |
| | | num = 1; //异常反馈单 |
| | | } else if (HSouceBillType == '4529') { |
| | | num = 2; //异常反馈接收单 |
| | | } else if (HSouceBillType == '4531') { |
| | | num = 3; //异常反馈处理单 |
| | | } |
| | | |
| | | uni.request({ |
| | | url: this.serverUrl + '/Sc_MESTransFerWorkBill/Get_OA_ErrMsgBackList', |
| | | method: 'GET', |
| | | data: { |
| | | "HInterID": HInterID, |
| | | "HEntryID": HEntryID, |
| | | "user": uni.getStorageSync('HUserName'), |
| | | "num": num |
| | | }, |
| | | success: (res) => { |
| | | if (res.data.count == 1) { |
| | | const LoadData = res.data.data[0] |
| | | |
| | | if (num == 1) { |
| | | // 异常反馈单 |
| | | this.hform.HDeptID = LoadData.HDeptID |
| | | this.hform.HDeptName = LoadData.发送部门 |
| | | this.hform.HReceiveID = LoadData.HRecDeptID |
| | | this.hform.HReceiveName = LoadData.接收部门 |
| | | this.hform.HErrMsgBackTypeID = LoadData.HErrMsgBackTypeID |
| | | this.hform.HErrMsgBackTypeName = LoadData.异常类型名称 |
| | | this.hform.HSendMan = LoadData.发送人 |
| | | this.hform.HReceiveMan = LoadData.指派处理人 |
| | | this.hform.HCopyMan = LoadData.抄送 |
| | | this.hform.HLevel = LoadData.紧急程度 |
| | | this.hform.HContext = LoadData.主题 |
| | | this.hform.HDescription = LoadData.详细内容 |
| | | this.hform.HMaterName = LoadData.物料名称 |
| | | this.hform.HMaterModel = LoadData.规格型号 |
| | | this.hform.HEquipID = LoadData.设备id |
| | | this.hform.HEquipName = LoadData.设备名称 |
| | | this.hform.HMouldID = LoadData.模具id |
| | | this.hform.HMouldName = LoadData.模具名称 |
| | | this.hform.HBillTypeName = HSouceBillType |
| | | this.hform.HPlanBillNo = LoadData.单据号 |
| | | this.hform.HMainSourceBillNo = LoadData.单据号 |
| | | this.hform.HMainSourceInterID = LoadData.HInterID |
| | | this.hform.HMainSourceEntryID = LoadData.HEntryID |
| | | this.hform.HMainSourceBillType = HSouceBillType |
| | | this.hform.HErrMsgBackBillNo = LoadData.单据号 |
| | | this.hform.HErrMsgBackInterID = LoadData.HInterID |
| | | this.hform.HErrMsgBackEntryID = LoadData.HEntryID |
| | | |
| | | } else if (num == 2) { |
| | | // 异常反馈接收单 |
| | | this.hform.HDeptID = LoadData.HDeptID |
| | | this.hform.HDeptName = LoadData.发送部门 |
| | | this.hform.HReceiveID = LoadData.HReceiveID == undefined ? 0 : LoadData |
| | | .HReceiveID |
| | | this.hform.HReceiveName = LoadData.接收部门 |
| | | this.hform.HErrMsgBackTypeID = LoadData.HErrMsgBackTypeID |
| | | this.hform.HErrMsgBackTypeName = LoadData.异常类型名称 |
| | | this.hform.HSendMan = LoadData.发送人 |
| | | this.hform.HReceiveMan = LoadData.接收人 |
| | | this.hform.HCopyMan = LoadData.抄送人 |
| | | this.hform.HLevel = LoadData.紧急程度 |
| | | this.hform.HContext = LoadData.主题 |
| | | this.hform.HDescription = LoadData.详细内容 |
| | | this.hform.HMaterName = LoadData.产品名称 |
| | | this.hform.HMaterModel = LoadData.规格型号 |
| | | this.hform.HBillTypeName = HSouceBillType |
| | | this.hform.HPlanBillNo = LoadData.单据号 |
| | | this.hform.HEquipID = LoadData.HEquipID |
| | | this.hform.HEquipName = LoadData.设备名称 |
| | | this.hform.HMouldID = LoadData.HMouldID |
| | | this.hform.HMouldName = LoadData.模治具名称 |
| | | this.hform.HMainSourceBillNo = LoadData.单据号 |
| | | this.hform.HMainSourceInterID = LoadData.hmainid |
| | | this.hform.HMainSourceEntryID = LoadData.HEntryID == undefined ? "0" : LoadData |
| | | .HEntryID |
| | | this.hform.HMainSourceBillType = HSouceBillType |
| | | |
| | | }else if (num == 2) { |
| | | // 异常反馈单 |
| | | this.hform.HDeptID = LoadData.HDeptID |
| | | this.hform.HDeptName = LoadData.发送部门 |
| | | this.hform.HReceiveID = LoadData.HRecDeptID |
| | | this.hform.HReceiveName = LoadData.接收部门 |
| | | this.hform.HErrMsgBackTypeID = LoadData.HErrMsgBackTypeID |
| | | this.hform.HErrMsgBackTypeName = LoadData.异常类型名称 |
| | | this.hform.HSendMan = LoadData.发送人 |
| | | this.hform.HReceiveMan = LoadData.指派处理人 |
| | | this.hform.HCopyMan = LoadData.抄送 |
| | | this.hform.HLevel = LoadData.紧急程度 |
| | | this.hform.HContext = LoadData.主题 |
| | | this.hform.HDescription = LoadData.详细内容 |
| | | this.hform.HMaterName = LoadData.物料名称 |
| | | this.hform.HMaterModel = LoadData.规格型号 |
| | | this.hform.HEquipID = LoadData.设备id |
| | | this.hform.HEquipName = LoadData.设备名称 |
| | | this.hform.HMouldID = LoadData.模具id |
| | | this.hform.HMouldName = LoadData.模具名称 |
| | | this.hform.HBillTypeName = HSouceBillType |
| | | this.hform.HPlanBillNo = LoadData.单据号 |
| | | this.hform.HMainSourceBillNo = LoadData.单据号 |
| | | this.hform.HMainSourceInterID = LoadData.hmainid |
| | | this.hform.HMainSourceEntryID = LoadData.HEntryID |
| | | this.hform.HMainSourceBillType = HSouceBillType |
| | | this.hform.HErrMsgBackBillNo = LoadData.单据号 |
| | | this.hform.HErrMsgBackInterID = LoadData.hmainid |
| | | this.hform.HErrMsgBackEntryID = LoadData.HEntryID |
| | | |
| | | } |
| | | |
| | | // 强制更新视图 |
| | | this.$forceUpdate() |
| | | } |
| | | }, |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: res.data.msg, |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | | }) |
| | | }, |
| | | //编辑 |
| | | getEditData(HInterID) { |
| | | uni.showLoading({ |
| | | title: '加载中' |
| | |
| | | HEquipID: data["HEquipID"] || '0', |
| | | HEquipName: data["设备名称"] || '', |
| | | |
| | | HMouldID: data["HMouldID"] || '0', |
| | | HMouldID: data["HMouldID"] || '0', |
| | | HMouldName: data["模治具名称"] || '', |
| | | |
| | | HCheckEmpID: data["HCheckEmpID"] || '0', |
| | | HCheckEmp: data["验收人"] || '', |
| | | HCheckNote: data["验收内容"] || '', |
| | | HCheckNote: data["验收内容"] || '', |
| | | HCheckResult: data["验收结果"] || '', |
| | | HHCheckDate: data["验收时间"] ? dayjs(data["验收时间"]).format( |
| | | "YYYY-MM-DD HH:mm:ss") : dayjs(new Date()).format("YYYY-MM-DD"), |
| | |
| | | HMainSourceBillNo: data["源单单号"] || '', |
| | | HMainSourceBillType: data["源单类型"] || '', |
| | | |
| | | HErrMsgBackBillNo: data["异常反馈单号"] || '', |
| | | HErrMsgBackInterID: data["异常反馈单主内码"] || '0', |
| | | HErrMsgBackEntryID: data["异常反馈单子内码"] || '0', |
| | | HErrMsgBackBillNo: data["异常反馈单号"] || '', |
| | | HErrMsgBackInterID: data["异常反馈单主内码"] || '0', |
| | | HErrMsgBackEntryID: data["异常反馈单子内码"] || '0', |
| | | |
| | | HRemark: data["表头备注"] || '', |
| | | HMaker: data["制单人"] || this.userInfo.Czymc || '', |
| | |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | //保存 |
| | | submit() { |
| | | if (!this.hform.HReceiveMan) { |
| | | uni.showToast({ |
| | |
| | | <view class="form-item"> |
| | | <view class="title">处理原因:</view> |
| | | <view class="right"> |
| | | <uni-combox :candidates="arrayHBadReasonName" placeholder="请选择部门" v-model="hform.HBadReasonName" |
| | | <uni-combox :candidates="arrayHBadReasonName" placeholder="请选择处理原因" v-model="hform.HBadReasonName" |
| | | @input="HBadReasonNameChange"></uni-combox> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">相关设备:</view> |
| | | <view class="right"> |
| | | <uni-combox :candidates="arrayHEquipName" placeholder="请选择" v-model="hform.HEquipName" |
| | | <uni-combox :candidates="arrayHEquipName" placeholder="请选择设备" v-model="hform.HEquipName" |
| | | @input="HEquipNameChange"></uni-combox> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">相关模具:</view> |
| | | <view class="right"> |
| | | <uni-combox :candidates="arrayHMouldName" placeholder="请选择" v-model="hform.HMouldName" |
| | | <uni-combox :candidates="arrayHMouldName" placeholder="请选择模具" v-model="hform.HMouldName" |
| | | @input="HMouldIDNameChange"></uni-combox> |
| | | </view> |
| | | </view> |
| | |
| | | } else { |
| | | this.OperationType = e.OperationType |
| | | } |
| | | |
| | | |
| | | // 新增:获取路由参数 |
| | | this.linterid = e.linterid || '' |
| | | this.HEntryID = e.HEntryID || '0' |
| | | this.HSouceBillType = e.HSouceBillType || '' |
| | | |
| | | if (this.OperationType == 1) { |
| | | // 新增 |
| | | this.getMaxNum() |
| | | } else if (this.OperationType == 2) { |
| | | // 有源单 |
| | | this.getMaxNum() |
| | | // 获取源单数据并赋值 |
| | | this.getSourceData(this.linterid, this.HEntryID, this.HSouceBillType) |
| | | } else if (this.OperationType == 3) { |
| | | // 编辑 |
| | | this.getEditData(e.hmainid) |
| | |
| | | }); |
| | | }, |
| | | // 获取所有列表数据 |
| | | async getListData() { |
| | | getListData() { |
| | | // 获取部门列表 |
| | | await this.getDepartmentList(); |
| | | this.getDepartmentList(); |
| | | // 获取异常反馈类型列表 |
| | | await this.getHErrMesTypeList(); |
| | | this.getHErrMesTypeList(); |
| | | // 获取人员列表(接收人、处理人、抄送人、责任人、QE责任人) |
| | | await this.getPersonList(); |
| | | this.getPersonList(); |
| | | // 获取设备列表 |
| | | await this.getEquipList(); |
| | | this.getEquipList(); |
| | | // 获取模具列表 |
| | | await this.getModList(); |
| | | this.getModList(); |
| | | // 获取处理原因列表 |
| | | await this.getBadReasonList(); |
| | | this.getBadReasonList(); |
| | | }, |
| | | |
| | | // 获取部门列表 |
| | |
| | | }, |
| | | }); |
| | | }, |
| | | // 获取源单数据并赋值 |
| | | getSourceData(HInterID, HEntryID, HSouceBillType) { |
| | | let num = 1 |
| | | if (HSouceBillType == '4502') { |
| | | num = 1 // 异常反馈单 |
| | | } else if (HSouceBillType == '4529') { |
| | | num = 2 // 异常反馈接收单 |
| | | } |
| | | |
| | | uni.request({ |
| | | url: this.serverUrl + '/Sc_MESTransFerWorkBill/Get_OA_ErrMsgBackList', |
| | | method: 'GET', |
| | | data: { |
| | | "HInterID": HInterID, |
| | | "HEntryID": HEntryID, |
| | | "user": uni.getStorageSync('HUserName'), |
| | | "num": num |
| | | }, |
| | | success: (res) => { |
| | | if (res.data.count == 1) { |
| | | const LoadData = res.data.data[0] |
| | | |
| | | if (num == 1) { |
| | | // 异常反馈单 |
| | | this.hform.HDeptID = LoadData.HDeptID |
| | | this.hform.HDeptName = LoadData.发送部门 |
| | | this.hform.HReceiveID = LoadData.HRecDeptID |
| | | this.hform.HReceiveName = LoadData.接收部门 |
| | | this.hform.HErrMsgBackTypeID = LoadData.HErrMsgBackTypeID |
| | | this.hform.HErrMsgBackTypeName = LoadData.异常类型名称 |
| | | this.hform.HSendMan = LoadData.发送人 |
| | | this.hform.HReceiveMan = LoadData.指派处理人 |
| | | this.hform.HCopyMan = LoadData.抄送 |
| | | this.hform.HLevel = LoadData.紧急程度 |
| | | this.hform.HContext = LoadData.主题 |
| | | this.hform.HDescription = LoadData.详细内容 |
| | | this.hform.HMaterName = LoadData.物料名称 |
| | | this.hform.HMaterModel = LoadData.规格型号 |
| | | this.hform.HEquipID = LoadData.设备id |
| | | this.hform.HEquipName = LoadData.设备名称 |
| | | this.hform.HMouldID = LoadData.模具id |
| | | this.hform.HMouldName = LoadData.模具名称 |
| | | this.hform.HBillTypeName = HSouceBillType |
| | | this.hform.HPlanBillNo = LoadData.单据号 |
| | | this.hform.HMainSourceBillNo = LoadData.单据号 |
| | | this.hform.HMainSourceInterID = LoadData.HInterID |
| | | this.hform.HMainSourceEntryID = LoadData.HEntryID |
| | | this.hform.HMainSourceBillType = HSouceBillType |
| | | this.hform.HErrMsgBackBillNo = LoadData.单据号 |
| | | this.hform.HErrMsgBackInterID = LoadData.HInterID |
| | | this.hform.HErrMsgBackEntryID = LoadData.HEntryID |
| | | this.hform.HHandleEmpID = LoadData.HHandleEmpID |
| | | this.hform.HHandleEmpName = LoadData.指派处理人 |
| | | } else if (num == 2) { |
| | | // 异常反馈接收单 |
| | | this.hform.HDeptID = LoadData.HDeptID |
| | | this.hform.HDeptName = LoadData.发送部门 |
| | | this.hform.HReceiveID = LoadData.HReceiveID == undefined ? 0 : LoadData |
| | | .HReceiveID |
| | | this.hform.HReceiveName = LoadData.接收部门 |
| | | this.hform.HErrMsgBackTypeID = LoadData.HErrMsgBackTypeID |
| | | this.hform.HErrMsgBackTypeName = LoadData.异常类型名称 |
| | | this.hform.HSendMan = LoadData.发送人 |
| | | this.hform.HReceiveMan = LoadData.接收人 |
| | | this.hform.HCopyMan = LoadData.抄送人 |
| | | this.hform.HLevel = LoadData.紧急程度 |
| | | this.hform.HContext = LoadData.主题 |
| | | this.hform.HDescription = LoadData.详细内容 |
| | | this.hform.HMaterName = LoadData.产品名称 |
| | | this.hform.HMaterModel = LoadData.规格型号 |
| | | this.hform.HBillTypeName = HSouceBillType |
| | | this.hform.HPlanBillNo = LoadData.单据号 |
| | | this.hform.HEquipID = LoadData.HEquipID |
| | | this.hform.HEquipName = LoadData.设备名称 |
| | | this.hform.HMouldID = LoadData.HMouldID |
| | | this.hform.HMouldName = LoadData.模治具名称 |
| | | this.hform.HMainSourceBillNo = LoadData.单据号 |
| | | this.hform.HMainSourceInterID = LoadData.hmainid |
| | | this.hform.HMainSourceEntryID = LoadData.HEntryID == undefined ? "0" : LoadData.HEntryID |
| | | this.hform.HMainSourceBillType = HSouceBillType |
| | | this.hform.HHandleEmpID = LoadData.HHandleEmpID |
| | | this.hform.HHandleEmpName = LoadData.指派处理人 |
| | | } |
| | | |
| | | // 强制更新视图 |
| | | this.$forceUpdate() |
| | | } |
| | | }, |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: res.data.msg, |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | | }) |
| | | }, |
| | | //编辑 |
| | | getEditData(HInterID) { |
| | | uni.showLoading({ |
| | | title: '加载中' |
| | |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | //保存 |
| | | submit() { |
| | | if (!this.hform.HReceiveMan) { |
| | | uni.showToast({ |
| | |
| | | HEquipNameList: [], |
| | | arrayHMouldName: [], //模具 |
| | | HMouldNameList: [], |
| | | |
| | | |
| | | isEdit: false, |
| | | |
| | | hform: { |
| | |
| | | HDeptID: getUserInfo().HDeptID, |
| | | HReceiveName: getUserInfo().HDeptName, |
| | | HReceiveID: getUserInfo().HDeptID, |
| | | |
| | | HSendMan: getUserInfo().Czymc, //发送人 |
| | | |
| | | HSendMan: getUserInfo().Czymc, //发送人 |
| | | HReceiveMan: getUserInfo().HEmpName, //接收人 |
| | | HSignEmpName: getUserInfo().HEmpName, //签到 |
| | | HSignEmpName: getUserInfo().HEmpName, //签到 |
| | | HSignEmpID: getUserInfo().HEmpID, |
| | | HCopyMan: '', |
| | | |
| | | |
| | | |
| | | |
| | | HLevel: '普通', |
| | | HBillTypeName: '', |
| | |
| | | } else { |
| | | this.OperationType = e.OperationType |
| | | } |
| | | // 新增:获取路由参数 |
| | | this.linterid = e.linterid || '' |
| | | this.HEntryID = e.HEntryID || '0' |
| | | this.HSouceBillType = e.HSouceBillType || '' |
| | | |
| | | if (this.OperationType == 1) { |
| | | // 新增 |
| | |
| | | } else if (this.OperationType == 2) { |
| | | // 有源单 |
| | | this.getMaxNum() |
| | | // 获取源单数据并赋值 |
| | | this.getSourceData(this.linterid, this.HEntryID, this.HSouceBillType) |
| | | } else if (this.OperationType == 3) { |
| | | // 编辑 |
| | | this.getEditData(e.hmainid) |
| | |
| | | }); |
| | | }, |
| | | // 获取所有列表数据 |
| | | async getListData() { |
| | | getListData() { |
| | | // 获取部门列表 |
| | | await this.getDepartmentList(); |
| | | this.getDepartmentList(); |
| | | // 获取异常反馈类型列表 |
| | | await this.getHErrMesTypeList(); |
| | | this.getHErrMesTypeList(); |
| | | // 获取人员列表(接收人、处理人、抄送人、责任人、QE责任人) |
| | | await this.getPersonList(); |
| | | this.getPersonList(); |
| | | // 获取设备列表 |
| | | await this.getEquipList(); |
| | | this.getEquipList(); |
| | | // 获取模具列表 |
| | | await this.getModList(); |
| | | this.getModList(); |
| | | }, |
| | | |
| | | // 获取部门列表 |
| | |
| | | }, |
| | | }); |
| | | }, |
| | | // 获取源单数据并赋值 |
| | | getSourceData(HInterID, HEntryID, HSouceBillType) { |
| | | let num = 1 |
| | | if (HSouceBillType == '4502') { |
| | | num = 1 // 异常反馈单 |
| | | } else if (HSouceBillType == '4529') { |
| | | num = 2 // 异常反馈接收单 |
| | | } |
| | | |
| | | uni.request({ |
| | | url: this.serverUrl + '/Sc_MESTransFerWorkBill/Get_OA_ErrMsgBackList', |
| | | method: 'GET', |
| | | data: { |
| | | "HInterID": HInterID, |
| | | "HEntryID": HEntryID, |
| | | "user": uni.getStorageSync('HUserName'), |
| | | "num": num |
| | | }, |
| | | success: (res) => { |
| | | if (res.data.count == 1) { |
| | | const LoadData = res.data.data[0] |
| | | |
| | | if (num == 1) { |
| | | // 异常反馈单 |
| | | this.hform.HDeptID = LoadData.HDeptID |
| | | this.hform.HDeptName = LoadData.发送部门 |
| | | this.hform.HReceiveID = LoadData.HRecDeptID |
| | | this.hform.HReceiveName = LoadData.接收部门 |
| | | this.hform.HErrMsgBackTypeID = LoadData.HErrMsgBackTypeID |
| | | this.hform.HErrMsgBackTypeName = LoadData.异常类型名称 |
| | | this.hform.HSendMan = LoadData.发送人 |
| | | this.hform.HReceiveMan = LoadData.指派处理人 |
| | | this.hform.HCopyMan = LoadData.抄送 |
| | | this.hform.HLevel = LoadData.紧急程度 |
| | | this.hform.HContext = LoadData.主题 |
| | | this.hform.HDescription = LoadData.详细内容 |
| | | this.hform.HMaterName = LoadData.物料名称 |
| | | this.hform.HMaterModel = LoadData.规格型号 |
| | | this.hform.HEquipID = LoadData.设备id |
| | | this.hform.HEquipName = LoadData.设备名称 |
| | | this.hform.HMouldID = LoadData.模具id |
| | | this.hform.HMouldName = LoadData.模具名称 |
| | | this.hform.HBillTypeName = HSouceBillType |
| | | this.hform.HPlanBillNo = LoadData.单据号 |
| | | this.hform.HMainSourceBillNo = LoadData.单据号 |
| | | this.hform.HMainSourceInterID = LoadData.HInterID |
| | | this.hform.HMainSourceEntryID = LoadData.HEntryID |
| | | this.hform.HMainSourceBillType = HSouceBillType |
| | | this.hform.HErrMsgBackBillNo = LoadData.单据号 |
| | | this.hform.HErrMsgBackInterID = LoadData.HInterID |
| | | this.hform.HErrMsgBackEntryID = LoadData.HEntryID |
| | | this.hform.HSignEmpID = LoadData.HHandleEmpID |
| | | this.hform.HSignEmpName = LoadData.指派处理人 |
| | | } else if (num == 2) { |
| | | // 异常反馈接收单 |
| | | this.hform.HDeptID = LoadData.HDeptID |
| | | this.hform.HDeptName = LoadData.发送部门 |
| | | this.hform.HReceiveID = LoadData.HReceiveID == undefined ? 0 : LoadData |
| | | .HReceiveID |
| | | this.hform.HReceiveName = LoadData.接收部门 |
| | | this.hform.HErrMsgBackTypeID = LoadData.HErrMsgBackTypeID |
| | | this.hform.HErrMsgBackTypeName = LoadData.异常类型名称 |
| | | this.hform.HSendMan = LoadData.发送人 |
| | | this.hform.HReceiveMan = LoadData.接收人 |
| | | this.hform.HCopyMan = LoadData.抄送人 |
| | | this.hform.HLevel = LoadData.紧急程度 |
| | | this.hform.HContext = LoadData.主题 |
| | | this.hform.HDescription = LoadData.详细内容 |
| | | this.hform.HMaterName = LoadData.产品名称 |
| | | this.hform.HMaterModel = LoadData.规格型号 |
| | | this.hform.HBillTypeName = HSouceBillType |
| | | this.hform.HPlanBillNo = LoadData.单据号 |
| | | this.hform.HEquipID = LoadData.HEquipID |
| | | this.hform.HEquipName = LoadData.设备名称 |
| | | this.hform.HMouldID = LoadData.HMouldID |
| | | this.hform.HMouldName = LoadData.模治具名称 |
| | | this.hform.HMainSourceBillNo = LoadData.单据号 |
| | | this.hform.HMainSourceInterID = LoadData.hmainid |
| | | this.hform.HMainSourceEntryID = LoadData.HEntryID == undefined ? "0" : LoadData |
| | | .HEntryID |
| | | this.hform.HMainSourceBillType = HSouceBillType |
| | | this.hform.HSignEmpID = LoadData.HHandleEmpID |
| | | this.hform.HSignEmpName = LoadData.指派处理人 |
| | | } |
| | | |
| | | // 强制更新视图 |
| | | this.$forceUpdate() |
| | | } |
| | | }, |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: res.data.msg, |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | | }) |
| | | }, |
| | | //编辑 |
| | | getEditData(HInterID) { |
| | | uni.showLoading({ |
| | | title: '加载中' |
| | |
| | | |
| | | HRemark: data["表头备注"] || '', |
| | | HMaker: data["制单人"] || this.userInfo.Czymc || '', |
| | | HMakeDate: data["制单日期"] ? dayjs(data["制单日期"]).format("YYYY-MM-DD") : dayjs( |
| | | HMakeDate: data["制单日期"] ? dayjs(data["制单日期"]).format( |
| | | "YYYY-MM-DD") : dayjs( |
| | | new Date()).format("YYYY-MM-DD"), |
| | | |
| | | HUpDater: data["修改人"] || this.userInfo.Czymc || '', |
| | | HUpDateDate: data["修改日期"] ? dayjs(data["修改日期"]).format("YYYY-MM-DD") : |
| | | dayjs(new Date()).format("YYYY-MM-DD"), |
| | | HUpDateDate: data["修改日期"] ? dayjs(data["修改日期"]).format( |
| | | "YYYY-MM-DD") : dayjs(new Date()).format("YYYY-MM-DD"), |
| | | |
| | | HChecker: data["审核人"] || '', |
| | | HCheckDate: data["审核日期"] ? dayjs(data["审核日期"]).format("YYYY-MM-DD") : '', |
| | | HCheckDate: data["审核日期"] ? dayjs(data["审核日期"]).format( |
| | | "YYYY-MM-DD") : '', |
| | | |
| | | HDeleteMan: data["作废人"] || '', |
| | | HDeleteDate: data["作废日期"] ? dayjs(data["作废日期"]).format("YYYY-MM-DD") : '', |
| | | HDeleteDate: data["作废日期"] ? dayjs(data["作废日期"]).format( |
| | | "YYYY-MM-DD") : '', |
| | | |
| | | HLevel: data["紧急程度"] || '普通' |
| | | }; |
| | |
| | | this.hform.HUpdaterDate = dayjs(new Date()).format("YYYY-MM-DD"); |
| | | } |
| | | var sMainStr = JSON.stringify(this.hform); |
| | | var sMainSub = sMainStr + ';' + this.refSav + ';' + uni.getStorageSync('HUserName') |
| | | var sMainSub = sMainStr + ';' + this.refSav + ';' + uni.getStorageSync('HUserName') |
| | | uni.request({ |
| | | url: this.serverUrl + '/Sc_MESTransFerWorkBill/SaveOA_ErrMsgBackSignBill_APP', |
| | | method: 'POST', |
| | |
| | | </uni-datetime-picker> |
| | | </view> |
| | | </view> |
| | | <view class="search-item"> |
| | | <view class="left">单据号</view> |
| | | <view class="right"> |
| | | <input type="text" auto-focus v-model="HBillNo" /> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="button-groups"> |
| | | <button type="default" size="mini" class="btn-b" @tap.stop="onAddClickHandler">新增</button> |
| | | <button type="default" size="mini" class="btn-c" @tap.stop="onSearchClickHandler">查询</button> |
| | | <button type="default" size="mini" class="btn-a" @tap.stop="onResetClickHandler">重置</button> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <!-- 页签区域 --> |
| | | <view class="tab-container"> |
| | | <view class="tab-list"> |
| | | <view |
| | | v-for="(tab, index) in tabs" |
| | | :key="index" |
| | | :class="['tab-item', { 'active': activeTab === index }]" |
| | | @tap="switchTab(index)" |
| | | > |
| | | <view v-for="(tab, index) in tabs" :key="index" :class="['tab-item', { 'active': activeTab === index }]" |
| | | @tap="switchTab(index)"> |
| | | <text>{{ tab.label }}</text> |
| | | <text v-if="tab.count > 0" class="tab-count">{{ tab.count }}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <view style="width: 100%;height: 16rpx;background-color: #e5e5e5;"></view> |
| | | |
| | | |
| | | <!-- 页签内容区域 --> |
| | | <scroll-view |
| | | v-for="(tab, tabIndex) in tabs" |
| | | :key="tabIndex" |
| | | v-show="activeTab === tabIndex" |
| | | id="pageContent" |
| | | scroll-y |
| | | class="page-content" |
| | | :style="{height: pageContentHeight + 'px'}" |
| | | > |
| | | <scroll-view v-for="(tab, tabIndex) in tabs" :key="tabIndex" v-show="activeTab === tabIndex" id="pageContent" |
| | | scroll-y class="page-content" :style="{height: pageContentHeight + 'px'}"> |
| | | <view class="list" v-for="(item,index) in tab.listData" :key="index"> |
| | | <uni-card :title="item.单据状态" :extra="item.单据号" style="margin: 10px;" |
| | | @tap="showDetail = showDetail==item.hmainid?-1:item.hmainid"> |
| | |
| | | |
| | | <view class="op" v-if="operations == item.hmainid"> |
| | | <!-- 根据当前页签显示不同的下推按钮 --> |
| | | <button |
| | | v-if="activeTab === 0 && item.单据状态 === '已反馈'" |
| | | class="op1" |
| | | size="mini" |
| | | plain |
| | | @tap.stop="pushSignBill(item)" |
| | | > |
| | | <button v-if="activeTab === 0 && item.单据状态 === '已反馈'" class="op1" size="mini" plain |
| | | @tap.stop="pushSignBill(item)"> |
| | | 下推签到单 |
| | | </button> |
| | | <button |
| | | v-else-if="activeTab === 1 && item.单据状态 === '已签到'" |
| | | class="op2" |
| | | size="mini" |
| | | plain |
| | | @tap.stop="pushHandleBill(item)" |
| | | > |
| | | <button v-else-if="activeTab === 1 && item.单据状态 === '已签到'" class="op2" size="mini" plain |
| | | @tap.stop="pushHandleBill(item)"> |
| | | 下推处理单 |
| | | </button> |
| | | <button |
| | | v-else-if="activeTab === 2 && item.单据状态 === '已处理'" |
| | | class="op3" |
| | | size="mini" |
| | | plain |
| | | @tap.stop="pushCheckBill(item)" |
| | | > |
| | | <button v-else-if="activeTab === 2 && item.单据状态 === '已处理'" class="op3" size="mini" plain |
| | | @tap.stop="pushCheckBill(item)"> |
| | | 下推验收单 |
| | | </button> |
| | | <button |
| | | v-else-if="activeTab === 3" |
| | | class="op3" |
| | | size="mini" |
| | | plain |
| | | @tap.stop="pushAllTab(item)" |
| | | > |
| | | 下推单据 |
| | | </button> |
| | | <button |
| | | v-else |
| | | class="op5" |
| | | size="mini" |
| | | plain |
| | | disabled |
| | | > |
| | | 无法下推 |
| | | </button> |
| | | <button class="op5" size="mini" plain @tap.stop="operations = -1">取消操作</button> |
| | | </view> |
| | |
| | | </view> |
| | | <view class="over" v-if="tabs[activeTab].listData.length == 0">暂无数据</view> |
| | | </scroll-view> |
| | | |
| | | |
| | | <!-- 分页器 --> |
| | | <view class="page-footer"> |
| | | <uni-pagination |
| | | id="pagination" |
| | | title="标题文字" |
| | | v-model="tabs[activeTab].pageMeta.curPage" |
| | | :pageSize="tabs[activeTab].pageMeta.size" |
| | | :total="tabs[activeTab].pageMeta.total" |
| | | @change="onPageChangeHandler" |
| | | ></uni-pagination> |
| | | <uni-pagination id="pagination" title="标题文字" v-model="tabs[activeTab].pageMeta.curPage" |
| | | :pageSize="tabs[activeTab].pageMeta.size" :total="tabs[activeTab].pageMeta.total" |
| | | @change="onPageChangeHandler"></uni-pagination> |
| | | </view> |
| | | </view> |
| | | </template> |
| | |
| | | // 计算卡片列表高度 |
| | | pagination_top: 0, |
| | | pageContent_top: 0, |
| | | |
| | | |
| | | // 当前激活的页签 |
| | | activeTab: 0, |
| | | |
| | | // 页签数据 |
| | | tabs: [ |
| | | { |
| | | |
| | | tabs: [{ |
| | | label: '待签到', |
| | | type: 0, |
| | | listData: [], |
| | | pageMeta: { curPage: 1, size: 50, total: 0 }, |
| | | count: 0 |
| | | count: 0, |
| | | listData: [], // 添加这个 |
| | | pageMeta: { // 添加这个 |
| | | curPage: 1, |
| | | size: 50, |
| | | total: 0, |
| | | } |
| | | }, |
| | | { |
| | | label: '待处理', |
| | | type: 1, |
| | | listData: [], |
| | | pageMeta: { curPage: 1, size: 50, total: 0 }, |
| | | count: 0 |
| | | count: 0, |
| | | listData: [], // 添加这个 |
| | | pageMeta: { // 添加这个 |
| | | curPage: 1, |
| | | size: 50, |
| | | total: 0, |
| | | } |
| | | }, |
| | | { |
| | | label: '待验收', |
| | | type: 2, |
| | | listData: [], |
| | | pageMeta: { curPage: 1, size: 50, total: 0 }, |
| | | count: 0 |
| | | count: 0, |
| | | listData: [], // 添加这个 |
| | | pageMeta: { // 添加这个 |
| | | curPage: 1, |
| | | size: 50, |
| | | total: 0, |
| | | } |
| | | }, |
| | | { |
| | | label: '全部单据', |
| | | type: 3, |
| | | listData: [], |
| | | pageMeta: { curPage: 1, size: 50, total: 0 }, |
| | | count: 0 |
| | | count: 0, |
| | | listData: [], // 添加这个 |
| | | pageMeta: { // 添加这个 |
| | | curPage: 1, |
| | | size: 50, |
| | | total: 0, |
| | | } |
| | | } |
| | | ], |
| | | |
| | | |
| | | // 滚动控制 |
| | | scrollTop: 0, |
| | | old: { |
| | |
| | | this.scrollTop = 0 |
| | | }); |
| | | }, |
| | | |
| | | |
| | | // 切换页签 |
| | | switchTab(index) { |
| | | this.activeTab = index |
| | | this.showDetail = -1 |
| | | this.operations = -1 |
| | | // 如果当前页签没有数据,则查询 |
| | | if (this.tabs[index].listData.length === 0) { |
| | | this.onSearchClickHandler() |
| | | } |
| | | }, |
| | | |
| | | |
| | | onDateRangePickerChangeHandler({ |
| | | detail |
| | | }) { |
| | |
| | | this.enableCustomDateRange = true |
| | | } |
| | | }, |
| | | |
| | | |
| | | onSearchClickHandler() { |
| | | let sWhere = "" |
| | | if (this.startDate) { |
| | | sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + this.startDate + "'"; |
| | | } |
| | | if (this.endDate) { |
| | | sWhere += " and CONVERT(varchar(100),日期, 23) <= '" + this.endDate + "'"; |
| | | } |
| | | if (this.HBillNo) { |
| | | sWhere += " and 单据号 like '%" + this.HBillNo + "%'"; |
| | | } |
| | | |
| | | // 根据当前页签类型添加状态条件 |
| | | // 获取当前激活的页签 |
| | | const currentTab = this.tabs[this.activeTab] |
| | | switch (currentTab.type) { |
| | | case 0: // 待签到 |
| | | sWhere += " and 单据状态 = '已反馈'" |
| | | break |
| | | case 1: // 待处理 |
| | | sWhere += " and 单据状态 = '已签到'" |
| | | break |
| | | case 2: // 待验收 |
| | | sWhere += " and 单据状态 = '已处理'" |
| | | break |
| | | case 3: // 全部单据 - 不需要添加状态条件 |
| | | break |
| | | sWhere = { |
| | | HBeginDate: this.startDate, |
| | | HEndDate: this.endDate |
| | | } |
| | | |
| | | this.get_DisplayPage(sWhere, currentTab.type) |
| | | this.get_DisplayPage(JSON.stringify(sWhere), currentTab.type) |
| | | }, |
| | | |
| | | |
| | | clear() { |
| | | this.curDateGap = "近七天" |
| | | this.enableCustomDateRange = false |
| | |
| | | this.endDate = dayjs(new Date()).format('YYYY-MM-DD') |
| | | this.HBillNo = '' |
| | | }, |
| | | |
| | | |
| | | async onResetClickHandler() { |
| | | this.clear() |
| | | await this.$nextTick() |
| | | this.onSearchClickHandler() |
| | | }, |
| | | |
| | | |
| | | get_DisplayPage(sWhere, tabType) { |
| | | const currentTab = this.tabs.find(tab => tab.type === tabType) |
| | | |
| | | CommonUtils.doRequest2({ |
| | | url: '/Sc_MESTransFerWorkBill/Get_OA_ErrMsgBackReceiveBillListPage', |
| | | url: '/Sc_MESTransFerWorkBill/GetSc_MESTransFerWorkBillQuery_APP', |
| | | data: { |
| | | "sWhere": sWhere, |
| | | "user": getUserInfo()["Czymc"], |
| | | "page": currentTab.pageMeta.curPage, |
| | | "size": currentTab.pageMeta.size |
| | | }, |
| | | resFunction: (res) => { |
| | | let { |
| | |
| | | Message, |
| | | count |
| | | } = res.data |
| | | console.log('res.data: ', res.data); |
| | | |
| | | // 更新当前页签的数据 |
| | | currentTab.listData = data |
| | | currentTab.pageMeta.total = count |
| | | currentTab.count = data.length |
| | | |
| | | console.log('res.data: ', res.data) |
| | | |
| | | // 将数据分别赋值给对应的页签 |
| | | // h_p_OA_ErrMsgBackSelfQuery_APP: 待签到 |
| | | // h_p_OA_ErrMsgBackSelfQuery_APP1: 待处理 |
| | | // h_p_OA_ErrMsgBackSelfQuery_APP2: 待验收 |
| | | // h_p_OA_ErrMsgBackSelfQuery_APP3: 全部单据 |
| | | |
| | | if (data && data.h_p_OA_ErrMsgBackSelfQuery_APP) { |
| | | // 更新待签到页签 |
| | | this.tabs[0].listData = data.h_p_OA_ErrMsgBackSelfQuery_APP |
| | | this.tabs[0].pageMeta.total = data.h_p_OA_ErrMsgBackSelfQuery_APP.length |
| | | this.tabs[0].count = data.h_p_OA_ErrMsgBackSelfQuery_APP.length |
| | | } |
| | | |
| | | if (data && data.h_p_OA_ErrMsgBackSelfQuery_APP1) { |
| | | // 更新待处理页签 |
| | | this.tabs[1].listData = data.h_p_OA_ErrMsgBackSelfQuery_APP1 |
| | | this.tabs[1].pageMeta.total = data.h_p_OA_ErrMsgBackSelfQuery_APP1.length |
| | | this.tabs[1].count = data.h_p_OA_ErrMsgBackSelfQuery_APP1.length |
| | | } |
| | | |
| | | if (data && data.h_p_OA_ErrMsgBackSelfQuery_APP2) { |
| | | // 更新待验收页签 |
| | | this.tabs[2].listData = data.h_p_OA_ErrMsgBackSelfQuery_APP2 |
| | | this.tabs[2].pageMeta.total = data.h_p_OA_ErrMsgBackSelfQuery_APP2.length |
| | | this.tabs[2].count = data.h_p_OA_ErrMsgBackSelfQuery_APP2.length |
| | | } |
| | | |
| | | if (data && data.h_p_OA_ErrMsgBackSelfQuery_APP3) { |
| | | // 更新全部单据页签 |
| | | this.tabs[3].listData = data.h_p_OA_ErrMsgBackSelfQuery_APP3 |
| | | this.tabs[3].pageMeta.total = data.h_p_OA_ErrMsgBackSelfQuery_APP3.length |
| | | this.tabs[3].count = data.h_p_OA_ErrMsgBackSelfQuery_APP3.length |
| | | } |
| | | |
| | | uni.stopPullDownRefresh() |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | |
| | | onPageChangeHandler() { |
| | | this.onSearchClickHandler() |
| | | this.goTop() |
| | | }, |
| | | |
| | | // 新增异常反馈单 |
| | | onAddClickHandler() { |
| | | uni.navigateTo({ |
| | | url: "/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackReceiveBill/OA_ErrMsgBackReceiveBill?OperationType=1" |
| | | }) |
| | | }, |
| | | |
| | | |
| | | // 下推异常反馈签到单 (页签1:待签到) |
| | | pushSignBill(item) { |
| | | if (item.单据状态 !== '已反馈') { |
| | | uni.showToast({ |
| | | title: '当前单据状态不允许下推签到单', |
| | | title: '当前单据状态不允许下推异常反馈签到单', |
| | | icon: 'none' |
| | | }) |
| | | return |
| | | } |
| | | |
| | | |
| | | console.log('下推签到单:', item) |
| | | uni.navigateTo({ |
| | | url: '/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackSignBill/OA_ErrMsgBackSignBill?OperationType=2&linterid=' + |
| | | item.hmainid + '&HEntryID=' + (item.HEntryID || 0) + '&HSouceBillType=4502' |
| | | url: '/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackSignBill/OA_ErrMsgBackSignBill?OperationType=2&linterid=' + |
| | | item.HInterID + '&HEntryID=' + (item.HEntryID || 0) + '&HSouceBillType=4502', |
| | | success: () => { |
| | | // 跳转成功后触发查询 |
| | | this.onSearchClickHandler() |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | |
| | | // 下推异常反馈处理单 (页签2:待处理) |
| | | pushHandleBill(item) { |
| | | if (item.单据状态 !== '已签到') { |
| | |
| | | }) |
| | | return |
| | | } |
| | | |
| | | |
| | | console.log('下推处理单:', item) |
| | | uni.navigateTo({ |
| | | url: '/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackHandleBill/OA_ErrMsgBackHandleBill?OperationType=2&linterid=' + |
| | | item.hmainid + '&HEntryID=' + (item.HEntryID || 0) + '&HSouceBillType=4502' |
| | | url: '/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackHandleBill/OA_ErrMsgBackHandleBill?OperationType=2&linterid=' + |
| | | item.HInterID + '&HEntryID=' + (item.HEntryID || 0) + '&HSouceBillType=4502', |
| | | success: () => { |
| | | // 跳转成功后触发查询 |
| | | this.onSearchClickHandler() |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | |
| | | // 下推异常反馈验收单 (页签3:待验收) |
| | | pushCheckBill(item) { |
| | | if (item.单据状态 !== '已处理') { |
| | |
| | | }) |
| | | return |
| | | } |
| | | |
| | | |
| | | console.log('下推验收单:', item) |
| | | uni.navigateTo({ |
| | | url: '/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackCheckBill/OA_ErrMsgBackCheckBill?OperationType=2&linterid=' + |
| | | item.hmainid + '&HEntryID=' + (item.HEntryID || 0) + '&HSouceBillType=4502' |
| | | }) |
| | | }, |
| | | |
| | | // 全部单据页签的下推操作 |
| | | pushAllTab(item) { |
| | | let url = '' |
| | | |
| | | // 根据单据状态决定下推哪种单据 |
| | | switch (item.单据状态) { |
| | | case '已反馈': |
| | | url = '/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackSignBill/OA_ErrMsgBackSignBill?OperationType=2&linterid=' + |
| | | item.hmainid + '&HEntryID=' + (item.HEntryID || 0) + '&HSouceBillType=4502' |
| | | break |
| | | case '已签到': |
| | | url = '/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackHandleBill/OA_ErrMsgBackHandleBill?OperationType=2&linterid=' + |
| | | item.hmainid + '&HEntryID=' + (item.HEntryID || 0) + '&HSouceBillType=4502' |
| | | break |
| | | case '已处理': |
| | | url = '/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackCheckBill/OA_ErrMsgBackCheckBill?OperationType=2&linterid=' + |
| | | item.hmainid + '&HEntryID=' + (item.HEntryID || 0) + '&HSouceBillType=4502' |
| | | break |
| | | default: |
| | | uni.showToast({ |
| | | title: '当前单据状态不允许下推', |
| | | icon: 'none' |
| | | }) |
| | | return |
| | | } |
| | | |
| | | console.log('下推单据:', item) |
| | | uni.navigateTo({ |
| | | url: url |
| | | }) |
| | | }, |
| | | |
| | | // 删除异常反馈签到单 |
| | | del(item) { |
| | | uni.showModal({ |
| | | title: '删除确认', |
| | | content: '确认要删除吗,删除后不能恢复', |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | console.log('用户点击确定'); |
| | | CommonUtils.doRequest2({ |
| | | url: '/Sc_MESTransFerWorkBill/DeleteOA_ErrMsgBackReceiveBill', |
| | | data: { |
| | | HInterID: item['hmainid'], |
| | | user: getUserInfo()['Czymc'] |
| | | }, |
| | | resFunction: (res) => { |
| | | let { |
| | | data, |
| | | count, |
| | | Message |
| | | } = res.data |
| | | if (count == 1) { |
| | | uni.showToast({ |
| | | icon: count === 1 ? 'success' : 'error', |
| | | title: Message, |
| | | duration: 2000 |
| | | }); |
| | | |
| | | // 等待提示显示完成再刷新 |
| | | setTimeout(() => { |
| | | this.onSearchClickHandler(); |
| | | }, 2000); |
| | | } else { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: Message |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | } else if (res.cancel) { |
| | | console.log('用户点击取消'); |
| | | } |
| | | url: '/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackCheckBill/OA_ErrMsgBackCheckBill?OperationType=2&linterid=' + |
| | | item.HInterID + '&HEntryID=' + (item.HEntryID || 0) + '&HSouceBillType=4502', |
| | | success: () => { |
| | | // 跳转成功后触发查询 |
| | | this.onSearchClickHandler() |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | }, |
| | | } |
| | |
| | | color: #fff; |
| | | } |
| | | } |
| | | |
| | | |
| | | /* 页签样式 */ |
| | | .tab-container { |
| | | background-color: #fff; |
| | | } |
| | | |
| | | |
| | | .tab-list { |
| | | display: flex; |
| | | flex-direction: row; |
| | | border-bottom: 1px solid #e5e5e5; |
| | | } |
| | | |
| | | |
| | | .tab-item { |
| | | flex: 1; |
| | | padding: 20rpx 0; |
| | |
| | | font-size: 28rpx; |
| | | color: #666; |
| | | position: relative; |
| | | |
| | | |
| | | &.active { |
| | | color: #3a78ff; |
| | | font-weight: bold; |
| | | |
| | | |
| | | &::after { |
| | | content: ''; |
| | | position: absolute; |
| | |
| | | background-color: #3a78ff; |
| | | } |
| | | } |
| | | |
| | | |
| | | .tab-count { |
| | | display: inline-block; |
| | | margin-left: 10rpx; |
| | |
| | | padding: 0; |
| | | width: 150rpx; |
| | | font-size: 25rpx; |
| | | |
| | | |
| | | &:disabled { |
| | | opacity: 0.5; |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | .over { |
| | | text-align: center; |
| | | padding: 40rpx; |
| | |
| | | </view> |
| | | </view> |
| | | <view class="mains"> |
| | | <view v-if="!canEdit" :hidden="item.hidden||!item.id" class="box" v-for="(item,index) in itemData" :key="index" |
| | | @tap="toUrl(item)"> |
| | | <view v-if="!canEdit" :hidden="item.hidden||!item.id" class="box" v-for="(item,index) in itemData" |
| | | :key="index" @tap="toUrl(item)"> |
| | | <image :src="item.img" mode=""></image> |
| | | <view class="texts"> |
| | | {{item.text}} |
| | | </view> |
| | | </view> |
| | | <view :enable-hidden="item.hidden" :hidden="!item.id" v-if="canEdit" class="box edit" v-for="(item,index) in itemData" |
| | | :key="index" @tap="switchHidden(index)"> |
| | | <view :enable-hidden="item.hidden" :hidden="!item.id" v-if="canEdit" class="box edit" |
| | | v-for="(item,index) in itemData" :key="index" @tap="switchHidden(index)"> |
| | | <uni-icons class="edit-mark" color="red" type="closeempty"></uni-icons> |
| | | <image :src="item.img" mode=""></image> |
| | | <view class="texts"> |
| | |
| | | url: '/pages/gongxuIn/Cj_StationInBillList', |
| | | id: 25, |
| | | hidden: false, |
| | | }, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon10.png', |
| | | text: '工序出站汇报单列表', |
| | |
| | | url: '/pages/gongxuOut/Cj_StationOutBillList', |
| | | id: 26, |
| | | hidden: false, |
| | | }, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon11.png', |
| | | text: '工序委外发出单列表', |
| | |
| | | url: '/pages/weiwaigxIn/Cj_StationEntrustInBillList', |
| | | id: 27, |
| | | hidden: false, |
| | | }, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon12.png', |
| | | text: '工序委外接收单列表', |
| | |
| | | url: '/pages/weiwaigxOut/Cj_StationEntrustOutBillList', |
| | | id: 28, |
| | | hidden: false, |
| | | }, |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "模具报废出库单列表", |
| | |
| | | "id": 36, |
| | | "hidden": false |
| | | }, |
| | | |
| | | { |
| | | "img": "../../static/icon/icon13.png", |
| | | "text": "模具维修记录列表", |
| | | "url": "/pages/weixiujilu/mouldRepairRecordBillList", |
| | | "id": 37, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon13.png", |
| | | "text": "模具故障登记列表", |
| | | "url": "/pages/qijvguzhangdengji/mouldMistake", |
| | | "id": 37, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "模具维修派工单列表", |
| | | "url": "/pages/MJGL/Sc_MouldRepairSendWork/Sc_MouldRepairSendWorkBillList", |
| | | "id": 38, |
| | | "hidden": false |
| | | }, |
| | | |
| | | { |
| | | "img": "../../static/icon/icon13.png", |
| | | "text": "模具维修记录列表", |
| | | "url": "/pages/weixiujilu/mouldRepairRecordBillList", |
| | | "id": 39, |
| | | "hidden": false |
| | | }, |
| | | |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "模具维修验收单列表", |
| | | "url": "/pages/MJGL/SC_MouldRepairCheck/Sc_MouldRepairCheckBillList", |
| | | "id": 40, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon13.png", |
| | | "text": "首件检验单列表", |
| | | "url": "/pages/ZLGL/shoujianjianyan/firstCheckBillList", |
| | | "id": 39, |
| | | "id": 41, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "巡检检验单列表", |
| | | "url": "/pages/ZLGL/xunjianjianyan/PatrolProcCheckBillList", |
| | | "id": 40, |
| | | "hidden": false |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "巡检检验单列表", |
| | | "url": "/pages/ZLGL/xunjianjianyan/PatrolProcCheckBillList", |
| | | "id": 42, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "末件检验单列表", |
| | | "url": "/pages/ZLGL/mojianjianyan/lastPieceCheckBillList", |
| | | "id": 41, |
| | | "hidden": false |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "末件检验单列表", |
| | | "url": "/pages/ZLGL/mojianjianyan/lastPieceCheckBillList", |
| | | "id": 43, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "来料检验列表", |
| | | "url": "/pages/ZLGL/lailiaojianyan/POStockInCheckBillList", |
| | | "id": 42, |
| | | "id": 44, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "全检检验单列表", |
| | | "url": "/pages/ZLGL/QualityReportStep/QualityReportStepBillList", |
| | | "id": 43, |
| | | "id": 45, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "车间自检单列表", |
| | | "url": "/pages/ZLGL/WorkSelfCheckBill/WorkSelfCheckBillList", |
| | | "id": 44, |
| | | "id": 46, |
| | | "hidden": false |
| | | }, |
| | | // 标签条码相关 |
| | | |
| | | |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "在库检验单缓存", |
| | | "url": "/pages/ZLGL/zaikujianyandan/InStockCheckBillList", |
| | | "id": 47, |
| | | "hidden": false |
| | | }, |
| | | // 设备相关 |
| | | { |
| | | "img": "../../static/icon/icon3.png", |
| | | "text": "设备点检记录单列表", |
| | | "url": "/pages/MJGL/Sb_EquipDotCheckBill/Sb_EquipDotCheckBillList", |
| | | "id": 45, |
| | | "id": 48, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon3.png", |
| | | "text": "设备保养记录单列表", |
| | | "url": "/pages/MJGL/Sb_EquipMaintainBill/Sb_EquipMaintainBillList", |
| | | "id": 46, |
| | | "id": 49, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon6.png", |
| | | "text": "设备故障登记表列表", |
| | | "url": "/pages/guzhangdengji/EqpConkBookBillList", |
| | | "id":47, |
| | | "id": 50, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "设备维修派工单列表", |
| | | "url": "/pages/MJGL/Sb_EquipRepairSendWork/Sb_EquipRepairSendWorkBillList", |
| | | "id": 51, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon7.png", |
| | | "text": "设备维修记录单列表", |
| | | "url": "/pages/shebeiweixiu/SbEqpMaintenanceBillList", |
| | | "id": 48, |
| | | "id": 52, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "设备维修验收单列表", |
| | | "url": "/pages/MJGL/Sb_EquipRepairCheckBill/Sb_EquipRepairCheckBillList", |
| | | "id": 49, |
| | | "hidden": false |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "设备维修验收单列表", |
| | | "url": "/pages/MJGL/Sb_EquipRepairCheckBill/Sb_EquipRepairCheckBillList", |
| | | "id": 53, |
| | | "hidden": false |
| | | }, |
| | | |
| | | // 安灯相关 |
| | |
| | | "img": "../../static/icon/icon15.png", |
| | | "text": "异常反馈单列表", |
| | | "url": "/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackBill/OA_ErrMsgBackBillList", |
| | | "id": 50, |
| | | "id": 54, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon16.png", |
| | | "text": "异常反馈接收单列表", |
| | | "url": "/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackReceiveBill/OA_ErrMsgBackReceiveBillList", |
| | | "id": 51, |
| | | "id": 55, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon16.png", |
| | | "text": "异常反馈签到单列表", |
| | | "url": "/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackSignBill/OA_ErrMsgBackSignBillList", |
| | | "id": 52, |
| | | "id": 56, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon16.png", |
| | | "text": "异常反馈处理单列表", |
| | | "url": "/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackHandleBill/OA_ErrMsgBackHandleBillList", |
| | | "id": 53, |
| | | "id": 57, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon16.png", |
| | | "text": "异常反馈验收单列表", |
| | | "url": "/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackCheckBill/OA_ErrMsgBackCheckBillList", |
| | | "id": 54, |
| | | "id": 58, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon16.png", |
| | | "text": "异常反馈待处理列表", |
| | | "url": "/pages/ZLGL/AanDengHujiao/OA_MyErrMsgBanck/OA_ErrMsgBackMyList", |
| | | "id": 55, |
| | | "id": 59, |
| | | "hidden": false |
| | | }, |
| | | |
| | | |
| | | |
| | | // 取样还样相关 |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "取样单列表", |
| | | "url": "/pages/quyangdan/TakeSampleCheckBillList", |
| | | "id": 56, |
| | | "id": 60, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "还样单列表", |
| | | "url": "/pages/huanyangdan/BackSampleCheckBillList", |
| | | "id": 57, |
| | | "id": 61, |
| | | "hidden": false |
| | | }, |
| | | |
| | |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "装箱单暂存列表", |
| | | "url": "/pages/zhuangxiangdan/table", |
| | | "id": 58, |
| | | "id": 62, |
| | | "hidden": false |
| | | }, |
| | | |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "在库检验单缓存", |
| | | "url": "/pages/ZLGL/zaikujianyandan/InStockCheckBillList", |
| | | "id": 59, |
| | | "hidden": false |
| | | } |
| | | |
| | | ] |
| | | } |
| | | }, |
| | |
| | | }) |
| | | Array.from(data).forEach(e => { |
| | | this.itemData[e["HIndex"]].hidden = !CommonUtils.stringToBoolean(e["HShowMode"]) |
| | | this.itemData[e["HIndex"]].id = e["HEntryID"];//id为0强制隐藏 |
| | | this.itemData[e["HIndex"]].id = e["HEntryID"]; //id为0强制隐藏 |
| | | }) |
| | | }, |
| | | switchHidden(index) { |
| | | this.updateCount++; |
| | | this.itemData[index].hidden = !this.itemData[index].hidden |
| | | |
| | | |
| | | }, |
| | | switchIconsModeHandler() { |
| | | this.canEdit = !this.canEdit |
| | |
| | | </view> |
| | | </view> |
| | | <view class="mains"> |
| | | <view v-if="!canEdit" :hidden="item.hidden||!item.id" class="box" v-for="(item,index) in itemData" :key="index" |
| | | @tap="toUrl(item)"> |
| | | <view v-if="!canEdit" :hidden="item.hidden||!item.id" class="box" v-for="(item,index) in itemData" |
| | | :key="index" @tap="toUrl(item)"> |
| | | <image :src="item.img" mode=""></image> |
| | | <view class="texts"> |
| | | {{item.text}} |
| | | </view> |
| | | </view> |
| | | <view :enable-hidden="item.hidden" :hidden="!item.id" v-if="canEdit" class="box edit" v-for="(item,index) in itemData" |
| | | :key="index" @tap="switchHidden(index)"> |
| | | <view :enable-hidden="item.hidden" :hidden="!item.id" v-if="canEdit" class="box edit" |
| | | v-for="(item,index) in itemData" :key="index" @tap="switchHidden(index)"> |
| | | <uni-icons class="edit-mark" color="red" type="closeempty"></uni-icons> |
| | | <image :src="item.img" mode=""></image> |
| | | <view class="texts"> |
| | |
| | | menuListName: 'tab3', |
| | | canEdit: false, |
| | | serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API', |
| | | itemData: [ |
| | | { |
| | | itemData: [{ |
| | | img: '../../static/icon/icon6.png', |
| | | text: '模具状态分析', |
| | | tip: '查看详情', |
| | | url: '/pages/mujvzhuangtai/mujvzhuangtai', |
| | | id: 1, |
| | | hidden: false, |
| | | |
| | | |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon8.png', |
| | |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon13.png", |
| | | "text": "模具维修记录单", |
| | | "url": "/pages/weixiujilu/mouldRepairRecordBill", |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "模具维修派工单", |
| | | "url": "/pages/MJGL/Sc_MouldRepairSendWork/Sc_MouldRepairSendWorkBill", |
| | | "id": 5, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon13.png", |
| | | "text": "模具维修验收单", |
| | | "text": "模具维修记录单", |
| | | "url": "/pages/weixiujilu/mouldRepairRecordBill", |
| | | "id": 6, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "模具点检记录单", |
| | | "url": "/pages/MJGL/mujudianjianjiludan/Sc_MouldDotCheckBill", |
| | | "id": 7, |
| | | "hidden": false |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "模具维修验收单", |
| | | "url": "/pages/MJGL/SC_MouldRepairCheck/Sc_MouldRepairCheckBill", |
| | | "id": 7, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img":"../../static/icon/icon8.png", |
| | | "text": "模具保养记录单", |
| | | "url": "/pages/MJGL/mujubaoyangjiludan/Sc_MouldMaintainBill", |
| | | "id": 8, |
| | | "hidden": false |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "模具点检记录单", |
| | | "url": "/pages/MJGL/mujudianjianjiludan/Sc_MouldDotCheckBill", |
| | | "id": 8, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "模具保养记录单", |
| | | "url": "/pages/MJGL/mujubaoyangjiludan/Sc_MouldMaintainBill", |
| | | "id": 9, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "模具领用出库单", |
| | | "url": "/pages/MJGL/mujulingliaochukudan/MouldProdOutBill", |
| | | "id": 9, |
| | | "id": 10, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "模具领用退库单", |
| | | "url": "/pages/MJGL/mujulingliaotuikudan/Sc_MouldProdBackBill", |
| | | "id": 10, |
| | | "id": 11, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon8.png', |
| | | text: '上模单', |
| | | url: `/pages/MJGL/shangmudan/MouldUpperBill`, |
| | | id: 11, |
| | | id: 12, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon8.png', |
| | | text: '下模单', |
| | | url: `/pages/MJGL/xiamodan/MouldLowerBill`, |
| | | id: 12, |
| | | id: 13, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "模具报废出库单", |
| | | "url": "/pages/MJGL/MouldScrapOutBill/MouldScrapOutBill", |
| | | "id": 13, |
| | | "id": 14, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon1.png', |
| | | text: '设备档案查询', |
| | | tip: '查看详情', |
| | | url: '/pages/shebeidangan/Gy_EquipFileMainBillList', |
| | | id: 14, |
| | | hidden: true, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon8.png', |
| | | text: '设备履历查询', |
| | | tip: '查看详情', |
| | | url: '/pages/shebeilvli/EquipFileBillResume', |
| | | id: 15, |
| | | hidden: true, |
| | | }, |
| | | img: '../../static/icon/icon1.png', |
| | | text: '设备档案查询', |
| | | tip: '查看详情', |
| | | url: '/pages/shebeidangan/Gy_EquipFileMainBillList', |
| | | id: 15, |
| | | hidden: true, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon8.png', |
| | | text: '设备履历查询', |
| | | tip: '查看详情', |
| | | url: '/pages/shebeilvli/EquipFileBillResume', |
| | | id: 16, |
| | | hidden: true, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon32.png', |
| | | text: '设备运行状态', |
| | | tip: '查看详情', |
| | | url: '/pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai', |
| | | id: 16, |
| | | id: 17, |
| | | hidden: true, |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "设备保养记录单", |
| | | "url": "/pages/MJGL/Sb_EquipMaintainBill/Sb_EquipMaintainBill", |
| | | "id": 17, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "设备点检记录单", |
| | | "url": "/pages/MJGL/Sb_EquipDotCheckBill/Sb_EquipDotCheckBill", |
| | | "id": 18, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "设备维修验收单", |
| | | "url": "/pages/MJGL/Sb_EquipRepairCheckBill/Sb_EquipRepairCheckBill", |
| | | "id": 57, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "设备维修派工单列表", |
| | | "url": "/pages/MJGL/Sb_EquipRepairSendWork/Sb_EquipRepairSendWorkBillList", |
| | | "id": 58, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "设备维修派工单", |
| | | "url": "/pages/MJGL/Sb_EquipRepairSendWork/Sb_EquipRepairSendWorkBill", |
| | | "id": 59, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "模具维修验收单列表", |
| | | "url": "/pages/MJGL/SC_MouldRepairCheck/Sc_MouldRepairCheckBillList", |
| | | "id": 60, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "模具维修验收单", |
| | | "url": "/pages/MJGL/SC_MouldRepairCheck/Sc_MouldRepairCheckBill", |
| | | "id": 61, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "模具维修派工单列表", |
| | | "url": "/pages/MJGL/Sc_MouldRepairSendWork/Sc_MouldRepairSendWorkBillList", |
| | | "id": 62, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "模具维修派工单", |
| | | "url": "/pages/MJGL/Sc_MouldRepairSendWork/Sc_MouldRepairSendWorkBill", |
| | | "id": 63, |
| | | "hidden": false |
| | | } |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "设备点检记录单", |
| | | "url": "/pages/MJGL/Sb_EquipDotCheckBill/Sb_EquipDotCheckBill", |
| | | "id": 18, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "设备保养记录单", |
| | | "url": "/pages/MJGL/Sb_EquipMaintainBill/Sb_EquipMaintainBill", |
| | | "id": 19, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "设备维修派工单", |
| | | "url": "/pages/MJGL/Sb_EquipRepairSendWork/Sb_EquipRepairSendWorkBill", |
| | | "id": 21, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "设备维修验收单", |
| | | "url": "/pages/MJGL/Sb_EquipRepairCheckBill/Sb_EquipRepairCheckBill", |
| | | "id": 23, |
| | | "hidden": false |
| | | }, |
| | | ] |
| | | } |
| | | }, |
| | |
| | | }) |
| | | Array.from(data).forEach(e => { |
| | | this.itemData[e["HIndex"]].hidden = !CommonUtils.stringToBoolean(e["HShowMode"]) |
| | | this.itemData[e["HIndex"]].id = e["HEntryID"];//id为0强制隐藏 |
| | | this.itemData[e["HIndex"]].id = e["HEntryID"]; //id为0强制隐藏 |
| | | }) |
| | | }, |
| | | switchHidden(index) { |
| | | this.updateCount++; |
| | | this.itemData[index].hidden = !this.itemData[index].hidden |
| | | |
| | | |
| | | }, |
| | | switchIconsModeHandler() { |
| | | this.canEdit = !this.canEdit |