diff --git a/src/api/ManufacturingCenter/CompletionOfWorkshopComponents.js b/src/api/ManufacturingCenter/CompletionOfWorkshopComponents.js index f6d31018..723e8a17 100644 --- a/src/api/ManufacturingCenter/CompletionOfWorkshopComponents.js +++ b/src/api/ManufacturingCenter/CompletionOfWorkshopComponents.js @@ -7,7 +7,7 @@ export function getMachines() { method: 'post', data: { type: '1', - name: 'PDM_机床名称_全部_查询数据' + name: 'PDM_机床名称_查询数据_查询全部' } }) } @@ -18,9 +18,32 @@ export function getGroups(stepNumber) { method: 'post', data: { type: '1', - name: '车间生产管理工艺_传递后_组件名称_查询数据_查询所有组_新', + name: '车间生产管理工艺_传递后_组件名称_查询数据_查询所有组', param: '机床流水号=' + stepNumber + '=int' } }) } - +// 查询零件 +export function selectParts(check1, stepNumber, check2, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_车间组件完成情况_查询数据', + param: '组件流水号_check=' + check1 + '&组件流水号=' + stepNumber + '&工艺计划流水号_check=' + check2 + '&工艺计划流水号=' + num + } + }) +} +// 查询工序 +export function selectProcedure(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工序_查询数据_车间组件完成情况', + param: '工艺计划流水号=' + num + } + }) +} diff --git a/src/api/ManufacturingCenter/PartAssignment.js b/src/api/ManufacturingCenter/PartAssignment.js index 518303d7..a0b27598 100644 --- a/src/api/ManufacturingCenter/PartAssignment.js +++ b/src/api/ManufacturingCenter/PartAssignment.js @@ -67,14 +67,14 @@ export function searchTable1(PurchaseOrder, check4) { } }) } -export function addData(num1, num2, id, time) { +export function addData(num1, num2, id, time, remarks) { return request({ url: '', method: 'post', data: { type: '2', name: '车间管理_基本件采购_请购单_增加数据', - param: '请购车间=' + num1 + '&请购人=' + num2 + '&人员编号=' + id + '&请购时间=' + time + param: '请购车间=' + num1 + '&请购人=' + num2 + '&人员编号=' + id + '&请购时间=' + time + '&备注=' + remarks } }) } diff --git a/src/api/WorkshopProcurement/NewArrivalList.js b/src/api/WorkshopProcurement/NewArrivalList.js index cfca577d..3c169558 100644 --- a/src/api/WorkshopProcurement/NewArrivalList.js +++ b/src/api/WorkshopProcurement/NewArrivalList.js @@ -38,26 +38,26 @@ export function searchLxPurchaseOrder(pageCurrent, pageSize, check1, num, check2 }) } // 查询采购计划明细 -export function searchMateriel(num) { +export function searchMateriel(num, check, num1) { return request({ url: '', method: 'post', data: { type: '1', name: '备料管理_采购计划明细_查询数据_未选入', - param: `供应商=${num}` + param: `供应商=${num}&零件图号_check=${check}&零件图号=${num1}` } }) } // 查询离线采购计划明细 -export function searchLxMateriel(num) { +export function searchLxMateriel(num, check, num1) { return request({ url: '', method: 'post', data: { type: '1', name: '备料管理_离线采购计划明细_查询数据_未选入', - param: `供应商流水号=${num}` + param: `供应商流水号=${num}&零件图号_check=${check}&零件图号=${num1}` } }) } diff --git a/src/api/WorkshopProcurement/OutsourcingMaterialsInvoice.js b/src/api/WorkshopProcurement/OutsourcingMaterialsInvoice.js index 2fc72e8a..ad0fb557 100644 --- a/src/api/WorkshopProcurement/OutsourcingMaterialsInvoice.js +++ b/src/api/WorkshopProcurement/OutsourcingMaterialsInvoice.js @@ -132,15 +132,14 @@ export function searchSupplier(check1, value1, check2, value2, check3, value3, c }) } // 查询到货单 -export function searchArriveOrder(num, num1, num2, num3, num5, pageCurrent, pageSize) { +export function searchArriveOrder(num, num1, num2, num3, num5) { return request({ url: '', method: 'post', data: { type: '1', name: '备料管理_到货单查询', - param: `供应商_check=${num}&供应商=${num1}&开始日期_check=${num2}&开始日期=${num3}&结束日期=${num5}`, - Pagination: pageCurrent + '&' + pageSize + param: `供应商_check=${num}&供应商=${num1}&开始日期_check=${num2}&开始日期=${num3}&结束日期=${num5}` } }) } diff --git a/src/utils/request.js b/src/utils/request.js index 03220e7d..4d73841f 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -26,7 +26,7 @@ export const downloadFileMachine = `http://192.168.1.231:8411/submit/downloadFil export const MESUploadFile = `http://192.168.1.231:8411/submit/MESUploadFile.ashx` export const MESDownloadFile = `http://192.168.1.231:8411/submit/MESDownloadFile.ashx` const service = axios.create({ - baseURL: `http://192.168.0.110:8002/submit/MESCommonBase.ashx`, + baseURL: `http://192.168.1.231:8411/submit/MESCommonBase.ashx`, timeout: 1500000 // 请求超时时间 }) export default service diff --git a/src/views/ManufacturingCenter/CompletionOfWorkshopComponents/index.vue b/src/views/ManufacturingCenter/CompletionOfWorkshopComponents/index.vue index f7da2ffe..13a8076a 100644 --- a/src/views/ManufacturingCenter/CompletionOfWorkshopComponents/index.vue +++ b/src/views/ManufacturingCenter/CompletionOfWorkshopComponents/index.vue @@ -1,9 +1,9 @@ - + @@ -11,7 +11,7 @@ {{ item.value2 }} - + - + - + - + {{ scope.row.工艺名称 }} - + - {{ scope.row.序间质检 }} + {{ scope.row.员工姓名 }} - + - {{ scope.row.不合格数量 }} - - - - - {{ scope.row.操作者 }} - - - - - {{ scope.row.完成日期 }} + {{ scope.row.投产数量 }} - - - 机床图号:{{ MachineLabel }} 机床名称:{{ MachineName }} - - - - - - - - 详情 - - + + 机床图号:{{ 机床图号 }} 机床名称:{{ 机床名称 }} + + + + + + + + + + {{ scope.row.零件图号 + '\xa0\xa0\xa0\xa0\xa0' + scope.row.规格 }} + + + + + {{ scope.row.零件名称 }} + + + + + {{ scope.row.投产总数量 }} + + + + - diff --git a/src/views/ManufacturingCenter/ParseQuery/index.vue b/src/views/ManufacturingCenter/ParseQuery/index.vue index 2fd1fcee..0b3206a5 100644 --- a/src/views/ManufacturingCenter/ParseQuery/index.vue +++ b/src/views/ManufacturingCenter/ParseQuery/index.vue @@ -1330,6 +1330,7 @@ 已发货 + 未发货 diff --git a/src/views/ManufacturingCenter/PartAssignment/index.vue b/src/views/ManufacturingCenter/PartAssignment/index.vue index 2e3ce56b..072970d5 100644 --- a/src/views/ManufacturingCenter/PartAssignment/index.vue +++ b/src/views/ManufacturingCenter/PartAssignment/index.vue @@ -219,7 +219,7 @@ - + @@ -242,6 +242,11 @@ {{ scope.row.请购时间 }} + + + {{ scope.row.备注 }} + + @@ -349,6 +354,12 @@ value-format="yyyy-MM-dd" placeholder="选择日期"/> + + + - 查询 diff --git a/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue b/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue index 5c5ca59f..ee12874c 100644 --- a/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue +++ b/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue @@ -7,7 +7,10 @@ v-for="item in contractNum" :key="item.value" :label="item.label" - :value="item.value"/> + :value="item.value"> + {{ item.label }} + {{ item.name }} + @@ -141,9 +144,9 @@ style="margin-top:10px" @click="calculateContractSum">计算合同总额 合同总额(未税): - - 合同总额(含税): + 合同总额(含税): + @@ -466,7 +469,8 @@ export default { this.contractNum.push({ label: response.data[i].请购单编号, value: response.data[i].请购单流水号, - id: response.data[i].请购类型 + id: response.data[i].请购类型, + name: response.data[i].备注 }) } }) @@ -548,7 +552,7 @@ export default { this.tableData4.push(this.groupNum2[i]) } this.contractSum = (this.contractSum1).toFixed(2) - this.contractSum2 = parseInt(this.contractSum * (1 + parseFloat(this.taxRate)) * 100) / 100 + this.contractSum2 = parseInt(this.contractSum * (1 - parseFloat(this.taxRate)) * 100) / 100 this.costAccount = this.contractSum if (parseInt(this.costAccount) === 0) { this.$message.error('成本核算不可为0') @@ -566,7 +570,7 @@ export default { } console.log(this.contractSum1, this.groupNum5, 898989) this.contractSum = (this.contractSum1).toFixed(2) - this.contractSum2 = parseInt(this.contractSum * (1 + parseFloat(this.taxRate)) * 100) / 100 + this.contractSum2 = parseInt(this.contractSum * (1 - parseFloat(this.taxRate)) * 100) / 100 this.costAccount = this.contractSum if (parseInt(this.costAccount) === 0) { this.$message.error('成本核算不可为0') @@ -585,7 +589,8 @@ export default { this.contractNum.push({ label: response.data[i].请购单编号, value: response.data[i].请购单流水号, - id: response.data[i].请购类型 + id: response.data[i].请购类型, + name: response.data[i].备注 }) } }) diff --git a/src/views/WorkshopProcurement/FundApproval2/index.vue b/src/views/WorkshopProcurement/FundApproval2/index.vue index 9009e6b2..493825db 100644 --- a/src/views/WorkshopProcurement/FundApproval2/index.vue +++ b/src/views/WorkshopProcurement/FundApproval2/index.vue @@ -58,64 +58,64 @@ @current-change="handleCurrentChange"/> - - 离线合同 - - - - {{ scope.row.供应商名称 }} - - - - - {{ scope.row.请款时间 }} - - - - - {{ scope.row.姓名 }} - - - - - {{ scope.row.请款金额 }} - - - - - - - - - - {{ scope.row.离线合同编号 }} - - - - - {{ scope.row.请款金额 }} - - - - 查看详情 - - 通过 - 不通过 - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 备料合同 diff --git a/src/views/WorkshopProcurement/InvoiceSettlementApplication1/index.vue b/src/views/WorkshopProcurement/InvoiceSettlementApplication1/index.vue index ec70794f..78b9a42c 100644 --- a/src/views/WorkshopProcurement/InvoiceSettlementApplication1/index.vue +++ b/src/views/WorkshopProcurement/InvoiceSettlementApplication1/index.vue @@ -254,7 +254,7 @@ 供应商: - + diff --git a/src/views/WorkshopProcurement/NewArrivalList/index.vue b/src/views/WorkshopProcurement/NewArrivalList/index.vue index cac9a7b6..082bf8b2 100644 --- a/src/views/WorkshopProcurement/NewArrivalList/index.vue +++ b/src/views/WorkshopProcurement/NewArrivalList/index.vue @@ -249,7 +249,15 @@ - + + 供应商 + + + + 到货单编号 + + + 计划类型 - - 供应商 - + + 零件图号 + - - 到货单编号 - + + 查询 - + @@ -302,8 +309,8 @@ - - + + {{ scope.row.采购单号 }} @@ -336,12 +343,12 @@ - + - + @@ -417,7 +424,7 @@ - + 计划类型 - - + 零件图号 + + 查询 + + {{ scope.row.采购单号 }} @@ -460,12 +470,12 @@ - + - + @@ -535,6 +545,7 @@ export default { ALLMoney: '', 材料名称: '', 未绑定数量: '', + 零件图号: '', tableData2: [], total2: 0, pageCurrent2: 1, @@ -595,12 +606,17 @@ export default { 单位: [{ required: true, message: '请填写单位' }], 单价: [{ required: true, message: '请填写单价' }] }, + 到货单编号: '', + 供应商名称: '', 本次到货数量组: [], 到货重量组: [], 工艺计划流水号组: [], 采购计划明细流水号组: [], 离线采购计划明细流水号组: [], - 到货金额组: [] + 到货金额组: [], + getRowKeys(row) { + return row.采购计划明细流水号 + } } }, computed: { @@ -618,6 +634,23 @@ export default { this.searchTable4() }, methods: { + saveData(row) { + var a = 0 + this.tableData30.map(v => { + if (v.采购计划明细流水号 === row.采购计划明细流水号) { + v.到货重量 = row.到货重量 + v.未到货数量 = row.未到货数量 + a = 1 + } + }) + if (a === 0) { + this.tableData30.push({ + 采购计划明细流水号: row.采购计划明细流水号, + 到货重量: row.到货重量, + 未到货数量: row.未到货数量 + }) + } + }, fetchdata() { searchSupplier(0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '').then(response => { for (let i = 0; i < response.data.length; i++) { @@ -629,12 +662,22 @@ export default { }) }, searchTable20() { + let check + this.零件图号 ? check = 1 : check = 0 if (this.planType === 0) { - searchMateriel(this.供应商).then(response => { + searchMateriel(this.供应商, check, this.零件图号).then(response => { this.tableData20 = response.data + for (let i = 0; i < this.tableData20.length; i++) { + for (let j = 0; j < this.tableData30.length; j++) { + if (this.tableData20[i].采购计划明细流水号 === this.tableData30[j].采购计划明细流水号) { + this.tableData20[i].未到货数量 = this.tableData30[j].未到货数量 + this.tableData20[i].到货重量 = this.tableData30[j].到货重量 + } + } + } }) } else { - searchLxMateriel(this.供应商).then(response => { + searchLxMateriel(this.供应商, check, this.零件图号).then(response => { this.tableData20 = response.data }) } @@ -924,7 +967,9 @@ export default { this.form10.数量 = '' this.form10.单价 = '' this.form10.金额 = '' + this.tableData30 = [] this.searchTable20() + this.$refs['form10'].resetFields() searchTable5(this.ArrivalOrderNumber).then(response => { this.tableData5 = response.data }) @@ -1046,6 +1091,7 @@ export default { addMateriel(this.ArrivalOrderMXNumber, this.工艺计划流水号组, this.采购计划明细流水号组, this.本次到货数量组, this.离线采购计划明细流水号组, this.到货重量组, this.到货金额组, this.userId).then(response => { if (response.data[0].result === '1') { this.$message.success('关联成功') + this.tableData30 = [] this.searchTable20() searchTable6(this.ArrivalOrderMXNumber).then(response => { this.tableData6 = response.data diff --git a/src/views/WorkshopProcurement/OutsourcingMaterialsInvoice/index.vue b/src/views/WorkshopProcurement/OutsourcingMaterialsInvoice/index.vue index 90fcdcf8..1145927f 100644 --- a/src/views/WorkshopProcurement/OutsourcingMaterialsInvoice/index.vue +++ b/src/views/WorkshopProcurement/OutsourcingMaterialsInvoice/index.vue @@ -132,9 +132,9 @@ - + - {{ scope.row.供应商名称 }} + {{ scope.row.到货单编号 }} @@ -147,11 +147,6 @@ {{ scope.row.到货金额 }} - - - {{ scope.row.备注 }} - - @@ -167,12 +162,12 @@ - + - + - + - - - 时间段: - - - 查询 - - - + + - + - {{ scope.row.供应商名称 }} + {{ scope.row.到货单编号 }} @@ -229,23 +207,7 @@ {{ scope.row.到货金额 }} - - - {{ scope.row.备注 }} - - - - - - - - 时间段: - - - 查询 - - + - + - {{ scope.row.供应商名称 }} + {{ scope.row.到货单编号 }} @@ -290,23 +235,7 @@ {{ scope.row.到货金额 }} - - - {{ scope.row.备注 }} - - - - - @@ -337,9 +266,6 @@ export default { pageCurrent1: 1, pageSize1: 30, total1: 0, - pageCurrent4: 1, - pageSize4: 10, - total4: 0, tableData1: [], tableData01: [], tableData4: [], @@ -436,20 +362,10 @@ export default { console.log(this.Name) this.Name ? this.check = 1 : this.check = 0 this.dateRange ? this.check1 = 1 : (this.check1 = 0, this.dateRange = '') - searchArriveOrder(this.check, this.Name, this.check1, this.dateRange[0], this.dateRange[1], this.pageCurrent4, this.pageSize4).then(response => { - this.tableData4 = response.data.rows - this.total4 = response.data.total + searchArriveOrder(this.check, this.Name, this.check1, this.dateRange[0], this.dateRange[1]).then(response => { + this.tableData4 = response.data }) }, - handleSizeChange4(val) { // 采购单列表分页 - this.pageSize4 = val - this.pageCurrent4 = 1 - this.searchTable4() - }, - handleCurrentChange4(val) { // 采购单列表分页 - this.pageCurrent4 = val - this.searchTable4() - }, searchTable02(row) { // 查看详情(发票包含的合同) this.发票流水号 = row.发票流水号 searchInvoiceDetail(this.发票流水号).then(response => { @@ -461,6 +377,7 @@ export default { this.$refs['form1'].resetFields() } this.title1 = '新增备料发票' + this.tableData4 = [] this.dialogVisible1 = true console.log(this.supplierNames) this.form1.supplierNameValue = ''