Browse Source

Merge remote-tracking branch 'origin/master_hella' into master_hella

master_hella_20240701
gaojs 7 months ago
parent
commit
7ceae9cf4b
  1. 7
      src/components/Detail/src/Detail.vue
  2. 7
      src/views/qms/aql/aql.data.ts
  3. 8
      src/views/qms/inspectionMethod/inspectionMethod.data.ts
  4. 7
      src/views/qms/sampleCode/sampleCode.data.ts
  5. 8
      src/views/qms/samplingProcess/samplingProcess.data.ts
  6. 8
      src/views/qms/samplingScheme/samplingScheme.data.ts

7
src/components/Detail/src/Detail.vue

@ -111,15 +111,17 @@
@handleAnnexSuccess="handleAnnexSuccess" @handleAnnexSuccess="handleAnnexSuccess"
@deleteAnnexSuccess="deleteAnnexSuccess" @deleteAnnexSuccess="deleteAnnexSuccess"
:upData="remarksData.data" :upData="remarksData.data"
:key="count"
/> />
<!-- 备注组件 --> <!-- 备注组件 -->
<Remarks v-show="tabsList[current].label=='备注'" <Remarks v-show="tabsList[current].label=='备注'"
:remarksData="remarksData" :remarksData="remarksData"
class="mt-20px" class="mt-20px"
@remarksSubmitScuess="remarksSubmitScuess" @remarksSubmitScuess="remarksSubmitScuess"
:key="count"
/> />
<!-- 变更记录组件 --> <!-- 变更记录组件 -->
<ChangeRecord v-show="tabsList[current].label=='变更记录'" :changeRecordData="changeRecordData" class="mt-20px" /> <ChangeRecord v-show="tabsList[current].label=='变更记录'" :changeRecordData="changeRecordData" class="mt-20px" :key="count"/>
</ElScrollbar> </ElScrollbar>
</ContentWrap> </ContentWrap>
</div> </div>
@ -362,7 +364,6 @@ const otherList = [...props.annexTable,{
label:'变更记录', label:'变更记录',
prop:'ChangeRecord' prop:'ChangeRecord'
}] }]
tabsList.value = [...tabsList?.value,...otherList] tabsList.value = [...tabsList?.value,...otherList]
if (!tabsList.value || tabsList.value && tabsList.value.length == otherList.length) { if (!tabsList.value || tabsList.value && tabsList.value.length == otherList.length) {
@ -498,6 +499,7 @@ const searchTableFormType = ref('') // 表单的类型:create - 新增;updat
const formRef = ref() const formRef = ref()
const titleNameRef = ref() const titleNameRef = ref()
const titleValueRef = ref() const titleValueRef = ref()
const count =ref(0)
const openDetail = async (row: any, titleName: any, titleValue: any, tableName: any) => { const openDetail = async (row: any, titleName: any, titleValue: any, tableName: any) => {
titleNameRef.value = titleName titleNameRef.value = titleName
titleValueRef.value = titleValue titleValueRef.value = titleValue
@ -505,6 +507,7 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName:
tableId: row.id, tableId: row.id,
tableName: tableName tableName: tableName
} }
count.value++
// //
if (!props.isBasic) { if (!props.isBasic) {
// id // id

7
src/views/qms/aql/aql.data.ts

@ -64,13 +64,6 @@ export const AqlRules = reactive({
}) })
const samplingSchemeList = await getSamplingScheme() const samplingSchemeList = await getSamplingScheme()
export const Aql = useCrudSchemas(reactive<CrudSchema[]>([ export const Aql = useCrudSchemas(reactive<CrudSchema[]>([
{
label: 'id',
field: 'id',
sort: 'custom',
isTable: false,
isForm: false,
},
{ {
label: '采样方案编码', label: '采样方案编码',
field: 'code', field: 'code',

8
src/views/qms/inspectionMethod/inspectionMethod.data.ts

@ -3,18 +3,10 @@ import { dateFormatter } from '@/utils/formatTime'
// 表单校验 // 表单校验
export const InspectionMethodRules = reactive({ export const InspectionMethodRules = reactive({
// available: [required],
description: [required], description: [required],
}) })
export const InspectionMethod = useCrudSchemas(reactive<CrudSchema[]>([ export const InspectionMethod = useCrudSchemas(reactive<CrudSchema[]>([
{
label: 'id',
field: 'id',
sort: 'custom',
isTable: false,
isForm: false,
},
{ {
label: '编码', label: '编码',
field: 'code', field: 'code',

7
src/views/qms/sampleCode/sampleCode.data.ts

@ -13,13 +13,6 @@ export const SampleCodeRules = reactive({
}) })
const samplingSchemeList = await getSamplingScheme() const samplingSchemeList = await getSamplingScheme()
export const SampleCode = useCrudSchemas(reactive<CrudSchema[]>([ export const SampleCode = useCrudSchemas(reactive<CrudSchema[]>([
{
label: 'id',
field: 'id',
sort: 'custom',
isTable: false,
isForm: false,
},
{ {
label: '采样方案编码', label: '采样方案编码',
field: 'code', field: 'code',

8
src/views/qms/samplingProcess/samplingProcess.data.ts

@ -5,18 +5,10 @@ import { dateFormatter } from '@/utils/formatTime'
export const SamplingProcessRules = reactive({ export const SamplingProcessRules = reactive({
sampleType: [required], sampleType: [required],
evaluationMode: [required], evaluationMode: [required],
// available: [required],
description: [required], description: [required],
}) })
export const SamplingProcess = useCrudSchemas(reactive<CrudSchema[]>([ export const SamplingProcess = useCrudSchemas(reactive<CrudSchema[]>([
{
label: 'id',
field: 'id',
sort: 'custom',
isTable: false,
isForm: false,
},
{ {
label: '编码', label: '编码',
field: 'code', field: 'code',

8
src/views/qms/samplingScheme/samplingScheme.data.ts

@ -3,18 +3,10 @@ import { dateFormatter } from '@/utils/formatTime'
// 表单校验 // 表单校验
export const SamplingSchemeRules = reactive({ export const SamplingSchemeRules = reactive({
// available: [required],
description: [required], description: [required],
}) })
export const SamplingScheme = useCrudSchemas(reactive<CrudSchema[]>([ export const SamplingScheme = useCrudSchemas(reactive<CrudSchema[]>([
{
label: 'id',
field: 'id',
sort: 'custom',
isTable: false,
isForm: false,
},
{ {
label: '编码', label: '编码',
field: 'code', field: 'code',

Loading…
Cancel
Save