diff --git a/src/api/basic/basicdataPda.js b/src/api/basic/basicdataPda.js new file mode 100644 index 0000000..76f0579 --- /dev/null +++ b/src/api/basic/basicdataPda.js @@ -0,0 +1,50 @@ +import request from '@/router/axios'; + +export const getList = (current, size, params) => { + return request({ + url: '/api/logpm-basic/pda/list', + method: 'get', + params: { + ...params, + current, + size, + } + }) +} + +export const getDetail = (id) => { + return request({ + url: '/api/logpm-basic/pda/detail', + method: 'get', + params: { + id + } + }) +} + +export const remove = (ids) => { + return request({ + url: '/api/logpm-basic/pda/remove', + method: 'post', + params: { + ids, + } + }) +} + +export const add = (row) => { + return request({ + url: '/api/logpm-basic/pda/submit', + method: 'post', + data: row + }) +} + +export const update = (row) => { + return request({ + url: '/api/logpm-basic/pda/submit', + method: 'post', + data: row + }) +} + diff --git a/src/option/basic/basicdataPda.js b/src/option/basic/basicdataPda.js new file mode 100644 index 0000000..fd9bcd0 --- /dev/null +++ b/src/option/basic/basicdataPda.js @@ -0,0 +1,162 @@ +export default { + size: 'small', + expand: false, + index: true, + border: true, + selection: true, + column: [ + { + label: "主键", + prop: "id", + display: false, + hide: true, + }, + { + label: "租户号", + prop: "tenantId", + display: false, + hide: true, + }, + { + label: "创建人", + prop: "createUser", + display: false, + hide: true, + }, + { + label: "创建时间", + prop: "createTime", + display: false, + hide: true, + }, + { + label: "更新人", + prop: "updateUser", + display: false, + hide: true, + }, + { + label: "更新时间", + prop: "updateTime", + display: false, + hide: true, + }, + { + label: "状态", + prop: "status", + display: false, + hide: true, + }, + { + label: "是否已删除;1-未删除,2-已删除", + prop: "isDeleted", + display: false, + hide: true, + }, + { + label: "创建部门", + prop: "createDept", + display: false, + hide: true, + }, + { + label: "产品名称", + prop: "name", + }, + { + label: "型号", + prop: "model", + }, + { + label: "设备序列号S/N", + prop: "deviceSerialNumber", + }, + { + label: "购买金额", + prop: "purchaseAmount", + }, + { + label: "状态;1-正常,2-维修,3-不能使用(不能开机)", + prop: "state", + }, + { + label: "当前使用仓", + prop: "currentUsageWarehouse", + }, + { + label: "使用人", + prop: "user", + }, + { + label: "使用人岗位id", + prop: "userPositionId", + }, + { + label: "使用人岗位", + prop: "userPosition", + }, + { + label: "是否收取押金;1-没有,2-有", + prop: "isDeposit", + }, + { + label: "押金金额;单位(元)", + prop: "deposit", + }, + { + label: "采购公司", + prop: "purchasingCompany", + }, + { + label: "购买时间", + prop: "buyingTime", + format: "yyyy-MM-dd hh:mm:ss", + valueFormat: "yyyy-MM-dd hh:mm:ss", + }, + { + label: "保修截止时间", + prop: "warrantyPeriodEndTime", + format: "yyyy-MM-dd hh:mm:ss", + valueFormat: "yyyy-MM-dd hh:mm:ss", + }, + { + label: "备注", + prop: "notes", + }, + { + label: "图片", + prop: "photo", + hide: true, + }, + { + label: "预留1", + prop: "reserve1", + display: false, + hide: true, + }, + { + label: "预留2", + prop: "reserve2", + display: false, + hide: true, + }, + { + label: "预留3", + prop: "reserve3", + display: false, + hide: true, + }, + { + label: "预留4", + prop: "reserve4", + display: false, + hide: true, + }, + { + label: "预留5", + prop: "reserve5", + display: false, + hide: true, + }, + ] +} diff --git a/src/views/basic/pda/basicPda.vue b/src/views/basic/pda/basicPda.vue new file mode 100644 index 0000000..be71c2a --- /dev/null +++ b/src/views/basic/pda/basicPda.vue @@ -0,0 +1,332 @@ + + + + + + + + + + + 搜索 + 清空 + + + + + + + + 新增 + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + 查看 + 编辑 + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 提 交 + 取 消 + + + + + + + + +