diff --git a/src/api/ManufacturingCenter/ProcessTaskAssignment.js b/src/api/ManufacturingCenter/ProcessTaskAssignment.js index 8b763061..00a15510 100644 --- a/src/api/ManufacturingCenter/ProcessTaskAssignment.js +++ b/src/api/ManufacturingCenter/ProcessTaskAssignment.js @@ -97,30 +97,6 @@ export function getTable00(PageCurrent, PageSize, num) { } }) } -// 保存 -export function save(num1, num2, num3) { - return request({ - url: '', - method: 'post', - data: { - type: '2', - name: '车间生产管理工艺_工艺任务分配_保存数据', - param: '工艺计划流水号=' + num1 + '&人员编号=' + num2 + '&零件图号=' + num3 - } - }) -} -// // 模糊查询 -// export function fuzzyQuery(num) { -// return request({ -// url: '', -// method: 'post', -// data: { -// type: '1', -// name: '车间生产管理工艺_传递后_机床名称_查询数据_模糊查询', -// param: '机床图号=' + num + '&是否传递=2&考核状态=3&工艺任务分配状态=1&定额任务分配状态=1' -// } -// }) -// } // 工艺定额人员查询 export function initPerson() { return request({ @@ -133,3 +109,27 @@ export function initPerson() { } }) } +// 保存 +export function save(num1, num2, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_工艺任务分配_保存数据', + param: '工艺计划流水号=' + num1 + '&人员编号=' + num2 + '&零件图号=' + num3 + } + }) +} +// 保存 +export function save2(num1, num2, num3) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_工艺任务分配_保存数据', + param: '工艺计划流水号=' + num1 + '&人员编号=' + num2 + '&零件图号=' + num3 + } + }) +} diff --git a/src/api/Outsourcing/OutsourcingPaymentPlanManagement.js b/src/api/Outsourcing/OutsourcingPaymentPlanManagement.js index ef2d26f0..26bacdb0 100644 --- a/src/api/Outsourcing/OutsourcingPaymentPlanManagement.js +++ b/src/api/Outsourcing/OutsourcingPaymentPlanManagement.js @@ -37,14 +37,14 @@ export function payTime(num, time) { }) } // 修改扣款数据、扣款说明 -export function WithdrawingEdit(num, quality, plan, Other, Explain) { +export function WithdrawingEdit(num, quality, Explain) { return request({ url: '', method: 'post', data: { type: '2', - name: '车间生产管理_外协加工任务单_修改数据', - param: '外协加工任务单流水号=' + num + '&扣款_质量=' + quality + '&扣款_计划=' + plan + '&扣款_其他=' + Other + '&扣款说明=' + Explain + name: '车间生产管理_外协扣款_编辑数据', + param: '外协加工任务单流水号=' + num + '&扣款_质量=' + quality + '&扣款说明=' + Explain } }) } diff --git a/src/utils/request.js b/src/utils/request.js index fc41e22d..2cb92ad8 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.1.231:8411/submit/MESCommonBase.ashx`, + baseURL: `http://192.168.0.110:8002/submit/MESCommonBase.ashx`, timeout: 1500000 // 请求超时时间 }) export default service diff --git a/src/views/Inventory/InventoryCheck/index.vue b/src/views/Inventory/InventoryCheck/index.vue index 8d31b698..31d5b1d0 100644 --- a/src/views/Inventory/InventoryCheck/index.vue +++ b/src/views/Inventory/InventoryCheck/index.vue @@ -3,16 +3,16 @@ - - - - - - + + + + + + + + + + - - 物料名称: - - - - 物料规格: - - - - 物料型号: - + + 名称规格型号: + + + + + + + + + 查询 @@ -134,7 +134,7 @@ @current-change="handleCurrentChange01"/> - + 仓库: { diff --git a/src/views/Inventory/MaterialOut/index.vue b/src/views/Inventory/MaterialOut/index.vue index d42569b9..020fa906 100644 --- a/src/views/Inventory/MaterialOut/index.vue +++ b/src/views/Inventory/MaterialOut/index.vue @@ -436,9 +436,9 @@ export default { }, // 领料确认 inputPassword() { - this.form3.outTypeValue = '' + this.form3.outTypeValue = 21 this.form3.password = '' - this.form3.department = '' + this.form3.department = '装配' this.dialogFormVisible3 = true }, selectable(row, index) { // 控制某行是否可选 diff --git a/src/views/Inventory/OfflinePartOut/index.vue b/src/views/Inventory/OfflinePartOut/index.vue index 0e94e373..903b4535 100644 --- a/src/views/Inventory/OfflinePartOut/index.vue +++ b/src/views/Inventory/OfflinePartOut/index.vue @@ -1,19 +1,19 @@ - - 物料名称: - - 物料规格: - + + 名称规格型号: + + + + + + 查询 - 物料型号: - - 查询 - + @@ -30,11 +30,11 @@ {{ scope.row.物料规格 }} - - - {{ scope.row.仓库名称 }} - - + + + + + {{ scope.row.货位名称 }} @@ -65,7 +65,7 @@ - + @@ -169,7 +169,7 @@ - + @@ -220,7 +220,8 @@ export default { { required: true, message: '请输入数量', trigger: 'blur' }, { validator: checkNum, trigger: 'blur' } ], - DirectNote: [{ required: true, message: '请输入领料人', trigger: 'blur' }] + DirectNote: [{ required: true, message: '请输入领料人', trigger: 'blur' }], + department: [{ required: true, message: '请输入领料部门', trigger: 'blur' }] }, locateNumber: '', materialNumber: '', @@ -346,12 +347,13 @@ export default { }, // 打开表单 parOut(row) { - this.dialogFormVisible = true + this.form.department = '装配车间' this.locateNumber = row.货位流水号 this.materialNumber = row.物料流水号 this.partnumber = row.货位存量 this.离线合同明细流水号 = row.离线合同明细流水号 this.组件零件基本件流水号 = row.组件零件基本件流水号 + this.dialogFormVisible = true }, // 重置表单 callOff() { diff --git a/src/views/Inventory/PurchaseInRecord/index.vue b/src/views/Inventory/PurchaseInRecord/index.vue index 383c9e53..fb22417f 100644 --- a/src/views/Inventory/PurchaseInRecord/index.vue +++ b/src/views/Inventory/PurchaseInRecord/index.vue @@ -19,11 +19,12 @@ :label="item.label" :value="item.value"/> - - - + + + + 查询 - + - 查询 diff --git a/src/views/Inventory/PurchaseOutRecord/index.vue b/src/views/Inventory/PurchaseOutRecord/index.vue index 80995f00..1ae4bcc2 100644 --- a/src/views/Inventory/PurchaseOutRecord/index.vue +++ b/src/views/Inventory/PurchaseOutRecord/index.vue @@ -19,11 +19,12 @@ :label="item.label" :value="item.value"/> - - - + + + + 查询 - + - 查询 diff --git a/src/views/ManufacturingCenter/ActualTimeSupplement/index.vue b/src/views/ManufacturingCenter/ActualTimeSupplement/index.vue index 3ca27de2..aa250568 100644 --- a/src/views/ManufacturingCenter/ActualTimeSupplement/index.vue +++ b/src/views/ManufacturingCenter/ActualTimeSupplement/index.vue @@ -37,11 +37,11 @@ 操作者: - + 零件图号: - + 工艺名称: - + 查询 新增 @@ -507,7 +507,6 @@ export default { this.partNumber ? check4 = 1 : check4 = 0 this.startTime2 && this.endTime2 ? check5 = 1 : check5 = 0 searchTable(this.technologyName, check1, this.workerName, check2, check3, this.endTime1, this.startTime1, this.partNumber, check4, check5, this.endTime2, this.startTime2, this.pageCurrent, this.pageSize).then(res => { - console.log(res.data.rows, 898989) this.tableData = res.data.rows this.total = res.data.total this.tableData.map(v => { diff --git a/src/views/ManufacturingCenter/EquipmentMonitoring/index.vue b/src/views/ManufacturingCenter/EquipmentMonitoring/index.vue index b53986dd..e0d450cc 100644 --- a/src/views/ManufacturingCenter/EquipmentMonitoring/index.vue +++ b/src/views/ManufacturingCenter/EquipmentMonitoring/index.vue @@ -633,7 +633,8 @@ export default { }, opclickshowPanel($event) { if ($event.path[2].id !== undefined && $event.path[2].id !== null && $event.path[2].id !== '') { - var aaa = 'http://192.168.1.232/webpage/MesWebFun02.htm?opname=' + $event.path[2].id + '&ip=192.168.1.232&port=61101' + // var aaa = 'http://192.168.1.232/webpage/MesWebFun02.htm?opname=' + $event.path[2].id + '&ip=192.168.1.232&port=61101' + var aaa = 'http://192.168.1.232:8007/#/login?OPNAME=' + $event.path[2].id window.open(aaa) } }, diff --git a/src/views/ManufacturingCenter/PartWorkCraftSelect_rdlc/index.vue b/src/views/ManufacturingCenter/PartWorkCraftSelect_rdlc/index.vue index fdef9f3a..7a7fd68d 100644 --- a/src/views/ManufacturingCenter/PartWorkCraftSelect_rdlc/index.vue +++ b/src/views/ManufacturingCenter/PartWorkCraftSelect_rdlc/index.vue @@ -3,7 +3,6 @@ - {{ item.name }} - - + - - - + 查询 + + 零件工艺调整 + @@ -64,22 +63,22 @@ {{ scope.row.组号 }} - + {{ scope.row.零件图号 }} - + {{ scope.row.零件名称 }} - + {{ scope.row.批次数量 }} - + {{ scope.row.工艺员 }} @@ -90,21 +89,13 @@ :current-page="pageCurrent" :page-sizes="[5, 10, 20, 300]" :page-size="pageSize" + :pager-count="5" :total="total" layout="total, sizes, prev, pager, next, jumper" @size-change="handleSizeChange" @current-change="handleCurrentChange"/> - - - - - 零件工艺调整 - - - - diff --git a/src/views/ManufacturingCenter/ProcessTaskAssignment/index.vue b/src/views/ManufacturingCenter/ProcessTaskAssignment/index.vue index 74463e8e..182b9ded 100644 --- a/src/views/ManufacturingCenter/ProcessTaskAssignment/index.vue +++ b/src/views/ManufacturingCenter/ProcessTaskAssignment/index.vue @@ -24,6 +24,7 @@ 全选 保存 + 保存 { + if (!v.工艺员) { + return false + } + console.log(111) + this.通用件图号.push(v.零件号) + this.通用件规格.push(v.规格) + this.工艺员.push(v.工艺员) + }) + console.log(this.通用件图号, this.通用件规格, this.工艺员) } } } diff --git a/src/views/ManufacturingCenter/ProcessingStatusEdit/index.vue b/src/views/ManufacturingCenter/ProcessingStatusEdit/index.vue index bd86ff96..ce57deab 100644 --- a/src/views/ManufacturingCenter/ProcessingStatusEdit/index.vue +++ b/src/views/ManufacturingCenter/ProcessingStatusEdit/index.vue @@ -14,7 +14,7 @@ 组号: - + 零件号: + 查询 - + 计划下达时间: - 查询 diff --git a/src/views/ManufacturingCenter/ScheduleCompletionDetails/index.vue b/src/views/ManufacturingCenter/ScheduleCompletionDetails/index.vue index 80af3cc6..f2a4a0ce 100644 --- a/src/views/ManufacturingCenter/ScheduleCompletionDetails/index.vue +++ b/src/views/ManufacturingCenter/ScheduleCompletionDetails/index.vue @@ -22,7 +22,7 @@ - + - + {{ scope.row.姓名 }} - + {{ scope.row.理论加工时间段 }} - + {{ scope.row.实际加工时间段 }} - + {{ scope.row.完成数量 }} @@ -66,15 +66,15 @@ - + - + {{ scope.row.零件图号 }} - + {{ scope.row.零件名称 }} @@ -84,7 +84,7 @@ {{ scope.row.工艺名称 }} - + {{ scope.row.完成数量 }} @@ -94,11 +94,11 @@ {{ scope.row.质检结果 }} - - - {{ scope.row.不合格数量 }} - - + + + + + {{ scope.row.理论加工时间段 }} @@ -109,7 +109,12 @@ {{ scope.row.实际加工时间段 }} - + + + {{ scope.row.加工开始时间 }} + + + {{ scope.row.加工完成时间 }} @@ -145,10 +150,10 @@ export default { loading2: '', pageCurrent: 1, pageSize: 10000, - total: '', + total: 0, pageCurrent2: 1, pageSize2: 10000, - total2: '', + total2: 0, timeCheck: '', operater: '' } @@ -166,8 +171,6 @@ export default { if (this.startTime !== '' && this.startTime !== null && this.endTime !== null && this.endTime !== null) { this.timeCheck = 1 } else { - // this.startTime = '' - // this.endTime = '' this.timeCheck = 0 } searchtable(this.operater, this.timeCheck, this.startTime, this.endTime, this.pageCurrent, this.pageSize).then(response => { @@ -197,7 +200,8 @@ export default { 不合格数量: response.data.rows[i].不合格数量, 理论加工时间段: response.data.rows[i].理论加工时间段, 实际加工时间段: response.data.rows[i].实际加工时间段, - 加工完成时间: response.data.rows[i].加工完成时间 ? response.data.rows[i].加工完成时间.split(' ')[0] : '' + 加工开始时间: response.data.rows[i].加工开始时间 ? response.data.rows[i].加工开始时间 : '', + 加工完成时间: response.data.rows[i].加工完成时间 ? response.data.rows[i].加工完成时间 : '' }) } } diff --git a/src/views/ManufacturingCenter/ShopScheduling/index.vue b/src/views/ManufacturingCenter/ShopScheduling/index.vue index 7d221ad8..50014045 100644 --- a/src/views/ManufacturingCenter/ShopScheduling/index.vue +++ b/src/views/ManufacturingCenter/ShopScheduling/index.vue @@ -13,7 +13,7 @@ :value="item.value"/> - + diff --git a/src/views/Outsourcing/OutsourcingPaymentPlanManagement/index.vue b/src/views/Outsourcing/OutsourcingPaymentPlanManagement/index.vue index c53c5673..b8aa40d0 100644 --- a/src/views/Outsourcing/OutsourcingPaymentPlanManagement/index.vue +++ b/src/views/Outsourcing/OutsourcingPaymentPlanManagement/index.vue @@ -563,7 +563,7 @@ export default { }, // 扣款编辑 WithdrawingEdit() { - WithdrawingEdit(this.liushuihao, this.form2.质量, this.form2.计划, this.form2.其他, this.form2.扣款说明).then(response => { + WithdrawingEdit(this.liushuihao, this.form2.质量, this.form2.扣款说明).then(response => { if (response.data[0].result === '1') { this.$message.success('修改成功') this.searchTable() diff --git a/src/views/PurchasingCenter/PurchaseSituationSearch/index.vue b/src/views/PurchasingCenter/PurchaseSituationSearch/index.vue index 3d59ff66..9d46b708 100644 --- a/src/views/PurchasingCenter/PurchaseSituationSearch/index.vue +++ b/src/views/PurchasingCenter/PurchaseSituationSearch/index.vue @@ -70,17 +70,12 @@ {{ scope.row.供货商 || '—' }} - - - {{ scope.row.备注 || '—' }} - - - + {{ scope.row.零件数量 || '—' }} - + {{ parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!=='' ? '—' : scope.row.数量 || scope.row.离线采购数量 || '—' }} @@ -105,6 +100,11 @@ {{ scope.row.姓名 || '—' }} + + + {{ scope.row.备注 || '—' }} + + - - - {{ scope.row.备注 || '—' }} - - - + {{ scope.row.零件数量 || '—' }} - + {{ parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!=='' ? '—' : scope.row.数量 || scope.row.离线采购数量 || '—' }} @@ -193,6 +188,11 @@ {{ scope.row.姓名 || '—' }} + + + {{ scope.row.备注 || '—' }} + + - - - {{ scope.row.备注 || '—' }} - - - + {{ scope.row.零件数量 || '—' }} @@ -286,6 +281,11 @@ {{ scope.row.姓名 || '—' }} + + + {{ scope.row.备注 || '—' }} + + - + - - - - + + + + + + + - - + + 成组采购 取消成组采购 - - + + {{ scope.row.组件名称 }} - + {{ scope.row.组号 }} - + @@ -56,10 +63,10 @@ - {{ parseInt(scope.row.数量) * parseFloat(scope.row.单价) }} + {{ (parseInt(scope.row.数量) * parseFloat(scope.row.单价)).toFixed(2) }} - + - + @@ -79,35 +86,35 @@ - - + + {{ scope.row.物料名称 }} - + {{ scope.row.图号或型号 }} - + {{ scope.row.规格或材料 }} - + {{ scope.row.零件数量 }} - + - + - + - {{ scope.row.金额 }} + {{ scope.row.金额.toFixed(2) }} @@ -122,7 +129,7 @@ @change="update(scope.row)"/> - + @@ -337,6 +344,7 @@ export default { contractNumValue: '', contractNumType: 0, RequisitionNumber: '', + supplierNames: [], contract: [{ label: '合同模板1', value: 1 @@ -356,6 +364,7 @@ export default { supplierName: '', // 供应商 supplier: [], supplierValue: '', // 供应商流水号 + supplierValues: [], enterpriseNature: '', // 企业性质 createDate: '', // 创立日期 registeredCapital: '', // 注册资本 @@ -439,6 +448,7 @@ export default { }, created() { this.fetchData() + this.searchSupplier() }, methods: { linkGroup() { @@ -482,6 +492,8 @@ export default { }) }, searchData() { + this.contractSum = 0.00 + this.contractSum2 = 0.00 for (let i = 0; i < this.contractNum.length; i++) { if (this.contractNum[i].value === this.contractNumValue) { this.contractNumType = this.contractNum[i].id @@ -496,6 +508,7 @@ export default { console.log(this.tableData5) }) searchData2(this.contractNumValue).then(response => { + console.log(response, 2233) this.tableData4 = response.data this.machineValue = response.data[0].机床流水号 this.form3.机床 = response.data[0].机床图号 @@ -523,24 +536,44 @@ export default { }) }, calculateContractSum() { // 计算合同总额 - this.contractSum = 0 - this.contractSum1 = 0 - this.costAccount = 0 - this.riseFallPoint = 0 - this.tableData4 = [] - for (let i = 0; i < this.groupNum2.length; i++) { - this.groupNum2[i].金额 = parseFloat(this.groupNum2[i].单价) * parseFloat(this.groupNum2[i].零件数量) - this.contractSum1 += parseFloat(this.groupNum2[i].金额) - this.tableData4.push(this.groupNum2[i]) - } - this.contractSum = (this.contractSum1).toFixed(2) - this.contractSum2 = parseInt(this.contractSum * (1 + parseFloat(this.taxRate)) * 100) / 100 - this.costAccount = this.contractSum - if (parseInt(this.costAccount) === 0) { - this.$message.error('成本核算不可为0') - } else { - this.riseFallPoint = (this.contractSum - this.costAccount) / this.costAccount - this.riseFallPoint = this.riseFallPoint.toFixed(2) + if (this.contractNumType === 0) { + this.contractSum = 0 + this.contractSum1 = 0 + this.costAccount = 0 + this.riseFallPoint = 0 + this.tableData4 = [] + for (let i = 0; i < this.groupNum2.length; i++) { + this.groupNum2[i].金额 = parseFloat(this.groupNum2[i].单价) * parseFloat(this.groupNum2[i].零件数量) + this.contractSum1 += parseFloat(this.groupNum2[i].金额) + this.tableData4.push(this.groupNum2[i]) + } + this.contractSum = (this.contractSum1).toFixed(2) + this.contractSum2 = parseInt(this.contractSum * (1 + parseFloat(this.taxRate)) * 100) / 100 + this.costAccount = this.contractSum + if (parseInt(this.costAccount) === 0) { + this.$message.error('成本核算不可为0') + } else { + this.riseFallPoint = (this.contractSum - this.costAccount) / this.costAccount + this.riseFallPoint = this.riseFallPoint.toFixed(2) + } + } else if (this.contractNumType === 1) { + this.contractSum = 0 + this.contractSum1 = 0 + this.costAccount = 0 + this.riseFallPoint = 0 + for (let i = 0; i < this.groupNum5.length; i++) { + this.contractSum1 += parseFloat((parseInt(this.groupNum5[i].数量) * parseFloat(this.groupNum5[i].单价)).toFixed(2)) + } + 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.costAccount = this.contractSum + if (parseInt(this.costAccount) === 0) { + this.$message.error('成本核算不可为0') + } else { + this.riseFallPoint = (this.contractSum - this.costAccount) / this.costAccount + this.riseFallPoint = this.riseFallPoint.toFixed(2) + } } }, fetchData() { @@ -581,6 +614,12 @@ export default { response.data[i].创立日期 = response.data[i].创立日期.split(' ')[0] } } + for (let i = 0; i < response.data.length; i++) { + this.supplierValues.push({ + label: response.data[i].供应商名称, + value: response.data[i].供应商流水号 + }) + } this.tableData01 = response.data }) }, diff --git a/src/views/WorkshopProcurement/PurchaseContractRequestFund1/index.vue b/src/views/WorkshopProcurement/PurchaseContractRequestFund1/index.vue index 7770a619..55a5fe76 100644 --- a/src/views/WorkshopProcurement/PurchaseContractRequestFund1/index.vue +++ b/src/views/WorkshopProcurement/PurchaseContractRequestFund1/index.vue @@ -27,104 +27,107 @@ size="small" icon="el-icon-search" style="margin-left: 10px" - @click="pageCurrent1=1;pageSize1=10;total1=0;searchTable1()">查询 - 请款 + @click="pageCurrent1=1;pageSize1=30;total1=0;searchTable1()">查询 + 新增请款 - - - - - - {{ scope.row.供应商名称 }} - - - - - {{ scope.row.请款时间 }} - - - - - {{ scope.row.姓名 }} - - - - - {{ scope.row.请款金额 }} - - - - - - 未审批 - 已通过 - 不通过 - - - - - {{ scope.row.未通过审批原因 === '通过' ? '—' : scope.row.未通过审批原因 }} - - - - - 未操作 - 已同意 - 不同意 - - - - - {{ scope.row.未付款原因 === '通过' ? '—' : scope.row.未付款原因 }} - - - - - - - - - - - {{ scope.row.采购合同编号 }} - - - - - {{ scope.row.已付金额 }} - - - - - {{ scope.row.请款金额 }} - - - - 查看详情 - - 取消请款 - - - - - - 累计合同总额: - - 累计付款: - - 累计欠款: - - - - + + + + + + + {{ scope.row.供应商名称 }} + + + + + {{ scope.row.请款时间.substr(0,10) }} + + + + + {{ scope.row.姓名 }} + + + + + {{ scope.row.请款金额 }} + + + + + + 未审批 + 已通过 + 不通过 + + + + + {{ scope.row.未通过审批原因 === '通过' ? '—' : scope.row.未通过审批原因 }} + + + + + 未操作 + 已同意 + 不同意 + + + + + {{ scope.row.未付款原因 === '通过' ? '—' : scope.row.未付款原因 }} + + + + + + 取消请款 + + + + + + + + + + + + + + + + + + + + + {{ scope.row.采购合同编号 }} + + + + + {{ scope.row.已付金额 }} + + + + + {{ scope.row.请款金额 }} + + + + + + 供应商: @@ -242,7 +245,7 @@ export default { tableData1: [], total1: 0, pageCurrent1: 1, - pageSize1: 10, + pageSize1: 30, returns: '', supplierValue: '', supplier: [],