Browse Source

动态规则number改回code

master_hella_20240701
ljlong_2630 8 months ago
parent
commit
aa122c2070
  1. 4
      src/api/qms/dynamicRule/index.ts
  2. 4
      src/api/qms/inspectionStage/index.ts
  3. 2
      src/api/qms/selectedSet/index.ts
  4. 8
      src/views/qms/basicDataManage/dynamicRule/dynamicRule.data.ts
  5. 6
      src/views/qms/basicDataManage/dynamicRule/index.vue
  6. 4
      src/views/qms/basicDataManage/inspectionStage/inspectionStage.data.ts
  7. 2
      src/views/qms/basicDataManage/selectedSet/selectedSet.data.ts

4
src/api/qms/dynamicRule/index.ts

@ -1,8 +1,8 @@
import request from '@/config/axios'
export interface DynamicRuleVO {
number: string
describe: string
code: string
description: string
available: string
deletionTime: Date
deleterId: string

4
src/api/qms/inspectionStage/index.ts

@ -1,10 +1,10 @@
import request from '@/config/axios'
export interface InspectionStageVO {
number: string
code: string
masterId: number
dynamicModifyCode: string
describe: string
description: string
okTimes: number
okTimeStage: number
noOkTimes: number

2
src/api/qms/selectedSet/index.ts

@ -3,7 +3,7 @@ import request from '@/config/axios'
export interface SelectedSetVO {
id: number
code: string
describe: string
description: string
classification: string
available: string
deletionTime: Date

8
src/views/qms/basicDataManage/dynamicRule/dynamicRule.data.ts

@ -12,20 +12,20 @@ const trueFalse = [{
// 表单校验
export const DynamicRuleRules = reactive({
describe: [required]
description: [required]
})
export const DynamicRule = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '编码',
field: 'number',
field: 'code',
sort: 'custom',
isSearch: true,
isForm: false,
},
{
label: '描述',
field: 'describe',
field: 'description',
sort: 'custom',
isSearch: true
},
@ -57,7 +57,7 @@ export const InspectionStage = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '描述',
field: 'describe',
field: 'description',
sort: 'custom',
isSearch: true
},

6
src/views/qms/basicDataManage/dynamicRule/index.vue

@ -27,9 +27,9 @@
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #number="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.number)">
<span>{{ row.number }}</span>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>
<template #action="{ row }">

4
src/views/qms/basicDataManage/inspectionStage/inspectionStage.data.ts

@ -19,7 +19,7 @@ export const InspectionStageRules = reactive({
export const InspectionStage = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '编码',
field: 'number',
field: 'code',
sort: 'custom',
isSearch: true
},
@ -31,7 +31,7 @@ export const InspectionStage = useCrudSchemas(reactive<CrudSchema[]>([
},
{
label: '描述',
field: 'describe',
field: 'description',
sort: 'custom',
isSearch: true
},

2
src/views/qms/basicDataManage/selectedSet/selectedSet.data.ts

@ -23,7 +23,7 @@ export const SelectedSet = useCrudSchemas(reactive<CrudSchema[]>([
},
{
label: '描述',
field: 'describe',
field: 'description',
sort: 'custom',
isSearch: true
},

Loading…
Cancel
Save