From 054f3aa03d197cc9e383002fb0493830f1004918 Mon Sep 17 00:00:00 2001
From: zhangdingyu <974548713@qq.com>
Date: Sat, 24 Nov 2018 08:24:05 +0800
Subject: [PATCH 1/2] zhang
---
src/api/PurchasingCenter/qrcodeGeneration.js | 0
.../Inventory/InventoryManagement/index.vue | 72 ++++++++++---------
.../OutFactoryMaintenance/index.vue | 36 ----------
.../qrcodeGeneration/index.vue | 54 --------------
4 files changed, 39 insertions(+), 123 deletions(-)
delete mode 100644 src/api/PurchasingCenter/qrcodeGeneration.js
delete mode 100644 src/views/PurchasingCenter/qrcodeGeneration/index.vue
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 3510735f..4bf1792d 100644
--- a/src/views/Inventory/InventoryManagement/index.vue
+++ b/src/views/Inventory/InventoryManagement/index.vue
@@ -45,17 +45,14 @@
{{ scope.row.领用人 }}
+
修改
-
-
-
-
+ @click="handleEdit(scope.$index, scope.row, 'form')">修改
-
-
+
+
@@ -135,6 +133,7 @@
@@ -145,6 +144,7 @@
@@ -154,6 +154,7 @@
@@ -161,10 +162,10 @@
-
-
+
+
@@ -177,6 +178,7 @@
@@ -213,7 +215,7 @@
-
+
{
this.listLoading = false
- console.log(response)
for (let i = 0; i < response.data.length; i++) {
this.tableData.push({
仓库流水号: response.data[i].仓库流水号,
@@ -302,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].人员编号
})
}
})
@@ -313,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].人员编号
})
}
})
@@ -355,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('添加成功')
@@ -375,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('添加失败')
@@ -384,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('信息更新失败')
@@ -432,7 +439,6 @@ export default {
},
// 重置表单
callOff(formName) {
- console.log(1515)
this.form = {}
this.form2.ContractNumberValue = ''
this.form2.EntryName = ''
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 @@
-
-
-
-
-
-
-
-
-