|
@ -27,13 +27,22 @@ |
|
|
</ContentWrap> |
|
|
</ContentWrap> |
|
|
|
|
|
|
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
<BasicForm ref="formRef" @success="getList" :rules="InspectionJobMainRules" |
|
|
<!-- <BasicForm ref="formRef" @success="getList" :rules="InspectionJobMainRules" |
|
|
:formAllSchemas="InspectionJobMain.allSchemas" :tableAllSchemas="InspectionJobDetail.allSchemas" |
|
|
:formAllSchemas="InspectionJobMain.allSchemas" :tableAllSchemas="InspectionJobDetail.allSchemas" |
|
|
:tableFormRules="InspectionJobDetailRules" :tableData="tableData" |
|
|
:tableFormRules="InspectionJobDetailRules" :tableData="tableData" |
|
|
:apiUpdate="InspectionJobMainApi.updateInspectionJobMain" :apiCreate="InspectionJobMainApi.createInspectionJobMain" |
|
|
:apiUpdate="InspectionJobMainApi.updateInspectionJobMain" :apiCreate="InspectionJobMainApi.createInspectionJobMain" |
|
|
:isBusiness="true" @handleAddTable="handleAddTable" @handleDeleteTable="handleDeleteTable" |
|
|
:isBusiness="true" @handleAddTable="handleAddTable" @handleDeleteTable="handleDeleteTable" |
|
|
@searchTableSuccess="searchTableSuccess" @submitForm="submitForm" /> |
|
|
@searchTableSuccess="searchTableSuccess" @submitForm="submitForm" /> --> |
|
|
|
|
|
<AddForm |
|
|
|
|
|
ref="basicFormRef" |
|
|
|
|
|
basicFormWidth="80" |
|
|
|
|
|
:formAllSchemasFeatures="InspectionTemplateFeatures.allSchemas" |
|
|
|
|
|
:formAllSchemasProcess="InspectionTemplateProcess.allSchemas" |
|
|
|
|
|
:formAllSchemasMain="InspectionTemplateMain.allSchemas" |
|
|
|
|
|
:rules="InspectionTemplateRules" |
|
|
|
|
|
:formAllSchemas="InspectionJobMain.allSchemas" |
|
|
|
|
|
@submitForm="submitForm" |
|
|
|
|
|
/> |
|
|
<!-- 详情 --> |
|
|
<!-- 详情 --> |
|
|
<Detail ref="detailRef" :isBasic="false" :allSchemas="InspectionJobMain.allSchemas" |
|
|
<Detail ref="detailRef" :isBasic="false" :allSchemas="InspectionJobMain.allSchemas" |
|
|
:detailAllSchemas="InspectionJobDetail.allSchemas" :detailAllSchemasRules="InspectionJobDetailRules" |
|
|
:detailAllSchemas="InspectionJobDetail.allSchemas" :detailAllSchemasRules="InspectionJobDetailRules" |
|
@ -51,11 +60,15 @@ |
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
import download from '@/utils/download' |
|
|
import download from '@/utils/download' |
|
|
import { InspectionJobMain, InspectionJobMainRules, InspectionJobDetail, InspectionJobDetailRules } from './inspectionJobMain.data' |
|
|
import { InspectionJobMain, InspectionJobMainRules, InspectionJobDetail, InspectionJobDetailRules } from './inspectionJobMain.data' |
|
|
|
|
|
import { InspectionTemplateMain,InspectionTemplateProcess,InspectionTemplateFeatures,InspectionTemplateRules } from '../../basicDataManage/inspectionTemplate/inspectionTemplate.data' |
|
|
|
|
|
|
|
|
import * as InspectionJobMainApi from '@/api/qms/inspectionJob/inspectionJobMain' |
|
|
import * as InspectionJobMainApi from '@/api/qms/inspectionJob/inspectionJobMain' |
|
|
import * as InspectionJobDetailApi from '@/api/qms/inspectionJob/inspectionJobDetail' |
|
|
import * as InspectionJobDetailApi from '@/api/qms/inspectionJob/inspectionJobDetail' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
|
|
|
import AddForm from './addForm.vue' |
|
|
|
|
|
import * as InspectionPlanApi from '@/api/qms/inspectionPlan' |
|
|
|
|
|
|
|
|
// 采购订单 |
|
|
// 采购订单 |
|
|
defineOptions({ name: 'InspectionJobMain' }) |
|
|
defineOptions({ name: 'InspectionJobMain' }) |
|
@ -160,18 +173,19 @@ |
|
|
// 列表-操作按钮 |
|
|
// 列表-操作按钮 |
|
|
const butttondata = (row) => { |
|
|
const butttondata = (row) => { |
|
|
return [ |
|
|
return [ |
|
|
// defaultButtons.mainListOrderCOMPLETEBtn({ hide: isShowMainButton(row, ['INCOMPLETE']) }), // 完成 |
|
|
// defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 |
|
|
// defaultButtons.mainListEditBtn(null), // 编辑 |
|
|
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchasereceipt-job-main:close'}), // 关闭 |
|
|
// defaultButtons.mainListDeleteBtn(null), // 删除 |
|
|
// defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 |
|
|
|
|
|
defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
// 列表-操作按钮事件 |
|
|
const buttonTableClick = async (val, row) => { |
|
|
const buttonTableClick = async (val, row) => { |
|
|
if (val == 'edit') { // 编辑 |
|
|
if (val == 'mainJobExe') { // 执行 |
|
|
openForm('update', row) |
|
|
execute('update', row) |
|
|
} |
|
|
} |
|
|
else if (val == 'delete') { // 删除 |
|
|
else if (val == 'mainJobClo') { // 关闭 |
|
|
handleDelete(row.id) |
|
|
handleDelete(row.id) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -188,7 +202,12 @@ |
|
|
const openDetail = (row : any, titleName : any, titleValue : any) => { |
|
|
const openDetail = (row : any, titleName : any, titleValue : any) => { |
|
|
detailRef.value.openDetail(row, titleName, titleValue, 'basicInspectionJobMain') |
|
|
detailRef.value.openDetail(row, titleName, titleValue, 'basicInspectionJobMain') |
|
|
} |
|
|
} |
|
|
|
|
|
//执行 |
|
|
|
|
|
|
|
|
|
|
|
const basicFormRef = ref() |
|
|
|
|
|
const execute = async (type : string, row ?: number) => { |
|
|
|
|
|
basicFormRef.value.open(type, row) |
|
|
|
|
|
} |
|
|
/** 删除按钮操作 */ |
|
|
/** 删除按钮操作 */ |
|
|
const handleDelete = async (id : number) => { |
|
|
const handleDelete = async (id : number) => { |
|
|
try { |
|
|
try { |
|
|