diff --git a/src/views/Inventory/MaterialOut/index.vue b/src/views/Inventory/MaterialOut/index.vue
index 0d54a0a9..70678e4d 100644
--- a/src/views/Inventory/MaterialOut/index.vue
+++ b/src/views/Inventory/MaterialOut/index.vue
@@ -224,7 +224,7 @@
@@ -268,6 +268,7 @@ export default {
name: 'MaterialOut',
data() {
return {
+ buttonDisable: false,
dateRange: '',
multipleSelection1: [],
multipleSelection: [],
@@ -447,7 +448,6 @@ export default {
// 提交归还
submitSendBack() {
sendBack(this.form4.货位流水号, this.物料流水号, this.form4.归还数量, this.id, this.基本件流水号, this.标准件和外购件流水号, this.请购单明细流水号, this.form4.仓库流水号, this.领料单流水号).then(res => {
- console.log(res)
if (res.data[0].result === '1') {
this.$message.success('操作成功')
this.dialogFormVisible4 = false
@@ -493,10 +493,10 @@ export default {
this.form3.password = ''
this.selectDepartment()
this.departments = []
+ this.buttonDisable = false
this.dialogFormVisible3 = true
},
selectable(row, index) { // 控制某行是否可选
- console.log(row)
return ((Number(row.总数量) <= Number(row.出库数量1))) === false
},
// 初始化数据
@@ -608,6 +608,7 @@ export default {
},
// 提交领料确认
pickConfirm1() {
+ this.buttonDisable = true
for (let i = 0; i < this.pickListTable2.length; i++) {
if (this.pickListTable2[i].出库数量 !== 0) {
this.multipleSelection.push(this.pickListTable2[i].领料单明细流水号)
diff --git a/src/views/Inventory/OfflinePartOut/index.vue b/src/views/Inventory/OfflinePartOut/index.vue
index 0cd5a83a..a96987c9 100644
--- a/src/views/Inventory/OfflinePartOut/index.vue
+++ b/src/views/Inventory/OfflinePartOut/index.vue
@@ -199,7 +199,7 @@
@@ -218,6 +218,7 @@ export default {
}
}
return {
+ buttonDisable: false,
Project: [],
Machine: [],
GroupNum: [],
@@ -405,6 +406,7 @@ export default {
this.DirectNotes = []
this.selectLeaders()
this.selectDepartment()
+ this.buttonDisable = false
this.dialogFormVisible = true
},
// 重置表单
@@ -425,46 +427,48 @@ export default {
},
// 离线外购件出库
addDirectPartm() {
- if (Number(this.partnumber) < Number(this.form.DirectNumber)) {
- this.$message.error('库存不够,重输领料数量')
- } else {
- this.$refs['form'].validate((valid) => {
- if (valid) {
- if (Number(this.form.DirectNoteCode) === Number(this.form.DirectNote)) {
- for (let i = 0; i < this.departments.length; i++) {
- if (this.form.department === this.departments[i].value) {
- this.department111 = this.departments[i].label
+ if (!this.buttonDisable) {
+ if (Number(this.partnumber) < Number(this.form.DirectNumber)) {
+ this.$message.error('库存不够,重输领料数量')
+ } else {
+ this.$refs['form'].validate((valid) => {
+ if (valid) {
+ if (Number(this.form.DirectNoteCode) === Number(this.form.DirectNote)) {
+ this.buttonDisable = true
+ for (let i = 0; i < this.departments.length; i++) {
+ if (this.form.department === this.departments[i].value) {
+ this.department111 = this.departments[i].label
+ }
}
+ for (let i = 0; i < this.DirectNotes.length; i++) {
+ if (this.form.DirectNote === this.DirectNotes[i].value) {
+ this.DirectNote111 = this.DirectNotes[i].label
+ }
+ }
+ outlinePartOut(this.form.PeopleValue, this.form.DirectNumber, this.locateNumber, this.DirectNote111, this.form.ProjectValue, this.form.MachineValue, this.form.GroupNumValue, this.materialNumber, this.PeopleNumber, this.离线合同明细流水号, this.组件零件基本件流水号, this.department111).then(response => {
+ if (response.data[0].result === '1') {
+ this.$message.success('零件出库成功')
+ this.dialogFormVisible = false
+ this.searchTable1()
+ // 物料流水号查
+ outRecord(this.materialNumber, this.pageCurrent2, this.pageSize2).then(response => {
+ this.tableDataOut = response.data.rows
+ this.total2 = response.data.total
+ this.listLoading1 = false
+ })
+ } else {
+ this.$message.error('零件出库失败')
+ }
+ })
+ } else {
+ this.$message.error('人员编号错误')
}
- for (let i = 0; i < this.DirectNotes.length; i++) {
- if (this.form.DirectNote === this.DirectNotes[i].value) {
- this.DirectNote111 = this.DirectNotes[i].label
- }
- }
- console.log(this.form.PeopleValue, this.form.DirectNumber, this.locateNumber, this.DirectNote111, this.form.ProjectValue, this.form.MachineValue, this.form.GroupNumValue, this.materialNumber, this.PeopleNumber, this.离线合同明细流水号, this.组件零件基本件流水号, this.department111, 121221)
- outlinePartOut(this.form.PeopleValue, this.form.DirectNumber, this.locateNumber, this.DirectNote111, this.form.ProjectValue, this.form.MachineValue, this.form.GroupNumValue, this.materialNumber, this.PeopleNumber, this.离线合同明细流水号, this.组件零件基本件流水号, this.department111).then(response => {
- if (response.data[0].result === '1') {
- this.$message.success('零件出库成功')
- this.dialogFormVisible = false
- this.searchTable1()
- // 物料流水号查
- outRecord(this.materialNumber, this.pageCurrent2, this.pageSize2).then(response => {
- this.tableDataOut = response.data.rows
- this.total2 = response.data.total
- this.listLoading1 = false
- })
- } else {
- this.$message.error('零件出库失败')
- }
- })
} else {
- this.$message.error('人员编号错误')
+ console.log('error submit!!')
+ return false
}
- } else {
- console.log('error submit!!')
- return false
- }
- })
+ })
+ }
}
}
}
diff --git a/src/views/ManufacturingCenter/ProjectPlanningManagementNew/index.vue b/src/views/ManufacturingCenter/ProjectPlanningManagementNew/index.vue
index 7a0743bc..66fdbab5 100644
--- a/src/views/ManufacturingCenter/ProjectPlanningManagementNew/index.vue
+++ b/src/views/ManufacturingCenter/ProjectPlanningManagementNew/index.vue
@@ -36,7 +36,7 @@
-
+
@@ -122,6 +122,16 @@
+
+
+
+
+
+
+
+
+
+
@@ -527,7 +537,11 @@ export default {
this.装配完成 ? this.装配完成 : this.装配完成 = null
editTable(this.项目流水号, this.机床流水号, this.项目编号, this.设计者, this.审图开始, this.审图结束, '', this.发图完成, this.采购完成, this.备料完成, this.制造完成, this.装配完成, '', this.更新时间).then(response => {
if (response.data[0].result === '1') {
- console.log(response.data)
+ this.tableData.map(v => {
+ if (v.项目流水号 === this.项目流水号) {
+ v.项目编号 = this.项目编号
+ }
+ })
this.$message.success('保存成功')
} else {
this.$message.error('信息修改失败')
diff --git a/src/views/PurchasingCenter/InvoiceSettlementApplication/index.vue b/src/views/PurchasingCenter/InvoiceSettlementApplication/index.vue
index b24b3e77..825f1d35 100644
--- a/src/views/PurchasingCenter/InvoiceSettlementApplication/index.vue
+++ b/src/views/PurchasingCenter/InvoiceSettlementApplication/index.vue
@@ -204,7 +204,7 @@
-
+
diff --git a/src/views/PurchasingCenter/MaterialMProcure/index.vue b/src/views/PurchasingCenter/MaterialMProcure/index.vue
index 306f9195..5b67e868 100644
--- a/src/views/PurchasingCenter/MaterialMProcure/index.vue
+++ b/src/views/PurchasingCenter/MaterialMProcure/index.vue
@@ -196,18 +196,12 @@
-
-
+
+
-
+
-
+
-
+
-
+
-
+
@@ -822,12 +823,16 @@ export default {
}
},
back() {
- edit2(this.materielGroup).then(response => {
- if (response.data[0].result === '1') {
- this.$message.success('打回成功')
- this.searchTable1()
- } else { this.$message.error('打回失败') }
- })
+ if (this.materielGroup.length === 0) {
+ this.$message.warning('请勾选物料')
+ } else {
+ edit2(this.materielGroup).then(response => {
+ if (response.data[0].result === '1') {
+ this.$message.success('打回成功')
+ this.searchTable1()
+ } else { this.$message.error('打回失败') }
+ })
+ }
},
saveMateriel() { // 保存数据
this.partGroup = []
diff --git a/src/views/WorkshopProcurement/FundApproval2/index.vue b/src/views/WorkshopProcurement/FundApproval2/index.vue
index 7cd4fdd2..3ea32627 100644
--- a/src/views/WorkshopProcurement/FundApproval2/index.vue
+++ b/src/views/WorkshopProcurement/FundApproval2/index.vue
@@ -15,7 +15,7 @@
- {{ scope.row.请款金额 }}
+ {{ Number(scope.row.请款金额).toFixed(2) }}
@@ -31,7 +31,7 @@
-
+
@@ -40,7 +40,7 @@
- {{ scope.row.请款金额 }}
+ {{ Number(scope.row.请款金额).toFixed(2) }}
@@ -242,6 +242,33 @@ export default {
this.fetchData()
},
methods: {
+ // 合计
+ getSummaries(param) {
+ const { columns, data } = param
+ const sums = []
+ columns.forEach((column, index) => {
+ if (index === 0) {
+ sums[index] = '合计'
+ return
+ } else if (index === 2) {
+ const values = data.map(item => Number(item[column.property]))
+ if (!values.every(value => isNaN(value))) {
+ sums[index] = values.reduce((prev, curr) => {
+ const value = Number(curr)
+ if (!isNaN(value)) {
+ return prev + curr
+ } else {
+ return prev
+ }
+ }, 0)
+ sums[index] = sums[index].toFixed(2) + ' 元'
+ } else {
+ sums[index] = 'N/A'
+ }
+ }
+ })
+ return sums
+ },
fetchData() {
this.searchTable()
},
diff --git a/src/views/WorkshopProcurement/FundApproval3/index.vue b/src/views/WorkshopProcurement/FundApproval3/index.vue
index 29043193..483c45ae 100644
--- a/src/views/WorkshopProcurement/FundApproval3/index.vue
+++ b/src/views/WorkshopProcurement/FundApproval3/index.vue
@@ -15,7 +15,7 @@
- {{ scope.row.请款金额 }}
+ {{ Number(scope.row.请款金额).toFixed(2) }}
@@ -31,7 +31,7 @@
-
+
@@ -40,7 +40,7 @@
- {{ scope.row.请款金额 }}
+ {{ Number(scope.row.请款金额).toFixed(2) }}
@@ -252,6 +252,33 @@ export default {
this.searchTable()
},
methods: {
+ // 合计
+ getSummaries(param) {
+ const { columns, data } = param
+ const sums = []
+ columns.forEach((column, index) => {
+ if (index === 0) {
+ sums[index] = '合计'
+ return
+ } else if (index === 2) {
+ const values = data.map(item => Number(item[column.property]))
+ if (!values.every(value => isNaN(value))) {
+ sums[index] = values.reduce((prev, curr) => {
+ const value = Number(curr)
+ if (!isNaN(value)) {
+ return prev + curr
+ } else {
+ return prev
+ }
+ }, 0)
+ sums[index] = sums[index].toFixed(2) + ' 元'
+ } else {
+ sums[index] = 'N/A'
+ }
+ }
+ })
+ return sums
+ },
fetchData() {
this.searchTable()
this.searchTable2()
diff --git a/src/views/WorkshopProcurement/OfflineProcurement/index.vue b/src/views/WorkshopProcurement/OfflineProcurement/index.vue
index 50949a24..d1ed18aa 100644
--- a/src/views/WorkshopProcurement/OfflineProcurement/index.vue
+++ b/src/views/WorkshopProcurement/OfflineProcurement/index.vue
@@ -59,9 +59,15 @@
-
+
+ 计划单
+
+
+
+ 选入备料
+
-
+
查询
- 计划单
-
-
-
- 选入备料
diff --git a/src/views/WorkshopProcurement/ProcurementContractApproval/index.vue b/src/views/WorkshopProcurement/ProcurementContractApproval/index.vue
index 5382e7e5..cd23e2e9 100644
--- a/src/views/WorkshopProcurement/ProcurementContractApproval/index.vue
+++ b/src/views/WorkshopProcurement/ProcurementContractApproval/index.vue
@@ -26,7 +26,7 @@
-
+
{{ scope.row.采购合同编号 }}
@@ -330,7 +330,7 @@
-
+
@@ -479,7 +479,9 @@ export default {
})
},
Open(row) {
- console.log(row)
+ this.form2.审批是否通过 = 1
+ this.form2.未通过原因 = ''
+ this.disabled = true
this.dialogVisible3 = true
this.ProcurementContractNum = row.采购合同流水号
this.QGNUM = row.请购单流水号
diff --git a/src/views/WorkshopProcurement/ProcurementContractEnquiry/index.vue b/src/views/WorkshopProcurement/ProcurementContractEnquiry/index.vue
index c7f34ece..0bf8345d 100644
--- a/src/views/WorkshopProcurement/ProcurementContractEnquiry/index.vue
+++ b/src/views/WorkshopProcurement/ProcurementContractEnquiry/index.vue
@@ -522,9 +522,10 @@ export default {
})
},
tableRowClassName({ row, rowIndex }) {
- if (row.审批情况流水号 === '1') {
- return 'adopt'
- } else if (row.审批情况流水号 === '2') {
+ // if (row.审批情况流水号 === '1') {
+ // return 'adopt'
+ // } else
+ if (row.审批情况流水号 === '2') {
return 'NotThrough'
}
},
diff --git a/src/views/WorkshopProcurement/RequestOutsourcingMaterials/index.vue b/src/views/WorkshopProcurement/RequestOutsourcingMaterials/index.vue
index 22627d26..3865c6db 100644
--- a/src/views/WorkshopProcurement/RequestOutsourcingMaterials/index.vue
+++ b/src/views/WorkshopProcurement/RequestOutsourcingMaterials/index.vue
@@ -172,11 +172,6 @@
{{ scope.row.发票号 }}
-
-
- {{ scope.row.供应商名称 }}
-
-
{{ Number(scope.row.开票金额).toFixed(2) }}