This commit is contained in:
helloDy
2023-11-16 21:07:21 +08:00
parent 25d1ac8d90
commit 34e6a73852
16 changed files with 115 additions and 71 deletions

View File

@@ -56,6 +56,7 @@
import moment from 'moment';
import basicPageMixin from '@/mixins/lb/basicPageMixin';
import CustomDialogForm from './CustomDialogForm.vue';
import { deleteRepair } from '@/api/equipment/base/repair'
const timeFilter = (val) => moment(val).format('yyyy-MM-DD HH:mm:ss');
@@ -239,7 +240,7 @@ export default {
// 表单参数
form: {},
basePath: '/base/equipment-repair-log',
mode: null,
mode: null
};
},
created() {
@@ -375,9 +376,9 @@ export default {
handleDelete(row) {
const id = row.id;
this.$modal
.confirm('是否确认删除记录"' + row.name + '"?')
.then(function () {
return this.delete({ id });
.confirm('是否确认删除维修单号为"' + row.repairOrderNumber + '"的数据?')
.then(() => {
return deleteRepair(id);
})
.then(() => {
this.getList();
@@ -411,6 +412,7 @@ export default {
},
// 处理表格按钮
handleTableBtnClick({ data, type }) {
console.log('nihc', data, type)
switch (type) {
case 'edit':
this.handleUpdate(data);