+
工艺拷贝
-
+
{
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/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/ManufacturingCenter/GroupMatching/index.vue b/src/views/ManufacturingCenter/GroupMatching/index.vue
index a5e4c68d..aa1b7500 100644
--- a/src/views/ManufacturingCenter/GroupMatching/index.vue
+++ b/src/views/ManufacturingCenter/GroupMatching/index.vue
@@ -19,9 +19,9 @@
:value="item.value"/>
机床号:
-
+
组号:
-
+
年:
-
提交
+
@@ -202,7 +204,9 @@
@size-change="handleSizeChange3"
@current-change="handleCurrentChange3"/>
- 提交
+
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..4cefe297 100644
--- a/src/views/ManufacturingCenter/StatusQuery/index.vue
+++ b/src/views/ManufacturingCenter/StatusQuery/index.vue
@@ -20,9 +20,9 @@
:value="item.value"/>
机床号:
-
+
组号:
-
+
零件号:
@@ -187,7 +187,9 @@
@size-change="handleSizeChange1"
@current-change="handleCurrentChange1"/>
-