ljlong_2630
7 months ago
59 changed files with 3014 additions and 566 deletions
@ -0,0 +1,55 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface DismantlingMainVO { |
||||
|
deleteTime: Date |
||||
|
id: number |
||||
|
status: string |
||||
|
concurrencyStamp: number |
||||
|
remark: string |
||||
|
deleter: string |
||||
|
siteId: number |
||||
|
dismantlingBillno: string |
||||
|
productionCode: string |
||||
|
workbillType: string |
||||
|
} |
||||
|
|
||||
|
// 查询报废拆解登记主列表
|
||||
|
export const getDismantlingMainPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/mes/dismantling-main/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/mes/dismantling-main/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询报废拆解登记主详情
|
||||
|
export const getDismantlingMain = async (id: number) => { |
||||
|
return await request.get({ url: `/mes/dismantling-main/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增报废拆解登记主
|
||||
|
export const createDismantlingMain = async (data: DismantlingMainVO) => { |
||||
|
return await request.post({ url: `/mes/dismantling-main/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改报废拆解登记主
|
||||
|
export const updateDismantlingMain = async (data: DismantlingMainVO) => { |
||||
|
return await request.put({ url: `/mes/dismantling-main/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除报废拆解登记主
|
||||
|
export const deleteDismantlingMain = async (id: number) => { |
||||
|
return await request.delete({ url: `/mes/dismantling-main/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出报废拆解登记主 Excel
|
||||
|
export const exportDismantlingMain = async (params) => { |
||||
|
return await request.download({ url: `/mes/dismantling-main/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/mes/dismantling-main/get-import-template' }) |
||||
|
} |
@ -0,0 +1,6 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
//查询检验申请列表
|
||||
|
export const getInspectionJobPackageList = async (id: number) => { |
||||
|
return await request.get({ url: `/qms/inspection-job-package/list?masterId=` + id }) |
||||
|
} |
@ -1,65 +1,47 @@ |
|||||
import request from '@/config/axios' |
import request from '@/config/axios' |
||||
|
|
||||
export interface InspectionRecordDetailVO { |
|
||||
number: string |
|
||||
applicationDate: localdate |
|
||||
applicationTime: Date |
|
||||
requestStartTime: Date |
|
||||
requestEndTime: Date |
|
||||
finishTime: Date |
|
||||
supplierCode: string |
|
||||
materialCode: string |
|
||||
batch: string |
|
||||
requestInspectionNum: number |
|
||||
referenceOrderCode: string |
|
||||
referenceOrderRow: number |
|
||||
referenceCertificateCode: string |
|
||||
referenceCertificateRow: number |
|
||||
inspectionSchemeCode: string |
|
||||
inspectionStageCode: string |
|
||||
applicationPackageCode: string |
|
||||
inspectionLevel: string |
|
||||
aqlValue: number |
|
||||
available: string |
|
||||
} |
|
||||
|
|
||||
// 查询检验申请列表
|
// 查询检验申请列表
|
||||
export const getInspectionRecordDetailPage = async (params) => { |
export const getInspectionRecordDetailPage = async (params) => { |
||||
if (params.isSearch) { |
if (params.isSearch) { |
||||
delete params.isSearch |
delete params.isSearch |
||||
const data = {...params} |
const data = {...params} |
||||
return await request.post({ url: '/inspection/inspection-recordord-detail/senior', data }) |
return await request.post({ url: '/qms/inspection-record-detail/senior', data }) |
||||
} else { |
} else { |
||||
return await request.get({ url: `/inspection/inspectirecordrecord-detail/page`, params }) |
return await request.get({ url: `/qms/inspection-record-detail/page`, params }) |
||||
} |
} |
||||
} |
} |
||||
|
// 查询检验申请列表
|
||||
|
export const getInspectionRecordDetailList = async (id: number) => { |
||||
|
return await request.get({ url: `/qms/inspection-record-detail/list?masterId=` + id }) |
||||
|
} |
||||
// 查询检验申请详情
|
// 查询检验申请详情
|
||||
export const getInspectionRecordDetail = async (id: number) => { |
export const getInspectionRecordDetail = async (id: number) => { |
||||
return await request.get({ url: `/inspection/insperecordon-record-detail/get?id=` + id }) |
return await request.get({ url: `/qms/inspection-record-detail/get?id=` + id }) |
||||
} |
} |
||||
|
|
||||
// 新增检验申请
|
// 新增检验申请
|
||||
export const createInspectionRecordDetail = async (data: InspectionRecordDetailVO) => { |
export const createInspectionRecordDetail = async (data) => { |
||||
return await request.post({ url: `/inspection/inrecordction-record-detail/create`, data }) |
return await request.post({ url: `/qms/inspection-record-detail/create`, data }) |
||||
} |
} |
||||
|
|
||||
// 修改检验申请
|
// 修改检验申请
|
||||
export const updateInspectionRecordDetail = async (data: InspectionRecordDetailVO) => { |
export const updateInspectionRecordDetail = async (data) => { |
||||
return await request.put({ url: `/inspectionrecordspection-record-detail/update`, data }) |
return await request.put({ url: `/qms/inspection-record-detail/update`, data }) |
||||
} |
} |
||||
|
|
||||
// 删除检验申请
|
// 删除检验申请
|
||||
export const deleteInspectionRecordDetail = async (id: number) => { |
export const deleteInspectionRecordDetail = async (id: number) => { |
||||
return await request.delete({ url: `/inspectrecord/inspection-record-detail/delete?id=` + id }) |
return await request.delete({ url: `/qms/inspection-record-detail/delete?id=` + id }) |
||||
} |
} |
||||
|
|
||||
// 导出检验申请 Excel
|
// 导出检验申请 Excel
|
||||
export const exportInspectionRecordDetail = async (params) => { |
export const exportInspectionRecordDetail = async (params) => { |
||||
return await request.download({ url: `/insprecordion/inspection-record-detail/export-excel`, params }) |
return await request.download({ url: `/qms/inspection-record-detail/export-excel`, params }) |
||||
} |
} |
||||
|
|
||||
// 下载用户导入模板
|
// 下载用户导入模板
|
||||
export const importTemplate = () => { |
export const importTemplate = () => { |
||||
return request.download({ url: '/irecordection/inspection-record-detail/get-import-template' }) |
return request.download({ url: '/qms/inspection-record-detail/get-import-template' }) |
||||
} |
} |
||||
|
@ -0,0 +1,75 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface SupplierinvoiceInvoicedVO { |
||||
|
id: number |
||||
|
tax: number |
||||
|
projectCode: string |
||||
|
billType: string |
||||
|
recvBillNum: string |
||||
|
asnBillNum: string |
||||
|
supplierCode: string |
||||
|
poNumber: string |
||||
|
poLine: string |
||||
|
purchasePrice: number |
||||
|
invoicableQuantity: number |
||||
|
itemCode: string |
||||
|
uom: string |
||||
|
currency: string |
||||
|
remark: string |
||||
|
deletionTime: Date |
||||
|
deleterId: string |
||||
|
extraProperties: string |
||||
|
concurrencyStamp: number |
||||
|
siteId: string |
||||
|
} |
||||
|
|
||||
|
// 查询待开票列表
|
||||
|
export const getSupplierinvoiceInvoicedPage = async (params) => { |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/wms/supplierinvoice-invoiced/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/wms/supplierinvoice-invoiced/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 查询待开票详情
|
||||
|
export const getSupplierinvoiceInvoiced = async (id: number) => { |
||||
|
return await request.get({ url: `/wms/supplierinvoice-invoiced/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 新增待开票
|
||||
|
export const createSupplierinvoiceInvoiced = async (data: SupplierinvoiceInvoicedVO) => { |
||||
|
return await request.post({ url: `/wms/supplierinvoice-invoiced/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改待开票
|
||||
|
export const updateSupplierinvoiceInvoiced = async (data: SupplierinvoiceInvoicedVO) => { |
||||
|
return await request.put({ url: `/wms/supplierinvoice-invoiced/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除待开票
|
||||
|
export const deleteSupplierinvoiceInvoiced = async (id: number) => { |
||||
|
return await request.delete({ url: `/wms/supplierinvoice-invoiced/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出待开票 Excel
|
||||
|
export const exportSupplierinvoiceInvoiced = async (params) => { |
||||
|
return await request.download({ url: `/wms/supplierinvoice-invoiced/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
// 下载用户导入模板
|
||||
|
export const importTemplate = () => { |
||||
|
return request.download({ url: '/wms/supplierinvoice-invoiced/get-import-template' }) |
||||
|
} |
||||
|
|
||||
|
// 审批通过待开票
|
||||
|
export const agreeSupplierinvoiceInvoiced = async (id: number) => { |
||||
|
return await request.post({ url: `/wms/supplierinvoice-invoiced/agree?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 审批拒绝待开票
|
||||
|
export const refuseSupplierinvoiceInvoiced = async (id: number) => { |
||||
|
return await request.post({ url: `/wms/supplierinvoice-invoiced/refuse?id=` + id }) |
||||
|
} |
@ -0,0 +1,3 @@ |
|||||
|
import ListTable from './src/ListTable.vue' |
||||
|
|
||||
|
export { ListTable } |
@ -0,0 +1,40 @@ |
|||||
|
<template> |
||||
|
<div> |
||||
|
<Dialog v-model="isPackageShow" :title="dialogTitle" :width="width?width:'900px'" v-loading="packageLoading"> |
||||
|
<Table |
||||
|
ref="searchTableRef" |
||||
|
:columns="columns" |
||||
|
:data="allList" |
||||
|
:reserveSelection="true" |
||||
|
row-key="id" |
||||
|
/> |
||||
|
</Dialog> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script lang="ts" setup> |
||||
|
|
||||
|
const isPackageShow = ref(false) |
||||
|
const packageLoading = ref(false) |
||||
|
const dialogTitle = ref() |
||||
|
const message = useMessage() // 消息弹窗 |
||||
|
const columns = ref() |
||||
|
const allList = ref() |
||||
|
// 接受父组件参数 |
||||
|
const props = defineProps({ |
||||
|
width: { |
||||
|
type: String, |
||||
|
required: false |
||||
|
}, |
||||
|
}) |
||||
|
const openPackage = async (row?: any, titleName?: any,tableColumns?: any,list?: any) => { |
||||
|
isPackageShow.value = true |
||||
|
if (titleName) { |
||||
|
dialogTitle.value = titleName |
||||
|
} |
||||
|
columns.value = tableColumns.filter(item => (item.field !== 'action')) |
||||
|
allList.value = list |
||||
|
} |
||||
|
defineExpose({ openPackage }) // 提供 open 方法,用于打开弹窗 |
||||
|
</script> |
||||
|
|
@ -0,0 +1,177 @@ |
|||||
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
||||
|
import { dateFormatter } from '@/utils/formatTime' |
||||
|
import {Itembasic} from "@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data"; |
||||
|
import * as ItembasicApi from "@/api/wms/itembasic"; |
||||
|
|
||||
|
// 表单校验
|
||||
|
export const DismantlingMainRules = reactive({ |
||||
|
productionCode: [required], |
||||
|
workbillType: [required], |
||||
|
}) |
||||
|
|
||||
|
export const DismantlingMain = useCrudSchemas(reactive<CrudSchema[]>([ |
||||
|
{ |
||||
|
label: '删除时间', |
||||
|
field: 'deleteTime', |
||||
|
sort: 'custom', |
||||
|
formatter: dateFormatter, |
||||
|
isSearch: false, |
||||
|
isTable: false, |
||||
|
isForm: false, |
||||
|
isDetail:false, |
||||
|
search: { |
||||
|
component: 'DatePicker', |
||||
|
componentProps: { |
||||
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
||||
|
type: 'daterange', |
||||
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
||||
|
} |
||||
|
}, |
||||
|
form: { |
||||
|
component: 'DatePicker', |
||||
|
componentProps: { |
||||
|
type: 'datetime', |
||||
|
valueFormat: 'x' |
||||
|
} |
||||
|
}, |
||||
|
}, |
||||
|
{ |
||||
|
label: '主键', |
||||
|
field: 'id', |
||||
|
sort: 'custom', |
||||
|
isSearch: false, |
||||
|
isTable: false, |
||||
|
isForm: false, |
||||
|
isDetail:false, |
||||
|
}, |
||||
|
{ |
||||
|
label: '并发乐观锁', |
||||
|
field: 'concurrencyStamp', |
||||
|
sort: 'custom', |
||||
|
isSearch: false, |
||||
|
isTable: false, |
||||
|
isForm: false, |
||||
|
isDetail:false, |
||||
|
form: { |
||||
|
component: 'InputNumber', |
||||
|
value: 0 |
||||
|
}, |
||||
|
}, |
||||
|
{ |
||||
|
label: '创建时间', |
||||
|
field: 'createTime', |
||||
|
sort: 'custom', |
||||
|
formatter: dateFormatter, |
||||
|
isSearch: false, |
||||
|
isTable: false, |
||||
|
isForm: false, |
||||
|
isDetail:false, |
||||
|
search: { |
||||
|
component: 'DatePicker', |
||||
|
componentProps: { |
||||
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
||||
|
type: 'daterange', |
||||
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
||||
|
} |
||||
|
}, |
||||
|
isForm: false, |
||||
|
}, |
||||
|
{ |
||||
|
label: '删除用户名', |
||||
|
field: 'deleter', |
||||
|
sort: 'custom', |
||||
|
isSearch: false, |
||||
|
isTable: false, |
||||
|
isForm: false, |
||||
|
isDetail:false, |
||||
|
}, |
||||
|
{ |
||||
|
label: '位置ID', |
||||
|
field: 'siteId', |
||||
|
sort: 'custom', |
||||
|
isSearch: false, |
||||
|
isTable: false, |
||||
|
isForm: false, |
||||
|
isDetail:false, |
||||
|
form: { |
||||
|
component: 'InputNumber', |
||||
|
value: 0 |
||||
|
}, |
||||
|
}, |
||||
|
{ |
||||
|
label: '单据编号', |
||||
|
field: 'dismantlingBillno', |
||||
|
sort: 'custom', |
||||
|
isSearch: true, |
||||
|
isForm: false, |
||||
|
isDetail: true |
||||
|
}, |
||||
|
{ |
||||
|
label: '产品编码', |
||||
|
field: 'productionCode', |
||||
|
sort: 'custom', |
||||
|
isSearch: true, |
||||
|
form: { |
||||
|
componentProps: { |
||||
|
isSearchList: true, // 开启查询弹窗
|
||||
|
searchTitle: '产品编码', // 查询弹窗标题
|
||||
|
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
|
||||
|
searchField: 'code', // 查询弹窗赋值字段
|
||||
|
searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法
|
||||
|
searchCondition: [{ |
||||
|
key: 'available', |
||||
|
value: 'TRUE', |
||||
|
isMainValue: false |
||||
|
}, |
||||
|
{ |
||||
|
key: 'type', |
||||
|
action: 'in', // 查询拼接条件
|
||||
|
isSearch: true, // 使用自定义拼接条件
|
||||
|
value: 'BCP,CCP',//,SEMI]
|
||||
|
isMainValue: false |
||||
|
}] |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
{ |
||||
|
label: '工单类型', |
||||
|
field: 'workbillType', |
||||
|
sort: 'custom', |
||||
|
dictType: DICT_TYPE.DISMANTLING_BILL_TYPE, |
||||
|
dictClass: 'string', |
||||
|
isSearch: true, |
||||
|
}, |
||||
|
{ |
||||
|
label: '工单状态', |
||||
|
field: 'status', |
||||
|
sort: 'custom', |
||||
|
dictType: DICT_TYPE.QUALIFY_STATUS, |
||||
|
dictClass: 'string', |
||||
|
isForm: true, |
||||
|
isSearch: true, |
||||
|
isTable: true, |
||||
|
form: { |
||||
|
component: 'Switch', |
||||
|
value: '2', |
||||
|
componentProps: { |
||||
|
inactiveValue: '2', |
||||
|
activeValue: '1' |
||||
|
} |
||||
|
}, |
||||
|
}, |
||||
|
{ |
||||
|
label: '备注', |
||||
|
field: 'remark', |
||||
|
sort: 'custom', |
||||
|
isSearch: true, |
||||
|
}, |
||||
|
{ |
||||
|
label: '操作', |
||||
|
field: 'action', |
||||
|
isForm: false, |
||||
|
table: { |
||||
|
width: 150, |
||||
|
fixed: 'right' |
||||
|
} |
||||
|
} |
||||
|
])) |
@ -0,0 +1,244 @@ |
|||||
|
<template> |
||||
|
<ContentWrap> |
||||
|
<!-- 搜索工作栏 --> |
||||
|
<Search :schema="DismantlingMain.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" /> |
||||
|
</ContentWrap> |
||||
|
|
||||
|
<!-- 列表头部 --> |
||||
|
<TableHead |
||||
|
:HeadButttondata="HeadButttondata" |
||||
|
@button-base-click="buttonBaseClick" |
||||
|
:routeName="routeName" |
||||
|
@updataTableColumns="updataTableColumns" |
||||
|
@searchFormClick="searchFormClick" |
||||
|
:allSchemas="DismantlingMain.allSchemas" |
||||
|
/> |
||||
|
|
||||
|
<!-- 列表 --> |
||||
|
<ContentWrap> |
||||
|
<Table |
||||
|
:columns="tableColumns" |
||||
|
:data="tableObject.tableList" |
||||
|
:loading="tableObject.loading" |
||||
|
:pagination="{ |
||||
|
total: tableObject.total |
||||
|
}" |
||||
|
v-model:pageSize="tableObject.pageSize" |
||||
|
v-model:currentPage="tableObject.currentPage" |
||||
|
v-model:sort="tableObject.sort" |
||||
|
> |
||||
|
<template #dismantlingBillno="{row}"> |
||||
|
<el-button type="primary" link @click="openDetail(row, '代码', row.dismantlingBillno)"> |
||||
|
<span>{{ row.dismantlingBillno }}</span> |
||||
|
</el-button> |
||||
|
</template> |
||||
|
<template #action="{ row }"> |
||||
|
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" /> |
||||
|
</template> |
||||
|
</Table> |
||||
|
</ContentWrap> |
||||
|
|
||||
|
<!-- 表单弹窗:添加/修改 --> |
||||
|
<BasicForm |
||||
|
ref="basicFormRef" |
||||
|
@success="formsSuccess" |
||||
|
:rules="DismantlingMainRules" |
||||
|
:formAllSchemas="DismantlingMain.allSchemas" |
||||
|
:apiUpdate="DismantlingMainApi.updateDismantlingMain" |
||||
|
:apiCreate="DismantlingMainApi.createDismantlingMain" |
||||
|
@searchTableSuccess="searchTableSuccess" |
||||
|
:isBusiness="false" |
||||
|
/> |
||||
|
|
||||
|
<!-- 详情 --> |
||||
|
<Detail ref="detailRef" :isBasic="true" :allSchemas="DismantlingMain.allSchemas" /> |
||||
|
|
||||
|
<!-- 导入 --> |
||||
|
<ImportForm ref="importFormRef" url="/mes/dismantling-main/import" :importTemplateData="importTemplateData" @success="importSuccess" /> |
||||
|
</template> |
||||
|
|
||||
|
<script setup lang="ts"> |
||||
|
import download from '@/utils/download' |
||||
|
import { DismantlingMain,DismantlingMainRules } from './dismantlingMain.data' |
||||
|
import * as DismantlingMainApi from '@/api/mes/dismantlingMain' |
||||
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
||||
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
||||
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
||||
|
import Detail from '@/components/Detail/src/Detail.vue' |
||||
|
|
||||
|
defineOptions({ name: 'MesDismantlingMain' }) |
||||
|
|
||||
|
const message = useMessage() // 消息弹窗 |
||||
|
const { t } = useI18n() // 国际化 |
||||
|
|
||||
|
const route = useRoute() // 路由信息 |
||||
|
const routeName = ref() |
||||
|
routeName.value = route.name |
||||
|
const tableColumns = ref(DismantlingMain.allSchemas.tableColumns) |
||||
|
|
||||
|
// 查询页面返回 |
||||
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
||||
|
nextTick(() => { |
||||
|
const setV = {} |
||||
|
setV[formField] = val[0][searchField] |
||||
|
formRef.setValues(setV) |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 字段设置 更新主列表字段 |
||||
|
const updataTableColumns = (val) => { |
||||
|
tableColumns.value = val |
||||
|
} |
||||
|
|
||||
|
const { tableObject, tableMethods } = useTable({ |
||||
|
getListApi: DismantlingMainApi.getDismantlingMainPage // 分页接口 |
||||
|
}) |
||||
|
|
||||
|
// 获得表格的各种操作 |
||||
|
const { getList, setSearchParams } = tableMethods |
||||
|
|
||||
|
// 列表头部按钮 |
||||
|
const HeadButttondata = [ |
||||
|
defaultButtons.defaultAddBtn({hasPermi:'mes:dismantlingMain:create'}), // 新增 |
||||
|
//defaultButtons.defaultImportBtn({hasPermi:'mes:dismantlingMain:import'}), // 导入 |
||||
|
defaultButtons.defaultExportBtn({hasPermi:'mes:dismantlingMain:export'}), // 导出 |
||||
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
||||
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
||||
|
defaultButtons.defaultSetBtn(null), // 设置 |
||||
|
// { |
||||
|
// label: '自定义扩展按钮', |
||||
|
// name: 'zdy', |
||||
|
// hide: false, |
||||
|
// type: 'primary', |
||||
|
// icon: 'Select', |
||||
|
// color: '' |
||||
|
// }, |
||||
|
] |
||||
|
|
||||
|
// 头部按钮事件 |
||||
|
const buttonBaseClick = (val, item) => { |
||||
|
if (val == 'add') { // 新增 |
||||
|
openForm('create') |
||||
|
} else if (val == 'import') { // 导入 |
||||
|
handleImport() |
||||
|
} else if (val == 'export') { // 导出 |
||||
|
handleExport() |
||||
|
} else if (val == 'refresh') { // 刷新 |
||||
|
getList() |
||||
|
} else if (val == 'filtrate') { // 筛选 |
||||
|
} else { // 其他按钮 |
||||
|
console.log('其他按钮', item) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 列表-操作按钮 |
||||
|
const butttondata = [ |
||||
|
defaultButtons.mainListEditBtn({hasPermi:'mes:dismantlingMain:update'}), // 编辑 |
||||
|
defaultButtons.mainListDeleteBtn({hasPermi:'mes:dismantlingMain:delete'}), // 删除 |
||||
|
] |
||||
|
|
||||
|
// 列表-操作按钮事件 |
||||
|
const buttonTableClick = async (val, row) => { |
||||
|
if (val == 'edit') { // 编辑 |
||||
|
openForm('update', row) |
||||
|
} else if (val == 'delete') { // 删除 |
||||
|
handleDelete(row.id) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/** 添加/修改操作 */ |
||||
|
const basicFormRef = ref() |
||||
|
const openForm = (type: string, row?: any) => { |
||||
|
basicFormRef.value.open(type, row) |
||||
|
} |
||||
|
|
||||
|
// form表单提交 |
||||
|
const formsSuccess = async (formType,data) => { |
||||
|
var isHave =DismantlingMain.allSchemas.formSchema.some(function (item) { |
||||
|
return item.field === 'activeTime' || item.field === 'expireTime'; |
||||
|
}); |
||||
|
if(isHave){ |
||||
|
if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){ |
||||
|
message.error('失效时间要大于生效时间') |
||||
|
return; |
||||
|
} |
||||
|
} |
||||
|
if(data.activeTime==0)data.activeTime = null; |
||||
|
if(data.expireTime==0)data.expireTime = null; |
||||
|
if (formType === 'create') { |
||||
|
await DismantlingMainApi.createDismantlingMain(data) |
||||
|
message.success(t('common.createSuccess')) |
||||
|
} else { |
||||
|
await DismantlingMainApi.updateDismantlingMain(data) |
||||
|
message.success(t('common.updateSuccess')) |
||||
|
} |
||||
|
basicFormRef.value.dialogVisible = false |
||||
|
getList() |
||||
|
} |
||||
|
|
||||
|
/** 详情操作 */ |
||||
|
const detailRef = ref() |
||||
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
||||
|
detailRef.value.openDetail(row, titleName, titleValue, 'basicDismantlingMain') |
||||
|
} |
||||
|
|
||||
|
/** 删除按钮操作 */ |
||||
|
const handleDelete = async (id: number) => { |
||||
|
try { |
||||
|
// 删除的二次确认 |
||||
|
await message.delConfirm() |
||||
|
// 发起删除 |
||||
|
await DismantlingMainApi.deleteDismantlingMain(id) |
||||
|
message.success(t('common.delSuccess')) |
||||
|
// 刷新列表 |
||||
|
await getList() |
||||
|
} catch {} |
||||
|
} |
||||
|
|
||||
|
/** 导出按钮操作 */ |
||||
|
const exportLoading = ref(false) // 导出的加载中 |
||||
|
const handleExport = async () => { |
||||
|
try { |
||||
|
// 导出的二次确认 |
||||
|
await message.exportConfirm() |
||||
|
// 发起导出 |
||||
|
exportLoading.value = true |
||||
|
const data = await DismantlingMainApi.exportDismantlingMain(tableObject.params) |
||||
|
download.excel(data, '报废拆解登记主.xlsx') |
||||
|
} catch { |
||||
|
} finally { |
||||
|
exportLoading.value = false |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/** 导入 */ |
||||
|
const importFormRef = ref() |
||||
|
const handleImport = () => { |
||||
|
importFormRef.value.open() |
||||
|
} |
||||
|
// 导入附件弹窗所需的参数 |
||||
|
const importTemplateData = reactive({ |
||||
|
templateUrl: '', |
||||
|
templateTitle: '报废拆解登记主导入模版.xlsx' |
||||
|
}) |
||||
|
// 导入成功之后 |
||||
|
const importSuccess = () => { |
||||
|
getList() |
||||
|
} |
||||
|
|
||||
|
// 筛选提交 |
||||
|
const searchFormClick = (searchData) => { |
||||
|
tableObject.params = { |
||||
|
isSearch: true, |
||||
|
filters: searchData.filters |
||||
|
} |
||||
|
getList() // 刷新当前列表 |
||||
|
} |
||||
|
|
||||
|
/** 初始化 **/ |
||||
|
onMounted(async () => { |
||||
|
getList() |
||||
|
importTemplateData.templateUrl = await DismantlingMainApi.importTemplate() |
||||
|
}) |
||||
|
|
||||
|
</script> |
@ -0,0 +1,310 @@ |
|||||
|
<template> |
||||
|
<div> |
||||
|
<el-drawer |
||||
|
v-model="isShowDrawer" |
||||
|
title="详情" |
||||
|
direction="rtl" |
||||
|
size="80%" |
||||
|
v-loading="detailLoading" |
||||
|
> |
||||
|
<template #header> |
||||
|
<div class="font-size-18px"> |
||||
|
{{ titleValueRef }} <span class="ml-20px font-size-16px">{{ titleNameRef }}</span> |
||||
|
</div> |
||||
|
</template> |
||||
|
<ContentWrap v-if="!isBasic"> |
||||
|
<Descriptions |
||||
|
:data="data" |
||||
|
labelClassName="label-class-name" |
||||
|
label-align="left" |
||||
|
direction="vertical" |
||||
|
:column="8" |
||||
|
:schema="allSchemas.detailSchema" |
||||
|
:columns="2" |
||||
|
width="200px" |
||||
|
/> |
||||
|
</ContentWrap> |
||||
|
<ContentWrap> |
||||
|
<el-tabs |
||||
|
v-model="editableTabsValue" |
||||
|
class="demo-tabs" |
||||
|
type="border-card" |
||||
|
tab-position="left" |
||||
|
:stretch="false" |
||||
|
> |
||||
|
<el-tab-pane |
||||
|
v-for="item in data.subList" |
||||
|
:key="item.name" |
||||
|
:label="item.processCode" |
||||
|
:name="item.name" |
||||
|
> |
||||
|
<div class="small-title">检验工序</div> |
||||
|
<el-form :model="item" label-width="auto" ref="formProcessRef"> |
||||
|
<el-row :gutter="20"> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="编码" prop="processCode"> |
||||
|
<el-input v-model="item.processCode" placeholder="根据系统生成" :disabled="true" /> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="检验方案模板编码"> |
||||
|
<el-input |
||||
|
v-model="item.inspectionCode" |
||||
|
placeholder="根据系统生成" |
||||
|
:disabled="true" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="描述" prop="processDescribe"> |
||||
|
<el-input v-model="item.processDescribe" :disabled="true" /> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="顺序号" prop="sequenceCode"> |
||||
|
<el-input v-model="item.sequenceCode" :disabled="true" /> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="检验特性编码"> |
||||
|
<el-input |
||||
|
v-model="item.inspectionCharCode" |
||||
|
placeholder="根据系统生成" |
||||
|
:disabled="true" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
</el-form> |
||||
|
<div class="small-title">检验特性</div> |
||||
|
<el-form :model="item" label-width="auto" ref="formFeaturesRef"> |
||||
|
<el-row :gutter="20"> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="编码"> |
||||
|
<el-input |
||||
|
v-model="item.inspectionJobCharacteristicsRespVO.number" |
||||
|
placeholder="根据系统生成" |
||||
|
:disabled="true" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="描述" prop="inspectionJobCharacteristicsRespVO.description"> |
||||
|
<el-input v-model="item.inspectionJobCharacteristicsRespVO.description" :disabled="true" /> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item |
||||
|
label="检验方法" |
||||
|
prop="inspectionJobCharacteristicsRespVO.inspectionMethodCode" |
||||
|
> |
||||
|
<div style="display: flex; width: 100%"> |
||||
|
<el-input |
||||
|
v-model="item.inspectionJobCharacteristicsRespVO.inspectionMethodName" |
||||
|
disabled |
||||
|
placeholder="请选择检验方法" |
||||
|
/> |
||||
|
</div> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item |
||||
|
label="采样过程编码" |
||||
|
prop="inspectionJobCharacteristicsRespVO.inspectionMethod" |
||||
|
> |
||||
|
<div style="display: flex; width: 100%"> |
||||
|
<el-input |
||||
|
v-model="item.inspectionJobCharacteristicsRespVO.inspectionName" |
||||
|
disabled |
||||
|
placeholder="请选择采样过程编码" |
||||
|
/> |
||||
|
</div> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<!-- <el-col :span="12"> |
||||
|
<el-form-item |
||||
|
label="动态修改规则编码" |
||||
|
prop="inspectionJobCharacteristicsRespVO.dynamicUpdateCode" |
||||
|
> |
||||
|
<div style="display: flex; width: 100%"> |
||||
|
<el-input |
||||
|
v-model="item.inspectionJobCharacteristicsRespVO.dynamicUpdateName" |
||||
|
disabled |
||||
|
placeholder="请选择动态修改规则编码" |
||||
|
/> |
||||
|
</div> |
||||
|
</el-form-item> |
||||
|
</el-col> --> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item |
||||
|
label="是否允许修改特征值" |
||||
|
prop="inspectionJobCharacteristicsRespVO.isCanUpdate" |
||||
|
> |
||||
|
<el-switch |
||||
|
v-model="item.inspectionJobCharacteristicsRespVO.isCanUpdate" |
||||
|
disabled |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item |
||||
|
label="结果录入方式" |
||||
|
prop="inspectionJobCharacteristicsRespVO.resultEntryMethod" |
||||
|
> |
||||
|
<el-select |
||||
|
v-model="item.inspectionJobCharacteristicsRespVO.resultEntryMethod" |
||||
|
placeholder="请选择结果录入方式" |
||||
|
@change="resultEntryMethodChange($event,item)" |
||||
|
disabled |
||||
|
> |
||||
|
<el-option |
||||
|
v-for="dict in getStrDictOptions( |
||||
|
DICT_TYPE.INSPECTION_CHARACTERISTICS_RESULT_ENTRY |
||||
|
)" |
||||
|
:key="dict.value" |
||||
|
:label="dict.label" |
||||
|
:value="dict.value" |
||||
|
/> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="特征类型" prop="inspectionJobCharacteristicsRespVO.featureType"> |
||||
|
<el-select |
||||
|
v-model="item.inspectionJobCharacteristicsRespVO.featureType" |
||||
|
placeholder="请选择特征类型" |
||||
|
@change="changeFeatureType" |
||||
|
disabled |
||||
|
> |
||||
|
<el-option v-for="dict in getStrDictOptions( DICT_TYPE.INSPECTION_CHARACTERISTICS_FEATURE_TYPE )" |
||||
|
:key="dict.value" |
||||
|
:label="dict.label" |
||||
|
:value="dict.value" |
||||
|
/> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="开始时间" prop="inspectionJobCharacteristicsRespVO.inspectionStartTime"> |
||||
|
<el-date-picker |
||||
|
v-model="item.inspectionJobCharacteristicsRespVO.inspectionStartTime" |
||||
|
type="datetime" |
||||
|
placeholder="请选择开始时间" |
||||
|
style="width: 100%" |
||||
|
value-format="x" |
||||
|
disabled |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="结束时间" prop="inspectionJobCharacteristicsRespVO.inspectionEndTime"> |
||||
|
<el-date-picker |
||||
|
v-model="item.inspectionJobCharacteristicsRespVO.inspectionEndTime" |
||||
|
type="datetime" |
||||
|
placeholder="请选择结束时间" |
||||
|
style="width: 100%" |
||||
|
value-format="x" |
||||
|
disabled |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
</el-form> |
||||
|
</el-tab-pane> |
||||
|
</el-tabs> |
||||
|
</ContentWrap> |
||||
|
</el-drawer> |
||||
|
|
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script lang="ts" setup> |
||||
|
import * as InspectionJobDetailPageApi from '@/api/qms/inspectionJob/inspectionJobDetail' |
||||
|
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
||||
|
|
||||
|
defineOptions({ name: 'Detail' }) |
||||
|
|
||||
|
const editableTabsValue = ref('1') |
||||
|
const message = useMessage() // 消息弹窗 |
||||
|
const { t } = useI18n() // 国际化 |
||||
|
|
||||
|
const updateKey = ref(0) |
||||
|
|
||||
|
const props = defineProps({ |
||||
|
// 表单,列表 相关信息 |
||||
|
allSchemas: { |
||||
|
type: Object, |
||||
|
required: true, |
||||
|
default: null |
||||
|
}, |
||||
|
// 明细列表相关信息 |
||||
|
detailAllSchemas: { |
||||
|
type: Object, |
||||
|
required: true, |
||||
|
default: null |
||||
|
}, |
||||
|
// 详情列表扩展操作按钮 |
||||
|
buttondataTable: { |
||||
|
type: Array, |
||||
|
required: false, |
||||
|
default: ()=>{ |
||||
|
return [] |
||||
|
} |
||||
|
}, |
||||
|
}) |
||||
|
const isShowDrawer = ref(false) |
||||
|
const detailLoading = ref(false) |
||||
|
const data = ref({ |
||||
|
code: '', |
||||
|
itemCode: '', |
||||
|
version: '', |
||||
|
testTypeCode: '', |
||||
|
programmeTemplateCode: '', |
||||
|
splitRule: '', |
||||
|
aql: '', |
||||
|
inspectionLevel: '', |
||||
|
effectiveDate: '', |
||||
|
expirationDate: '', |
||||
|
available: 'TRUE', |
||||
|
subList: [] |
||||
|
}) |
||||
|
|
||||
|
/** 打开弹窗 */ |
||||
|
const formRef = ref() |
||||
|
const titleNameRef = ref() |
||||
|
const titleValueRef = ref() |
||||
|
const openDetail = async (row: any, titleName: any, titleValue: any, tableName: any) => { |
||||
|
titleNameRef.value = titleName |
||||
|
titleValueRef.value = titleValue |
||||
|
|
||||
|
isShowDrawer.value = true |
||||
|
if (row) { |
||||
|
detailLoading.value = true |
||||
|
try { |
||||
|
data.value = row |
||||
|
let list = [] |
||||
|
list = await InspectionJobDetailPageApi.getInspectionJobDetailList(row.id) |
||||
|
list.forEach((item, index) => { |
||||
|
editableTabsValue.value = index + 1 |
||||
|
item.name = index + 1 |
||||
|
}) |
||||
|
data.value.subList = list |
||||
|
} finally { |
||||
|
detailLoading.value = false |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
defineExpose({ openDetail }) // 提供 open 方法,用于打开弹窗 |
||||
|
|
||||
|
|
||||
|
</script> |
||||
|
<style lang="scss"> |
||||
|
.el-drawer__body { |
||||
|
background: #f5f5f5 !important; |
||||
|
} |
||||
|
|
||||
|
::v-deep(.label-class-name) { |
||||
|
color: #dedede; |
||||
|
} |
||||
|
</style> |
||||
|
<style scoped lang="scss"></style> |
@ -0,0 +1,310 @@ |
|||||
|
<template> |
||||
|
<div> |
||||
|
<el-drawer |
||||
|
v-model="isShowDrawer" |
||||
|
title="详情" |
||||
|
direction="rtl" |
||||
|
size="80%" |
||||
|
v-loading="detailLoading" |
||||
|
> |
||||
|
<template #header> |
||||
|
<div class="font-size-18px"> |
||||
|
{{ titleValueRef }} <span class="ml-20px font-size-16px">{{ titleNameRef }}</span> |
||||
|
</div> |
||||
|
</template> |
||||
|
<ContentWrap v-if="!isBasic"> |
||||
|
<Descriptions |
||||
|
:data="data" |
||||
|
labelClassName="label-class-name" |
||||
|
label-align="left" |
||||
|
direction="vertical" |
||||
|
:column="8" |
||||
|
:schema="allSchemas.detailSchema" |
||||
|
:columns="2" |
||||
|
width="200px" |
||||
|
/> |
||||
|
</ContentWrap> |
||||
|
<ContentWrap> |
||||
|
<el-tabs |
||||
|
v-model="editableTabsValue" |
||||
|
class="demo-tabs" |
||||
|
type="border-card" |
||||
|
tab-position="left" |
||||
|
:stretch="false" |
||||
|
> |
||||
|
<el-tab-pane |
||||
|
v-for="item in data.subList" |
||||
|
:key="item.name" |
||||
|
:label="item.processCode" |
||||
|
:name="item.name" |
||||
|
> |
||||
|
<div class="small-title">检验工序</div> |
||||
|
<el-form :model="item" label-width="auto" ref="formProcessRef"> |
||||
|
<el-row :gutter="20"> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="编码" prop="processCode"> |
||||
|
<el-input v-model="item.processCode" placeholder="根据系统生成" :disabled="true" /> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="检验方案模板编码"> |
||||
|
<el-input |
||||
|
v-model="item.inspectionCode" |
||||
|
placeholder="根据系统生成" |
||||
|
:disabled="true" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="描述" prop="processDescribe"> |
||||
|
<el-input v-model="item.processDescribe" :disabled="true" /> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="顺序号" prop="sequenceCode"> |
||||
|
<el-input v-model="item.sequenceCode" :disabled="true" /> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="检验特性编码"> |
||||
|
<el-input |
||||
|
v-model="item.inspectionCharCode" |
||||
|
placeholder="根据系统生成" |
||||
|
:disabled="true" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
</el-form> |
||||
|
<div class="small-title">检验特性</div> |
||||
|
<el-form :model="item" label-width="auto" ref="formFeaturesRef"> |
||||
|
<el-row :gutter="20"> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="编码"> |
||||
|
<el-input |
||||
|
v-model="item.inspectionJobCharacteristicsRespVO.number" |
||||
|
placeholder="根据系统生成" |
||||
|
:disabled="true" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="描述" prop="inspectionJobCharacteristicsRespVO.description"> |
||||
|
<el-input v-model="item.inspectionJobCharacteristicsRespVO.description" :disabled="true" /> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item |
||||
|
label="检验方法" |
||||
|
prop="inspectionJobCharacteristicsRespVO.inspectionMethodCode" |
||||
|
> |
||||
|
<div style="display: flex; width: 100%"> |
||||
|
<el-input |
||||
|
v-model="item.inspectionJobCharacteristicsRespVO.inspectionMethodName" |
||||
|
disabled |
||||
|
placeholder="请选择检验方法" |
||||
|
/> |
||||
|
</div> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item |
||||
|
label="采样过程编码" |
||||
|
prop="inspectionJobCharacteristicsRespVO.inspectionMethod" |
||||
|
> |
||||
|
<div style="display: flex; width: 100%"> |
||||
|
<el-input |
||||
|
v-model="item.inspectionJobCharacteristicsRespVO.inspectionName" |
||||
|
disabled |
||||
|
placeholder="请选择采样过程编码" |
||||
|
/> |
||||
|
</div> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<!-- <el-col :span="12"> |
||||
|
<el-form-item |
||||
|
label="动态修改规则编码" |
||||
|
prop="inspectionJobCharacteristicsRespVO.dynamicUpdateCode" |
||||
|
> |
||||
|
<div style="display: flex; width: 100%"> |
||||
|
<el-input |
||||
|
v-model="item.inspectionJobCharacteristicsRespVO.dynamicUpdateName" |
||||
|
disabled |
||||
|
placeholder="请选择动态修改规则编码" |
||||
|
/> |
||||
|
</div> |
||||
|
</el-form-item> |
||||
|
</el-col> --> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item |
||||
|
label="是否允许修改特征值" |
||||
|
prop="inspectionJobCharacteristicsRespVO.isCanUpdate" |
||||
|
> |
||||
|
<el-switch |
||||
|
v-model="item.inspectionJobCharacteristicsRespVO.isCanUpdate" |
||||
|
disabled |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item |
||||
|
label="结果录入方式" |
||||
|
prop="inspectionJobCharacteristicsRespVO.resultEntryMethod" |
||||
|
> |
||||
|
<el-select |
||||
|
v-model="item.inspectionJobCharacteristicsRespVO.resultEntryMethod" |
||||
|
placeholder="请选择结果录入方式" |
||||
|
@change="resultEntryMethodChange($event,item)" |
||||
|
disabled |
||||
|
> |
||||
|
<el-option |
||||
|
v-for="dict in getStrDictOptions( |
||||
|
DICT_TYPE.INSPECTION_CHARACTERISTICS_RESULT_ENTRY |
||||
|
)" |
||||
|
:key="dict.value" |
||||
|
:label="dict.label" |
||||
|
:value="dict.value" |
||||
|
/> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="特征类型" prop="inspectionJobCharacteristicsRespVO.featureType"> |
||||
|
<el-select |
||||
|
v-model="item.inspectionJobCharacteristicsRespVO.featureType" |
||||
|
placeholder="请选择特征类型" |
||||
|
@change="changeFeatureType" |
||||
|
disabled |
||||
|
> |
||||
|
<el-option v-for="dict in getStrDictOptions( DICT_TYPE.INSPECTION_CHARACTERISTICS_FEATURE_TYPE )" |
||||
|
:key="dict.value" |
||||
|
:label="dict.label" |
||||
|
:value="dict.value" |
||||
|
/> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="开始时间" prop="inspectionJobCharacteristicsRespVO.inspectionStartTime"> |
||||
|
<el-date-picker |
||||
|
v-model="item.inspectionJobCharacteristicsRespVO.inspectionStartTime" |
||||
|
type="datetime" |
||||
|
placeholder="请选择开始时间" |
||||
|
style="width: 100%" |
||||
|
value-format="x" |
||||
|
disabled |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="结束时间" prop="inspectionJobCharacteristicsRespVO.inspectionEndTime"> |
||||
|
<el-date-picker |
||||
|
v-model="item.inspectionJobCharacteristicsRespVO.inspectionEndTime" |
||||
|
type="datetime" |
||||
|
placeholder="请选择结束时间" |
||||
|
style="width: 100%" |
||||
|
value-format="x" |
||||
|
disabled |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
</el-form> |
||||
|
</el-tab-pane> |
||||
|
</el-tabs> |
||||
|
</ContentWrap> |
||||
|
</el-drawer> |
||||
|
|
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script lang="ts" setup> |
||||
|
import * as InspectionRecordDetailPageApi from '@/api/qms/inspectionRecord/inspectionRecordDetail' |
||||
|
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
||||
|
|
||||
|
defineOptions({ name: 'InspectionRecordDetail' }) |
||||
|
|
||||
|
const editableTabsValue = ref('1') |
||||
|
const message = useMessage() // 消息弹窗 |
||||
|
const { t } = useI18n() // 国际化 |
||||
|
|
||||
|
const updateKey = ref(0) |
||||
|
|
||||
|
const props = defineProps({ |
||||
|
// 表单,列表 相关信息 |
||||
|
allSchemas: { |
||||
|
type: Object, |
||||
|
required: true, |
||||
|
default: null |
||||
|
}, |
||||
|
// 明细列表相关信息 |
||||
|
detailAllSchemas: { |
||||
|
type: Object, |
||||
|
required: true, |
||||
|
default: null |
||||
|
}, |
||||
|
// 详情列表扩展操作按钮 |
||||
|
buttondataTable: { |
||||
|
type: Array, |
||||
|
required: false, |
||||
|
default: ()=>{ |
||||
|
return [] |
||||
|
} |
||||
|
}, |
||||
|
}) |
||||
|
const isShowDrawer = ref(false) |
||||
|
const detailLoading = ref(false) |
||||
|
const data = ref({ |
||||
|
code: '', |
||||
|
itemCode: '', |
||||
|
version: '', |
||||
|
testTypeCode: '', |
||||
|
programmeTemplateCode: '', |
||||
|
splitRule: '', |
||||
|
aql: '', |
||||
|
inspectionLevel: '', |
||||
|
effectiveDate: '', |
||||
|
expirationDate: '', |
||||
|
available: 'TRUE', |
||||
|
subList: [] |
||||
|
}) |
||||
|
|
||||
|
/** 打开弹窗 */ |
||||
|
const formRef = ref() |
||||
|
const titleNameRef = ref() |
||||
|
const titleValueRef = ref() |
||||
|
const openDetail = async (row: any, titleName: any, titleValue: any, tableName: any) => { |
||||
|
titleNameRef.value = titleName |
||||
|
titleValueRef.value = titleValue |
||||
|
|
||||
|
isShowDrawer.value = true |
||||
|
if (row) { |
||||
|
detailLoading.value = true |
||||
|
try { |
||||
|
data.value = row |
||||
|
let list = [] |
||||
|
list = await InspectionRecordDetailPageApi.getInspectionRecordDetailList(row.id) |
||||
|
list.forEach((item, index) => { |
||||
|
editableTabsValue.value = index + 1 |
||||
|
item.name = index + 1 |
||||
|
}) |
||||
|
data.value.subList = list |
||||
|
} finally { |
||||
|
detailLoading.value = false |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
defineExpose({ openDetail }) // 提供 open 方法,用于打开弹窗 |
||||
|
|
||||
|
|
||||
|
</script> |
||||
|
<style lang="scss"> |
||||
|
.el-drawer__body { |
||||
|
background: #f5f5f5 !important; |
||||
|
} |
||||
|
|
||||
|
::v-deep(.label-class-name) { |
||||
|
color: #dedede; |
||||
|
} |
||||
|
</style> |
||||
|
<style scoped lang="scss"></style> |
@ -0,0 +1,310 @@ |
|||||
|
<template> |
||||
|
<ContentWrap> |
||||
|
<!-- 搜索工作栏 --> |
||||
|
<Search :schema="SupplierinvoiceInvoiced.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" /> |
||||
|
</ContentWrap> |
||||
|
|
||||
|
<!-- 列表头部 --> |
||||
|
<TableHead |
||||
|
:HeadButttondata="HeadButttondata" |
||||
|
@button-base-click="buttonBaseClick" |
||||
|
:routeName="routeName" |
||||
|
@updataTableColumns="updataTableColumns" |
||||
|
@searchFormClick="searchFormClick" |
||||
|
:allSchemas="SupplierinvoiceInvoiced.allSchemas" |
||||
|
/> |
||||
|
|
||||
|
<!-- 列表 --> |
||||
|
<ContentWrap> |
||||
|
<Table |
||||
|
:columns="tableColumns" |
||||
|
:data="tableObject.tableList" |
||||
|
:loading="tableObject.loading" |
||||
|
:pagination="{ |
||||
|
total: tableObject.total |
||||
|
}" |
||||
|
v-model:pageSize="tableObject.pageSize" |
||||
|
v-model:currentPage="tableObject.currentPage" |
||||
|
v-model:sort="tableObject.sort" |
||||
|
> |
||||
|
<template #code="{row}"> |
||||
|
<el-button type="primary" link @click="openDetail(row, '代码', row.code)"> |
||||
|
<span>{{ row.code }}</span> |
||||
|
</el-button> |
||||
|
</template> |
||||
|
<template #action="{ row }"> |
||||
|
<ButtonBase :Butttondata="butttondata(row)" @button-base-click="buttonTableClick($event,row)" /> |
||||
|
</template> |
||||
|
</Table> |
||||
|
</ContentWrap> |
||||
|
|
||||
|
<!-- 表单弹窗:添加/修改 --> |
||||
|
<BasicForm |
||||
|
ref="basicFormRef" |
||||
|
@success="formsSuccess" |
||||
|
:rules="SupplierinvoiceInvoicedRules" |
||||
|
:formAllSchemas="SupplierinvoiceInvoiced.allSchemas" |
||||
|
:apiUpdate="SupplierinvoiceInvoicedApi.updateSupplierinvoiceInvoiced" |
||||
|
:apiCreate="SupplierinvoiceInvoicedApi.createSupplierinvoiceInvoiced" |
||||
|
@searchTableSuccess="searchTableSuccess" |
||||
|
:isBusiness="false" |
||||
|
/> |
||||
|
|
||||
|
<!-- 详情 --> |
||||
|
<Detail ref="detailRef" :isBasic="true" :allSchemas="SupplierinvoiceInvoiced.allSchemas" /> |
||||
|
|
||||
|
<!-- 导入 --> |
||||
|
<!-- <ImportForm ref="importFormRef" url="/wms/supplierinvoice-invoiced/import" :importTemplateData="importTemplateData" @success="importSuccess" /> --> |
||||
|
</template> |
||||
|
|
||||
|
<script setup lang="ts"> |
||||
|
import download from '@/utils/download' |
||||
|
import { SupplierinvoiceInvoiced,SupplierinvoiceInvoicedRules } from './supplierinvoiceInvoiced.data' |
||||
|
import * as SupplierinvoiceInvoicedApi from '@/api/wms/supplierinvoiceInvoiced' |
||||
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
||||
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
||||
|
import Detail from '@/components/Detail/src/Detail.vue' |
||||
|
|
||||
|
defineOptions({ name: 'SupplierinvoiceInvoiced' }) |
||||
|
|
||||
|
const message = useMessage() // 消息弹窗 |
||||
|
const { t } = useI18n() // 国际化 |
||||
|
|
||||
|
const route = useRoute() // 路由信息 |
||||
|
const routeName = ref() |
||||
|
routeName.value = route.name |
||||
|
const tableColumns = ref(SupplierinvoiceInvoiced.allSchemas.tableColumns) |
||||
|
|
||||
|
// 查询页面返回 |
||||
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
||||
|
nextTick(() => { |
||||
|
const setV = {} |
||||
|
setV[formField] = val[0][searchField] |
||||
|
formRef.setValues(setV) |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 字段设置 更新主列表字段 |
||||
|
const updataTableColumns = (val) => { |
||||
|
tableColumns.value = val |
||||
|
} |
||||
|
|
||||
|
const { tableObject, tableMethods } = useTable({ |
||||
|
getListApi: SupplierinvoiceInvoicedApi.getSupplierinvoiceInvoicedPage // 分页接口 |
||||
|
}) |
||||
|
|
||||
|
// 获得表格的各种操作 |
||||
|
const { getList, setSearchParams } = tableMethods |
||||
|
|
||||
|
// 根据状态返回该按钮是否显示 |
||||
|
const isShowMainButton = (row, val) => { |
||||
|
if (val.indexOf(row.status) > -1) { |
||||
|
return false |
||||
|
} else { |
||||
|
return true |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 列表头部按钮 |
||||
|
const HeadButttondata = [ |
||||
|
// defaultButtons.defaultAddBtn({hasPermi:'wms:supplierinvoice-invoiced:create'}), // 新增 |
||||
|
// defaultButtons.defaultImportBtn({hasPermi:'wms:supplierinvoice-invoiced:import'}), // 导入 |
||||
|
// defaultButtons.defaultExportBtn({hasPermi:'wms:supplierinvoice-invoiced:export'}), // 导出 |
||||
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
||||
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
||||
|
defaultButtons.defaultSetBtn(null), // 设置 |
||||
|
// { |
||||
|
// label: '自定义扩展按钮', |
||||
|
// name: 'zdy', |
||||
|
// hide: false, |
||||
|
// type: 'primary', |
||||
|
// icon: 'Select', |
||||
|
// color: '' |
||||
|
// }, |
||||
|
] |
||||
|
|
||||
|
// 头部按钮事件 |
||||
|
const buttonBaseClick = (val, item) => { |
||||
|
if (val == 'add') { // 新增 |
||||
|
openForm('create') |
||||
|
} else if (val == 'import') { // 导入 |
||||
|
handleImport() |
||||
|
} else if (val == 'export') { // 导出 |
||||
|
handleExport() |
||||
|
} else if (val == 'refresh') { // 刷新 |
||||
|
getList() |
||||
|
} else if (val == 'filtrate') { // 筛选 |
||||
|
} else { // 其他按钮 |
||||
|
console.log('其他按钮', item) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
// 列表-操作按钮 |
||||
|
const butttondata = (row) =>{ |
||||
|
return [ |
||||
|
// defaultButtons.mainListEditBtn({hasPermi:'wms:supplierinvoice-invoiced:update'}), // 编辑 |
||||
|
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:supplierinvoice-invoiced:delete'}), // 删除 |
||||
|
// defaultButtons.mainListEditBtn({hasPermi:'wms:supplierinvoice-invoiced:update'}), |
||||
|
{ |
||||
|
label: '审核通过', |
||||
|
name: 'agree', |
||||
|
hide: isShowMainButton(row, ['1']), |
||||
|
type: 'primary', |
||||
|
color: '', |
||||
|
link: true, // 文本展现按钮 |
||||
|
hasPermi: '' |
||||
|
}, |
||||
|
{ |
||||
|
label: '审核拒绝', |
||||
|
name: 'refuse', |
||||
|
hide: isShowMainButton(row, ['1']), |
||||
|
type: 'danger', |
||||
|
color: '', |
||||
|
link: true, // 文本展现按钮 |
||||
|
hasPermi: '' |
||||
|
} |
||||
|
] |
||||
|
} |
||||
|
|
||||
|
// 列表-操作按钮事件 |
||||
|
const buttonTableClick = async (val, row) => { |
||||
|
if (val == 'edit') { // 编辑 |
||||
|
openForm('update', row) |
||||
|
} else if (val == 'delete') { // 删除 |
||||
|
handleDelete(row.id) |
||||
|
} else if(val == 'agree'){ |
||||
|
handleAgree(row.id) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/** 添加/修改操作 */ |
||||
|
const basicFormRef = ref() |
||||
|
const openForm = (type: string, row?: any) => { |
||||
|
basicFormRef.value.open(type, row) |
||||
|
} |
||||
|
|
||||
|
// form表单提交 |
||||
|
const formsSuccess = async (formType,data) => { |
||||
|
var isHave =SupplierinvoiceInvoiced.allSchemas.formSchema.some(function (item) { |
||||
|
return item.field === 'activeTime' || item.field === 'expireTime'; |
||||
|
}); |
||||
|
if(isHave){ |
||||
|
if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){ |
||||
|
message.error('失效时间要大于生效时间') |
||||
|
return; |
||||
|
} |
||||
|
} |
||||
|
if(data.activeTime==0)data.activeTime = null; |
||||
|
if(data.expireTime==0)data.expireTime = null; |
||||
|
if (formType === 'create') { |
||||
|
await SupplierinvoiceInvoicedApi.createSupplierinvoiceInvoiced(data) |
||||
|
message.success(t('common.createSuccess')) |
||||
|
} else { |
||||
|
await SupplierinvoiceInvoicedApi.updateSupplierinvoiceInvoiced(data) |
||||
|
message.success(t('common.updateSuccess')) |
||||
|
} |
||||
|
basicFormRef.value.dialogVisible = false |
||||
|
getList() |
||||
|
} |
||||
|
|
||||
|
/** 详情操作 */ |
||||
|
const detailRef = ref() |
||||
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
||||
|
detailRef.value.openDetail(row, titleName, titleValue, 'basicSupplierinvoiceInvoiced') |
||||
|
} |
||||
|
|
||||
|
/** 删除按钮操作 */ |
||||
|
const handleDelete = async (id: number) => { |
||||
|
try { |
||||
|
// 删除的二次确认 |
||||
|
await message.delConfirm() |
||||
|
// 发起删除 |
||||
|
await SupplierinvoiceInvoicedApi.deleteSupplierinvoiceInvoiced(id) |
||||
|
message.success(t('common.delSuccess')) |
||||
|
// 刷新列表 |
||||
|
await getList() |
||||
|
} catch {} |
||||
|
} |
||||
|
|
||||
|
/** 审批通过按钮操作 */ |
||||
|
const handleAgree = async (id : number) => { |
||||
|
try { |
||||
|
// 审批通过的二次确认 |
||||
|
await message.confirm('是否审批通过所选中数据?') |
||||
|
tableObject.loading = true |
||||
|
// 发起审批通过 |
||||
|
await SupplierinvoiceInvoicedApi.agreeSupplierinvoiceInvoiced(id) |
||||
|
message.success(t('审批通过成功!')) |
||||
|
tableObject.loading = false |
||||
|
// 刷新列表 |
||||
|
await getList() |
||||
|
} catch { }finally{ |
||||
|
tableObject.loading = false |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/** 审批通过按钮操作 */ |
||||
|
const handleRefuse = async (id : number) => { |
||||
|
try { |
||||
|
// 审批通过的二次确认 |
||||
|
await message.confirm('是否审批拒绝所选中数据?') |
||||
|
tableObject.loading = true |
||||
|
// 发起审批通过 |
||||
|
await SupplierinvoiceInvoicedApi.refuseSupplierinvoiceInvoiced(id) |
||||
|
message.success(t('审批成功!')) |
||||
|
tableObject.loading = false |
||||
|
// 刷新列表 |
||||
|
await getList() |
||||
|
} catch { }finally{ |
||||
|
tableObject.loading = false |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/** 导出按钮操作 */ |
||||
|
const exportLoading = ref(false) // 导出的加载中 |
||||
|
const handleExport = async () => { |
||||
|
try { |
||||
|
// 导出的二次确认 |
||||
|
await message.exportConfirm() |
||||
|
// 发起导出 |
||||
|
exportLoading.value = true |
||||
|
const data = await SupplierinvoiceInvoicedApi.exportSupplierinvoiceInvoiced(tableObject.params) |
||||
|
download.excel(data, '待开票.xlsx') |
||||
|
} catch { |
||||
|
} finally { |
||||
|
exportLoading.value = false |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/** 导入 */ |
||||
|
const importFormRef = ref() |
||||
|
const handleImport = () => { |
||||
|
importFormRef.value.open() |
||||
|
} |
||||
|
// 导入附件弹窗所需的参数 |
||||
|
const importTemplateData = reactive({ |
||||
|
templateUrl: '', |
||||
|
templateTitle: '待开票导入模版.xlsx' |
||||
|
}) |
||||
|
// 导入成功之后 |
||||
|
const importSuccess = () => { |
||||
|
getList() |
||||
|
} |
||||
|
|
||||
|
// 筛选提交 |
||||
|
const searchFormClick = (searchData) => { |
||||
|
tableObject.params = { |
||||
|
isSearch: true, |
||||
|
filters: searchData.filters |
||||
|
} |
||||
|
getList() // 刷新当前列表 |
||||
|
} |
||||
|
|
||||
|
/** 初始化 **/ |
||||
|
onMounted(async () => { |
||||
|
getList() |
||||
|
// importTemplateData.templateUrl = await SupplierinvoiceInvoicedApi.importTemplate() |
||||
|
}) |
||||
|
|
||||
|
</script> |
@ -0,0 +1,168 @@ |
|||||
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
||||
|
import { dateFormatter } from '@/utils/formatTime' |
||||
|
|
||||
|
// 表单校验
|
||||
|
export const SupplierinvoiceInvoicedRules = reactive({ |
||||
|
supplierCode: [required], |
||||
|
poNumber: [required], |
||||
|
currency: [required], |
||||
|
concurrencyStamp: [required], |
||||
|
}) |
||||
|
|
||||
|
export const SupplierinvoiceInvoiced = useCrudSchemas(reactive<CrudSchema[]>([ |
||||
|
{ |
||||
|
label: '项目编码', |
||||
|
field: 'projectCode', |
||||
|
sort: 'custom', |
||||
|
isSearch: true, |
||||
|
table: { |
||||
|
width: 150 |
||||
|
}, |
||||
|
}, |
||||
|
{ |
||||
|
label: '单据类型', |
||||
|
field: 'billType', |
||||
|
sort: 'custom', |
||||
|
form: { |
||||
|
component: 'SelectV2' |
||||
|
}, |
||||
|
table: { |
||||
|
width: 150 |
||||
|
}, |
||||
|
}, |
||||
|
{ |
||||
|
label: '状态', |
||||
|
field: 'status', |
||||
|
dictType: DICT_TYPE.SUPPLIERINVOICE_STATUS, |
||||
|
dictClass: 'string', |
||||
|
isTable: true, |
||||
|
isForm:false, |
||||
|
sort: 'custom', |
||||
|
table: { |
||||
|
width: 150 |
||||
|
}, |
||||
|
isSearch: true, |
||||
|
form: { |
||||
|
value: '1', |
||||
|
componentProps: { |
||||
|
disabled: true |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
{ |
||||
|
label: '单据号', |
||||
|
field: 'recvBillNum', |
||||
|
sort: 'custom', |
||||
|
isSearch: true, |
||||
|
table: { |
||||
|
width: 150 |
||||
|
}, |
||||
|
}, |
||||
|
{ |
||||
|
label: '发货单号', |
||||
|
field: 'asnBillNum', |
||||
|
sort: 'custom', |
||||
|
table: { |
||||
|
width: 150 |
||||
|
}, |
||||
|
}, |
||||
|
{ |
||||
|
label: '供应商代码', |
||||
|
field: 'supplierCode', |
||||
|
sort: 'custom', |
||||
|
table: { |
||||
|
width: 150 |
||||
|
}, |
||||
|
}, |
||||
|
{ |
||||
|
label: '订单号', |
||||
|
field: 'poNumber', |
||||
|
sort: 'custom', |
||||
|
table: { |
||||
|
width: 150 |
||||
|
}, |
||||
|
}, |
||||
|
{ |
||||
|
label: '订单行', |
||||
|
field: 'poLine', |
||||
|
sort: 'custom', |
||||
|
table: { |
||||
|
width: 150 |
||||
|
}, |
||||
|
}, |
||||
|
{ |
||||
|
label: '采购价格', |
||||
|
field: 'purchasePrice', |
||||
|
sort: 'custom', |
||||
|
table: { |
||||
|
width: 150 |
||||
|
}, |
||||
|
}, |
||||
|
{ |
||||
|
label: '可开票数量', |
||||
|
field: 'invoicableQuantity', |
||||
|
sort: 'custom', |
||||
|
table: { |
||||
|
width: 150 |
||||
|
}, |
||||
|
}, |
||||
|
{ |
||||
|
label: '零件号', |
||||
|
field: 'itemCode', |
||||
|
sort: 'custom', |
||||
|
table: { |
||||
|
width: 150 |
||||
|
}, |
||||
|
}, |
||||
|
{ |
||||
|
label: '计量单位', |
||||
|
field: 'uom', |
||||
|
sort: 'custom', |
||||
|
table: { |
||||
|
width: 150 |
||||
|
}, |
||||
|
}, |
||||
|
{ |
||||
|
label: '货币', |
||||
|
field: 'currency', |
||||
|
sort: 'custom', |
||||
|
table: { |
||||
|
width: 150 |
||||
|
}, |
||||
|
}, |
||||
|
{ |
||||
|
label: '备注', |
||||
|
field: 'remark', |
||||
|
sort: 'custom', |
||||
|
table: { |
||||
|
width: 150 |
||||
|
}, |
||||
|
}, |
||||
|
{ |
||||
|
label: '创建时间', |
||||
|
field: 'createTime', |
||||
|
sort: 'custom', |
||||
|
formatter: dateFormatter, |
||||
|
search: { |
||||
|
component: 'DatePicker', |
||||
|
componentProps: { |
||||
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
||||
|
type: 'daterange', |
||||
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
||||
|
} |
||||
|
}, |
||||
|
table: { |
||||
|
width: 150 |
||||
|
}, |
||||
|
isForm: false, |
||||
|
}, |
||||
|
{ |
||||
|
label: '操作', |
||||
|
field: 'action', |
||||
|
isForm: false, |
||||
|
table: { |
||||
|
width: 200, |
||||
|
fixed: 'right' |
||||
|
} |
||||
|
} |
||||
|
])) |
Loading…
Reference in new issue