| | |
| | | </el-collapse> |
| | | </el-form> |
| | | <el-row :gutter="10" class="mb8" style="margin-top: 10px;"> |
| | | <el-col :span="1.5"> |
| | | <!-- <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-download" size="mini" @click="handleImport">导入</el-button> |
| | | </el-col> |
| | | </el-col> --> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAddEdit(OperationType = 1)" |
| | | id="btn-Add">新增</el-button> |
| | |
| | | <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="single" |
| | | @click="handleEdit(row = rowForm, OperationType = 3)">编辑</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <!-- <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="single" |
| | | @click="handleEdit(row = rowForm, OperationType = 2)">复制</el-button> |
| | | </el-col> |
| | | @click="handleEdit(row = rowForm, copyType = 1)">复制</el-button> |
| | | </el-col> --> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="handleDelete">删除 |
| | | </el-button> |
| | |
| | | <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="single" |
| | | @click="set_CheckBill(1, form = rowForm)">返审核</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <!-- <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="single" |
| | | @click="set_De_Stop(0, form = rowForm)">禁用</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="single" |
| | | @click="set_De_Stop(1, form = rowForm)">反禁用</el-button> |
| | | </el-col> |
| | | </el-col> --> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-download" size="mini" @click="handleExport">导出</el-button> |
| | | </el-col> |
| | |
| | | components: { RowSettings, Edit, BtnSettings }, |
| | | props: { |
| | | openPage: { type: String, }, |
| | | multiple: { type: Boolean, default: false }, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | HUSEORGID: sessionStorage["OrganizationID"] - 0, |
| | | HName: null, |
| | | HNumber: null, |
| | | HMouldTypeID: null, |
| | | HMouldTypeID: 0, |
| | | Comparator1: '', |
| | | Comparator2: '', |
| | | Comparator: '', |
| | |
| | | this.getList() |
| | | }, |
| | | getTreeselect() { |
| | | axios.get(this.baseURL + '/Gy_Mould/TreeList', { |
| | | axios.get(this.$baseUrl + '/Gy_Mould/TreeList', { |
| | | params: { |
| | | "sWhere": this.sWhere, |
| | | "user": sessionStorage["HUserName"], |
| | | }, |
| | | }).then(response => { |
| | | |
| | | let data1 = response.data |
| | | if (data1.count == 1) { |
| | | let data = JSON.parse(data1.data) |
| | | console.log(JSON.parse(data1.data)) |
| | | var liStr = '['; |
| | | //遍历生成主菜单 |
| | | for (var i = 0; i < data.length; i++) { |
| | |
| | | this.treeOptions = JSON.parse(liStr); |
| | | } |
| | | }).catch(error => { |
| | | console.log(error) |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }); |
| | | }, |
| | |
| | | }, |
| | | //列表数据 |
| | | getList() { |
| | | this.clearData() |
| | | this.pageSize = 50 |
| | | this.tableShow = false |
| | | this.loading = true |
| | |
| | | } |
| | | this.sWhere += " and HUSEORGID = '" + this.queryParams.HUSEORGID + "'" |
| | | //生产资料列表 |
| | | axios.get(this.baseURL + '/Gy_Mould/page', { |
| | | axios.get(this.$baseUrl + '/Gy_Mould/page', { |
| | | params: { |
| | | "sWhere": this.sWhere, |
| | | "ModRightNameSelect": this.HModName, |
| | |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 }); |
| | | } |
| | | } |
| | | option.cols = [[ |
| | | { type: 'checkbox', fixed: 'left', totalRowText: '合计行' } |
| | | , { field: 'hmainid', title: 'hmainid', sort: true, hide: true } |
| | | , { field: '日期', title: '日期', 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 } |
| | | ]] |
| | | option.cols = [col] |
| | | // option.cols = [[ |
| | | // { type: 'checkbox', fixed: 'left', totalRowText: '合计行' } |
| | | // , { field: 'hmainid', title: 'hmainid', sort: true, hide: true } |
| | | // , { field: '日期', title: '日期', 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; |
| | | var result = data1.data; |
| | | option.data = result; |
| | | this.DisPlay_HideColumn(this.HModName, sessionStorage["HUserName"], option, this.dataList); |
| | | } else { |
| | | this.$modal.msgError("接口请求失败!"); |
| | | this.$modal.msgError(data1.Message); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | |
| | | }, |
| | | DisPlay_HideColumn(HModName, user, option, dataOption) { |
| | | this.totalNameList = [] |
| | | axios.get(this.baseURL + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', { |
| | | axios.get(this.$baseUrl + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', { |
| | | params: { |
| | | "HModName": HModName, |
| | | "user": user, |
| | |
| | | } |
| | | }, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | // this.rowForm = {} |
| | | handleSelectionChange(selection) { |
| | | if (this.openPage) { |
| | | //列表单选 |
| | | if (selection.length > 1) { |
| | | if (!this.multiple && selection.length > 1) { |
| | | const del_row = selection.shift() |
| | | this.$refs.tableData.toggleRowSelection(del_row, false) //设置这一行取消选中 |
| | | this.$refs.tableData.toggleRowSelection(del_row, false) |
| | | } |
| | | this.rowForm = {} |
| | | this.ids = selection.map(item => item.hmainid) |
| | | this.rowForm = selection[0] |
| | | if (this.multiple) { |
| | | this.ids = selection.map(item => item.hmainid) |
| | | this.rowForm = selection |
| | | } else { |
| | | this.ids = selection.map(item => item.hmainid) |
| | | this.rowForm = selection[0] |
| | | } |
| | | } else { |
| | | this.ids = selection.map(item => item.hmainid) |
| | | this.single = selection.length != 1 |
| | |
| | | this.sWhere += " and " + this.queryParams.ColName2 + " " + com2; |
| | | } |
| | | if (this.queryParams.HNumber) { |
| | | this.sWhere += " and 器具编号 like '%" + this.queryParams.HNumber + "%'"; |
| | | this.sWhere += " and 模具编号 like '%" + this.queryParams.HNumber + "%'"; |
| | | } |
| | | if (this.queryParams.HName) { |
| | | this.sWhere += " and 器具名称 like '%" + this.queryParams.HName + "%'"; |
| | | this.sWhere += " and 模具名称 like '%" + this.queryParams.HName + "%'"; |
| | | } |
| | | if (this.queryParams.HUSEORGID) { |
| | | this.sWhere += " and HUSEORGID = '" + this.queryParams.HUSEORGID + "'" |
| | |
| | | //根据用户获取用户关联组织的过滤条件 |
| | | getOrgIDByUser() { |
| | | var res = ""; |
| | | axios.get(this.baseURL + '/Xt_User/getOrgIDListByUser', { |
| | | axios.get(this.$baseUrl + '/Xt_User/getOrgIDListByUser', { |
| | | params: { |
| | | HModName: this.HModName, |
| | | user: sessionStorage["HUserName"], |
| | |
| | | resetQuery() { |
| | | this.sWhere = '' |
| | | this.queryParams = { |
| | | HUSEORGID: null, |
| | | HUSEORGID: sessionStorage["OrganizationID"] - 0, |
| | | HName: null, |
| | | HNumber: null, |
| | | HMouldTypeID: 0, |
| | | Comparator1: '', |
| | | Comparator2: '', |
| | | Comparator: '', |
| | |
| | | this.$modal.confirm('确认要删除吗,删除后不能恢复').then(() => { |
| | | var ModRightNameDelete = 'Gy_MouldFile_Delete' |
| | | if (!this.rowForm.审核人) { |
| | | axios.get(this.baseURL + "/Gy_Mould_Edit/Delete_Json", { |
| | | 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) { |
| | |
| | | if (form.HBillStatus == 0 && num == 1) { |
| | | this.$modal.msgSuccess('单据已为未审核状态,无需反审核!'); |
| | | } else { |
| | | axios.get(this.baseURL + "/Gy_Mould/AuditProcessReportList", { |
| | | axios.get(this.$baseUrl + "/Gy_Mould/AuditProcessReportList", { |
| | | params: { "HInterID": InterID, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | let result = response.data |
| | |
| | | set_De_Stop(num, form) { |
| | | var InterID = form.hmainid || form.HInterID |
| | | //逻辑审核方法 |
| | | axios.get(this.baseURL + "/Gy_Source/StopGy_Source", { |
| | | axios.get(this.$baseUrl + "/Gy_Source/StopGy_Source", { |
| | | params: { "HInterID": InterID, "IsStop": num, "CurUserName": sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | let result = response.data |
| | |
| | | var sMainSub = sSubStr + '&和' + sessionStorage["HUserName"]; |
| | | axios({ |
| | | method: 'post', |
| | | url: this.baseURL + "/Gy_Source/Gy_Source_btnSave", |
| | | url: this.$baseUrl + "/Gy_Source/Gy_Source_btnSave", |
| | | data: { |
| | | 'sMainSub': sMainSub |
| | | }, |
| | |
| | | this.uploadData = this.getPage(this.uploadPage, this.alluploadList) |
| | | }, 100) |
| | | }, |
| | | //清除选中数据的缓存 |
| | | clearData() { |
| | | this.ids = [] |
| | | this.multiple = true |
| | | this.single = true |
| | | this.OperationType = 0 |
| | | this.copyType = 0 |
| | | }, |
| | | |
| | | } |
| | | }; |
| | | </script> |