diff --git a/src/api/Inventory/DirectPart.js b/src/api/Inventory/DirectPart.js index e5719d16..29b413fc 100644 --- a/src/api/Inventory/DirectPart.js +++ b/src/api/Inventory/DirectPart.js @@ -59,14 +59,14 @@ export function searchContractDetail(contractnumber) { }) } // 直达件查询 -export function searchDirectPart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group, contract) { +export function searchDirectPart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group, contract_check, contract) { return request({ url: '', method: 'post', data: { type: '1', name: '库存管理_直达件_零件查询', - param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group + '&合同流水号=' + contract, + param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group + '&合同流水号_check=' + contract_check + '&合同流水号=' + contract, Pagination: pageCurrent + '&' + pageSize } }) @@ -79,7 +79,7 @@ export function searchPeople() { data: { type: '1', name: '人事档案管理_人员_部门与人员_查询数据_根据部门编号', - param: '考核部门编号=' + 18 + param: '考核部门编号=18' } }) } diff --git a/src/api/Inventory/SubPartCome.js b/src/api/Inventory/SubPartCome.js index e208e039..39cd829b 100644 --- a/src/api/Inventory/SubPartCome.js +++ b/src/api/Inventory/SubPartCome.js @@ -1,12 +1,13 @@ import request from '@/utils/request' // 替换单查询 -export function searchSubstitutedCard() { +export function searchSubstitutedCard(...params) { return request({ url: '', method: 'post', data: { type: '1', - name: '库存管理_替换件_替换单查询' + name: '库存管理_替换件_替换单查询', + param: `替换单编号_check=${params[0]}&替换单编号=${params[1]}&替换件名称_check=${params[2]}&替换件名称=${params[3]}` } }) } diff --git a/src/api/ManufacturingCenter/ProductionCapacityBalance.js b/src/api/ManufacturingCenter/ProductionCapacityBalance.js index 2b415313..560946b5 100644 --- a/src/api/ManufacturingCenter/ProductionCapacityBalance.js +++ b/src/api/ManufacturingCenter/ProductionCapacityBalance.js @@ -235,7 +235,7 @@ export function updateDate(num1, num2, date) { method: 'post', data: { type: '2', - name: '车间生产管理工艺_新排产算法_制定计划_调整计划_增加数据New', + name: '车间生产管理工艺_新排产算法_制定计划_调整计划_增加数据New1', param: '工序流水号=' + num1 + '&调整人编号=' + num2 + '&调整计划完成日期=' + date } }) diff --git a/src/api/PurchasingCenter/PurchaseTaskAllocate.js b/src/api/PurchasingCenter/PurchaseTaskAllocate.js index f9a5dd9c..a3ff15f7 100644 --- a/src/api/PurchasingCenter/PurchaseTaskAllocate.js +++ b/src/api/PurchasingCenter/PurchaseTaskAllocate.js @@ -47,4 +47,15 @@ export function allocateTask(group, person) { param: `标准件和外购件流水号组=${group}&人员编号=${person}` } }) +}// 执行退回 +export function executeReturn(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购部采购_退回物料', + param: `标准件和外购件流水号组=${params[0]}&组件零件流水号组=${params[1]}` + } + }) } diff --git a/src/api/WorkshopProcurement/DepartmentBuyerRequestFund.js b/src/api/WorkshopProcurement/DepartmentBuyerRequestFund.js index bae165af..a72528d8 100644 --- a/src/api/WorkshopProcurement/DepartmentBuyerRequestFund.js +++ b/src/api/WorkshopProcurement/DepartmentBuyerRequestFund.js @@ -8,7 +8,7 @@ export function searchTable1(pageCurrent, pageSize, check1, start, end, check2, data: { type: '1', name: '车间采购管理_请款表_查询数据', - param: '时间段_check=' + check1 + '&开始时间=' + start + '&结束时间=' + end + '&合同号_check=' + check2 + '&采购合同编号=' + num1 + '&采购员_check=' + check3 + '&采购员姓名=' + name1 + '&供应商_check=' + check4 + '&供应商名称=' + name2, + param: '时间段_check=' + check1 + '&开始时间=' + start + '&结束时间=' + end + '&合同号_check=' + check2 + '&采购合同编号=' + num1 + '&采购员_check=' + check3 + '&采购员流水号=' + name1 + '&供应商_check=' + check4 + '&供应商名称=' + name2, Pagination: pageCurrent + '&' + pageSize } }) diff --git a/src/utils/request.js b/src/utils/request.js index 4bc7deb6..13b4ff36 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -10,8 +10,14 @@ export const name = `OP8888` export const upload = `http://123.56.95.229:8411/submit/uploadFile.ashx` export const download = `http://123.56.95.229:8411/submit/downloadFile.ashx` const service = axios.create({ +<<<<<<< HEAD // baseURL: `http://192.168.1.149:8411/submit/MESCommonBase.ashx`, baseURL: `http://192.168.1.149:8411/submit/MESCommonBase.ashx`, +======= + + baseURL: `http://localhost:8411/submit/MESCommonBase.ashx`, + +>>>>>>> 3b215d048bf49b3019c70e80ff7dbd7ebd5869a4 timeout: 1500000 // 请求超时时间 }) diff --git a/src/views/Assembly/AssemblyInformationInput/index.vue b/src/views/Assembly/AssemblyInformationInput/index.vue index 4f0d9cf5..3d00b82c 100644 --- a/src/views/Assembly/AssemblyInformationInput/index.vue +++ b/src/views/Assembly/AssemblyInformationInput/index.vue @@ -137,7 +137,7 @@ 取消 - 确认 + 确认 diff --git a/src/views/Assembly/AssemblyProcessPlanning/index.vue b/src/views/Assembly/AssemblyProcessPlanning/index.vue index 643b9306..92e53c03 100644 --- a/src/views/Assembly/AssemblyProcessPlanning/index.vue +++ b/src/views/Assembly/AssemblyProcessPlanning/index.vue @@ -206,7 +206,7 @@ - + { for (let i = 0; i < response.data.length; i++) { this.Machine.push({ @@ -281,6 +280,7 @@ export default { }) }, searchGroupList() { // 查询组号 + this.GroupNum = [] searchTeam(this.MachineValue).then(response => { for (let i = 0; i < response.data.length; i++) { this.GroupNum.push({ @@ -291,16 +291,19 @@ export default { }) }, searchPeopleData() { // 查询人员 + this.People = [] searchPeople().then(response => { for (let i = 0; i < response.data.length; i++) { this.People.push({ label: response.data[i].姓名, - value: response.data[i].考勤编号 + value: parseInt(response.data[i].考勤编号) }) } + console.log(this.People) }) }, searchContractData() { // 查询合同 + this.Contract = [] searchContract().then(response => { for (let i = 0; i < response.data.length; i++) { this.Contract.push({ @@ -312,18 +315,10 @@ export default { }, searchPartinfo() { this.tableDataPurchase = [] - if (this.ProjectValue === '') { - this.ProjectValue_check = 0 - } - if (this.MachineValue === '') { - this.MachineValue_check = 0 - } - if (this.GroupNumValue === '') { - this.GroupNumValue_check = 0 - } - if (this.ContractValue === '') { - this.ContractValue_check = 0 - } + this.ProjectValue ? this.ProjectValue_check = 1 : this.ProjectValue_check = 0 + this.MachineValue ? this.MachineValue_check = 1 : this.MachineValue_check = 0 + this.GroupNumValue ? this.GroupNumValue_check = 1 : this.GroupNumValue_check = 0 + this.ContractValue ? this.ContractValue_check = 1 : this.ContractValue_check = 0 this.listLoading = true searchDirectPart(this.PageCurrent, this.PageSize, this.ProjectValue_check, this.ProjectValue, this.MachineValue_check, this.MachineValue, this.GroupNumValue_check, this.GroupNumValue, this.ContractValue_check, this.ContractValue).then(response => { this.tableDataPurchase = response.data.rows @@ -349,8 +344,7 @@ export default { // 打开直达件表单 addDirect(row) { this.PeopleValue = '' - this.form = [] - console.log(row) + this.form = {} this.dialogFormVisible = true this.materialNum = row.物料流水号 this.purchaseContractNumber = row.采购合同明细流水号 @@ -367,7 +361,7 @@ export default { this.dialogFormVisible1 = true this.directPartNumber = row.直达件流水号 this.form.DirectNumber = row.到货数量 - this.PeopleValue = row.领用人员流水号 + this.PeopleValue = parseInt(row.领用人员流水号) this.form.DirectNote = row.备注 }, // 修改直达件 diff --git a/src/views/Inventory/InventoryCheck/index.vue b/src/views/Inventory/InventoryCheck/index.vue index 5fc3eb86..08f25495 100644 --- a/src/views/Inventory/InventoryCheck/index.vue +++ b/src/views/Inventory/InventoryCheck/index.vue @@ -111,7 +111,7 @@ @@ -261,7 +261,7 @@ @@ -404,7 +404,7 @@ @@ -562,7 +562,7 @@ diff --git a/src/views/Inventory/SubPartCome/index.vue b/src/views/Inventory/SubPartCome/index.vue index e0ea6f5a..f0fd071a 100644 --- a/src/views/Inventory/SubPartCome/index.vue +++ b/src/views/Inventory/SubPartCome/index.vue @@ -3,8 +3,8 @@ 替换单编号 - 零件图号 - + 替换件名称 + 查询 @@ -65,8 +65,10 @@ export default { data() { return { tableDataExchange: [], - substituteNumber: '', - partNumber: '', + check1: 0, + check2: 0, + substituteNumber: '', // 替换单编号 + subPartName: '', // 替换件名称 listLoading: '', subList: '', locateNumber: '', @@ -77,7 +79,9 @@ export default { // 替换单查询 getSubstitutedCard() { this.listloading = true - searchSubstitutedCard().then(response => { + this.substituteNumber ? this.check1 = 1 : this.check1 = 0 + this.subPartName ? this.check2 = 1 : this.check2 = 0 + searchSubstitutedCard(this.check1, this.substituteNumber, this.check2, this.subPartName).then(response => { this.tableDataExchange = response.data this.listloading = false }) diff --git a/src/views/ManufacturingCenter/PartAssignment/index.vue b/src/views/ManufacturingCenter/PartAssignment/index.vue index 2c647011..afda4cbd 100644 --- a/src/views/ManufacturingCenter/PartAssignment/index.vue +++ b/src/views/ManufacturingCenter/PartAssignment/index.vue @@ -186,8 +186,8 @@ value-format="yyyy-MM-dd" placeholder="选择日期"/> 车间请购 - 采购部门采购 - 车间生产 + 采购部门采购 + 车间生产 diff --git a/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue b/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue index 42603b0d..83b8b0f1 100644 --- a/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue +++ b/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue @@ -8,7 +8,7 @@ - + - + @@ -91,7 +100,16 @@ - - -
- 请款开始时间: + 请款时间区间: - 请款结束时间: + placeholder="开始日期"/> + ~ + placeholder="结束日期"/> { - for (let i = 0; i < response0.data.length; i++) { - this.tableData11[j].push(response0.data[i]) + if (response0.data.length === 0) { + this.tableData11[j].push(response0.data) + document.getElementById(j).setAttribute('style', 'display:none') + } else { + for (let i = 0; i < response0.data.length; i++) { + this.tableData11[j].push(response0.data[i]) + } } }) } this.tableData1 = response.data.rows this.total1 = response.data.total - }).then(() => { - this.loading1 = false }) }, handleSizeChange1(val) { @@ -356,6 +358,7 @@ export default { }) }, cancelRequestFund(row) { // 取消请款 + console.log(row) this.$confirm('确认取消请款吗?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -383,9 +386,15 @@ export default { }, searchRequestTable() { // 查询请款表 this.loading2 = true - if (this.startRequestDate === '' || this.startRequestDate === null || this.endRequestDate === '' || this.endRequestDate === null) { + if ((this.startRequestDate === '' || this.startRequestDate === null) && (this.endRequestDate === '' || this.endRequestDate === null)) { this.checkRequest = 0 - } else { this.checkRequest = 1 } + } else if (this.startRequestDate !== '' && this.startRequestDate !== null && this.endRequestDate !== '' && this.endRequestDate !== null) { + this.checkRequest = 1 + } else { + this.$message.error('请款时间区间有误') + this.loading2 = false + return + } searchRequestTable(this.checkRequest, this.startRequestDate, this.endRequestDate).then(response => { for (let j = 0; j < response.data.length; j++) { if (response.data[j].请款时间 !== null) { diff --git a/src/views/PurchasingCenter/CreateContract/index.vue b/src/views/PurchasingCenter/CreateContract/index.vue index 5c85a1a3..788a34fd 100644 --- a/src/views/PurchasingCenter/CreateContract/index.vue +++ b/src/views/PurchasingCenter/CreateContract/index.vue @@ -51,7 +51,7 @@ - + - + - + - + - + - + { for (let i = 0; i < response.data.length; i++) { - this.payTime.push({ - label: response.data[i].付款时间节点名称, - value: response.data[i].付款时间节点流水号 - }) + if (parseInt(response.data[i].付款时间节点流水号) !== 0) { + this.payTime.push({ + label: response.data[i].付款时间节点名称, + value: response.data[i].付款时间节点流水号 + }) + } } }) }, diff --git a/src/views/PurchasingCenter/InvoiceStateSearch/index.vue b/src/views/PurchasingCenter/InvoiceStateSearch/index.vue index 4ffe69eb..c997aafd 100644 --- a/src/views/PurchasingCenter/InvoiceStateSearch/index.vue +++ b/src/views/PurchasingCenter/InvoiceStateSearch/index.vue @@ -51,7 +51,7 @@ diff --git a/src/views/PurchasingCenter/PurchaseContractApproval/index.vue b/src/views/PurchasingCenter/PurchaseContractApproval/index.vue index 6f3a868c..e15dbcf4 100644 --- a/src/views/PurchasingCenter/PurchaseContractApproval/index.vue +++ b/src/views/PurchasingCenter/PurchaseContractApproval/index.vue @@ -215,7 +215,7 @@ export default { ], disabled: true, form2: { - 审批是否通过: '', + 审批是否通过: 1, 未通过原因: '' }, rules2: {}, diff --git a/src/views/PurchasingCenter/PurchaseContractSearch/index.vue b/src/views/PurchasingCenter/PurchaseContractSearch/index.vue index 2a033176..c5e902bc 100644 --- a/src/views/PurchasingCenter/PurchaseContractSearch/index.vue +++ b/src/views/PurchasingCenter/PurchaseContractSearch/index.vue @@ -23,7 +23,7 @@ 采购员: - +
- - 项目名称: - - - - 物料名称: - - 分配情况: - - - - 查询 - 采购员: - - - - 分配 - + + + + 项目名称: + + + + 物料名称: + + 分配情况: + + + + 查询 + + + + + 采购员: + + + + 分配 + 退回 + + +