| | |
| | | <el-dialog title="编辑容器主档资料" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" |
| | | @close="close"> |
| | | <edit :OperationType=OperationType :linterid=this.rowForm.hmainid :HSouceBillType=this.rowForm.HSourceBillType |
| | | :copyType="copyType" @editCloseGy="editGyClose" v-if="editShow" /> |
| | | :copyType="copyType" @editClose="editGyClose" v-if="editShow" /> |
| | | </el-dialog> |
| | | <el-dialog :title="upload.title" :visible.sync="upload.open" width="1500px" append-to-body> |
| | | <div style="margin-top:-20px ;"> |
| | |
| | | { type: 'checkbox', fixed: 'left', totalRowText: '合计行' } |
| | | , { field: 'hmainid', title: 'hmainid', sort: true, hide: true } |
| | | , { field: '日期', title: '日期', sort: true } |
| | | , { field: '单据号', title: '单据号', sort: true } |
| | | , { field: '条码编号', title: '条码编号', sort: true } |
| | | , { field: '对应ERP物料编码', title: '物料编号', sort: true } |
| | | , { field: '模具编号', title: '器具编号', sort: true, } |
| | | , { field: '模具名称', title: '器具名称', sort: true } |
| | | , { field: '模具型号', title: '器具型号', sort: true } |
| | | , { field: '模具品类', title: '器具品类', sort: true } |
| | | , { field: '模具状态', title: '器具状态', sort: true } |
| | | , { field: '模具可用状态', title: '模具可用状态', sort: true } |
| | | , { field: '穴数', title: '穴数', sort: true } |
| | | , { field: '对应ERP物料编码', title: '器具ERP物料', sort: true } |
| | | , { field: '直径', title: '直径', sort: true } |
| | | , { field: '辅助属性', title: '辅助属性', sort: true } |
| | | , { field: '辅助属性2', title: '辅助属性2', sort: true } |
| | | , { field: '图号', title: '图号', sort: true } |
| | | , { field: '生产产品型号', title: '生产产品型号', sort: true } |
| | | , { field: 'HUnitID', title: 'HUnitID', hide: true, sort: true } |
| | | , { field: '计量单位代码', title: '计量单位代码', sort: true } |
| | | , { field: '计量单位', title: '计量单位', sort: true } |
| | | , { field: '出厂日期', title: '出厂日期', sort: true } |
| | | , { field: '出厂编号', title: '出厂编号', sort: true } |
| | | , { field: '使用部门代码', title: '使用部门代码', sort: true } |
| | | , { field: '使用部门', title: '使用部门', sort: true } |
| | | , { field: 'HSupID', title: 'HSupID', hide: true, sort: true } |
| | | , { field: '供应商代码', title: '供应商代码', sort: true } |
| | | , { field: '供应商', title: '供应商', sort: true } |
| | | , { field: 'HWhID', title: 'HWhID', hide: true, sort: true } |
| | | , { field: '默认仓库', title: '默认仓库', sort: true } |
| | | , { field: 'HSPID', title: 'HSPID', hide: true, sort: true } |
| | | , { field: '默认仓位', title: '默认仓位', sort: true } |
| | | , { field: '版本', title: '版本', sort: true } |
| | | , { field: '当前仓库', title: '当前仓库', sort: true } |
| | | , { field: '当前仓位', title: '当前仓位', sort: true } |
| | | , { field: '虚拟仓类型', title: '虚拟仓类型', sort: true } |
| | | , { field: '虚拟仓', title: '虚拟仓', sort: true } |
| | | , { field: '当前模具规格', title: '当前器具规格', sort: true } |
| | | , { field: '初始模具规格', title: '初始器具规格', sort: true } |
| | | , { field: '当前设计寿命', title: '当前设计寿命', sort: true, totalRow: true } |
| | | , { field: '初始设计寿命', title: '初始设计寿命', sort: true, totalRow: true } |
| | | , { field: '使用寿命', title: '使用寿命', sort: true, totalRow: true } |
| | | , { field: '剩余寿命', title: '剩余寿命', sort: true, totalRow: true } |
| | | , { field: '已生产数量', title: '已生产数量', sort: true, totalRow: true } |
| | | , { field: '已生产重量', title: '已生产重量', sort: true, totalRow: true } |
| | | , { field: '备注', title: '备注', sort: true } |
| | | , { field: '关联数量', title: '关联数量', sort: true, totalRow: true } |
| | | , { field: '制单人', title: '制单人', sort: true } |
| | | , { field: '制单日期', title: '制单日期', sort: true } |
| | | , { field: '审核人', title: '审核人', sort: true } |
| | | , { field: '审核日期', title: '审核日期', sort: true } |
| | | , { field: '修改人', title: '修改人', sort: true } |
| | | , { field: '修改日期', title: '修改日期', sort: true } |
| | | , { field: '关闭人', title: '关闭人', sort: true } |
| | | , { field: '关闭日期', title: '关闭日期', sort: true } |
| | | , { field: '作废人', title: '作废人', sort: true } |
| | | , { field: '作废日期', title: '作废日期', sort: true } |
| | | , { field: 'hbilltype', title: 'hbilltype', hide: true, sort: true } |
| | | , { field: '单据类型', title: '单据类型', hide: true, sort: true } |
| | | , { field: 'HMoudType', title: 'HMoudType', hide: true, sort: true } |
| | | , { field: 'hsubid', title: 'hsubid', hide: true, sort: true } |
| | | , { field: '单据号', title: '单据号', sort: true, width: 120 } |
| | | , { field: '条码编号', title: '条码编号', sort: true, width: 120 } |
| | | , { field: '对应ERP物料编码', title: '物料编号', sort: true, width: 120 } |
| | | , { field: '模具编号', title: '器具编号', sort: true, width: 120 } |
| | | , { field: '模具名称', title: '器具名称', sort: true, width: 120 } |
| | | , { field: '模具型号', title: '器具型号', sort: true, width: 120 } |
| | | , { field: '模具品类', title: '器具品类', sort: true, width: 120 } |
| | | , { field: '模具状态', title: '器具状态', sort: true, width: 120 } |
| | | , { field: '模具可用状态', title: '模具可用状态', sort: true, width: 140 } |
| | | , { field: '穴数', title: '穴数', sort: true, width: 120 } |
| | | , { field: '对应ERP物料编码', title: '器具ERP物料', sort: true, width: 140 } |
| | | , { field: '直径', title: '直径', sort: true, width: 120 } |
| | | , { field: '辅助属性', title: '辅助属性', sort: true, width: 120 } |
| | | , { field: '辅助属性2', title: '辅助属性2', sort: true, width: 120 } |
| | | , { field: '图号', title: '图号', sort: true, width: 120 } |
| | | , { field: '生产产品型号', title: '生产产品型号', sort: true, width: 120 } |
| | | , { field: 'HUnitID', title: 'HUnitID', hide: true, sort: true, width: 120 } |
| | | , { field: '计量单位代码', title: '计量单位代码', sort: true, width: 120 } |
| | | , { field: '计量单位', title: '计量单位', sort: true, width: 120 } |
| | | , { field: '出厂日期', title: '出厂日期', sort: true, width: 120 } |
| | | , { field: '出厂编号', title: '出厂编号', sort: true, width: 120 } |
| | | , { field: '使用部门代码', title: '使用部门代码', sort: true, width: 120 } |
| | | , { field: '使用部门', title: '使用部门', sort: true, width: 120 } |
| | | , { field: 'HSupID', title: 'HSupID', hide: true, sort: true, width: 120 } |
| | | , { field: '供应商代码', title: '供应商代码', sort: true, width: 120 } |
| | | , { field: '供应商', title: '供应商', sort: true, width: 120 } |
| | | , { field: 'HWhID', title: 'HWhID', hide: true, sort: true, width: 120 } |
| | | , { field: '默认仓库', title: '默认仓库', sort: true, width: 120 } |
| | | , { field: 'HSPID', title: 'HSPID', hide: true, sort: true, width: 120 } |
| | | , { field: '默认仓位', title: '默认仓位', sort: true, width: 120 } |
| | | , { field: '版本', title: '版本', sort: true, width: 120 } |
| | | , { field: '当前仓库', title: '当前仓库', sort: true, width: 120 } |
| | | , { field: '当前仓位', title: '当前仓位', sort: true, width: 120 } |
| | | , { field: '虚拟仓类型', title: '虚拟仓类型', sort: true, width: 120 } |
| | | , { field: '虚拟仓', title: '虚拟仓', sort: true, width: 120 } |
| | | , { field: '当前模具规格', title: '当前器具规格', sort: true, width: 140 } |
| | | , { field: '初始模具规格', title: '初始器具规格', sort: true, width: 140 } |
| | | , { field: '当前设计寿命', title: '当前设计寿命', sort: true, totalRow: true, width: 140 } |
| | | , { field: '初始设计寿命', title: '初始设计寿命', sort: true, totalRow: true, width: 140 } |
| | | , { field: '使用寿命', title: '使用寿命', sort: true, totalRow: true, width: 120 } |
| | | , { field: '剩余寿命', title: '剩余寿命', sort: true, totalRow: true, width: 120 } |
| | | , { field: '已生产数量', title: '已生产数量', sort: true, totalRow: true, width: 120 } |
| | | , { field: '已生产重量', title: '已生产重量', sort: true, totalRow: true, width: 120 } |
| | | , { field: '备注', title: '备注', sort: true, width: 120 } |
| | | , { field: '关联数量', title: '关联数量', sort: true, totalRow: true, width: 120 } |
| | | , { field: '制单人', title: '制单人', sort: true, width: 120 } |
| | | , { field: '制单日期', title: '制单日期', sort: true, width: 120 } |
| | | , { field: '审核人', title: '审核人', sort: true, width: 120 } |
| | | , { field: '审核日期', title: '审核日期', sort: true, width: 120 } |
| | | , { field: '修改人', title: '修改人', sort: true, width: 120 } |
| | | , { field: '修改日期', title: '修改日期', sort: true, width: 120 } |
| | | , { field: '关闭人', title: '关闭人', sort: true, width: 120 } |
| | | , { field: '关闭日期', title: '关闭日期', sort: true, width: 120 } |
| | | , { field: '作废人', title: '作废人', sort: true, width: 120 } |
| | | , { field: '作废日期', title: '作废日期', sort: true, width: 120 } |
| | | , { field: 'hbilltype', title: 'hbilltype', hide: true, sort: true, width: 120 } |
| | | , { field: '单据类型', title: '单据类型', hide: true, sort: true, width: 120 } |
| | | , { field: 'HMoudType', title: 'HMoudType', hide: true, sort: true, width: 120 } |
| | | , { field: 'hsubid', title: 'hsubid', hide: true, sort: true, width: 120 } |
| | | ]] |
| | | this.dataList = option |
| | | option.data = data1.data; |
| | |
| | | /** 删除按钮操作 */ |
| | | handleDelete() { |
| | | this.$modal.confirm('确认要删除吗,删除后不能恢复').then(() => { |
| | | var ModRightNameDelete = 'Gy_MouldFile_Delete' |
| | | if (!this.rowForm.审核人) { |
| | | axios.get(this.baseURL + "DeltetGy_Source", { |
| | | params: { 'HItemID': this.rowForm.hmainid.toString(), 'user': sessionStorage["HUserName"] } |
| | | axios.get(this.baseURL + "/Gy_Mould_Edit/Delete_Json", { |
| | | params: { 'HItemID': this.rowForm.hmainid.toString(), "ModRightNameDelete": ModRightNameDelete, 'user': sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | if (response.data.count == 1) { |
| | | this.getList() |
| | |
| | | set_CheckBill(num, form) { |
| | | var InterID = form.hmainid || form.HInterID |
| | | //逻辑审核方法 |
| | | axios.get(this.baseURL + "/Gy_Source/AuditGy_Source", { |
| | | params: { "HInterID": InterID, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | let result = response.data |
| | | if (result.code == 1) { |
| | | this.$modal.msgSuccess('操作成功'); |
| | | this.getList(); |
| | | } |
| | | else { |
| | | this.$modal.msgError("错误:" + result.code + result.Message,); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }); |
| | | if (form.HBillStatus == 0 && num == 1) { |
| | | this.$modal.msgSuccess('单据已为未审核状态,无需反审核!'); |
| | | } else { |
| | | axios.get(this.baseURL + "/Gy_Mould/AuditProcessReportList", { |
| | | params: { "HInterID": InterID, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | let result = response.data |
| | | if (result.code == 1) { |
| | | this.$modal.msgSuccess('操作成功'); |
| | | this.getList(); |
| | | } |
| | | else { |
| | | this.$modal.msgError("错误:" + result.code + result.Message,); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }); |
| | | } |
| | | |
| | | }, |
| | | // 反禁用/禁用数据 |
| | | set_De_Stop(num, form) { |