diff --git a/public/config.js b/public/config.js new file mode 100644 index 0000000..fadf4f7 --- /dev/null +++ b/public/config.js @@ -0,0 +1,12 @@ +window.LOAD_Remind = 86400000 +window.TIMED_Trigger=86400000 +window.YINGDU_Trigger=3000 //硬度检测 轮巡时间 +window.PROCESS_FLOW_CARD_HEAT_METER="http://192.168.169.172:9000/jmreport/view/1154214123878776832"//工艺流程卡地址 热表公用 + +window.PROCESS_FLOW_CARD_HEAT_SINTER="http://192.168.169.172:9000/jmreport/view/1154632438942031872"//工艺流程卡地址 烧结 + +window.SCHEDULING_DASHBOARD = "http://192.168.0.117:2888/SCHEDULING_DASHBOARD" //排产看板地址 +window.SCHEDULING_EXCEPTION = "http://192.168.0.117:2888/SCHEDULING_EXCEPTION" //排产异常地址 +window.SCHEDULING_ANALYSIS = "http://192.168.0.117:2888/SCHEDULING_ANALYSIS" //排产统计分析地址 + +window.PROCESS_QUALITY_RECORD = "http://192.168.169.172:9000/jmreport/view/1153140195292762112" //电子档案-热表分厂-质量记录 diff --git a/src/api/processManagement/addQuantity.js b/src/api/processManagement/addQuantity.js index 4f4ffde..f61da2e 100644 --- a/src/api/processManagement/addQuantity.js +++ b/src/api/processManagement/addQuantity.js @@ -16,7 +16,7 @@ export const getList = (current, size, params) => { // 保存 export const add = row => { return request({ - url: '/blade-desk/dsMainSaltAddQuantity/save', + url: '/blade-desk/dsMainSaltAddQuantity/submit', method: 'post', data: row, }); @@ -27,7 +27,7 @@ export const add = row => { // 修改 export const update = row => { return request({ - url: '/blade-desk/dsMainSaltAddQuantity/update', + url: '/blade-desk/dsMainSaltAddQuantity/submit', method: 'post', data: row, }); diff --git a/src/api/processManagement/taskProcessing.js b/src/api/processManagement/taskProcessing.js index 19ded9f..1a52482 100644 --- a/src/api/processManagement/taskProcessing.js +++ b/src/api/processManagement/taskProcessing.js @@ -115,11 +115,11 @@ export const taskRedeploy = data => { } // 接收 -export const taskReception = data => { +export const taskReception = params => { return request({ url: '/blade-desk/dsTasking/taskReception', - method: 'post', - data:data + method: 'get', + params:params }); } @@ -127,7 +127,7 @@ export const taskReception = data => { // 零件编制保存 export const authorizedAccomplish = data => { return request({ - url: '/blade-desk/dsTasking/authorizedAccomplish', + url: '/blade-desk/dsTasking/authorizedPart', method: 'post', data:data }); diff --git a/src/api/productionSchedulingPlan/basic.js b/src/api/productionSchedulingPlan/basic.js new file mode 100644 index 0000000..fa3806e --- /dev/null +++ b/src/api/productionSchedulingPlan/basic.js @@ -0,0 +1,229 @@ +import request from '@/axios'; + +// 人员能力 增删改查 +export const getListPersonAbility = (current, size, params) => { + return request({ + url: '/blade-scheduling/personAbility/page', + method: 'get', + params: { + ...params, + current, + size, + }, + }); +}; +export const removePersonAbility = ids => { + return request({ + url: '/blade-scheduling/personAbility/remove', + method: 'post', + params: { + ids, + }, + }); +}; + +export const addPersonAbility = row => { + return request({ + url: '/blade-scheduling/personAbility/submit', + method: 'post', + data: row, + }); +}; + +export const updatePersonAbility = row => { + return request({ + url: '/blade-scheduling/personAbility/submit', + method: 'post', + data: row, + }); +}; + +// 检验工时 增删改查 +export const getListInspectionItem = (current, size, params) => { + return request({ + url: '/blade-scheduling/inspectionItem/page', + method: 'get', + params: { + ...params, + current, + size, + }, + }); +}; +export const removeInspectionItem = ids => { + return request({ + url: '/blade-scheduling/inspectionItem/remove', + method: 'post', + params: { + ids, + }, + }); +}; + +export const addInspectionItem = row => { + return request({ + url: '/blade-scheduling/inspectionItem/submit', + method: 'post', + data: row, + }); +}; + +export const updateInspectionItem = row => { + return request({ + url: '/blade-scheduling/inspectionItem/submit', + method: 'post', + data: row, + }); +}; + +// 质量等级 增删改查 +export const getListGualityGrade = (current, size, params) => { + return request({ + url: '/blade-scheduling/gualityGrade/page', + method: 'get', + params: { + ...params, + current, + size, + }, + }); +}; +export const removeGualityGrade = ids => { + return request({ + url: '/blade-scheduling/gualityGrade/remove', + method: 'post', + params: { + ids, + }, + }); +}; + +export const addGualityGrade = row => { + return request({ + url: '/blade-scheduling/gualityGrade/submit', + method: 'post', + data: row, + }); +}; + +export const updateGualityGrade = row => { + return request({ + url: '/blade-scheduling/gualityGrade/submit', + method: 'post', + data: row, + }); +}; + +// 设备能力 增删改查 +export const getListEquipAbility = (current, size, params) => { + return request({ + url: '/blade-scheduling/equipAbility/page', + method: 'get', + params: { + ...params, + current, + size, + }, + }); +}; +export const removeEquipAbility = ids => { + return request({ + url: '/blade-scheduling/equipAbility/remove', + method: 'post', + params: { + ids, + }, + }); +}; + +export const addEquipAbility = row => { + return request({ + url: '/blade-scheduling/equipAbility/submit', + method: 'post', + data: row, + }); +}; + +export const updateEquipAbility = row => { + return request({ + url: '/blade-scheduling/equipAbility/submit', + method: 'post', + data: row, + }); +}; + +// 主生产者 增删改查 +export const getListMainProducer = (current, size, params) => { + return request({ + url: '/blade-scheduling/mainProducer/page', + method: 'get', + params: { + ...params, + current, + size, + }, + }); +}; +export const removeMainProducer = ids => { + return request({ + url: '/blade-scheduling/mainProducer/remove', + method: 'post', + params: { + ids, + }, + }); +}; + +export const addMainProducer = row => { + return request({ + url: '/blade-scheduling/mainProducer/submit', + method: 'post', + data: row, + }); +}; + +export const updateMainProducer = row => { + return request({ + url: '/blade-scheduling/equipAbility/submit', + method: 'post', + data: row, + }); +}; + +// 非同炉(槽)因素 增删改查 +export const getListDifferentFurnaceTank = (current, size, params) => { + return request({ + url: '/blade-scheduling/differentFurnaceTank/page', + method: 'get', + params: { + ...params, + current, + size, + }, + }); +}; +export const removeDifferentFurnaceTank = ids => { + return request({ + url: '/blade-scheduling/differentFurnaceTank/remove', + method: 'post', + params: { + ids, + }, + }); +}; + +export const addDifferentFurnaceTank = row => { + return request({ + url: '/blade-scheduling/differentFurnaceTank/submit', + method: 'post', + data: row, + }); +}; + +export const updateDifferentFurnaceTank = row => { + return request({ + url: '/blade-scheduling/differentFurnaceTank/submit', + method: 'post', + data: row, + }); +}; \ No newline at end of file diff --git a/src/views/aaaaaaaaaaaaa/table.vue b/src/views/aaaaaaaaaaaaa/table.vue index 93d6d83..b92d9b1 100644 --- a/src/views/aaaaaaaaaaaaa/table.vue +++ b/src/views/aaaaaaaaaaaaa/table.vue @@ -1,574 +1,215 @@ - diff --git a/src/views/processManagement/bathRefine/accumulateClass.vue b/src/views/processManagement/bathRefine/accumulateClass.vue index 2c87c06..084e925 100644 --- a/src/views/processManagement/bathRefine/accumulateClass.vue +++ b/src/views/processManagement/bathRefine/accumulateClass.vue @@ -16,8 +16,8 @@ @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad" - @row-update="rowUpdate" - @row-del="rowDel" + @row-update="rowUpdate" + @row-del="rowDel" > @@ -45,11 +53,12 @@ import { getList, add, remove, update } from '@/api/processManagement/planClass. export default { components: { maintainDialog, - addAccumulateClass + addAccumulateClass, }, data() { return { - moldAddMore:false, + title: '新增', + moldAddMore: false, loading: false, data: [], selectionList: [], @@ -423,16 +432,29 @@ export default { // 关闭弹窗 closeDialog() { this.showMaintain = false; - this.showDialog =false + this.showDialog = false; this.onLoad(this.page); }, selectionChange(val) { this.selectionList = val; }, + // 新增 handleAdd() { this.tableData = []; this.showDialog = true; - this.moldAddMore = true + this.moldAddMore = true; + }, + // 批量维护 + handleMaintain() { + if (this.selectionList.length == 0) { + this.$message.error('请先选择数据'); + return; + } + this.maintainData = this.selectionList; + this.title = ' 批量维护'; + // this.showMaintain = true; + this.showDialog = true; + this.moldAddMore = false; }, handleDelete() { if (this.selectionList.length == 0) { @@ -445,14 +467,7 @@ export default { type: 'warning', }).then(() => {}); }, - handleMaintain() { - if (this.selectionList.length == 0) { - this.$message.error('请先选择数据'); - return; - } - this.maintainData = this.selectionList; - this.showMaintain = true; - }, + handleSet() { if (this.isQualified == null) { this.$message.error('请先选择检查结果'); @@ -489,7 +504,7 @@ export default { }); }); }, - rowUpdate(row, index, done, loading) { + rowUpdate(row, index, done, loading) { update(row).then( () => { this.onLoad(this.page); @@ -529,7 +544,11 @@ export default { }, onLoad(page, params = {}) { this.loading = true; - getList(page.currentPage, page.pageSize, Object.assign(params, this.query,{ bbpType: 2 })).then(res => { + getList( + page.currentPage, + page.pageSize, + Object.assign(params, this.query, { bbpType: 2 }) + ).then(res => { this.data = res.data.data.records; this.loading = false; this.page.total = res.data.data.total; diff --git a/src/views/processManagement/bathRefine/addQuantity.vue b/src/views/processManagement/bathRefine/addQuantity.vue index e591406..d546d34 100644 --- a/src/views/processManagement/bathRefine/addQuantity.vue +++ b/src/views/processManagement/bathRefine/addQuantity.vue @@ -58,108 +58,6 @@ export default { currentPage: 1, total: 0, }, - wcData: [ - { - area: 13000.0, - batchNo: null, - bigBatch: false, - checkout: false, - craftAbility: '化学镀镍', - createTime: '2023-02-06 12:31:36', - deleted: false, - describe: null, - endPoint: null, - keyValue: 81, - limitType: 0, - processes: '上挂、下挂、交检、化学镀镍、喷砂', - quantity: null, - roundCycle: null, - saturation: 85.0, - sign: '4', - startPoint: null, - team: '化学镀镍一班崔胜伟、化学镀镍一班郭家梁', - updateTime: '2023-03-06 18:42:47', - wcCode: '001', - wcId: 81, - wcName: '化学镀镍作业中心', - whetherPlate: false, - }, - { - area: 0.0, - batchNo: null, - bigBatch: false, - checkout: false, - craftAbility: '镀后接收', - createTime: '2023-02-06 12:48:41', - deleted: false, - describe: null, - endPoint: null, - keyValue: 85, - limitType: 0, - processes: '镀后接收', - quantity: null, - roundCycle: null, - saturation: null, - sign: '4', - startPoint: null, - team: '零件管理班', - updateTime: '2023-03-06 18:23:20', - wcCode: '004', - wcId: 85, - wcName: '镀后库作业中心', - whetherPlate: true, - }, - { - area: 0.0, - batchNo: null, - bigBatch: false, - checkout: true, - craftAbility: '镀后检验', - createTime: '2023-02-06 12:49:33', - deleted: false, - describe: null, - endPoint: null, - keyValue: 86, - limitType: 0, - processes: '镀后检验、性能检测、镀后自检外观检验、镀后自检尺寸检验', - quantity: null, - roundCycle: null, - saturation: null, - sign: '4', - startPoint: null, - team: '检验班', - updateTime: '2023-06-06 15:07:27', - wcCode: '005', - wcId: 86, - wcName: '检验作业中心', - whetherPlate: false, - }, - { - area: 20000.0, - batchNo: null, - bigBatch: false, - checkout: false, - craftAbility: '涂色标、清洗', - createTime: '2023-02-07 10:30:14', - deleted: false, - describe: null, - endPoint: null, - keyValue: 87, - limitType: 0, - processes: '涂色标、涂色标(带)', - quantity: null, - roundCycle: null, - saturation: 90.0, - sign: '4', - startPoint: null, - team: '涂色标班组', - updateTime: '2023-03-06 18:16:54', - wcCode: '006', - wcId: 87, - wcName: '涂色标作业中心', - whetherPlate: false, - }, - ], option: { height: 'auto', calcHeight: 32, @@ -280,6 +178,7 @@ export default { }, closeDialog() { this.showDialog = false; + this.onLoad(this.page); }, insertEvent() { const record = { bsWorkCenter: { wcId: '' }, _select: false }; diff --git a/src/views/processManagement/bathRefine/bathRefineTask.vue b/src/views/processManagement/bathRefine/bathRefineTask.vue index cb8005e..3e66239 100644 --- a/src/views/processManagement/bathRefine/bathRefineTask.vue +++ b/src/views/processManagement/bathRefine/bathRefineTask.vue @@ -25,18 +25,19 @@ 维护 - - 审核 + + 审核 - + - + + + - + - + diff --git a/src/views/processManagement/taskProcessing.vue b/src/views/processManagement/taskProcessing.vue index 047bd77..54c5ede 100644 --- a/src/views/processManagement/taskProcessing.vue +++ b/src/views/processManagement/taskProcessing.vue @@ -29,7 +29,7 @@ type="primary" link @click="organization(scope.row.partId, scope.row)" - v-if="scope.row.taskStatus == 1" + v-if="scope.row.taskStatus == 2" >编制 { - taskReception({ taskId: row.id }).then(res => { + taskReception({ taskIds: row.id }).then(res => { this.$message({ type: 'success', message: '操作成功!', @@ -425,7 +429,7 @@ export default { organization(partId, row) { this.partId = partId; this.updateRow = row - if (row.taskType == '3') { + if (row.taskType == '6') { this.isReworkOpen = true; } else { this.isOpen = true; diff --git a/src/views/productionSchedulingPlan/basic/equipmentCapacity.vue b/src/views/productionSchedulingPlan/basic/equipmentCapacity.vue new file mode 100644 index 0000000..0ea576f --- /dev/null +++ b/src/views/productionSchedulingPlan/basic/equipmentCapacity.vue @@ -0,0 +1,305 @@ + + + diff --git a/src/views/productionSchedulingPlan/basic/inspectionHours.vue b/src/views/productionSchedulingPlan/basic/inspectionHours.vue new file mode 100644 index 0000000..4548c13 --- /dev/null +++ b/src/views/productionSchedulingPlan/basic/inspectionHours.vue @@ -0,0 +1,241 @@ + + + diff --git a/src/views/productionSchedulingPlan/basic/nonSameFurnace.vue b/src/views/productionSchedulingPlan/basic/nonSameFurnace.vue new file mode 100644 index 0000000..43b0e12 --- /dev/null +++ b/src/views/productionSchedulingPlan/basic/nonSameFurnace.vue @@ -0,0 +1,273 @@ + + + diff --git a/src/views/productionSchedulingPlan/basic/personnelCapacity.vue b/src/views/productionSchedulingPlan/basic/personnelCapacity.vue new file mode 100644 index 0000000..7f81d2b --- /dev/null +++ b/src/views/productionSchedulingPlan/basic/personnelCapacity.vue @@ -0,0 +1,227 @@ + + + diff --git a/src/views/productionSchedulingPlan/basic/principalProducer.vue b/src/views/productionSchedulingPlan/basic/principalProducer.vue new file mode 100644 index 0000000..7e595ce --- /dev/null +++ b/src/views/productionSchedulingPlan/basic/principalProducer.vue @@ -0,0 +1,232 @@ + + + diff --git a/src/views/productionSchedulingPlan/basic/qualityGrade.vue b/src/views/productionSchedulingPlan/basic/qualityGrade.vue new file mode 100644 index 0000000..9fa423b --- /dev/null +++ b/src/views/productionSchedulingPlan/basic/qualityGrade.vue @@ -0,0 +1,219 @@ + + +