diff --git a/src/api/PurchasingCenter/qrcodeGeneration.js b/src/api/PurchasingCenter/qrcodeGeneration.js
deleted file mode 100644
index e69de29b..00000000
diff --git a/src/views/Inventory/InventoryManagement/index.vue b/src/views/Inventory/InventoryManagement/index.vue
index dbf8dfc0..474ada5e 100644
--- a/src/views/Inventory/InventoryManagement/index.vue
+++ b/src/views/Inventory/InventoryManagement/index.vue
@@ -45,13 +45,14 @@
{{ scope.row.领用人 }}
+
修改
+ @click="handleEdit(scope.$index, scope.row, 'form')">修改
-
-
+
+
@@ -131,6 +133,7 @@
@@ -141,6 +144,7 @@
@@ -150,6 +154,7 @@
@@ -157,10 +162,10 @@
-
-
+
+
@@ -173,6 +178,7 @@
@@ -209,7 +215,7 @@
-
+
{
this.listLoading = false
- console.log(response)
for (let i = 0; i < response.data.length; i++) {
this.tableData.push({
仓库流水号: response.data[i].仓库流水号,
@@ -298,8 +307,9 @@ export default {
仓库名称: response.data[i].仓库名称,
仓库描述: response.data[i].仓库描述,
地址: response.data[i].地址,
- 联系人: response.data[i].联系人,
- 备注: response.data[i].备注
+ 联系人: response.data[i].姓名,
+ 备注: response.data[i].备注,
+ 人员编号: response.data[i].人员编号
})
}
})
@@ -309,11 +319,12 @@ export default {
this.getLocate()
},
searchPeopleData() { // 查询人员
+ this.Contactpeople = []
searchPeople().then(response => {
for (let i = 0; i < response.data.length; i++) {
- this.People.push({
+ this.Contactpeople.push({
label: response.data[i].姓名,
- value: response.data[i].考勤编号
+ value: response.data[i].人员编号
})
}
})
@@ -351,19 +362,20 @@ export default {
this.form.WarehouseName = ''
this.form.WarehouseDescription = ''
this.form.Address = ''
- this.form.Contactpeople = ''
+ this.form.ContactpeopleValue = ''
this.form.Note = ''
- this.temp = null
+ this.temp = ''
} else if (this.temp === 2) {
this.chaEdit()
- this.temp = null
+ this.temp = ''
}
}
})
},
// 执行增加仓库
addTableData() {
- addWarehouse(this.form.WarehouseNumber, this.form.WarehouseName, this.form.WarehouseDescription, this.form.Address, this.PeopleValue, this.form.Note).then(response => {
+ addWarehouse(this.form.WarehouseNumber, this.form.WarehouseName, this.form.WarehouseDescription, this.form.Address, this.form.ContactpeopleValue, this.form.Note).then(response => {
+ console.log(this.form.WarehouseNumber, this.form.WarehouseName, this.form.WarehouseDescription, this.form.Address, this.form.ContactpeopleValue, this.form.Note)
this.dialogFormVisible = false
if (response.data[0].result === '1') {
this.$message.success('添加成功')
@@ -371,7 +383,7 @@ export default {
this.form.WarehouseName = ''
this.form.WarehouseDescription = ''
this.form.Address = ''
- this.form.Contactpeople = ''
+ this.form.ContactpeopleValue = ''
this.form.Note = ''
} else {
this.$message.error('添加失败')
@@ -380,29 +392,28 @@ export default {
})
},
// 编辑
- handleEdit(row) {
+ handleEdit(index, row, formName) {
+ console.log(row)
+ this.count2 = this.count2 + 1
+ if (this.count2 !== 1) {
+ this.$refs[formName].resetFields()
+ }
this.temp = 2
this.dialogFormVisible = true
this.form.WarehouseNumber = row.仓库编号
this.form.WarehouseName = row.仓库名称
this.form.WarehouseDescription = row.仓库描述
this.form.Address = row.地址
- this.form.Contactpeople = row.联系人
+ this.form.ContactpeopleValue = row.人员编号
this.form.Note = row.备注
this.HouseNumber = row.仓库流水号
},
// 执行修改
chaEdit() {
- alterWarehouse(this.HouseNumber, this.form.WarehouseNumber, this.form.WarehouseName, this.form.WarehouseDescription, this.form.Address, this.form.Contactpeople, this.form.Note).then(response => {
- this.dialogFormVisible = false
+ alterWarehouse(this.HouseNumber, this.form.WarehouseNumber, this.form.WarehouseName, this.form.WarehouseDescription, this.form.Address, this.form.ContactpeopleValue, this.form.Note).then(response => {
if (response.data[0].result === '1') {
this.$message.success('信息更新成功')
- this.form.WarehouseNumber = ''
- this.form.WarehouseName = ''
- this.form.WarehouseDescription = ''
- this.form.Address = ''
- this.form.Contactpeople = ''
- this.form.Note = ''
+ this.dialogFormVisible = false
this.getTable()
} else {
this.$message.error('信息更新失败')
@@ -428,7 +439,6 @@ export default {
},
// 重置表单
callOff(formName) {
- console.log(1515)
this.form = {}
this.form2.ContractNumberValue = ''
this.form2.EntryName = ''
diff --git a/src/views/ManufacturingCenter/ProcessAdjustQuery/index.vue b/src/views/ManufacturingCenter/ProcessAdjustQuery/index.vue
index 9c87f9a4..95da1adb 100644
--- a/src/views/ManufacturingCenter/ProcessAdjustQuery/index.vue
+++ b/src/views/ManufacturingCenter/ProcessAdjustQuery/index.vue
@@ -218,18 +218,24 @@ export default {
},
tableRowClassName2({ row }) {
for (let i = 0; i < this.tableData1.length; i++) {
+ row.工艺编号 === null ? row.工艺编号 = 0 : row.工艺编号
if (this.tableData1[i].工序流水号 === row.工序流水号 && this.tableData1[i].工艺编号 !== null) {
- if (this.tableData1[i].工艺编号 !== row.工艺编号 || this.tableData1[i].工艺要求 !== row.工艺要求 || this.tableData1[i].工艺难度等级 !== row.工艺难度等级 || this.tableData1[i].工序顺序 !== row.工序顺序) {
+ if (this.tableData1[i].工艺编号 !== row.工艺编号 || this.tableData1[i].工艺要求 !== row.工艺要求 || this.tableData1[i].工艺难度等级 !== row.工艺难度等级) {
return 'change'
+ } else {
+ return ''
}
}
}
},
tableRowClassName1({ row }) {
for (let i = 0; i < this.tableData2.length; i++) {
+ row.工艺编号 === null ? row.工艺编号 = 0 : row.工艺编号
if (this.tableData2[i].工序流水号 === row.工序流水号 && this.tableData2[i].工艺编号 !== null) {
- if (this.tableData2[i].工艺编号 !== row.工艺编号 || this.tableData2[i].工艺要求 !== row.工艺要求 || this.tableData2[i].工艺难度等级 !== row.工艺难度等级 || this.tableData2[i].工序顺序 !== row.工序顺序) {
+ if (this.tableData2[i].工艺编号 !== row.工艺编号 || this.tableData2[i].工艺要求 !== row.工艺要求 || this.tableData2[i].工艺难度等级 !== row.工艺难度等级) {
return 'change'
+ } else {
+ return ''
}
}
}
diff --git a/src/views/Outsourcing/OutFactoryMaintenance/index.vue b/src/views/Outsourcing/OutFactoryMaintenance/index.vue
index 0530e2ff..7e6600cc 100644
--- a/src/views/Outsourcing/OutFactoryMaintenance/index.vue
+++ b/src/views/Outsourcing/OutFactoryMaintenance/index.vue
@@ -52,26 +52,11 @@
{{ scope.row.设备情况 }}
-
-
-
-
-
-
-
-
-
-
{{ scope.row.备注 }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -162,15 +135,6 @@
-
-
-
-
-
-
-
-
-