Browse Source

12.15 质量管理基础信息维护和抽样方案管理动态列

java8
yuejiayang 2 years ago
parent
commit
e9ddb77168
  1. 172
      src/views/modules/qc/qcItem.vue
  2. 119
      src/views/modules/qc/qcMethod.vue
  3. 322
      src/views/modules/qc/qcPartAttribute.vue
  4. 119
      src/views/modules/qc/qcSamplingInspectionLevel.vue
  5. 149
      src/views/modules/qc/qcSamplingInspectionPlan.vue
  6. 163
      src/views/modules/qc/qcSamplingInspectionProgramme.vue
  7. 125
      src/views/modules/qc/qcSamplingInspectionQty.vue
  8. 131
      src/views/modules/qc/qcSamplingInspectionQtyRank.vue
  9. 172
      src/views/modules/qc/qcTemplate.vue

172
src/views/modules/qc/qcItem.vue

@ -239,6 +239,10 @@
inspectionTypeSearch, //
queryMethodList //
} from "@/api/qc/qc.js"
import {
getTableDefaultListLanguage,
getTableUserListLanguage,
} from "@/api/table.js"
import Chooselist from '@/views/modules/common/Chooselist_eam'
import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js'
import qcUpload from "./qc_upload";
@ -315,6 +319,12 @@
//
columnList: [
{
userId: this.$store.state.user.name,
functionId: 301002,
serialNumber: '301002TableItemNo',
tableId: "301002Table",
tableName: "检验项目维护表",
columnWidth: 99,
columnProp: 'itemNo',
headerAlign: 'center',
align: "center",
@ -327,6 +337,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301002,
serialNumber: '301002TableItemDesc',
tableId: "301002Table",
tableName: "检验项目维护表",
columnWidth: 85,
columnProp: 'itemDesc',
headerAlign: 'center',
align: "center",
@ -339,6 +355,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301002,
serialNumber: '301002TableMethodName',
tableId: "301002Table",
tableName: "检验项目维护表",
columnWidth: 85,
columnProp: 'methodName',
headerAlign: 'center',
align: "center",
@ -351,6 +373,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301002,
serialNumber: '301002TableMethodRemark',
tableId: "301002Table",
tableName: "检验项目维护表",
columnWidth: 85,
columnProp: 'methodRemark',
headerAlign: 'center',
align: "center",
@ -363,6 +391,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301002,
serialNumber: '301002TableValueType',
tableId: "301002Table",
tableName: "检验项目维护表",
columnWidth: 85,
columnProp: 'valueType',
headerAlign: 'center',
align: "center",
@ -375,6 +409,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301002,
serialNumber: '301002TableInspectionTypeName',
tableId: "301002Table",
tableName: "检验项目维护表",
columnWidth: 85,
columnProp: 'inspectionTypeName',
headerAlign: 'center',
align: "center",
@ -387,6 +427,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301002,
serialNumber: '301002TableDefaultValue',
tableId: "301002Table",
tableName: "检验项目维护表",
columnWidth: 85,
columnProp: 'defaultValue',
headerAlign: 'center',
align: "right",
@ -399,6 +445,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301002,
serialNumber: '301002TableMaxValue',
tableId: "301002Table",
tableName: "检验项目维护表",
columnWidth: 85,
columnProp: 'maxValue',
headerAlign: 'center',
align: "right",
@ -411,6 +463,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301002,
serialNumber: '301002TableMinValue',
tableId: "301002Table",
tableName: "检验项目维护表",
columnWidth: 85,
columnProp: 'minValue',
headerAlign: 'center',
align: "right",
@ -423,6 +481,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301002,
serialNumber: '301002TableSamplingProgrammeDesc',
tableId: "301002Table",
tableName: "检验项目维护表",
columnWidth: 85,
columnProp: 'samplingProgrammeDesc',
headerAlign: 'center',
align: "center",
@ -435,6 +499,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301002,
serialNumber: '301002TableSamplingLevelDesco',
tableId: "301002Table",
tableName: "检验项目维护表",
columnWidth: 85,
columnProp: 'samplingLevelDesc',
headerAlign: 'center',
align: "center",
@ -447,6 +517,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301002,
serialNumber: '301002TableItemSamplingQuantity',
tableId: "301002Table",
tableName: "检验项目维护表",
columnWidth: 85,
columnProp: 'itemSamplingQuantity',
headerAlign: 'center',
align: "right",
@ -459,6 +535,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301002,
serialNumber: '301002TableDefaultSamplingProportion',
tableId: "301002Table",
tableName: "检验项目维护表",
columnWidth: 85,
columnProp: 'defaultSamplingProportion',
headerAlign: 'center',
align: "right",
@ -471,6 +553,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301002,
serialNumber: '301002TableCreatedDate',
tableId: "301002Table",
tableName: "检验项目维护表",
columnWidth: 85,
columnProp: 'createdDate',
headerAlign: 'center',
align: "center",
@ -483,6 +571,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301002,
serialNumber: '301002TableCreatedBy',
tableId: "301002Table",
tableName: "检验项目维护表",
columnWidth: 85,
columnProp: 'createdBy',
headerAlign: 'center',
align: "center",
@ -495,6 +589,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301002,
serialNumber: '301002TableUpdateDate',
tableId: "301002Table",
tableName: "检验项目维护表",
columnWidth: 85,
columnProp: 'updateDate',
headerAlign: 'center',
align: "center",
@ -507,6 +607,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301002,
serialNumber: '301002TableUpdateBy',
tableId: "301002Table",
tableName: "检验项目维护表",
columnWidth: 85,
columnProp: 'updateBy',
headerAlign: 'center',
align: "center",
@ -615,6 +721,8 @@
this.getDataList()
this.favoriteIsOk()
this.inspectionTypeSearch()
//
this.getTableUserColumn(this.$route.meta.menuId+'table',1)
},
methods: {
/**
@ -959,7 +1067,71 @@
this.$refs.qcUpload.init(currentData);
})
},
//
async getTableUserColumn(tableId, columnId) {
let queryTableUser = {
userId: this.$store.state.user.name,
functionId: this.$route.meta.menuId,
tableId: tableId,
status: true,
languageCode: this.$i18n.locale
}
await getTableUserListLanguage(queryTableUser).then(({data}) => {
if (data.rows.length > 0) {
//this.columnList1 = []
switch (columnId) {
case 1:
this.columnList = data.rows
break;
// case 2:
// this.columnDetailList = data.rows
// break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
}
} else {
this.getColumnList(tableId, columnId)
}
})
},
// tableDefault
async getColumnList(tableId, columnId) {
this.queryTable.tableId = tableId
let queryTable= {
functionId: this.$route.meta.menuId,
tableId: tableId,
languageCode: this.$i18n.locale
}
await getTableDefaultListLanguage(queryTable).then(({data}) => {
if (!data.rows.length == 0) {
switch (columnId) {
case 1:
this.columnList = data.rows
break;
// case 2:
// this.columnDetailList = data.rows
// break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
}
} else {
// this.showDefault = true.
}
})
},
//
}
}
</script>

119
src/views/modules/qc/qcMethod.vue

@ -149,6 +149,10 @@
qcMethodDelete, //
inspectionTypeSearch, //
} from "@/api/qc/qc.js"
import {
getTableDefaultListLanguage,
getTableUserListLanguage,
} from "@/api/table.js"
import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js'
export default {
data () {
@ -197,6 +201,12 @@
//
columnList: [
{
userId: this.$store.state.user.name,
functionId: 301001,
serialNumber: '301001TableMethodNo',
tableId: "301001Table",
tableName: "检验方法维护表",
columnWidth: 185,
columnProp: 'methodNo',
headerAlign: 'center',
align: "center",
@ -209,6 +219,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301001,
serialNumber: '301001TableMethodName',
tableId: "301001Table",
tableName: "检验方法维护表",
columnWidth: 182,
columnProp: 'methodName',
headerAlign: 'center',
align: "center",
@ -221,6 +237,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301001,
serialNumber: '301001TableMethodRemark',
tableId: "301001Table",
tableName: "检验方法维护表",
columnWidth: 182,
columnProp: 'methodRemark',
headerAlign: 'center',
align: "center",
@ -233,6 +255,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301001,
serialNumber: '301001TableInspectionTypeName',
tableId: "301001Table",
tableName: "检验方法维护表",
columnWidth: 182,
columnProp: 'inspectionTypeName',
headerAlign: 'center',
align: "center",
@ -245,6 +273,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301001,
serialNumber: '301001TableCreateDate',
tableId: "301001Table",
tableName: "检验方法维护表",
columnWidth: 182,
columnProp: 'createDate',
headerAlign: 'center',
align: "center",
@ -257,6 +291,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301001,
serialNumber: '301001TableCreateBy',
tableId: "301001Table",
tableName: "检验方法维护表",
columnWidth: 182,
columnProp: 'createBy',
headerAlign: 'center',
align: "center",
@ -269,6 +309,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301001,
serialNumber: '301001TableUpdateDate',
tableId: "301001Table",
tableName: "检验方法维护表",
columnWidth: 182,
columnProp: 'updateDate',
headerAlign: 'center',
align: "center",
@ -281,6 +327,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301001,
serialNumber: '301001TableUpdateBy',
tableId: "301001Table",
tableName: "检验方法维护表",
columnWidth: 182,
columnProp: 'updateBy',
headerAlign: 'center',
align: "center",
@ -321,6 +373,8 @@
this.getDataList()
this.favoriteIsOk()
this.inspectionTypeSearch()
//
this.getTableUserColumn(this.$route.meta.menuId+'table',1)
},
methods: {
/**
@ -557,6 +611,71 @@
let s = eval("(" + json + ")")
return s
},
//
async getTableUserColumn(tableId, columnId) {
let queryTableUser = {
userId: this.$store.state.user.name,
functionId: this.$route.meta.menuId,
tableId: tableId,
status: true,
languageCode: this.$i18n.locale
}
await getTableUserListLanguage(queryTableUser).then(({data}) => {
if (data.rows.length > 0) {
//this.columnList1 = []
switch (columnId) {
case 1:
this.columnList = data.rows
break;
// case 2:
// this.columnDetailList = data.rows
// break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
}
} else {
this.getColumnList(tableId, columnId)
}
})
},
// tableDefault
async getColumnList(tableId, columnId) {
this.queryTable.tableId = tableId
let queryTable= {
functionId: this.$route.meta.menuId,
tableId: tableId,
languageCode: this.$i18n.locale
}
await getTableDefaultListLanguage(queryTable).then(({data}) => {
if (!data.rows.length == 0) {
switch (columnId) {
case 1:
this.columnList = data.rows
break;
// case 2:
// this.columnDetailList = data.rows
// break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
}
} else {
// this.showDefault = true.
}
})
},
//
}
}
</script>

322
src/views/modules/qc/qcPartAttribute.vue

@ -134,19 +134,19 @@
border
v-loading="dataListLoading"
style="width: 100%;">
<el-table-column
prop="templateId"
header-align="center"
align="center"
label="模板编码">
</el-table-column>
<el-table-column
prop="templateName"
header-align="center"
align="left"
label="模板名称"
:width="flexColumnWidth2('模板名称','templateName')">
</el-table-column>
<!-- <el-table-column-->
<!-- prop="templateId"-->
<!-- header-align="center"-->
<!-- align="center"-->
<!-- label="模板编码">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="templateName"-->
<!-- header-align="center"-->
<!-- align="left"-->
<!-- label="模板名称"-->
<!-- :width="flexColumnWidth2('模板名称','templateName')">-->
<!-- </el-table-column>-->
<el-table-column
v-for="(item,index) in columnDetailList" :key="index"
:sortable="item.columnSortable"
@ -162,24 +162,24 @@
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
<el-table-column
prop="operation"
header-align="center"
align="center"
label="工序">
</el-table-column>
<el-table-column
prop="resourceID"
header-align="center"
align="center"
label="机台">
</el-table-column>
<el-table-column
prop="manufacturerName"
header-align="center"
align="center"
label="供应商">
</el-table-column>
<!-- <el-table-column-->
<!-- prop="operation"-->
<!-- header-align="center"-->
<!-- align="center"-->
<!-- label="工序">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="resourceID"-->
<!-- header-align="center"-->
<!-- align="center"-->
<!-- label="机台">-->
<!-- </el-table-column>-->
<!-- <el-table-column-->
<!-- prop="manufacturerName"-->
<!-- header-align="center"-->
<!-- align="center"-->
<!-- label="供应商">-->
<!-- </el-table-column>-->
<el-table-column
prop=""
header-align="center"
@ -572,6 +572,10 @@
getManufacturerList, //
getAllResourceList //
} from "@/api/qc/qc.js"
import {
getTableDefaultListLanguage,
getTableUserListLanguage,
} from "@/api/table.js"
import Chooselist from '@/views/modules/common/Chooselist_eam'
import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js'
import qcUpload from "./qc_upload";
@ -636,6 +640,12 @@
},
columnList: [
{
userId: this.$store.state.user.name,
functionId: 301003,
serialNumber: '301003Table1PartNo',
tableId: "301003Table1",
tableName: "物料属性设置表",
columnWidth: 146,
columnProp: 'partNo',
headerAlign: "center",
align: "center",
@ -648,6 +658,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301003,
serialNumber: '301003Table1PartDesc',
tableId: "301003Table1",
tableName: "物料属性设置表",
columnWidth: 144,
columnProp: 'partDesc',
headerAlign: "center",
align: "left",
@ -660,6 +676,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301003,
serialNumber: '301003Table1FamilyName',
tableId: "301003Table1",
tableName: "物料属性设置表",
columnWidth: 144,
columnProp: 'familyName',
headerAlign: "center",
align: "center",
@ -672,6 +694,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301003,
serialNumber: '301003Table1Umid',
tableId: "301003Table1",
tableName: "物料属性设置表",
columnWidth: 144,
columnProp: 'umid',
headerAlign: "center",
align: "center",
@ -683,19 +711,13 @@
status: true,
fixed: '',
},
// {
// columnProp: 'supplierDesc',
// headerAlign: "center",
// align: "center",
// columnLabel: '',
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// },
{
userId: this.$store.state.user.name,
functionId: 301003,
serialNumber: '301003Table1ExemptInspection',
tableId: "301003Table1",
tableName: "物料属性设置表",
columnWidth: 144,
columnProp: 'exemptInspection',
headerAlign: "center",
align: "center",
@ -708,6 +730,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301003,
serialNumber: '301003Table1AttributeRemark',
tableId: "301003Table1",
tableName: "物料属性设置表",
columnWidth: 144,
columnProp: 'attributeRemark',
headerAlign: "center",
align: "center",
@ -720,6 +748,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301003,
serialNumber: '301003Table1CreateTime',
tableId: "301003Table1",
tableName: "物料属性设置表",
columnWidth: 144,
columnProp: 'createTime',
headerAlign: "center",
align: "center",
@ -732,6 +766,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301003,
serialNumber: '301003Table1CreateBy',
tableId: "301003Table1",
tableName: "物料属性设置表",
columnWidth: 144,
columnProp: 'createBy',
headerAlign: "center",
align: "center",
@ -744,6 +784,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301003,
serialNumber: '301003Table1UpdateDate',
tableId: "301003Table1",
tableName: "物料属性设置表",
columnWidth: 144,
columnProp: 'updateDate',
headerAlign: "center",
align: "center",
@ -756,6 +802,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301003,
serialNumber: '301003Table1UpdateBy',
tableId: "301003Table1",
tableName: "物料属性设置表",
columnWidth: 144,
columnProp: 'updateBy',
headerAlign: "center",
align: "center",
@ -775,6 +827,48 @@
//
columnDetailList: [
{
userId: this.$store.state.user.name,
functionId: 301003,
serialNumber: '301003Table2TemplateId',
tableId: "301003Table2",
tableName: "检验模板清单表",
columnWidth: 80,
columnProp: 'templateId',
headerAlign: "center",
align: "center",
columnLabel: '模板编码',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301003,
serialNumber: '301003Table2TemplateName',
tableId: "301003Table2",
tableName: "检验模板清单表",
columnWidth: 137,
columnProp: 'templateName',
headerAlign: "center",
align: "center",
columnLabel: '模板名称',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301003,
serialNumber: '301003Table2InspectionTypeName',
tableId: "301003Table2",
tableName: "检验模板清单表",
columnWidth: 80,
columnProp: 'inspectionTypeName',
headerAlign: "center",
align: "center",
@ -787,6 +881,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301003,
serialNumber: '301003Table2TemplateVersion',
tableId: "301003Table2",
tableName: "检验模板清单表",
columnWidth: 80,
columnProp: 'templateVersion',
headerAlign: "center",
align: "center",
@ -799,6 +899,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301003,
serialNumber: '301003Table2DefaultSamplingQuantity',
tableId: "301003Table2",
tableName: "检验模板清单表",
columnWidth: 80,
columnProp: 'defaultSamplingQuantity',
headerAlign: "center",
align: "right",
@ -811,6 +917,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301003,
serialNumber: '301003Table2DefaultSamplingProportion',
tableId: "301003Table2",
tableName: "检验模板清单表",
columnWidth: 80,
columnProp: 'defaultSamplingProportion',
headerAlign: "center",
align: "right",
@ -822,6 +934,60 @@
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301003,
serialNumber: '301003Table2OperationDesc',
tableId: "301003Table2",
tableName: "检验模板清单表",
columnWidth: 80,
columnProp: 'operationDesc',
headerAlign: "center",
align: "center",
columnLabel: '工序',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301003,
serialNumber: '301003Table2ResourceDesc',
tableId: "301003Table2",
tableName: "检验模板清单表",
columnWidth: 80,
columnProp: 'resourceDesc',
headerAlign: "center",
align: "center",
columnLabel: '机台',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301003,
serialNumber: '301003Table2ManufacturerName',
tableId: "301003Table2",
tableName: "检验模板清单表",
columnWidth: 80,
columnProp: 'manufacturerName',
headerAlign: "center",
align: "center",
columnLabel: '供应商',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
],
//
fastAddFlag:false,
@ -890,6 +1056,9 @@
this.getDataList();
this.favoriteIsOk();
this.inspectionTypeSearch();
//
this.getTableUserColumn(this.$route.meta.menuId+'table1',1)
this.getTableUserColumn(this.$route.meta.menuId+'table2',2)
},
methods: {
@ -1560,7 +1729,72 @@
this.selectionManufacturer.push(this.dataListManufacturerSelections[i].manufacturerID)
}
this.manufacturerModelFlag = false
}
},
//
async getTableUserColumn(tableId, columnId) {
let queryTableUser = {
userId: this.$store.state.user.name,
functionId: this.$route.meta.menuId,
tableId: tableId,
status: true,
languageCode: this.$i18n.locale
}
await getTableUserListLanguage(queryTableUser).then(({data}) => {
if (data.rows.length > 0) {
//this.columnList1 = []
switch (columnId) {
case 1:
this.columnList = data.rows
break;
case 2:
this.columnDetailList = data.rows
break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
}
} else {
this.getColumnList(tableId, columnId)
}
})
},
// tableDefault
async getColumnList(tableId, columnId) {
this.queryTable.tableId = tableId
let queryTable= {
functionId: this.$route.meta.menuId,
tableId: tableId,
languageCode: this.$i18n.locale
}
await getTableDefaultListLanguage(queryTable).then(({data}) => {
if (!data.rows.length == 0) {
switch (columnId) {
case 1:
this.columnList = data.rows
break;
case 2:
this.columnDetailList = data.rows
break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
}
} else {
// this.showDefault = true.
}
})
},
//
}
}
</script>

119
src/views/modules/qc/qcSamplingInspectionLevel.vue

@ -145,6 +145,10 @@
samplingLevelUpdate, //
samplingLevelDelete, //
} from "@/api/qc/qc.js"
import {
getTableDefaultListLanguage,
getTableUserListLanguage,
} from "@/api/table.js"
import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js'
export default {
watch: {
@ -185,6 +189,12 @@
//
columnList: [
{
userId: this.$store.state.user.name,
functionId: 301011,
serialNumber: '301011TableSamplingLevelNo',
tableId: "301011Table",
tableName: "检验水平表",
columnWidth: 185,
columnProp: 'samplingLevelNo',
headerAlign: 'center',
align: "center",
@ -197,6 +207,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301011,
serialNumber: '301011TableSamplingLevelDesc',
tableId: "301011Table",
tableName: "检验水平表",
columnWidth: 182,
columnProp: 'samplingLevelDesc',
headerAlign: 'center',
align: "center",
@ -209,6 +225,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301011,
serialNumber: '301011TableSamplingLevelRemark',
tableId: "301011Table",
tableName: "检验水平表",
columnWidth: 182,
columnProp: 'samplingLevelRemark',
headerAlign: 'center',
align: "center",
@ -221,6 +243,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301011,
serialNumber: '301011TableSamplingLevelActive',
tableId: "301011Table",
tableName: "检验水平表",
columnWidth: 182,
columnProp: 'samplingLevelActive',
headerAlign: 'center',
align: "center",
@ -233,6 +261,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301011,
serialNumber: '301011TableCreateDate',
tableId: "301011Table",
tableName: "检验水平表",
columnWidth: 182,
columnProp: 'createDate',
headerAlign: 'center',
align: "center",
@ -245,6 +279,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301011,
serialNumber: '301011TableCreateBy',
tableId: "301011Table",
tableName: "检验水平表",
columnWidth: 182,
columnProp: 'createBy',
headerAlign: 'center',
align: "center",
@ -257,6 +297,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301011,
serialNumber: '301011TableUpdateDate',
tableId: "301011Table",
tableName: "检验水平表",
columnWidth: 182,
columnProp: 'updateDate',
headerAlign: 'center',
align: "center",
@ -269,6 +315,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301011,
serialNumber: '301011TableUpdateBy',
tableId: "301011Table",
tableName: "检验水平表",
columnWidth: 182,
columnProp: 'updateBy',
headerAlign: 'center',
align: "center",
@ -307,6 +359,8 @@
created () {
this.getDataList()
this.favoriteIsOk()
//
this.getTableUserColumn(this.$route.meta.menuId+'table',1)
},
methods: {
/**
@ -526,6 +580,71 @@
return s
},
// end
//
async getTableUserColumn(tableId, columnId) {
let queryTableUser = {
userId: this.$store.state.user.name,
functionId: this.$route.meta.menuId,
tableId: tableId,
status: true,
languageCode: this.$i18n.locale
}
await getTableUserListLanguage(queryTableUser).then(({data}) => {
if (data.rows.length > 0) {
//this.columnList1 = []
switch (columnId) {
case 1:
this.columnList = data.rows
break;
// case 2:
// this.columnDetailList = data.rows
// break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
}
} else {
this.getColumnList(tableId, columnId)
}
})
},
// tableDefault
async getColumnList(tableId, columnId) {
this.queryTable.tableId = tableId
let queryTable= {
functionId: this.$route.meta.menuId,
tableId: tableId,
languageCode: this.$i18n.locale
}
await getTableDefaultListLanguage(queryTable).then(({data}) => {
if (!data.rows.length == 0) {
switch (columnId) {
case 1:
this.columnList = data.rows
break;
// case 2:
// this.columnDetailList = data.rows
// break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
}
} else {
// this.showDefault = true.
}
})
},
//
}
}
</script>

149
src/views/modules/qc/qcSamplingInspectionPlan.vue

@ -208,6 +208,10 @@
samplingInspectionPlanUpdate, //
samplingInspectionPlanDelete, //
} from "@/api/qc/qc.js"
import {
getTableDefaultListLanguage,
getTableUserListLanguage,
} from "@/api/table.js"
import Chooselist from '@/views/modules/common/Chooselist_eam'
import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js'
export default {
@ -285,6 +289,12 @@
//
columnList: [
{
userId: this.$store.state.user.name,
functionId: 301012,
serialNumber: '301012TableSamplingPlanNo',
tableId: "301012Table",
tableName: "样本量字码矩阵表",
columnWidth: 122,
columnProp: 'samplingPlanNo',
headerAlign: 'center',
align: "center",
@ -297,6 +307,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301012,
serialNumber: '301012TableSamplingPlanDesc',
tableId: "301012Table",
tableName: "样本量字码矩阵表",
columnWidth: 110,
columnProp: 'samplingPlanDesc',
headerAlign: 'center',
align: "center",
@ -309,6 +325,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301012,
serialNumber: '301012TableSamplingQtyDesc',
tableId: "301012Table",
tableName: "样本量字码矩阵表",
columnWidth: 110,
columnProp: 'samplingQtyDesc',
headerAlign: 'center',
align: "center",
@ -321,6 +343,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301012,
serialNumber: '301012TableSamplingQty',
tableId: "301012Table",
tableName: "样本量字码矩阵表",
columnWidth: 110,
columnProp: 'samplingQty',
headerAlign: 'center',
align: "right",
@ -333,6 +361,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301012,
serialNumber: '301012TableSamplingQtyRankDesc',
tableId: "301012Table",
tableName: "样本量字码矩阵表",
columnWidth: 110,
columnProp: 'samplingQtyRankDesc',
headerAlign: 'center',
align: "center",
@ -345,6 +379,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301012,
serialNumber: '301012TableMinQty',
tableId: "301012Table",
tableName: "样本量字码矩阵表",
columnWidth: 110,
columnProp: 'minQty',
headerAlign: 'center',
align: "right",
@ -357,6 +397,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301012,
serialNumber: '301012TableMaxQty',
tableId: "301012Table",
tableName: "样本量字码矩阵表",
columnWidth: 110,
columnProp: 'maxQty',
headerAlign: 'center',
align: "right",
@ -369,6 +415,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301012,
serialNumber: '301012TableSamplingLevelDesc',
tableId: "301012Table",
tableName: "样本量字码矩阵表",
columnWidth: 110,
columnProp: 'samplingLevelDesc',
headerAlign: 'center',
align: "center",
@ -381,6 +433,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301012,
serialNumber: '301012TableSamplingPlanActive',
tableId: "301012Table",
tableName: "样本量字码矩阵表",
columnWidth: 110,
columnProp: 'samplingPlanActive',
headerAlign: 'center',
align: "center",
@ -393,6 +451,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301012,
serialNumber: '301012TableCreateDate',
tableId: "301012Table",
tableName: "样本量字码矩阵表",
columnWidth: 110,
columnProp: 'createDate',
headerAlign: 'center',
align: "center",
@ -405,6 +469,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301012,
serialNumber: '301012TableCreateBy',
tableId: "301012Table",
tableName: "样本量字码矩阵表",
columnWidth: 110,
columnProp: 'createBy',
headerAlign: 'center',
align: "center",
@ -417,6 +487,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301012,
serialNumber: '301012TableUpdateDate',
tableId: "301012Table",
tableName: "样本量字码矩阵表",
columnWidth: 110,
columnProp: 'updateDate',
headerAlign: 'center',
align: "center",
@ -429,6 +505,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301012,
serialNumber: '301012TableUpdateBy',
tableId: "301012Table",
tableName: "样本量字码矩阵表",
columnWidth: 110,
columnProp: 'updateBy',
headerAlign: 'center',
align: "center",
@ -509,6 +591,8 @@
created () {
this.getDataList()
this.favoriteIsOk()
//
this.getTableUserColumn(this.$route.meta.menuId+'table',1)
},
methods: {
/**
@ -810,6 +894,71 @@
return s
},
// end
//
async getTableUserColumn(tableId, columnId) {
let queryTableUser = {
userId: this.$store.state.user.name,
functionId: this.$route.meta.menuId,
tableId: tableId,
status: true,
languageCode: this.$i18n.locale
}
await getTableUserListLanguage(queryTableUser).then(({data}) => {
if (data.rows.length > 0) {
//this.columnList1 = []
switch (columnId) {
case 1:
this.columnList = data.rows
break;
// case 2:
// this.columnDetailList = data.rows
// break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
}
} else {
this.getColumnList(tableId, columnId)
}
})
},
// tableDefault
async getColumnList(tableId, columnId) {
this.queryTable.tableId = tableId
let queryTable= {
functionId: this.$route.meta.menuId,
tableId: tableId,
languageCode: this.$i18n.locale
}
await getTableDefaultListLanguage(queryTable).then(({data}) => {
if (!data.rows.length == 0) {
switch (columnId) {
case 1:
this.columnList = data.rows
break;
// case 2:
// this.columnDetailList = data.rows
// break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
}
} else {
// this.showDefault = true.
}
})
},
//
}
}
</script>

163
src/views/modules/qc/qcSamplingInspectionProgramme.vue

@ -279,6 +279,10 @@
saveSamplingProgrammeDetails, //
deleteSamplingProgrammeDetails, //
} from "@/api/qc/qc.js"
import {
getTableDefaultListLanguage,
getTableUserListLanguage,
} from "@/api/table.js"
import Chooselist from '@/views/modules/common/Chooselist_eam'
import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js'
export default {
@ -334,6 +338,12 @@
},
columnList: [
{
userId: this.$store.state.user.name,
functionId: 301013,
serialNumber: '301013Table1SamplingProgrammeNo',
tableId: "301013Table1",
tableName: "抽样方案表",
columnWidth: 211,
columnProp: 'samplingProgrammeNo',
headerAlign: "center",
align: "center",
@ -346,6 +356,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301013,
serialNumber: '301013Table1SamplingProgrammeDesc',
tableId: "301013Table1",
tableName: "抽样方案表",
columnWidth: 208,
columnProp: 'samplingProgrammeDesc',
headerAlign: "center",
align: "center",
@ -358,6 +374,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301013,
serialNumber: '301013Table1SamplingProgrammeCode',
tableId: "301013Table1",
tableName: "抽样方案表",
columnWidth: 208,
columnProp: 'samplingProgrammeCode',
headerAlign: "center",
align: "center",
@ -370,6 +392,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301013,
serialNumber: '301013Table1CreateTime',
tableId: "301013Table1",
tableName: "抽样方案表",
columnWidth: 208,
columnProp: 'createTime',
headerAlign: "center",
align: "center",
@ -382,6 +410,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301013,
serialNumber: '301013Table1CreateBy',
tableId: "301013Table1",
tableName: "抽样方案表",
columnWidth: 208,
columnProp: 'createBy',
headerAlign: "center",
align: "center",
@ -394,6 +428,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301013,
serialNumber: '301013Table1UpdateDate',
tableId: "301013Table1",
tableName: "抽样方案表",
columnWidth: 208,
columnProp: 'updateDate',
headerAlign: "center",
align: "center",
@ -406,6 +446,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301013,
serialNumber: '301013Table1UpdateBy',
tableId: "301013Table1",
tableName: "抽样方案表",
columnWidth: 208,
columnProp: 'updateBy',
headerAlign: "center",
align: "center",
@ -432,6 +478,12 @@
//
columnDetailList: [
{
userId: this.$store.state.user.name,
functionId: 301013,
serialNumber: '301013Table2SamplingPlanNo',
tableId: "301013Table2",
tableName: "矩阵详情表",
columnWidth: 181,
columnProp: 'samplingPlanNo',
headerAlign: "center",
align: "center",
@ -444,6 +496,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301013,
serialNumber: '301013Table2SamplingPlanDesc',
tableId: "301013Table2",
tableName: "矩阵详情表",
columnWidth: 174,
columnProp: 'samplingPlanDesc',
headerAlign: "center",
align: "center",
@ -456,6 +514,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301013,
serialNumber: '301013Table2SamplingQtyDesc',
tableId: "301013Table2",
tableName: "矩阵详情表",
columnWidth: 174,
columnProp: 'samplingQtyDesc',
headerAlign: "center",
align: "center",
@ -468,6 +532,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301013,
serialNumber: '301013Table2SamplingQty',
tableId: "301013Table2",
tableName: "矩阵详情表",
columnWidth: 174,
columnProp: 'samplingQty',
headerAlign: "center",
align: "center",
@ -480,6 +550,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301013,
serialNumber: '301013Table2SamplingQtyRankDesc',
tableId: "301013Table2",
tableName: "矩阵详情表",
columnWidth: 174,
columnProp: 'samplingQtyRankDesc',
headerAlign: "center",
align: "center",
@ -492,6 +568,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301013,
serialNumber: '301013Table2MinQty',
tableId: "301013Table2",
tableName: "矩阵详情表",
columnWidth: 174,
columnProp: 'minQty',
headerAlign: "center",
align: "center",
@ -504,6 +586,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301013,
serialNumber: '301013Table2MaxQty',
tableId: "301013Table2",
tableName: "矩阵详情表",
columnWidth: 174,
columnProp: 'maxQty',
headerAlign: "center",
align: "center",
@ -516,6 +604,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301013,
serialNumber: '301013Table2SamplingLevelDesc',
tableId: "301013Table2",
tableName: "矩阵详情表",
columnWidth: 174,
columnProp: 'samplingLevelDesc',
headerAlign: "center",
align: "center",
@ -565,6 +659,9 @@
created () {
this.getDataList();
this.favoriteIsOk()
//
this.getTableUserColumn(this.$route.meta.menuId+'table1',1)
this.getTableUserColumn(this.$route.meta.menuId+'table2',2)
},
methods: {
/**
@ -930,6 +1027,72 @@
return s
},
// end
//
async getTableUserColumn(tableId, columnId) {
let queryTableUser = {
userId: this.$store.state.user.name,
functionId: this.$route.meta.menuId,
tableId: tableId,
status: true,
languageCode: this.$i18n.locale
}
await getTableUserListLanguage(queryTableUser).then(({data}) => {
if (data.rows.length > 0) {
//this.columnList1 = []
switch (columnId) {
case 1:
this.columnList = data.rows
break;
case 2:
this.columnDetailList = data.rows
break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
}
} else {
this.getColumnList(tableId, columnId)
}
})
},
// tableDefault
async getColumnList(tableId, columnId) {
this.queryTable.tableId = tableId
let queryTable= {
functionId: this.$route.meta.menuId,
tableId: tableId,
languageCode: this.$i18n.locale
}
await getTableDefaultListLanguage(queryTable).then(({data}) => {
if (!data.rows.length == 0) {
switch (columnId) {
case 1:
this.columnList = data.rows
break;
case 2:
this.columnDetailList = data.rows
break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
}
} else {
// this.showDefault = true.
}
})
},
//
}
}
</script>

125
src/views/modules/qc/qcSamplingInspectionQty.vue

@ -154,6 +154,10 @@
samplingQtyUpdate, //
samplingQtyDelete, //
} from "@/api/qc/qc.js"
import {
getTableDefaultListLanguage,
getTableUserListLanguage,
} from "@/api/table.js"
import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js'
export default {
watch: {
@ -209,6 +213,12 @@
//
columnList: [
{
userId: this.$store.state.user.name,
functionId: 301009,
serialNumber: '301009TableSamplingQtyNo',
tableId: "301009Table",
tableName: "样本大小表",
columnWidth: 163,
columnProp: 'samplingQtyNo',
headerAlign: 'center',
align: "center",
@ -221,6 +231,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301009,
serialNumber: '301009TableSamplingQtyDesc',
tableId: "301009Table",
tableName: "样本大小表",
columnWidth: 162,
columnProp: 'samplingQtyDesc',
headerAlign: 'center',
align: "center",
@ -233,6 +249,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301009,
serialNumber: '301009TableSamplingQty',
tableId: "301009Table",
tableName: "样本大小表",
columnWidth: 162,
columnProp: 'samplingQty',
headerAlign: 'center',
align: "right",
@ -245,6 +267,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301009,
serialNumber: '301009TableSamplingQtyRemark',
tableId: "301009Table",
tableName: "样本大小表",
columnWidth: 162,
columnProp: 'samplingQtyRemark',
headerAlign: 'center',
align: "center",
@ -257,6 +285,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301009,
serialNumber: '301009TableSamplingQtyActive',
tableId: "301009Table",
tableName: "样本大小表",
columnWidth: 162,
columnProp: 'samplingQtyActive',
headerAlign: 'center',
align: "center",
@ -269,6 +303,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301009,
serialNumber: '301009TableCreateDate',
tableId: "301009Table",
tableName: "样本大小表",
columnWidth: 162,
columnProp: 'createDate',
headerAlign: 'center',
align: "center",
@ -281,6 +321,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301009,
serialNumber: '301009TableCreateBy',
tableId: "301009Table",
tableName: "样本大小表",
columnWidth: 162,
columnProp: 'createBy',
headerAlign: 'center',
align: "center",
@ -293,6 +339,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301009,
serialNumber: '301009TableUpdateDate',
tableId: "301009Table",
tableName: "样本大小表",
columnWidth: 162,
columnProp: 'updateDate',
headerAlign: 'center',
align: "center",
@ -305,6 +357,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301009,
serialNumber: '301009TableUpdateBy',
tableId: "301009Table",
tableName: "样本大小表",
columnWidth: 162,
columnProp: 'updateBy',
headerAlign: 'center',
align: "center",
@ -350,6 +408,8 @@
created () {
this.getDataList()
this.favoriteIsOk()
//
this.getTableUserColumn(this.$route.meta.menuId+'table',1)
},
methods: {
// //
@ -543,6 +603,71 @@
return s
},
// end
//
async getTableUserColumn(tableId, columnId) {
let queryTableUser = {
userId: this.$store.state.user.name,
functionId: this.$route.meta.menuId,
tableId: tableId,
status: true,
languageCode: this.$i18n.locale
}
await getTableUserListLanguage(queryTableUser).then(({data}) => {
if (data.rows.length > 0) {
//this.columnList1 = []
switch (columnId) {
case 1:
this.columnList = data.rows
break;
// case 2:
// this.columnDetailList = data.rows
// break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
}
} else {
this.getColumnList(tableId, columnId)
}
})
},
// tableDefault
async getColumnList(tableId, columnId) {
this.queryTable.tableId = tableId
let queryTable= {
functionId: this.$route.meta.menuId,
tableId: tableId,
languageCode: this.$i18n.locale
}
await getTableDefaultListLanguage(queryTable).then(({data}) => {
if (!data.rows.length == 0) {
switch (columnId) {
case 1:
this.columnList = data.rows
break;
// case 2:
// this.columnDetailList = data.rows
// break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
}
} else {
// this.showDefault = true.
}
})
},
//
}
}
</script>

131
src/views/modules/qc/qcSamplingInspectionQtyRank.vue

@ -167,6 +167,10 @@
samplingQtyRankUpdate, //
samplingQtyRankDelete, //
} from "@/api/qc/qc.js"
import {
getTableDefaultListLanguage,
getTableUserListLanguage,
} from "@/api/table.js"
import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js'
export default {
watch: {
@ -209,6 +213,12 @@
//
columnList: [
{
userId: this.$store.state.user.name,
functionId: 301010,
serialNumber: '301010TableSamplingQtyRankNo',
tableId: "301010Table",
tableName: "批量级次表",
columnWidth: 154,
columnProp: 'samplingQtyRankNo',
headerAlign: 'center',
align: "center",
@ -221,6 +231,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301010,
serialNumber: '301010TableSamplingQtyRankDesc',
tableId: "301010Table",
tableName: "批量级次表",
columnWidth: 145,
columnProp: 'samplingQtyRankDesc',
headerAlign: 'center',
align: "center",
@ -233,6 +249,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301010,
serialNumber: '301010TableMinQty',
tableId: "301010Table",
tableName: "批量级次表",
columnWidth: 145,
columnProp: 'minQty',
headerAlign: 'center',
align: "right",
@ -245,6 +267,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301010,
serialNumber: '301010TableMaxQty',
tableId: "301010Table",
tableName: "批量级次表",
columnWidth: 145,
columnProp: 'maxQty',
headerAlign: 'center',
align: "right",
@ -257,6 +285,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301010,
serialNumber: '301010TableSamplingQtyRankRemark',
tableId: "301010Table",
tableName: "批量级次表",
columnWidth: 145,
columnProp: 'samplingQtyRankRemark',
headerAlign: 'center',
align: "center",
@ -269,6 +303,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301010,
serialNumber: '301010TableSamplingQtyRankActive',
tableId: "301010Table",
tableName: "批量级次表",
columnWidth: 145,
columnProp: 'samplingQtyRankActive',
headerAlign: 'center',
align: "center",
@ -281,6 +321,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301010,
serialNumber: '301010TableCreateDate',
tableId: "301010Table",
tableName: "批量级次表",
columnWidth: 145,
columnProp: 'createDate',
headerAlign: 'center',
align: "center",
@ -293,6 +339,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301010,
serialNumber: '301010TableCreateBy',
tableId: "301010Table",
tableName: "批量级次表",
columnWidth: 145,
columnProp: 'createBy',
headerAlign: 'center',
align: "center",
@ -305,6 +357,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301010,
serialNumber: '301010TableUpdateDate',
tableId: "301010Table",
tableName: "批量级次表",
columnWidth: 145,
columnProp: 'updateDate',
headerAlign: 'center',
align: "center",
@ -317,6 +375,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301010,
serialNumber: '301010TableUpdateBy',
tableId: "301010Table",
tableName: "批量级次表",
columnWidth: 145,
columnProp: 'updateBy',
headerAlign: 'center',
align: "center",
@ -369,6 +433,8 @@
created () {
this.getDataList()
this.favoriteIsOk()
//
this.getTableUserColumn(this.$route.meta.menuId+'table',1)
},
methods: {
/**
@ -600,6 +666,71 @@
return s
},
// end
//
async getTableUserColumn(tableId, columnId) {
let queryTableUser = {
userId: this.$store.state.user.name,
functionId: this.$route.meta.menuId,
tableId: tableId,
status: true,
languageCode: this.$i18n.locale
}
await getTableUserListLanguage(queryTableUser).then(({data}) => {
if (data.rows.length > 0) {
//this.columnList1 = []
switch (columnId) {
case 1:
this.columnList = data.rows
break;
// case 2:
// this.columnDetailList = data.rows
// break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
}
} else {
this.getColumnList(tableId, columnId)
}
})
},
// tableDefault
async getColumnList(tableId, columnId) {
this.queryTable.tableId = tableId
let queryTable= {
functionId: this.$route.meta.menuId,
tableId: tableId,
languageCode: this.$i18n.locale
}
await getTableDefaultListLanguage(queryTable).then(({data}) => {
if (!data.rows.length == 0) {
switch (columnId) {
case 1:
this.columnList = data.rows
break;
// case 2:
// this.columnDetailList = data.rows
// break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
}
} else {
// this.showDefault = true.
}
})
},
//
}
}
</script>

172
src/views/modules/qc/qcTemplate.vue

@ -428,6 +428,10 @@
saveItemDetailed, //
getItem, //
} from "@/api/qc/qc.js"
import {
getTableDefaultListLanguage,
getTableUserListLanguage,
} from "@/api/table.js"
import Chooselist from '@/views/modules/common/Chooselist_eam'
import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js'
import qcUpload from "./qc_upload";
@ -514,6 +518,12 @@
},
columnList: [
{
userId: this.$store.state.user.name,
functionId: 301008,
serialNumber: '301008TableItemNo',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 98,
columnProp: 'templateId',
headerAlign: "center",
align: "center",
@ -526,6 +536,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301008,
serialNumber: '301008TableItemNo',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
columnProp: 'templateName',
headerAlign: "center",
align: "center",
@ -538,6 +554,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301008,
serialNumber: '301008TableItemNo',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
columnProp: 'samplingProgrammeDesc',
headerAlign: "center",
align: "center",
@ -550,6 +572,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301008,
serialNumber: '301008TableItemNo',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
columnProp: 'samplingLevelDesc',
headerAlign: "center",
align: "center",
@ -562,6 +590,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301008,
serialNumber: '301008TableItemNo',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
columnProp: 'inspectionCycle',
headerAlign: "center",
align: "center",
@ -574,6 +608,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301008,
serialNumber: '301008TableItemNo',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
columnProp: 'defaultSamplingQuantity',
headerAlign: "center",
align: "center",
@ -586,6 +626,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301008,
serialNumber: '301008TableItemNo',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
columnProp: 'defaultSamplingProportion',
headerAlign: "center",
align: "center",
@ -598,6 +644,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301008,
serialNumber: '301008TableItemNo',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
columnProp: 'aql',
headerAlign: "center",
align: "center",
@ -610,6 +662,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301008,
serialNumber: '301008TableItemNo',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
columnProp: 'ac',
headerAlign: "center",
align: "center",
@ -622,6 +680,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301008,
serialNumber: '301008TableItemNo',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
columnProp: 're',
headerAlign: "center",
align: "center",
@ -634,6 +698,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301008,
serialNumber: '301008TableItemNo',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
columnProp: 'inspectionTypeName',
headerAlign: "center",
align: "center",
@ -646,6 +716,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301008,
serialNumber: '301008TableItemNo',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
columnProp: 'templateRemark',
headerAlign: "center",
align: "center",
@ -658,6 +734,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301008,
serialNumber: '301008TableItemNo',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
columnProp: 'templateVersion',
headerAlign: "center",
align: "center",
@ -670,6 +752,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301008,
serialNumber: '301008TableItemNo',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
columnProp: 'createTime',
headerAlign: "center",
align: "center",
@ -682,6 +770,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301008,
serialNumber: '301008TableItemNo',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
columnProp: 'createBy',
headerAlign: "center",
align: "center",
@ -694,6 +788,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301008,
serialNumber: '301008TableItemNo',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
columnProp: 'updateDate',
headerAlign: 'center',
align: 'center',
@ -706,6 +806,12 @@
fixed: '',
},
{
userId: this.$store.state.user.name,
functionId: 301008,
serialNumber: '301008TableItemNo',
tableId: "301008Table",
tableName: "检验模板维护表",
columnWidth: 84,
columnProp: 'updateBy',
headerAlign: 'center',
align: 'center',
@ -803,6 +909,8 @@
this.getDataList()
this.inspectionTypeSearch()
this.favoriteIsOk()
//
this.getTableUserColumn(this.$route.meta.menuId+'table',1)
},
methods: {
/**
@ -1320,7 +1428,71 @@
this.$refs.qcUpload.init(currentData);
})
},
//
async getTableUserColumn(tableId, columnId) {
let queryTableUser = {
userId: this.$store.state.user.name,
functionId: this.$route.meta.menuId,
tableId: tableId,
status: true,
languageCode: this.$i18n.locale
}
await getTableUserListLanguage(queryTableUser).then(({data}) => {
if (data.rows.length > 0) {
//this.columnList1 = []
switch (columnId) {
case 1:
this.columnList = data.rows
break;
// case 2:
// this.columnDetailList = data.rows
// break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
}
} else {
this.getColumnList(tableId, columnId)
}
})
},
// tableDefault
async getColumnList(tableId, columnId) {
this.queryTable.tableId = tableId
let queryTable= {
functionId: this.$route.meta.menuId,
tableId: tableId,
languageCode: this.$i18n.locale
}
await getTableDefaultListLanguage(queryTable).then(({data}) => {
if (!data.rows.length == 0) {
switch (columnId) {
case 1:
this.columnList = data.rows
break;
// case 2:
// this.columnDetailList = data.rows
// break;
// case 3:
// this.columnList2 = data.rows
// break;
// case 4:
// this.columnList3 = data.rows
// break;
}
} else {
// this.showDefault = true.
}
})
},
//
}
}
</script>

Loading…
Cancel
Save