parent
afd0584776
commit
064f432117
18 changed files with 3452 additions and 5028 deletions
@ -0,0 +1,5 @@ |
||||
@saber:registry=https://center.javablade.com/api/packages/blade/npm/ |
||||
//center.javablade.com/api/packages/blade/npm/:_authToken=ea2747473ebc1c0887ec9604fd4c565a4a5f3ecf |
||||
@nutflow:registry=https://git.nutflow.vip/api/packages/blade-workflow/npm/ |
||||
//git.nutflow.vip/api/packages/blade-workflow/npm/:_authToken=ee821016f7aa7257a448b7548e30f011676727a0 |
||||
|
||||
@ -0,0 +1,45 @@ |
||||
import request from '@/axios'; |
||||
|
||||
// 获取列表数据 bsCraftAbility/queryAllCa
|
||||
export const getList = (current, size, params) => { |
||||
return request({ |
||||
url: '/blade-desk/dsMainSaltAddQuantity/list', |
||||
method: 'get', |
||||
params: { |
||||
...params, |
||||
current, |
||||
size, |
||||
}, |
||||
}); |
||||
}; |
||||
|
||||
// 保存
|
||||
export const add = row => { |
||||
return request({ |
||||
url: '/blade-desk/dsMainSaltAddQuantity/save', |
||||
method: 'post', |
||||
data: row, |
||||
}); |
||||
}; |
||||
|
||||
|
||||
|
||||
// 修改
|
||||
export const update = row => { |
||||
return request({ |
||||
url: '/blade-desk/dsMainSaltAddQuantity/update', |
||||
method: 'post', |
||||
data: row, |
||||
}); |
||||
}; |
||||
|
||||
// 删除
|
||||
export const remove = ids => { |
||||
return request({ |
||||
url: '/blade-desk/dsMainSaltAddQuantity/remove', |
||||
method: 'post', |
||||
params: { |
||||
ids, |
||||
}, |
||||
}); |
||||
}; |
||||
@ -0,0 +1,31 @@ |
||||
import request from '@/axios'; |
||||
|
||||
// 获取列表数据 bsCraftAbility/queryAllCa
|
||||
export const getList = (current, size, params) => { |
||||
return request({ |
||||
url: '/blade-desk/dsBatchPreserveTask/list', |
||||
method: 'get', |
||||
params: { |
||||
...params, |
||||
current, |
||||
size, |
||||
}, |
||||
}); |
||||
}; |
||||
|
||||
// 批量维护
|
||||
export const dsBatchTask = row => { |
||||
return request({ |
||||
url: '/blade-desk/dsBatchPreserveTask/update', |
||||
method: 'post', |
||||
data: row, |
||||
}); |
||||
}; |
||||
// 批量审核
|
||||
export const dsBatchReview = row => { |
||||
return request({ |
||||
url: '/blade-desk/dsBatchPreserveTask/update', |
||||
method: 'post', |
||||
data: row, |
||||
}); |
||||
}; |
||||
@ -0,0 +1,15 @@ |
||||
import request from '@/axios'; |
||||
|
||||
// 获取列表数据 bsCraftAbility/queryAllCa
|
||||
export const getList = (current, size, params) => { |
||||
return request({ |
||||
url: '/blade-desk/dsTaskBill/list', |
||||
method: 'get', |
||||
params: { |
||||
...params, |
||||
current, |
||||
size, |
||||
}, |
||||
}); |
||||
}; |
||||
|
||||
@ -0,0 +1,45 @@ |
||||
import request from '@/axios'; |
||||
|
||||
// 获取列表数据 bsCraftAbility/queryAllCa
|
||||
export const getList = (current, size, params) => { |
||||
return request({ |
||||
url: '/blade-desk/dsBatchPreservePlan/list', |
||||
method: 'get', |
||||
params: { |
||||
...params, |
||||
current, |
||||
size, |
||||
}, |
||||
}); |
||||
}; |
||||
|
||||
// 保存
|
||||
export const add = row => { |
||||
return request({ |
||||
url: '/blade-desk/dsBatchPreservePlan/save', |
||||
method: 'post', |
||||
data: row, |
||||
}); |
||||
}; |
||||
|
||||
|
||||
|
||||
// 修改
|
||||
export const update = row => { |
||||
return request({ |
||||
url: '/blade-desk/dsBatchPreservePlan/update', |
||||
method: 'post', |
||||
data: row, |
||||
}); |
||||
}; |
||||
|
||||
// 删除
|
||||
export const remove = ids => { |
||||
return request({ |
||||
url: '/blade-desk/dsBatchPreservePlan/remove', |
||||
method: 'post', |
||||
params: { |
||||
ids, |
||||
}, |
||||
}); |
||||
}; |
||||
@ -0,0 +1,56 @@ |
||||
import request from '@/axios'; |
||||
|
||||
// 获取列表数据 bsCraftAbility/queryAllCa
|
||||
export const getList = (current, size, params) => { |
||||
return request({ |
||||
url: '/blade-desk/dsSimilarParts/list', |
||||
method: 'get', |
||||
params: { |
||||
...params, |
||||
current, |
||||
size, |
||||
}, |
||||
}); |
||||
}; |
||||
|
||||
// 保存
|
||||
export const add = row => { |
||||
return request({ |
||||
url: '/blade-desk/dsSimilarParts/save', |
||||
method: 'post', |
||||
data: row, |
||||
}); |
||||
}; |
||||
|
||||
|
||||
|
||||
// 修改
|
||||
export const update = row => { |
||||
return request({ |
||||
url: '/blade-desk/dsSimilarParts/update', |
||||
method: 'post', |
||||
data: row, |
||||
}); |
||||
}; |
||||
|
||||
// 删除
|
||||
export const remove = ids => { |
||||
return request({ |
||||
url: '/blade-desk/dsSimilarParts/remove', |
||||
method: 'post', |
||||
params: { |
||||
ids, |
||||
}, |
||||
}); |
||||
}; |
||||
|
||||
// 详情
|
||||
export const getDetail = Id => { |
||||
return request({ |
||||
url: '/blade-desk/dsSimilarParts/detail', |
||||
method: 'get', |
||||
params: { |
||||
Id, |
||||
}, |
||||
}); |
||||
}; |
||||
@ -0,0 +1,56 @@ |
||||
import request from '@/axios'; |
||||
|
||||
// 获取列表数据 bsCraftAbility/queryAllCa
|
||||
export const getList = (current, size, params) => { |
||||
return request({ |
||||
url: '/blade-desk/dsBatchWorkCenterSet/list', |
||||
method: 'get', |
||||
params: { |
||||
...params, |
||||
current, |
||||
size, |
||||
}, |
||||
}); |
||||
}; |
||||
|
||||
// 保存
|
||||
export const add = row => { |
||||
return request({ |
||||
url: '/blade-desk/dsBatchWorkCenterSet/save', |
||||
method: 'post', |
||||
data: row, |
||||
}); |
||||
}; |
||||
|
||||
|
||||
|
||||
// 修改
|
||||
export const update = row => { |
||||
return request({ |
||||
url: '/blade-desk/dsBatchWorkCenterSet/update', |
||||
method: 'post', |
||||
data: row, |
||||
}); |
||||
}; |
||||
|
||||
// 删除
|
||||
export const remove = ids => { |
||||
return request({ |
||||
url: '/blade-desk/dsBatchWorkCenterSet/remove', |
||||
method: 'post', |
||||
params: { |
||||
ids, |
||||
}, |
||||
}); |
||||
}; |
||||
|
||||
// 详情
|
||||
export const getDetail = Id => { |
||||
return request({ |
||||
url: '/blade-desk/dsSimilarParts/detail', |
||||
method: 'get', |
||||
params: { |
||||
Id, |
||||
}, |
||||
}); |
||||
}; |
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,744 +1,229 @@ |
||||
<template> |
||||
<basic-container> |
||||
<!-- 确认人员配置 --> |
||||
<avue-crud :option="option" :table-loading="loading" :data="data" v-model="form" v-model:page="page" ref="crud" |
||||
@row-update="rowUpdate" @row-save="rowSave" @search-change="searchChange" @search-reset="searchReset" |
||||
@selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" |
||||
@refresh-change="refreshChange" @on-load="onLoad" @row-del="rowDel"> |
||||
</avue-crud> |
||||
</basic-container> |
||||
<basic-container> |
||||
<!-- 确认人员配置 --> |
||||
<avue-crud |
||||
:option="option" |
||||
:table-loading="loading" |
||||
:data="data" |
||||
v-model="form" |
||||
v-model:page="page" |
||||
ref="crud" |
||||
@row-update="rowUpdate" |
||||
@row-save="rowSave" |
||||
@search-change="searchChange" |
||||
@search-reset="searchReset" |
||||
@selection-change="selectionChange" |
||||
@current-change="currentChange" |
||||
@size-change="sizeChange" |
||||
@refresh-change="refreshChange" |
||||
@on-load="onLoad" |
||||
@row-del="rowDel" |
||||
@rowSave="rowSave" |
||||
@rowUpdate="rowUpdate" |
||||
> |
||||
</avue-crud> |
||||
</basic-container> |
||||
</template> |
||||
<script> |
||||
import { getList, add, remove, update } from '@/api/processManagement/workCenterDevice.js'; |
||||
|
||||
export default { |
||||
data() { |
||||
return { |
||||
loading: false, |
||||
data: [], |
||||
form: {}, |
||||
page: { |
||||
pageSize: 10, |
||||
currentPage: 1, |
||||
total: 0, |
||||
data() { |
||||
return { |
||||
loading: false, |
||||
data: [], |
||||
form: {}, |
||||
page: { |
||||
pageSize: 10, |
||||
currentPage: 1, |
||||
total: 0, |
||||
}, |
||||
option: { |
||||
height: 'auto', |
||||
calcHeight: 32, |
||||
rowKey: 'twlId', |
||||
tip: false, |
||||
size: 'medium', |
||||
simplePage: true, |
||||
searchShow: true, |
||||
searchMenuSpan: 18, |
||||
searchIcon: true, |
||||
searchIndex: 3, |
||||
tree: false, |
||||
border: true, |
||||
index: true, |
||||
selection: false, |
||||
viewBtn: false, |
||||
delBtn: true, |
||||
addBtn: true, |
||||
editBtn: true, |
||||
editBtnText: '修改', |
||||
addBtnIcon: ' ', |
||||
viewBtnIcon: ' ', |
||||
delBtnIcon: ' ', |
||||
editBtnIcon: ' ', |
||||
viewBtnText: '详情', |
||||
labelWidth: 120, |
||||
searchLabelWidth: 120, |
||||
menu: true, |
||||
menuWidth: 140, |
||||
dialogWidth: 1200, |
||||
dialogClickModal: false, |
||||
searchEnter: true, |
||||
excelBtn: false, |
||||
filterBtn: true, |
||||
searchShowBtn: false, |
||||
columnSort: true, |
||||
excelBtn: true, |
||||
columnSort: true, |
||||
showOverflowTooltip: true, |
||||
menuAlign: 'left', |
||||
gridBtn: false, |
||||
searchLabelPosition: 'left', |
||||
searchGutter: 24, |
||||
searchSpan: 6, |
||||
searchMenuPosition: 'right', |
||||
align: 'center', |
||||
|
||||
column: [ |
||||
{ |
||||
label: '作业中心', |
||||
prop: 'wcId', |
||||
type: 'select', |
||||
search: true, |
||||
sortable: true, |
||||
overHidden: true, |
||||
headerAlign: 'center', |
||||
align: 'left', |
||||
searchLabelWidth: 80, |
||||
rules: [ |
||||
{ |
||||
required: true, |
||||
message: '请输入作业中心', |
||||
trigger: 'blur', |
||||
}, |
||||
], |
||||
props: { |
||||
label: 'wcName', |
||||
value: 'wcId', |
||||
}, |
||||
option: { |
||||
height: 'auto', |
||||
calcHeight: 32, |
||||
rowKey: 'twlId', |
||||
tip: false, |
||||
size: 'medium', |
||||
simplePage: true, |
||||
searchShow: true, |
||||
searchMenuSpan: 18, |
||||
searchIcon: true, |
||||
searchIndex: 3, |
||||
tree: false, |
||||
border: true, |
||||
index: true, |
||||
selection: false, |
||||
viewBtn: false, |
||||
delBtn: true, |
||||
addBtn: true, |
||||
editBtn: true, |
||||
editBtnText: '修改', |
||||
addBtnIcon:' ', |
||||
viewBtnIcon:' ', |
||||
delBtnIcon:' ', |
||||
editBtnIcon:' ', |
||||
viewBtnText: '详情', |
||||
labelWidth: 120, |
||||
searchLabelWidth: 120, |
||||
menu: true, |
||||
menuWidth: 140, |
||||
dialogWidth: 1200, |
||||
dialogClickModal: false, |
||||
searchEnter: true, |
||||
excelBtn: false, |
||||
filterBtn: true, |
||||
searchShowBtn: false, |
||||
columnSort: true, |
||||
excelBtn: true, |
||||
columnSort: true, |
||||
showOverflowTooltip: true, |
||||
menuAlign: 'left', |
||||
gridBtn:false, |
||||
searchLabelPosition: 'left', |
||||
searchGutter: 24, |
||||
searchSpan: 6, |
||||
searchMenuPosition:'right', |
||||
align: 'center', |
||||
|
||||
column: [ |
||||
{ |
||||
label: '作业中心', |
||||
prop: 'wcName', |
||||
type: 'select', |
||||
bind: 'bsWorkCenter.wcId', |
||||
search: true, |
||||
sortable: true, |
||||
overHidden: true, |
||||
headerAlign: 'center', |
||||
align: 'left', |
||||
searchLabelWidth: 80, |
||||
rules: [ |
||||
{ |
||||
required: true, |
||||
message: '请输入作业中心', |
||||
trigger: 'blur', |
||||
}, |
||||
], |
||||
props: { |
||||
label: 'wcName', |
||||
value: 'wcId' |
||||
}, |
||||
dicData: [ |
||||
{ |
||||
"area": 13000.0, |
||||
"batchNo": null, |
||||
"bigBatch": false, |
||||
"bsJfCenter": { |
||||
"createMan": { |
||||
"accountId": null, |
||||
"card": null, |
||||
"createTime": "2022-08-31", |
||||
"curStatus": 1, |
||||
"deleted": false, |
||||
"deptName": null, |
||||
"dimissionTime": null, |
||||
"factoryId": 41, |
||||
"head": 0, |
||||
"jobName": "总工", |
||||
"keyValue": 1, |
||||
"ldapName": "admin", |
||||
"mail": "13699999999@136.com", |
||||
"mobile": "13699999999", |
||||
"pfDepartment": { |
||||
"appLink": null, |
||||
"createTime": "2022-08-31", |
||||
"deleted": false, |
||||
"deptCode": "001", |
||||
"deptId": 1, |
||||
"deptName": "MES开发部", |
||||
"deptType": 1, |
||||
"deptTypeTitle": "厂", |
||||
"keyValue": 1, |
||||
"memo": null, |
||||
"orders": "00", |
||||
"parentDeptId": null, |
||||
"parentPath": null, |
||||
"ucDeptId": null, |
||||
"updateTime": "2022-08-31 16:32:46" |
||||
}, |
||||
"pinyinIndex": "ADMIN,ADMIN", |
||||
"ucUserId": null, |
||||
"updateTime": "2022-08-31 16:32:46", |
||||
"userCode": "00", |
||||
"userId": 1, |
||||
"userName": "admin", |
||||
"userSex": 1, |
||||
"userSources": "admin", |
||||
"userString": "1:A:admin", |
||||
"userType": "A" |
||||
}, |
||||
"createTime": "2024-12-09 00:00:00", |
||||
"deleted": false, |
||||
"jcCode": "RBZX", |
||||
"jcId": 1, |
||||
"jcName": "热表中心", |
||||
"keyValue": 1, |
||||
"updateTime": "2024-12-09 00:00:00" |
||||
}, |
||||
"checkout": false, |
||||
"craftAbility": "化学镀镍", |
||||
"createMan": { |
||||
"accountId": null, |
||||
"card": null, |
||||
"createTime": "2022-08-31", |
||||
"curStatus": 1, |
||||
"deleted": false, |
||||
"deptName": null, |
||||
"dimissionTime": null, |
||||
"factoryId": 41, |
||||
"head": 0, |
||||
"jobName": "总工", |
||||
"keyValue": 1, |
||||
"ldapName": "admin", |
||||
"mail": "13699999999@136.com", |
||||
"mobile": "13699999999", |
||||
"pfDepartment": { |
||||
"appLink": null, |
||||
"createTime": "2022-08-31", |
||||
"deleted": false, |
||||
"deptCode": "001", |
||||
"deptId": 1, |
||||
"deptName": "MES开发部", |
||||
"deptType": 1, |
||||
"deptTypeTitle": "厂", |
||||
"keyValue": 1, |
||||
"memo": null, |
||||
"orders": "00", |
||||
"parentDeptId": null, |
||||
"parentPath": null, |
||||
"ucDeptId": null, |
||||
"updateTime": "2022-08-31 16:32:46" |
||||
}, |
||||
"pinyinIndex": "ADMIN,ADMIN", |
||||
"ucUserId": null, |
||||
"updateTime": "2022-08-31 16:32:46", |
||||
"userCode": "00", |
||||
"userId": 1, |
||||
"userName": "admin", |
||||
"userSex": 1, |
||||
"userSources": "admin", |
||||
"userString": "1:A:admin", |
||||
"userType": "A" |
||||
}, |
||||
"createTime": "2023-02-06 12:31:36", |
||||
"deleted": false, |
||||
"describe": null, |
||||
"endPoint": null, |
||||
"keyValue": 81, |
||||
"leaderUser": { |
||||
"accountId": 541, |
||||
"card": null, |
||||
"createTime": "2023-05-04", |
||||
"curStatus": 1, |
||||
"deleted": false, |
||||
"deptName": null, |
||||
"dimissionTime": null, |
||||
"factoryId": 102, |
||||
"head": 0, |
||||
"jobName": "MES开发", |
||||
"keyValue": 541, |
||||
"ldapName": "cdl", |
||||
"mail": null, |
||||
"mobile": null, |
||||
"pfDepartment": { |
||||
"appLink": null, |
||||
"createTime": "2022-08-31", |
||||
"deleted": false, |
||||
"deptCode": "001", |
||||
"deptId": 1, |
||||
"deptName": "MES开发部", |
||||
"deptType": 1, |
||||
"deptTypeTitle": "厂", |
||||
"keyValue": 1, |
||||
"memo": null, |
||||
"orders": "00", |
||||
"parentDeptId": null, |
||||
"parentPath": null, |
||||
"ucDeptId": null, |
||||
"updateTime": "2022-08-31 16:32:46" |
||||
}, |
||||
"pinyinIndex": "CUIDIANLONG,CDL", |
||||
"ucUserId": null, |
||||
"updateTime": "2023-05-04 09:16:54", |
||||
"userCode": "cdl", |
||||
"userId": 541, |
||||
"userName": "崔殿龙", |
||||
"userSex": 1, |
||||
"userSources": "崔殿龙", |
||||
"userString": "541:A:崔殿龙", |
||||
"userType": "A" |
||||
}, |
||||
"limitType": 0, |
||||
"processes": "上挂、下挂、交检、化学镀镍、喷砂", |
||||
"quantity": null, |
||||
"roundCycle": null, |
||||
"saturation": 85.0, |
||||
"sign": "4", |
||||
"startPoint": null, |
||||
"team": "化学镀镍一班崔胜伟、化学镀镍一班郭家梁", |
||||
"updateTime": "2023-03-06 18:42:47", |
||||
"wcCode": "001", |
||||
"wcId": 81, |
||||
"wcName": "化学镀镍作业中心", |
||||
"whetherPlate": false |
||||
}, |
||||
{ |
||||
"area": 0.0, |
||||
"batchNo": null, |
||||
"bigBatch": false, |
||||
"bsJfCenter": { |
||||
"createMan": { |
||||
"accountId": null, |
||||
"card": null, |
||||
"createTime": "2022-08-31", |
||||
"curStatus": 1, |
||||
"deleted": false, |
||||
"deptName": null, |
||||
"dimissionTime": null, |
||||
"factoryId": 41, |
||||
"head": 0, |
||||
"jobName": "总工", |
||||
"keyValue": 1, |
||||
"ldapName": "admin", |
||||
"mail": "13699999999@136.com", |
||||
"mobile": "13699999999", |
||||
"pfDepartment": { |
||||
"appLink": null, |
||||
"createTime": "2022-08-31", |
||||
"deleted": false, |
||||
"deptCode": "001", |
||||
"deptId": 1, |
||||
"deptName": "MES开发部", |
||||
"deptType": 1, |
||||
"deptTypeTitle": "厂", |
||||
"keyValue": 1, |
||||
"memo": null, |
||||
"orders": "00", |
||||
"parentDeptId": null, |
||||
"parentPath": null, |
||||
"ucDeptId": null, |
||||
"updateTime": "2022-08-31 16:32:46" |
||||
}, |
||||
"pinyinIndex": "ADMIN,ADMIN", |
||||
"ucUserId": null, |
||||
"updateTime": "2022-08-31 16:32:46", |
||||
"userCode": "00", |
||||
"userId": 1, |
||||
"userName": "admin", |
||||
"userSex": 1, |
||||
"userSources": "admin", |
||||
"userString": "1:A:admin", |
||||
"userType": "A" |
||||
}, |
||||
"createTime": "2024-12-09 00:00:00", |
||||
"deleted": false, |
||||
"jcCode": "RBZX", |
||||
"jcId": 1, |
||||
"jcName": "热表中心", |
||||
"keyValue": 1, |
||||
"updateTime": "2024-12-09 00:00:00" |
||||
}, |
||||
"checkout": false, |
||||
"craftAbility": "镀后接收", |
||||
"createMan": { |
||||
"accountId": null, |
||||
"card": null, |
||||
"createTime": "2022-08-31", |
||||
"curStatus": 1, |
||||
"deleted": false, |
||||
"deptName": null, |
||||
"dimissionTime": null, |
||||
"factoryId": 41, |
||||
"head": 0, |
||||
"jobName": "总工", |
||||
"keyValue": 1, |
||||
"ldapName": "admin", |
||||
"mail": "13699999999@136.com", |
||||
"mobile": "13699999999", |
||||
"pfDepartment": { |
||||
"appLink": null, |
||||
"createTime": "2022-08-31", |
||||
"deleted": false, |
||||
"deptCode": "001", |
||||
"deptId": 1, |
||||
"deptName": "MES开发部", |
||||
"deptType": 1, |
||||
"deptTypeTitle": "厂", |
||||
"keyValue": 1, |
||||
"memo": null, |
||||
"orders": "00", |
||||
"parentDeptId": null, |
||||
"parentPath": null, |
||||
"ucDeptId": null, |
||||
"updateTime": "2022-08-31 16:32:46" |
||||
}, |
||||
"pinyinIndex": "ADMIN,ADMIN", |
||||
"ucUserId": null, |
||||
"updateTime": "2022-08-31 16:32:46", |
||||
"userCode": "00", |
||||
"userId": 1, |
||||
"userName": "admin", |
||||
"userSex": 1, |
||||
"userSources": "admin", |
||||
"userString": "1:A:admin", |
||||
"userType": "A" |
||||
}, |
||||
"createTime": "2023-02-06 12:48:41", |
||||
"deleted": false, |
||||
"describe": null, |
||||
"endPoint": null, |
||||
"keyValue": 85, |
||||
"leaderUser": { |
||||
"accountId": 541, |
||||
"card": null, |
||||
"createTime": "2023-05-04", |
||||
"curStatus": 1, |
||||
"deleted": false, |
||||
"deptName": null, |
||||
"dimissionTime": null, |
||||
"factoryId": 102, |
||||
"head": 0, |
||||
"jobName": "MES开发", |
||||
"keyValue": 541, |
||||
"ldapName": "cdl", |
||||
"mail": null, |
||||
"mobile": null, |
||||
"pfDepartment": { |
||||
"appLink": null, |
||||
"createTime": "2022-08-31", |
||||
"deleted": false, |
||||
"deptCode": "001", |
||||
"deptId": 1, |
||||
"deptName": "MES开发部", |
||||
"deptType": 1, |
||||
"deptTypeTitle": "厂", |
||||
"keyValue": 1, |
||||
"memo": null, |
||||
"orders": "00", |
||||
"parentDeptId": null, |
||||
"parentPath": null, |
||||
"ucDeptId": null, |
||||
"updateTime": "2022-08-31 16:32:46" |
||||
}, |
||||
"pinyinIndex": "CUIDIANLONG,CDL", |
||||
"ucUserId": null, |
||||
"updateTime": "2023-05-04 09:16:54", |
||||
"userCode": "cdl", |
||||
"userId": 541, |
||||
"userName": "崔殿龙", |
||||
"userSex": 1, |
||||
"userSources": "崔殿龙", |
||||
"userString": "541:A:崔殿龙", |
||||
"userType": "A" |
||||
}, |
||||
"limitType": 0, |
||||
"processes": "镀后接收", |
||||
"quantity": null, |
||||
"roundCycle": null, |
||||
"saturation": null, |
||||
"sign": "4", |
||||
"startPoint": null, |
||||
"team": "零件管理班", |
||||
"updateTime": "2023-03-06 18:23:20", |
||||
"wcCode": "004", |
||||
"wcId": 85, |
||||
"wcName": "镀后库作业中心", |
||||
"whetherPlate": true |
||||
}, |
||||
{ |
||||
"area": 0.0, |
||||
"batchNo": null, |
||||
"bigBatch": false, |
||||
"bsJfCenter": { |
||||
"createMan": { |
||||
"accountId": null, |
||||
"card": null, |
||||
"createTime": "2022-08-31", |
||||
"curStatus": 1, |
||||
"deleted": false, |
||||
"deptName": null, |
||||
"dimissionTime": null, |
||||
"factoryId": 41, |
||||
"head": 0, |
||||
"jobName": "总工", |
||||
"keyValue": 1, |
||||
"ldapName": "admin", |
||||
"mail": "13699999999@136.com", |
||||
"mobile": "13699999999", |
||||
"pfDepartment": { |
||||
"appLink": null, |
||||
"createTime": "2022-08-31", |
||||
"deleted": false, |
||||
"deptCode": "001", |
||||
"deptId": 1, |
||||
"deptName": "MES开发部", |
||||
"deptType": 1, |
||||
"deptTypeTitle": "厂", |
||||
"keyValue": 1, |
||||
"memo": null, |
||||
"orders": "00", |
||||
"parentDeptId": null, |
||||
"parentPath": null, |
||||
"ucDeptId": null, |
||||
"updateTime": "2022-08-31 16:32:46" |
||||
}, |
||||
"pinyinIndex": "ADMIN,ADMIN", |
||||
"ucUserId": null, |
||||
"updateTime": "2022-08-31 16:32:46", |
||||
"userCode": "00", |
||||
"userId": 1, |
||||
"userName": "admin", |
||||
"userSex": 1, |
||||
"userSources": "admin", |
||||
"userString": "1:A:admin", |
||||
"userType": "A" |
||||
}, |
||||
"createTime": "2024-12-09 00:00:00", |
||||
"deleted": false, |
||||
"jcCode": "RBZX", |
||||
"jcId": 1, |
||||
"jcName": "热表中心", |
||||
"keyValue": 1, |
||||
"updateTime": "2024-12-09 00:00:00" |
||||
}, |
||||
"checkout": true, |
||||
"craftAbility": "镀后检验", |
||||
"createMan": { |
||||
"accountId": null, |
||||
"card": null, |
||||
"createTime": "2022-08-31", |
||||
"curStatus": 1, |
||||
"deleted": false, |
||||
"deptName": null, |
||||
"dimissionTime": null, |
||||
"factoryId": 41, |
||||
"head": 0, |
||||
"jobName": "总工", |
||||
"keyValue": 1, |
||||
"ldapName": "admin", |
||||
"mail": "13699999999@136.com", |
||||
"mobile": "13699999999", |
||||
"pfDepartment": { |
||||
"appLink": null, |
||||
"createTime": "2022-08-31", |
||||
"deleted": false, |
||||
"deptCode": "001", |
||||
"deptId": 1, |
||||
"deptName": "MES开发部", |
||||
"deptType": 1, |
||||
"deptTypeTitle": "厂", |
||||
"keyValue": 1, |
||||
"memo": null, |
||||
"orders": "00", |
||||
"parentDeptId": null, |
||||
"parentPath": null, |
||||
"ucDeptId": null, |
||||
"updateTime": "2022-08-31 16:32:46" |
||||
}, |
||||
"pinyinIndex": "ADMIN,ADMIN", |
||||
"ucUserId": null, |
||||
"updateTime": "2022-08-31 16:32:46", |
||||
"userCode": "00", |
||||
"userId": 1, |
||||
"userName": "admin", |
||||
"userSex": 1, |
||||
"userSources": "admin", |
||||
"userString": "1:A:admin", |
||||
"userType": "A" |
||||
}, |
||||
"createTime": "2023-02-06 12:49:33", |
||||
"deleted": false, |
||||
"describe": null, |
||||
"endPoint": null, |
||||
"keyValue": 86, |
||||
"leaderUser": { |
||||
"accountId": 541, |
||||
"card": null, |
||||
"createTime": "2023-05-04", |
||||
"curStatus": 1, |
||||
"deleted": false, |
||||
"deptName": null, |
||||
"dimissionTime": null, |
||||
"factoryId": 102, |
||||
"head": 0, |
||||
"jobName": "MES开发", |
||||
"keyValue": 541, |
||||
"ldapName": "cdl", |
||||
"mail": null, |
||||
"mobile": null, |
||||
"pfDepartment": { |
||||
"appLink": null, |
||||
"createTime": "2022-08-31", |
||||
"deleted": false, |
||||
"deptCode": "001", |
||||
"deptId": 1, |
||||
"deptName": "MES开发部", |
||||
"deptType": 1, |
||||
"deptTypeTitle": "厂", |
||||
"keyValue": 1, |
||||
"memo": null, |
||||
"orders": "00", |
||||
"parentDeptId": null, |
||||
"parentPath": null, |
||||
"ucDeptId": null, |
||||
"updateTime": "2022-08-31 16:32:46" |
||||
}, |
||||
"pinyinIndex": "CUIDIANLONG,CDL", |
||||
"ucUserId": null, |
||||
"updateTime": "2023-05-04 09:16:54", |
||||
"userCode": "cdl", |
||||
"userId": 541, |
||||
"userName": "崔殿龙", |
||||
"userSex": 1, |
||||
"userSources": "崔殿龙", |
||||
"userString": "541:A:崔殿龙", |
||||
"userType": "A" |
||||
}, |
||||
"limitType": 0, |
||||
"processes": "镀后检验、性能检测、镀后自检外观检验、镀后自检尺寸检验", |
||||
"quantity": null, |
||||
"roundCycle": null, |
||||
"saturation": null, |
||||
"sign": "4", |
||||
"startPoint": null, |
||||
"team": "检验班", |
||||
"updateTime": "2023-06-06 15:07:27", |
||||
"wcCode": "005", |
||||
"wcId": 86, |
||||
"wcName": "检验作业中心", |
||||
"whetherPlate": false |
||||
}, |
||||
] |
||||
}, |
||||
|
||||
{ |
||||
label: '工艺员', |
||||
prop: 'craftName', |
||||
type: 'select', |
||||
multiple: true, |
||||
search: false, |
||||
sortable: true, |
||||
overHidden: true, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
rules: [ |
||||
{ |
||||
required: true, |
||||
message: '请输入工艺员', |
||||
trigger: 'blur', |
||||
}, |
||||
], |
||||
props:{ |
||||
label:'userName', |
||||
value:'userId' |
||||
}, |
||||
dicData: [ |
||||
{ |
||||
"jobName": "生产调度员", |
||||
"deptName": "外协业务交付管理室", |
||||
"ldapName": "00188", |
||||
"userSex": 0, |
||||
"deptId": 65, |
||||
"mobile": null, |
||||
"userName": "00188", |
||||
"userId": 441, |
||||
"userCode": "00188" |
||||
}, { |
||||
"jobName": "表面处理工", |
||||
"deptName": "复合镍班", |
||||
"ldapName": "00460", |
||||
"userSex": 1, |
||||
"deptId": 69, |
||||
"mobile": null, |
||||
"userName": "00460", |
||||
"userId": 224, |
||||
"userCode": "00460" |
||||
}, { |
||||
"jobName": "保管员", |
||||
"deptName": "零件管理班", |
||||
"ldapName": "00660", |
||||
"userSex": 0, |
||||
"deptId": 46, |
||||
"mobile": null, |
||||
"userName": "00660", |
||||
"userId": 322, |
||||
"userCode": "00660" |
||||
}, |
||||
] |
||||
}, |
||||
{ |
||||
label: '维护人', |
||||
prop: 'craftName', |
||||
search: false, |
||||
sortable: true, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
display:false, |
||||
}, |
||||
{ |
||||
label: '维护时间', |
||||
prop: 'craftName', |
||||
search: false, |
||||
sortable: true, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
display:false, |
||||
} |
||||
] |
||||
} |
||||
} |
||||
}, |
||||
mounted() { |
||||
}, |
||||
|
||||
{ |
||||
label: '工艺员', |
||||
prop: 'craftManName', |
||||
type: 'select', |
||||
multiple: true, |
||||
search: false, |
||||
sortable: true, |
||||
overHidden: true, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
rules: [ |
||||
{ |
||||
required: true, |
||||
message: '请输入工艺员', |
||||
trigger: 'blur', |
||||
}, |
||||
], |
||||
props: { |
||||
label: 'userName', |
||||
value: 'userId', |
||||
}, |
||||
}, |
||||
{ |
||||
label: '维护人', |
||||
prop: 'keepMan', |
||||
search: false, |
||||
sortable: true, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
display: false, |
||||
}, |
||||
{ |
||||
label: '维护时间', |
||||
prop: 'craftkeepTimeName', |
||||
search: false, |
||||
sortable: true, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
display: false, |
||||
}, |
||||
], |
||||
}, |
||||
}; |
||||
}, |
||||
mounted() {}, |
||||
methods: { |
||||
rowDel(row) { |
||||
this.$confirm('确定将选择数据删除?', { |
||||
confirmButtonText: '确定', |
||||
cancelButtonText: '取消', |
||||
type: 'warning', |
||||
}).then(res => { |
||||
return remove(row.id); |
||||
}); |
||||
}, |
||||
methods: { |
||||
rowDel(row) { |
||||
this.$confirm('确定将选择数据删除?', { |
||||
confirmButtonText: '确定', |
||||
cancelButtonText: '取消', |
||||
type: 'warning', |
||||
}).then(res =>{ |
||||
|
||||
}) |
||||
}, |
||||
rowSave(row, done, loading) { |
||||
done() |
||||
}, |
||||
rowUpdate(row, index, done, loading) { |
||||
done() |
||||
}, |
||||
searchReset() { |
||||
this.query = {}; |
||||
this.onLoad(this.page); |
||||
}, |
||||
searchChange(params, done) { |
||||
// this.query = params; |
||||
// this.page.currentPage = 1; |
||||
// this.onLoad(this.page, params); |
||||
done(); |
||||
}, |
||||
currentChange(currentPage) { |
||||
this.page.currentPage = currentPage; |
||||
rowSave(row, done, loading) { |
||||
add(row).then( |
||||
() => { |
||||
this.onLoad(this.page); |
||||
this.$message({ |
||||
type: 'success', |
||||
message: '操作成功!', |
||||
}); |
||||
done(); |
||||
}, |
||||
sizeChange(pageSize) { |
||||
this.page.pageSize = pageSize; |
||||
}, |
||||
refreshChange() { |
||||
this.onLoad(this.page, this.query); |
||||
error => { |
||||
window.console.log(error); |
||||
loading(); |
||||
} |
||||
); |
||||
}, |
||||
rowUpdate(row, index, done, loading) { |
||||
update(row).then( |
||||
() => { |
||||
this.onLoad(this.page); |
||||
this.$message({ |
||||
type: 'success', |
||||
message: '操作成功!', |
||||
}); |
||||
done(); |
||||
}, |
||||
onLoad() { |
||||
this.data = [ |
||||
{ |
||||
"bsWorkCenter": { |
||||
"wcId": 81, |
||||
"wcName": "化学镀镍作业中心" |
||||
}, |
||||
"bscsId": 4, |
||||
"craftManId": "[1,541]", |
||||
"craftManName": "[\"admin\",\"崔殿龙\"]", |
||||
"craftName": "admin,崔殿龙", |
||||
"deEquipmentCard": { |
||||
"bindQty": 4, |
||||
"categorys": "产线设备", |
||||
"deviceCode": "9652247", |
||||
"deviceIp": null, |
||||
"deviceName": "化学镀镍", |
||||
"docking": true, |
||||
"ecId": 1, |
||||
"keyValue": 1, |
||||
"macCode": "9652247", |
||||
"macSpec": null, |
||||
"memo": null, |
||||
"rfId": "SYM-HCP-L4", |
||||
"status": true, |
||||
"typeName": "9652247", |
||||
"updateTime": null, |
||||
"used": 1, |
||||
"usedText": "正常服役", |
||||
"virtualMac": false |
||||
}, |
||||
"keepMan": { |
||||
"userId": 541, |
||||
"userName": "崔殿龙" |
||||
}, |
||||
"keepTime": "2024-04-08 17:00:37", |
||||
"keyValue": 4 |
||||
} |
||||
] |
||||
this.page.total = this.data.length |
||||
error => { |
||||
window.console.log(error); |
||||
loading(); |
||||
} |
||||
} |
||||
} |
||||
</script> |
||||
); |
||||
}, |
||||
searchReset() { |
||||
this.query = {}; |
||||
this.onLoad(this.page); |
||||
}, |
||||
searchChange(params, done) { |
||||
// this.query = params; |
||||
// this.page.currentPage = 1; |
||||
// this.onLoad(this.page, params); |
||||
done(); |
||||
}, |
||||
currentChange(currentPage) { |
||||
this.page.currentPage = currentPage; |
||||
}, |
||||
sizeChange(pageSize) { |
||||
this.page.pageSize = pageSize; |
||||
}, |
||||
refreshChange() { |
||||
this.onLoad(this.page, this.query); |
||||
}, |
||||
onLoad(page, params = {}) { |
||||
this.loading = true; |
||||
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
||||
this.data = res.data.data.records; |
||||
this.loading = false; |
||||
this.page.total = res.data.data.total; |
||||
this.selectionClear(); |
||||
}); |
||||
}, |
||||
}, |
||||
}; |
||||
</script> |
||||
|
||||
@ -1,230 +1,226 @@ |
||||
<template> |
||||
<basic-container> |
||||
<avue-crud :option="option" :table-loading="loading" :data="data" v-model="form" v-model:page="page" ref="crud" |
||||
@row-del="rowDel" @search-change="searchChange" @search-reset="searchReset" |
||||
@selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" |
||||
@refresh-change="refreshChange" @on-load="onLoad"> |
||||
<template #menu-left> |
||||
<!-- <el-button type="primary" icon="el-icon-plus" @click="handleDelete">申报 |
||||
<basic-container> |
||||
<avue-crud |
||||
:option="option" |
||||
:table-loading="loading" |
||||
:data="data" |
||||
v-model="form" |
||||
v-model:page="page" |
||||
ref="crud" |
||||
@row-del="rowDel" |
||||
@search-change="searchChange" |
||||
@search-reset="searchReset" |
||||
@selection-change="selectionChange" |
||||
@current-change="currentChange" |
||||
@size-change="sizeChange" |
||||
@refresh-change="refreshChange" |
||||
@on-load="onLoad" |
||||
> |
||||
<template #menu-left> |
||||
<!-- <el-button type="primary" icon="el-icon-plus" @click="handleDelete">申报 |
||||
</el-button> --> |
||||
</template> |
||||
<template #menu-right> |
||||
|
||||
|
||||
|
||||
</template> |
||||
<template #menu="scope"> |
||||
|
||||
<el-button type="primary" @click="handleImport">处理 |
||||
</el-button> |
||||
</template> |
||||
|
||||
</avue-crud> |
||||
</basic-container> |
||||
</template> |
||||
<template #menu-right> </template> |
||||
<template #menu="scope"> |
||||
<el-button type="primary" @click="handleImport">处理 </el-button> |
||||
</template> |
||||
</avue-crud> |
||||
</basic-container> |
||||
</template> |
||||
<script> |
||||
import { getList } from '@/api/processManagement/planClass.js'; |
||||
export default { |
||||
data() { |
||||
return { |
||||
selectionList: [], |
||||
option: { |
||||
height: 'auto', |
||||
calcHeight: 32, |
||||
tip: false, |
||||
size: 'medium', |
||||
simplePage: true, |
||||
searchShow: true, |
||||
searchMenuSpan: 6, |
||||
searchIcon: true, |
||||
searchIndex: 3, |
||||
tree: false, |
||||
border: true, |
||||
index: true, |
||||
selection: false, |
||||
viewBtn: false, |
||||
delBtn: true, |
||||
addBtn: false, |
||||
editBtnText: '修改', |
||||
addBtnIcon: ' ', |
||||
viewBtnIcon: ' ', |
||||
delBtnIcon: ' ', |
||||
editBtnIcon: ' ', |
||||
viewBtnText: '详情', |
||||
labelWidth: 120, |
||||
menuWidth: 180, |
||||
dialogWidth: 1040, |
||||
dialogClickModal: false, |
||||
searchEnter: true, |
||||
excelBtn: false, |
||||
filterBtn: true, |
||||
searchShowBtn: false, |
||||
columnSort: true, |
||||
excelBtn: true, |
||||
columnSort: true, |
||||
showOverflowTooltip: true, |
||||
menuAlign: 'left', |
||||
gridBtn:false, |
||||
searchLabelPosition: 'left', |
||||
searchGutter: 24, |
||||
searchSpan: 6, |
||||
searchMenuPosition:'right', |
||||
align: 'center', |
||||
column: [ |
||||
{ |
||||
label: '作业中心', |
||||
prop: 'tbCode', |
||||
sortable: true, |
||||
filter: true, |
||||
span: 12, |
||||
search: true, |
||||
display: false, |
||||
headerAlign: 'center', |
||||
align: 'left', |
||||
type:'select', |
||||
hide:true, |
||||
dicData:[ |
||||
{ |
||||
label:'作业中心1', |
||||
value:1 |
||||
}, |
||||
{ |
||||
label:'作业中心2', |
||||
value:2 |
||||
}, |
||||
] |
||||
}, |
||||
{ |
||||
label: '任务号', |
||||
prop: 'tbCode', |
||||
sortable: true, |
||||
filter: true, |
||||
span: 12, |
||||
search: false, |
||||
display: false, |
||||
headerAlign: 'center', |
||||
align: 'left', |
||||
searchLabelWidth: 60, |
||||
}, |
||||
{ |
||||
label: '产线', |
||||
prop: 'bsWorkCenter.wcName', |
||||
search: true, |
||||
sortable: true, |
||||
filter: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'left', |
||||
searchLabelWidth: 45, |
||||
|
||||
}, |
||||
{ |
||||
label: '确认编号', |
||||
prop: 'condition', |
||||
search: false, |
||||
sortable: true, |
||||
filter: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'left', |
||||
|
||||
}, |
||||
{ |
||||
label: '确认到期日期', |
||||
prop: 'lastTime', |
||||
search: false, |
||||
sortable: true, |
||||
filter: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
|
||||
}, |
||||
{ |
||||
label: '提醒天数', |
||||
prop: 'remDays', |
||||
search: false, |
||||
sortable: true, |
||||
filter: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
}, |
||||
{ |
||||
label: '工艺员', |
||||
prop: 'proMan.userName', |
||||
bind: 'proMan.userName', |
||||
search: false, |
||||
sortable: true, |
||||
filter: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
searchLabelWidth: 60, |
||||
|
||||
}, |
||||
{ |
||||
label: '备注', |
||||
prop: 'memo', |
||||
search: false, |
||||
sortable: true, |
||||
filter: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'left', |
||||
|
||||
}, |
||||
{ |
||||
label: '状态', |
||||
prop: 'tbStatusTitle', |
||||
search: true, |
||||
sortable: true, |
||||
filter: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
} |
||||
|
||||
] |
||||
}, |
||||
form: { |
||||
|
||||
}, |
||||
page: { |
||||
pageSize: 10, |
||||
currentPage: 1, |
||||
total: 0, |
||||
}, |
||||
} |
||||
data() { |
||||
return { |
||||
selectionList: [], |
||||
loading: false, |
||||
option: { |
||||
height: 'auto', |
||||
calcHeight: 32, |
||||
tip: false, |
||||
size: 'medium', |
||||
simplePage: true, |
||||
searchShow: true, |
||||
searchMenuSpan: 6, |
||||
searchIcon: true, |
||||
searchIndex: 3, |
||||
tree: false, |
||||
border: true, |
||||
index: true, |
||||
selection: false, |
||||
viewBtn: false, |
||||
delBtn: true, |
||||
addBtn: false, |
||||
editBtnText: '修改', |
||||
addBtnIcon: ' ', |
||||
viewBtnIcon: ' ', |
||||
delBtnIcon: ' ', |
||||
editBtnIcon: ' ', |
||||
viewBtnText: '详情', |
||||
labelWidth: 120, |
||||
menuWidth: 180, |
||||
dialogWidth: 1040, |
||||
dialogClickModal: false, |
||||
searchEnter: true, |
||||
excelBtn: false, |
||||
filterBtn: true, |
||||
searchShowBtn: false, |
||||
columnSort: true, |
||||
excelBtn: true, |
||||
columnSort: true, |
||||
showOverflowTooltip: true, |
||||
menuAlign: 'left', |
||||
gridBtn: false, |
||||
searchLabelPosition: 'left', |
||||
searchGutter: 24, |
||||
searchSpan: 6, |
||||
searchMenuPosition: 'right', |
||||
align: 'center', |
||||
column: [ |
||||
{ |
||||
label: '作业中心', |
||||
prop: 'tbCode', |
||||
sortable: true, |
||||
filter: true, |
||||
span: 12, |
||||
search: true, |
||||
display: false, |
||||
headerAlign: 'center', |
||||
align: 'left', |
||||
type: 'select', |
||||
hide: true, |
||||
dicData: [ |
||||
{ |
||||
label: '作业中心1', |
||||
value: 1, |
||||
}, |
||||
{ |
||||
label: '作业中心2', |
||||
value: 2, |
||||
}, |
||||
], |
||||
}, |
||||
{ |
||||
label: '任务号', |
||||
prop: 'tbCode', |
||||
sortable: true, |
||||
filter: true, |
||||
span: 12, |
||||
search: false, |
||||
display: false, |
||||
headerAlign: 'center', |
||||
align: 'left', |
||||
searchLabelWidth: 60, |
||||
}, |
||||
{ |
||||
label: '产线', |
||||
prop: 'bsWorkCenter.wcName', |
||||
search: true, |
||||
sortable: true, |
||||
filter: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'left', |
||||
searchLabelWidth: 45, |
||||
}, |
||||
{ |
||||
label: '确认编号', |
||||
prop: 'condition', |
||||
search: false, |
||||
sortable: true, |
||||
filter: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'left', |
||||
}, |
||||
{ |
||||
label: '确认到期日期', |
||||
prop: 'lastTime', |
||||
search: false, |
||||
sortable: true, |
||||
filter: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
}, |
||||
{ |
||||
label: '提醒天数', |
||||
prop: 'remDays', |
||||
search: false, |
||||
sortable: true, |
||||
filter: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
}, |
||||
{ |
||||
label: '工艺员', |
||||
prop: 'proMan.userName', |
||||
bind: 'proMan.userName', |
||||
search: false, |
||||
sortable: true, |
||||
filter: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
searchLabelWidth: 60, |
||||
}, |
||||
{ |
||||
label: '备注', |
||||
prop: 'memo', |
||||
search: false, |
||||
sortable: true, |
||||
filter: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'left', |
||||
}, |
||||
{ |
||||
label: '状态', |
||||
prop: 'tbStatusTitle', |
||||
search: true, |
||||
sortable: true, |
||||
filter: true, |
||||
span: 12, |
||||
headerAlign: 'center', |
||||
align: 'center', |
||||
}, |
||||
], |
||||
}, |
||||
form: {}, |
||||
page: { |
||||
pageSize: 10, |
||||
currentPage: 1, |
||||
total: 0, |
||||
}, |
||||
}; |
||||
}, |
||||
methods: { |
||||
handleDelete() { |
||||
if (this.selectionList.length === 0) { |
||||
this.$message.warning('请选择至少一条数据'); |
||||
return; |
||||
} |
||||
this.$confirm('确定将选择数据删除?', { |
||||
confirmButtonText: '确定', |
||||
cancelButtonText: '取消', |
||||
type: 'warning', |
||||
}).then(() => {}); |
||||
}, |
||||
methods: { |
||||
handleDelete() { |
||||
if (this.selectionList.length === 0) { |
||||
this.$message.warning('请选择至少一条数据'); |
||||
return; |
||||
} |
||||
this.$confirm('确定将选择数据删除?', { |
||||
confirmButtonText: '确定', |
||||
cancelButtonText: '取消', |
||||
type: 'warning', |
||||
}).then(() => { |
||||
}) |
||||
}, |
||||
// 多选 |
||||
selectionChange(list) { |
||||
this.selectionList = list; |
||||
}, |
||||
onLoad() { |
||||
this.loading = true |
||||
this.data = [ |
||||
|
||||
] |
||||
this.page.total = this.data.length |
||||
this.loading = false |
||||
setTimeout(() => { |
||||
this.selectionClear() |
||||
}, 500) |
||||
} |
||||
} |
||||
} |
||||
// 多选 |
||||
selectionChange(list) { |
||||
this.selectionList = list; |
||||
}, |
||||
onLoad(page, params = {}) { |
||||
this.loading = true; |
||||
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
||||
this.data = res.data.data.records; |
||||
this.loading = false; |
||||
this.page.total = res.data.data.total; |
||||
this.selectionClear(); |
||||
}); |
||||
}, |
||||
}, |
||||
}; |
||||
</script> |
||||
<style lang="scss" scoped></style> |
||||
<style lang="scss" scoped></style> |
||||
|
||||
Loading…
Reference in new issue