diff --git a/src/views/ManufacturingCenter/ProcessTaskAssignment/index.vue b/src/views/ManufacturingCenter/ProcessTaskAssignment/index.vue
index fbc24b80..1c54d590 100644
--- a/src/views/ManufacturingCenter/ProcessTaskAssignment/index.vue
+++ b/src/views/ManufacturingCenter/ProcessTaskAssignment/index.vue
@@ -19,8 +19,8 @@
:value="item.value"/>
全选
- 保存
- 通用件保存
+ 保存
+ 通用件保存
@@ -79,6 +79,31 @@
@current-change="handleCurrentChange"/>
+
+
+
+
+
+ {{ scope.row.工序顺序 }}
+
+
+
+
+ {{ scope.row.工艺名称 }}
+
+
+
+
+ {{ scope.row.单件定额工时 }}
+
+
+
+
+ {{ scope.row.准结定额工时 }}
+
+
+
+
@@ -88,8 +113,6 @@ import { getGraphNum, getGroupNum, getTable, save, save2, initPerson, selectTech
export default {
data() {
return {
- num1: '', // 工艺员中间变量
- num2: '', // 工艺员流水号中间变量
loading: false,
loading0: false,
projectNameValue: '',
@@ -100,11 +123,10 @@ export default {
GroupNum: [],
tableData: [],
dialogFormVisible: false,
+ title: '',
tableData2: [],
- dialogPerson: '',
index: '',
multipleSelection: [],
- result: 0,
PageCurrent: 1,
PageSize: 50,
total: 0,
@@ -123,7 +145,6 @@ export default {
// 初始化工艺员
initPerson() {
initPerson().then(response => {
- this.tableData2 = response.data
for (let i = 0; i < response.data.length; i++) {
this.Craftsmens.push({
label: response.data[i].姓名,
@@ -194,11 +215,12 @@ export default {
}
},
rowClick(row) {
+ this.tableData2 = []
selectTechnology(row.零件图号, row.规格).then(response => {
if (response.data[0].结果 === 1) {
- console.log(1)
- } else {
- console.log(0)
+ this.title = response.data[0].机床图号
+ this.tableData2 = response.data
+ this.dialogFormVisible = true
}
})
},
@@ -219,6 +241,7 @@ export default {
} else { this.$message.error('请在第一行中填写工艺员姓名') }
},
save() {
+ this.loading = true
this.工艺计划流水号组 = []
this.通用件图号 = []
this.工艺员 = []
@@ -236,8 +259,10 @@ export default {
this.$message.success('保存成功')
this.PageCurrent = 1
this.getTable()
+ this.loading = false
})
} else {
+ this.loading = false
this.$message.error('请选择工艺员')
}
},
@@ -246,6 +271,7 @@ export default {
if (this.multipleSelection.length === 0) {
this.$message.error('请先选择零件')
} else {
+ this.loading = true
this.工艺计划流水号组 = []
this.通用件图号 = []
this.通用件规格 = []
@@ -261,20 +287,24 @@ export default {
this.工艺员.push(v.工艺员)
})
if (check === 1) {
+ console.log(this.工艺计划流水号组, this.通用件图号, this.通用件规格, this.工艺员)
save2(this.工艺计划流水号组, this.通用件图号, this.通用件规格, this.工艺员).then(response => {
if (response.data[0].结果 === 'success') {
this.$message.success('保存成功')
this.PageCurrent = 1
this.getTable()
+ this.loading = false
} else {
var messages = []
messages = response.data[0].结果.split('||||')
messages.shift()
this.$message.error(`图号${messages}无已完成工艺`)
+ this.loading = false
}
})
} else {
this.$message.error('请选择工艺员')
+ this.loading = false
}
}
},