+
工艺拷贝
-
+
{
for (let i = 0; i < response.data.length; i++) {
this.GroupNumber.push({
label: response.data[i].组号,
- value: response.data[i].组号
+ value: response.data[i].组件流水号
})
}
})
@@ -670,37 +669,55 @@ export default {
},
handleAdd() {
if (this.machineNumberValue !== '') {
- // this.title = '增加组件工艺'
- this.addForm('form2', [this.dialogFormVisible4 = true, this.title = '增加组件工艺', this.Group = ''])
+ this.addForm('form2', [this.dialogFormVisible4 = true, this.title = '增加组件工艺', this.Group = '', this.GroupNumberValue1 = ''])
} else {
this.$message.warning('请先选择机床编号')
}
},
handleEdit(row, formName) {
- console.log(this.$refs[formName])
if (this.$refs[formName] !== undefined) {
this.$refs[formName].resetFields()
}
- // this.editForm(row, 'form2', [this.title = '编辑组件工艺', this.GroupProcessNumber = row.组件工艺流水号, this.dialogFormVisible4 = true, this.Group = '', this.form2.组件 = []])
+ this.GroupProcessNumber = row.组件工艺流水号
+ this.GroupNumberValue1 = ''
this.title = '编辑组件工艺'
this.dialogFormVisible4 = true
this.form2.序号 = row.序号
this.form2.装配任务 = row.装配任务
this.Group = ''
- this.form2.组件 = []
- this.GroupProcessNumber = row.组件工艺流水号
+ console.log(row, 1111)
+ this.form2.组件 = (row.组件流水号.split(',')).map(Number)
+ console.log(this.form2.组件)
},
submitAdd() {
- for (var i = 0; i < this.form2.组件.length; i++) {
+ this.GroupNumberValue1 = this.form2.组件[0]
+ for (let h = 1; h < this.form2.组件.length; h++) {
+ this.GroupNumberValue1 += ',' + this.form2.组件[h]
+ }
+ for (let i = 0; i < this.form2.组件.length; i++) {
+ for (let j = 0; j < this.GroupNumber.length; j++) {
+ if (this.form2.组件[i] === this.GroupNumber[j].value) {
+ this.form2.组件[i] = this.GroupNumber[j].label
+ }
+ }
this.Group += this.form2.组件[i] + '组 '
}
- this.addTable(submitAdd, [this.machineNumberValue, this.form2.序号, this.Group, this.form2.装配任务], 'form2', function() { this.dialogFormVisible4 = false; this.searchDetail() })
+ this.addTable(submitAdd, [this.machineNumberValue, this.form2.序号, this.Group, this.form2.装配任务, this.GroupNumberValue1], 'form2', function() { this.dialogFormVisible4 = false; this.searchDetail() })
},
submitEdit() {
- for (var i = 0; i < this.form2.组件.length; i++) {
+ this.GroupNumberValue1 = this.form2.组件[0]
+ for (let h = 1; h < this.form2.组件.length; h++) {
+ this.GroupNumberValue1 += ',' + this.form2.组件[h]
+ }
+ for (let i = 0; i < this.form2.组件.length; i++) {
+ for (let j = 0; j < this.GroupNumber.length; j++) {
+ if (this.form2.组件[i] === this.GroupNumber[j].value) {
+ this.form2.组件[i] = this.GroupNumber[j].label
+ }
+ }
this.Group += this.form2.组件[i] + '组 '
}
- this.editTable(submitEdit, [this.GroupProcessNumber, this.form2.序号, this.Group, this.form2.装配任务], 'form2', function() { this.searchDetail(); this.dialogFormVisible4 = false })
+ this.editTable(submitEdit, [this.GroupProcessNumber, this.form2.序号, this.Group, this.form2.装配任务, this.GroupNumberValue1], 'form2', function() { this.searchDetail(); this.dialogFormVisible4 = false })
},
deleteGroup(row) {
this.$confirm('此操作将永久删除该行, 是否继续?', '提示', {
diff --git a/src/views/Assembly/PrintingAssemblyProcessCard/index.vue b/src/views/Assembly/PrintingAssemblyProcessCard/index.vue
index 08164f7a..cb92e4b8 100644
--- a/src/views/Assembly/PrintingAssemblyProcessCard/index.vue
+++ b/src/views/Assembly/PrintingAssemblyProcessCard/index.vue
@@ -99,8 +99,8 @@
| {{ list.工艺内容及装配具体要求 }} |
{{ list.质检 }} |
{{ list.工时 }} |
- {{ list.完成情况 }} |
- {{ list.检验情况 }} |
+ {{ list.装配员 }} |
+ {{ list.检验员 }} |
{{ list.备注 }} |
diff --git a/src/views/Assembly/TypicalAssemblyMaintenance/index.vue b/src/views/Assembly/TypicalAssemblyMaintenance/index.vue
new file mode 100644
index 00000000..423324e9
--- /dev/null
+++ b/src/views/Assembly/TypicalAssemblyMaintenance/index.vue
@@ -0,0 +1,477 @@
+
+
+
+
+ 机床分类:
+
+
+
+ 机床编号:
+
+
+
+ 查询
+ 增加
+ 删除
+
+
+
+
+
+
+ {{ scope.row.序号 }}
+
+
+
+
+ {{ scope.row.组号 }}
+
+
+
+
+ {{ scope.row.装配任务 }}
+
+
+
+
+ 编辑
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 确定选择
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/Inventory/PickingList/index.vue b/src/views/Inventory/PickingList/index.vue
index 2ab5ffb1..91df82e9 100644
--- a/src/views/Inventory/PickingList/index.vue
+++ b/src/views/Inventory/PickingList/index.vue
@@ -23,8 +23,8 @@
{{ scope.row.领料单编号 }}
-
-
+
+
{{ scope.row.领料时间 }}
@@ -336,37 +336,37 @@
-
-
+
+
-
+
-
-
+
+
-
+
-
+
@@ -381,7 +381,7 @@
-
+
@@ -508,7 +508,8 @@ export default {
tableDataHouse: [],
listLoadingx: '',
purchaseDetailNum: '',
- dialogFormVisibleWork: false
+ dialogFormVisibleWork: false,
+ time: []
}
},
computed: {
@@ -617,9 +618,13 @@ export default {
searchListinfor() {
this.listLoading2 = true
searchList(this.PageCurrent2, this.PageSize2, this.pickingListNumber).then(response => {
+ for (let i = 0; i < response.data.rows.length; i++) {
+ response.data.rows[i].领料时间 = response.data.rows[i].领料时间.substring(0, response.data.rows[i].领料时间.length - 8)
+ }
this.tableData1 = response.data.rows
this.listLoading2 = false
this.total2 = response.data.total
+ console.log(response)
})
},
handleSizeChange2(val) {
@@ -723,21 +728,25 @@ export default {
this.materialNumber = row.零件图号
console.log(this.receive, 41645)
},
- addBasicListDetail() {
+ addBasicListDetail(formName) {
if (this.pickingListNumberx === '') {
this.$message.error('请选择领料单')
} if (this.form.OutNumber === '') {
this.$message.error('请输入领用数量')
}
- addListDetail(this.pickingListNumberx, this.partProjectNumber, this.partMachineNumber, this.partGroupNumber, this.partProjectName, this.partMachineName, this.partGroupName, this.materialName, this.materialType, this.materialNumber, this.form.OutNumber, this.partType, this.form.outNote, this.craftplannumber, this.receive, this.teamPart, this.locatenumber).then(response => {
- if (response.data[0].result === '1') {
- this.$message.success('增加成功')
- } else {
- this.$message.error('增加失败')
+ this.$refs[formName].validate((valid) => {
+ if (valid) {
+ addListDetail(this.pickingListNumberx, this.partProjectNumber, this.partMachineNumber, this.partGroupNumber, this.partProjectName, this.partMachineName, this.partGroupName, this.materialName, this.materialType, this.materialNumber, this.form.OutNumber, this.partType, this.form.outNote, this.craftplannumber, this.receive, this.teamPart, this.locatenumber).then(response => {
+ if (response.data[0].result === '1') {
+ this.$message.success('增加成功')
+ } else {
+ this.$message.error('增加失败')
+ }
+ })
+ this.dialogFormVisible1 = false
+ this.searchListinfor()
}
})
- this.dialogFormVisible1 = false
- this.searchListinfor()
},
// 增加外购件领料单明细
addListDetailinfor(row) {
@@ -759,22 +768,26 @@ export default {
this.dialogFormVisible = true
this.purchaseDetailNum = row.采购合同明细流水号
},
- execaddListDetail() {
+ execaddListDetail(formName) {
if (this.pickingListNumberx === '') {
this.$message.error('请选择领料单')
} else if (this.OutNumber === '') {
this.$message.error('请输入领用数量')
} else {
- addListDetail(this.pickingListNumberx, this.partProjectNumber, this.partMachineNumber, this.partGroupNumber, this.partProjectName, this.partMachineName, this.partGroupName, this.materialName, this.materialType, this.materialNumber, this.form.OutNumber, this.partType, this.form.outNote, this.craftplannumber, this.receive, this.teamPart, this.locatenumber).then(response => {
- if (response.data[0].result === '1') {
- this.$message.success('增加成功')
- } else {
- this.$message.error('增加失败')
+ this.$refs[formName].validate((valid) => {
+ if (valid) {
+ addListDetail(this.pickingListNumberx, this.partProjectNumber, this.partMachineNumber, this.partGroupNumber, this.partProjectName, this.partMachineName, this.partGroupName, this.materialName, this.materialType, this.materialNumber, this.form.OutNumber, this.partType, this.form.outNote, this.craftplannumber, this.receive, this.teamPart, this.locatenumber).then(response => {
+ if (response.data[0].result === '1') {
+ this.$message.success('增加成功')
+ } else {
+ this.$message.error('增加失败')
+ }
+ })
}
})
+ this.dialogFormVisible = false
+ this.searchListinfor()
}
- this.dialogFormVisible = false
- this.searchListinfor()
},
// 增加车间采购领料单明细
addWorkshopDetailinfor(row) {
diff --git a/src/views/ManufacturingCenter/GroupMatching/index.vue b/src/views/ManufacturingCenter/GroupMatching/index.vue
index a5e4c68d..5058e5b8 100644
--- a/src/views/ManufacturingCenter/GroupMatching/index.vue
+++ b/src/views/ManufacturingCenter/GroupMatching/index.vue
@@ -4,13 +4,11 @@
项目名称:
机床号:
-
+
组号:
-
+
年:
-
提交
+
@@ -202,7 +202,9 @@
@size-change="handleSizeChange3"
@current-change="handleCurrentChange3"/>
- 提交
+
@@ -238,7 +240,6 @@ export default {
title: '',
dialogFormVisible2: false,
dialogFormVisible3: false,
- List: [],
check: null,
check1: null,
check2: null,
@@ -289,8 +290,6 @@ export default {
}
},
created() {
- },
- mounted() {
this.getList()
},
methods: {
@@ -346,30 +345,15 @@ export default {
}
},
getList() { // 初始化项目名称
- this.list = []
initProject().then(response => {
for (let i = 0; i < response.data.length; i++) {
- this.list.push({
+ this.entryName.push({
label: response.data[i].项目名称,
value: response.data[i].项目流水号
})
}
})
},
- remoteMethod(query) {
- if (query !== '') {
- setTimeout(() => {
- this.entryName = this.list.filter(item => {
- if (item.label !== null) {
- return item.label.toLowerCase()
- .indexOf(query.toLowerCase()) > -1
- }
- })
- }, 1000)
- } else {
- this.entryName = []
- }
- },
empty() {
this.machineToolNumber = ''
this.groupNumber = ''
diff --git a/src/views/ManufacturingCenter/PartAssignment/index.vue b/src/views/ManufacturingCenter/PartAssignment/index.vue
index 39201f1e..f1babfd4 100644
--- a/src/views/ManufacturingCenter/PartAssignment/index.vue
+++ b/src/views/ManufacturingCenter/PartAssignment/index.vue
@@ -299,7 +299,7 @@
style="width:200px"/>
-
+
{
+ for (let i = 0; i < response.data.length; i++) {
+ console.log(response.data[i].请购时间)
+ if (response.data[i].请购时间 !== '') {
+ response.data[i].请购时间 = (response.data[i].请购时间).split(' ')[0]
+ }
+ }
this.tableData4 = response.data
})
},
diff --git a/src/views/ManufacturingCenter/StatusQuery/index.vue b/src/views/ManufacturingCenter/StatusQuery/index.vue
index b2ff8692..7182108a 100644
--- a/src/views/ManufacturingCenter/StatusQuery/index.vue
+++ b/src/views/ManufacturingCenter/StatusQuery/index.vue
@@ -5,13 +5,11 @@
项目名称:
机床号:
-
+
组号:
-
+
零件号:
@@ -187,7 +185,9 @@
@size-change="handleSizeChange1"
@current-change="handleCurrentChange1"/>
-