Browse Source

修改bug

master
songguoqiang 12 months ago
parent
commit
2d4f65c431
  1. 4
      src/components/ImportForm/src/DetecImportForm.vue
  2. 8
      src/layout/components/ToolHeader.vue
  3. 2
      src/views/detection/records/records.data.ts
  4. 55
      src/views/spc/detectiontemplate/detectionTemplate.data.ts
  5. 1
      src/views/spc/detectiontemplate/index.vue
  6. 28
      src/views/spc/detectiontemplate/templateItemDetails.data.ts
  7. 36
      src/views/spc/itembasic/itembasic.data.ts
  8. 6
      src/views/tjanalysis/zlanalysis/index.vue

4
src/components/ImportForm/src/DetecImportForm.vue

@ -30,10 +30,10 @@
<el-option v-for=" (item) in itemList" :key="item" :label="item.code" :value="item.code" /> <el-option v-for=" (item) in itemList" :key="item" :label="item.code" :value="item.code" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="检测类型" style="width: calc(22%)"> <el-form-item label="检测模版类型" style="width: calc(22%)">
<el-select <el-select
v-model="queryParams.detectionType" v-model="queryParams.detectionType"
placeholder="请选择检测类型" placeholder="请选择检测模版类型"
clearable clearable
style="width: 100%" style="width: 100%"
@change="detectionTypeChange" @change="detectionTypeChange"

8
src/layout/components/ToolHeader.vue

@ -64,15 +64,15 @@ export default defineComponent({
{size.value ? ( {size.value ? (
<SizeDropdown class="custom-hover" color="var(--top-header-text-color)"></SizeDropdown> <SizeDropdown class="custom-hover" color="var(--top-header-text-color)"></SizeDropdown>
) : undefined} ) : undefined}
{locale.value ? ( {/* {locale.value ? (
<LocaleDropdown <LocaleDropdown
class="custom-hover" class="custom-hover"
color="var(--top-header-text-color)" color="var(--top-header-text-color)"
></LocaleDropdown> ></LocaleDropdown>
) : undefined} ) : undefined} */}
{message.value ? ( {/* {message.value ? (
<Message class="custom-hover" color="var(--top-header-text-color)"></Message> <Message class="custom-hover" color="var(--top-header-text-color)"></Message>
) : undefined} ) : undefined} */}
<UserInfo></UserInfo> <UserInfo></UserInfo>
</div> </div>
</div> </div>

2
src/views/detection/records/records.data.ts

@ -38,7 +38,7 @@ export const Records = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '物料编码', label: '检测模版类型',
field: 'itemCode', field: 'itemCode',
isSearch: true, isSearch: true,
search: { search: {

55
src/views/spc/detectiontemplate/detectionTemplate.data.ts

@ -71,13 +71,39 @@ export const DetectionTemplate = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '检测模版类型',
field: 'itemType',
dictType: DICT_TYPE.ITEMBASIC_TYPE,
dictClass: 'string',
isTable: true,
isSearch:true,
// table: {
// width: 100
// } ,
search:{
componentProps: {
// inactiveValue: 'DISABLE',
// activeValue: 'ENABLE',
filterable:true
}
},
form: {
component: 'Select',
componentProps: {
// inactiveValue: 'DISABLE',
// activeValue: 'ENABLE',
}
},
},
{ {
label: '模版名称', label: '模版名称',
field: 'name', field: 'name',
}, },
{ {
label: '色差行数', label: '色差检测点位数',
field: 'lineNumber', field: 'lineNumber',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
@ -142,32 +168,7 @@ export const DetectionTemplate = useCrudSchemas(reactive<CrudSchema[]>([
isTable:false, isTable:false,
isForm:false isForm:false
}, },
{
label: '物料类型',
field: 'itemType',
dictType: DICT_TYPE.ITEMBASIC_TYPE,
dictClass: 'string',
isTable: true,
isSearch:true,
// table: {
// width: 100
// } ,
search:{
componentProps: {
// inactiveValue: 'DISABLE',
// activeValue: 'ENABLE',
filterable:true
}
},
form: {
component: 'Select',
componentProps: {
// inactiveValue: 'DISABLE',
// activeValue: 'ENABLE',
}
},
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

1
src/views/spc/detectiontemplate/index.vue

@ -193,6 +193,7 @@ const searchTableSuccess = (formField, searchField, val, formRef,type,row) => {
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
setV['itemName'] = val[0]['name'] setV['itemName'] = val[0]['name']
setV['projectName'] = val[0]['projectName'] setV['projectName'] = val[0]['projectName']
setV['isShow'] = true
formRef.setValues(setV) formRef.setValues(setV)
} }
}) })

28
src/views/spc/detectiontemplate/templateItemDetails.data.ts

@ -52,20 +52,20 @@ export const TemplateItemDetails = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{ // {
label: '级别', // label: '级别',
field: 'ranks', // field: 'ranks',
sort: 'custom', // sort: 'custom',
dictType: DICT_TYPE.ITEMBASIC_RANK, // dictType: DICT_TYPE.ITEMBASIC_RANK,
isSearch: false, // isSearch: false,
form: { // form: {
component: 'Select', // component: 'Select',
componentProps: { // componentProps: {
// inactiveValue: 'DISABLE', // // inactiveValue: 'DISABLE',
// activeValue: 'ENABLE', // // activeValue: 'ENABLE',
} // }
}, // },
}, // },
{ {
label: '上限', label: '上限',

36
src/views/spc/itembasic/itembasic.data.ts

@ -74,25 +74,25 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
isTable:true, isTable:true,
}, },
{ // {
label: '颜色', // label: '颜色',
field: 'color', // field: 'color',
sort: 'custom', // sort: 'custom',
dictType: DICT_TYPE.ITEM_COLOR, // dictType: DICT_TYPE.ITEM_COLOR,
dictClass: 'string', // dictClass: 'string',
isTable: true, // isTable: true,
table: { // table: {
width: 100 // width: 100
} , // } ,
// form: { // // form: {
// component: 'Select', // // component: 'Select',
// componentProps: { // // componentProps: {
// // inactiveValue: 'DISABLE', // // // inactiveValue: 'DISABLE',
// // activeValue: 'ENABLE', // // // activeValue: 'ENABLE',
// } // // }
// }, // // },
}, // },
{ {
label: '创建时间', label: '创建时间',

6
src/views/tjanalysis/zlanalysis/index.vue

@ -30,10 +30,10 @@
<el-option v-for=" (item) in itemList" :key="item" :label="item.name" :value="item.code" /> <el-option v-for=" (item) in itemList" :key="item" :label="item.name" :value="item.code" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="物料类型" style="width: calc(20% - 32px)"> <el-form-item label="检测模版类型" style="width: calc(20% - 32px)">
<el-select <el-select
v-model="queryParams.detectionType" v-model="queryParams.detectionType"
placeholder="请选择检测类型" placeholder="请选择检测模版类型"
clearable clearable
style="width: 100%" style="width: 100%"
@change="detectionItemChange" @change="detectionItemChange"
@ -53,7 +53,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="行号" style="width: calc(20% - 32px)" v-if="isShow"> <el-form-item label="检测点位" style="width: calc(20% - 32px)" v-if="isShow">
<el-select <el-select
v-model="queryParams.lineNumber" v-model="queryParams.lineNumber"
placeholder="请选择行号类型" placeholder="请选择行号类型"

Loading…
Cancel
Save