diff --git a/src/views/BasicData/PersonnelManagement/index.vue b/src/views/BasicData/PersonnelManagement/index.vue index e8d75235..8fdd3e83 100644 --- a/src/views/BasicData/PersonnelManagement/index.vue +++ b/src/views/BasicData/PersonnelManagement/index.vue @@ -537,26 +537,26 @@ export default { } }, addPeople() { - this.people_title = '新增人员' - this.people_DFV = true - this.addForm('people_form') - }, - submitAddPeople() { - this.people_DFV = false if (this.id) { - addPeople(this.id, this.people_form.Sex, this.people_form.Education, this.people_form.Address, this.people_form.Nation, this.people_form.Post, this.people_form.AccountNumber, this.people_form.Password, this.people_form.Name, this.people_form.IDcard, this.people_form.TimeOfEntry, this.people_form.Birthday, this.people_form.ContactInformation).then(response => { - if (response.data[0].result === '1') { - this.i = 1 - this.handleNodeClick() - this.$message.success('添加成功') - } else { - this.$message.error('添加失败') - } - }) + this.people_title = '新增人员' + this.people_DFV = true + this.addForm('people_form') } else { this.$message.warning(`请选择部门名称`) } }, + submitAddPeople() { + this.people_DFV = false + addPeople(this.id, this.people_form.Sex, this.people_form.Education, this.people_form.Address, this.people_form.Nation, this.people_form.Post, this.people_form.AccountNumber, this.people_form.Password, this.people_form.Name, this.people_form.IDcard, this.people_form.TimeOfEntry, this.people_form.Birthday, this.people_form.ContactInformation).then(response => { + if (response.data[0].result === '1') { + this.i = 1 + this.handleNodeClick() + this.$message.success('添加成功') + } else { + this.$message.error('添加失败') + } + }) + }, handleEditPeople(row) { this.people_title = '编辑人员' this.people_DFV = true diff --git a/src/views/BasicData/WorkshopProcessMaintenance/index.vue b/src/views/BasicData/WorkshopProcessMaintenance/index.vue index c3d527b5..8d45eb2c 100644 --- a/src/views/BasicData/WorkshopProcessMaintenance/index.vue +++ b/src/views/BasicData/WorkshopProcessMaintenance/index.vue @@ -25,15 +25,15 @@ stripe tooltip-effect="dark" style="width: 100%" - height="700" - highlight-current-row - border> - + height="700"> + - + @@ -191,6 +191,7 @@ export default { data() { return { // 工艺分类所需变量 + a: '', expands: [], tableData1: [], ProcessNum: '', @@ -221,8 +222,8 @@ export default { ProcessClassification: [{ required: true, message: '请输入工艺分类名称', trigger: 'blur' }] }, rules2: { - Process: [{ required: true, message: '请输入工艺名称', trigger: 'blur' }], - ProcessShort: [{ required: true, message: '请输入工艺名称简称', trigger: 'blur' }] + Process: [{ required: true, message: '请输入工艺名称' }], + ProcessShort: [{ required: true, message: '请输入工艺名称简称' }] }, rules3: { TechnologicalRequirements: [{ required: true, message: '请输入工艺要求', trigger: 'blur' }] @@ -318,27 +319,41 @@ export default { if (valid) { if (this.temp === 1) { this.submitaddProcessClassification() - this.form1 = {} + this.form1 = { + ProcessClassification: '' + } this.temp = null } else if (this.temp === 2) { this.submitProcessClassification() - this.form1 = {} + this.form1 = { + ProcessClassification: '' + } this.temp = null } else if (this.temp === 3) { this.submitaddProcess() - this.form2 = {} + this.form2 = { + Process: '', + ProcessShort: '' + } this.temp = null } else if (this.temp === 4) { this.submiteditProcess() - this.form2 = {} + this.form2 = { + Process: '', + ProcessShort: '' + } this.temp = null } else if (this.temp === 5) { this.submitTechnologicalRequirements() - this.form3 = {} + this.form3 = { + TechnologicalRequirements: '' + } this.temp = null } else if (this.temp === 6) { this.submiteditTechnologicalRequirements() - this.form3 = {} + this.form3 = { + TechnologicalRequirements: '' + } this.temp = null } } @@ -371,9 +386,16 @@ export default { this.dialogFormVisible4 = false this.dialogFormVisible5 = false this.dialogFormVisible6 = false - this.form1 = {} - this.form2 = {} - this.form3 = {} + this.form1 = { + ProcessClassification: '' + } + this.form2 = { + Process: '', + ProcessShort: '' + } + this.form3 = { + TechnologicalRequirements: '' + } }, getCurrentRow(row) { searchProcessClassificationOfProcessClassificationNum(this.radio).then(response => { diff --git a/src/views/ManufacturingCenter/ProcessPlanning/index.vue b/src/views/ManufacturingCenter/ProcessPlanning/index.vue index 4c1c8237..89d9bb97 100644 --- a/src/views/ManufacturingCenter/ProcessPlanning/index.vue +++ b/src/views/ManufacturingCenter/ProcessPlanning/index.vue @@ -205,7 +205,7 @@ @current-change="handleCurrentChange"/> @@ -616,7 +616,9 @@ export default { result: 0, oldNum: '', newNum: '', - tableRecord: [] + tableRecord: [], + materialName2: '', + material2: '' } }, created() { @@ -635,15 +637,6 @@ export default { this.spec = '' this.batchNum = '' }, - // tableRowClassName({ row }) { - // for (let i = 0; i < this.tableRecord.length; i++) { - // if (this.tableRecord[i].工序流水号 === row.工序流水号 && this.radio === 2 && this.tableRecord[i].工艺编号 !== null) { // && this.tableRecord[i].工艺难度等级 !== null && this.tableRecord[i].工艺要求 !== null - // if (this.tableRecord[i].工艺编号 !== row.工艺编号 || this.tableRecord[i].工艺要求 !== row.工艺要求 || this.tableRecord[i].工艺难度等级 !== row.工艺难度等级 || this.tableRecord[i].工序顺序 !== row.工序顺序) { - // return 'change' - // } - // } - // } - // }, returnEdit() { // 在制零件工艺修改 if (this.partNumValue === '' || this.partNumValue === null) { this.$message.error('请选择零件') @@ -688,10 +681,17 @@ export default { } }, selectMaterial(row) { // 选择材质 + this.materialName2 = '' + this.material2 = '' + this.materialName2 = row.材料 + this.material2 = row.材料流水号 + }, + selectMaterial2() { this.materialName = '' this.material = '' - this.materialName = row.材料 - this.material = row.材料流水号 + this.materialName = this.materialName2 + this.material = this.material2 + this.dialogMaterial = false }, fetchData() { this.materialClass = [] @@ -923,10 +923,8 @@ export default { this.tableData[i].工艺难度等级 = this.tableData2[i].工艺难度等级 this.tableData[i].工艺要求 = this.tableData2[i].工艺要求 selectRequest(this.tableData[i].工序流水号, this.tableData[i].工艺计划流水号, this.tableData2[i].工艺编号, this.tableData2[i].工艺序号, this.tableData2[i].工艺要求).then(response => { - console.log('该工艺保存成功', 501) }) hardEdit(this.tableData[i].工序流水号, this.tableData2[i].工艺难度等级).then(response => { - console.log(response.data, '难度等级修改成功', 502) }) this.dialogFormVisible = false } @@ -970,7 +968,6 @@ export default { this.$message.error('请在主界面选择一个零件作为被拷贝对象') } else { gongyiCopy(this.num, this.partNumValue).then(() => { // 工艺计划流水号_完成工艺, 工艺计划流水号_被拷工艺 - console.log('已拷贝到主表', 503) this.searchDetail() }) } @@ -985,18 +982,15 @@ export default { } } gongyiYQ(this.num).then(response => { - console.log(response.data, 119) this.tableData4 = response.data }) }, hardEdit(row) { // 修改难度等级 hardEdit(row.工序流水号, row.工艺难度等级).then(response => { - console.log(response.data, '难度等级修改成功', 504) }) }, requestEdit(row) { // 修改工艺要求 requestEdit(row.工序流水号, row.工艺要求).then(response => { - console.log(response.data, '工艺要求修改成功', 505) }) }, tableSearch(index) { // 主界面工艺名称分类、工艺名称及工艺要求后续查询 @@ -1027,7 +1021,10 @@ export default { } }, cChange() { // 工艺名称分类改变 + this.processNameValue = '' this.processName = [] + this.processRequestValue = '' + this.processRequest = [] for (let i = 0; i < this.processNameClass.length; i++) { if (this.processNameClassValue === this.processNameClass[i].value) { processNameSelect(this.processSelect[i].value).then(response => { // 查询工艺名称 @@ -1042,6 +1039,7 @@ export default { } }, nChange() { // 工艺名称改变 + this.processRequestValue = '' this.processRequest = [] for (let i = 0; i < this.processName.length; i++) { if (this.processNameValue === this.processName[i].value) { @@ -1063,7 +1061,6 @@ export default { this.tableData[this.index].工艺要求 = this.str this.dialogFormVisible2 = false selectRequest(this.tableData[this.index].工序流水号, this.tableData[this.index].工艺计划流水号, this.tableData[this.index].工艺编号, this.tableData[this.index].工序顺序, this.tableData[this.index].工艺要求).then(response => { - console.log('该工艺保存成功', 506) }) }, calTol() { // 计算公差 @@ -1114,7 +1111,6 @@ export default { this.$message.error('请先选择一个零件') } else { insertOne(this.partNumValue, row.工序流水号).then(response => { - console.log(response.data, '插入成功', 507) this.searchDetail() }) } @@ -1145,7 +1141,6 @@ export default { this.$message.error('请先选择一个零件') } else { upOne(this.partNumValue, row.工序流水号).then(response => { - console.log(response.data, '上移成功', 508) this.searchDetail() }) } @@ -1155,7 +1150,6 @@ export default { this.$message.error('请先选择一个零件') } else { downOne(this.partNumValue, row.工序流水号).then(response => { - console.log(response.data, '下移成功', 509) this.searchDetail() }) } @@ -1198,7 +1192,6 @@ export default { }).then(() => { for (let i = 0; i < 30; i++) { hardEdit(this.tableData[i].工序流水号, '').then(response => { - console.log(response.data, '清空难度等级', 510) }) } deleteTable(this.newNum).then(response => { diff --git a/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue b/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue index 83b8b0f1..c3a6fafa 100644 --- a/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue +++ b/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue @@ -8,7 +8,7 @@ - +