diff --git a/src/api/tool/toolApply.js b/src/api/tool/toolApply.js new file mode 100644 index 0000000..17f46a1 --- /dev/null +++ b/src/api/tool/toolApply.js @@ -0,0 +1,23 @@ +import { createAPI } from "@/utils/httpRequest.js"; + + + + +export const projectInfoForToolApply = data => createAPI(`/plm/projectToolingApplication/projectInfoForToolApply`,'post',data) + +export const getProjectPartToolForApply = data => createAPI(`/plm/projectToolingApplication/getProjectPartToolForApply`,'post',data) + +export const saveProjectToolApply = data => createAPI(`/plm/projectToolingApplication/saveProjectToolApply`,'post',data) + + + +export const searchProjectToolApplyHeader = data => createAPI(`/plm/projectToolingApplication/searchProjectToolApplyHeader`,'post',data) + +export const searchProjectToolApplyDetail = data => createAPI(`/plm/projectToolingApplication/searchProjectToolApplyDetail`,'post',data) + +export const comfirmProjectToolApply = data => createAPI(`/plm/projectToolingApplication/comfirmProjectToolApply`,'post',data) + +export const cancelProjectToolApply = data => createAPI(`/plm/projectToolingApplication/cancelProjectToolApply`,'post',data) + +export const saveProjectHeaderMessage = data => createAPI(`/plm/projectToolingApplication/saveProjectHeaderMessage`,'post',data) + diff --git a/src/views/modules/project/projectInfo/com_project_technicalSpecification.vue b/src/views/modules/project/projectInfo/com_project_technicalSpecification.vue index bb3032e..ed8269c 100644 --- a/src/views/modules/project/projectInfo/com_project_technicalSpecification.vue +++ b/src/views/modules/project/projectInfo/com_project_technicalSpecification.vue @@ -405,7 +405,7 @@ if (this.$router.resolve(`/sampleManagement-technicalSpecificationList`).resolved.name === '404'){ this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定',}); }else { - this.$router.push({name:`sampleManagement-technicalSpecificationList`,params:{codeNo:row.codeNo},}) + this.$router.push({name:`sampleManagement-technicalSpecificationList`,params:{codeNo:row.codeNo?row.codeNo:' '},}) } } }, diff --git a/src/views/modules/tooling/com_tool_upload_file.vue b/src/views/modules/tooling/com_tool_upload_file.vue index a15d8af..4a3c66b 100644 --- a/src/views/modules/tooling/com_tool_upload_file.vue +++ b/src/views/modules/tooling/com_tool_upload_file.vue @@ -74,7 +74,7 @@ export default { username: this.$store.state.user.name, projectId: '', projectName: '', - fileType: '', + fileType: 'other', fileRemark: '', }, dataListLoading: false, @@ -100,6 +100,7 @@ export default { } //初始化参数 this.pageData = JSON.parse(JSON.stringify(currentRow)); + this.pageData.fileType='other' //打开页面 this.visible = true; //重置人员信息 diff --git a/src/views/modules/tooling/searchToolApply.vue b/src/views/modules/tooling/searchToolApply.vue index 2e42f0b..94b0cb0 100644 --- a/src/views/modules/tooling/searchToolApply.vue +++ b/src/views/modules/tooling/searchToolApply.vue @@ -277,12 +277,12 @@ } from '@/api/customer/customerInformation.js' import projectUploadFile from "./com_tool_upload_file";/*上传文件的組件*/ import Chooselist from '@/views/modules/common/Chooselist' - import {searchToolApplyHeader, - searchToolApplyDetail, - comfirmToolApply, - cancelToolApply, - saveHeaderMessage, - } from "@/api/project/toolingInfo.js" + import {searchProjectToolApplyHeader, + searchProjectToolApplyDetail, + comfirmProjectToolApply, + cancelProjectToolApply, + saveProjectHeaderMessage, + } from "@/api/tool/toolApply.js" import { deleteProjectFile, getFileContentList, @@ -499,10 +499,10 @@ serialNumber: '106002Table2QuotationNo', tableId: '106002Table2', tableName: '工具申请明细', - columnProp: 'quotationNo', + columnProp: 'orderRef1', headerAlign: 'center', align: 'center', - columnLabel: '所属报价单', + columnLabel: '项目编码', columnHidden: false, columnImage: false, columnSortable: false, @@ -517,7 +517,7 @@ serialNumber: '106002Table2ToolNo', tableId: '106002Table2', tableName: '工具申请明细', - columnProp: 'toolNo', + columnProp: 'toolId', headerAlign: 'center', align: 'center', columnLabel: '工具编码', @@ -535,7 +535,7 @@ serialNumber: '106002Table2ToolDescription', tableId: '106002Table2', tableName: '工具申请明细', - columnProp: 'toolDescription', + columnProp: 'toolDesc', headerAlign: 'center', align: 'center', columnLabel: '工具描述', @@ -550,31 +550,31 @@ { userId: this.$store.state.user.name, functionId: 106002, - serialNumber: '106002Table2ToolSpec', + serialNumber: '106002Table2ApplyQty', tableId: '106002Table2', tableName: '工具申请明细', - columnProp: 'toolSpec', + columnProp: 'applyQty', headerAlign: 'center', align: 'center', - columnLabel: '工具规格', + columnLabel: '申请数量', columnHidden: false, columnImage: false, columnSortable: false, sortLv: 0, status: true, fixed: '', - columnWidth: 120 + columnWidth: 60 }, { userId: this.$store.state.user.name, functionId: 106002, - serialNumber: '106002Table2ApplyQty', + serialNumber: '106002Table2UnitCost', tableId: '106002Table2', tableName: '工具申请明细', - columnProp: 'applyQty', + columnProp: 'standardCost', headerAlign: 'center', align: 'center', - columnLabel: '申请数量', + columnLabel: '工具成本', columnHidden: false, columnImage: false, columnSortable: false, @@ -586,76 +586,108 @@ { userId: this.$store.state.user.name, functionId: 106002, - serialNumber: '106002Table2ExpectedServiceLife', + serialNumber: '106002Table2Remark', tableId: '106002Table2', tableName: '工具申请明细', - columnProp: 'expectedServiceLife', + columnProp: 'remark', headerAlign: 'center', align: 'center', - columnLabel: '预计寿命', + columnLabel: '备注', columnHidden: false, columnImage: false, columnSortable: false, sortLv: 0, status: true, fixed: '', - columnWidth: 50 + columnWidth: 200 }, { userId: this.$store.state.user.name, functionId: 106002, - serialNumber: '106002Table2UnitCost', + serialNumber: '106002Table2QuotationNo', tableId: '106002Table2', tableName: '工具申请明细', - columnProp: 'unitCost', + columnProp: 'orderRef2', headerAlign: 'center', align: 'center', - columnLabel: '单位成本', + columnLabel: '物料编码', columnHidden: false, columnImage: false, columnSortable: false, sortLv: 0, status: true, fixed: '', - columnWidth: 60 - }, - { + columnWidth: 70 + }, { userId: this.$store.state.user.name, functionId: 106002, - serialNumber: '106002Table2quotationUnitCost', + serialNumber: '106002Table2QuotationNo', tableId: '106002Table2', tableName: '工具申请明细', - columnProp: 'quotationUnitCost', + columnProp: 'orderRef3', headerAlign: 'center', align: 'center', - columnLabel: '单位报价成本', + columnLabel: '工艺路线版本', columnHidden: false, columnImage: false, columnSortable: false, sortLv: 0, status: true, fixed: '', - columnWidth: 60 + columnWidth: 70 }, { userId: this.$store.state.user.name, functionId: 106002, - serialNumber: '106002Table2Remark', + serialNumber: '106002Table2QuotationNo', tableId: '106002Table2', tableName: '工具申请明细', - columnProp: 'remark', + columnProp: 'orderRef5', headerAlign: 'center', align: 'center', - columnLabel: '备注', + columnLabel: '替代编码', columnHidden: false, columnImage: false, columnSortable: false, sortLv: 0, status: true, fixed: '', - columnWidth: 200 + columnWidth: 70 + },{ + userId: this.$store.state.user.name, + functionId: 106002, + serialNumber: '106002Table2QuotationNo', + tableId: '106002Table2', + tableName: '工具申请明细', + columnProp: 'operationNo', + headerAlign: 'center', + align: 'center', + columnLabel: '工序号', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 70 + },{ + userId: this.$store.state.user.name, + functionId: 106002, + serialNumber: '106002Table2QuotationNo', + tableId: '106002Table2', + tableName: '工具申请明细', + columnProp: 'operationName', + headerAlign: 'center', + align: 'center', + columnLabel: '工序', + columnHidden: false, + columnImage: false, + columnSortable: false, + sortLv: 0, + status: true, + fixed: '', + columnWidth: 70 }, - ], columnFileContentArray: [ { @@ -807,7 +839,7 @@ search () { this.searchData.limit = this.pageSize this.searchData.page = this.pageIndex - searchToolApplyHeader(this.searchData).then(({data}) => { + searchProjectToolApplyHeader(this.searchData).then(({data}) => { if (data.code == 0) { this.dataList1 = data.page.list this.pageIndex = data.page.currPage @@ -884,7 +916,7 @@ }, searchToolApplyDetail(){ - searchToolApplyDetail(this.currentRow).then(({data}) => { + searchProjectToolApplyDetail(this.currentRow).then(({data}) => { if (data.code == 0) { this.detailList = data.rows } @@ -896,7 +928,7 @@ cancelButtonText: '取消', type: 'warning' }).then(() => { - comfirmToolApply(row).then(({data}) => { + comfirmProjectToolApply(row).then(({data}) => { if (data && data.code === 0) { row.statusCode='10' row.status='下达' @@ -920,7 +952,7 @@ cancelButtonText: '取消', type: 'warning' }).then(() => { - cancelToolApply(row).then(({data}) => { + cancelProjectToolApply(row).then(({data}) => { if (data && data.code === 0) { this.search(); this.$message({ @@ -1025,7 +1057,7 @@ cancelButtonText:'取消', type:'warning' }).then(()=>{ - saveHeaderMessage(this.modelData).then(({data}) => { + saveProjectHeaderMessage(this.modelData).then(({data}) => { if (data && data.code == 0) { this.modelFlag=false; this.currentRow.prNo=this.modelData.prNo diff --git a/src/views/modules/tooling/toolingInfo.vue b/src/views/modules/tooling/toolingInfo.vue index 95fc81d..5b3853a 100644 --- a/src/views/modules/tooling/toolingInfo.vue +++ b/src/views/modules/tooling/toolingInfo.vue @@ -4,86 +4,28 @@ - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - 查 询 + 查 询 刀模申请 @@ -101,116 +43,22 @@ align="center" width="30"> - - - - - - - - - - - - - - - - - + diff --git a/src/views/modules/tooling_old/searchToolApply.vue b/src/views/modules/tooling_old/searchToolApply.vue new file mode 100644 index 0000000..2e42f0b --- /dev/null +++ b/src/views/modules/tooling_old/searchToolApply.vue @@ -0,0 +1,1099 @@ + + + + + diff --git a/src/views/modules/tooling_old/toolingInfo.vue b/src/views/modules/tooling_old/toolingInfo.vue new file mode 100644 index 0000000..95fc81d --- /dev/null +++ b/src/views/modules/tooling_old/toolingInfo.vue @@ -0,0 +1,810 @@ + + + + +