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 @@ - + @@ -94,11 +94,11 @@ {{ 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.供货商 || '—' }} - - - - + - + @@ -105,6 +100,11 @@ {{ scope.row.姓名 || '—' }} + + +
- - - - + - + @@ -193,6 +188,11 @@ {{ scope.row.姓名 || '—' }} + + +
- - - - + @@ -286,6 +281,11 @@ {{ scope.row.姓名 || '—' }} + + +
- + - - - - + + + + + + + - - + + 成组采购 取消成组采购 - - + + - + - + @@ -56,10 +63,10 @@ - + - + @@ -79,35 +86,35 @@ - - + + - + - + - + - + - + @@ -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()">查询 + 新增请款 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - 累计合同总额: - - 累计付款: - - 累计欠款: - -
-
- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + +
+
+
+ + + + + + + + + + + + + + + + +
供应商: @@ -242,7 +245,7 @@ export default { tableData1: [], total1: 0, pageCurrent1: 1, - pageSize1: 10, + pageSize1: 30, returns: '', supplierValue: '', supplier: [],