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' import request from '@/config/axios'
export interface DynamicRuleVO { export interface DynamicRuleVO {
number: string code: string
describe: string description: string
available: string available: string
deletionTime: Date deletionTime: Date
deleterId: string deleterId: string

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

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

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

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

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

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

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

@ -27,9 +27,9 @@
v-model:currentPage="tableObject.currentPage" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<template #number="{row}"> <template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.number)"> <el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.number }}</span> <span>{{ row.code }}</span>
</el-button> </el-button>
</template> </template>
<template #action="{ row }"> <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[]>([ export const InspectionStage = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '编码', label: '编码',
field: 'number', field: 'code',
sort: 'custom', sort: 'custom',
isSearch: true isSearch: true
}, },
@ -31,7 +31,7 @@ export const InspectionStage = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '描述', label: '描述',
field: 'describe', field: 'description',
sort: 'custom', sort: 'custom',
isSearch: true isSearch: true
}, },

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

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

Loading…
Cancel
Save