This commit is contained in:
2022-10-09 11:31:54 +08:00
parent 5a08d8c1dd
commit 1047dd78ec
8 changed files with 40 additions and 12 deletions

View File

@@ -120,6 +120,7 @@ const addOrUpdateConfigs = {
{
name: 'sort',
label: i18n.t('ws.sort'),
type: 'number',
rules: [{ type: 'number', message: i18n.t('hints.number'), trigger: 'blur', transform: val => Number(val) }]
},
{
@@ -307,8 +308,8 @@ export default {
// destroy dialog
handleDestroyDialog() {
setTimeout(() => {
this.addOrUpdateVisible= false
}, /** after dialog animated */ 200);
this.addOrUpdateVisible = false
}, /** after dialog animated */ 200)
},
// 获取产线列表,用于刷新工段列表
getPlList() {

View File

@@ -78,7 +78,7 @@ const tableConfigStatic = [
]
const tableConfigDynamic = [
{ type: 'index', width: 100, name: i18n.t('index') },
{ name: i18n.t('inspect.type'), prop: 'inspectionContent' },
{ name: i18n.t('inspect.det'), prop: 'inspectionContent' },
/** dynamic */
{ name: i18n.t('inspect.typetotal'), prop: '' },
{ name: i18n.t('inspect.rate'), prop: '' }
@@ -282,7 +282,7 @@ export default {
this.tableConfigDynamic = [
{ type: 'index', width: 100, name: i18n.t('index') },
{ name: i18n.t('inspect.type'), prop: 'inspectionContent' },
{ name: i18n.t('inspect.det'), prop: 'inspectionContent' },
...subProps,
{ name: i18n.t('inspect.typetotal'), prop: 'sumInput' },
{ name: i18n.t('inspect.rate'), prop: 'scrapRatio', filter: val => (val || val === 0 ? `${val}%` : '-') }

View File

@@ -55,7 +55,7 @@ const addOrUpdateConfigs = {
fields: [
{ name: 'typeId', label: i18n.t('inspect.type'), required: true, type: 'select', options: [] },
{ name: 'content', label: i18n.t('inspect.det'), required: true },
{ name: 'code', label: i18n.t('inspect.detcode'), api: '/monitoring/qualityInspectionDet/getCode' },
{ name: 'code', label: i18n.t('inspect.code'), api: '/monitoring/qualityInspectionDet/getCode' },
'remark'
],
operations: [

View File

@@ -106,7 +106,7 @@ export default {
}
}
},
methods: {
methods: {
init(id) {
this.dataForm.id = id || 0
this.visible = true

View File

@@ -91,7 +91,7 @@ export default {
}
}
},
methods: {
methods: {
init(id) {
this.dataForm.id = id || 0
this.visible = true

View File

@@ -42,7 +42,15 @@
<!-- <el-button type="text" v-if="!showAttrForm" @click="addEq">{{ $t('add') }}</el-button> -->
</h3>
<div class="table" v-if="!showAttrForm">
<base-table :page="page" :size="limit" :data="eqList" :table-head-configs="tableProps" :max-height="calcMaxHeight(8)" @operate-event="handleOperations" @refreshDataList="getDataList" />
<base-table
:page="page"
:size="limit"
:data="eqList"
:table-head-configs="tableProps"
:max-height="calcMaxHeight(8)"
@operate-event="handleOperations"
@refreshDataList="getDataList"
/>
<el-pagination
@size-change="sizeChangeHandle"
@current-change="currentChangeHandle"
@@ -78,7 +86,7 @@ const tableProps = [
name: i18n.t('index')
},
{ name: i18n.t('eq.name'), prop: 'equipmentName' },
{ name: i18n.t('dept.sort'), prop: 'sort' },
{ name: i18n.t('dept.sort'), prop: 'sort' }
// {
// name: i18n.t('handle'),
// prop: 'operations',
@@ -123,7 +131,7 @@ export default {
mounted() {
this.getLineList()
},
methods: {
methods: {
init(id) {
this.dataForm = {
id: null,