bug
This commit is contained in:
@@ -542,13 +542,13 @@ export default {
|
||||
params.pageNo = undefined;
|
||||
params.pageSize = undefined;
|
||||
this.$modal
|
||||
.confirm('是否确认导出所有保养记录?')
|
||||
.confirm('是否确认导出所有待确认的保养记录?')
|
||||
.then(() => {
|
||||
this.exportLoading = true;
|
||||
return exportMaintainLogExcel(params);
|
||||
})
|
||||
.then((response) => {
|
||||
this.$download.excel(response, '设备保养记录.xls');
|
||||
this.$download.excel(response, '设备保养待确认记录.xls');
|
||||
this.exportLoading = false;
|
||||
})
|
||||
.catch(() => {});
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: zwq
|
||||
* @Date: 2021-11-18 14:16:25
|
||||
* @LastEditors: DY
|
||||
* @LastEditTime: 2024-02-23 15:28:46
|
||||
* @LastEditTime: 2024-02-27 10:33:31
|
||||
* @Description:
|
||||
-->
|
||||
<template>
|
||||
@@ -92,7 +92,14 @@
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="计划保养人员" prop="maintainer">
|
||||
<el-input v-model="dataForm.maintainer" style="width: 100%" :disabled="isdetail" clearable placeholder="请输入计划保养人员" />
|
||||
<el-select v-model="dataForm.maintainer" placeholder="请选择计划保养人员" style="width: 100%;" :disabled="isdetail" multiple filterable>
|
||||
<el-option
|
||||
v-for="item in personList"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.name">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -107,6 +114,7 @@
|
||||
<script>
|
||||
import basicAdd from '../../../../core/mixins/basic-add';
|
||||
// import { getCoreProductAttrPage, deleteCoreProductAttr } from "@/api/base/coreProduct";
|
||||
import { getWorkerList } from '@/api/base/worker'
|
||||
import { getCoreDepartmentList } from "@/api/base/coreDepartment";
|
||||
import { createPlan, updatePlan, getCode, getPlan } from '@/api/equipment/base/maintain/planconfig';
|
||||
import { getCorePLList } from '@/api/base/coreProductionLine';
|
||||
@@ -144,6 +152,7 @@ export default {
|
||||
},
|
||||
menuOptions: [],
|
||||
proLineList: [],
|
||||
personList: [],
|
||||
visible: false,
|
||||
isdetail: false,
|
||||
isedit: false,
|
||||
@@ -178,6 +187,9 @@ export default {
|
||||
// 产线列表
|
||||
const resline = await getCorePLList();
|
||||
this.proLineList = resline.data;
|
||||
// 保养人员
|
||||
const personres = await getWorkerList()
|
||||
this.personList = personres.data || []
|
||||
},
|
||||
getList() {
|
||||
// 获取产品属性列表
|
||||
@@ -194,7 +206,6 @@ export default {
|
||||
this.isdetail = isdetail || false;
|
||||
this.dataForm.id = id || undefined;
|
||||
this.isedit = id ? true : false;
|
||||
console.log('你好22', id)
|
||||
this.visible = true;
|
||||
// if (id) {
|
||||
// this.idAttrShow = true
|
||||
@@ -209,12 +220,6 @@ export default {
|
||||
// 获取计划详情
|
||||
this.urlOptions.infoURL({ id: this.dataForm.id }).then(response => {
|
||||
this.dataForm = response.data
|
||||
// if (this.dataForm.materialType !== undefined) {
|
||||
// this.dataForm.materialType = String(this.dataForm.materialType)
|
||||
// }
|
||||
// if (this.dataForm.productType !== undefined) {
|
||||
// this.dataForm.productType = String(this.dataForm.productType)
|
||||
// }
|
||||
});
|
||||
// 获取产品属性列表
|
||||
// this.getList();
|
||||
@@ -259,7 +264,10 @@ export default {
|
||||
}
|
||||
// 修改的提交
|
||||
if (this.dataForm.id) {
|
||||
this.urlOptions.updateURL(this.dataForm).then(response => {
|
||||
this.urlOptions.updateURL({
|
||||
...this.dataForm,
|
||||
maintainer: this.dataForm.maintainer.join(',')
|
||||
}).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.visible = false;
|
||||
this.$emit("refreshDataList");
|
||||
@@ -267,11 +275,14 @@ export default {
|
||||
return;
|
||||
}
|
||||
// 添加的提交
|
||||
this.urlOptions.createURL(this.dataForm).then(response => {
|
||||
this.urlOptions.createURL({
|
||||
...this.dataForm,
|
||||
maintainer: this.dataForm.maintainer.join(',')
|
||||
}).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
// this.idAttrShow = true
|
||||
this.dataForm.id = response.data
|
||||
// this.visible = false;
|
||||
this.visible = false;
|
||||
this.$emit("refreshDataList");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user