diff --git a/src/api/qc/qc.js b/src/api/qc/qc.js
index c6bbc67..6b29d6d 100644
--- a/src/api/qc/qc.js
+++ b/src/api/qc/qc.js
@@ -182,3 +182,4 @@ export const getIPQCItemObjectList = data => createAPI(`/pms/qc/getIPQCItemObjec
export const getInspectionStandards = data => createAPI(`/pms/qc/getInspectionStandards`,'post',data)
export const saveInspectionStandard = data => createAPI(`/pms/qc/saveInspectionStandard`,'post',data)
export const dataAcquisitionByItem = data => createAPI(`/pms/qc/dataAcquisitionByItem`,'post',data)
+export const getSiteAndBuByUserName2 = data => createAPI(`/pms/qc/getSiteAndBuByUserName2`,'post',data)
diff --git a/src/router/index.js b/src/router/index.js
index b1c448c..40ff78d 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -20,6 +20,7 @@ const _import = require('./import-' + process.env.NODE_ENV)
const globalRoutes = [
{ path: '/404', component: _import('common/404'), name: '404', meta: { title: '404未找到' } },
{ path: '/login', component: _import('common/login'), name: 'login', meta: { title: '登录' } },
+ { path: '/login-token', component: _import('common/login-token'), name: 'login', meta: { title: '登录' } },
]
// 主入口路由(需嵌套上左右整体布局)
diff --git a/src/views/common/login-token.vue b/src/views/common/login-token.vue
new file mode 100644
index 0000000..4530e49
--- /dev/null
+++ b/src/views/common/login-token.vue
@@ -0,0 +1,242 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/qc/FAIResultEntry.vue b/src/views/modules/qc/FAIResultEntry.vue
index ffb3b7a..f39a76a 100644
--- a/src/views/modules/qc/FAIResultEntry.vue
+++ b/src/views/modules/qc/FAIResultEntry.vue
@@ -11,12 +11,12 @@
-
+
+ :value = "i.buNo">
@@ -264,7 +264,7 @@
-
+
@@ -319,7 +319,7 @@
-
+
@@ -328,7 +328,7 @@
-
+
@@ -940,6 +940,7 @@
queryPartList, // 查询物料集合
umSearch, // 查询单位列表
getSiteAndBuByUserName,
+ getSiteAndBuByUserName2,
searchSeqInfo, // 派工单号查询
actionFAIInspection, // 开始检验
dataAcquisition, // 数据采集
@@ -1028,7 +1029,7 @@
inspectionResult: '',
orderNo: '',
operationDesc: '',
- buDesc: '',
+ buNo: '',
startDate: '',
endDate: '',
startDate2: '',
@@ -1066,7 +1067,7 @@
submit_flag: '',
seqNo: '',
batchRollNo: '',
- spec: '',
+ invdefinetype: '',
orderNo: '',
sku: '',
cinvSourceCode: '',
@@ -1322,31 +1323,31 @@
{
userId: this.$store.state.user.name,
functionId: 301007,
- serialNumber: '301007Table1Spec',
+ serialNumber: '301007Table1PartDesc',
tableId: "301007Table1",
tableName: "FQC检验记录表",
- columnProp: 'spec',
+ columnProp: 'partDesc',
headerAlign: "center",
align: "left",
- columnLabel: '物料类别',
+ columnLabel: '物料名称',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 200,
+ columnWidth: 300,
},
{
userId: this.$store.state.user.name,
functionId: 301007,
- serialNumber: '301007Table1CinvSourceCode',
+ serialNumber: '301007Table1Sku',
tableId: "301007Table1",
tableName: "FQC检验记录表",
- columnProp: 'cinvSourceCode',
+ columnProp: 'sku',
headerAlign: "center",
align: "center",
- columnLabel: 'PN',
+ columnLabel: 'SKU',
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1358,13 +1359,13 @@
{
userId: this.$store.state.user.name,
functionId: 301007,
- serialNumber: '301007Table1Sku',
+ serialNumber: '301007Table1CinvSourceCode',
tableId: "301007Table1",
tableName: "FQC检验记录表",
- columnProp: 'sku',
+ columnProp: 'cinvSourceCode',
headerAlign: "center",
align: "center",
- columnLabel: 'SKU',
+ columnLabel: 'PN',
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1376,20 +1377,20 @@
{
userId: this.$store.state.user.name,
functionId: 301007,
- serialNumber: '301007Table1PartDesc',
+ serialNumber: '301007Table1Invdefinetype',
tableId: "301007Table1",
tableName: "FQC检验记录表",
- columnProp: 'partDesc',
+ columnProp: 'invdefinetype',
headerAlign: "center",
align: "left",
- columnLabel: '物料名称',
+ columnLabel: '物料类别',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 300,
+ columnWidth: 120,
},
{
userId: this.$store.state.user.name,
@@ -1574,7 +1575,7 @@
submitFlag: '',
cinvSourceCode: '',
sku: '',
- spec: '',
+ invdefinetype: '',
umId: '',
umName: '',
operator: '',
@@ -2278,6 +2279,7 @@
partModelFlag: false,
umList: [],
userBuList: [],
+ buList: [],
authSearch: false,
authSave: false,
authCheck: false,
@@ -2393,6 +2395,8 @@
this.getButtonAuthData()
// 获取用户的 site 和 bu
this.getSiteAndBuByUserName()
+ // 获取用户的 site 和 bu
+ this.getSiteAndBuByUserName2()
// 收藏
this.favoriteIsOk()
// 检验类型
@@ -2417,6 +2421,18 @@
methods: {
+ // 获取用户的bu
+ getSiteAndBuByUserName2 () {
+ let tempData = {
+ username: this.$store.state.user.name,
+ }
+ getSiteAndBuByUserName2(tempData).then(({data}) => {
+ if (data.code === 0) {
+ this.buList = data.rows
+ }
+ })
+ },
+
// 批量打印标签
printList () {
if (this.FAISelections.length === 0) {
@@ -2660,7 +2676,7 @@
} else { // 无工单检验
this.modalData.partNo = ''
this.modalData.partDesc = ''
- this.modalData.spec = ''
+ this.modalData.invdefinetype = ''
this.modalData.sku = ''
this.modalData.cinvSourceCode = ''
this.modalData.templateId = ''
@@ -2739,7 +2755,7 @@
this.modalData.resourceDesc = data.rows[0].resourceDesc
this.modalData.partNo = data.rows[0].partNo
this.modalData.partDesc = data.rows[0].partDesc
- this.modalData.spec = data.rows[0].spec
+ this.modalData.invdefinetype = data.rows[0].invdefinetype
this.modalData.sku = data.rows[0].sku
this.modalData.cinvSourceCode = data.rows[0].cinvSourceCode
} else {
@@ -2911,7 +2927,7 @@
this.modalData.resourceDesc = data.rows[0].resourceDesc
this.modalData.partNo = data.rows[0].partNo
this.modalData.partDesc = data.rows[0].partDesc
- this.modalData.spec = data.rows[0].spec
+ this.modalData.invdefinetype = data.rows[0].invdefinetype
this.modalData.sku = data.rows[0].sku
this.modalData.cinvSourceCode = data.rows[0].cinvSourceCode
this.modalData.operationDesc = data.rows[0].operationDesc
@@ -2932,7 +2948,7 @@
this.partList = data.rows
this.modalData.partNo = this.partList[0].partNo
this.modalData.partDesc = this.partList[0].partDesc
- this.modalData.spec = this.partList[0].spec
+ this.modalData.invdefinetype = this.partList[0].invdefinetype
this.modalData.sku = this.partList[0].sku
this.modalData.cinvSourceCode = this.partList[0].cinvSourceCode
} else {
@@ -2966,7 +2982,7 @@
rollQty: '',
seqNo: '',
batchRollNo: '',
- spec: '',
+ invdefinetype: '',
sku: '',
cinvSourceCode: '',
specialRequirements: '',
@@ -3106,7 +3122,7 @@
rollQty: '',
seqNo: '',
batchRollNo: '',
- spec: '',
+ invdefinetype: '',
sku: '',
cinvSourceCode: '',
specialRequirements: '',
@@ -3192,7 +3208,7 @@
this.modalData.partDesc = row.partDesc
this.modalData.sku = row.sku
this.modalData.cinvSourceCode = row.cinvSourceCode
- this.modalData.spec = row.spec
+ this.modalData.invdefinetype = row.invdefinetype
this.partData = {
site: '',
bu: '',
@@ -3551,7 +3567,7 @@
this.detailData.inspectionRemark = row.inspectionRemark
this.detailData.cinvSourceCode = row.cinvSourceCode
this.detailData.sku = row.sku
- this.detailData.spec = row.spec
+ this.detailData.invdefinetype = row.invdefinetype
this.detailData.umId = row.umId
this.detailData.umName = row.umName
this.detailData.operator = row.operator
diff --git a/src/views/modules/qc/FQCResultEntry.vue b/src/views/modules/qc/FQCResultEntry.vue
index b77d069..1bf0d2a 100644
--- a/src/views/modules/qc/FQCResultEntry.vue
+++ b/src/views/modules/qc/FQCResultEntry.vue
@@ -11,12 +11,12 @@
-
+
+ :value = "i.buNo">
@@ -248,7 +248,7 @@
-
+
@@ -303,7 +303,7 @@
-
+
@@ -312,7 +312,7 @@
-
+
@@ -916,6 +916,7 @@
queryPartList, // 查询物料集合
umSearch, // 查询单位列表
getSiteAndBuByUserName,
+ getSiteAndBuByUserName2,
searchSeqInfo, // 查询派工单号
actionFQCInspection, // 开始检验
dataAcquisition, // 数据采集
@@ -1004,7 +1005,7 @@
inspectionResult: '',
orderNo: '',
operationDesc: '',
- buDesc: '',
+ buNo: '',
startDate: '',
endDate: '',
partNo: '',
@@ -1042,7 +1043,7 @@
submit_flag: '',
seqNo: '',
batchRollNo: '',
- spec: '',
+ invdefinetype: '',
sku: '',
qtyrequired: '',
lotsize:'',
@@ -1296,31 +1297,31 @@
{
userId: this.$store.state.user.name,
functionId: 301015,
- serialNumber: '301015Table1Spec',
+ serialNumber: '301015Table1PartDesc',
tableId: "301015Table1",
tableName: "FQC检验记录表",
- columnProp: 'spec',
+ columnProp: 'partDesc',
headerAlign: "center",
align: "left",
- columnLabel: '物料类别',
+ columnLabel: '物料名称',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 200,
+ columnWidth: 300,
},
{
userId: this.$store.state.user.name,
functionId: 301015,
- serialNumber: '301015Table1CinvSourceCode',
+ serialNumber: '301015Table1Sku',
tableId: "301015Table1",
tableName: "FQC检验记录表",
- columnProp: 'cinvSourceCode',
+ columnProp: 'sku',
headerAlign: "center",
align: "center",
- columnLabel: 'PN',
+ columnLabel: 'SKU',
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1332,13 +1333,13 @@
{
userId: this.$store.state.user.name,
functionId: 301015,
- serialNumber: '301015Table1Sku',
+ serialNumber: '301015Table1CinvSourceCode',
tableId: "301015Table1",
tableName: "FQC检验记录表",
- columnProp: 'sku',
+ columnProp: 'cinvSourceCode',
headerAlign: "center",
align: "center",
- columnLabel: 'SKU',
+ columnLabel: 'PN',
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1350,20 +1351,20 @@
{
userId: this.$store.state.user.name,
functionId: 301015,
- serialNumber: '301015Table1PartDesc',
+ serialNumber: '301015Table1Invdefinetype',
tableId: "301015Table1",
tableName: "FQC检验记录表",
- columnProp: 'partDesc',
+ columnProp: 'invdefinetype',
headerAlign: "center",
align: "left",
- columnLabel: '物料名称',
+ columnLabel: '物料类别',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 300,
+ columnWidth: 120,
},
{
userId: this.$store.state.user.name,
@@ -1548,7 +1549,7 @@
submitFlag: '',
cinvSourceCode: '',
sku: '',
- spec: '',
+ invdefinetype: '',
umId: '',
umName: '',
operator: '',
@@ -2252,6 +2253,7 @@
partModelFlag: false,
umList: [],
userBuList: [],
+ buList: [],
authSearch: false,
authSave: false,
authCheck: false,
@@ -2367,6 +2369,8 @@
this.getButtonAuthData()
// 获取用户的 site 和 bu
this.getSiteAndBuByUserName()
+ // 获取用户的 site 和 bu
+ this.getSiteAndBuByUserName2()
// 收藏
this.favoriteIsOk()
// 检验类型
@@ -2391,6 +2395,18 @@
methods: {
+ // 获取用户的bu
+ getSiteAndBuByUserName2 () {
+ let tempData = {
+ username: this.$store.state.user.name,
+ }
+ getSiteAndBuByUserName2(tempData).then(({data}) => {
+ if (data.code === 0) {
+ this.buList = data.rows
+ }
+ })
+ },
+
// 批量打印标签
printList () {
if (this.FAISelections.length === 0) {
@@ -2634,7 +2650,7 @@
} else { // 无工单检验
this.modalData.partNo = ''
this.modalData.partDesc = ''
- this.modalData.spec = ''
+ this.modalData.invdefinetype = ''
this.modalData.sku = ''
this.modalData.cinvSourceCode = ''
this.modalData.templateId = ''
@@ -2713,7 +2729,7 @@
this.modalData.resourceDesc = data.rows[0].resourceDesc
this.modalData.partNo = data.rows[0].partNo
this.modalData.partDesc = data.rows[0].partDesc
- this.modalData.spec = data.rows[0].spec
+ this.modalData.invdefinetype = data.rows[0].invdefinetype
this.modalData.sku = data.rows[0].sku
this.modalData.cinvSourceCode = data.rows[0].cinvSourceCode
} else {
@@ -2885,7 +2901,7 @@
this.modalData.resourceDesc = data.rows[0].resourceDesc
this.modalData.partNo = data.rows[0].partNo
this.modalData.partDesc = data.rows[0].partDesc
- this.modalData.spec = data.rows[0].spec
+ this.modalData.invdefinetype = data.rows[0].invdefinetype
this.modalData.sku = data.rows[0].sku
this.modalData.cinvSourceCode = data.rows[0].cinvSourceCode
this.modalData.operationDesc = data.rows[0].operationDesc
@@ -2906,7 +2922,7 @@
this.partList = data.rows
this.modalData.partNo = this.partList[0].partNo
this.modalData.partDesc = this.partList[0].partDesc
- this.modalData.spec = this.partList[0].spec
+ this.modalData.invdefinetype = this.partList[0].invdefinetype
this.modalData.sku = this.partList[0].sku
this.modalData.cinvSourceCode = this.partList[0].cinvSourceCode
} else {
@@ -2940,7 +2956,7 @@
rollQty: '',
seqNo: '',
batchRollNo: '',
- spec: '',
+ invdefinetype: '',
sku: '',
cinvSourceCode: '',
specialRequirements: '',
@@ -3080,7 +3096,7 @@
rollQty: '',
seqNo: '',
batchRollNo: '',
- spec: '',
+ invdefinetype: '',
sku: '',
cinvSourceCode: '',
specialRequirements: '',
@@ -3165,7 +3181,7 @@
this.modalData.partDesc = row.partDesc
this.modalData.sku = row.sku
this.modalData.cinvSourceCode = row.cinvSourceCode
- this.modalData.spec = row.spec
+ this.modalData.invdefinetype = row.invdefinetype
this.partData = {
site: '',
bu: '',
@@ -3524,7 +3540,7 @@
this.detailData.inspectionRemark = row.inspectionRemark
this.detailData.cinvSourceCode = row.cinvSourceCode
this.detailData.sku = row.sku
- this.detailData.spec = row.spec
+ this.detailData.invdefinetype = row.invdefinetype
this.detailData.umId = row.umId
this.detailData.umName = row.umName
this.detailData.operator = row.operator
diff --git a/src/views/modules/qc/IPQCResultEntry.vue b/src/views/modules/qc/IPQCResultEntry.vue
index 41be626..90d86b3 100644
--- a/src/views/modules/qc/IPQCResultEntry.vue
+++ b/src/views/modules/qc/IPQCResultEntry.vue
@@ -11,12 +11,12 @@
-
+
+ :value = "i.buNo">
@@ -252,7 +252,7 @@
-
+
@@ -317,7 +317,7 @@
-
+
@@ -326,7 +326,7 @@
-
+
@@ -943,6 +943,7 @@
queryPartList, // 查询物料集合
umSearch, // 查询单位列表
getSiteAndBuByUserName,
+ getSiteAndBuByUserName2,
searchSeqInfo, // 派工单号查询
actionIPQCInspection, // 开始检验
dataAcquisition, // 数据采集
@@ -1031,7 +1032,7 @@
inspectionResult: '',
orderNo: '',
operationDesc: '',
- buDesc: '',
+ buNo: '',
startDate: '',
endDate: '',
startDate2: '',
@@ -1076,7 +1077,7 @@
rollQty: '',
seqNo: '',
batchRollNo: '',
- spec: '',
+ invdefinetype: '',
sku: '',
cinvSourceCode: '',
qtyrequired: '',
@@ -1348,31 +1349,31 @@
{
userId: this.$store.state.user.name,
functionId: 301014,
- serialNumber: '301014Table1Spec',
+ serialNumber: '301014Table1PartDesc',
tableId: "301014Table1",
tableName: "IPQC检验记录表",
- columnProp: 'spec',
+ columnProp: 'partDesc',
headerAlign: "center",
align: "left",
- columnLabel: '物料类别',
+ columnLabel: '物料名称',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 200,
+ columnWidth: 300,
},
{
userId: this.$store.state.user.name,
functionId: 301014,
- serialNumber: '301014Table1cinvSourceCode',
+ serialNumber: '301014Table1Sku',
tableId: "301014Table1",
tableName: "IPQC检验记录表",
- columnProp: 'cinvSourceCode',
+ columnProp: 'sku',
headerAlign: "center",
align: "center",
- columnLabel: 'PN',
+ columnLabel: 'SKU',
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1384,13 +1385,13 @@
{
userId: this.$store.state.user.name,
functionId: 301014,
- serialNumber: '301014Table1Sku',
+ serialNumber: '301014Table1cinvSourceCode',
tableId: "301014Table1",
tableName: "IPQC检验记录表",
- columnProp: 'sku',
+ columnProp: 'cinvSourceCode',
headerAlign: "center",
align: "center",
- columnLabel: 'SKU',
+ columnLabel: 'PN',
columnHidden: false,
columnImage: false,
columnSortable: false,
@@ -1402,20 +1403,20 @@
{
userId: this.$store.state.user.name,
functionId: 301014,
- serialNumber: '301014Table1PartDesc',
+ serialNumber: '301014Table1Invdefinetype',
tableId: "301014Table1",
tableName: "IPQC检验记录表",
- columnProp: 'partDesc',
+ columnProp: 'invdefinetype',
headerAlign: "center",
align: "left",
- columnLabel: '物料名称',
+ columnLabel: '物料类别',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 300,
+ columnWidth: 120,
},
{
userId: this.$store.state.user.name,
@@ -1600,7 +1601,7 @@
submitFlag: '',
cinvSourceCode: '',
sku: '',
- spec: '',
+ invdefinetype: '',
umId: '',
umName: '',
operator: '',
@@ -2331,6 +2332,7 @@
partModelFlag: false,
umList: [],
userBuList: [],
+ buList: [],
authSearch: false,
authSave: false,
authCheck: false,
@@ -2446,6 +2448,8 @@
this.getButtonAuthData()
// 获取用户的 site 和 bu
this.getSiteAndBuByUserName()
+ // 获取用户的 site 和 bu
+ this.getSiteAndBuByUserName2()
// 收藏
this.favoriteIsOk()
// 检验类型
@@ -2470,6 +2474,18 @@
methods: {
+ // 获取用户的bu
+ getSiteAndBuByUserName2 () {
+ let tempData = {
+ username: this.$store.state.user.name,
+ }
+ getSiteAndBuByUserName2(tempData).then(({data}) => {
+ if (data.code === 0) {
+ this.buList = data.rows
+ }
+ })
+ },
+
// 批量打印标签
printList () {
if (this.IPQCSelections.length === 0) {
@@ -2713,7 +2729,7 @@
} else { // 无工单检验
this.modalData.partNo = ''
this.modalData.partDesc = ''
- this.modalData.spec = ''
+ this.modalData.invdefinetype = ''
this.modalData.sku = ''
this.modalData.cinvSourceCode = ''
this.modalData.templateId = ''
@@ -2792,7 +2808,7 @@
this.modalData.resourceDesc = data.rows[0].resourceDesc
this.modalData.partNo = data.rows[0].partNo
this.modalData.partDesc = data.rows[0].partDesc
- this.modalData.spec = data.rows[0].spec
+ this.modalData.invdefinetype = data.rows[0].invdefinetype
this.modalData.sku = data.rows[0].sku
this.modalData.cinvSourceCode = data.rows[0].cinvSourceCode
} else {
@@ -3070,7 +3086,7 @@
this.modalData.resourceDesc = data.rows[0].resourceDesc
this.modalData.partNo = data.rows[0].partNo
this.modalData.partDesc = data.rows[0].partDesc
- this.modalData.spec = data.rows[0].spec
+ this.modalData.invdefinetype = data.rows[0].invdefinetype
this.modalData.sku = data.rows[0].sku
this.modalData.cinvSourceCode = data.rows[0].cinvSourceCode
this.modalData.operationDesc = data.rows[0].operationDesc
@@ -3112,7 +3128,7 @@
this.partList = data.rows
this.modalData.partNo = this.partList[0].partNo
this.modalData.partDesc = this.partList[0].partDesc
- this.modalData.spec = this.partList[0].spec
+ this.modalData.invdefinetype = this.partList[0].invdefinetype
this.modalData.sku = this.partList[0].sku
this.modalData.cinvSourceCode = this.partList[0].cinvSourceCode
} else {
@@ -3161,7 +3177,7 @@
rollQty: '',
seqNo: '',
batchRollNo: '',
- spec: '',
+ invdefinetype: '',
sku: '',
cinvSourceCode: '',
specialRequirements: '',
@@ -3248,7 +3264,7 @@
this.modalData.partNo = row.partNo
this.modalData.partDesc = row.partDesc
this.modalData.sku = row.sku
- this.modalData.spec = row.spec
+ this.modalData.invdefinetype = row.invdefinetype
this.modalData.cinvSourceCode = row.cinvSourceCode
this.partData = {
site: '',
@@ -3284,7 +3300,7 @@
rollQty: '',
seqNo: '',
batchRollNo: '',
- spec: '',
+ invdefinetype: '',
sku: '',
cinvSourceCode: '',
specialRequirements: '',
@@ -3612,7 +3628,7 @@
this.detailData.cinvSourceCode = row.cinvSourceCode
this.detailData.sku = row.sku
this.detailData.cinvSourceCode = row.cinvSourceCode
- this.detailData.spec = row.spec
+ this.detailData.invdefinetype = row.invdefinetype
this.detailData.umId = row.umId
this.detailData.umName = row.umName
this.detailData.operator = row.operator
diff --git a/src/views/modules/qc/IQCResultEntry.vue b/src/views/modules/qc/IQCResultEntry.vue
index 61e72c2..ef0c702 100644
--- a/src/views/modules/qc/IQCResultEntry.vue
+++ b/src/views/modules/qc/IQCResultEntry.vue
@@ -11,12 +11,12 @@
-
+
+ :value = "i.buNo">
@@ -199,32 +199,41 @@
-
+
-
-
+
+
+
+
+
-
-
+
+
+
+
+
-
+
-
+
-
+
-
-
-
+
+
-
+
数据采集
+
+
+
+
@@ -260,12 +269,12 @@
协同人员
协同人员
-
+
责任人
责任人
-
+
工作文件
@@ -649,6 +658,7 @@
disposalMeasuresSearch, // 获取处置措施列表
iqcRecordOverLoad, // 重载检验单
getSiteAndBuByUserName,
+ getSiteAndBuByUserName2,
orderTypeSearch, // 获取采购类型
actionIQCInspection, // 开始检验
dataAcquisition, // 数据采集
@@ -729,7 +739,7 @@
inspectionNo: '',
inspectionTypeNo:'105',
isQualified: '',
- buDesc: '',
+ buNo: '',
startDate: '',
endDate: '',
startDate2: '',
@@ -781,7 +791,8 @@
inspectorNo:'',
inspectorName:'',
isQualified:'',
- isQualifiedChinese:''
+ isQualifiedChinese:'',
+ invdefinetype: '',
},
// 展示列集
// columnList1: [],
@@ -966,6 +977,24 @@
fixed: '',
columnWidth: 120,
},
+ {
+ userId: this.$store.state.user.name,
+ functionId: 301006,
+ serialNumber: '301006Table1Invdefinetype',
+ tableId: "301006Table1",
+ tableName: "IPQC检验记录表",
+ columnProp: 'invdefinetype',
+ headerAlign: "center",
+ align: "left",
+ columnLabel: '物料类别',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 120,
+ },
{
userId: this.$store.state.user.name,
functionId: 301006,
@@ -1585,7 +1614,8 @@
operator: '',
operatorName: '',
responsiblePerson: '',
- responsiblePersonName: ''
+ responsiblePersonName: '',
+ invdefinetype: '',
},
detailInformationFlag: false,
detailList: [],
@@ -1645,6 +1675,7 @@
disposalMeasuresOptions: [],
orderTypeList: [],
userBuList: [],
+ buList: [],
authSearch: false,
authCheck: false,
authOverLoad: false,
@@ -1758,6 +1789,8 @@
this.getButtonAuthData()
// 获取用户的 site 和 bu
this.getSiteAndBuByUserName()
+ // 获取用户的 site 和 bu
+ this.getSiteAndBuByUserName2()
this.favoriteIsOk()
this.disposalMeasuresSearch()
this.orderTypeSearch()
@@ -1774,6 +1807,18 @@
methods: {
+ // 获取用户的bu
+ getSiteAndBuByUserName2 () {
+ let tempData = {
+ username: this.$store.state.user.name,
+ }
+ getSiteAndBuByUserName2(tempData).then(({data}) => {
+ if (data.code === 0) {
+ this.buList = data.rows
+ }
+ })
+ },
+
// 批量打印标签
printList () {
if (this.IQCSelections.length === 0) {
@@ -2450,6 +2495,7 @@
this.detailData.operatorName = row.operatorName
this.detailData.responsiblePerson = row.responsiblePerson
this.detailData.responsiblePersonName = row.responsiblePersonName
+ this.detailData.invdefinetype = row.invdefinetype
this.getInspectionFormData()
this.inspectorSearch()
// this.acquisitionList = []
diff --git a/src/views/modules/report/FAI_report.vue b/src/views/modules/report/FAI_report.vue
index 513d0cb..5103f99 100644
--- a/src/views/modules/report/FAI_report.vue
+++ b/src/views/modules/report/FAI_report.vue
@@ -11,12 +11,12 @@
-
+
+ :value = "i.buNo">
@@ -193,7 +193,7 @@
getFAIReport, // 获取FAI报表
} from "@/api/qc/qc_report.js"
import {
- getSiteAndBuByUserName, // 获取site bu
+ getSiteAndBuByUserName2, // 获取site bu
selectFAISubDetailedRecord, // 查询子明细
disposalMeasuresSearch, // 获取处置措施列表
} from "@/api/qc/qc.js"
@@ -229,7 +229,7 @@
inspectionResult: '',
orderNo: '',
operationDesc: '',
- buDesc: '',
+ buNo: '',
startDate: '',
endDate: '',
startDate2: '',
@@ -491,20 +491,20 @@
{
userId: this.$store.state.user.name,
functionId: 107001003,
- serialNumber: '107001003Table1cinvSourceCode',
+ serialNumber: '107001003Table1PartDesc',
tableId: "107001003Table1",
tableName: "FAI报表",
- columnProp: 'cinvSourceCode',
+ columnProp: 'partDesc',
headerAlign: "center",
- align: "center",
- columnLabel: 'PN',
+ align: "left",
+ columnLabel: '物料名称',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 120,
+ columnWidth: 350,
},
{
userId: this.$store.state.user.name,
@@ -527,20 +527,38 @@
{
userId: this.$store.state.user.name,
functionId: 107001003,
- serialNumber: '107001003Table1PartDesc',
+ serialNumber: '107001003Table1cinvSourceCode',
tableId: "107001003Table1",
tableName: "FAI报表",
- columnProp: 'partDesc',
+ columnProp: 'cinvSourceCode',
headerAlign: "center",
- align: "left",
- columnLabel: '物料名称',
+ align: "center",
+ columnLabel: 'PN',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 350,
+ columnWidth: 120,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 107001003,
+ serialNumber: '107001003Table1Invdefinetype',
+ tableId: "107001003Table1",
+ tableName: "FAI报表",
+ columnProp: 'invdefinetype',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '物料类别',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 120,
},
{
userId: this.$store.state.user.name,
@@ -906,7 +924,7 @@
},
],
options: [],
- userBuList: [],
+ buList: [],
authSearch: false,
menuId: this.$route.meta.menuId,
subDetailModalFlag: false,
@@ -922,11 +940,19 @@
})
},
+ activated () {
+ if (this.$route.params.type === 'tokenLogin') {
+ this.searchData.buNo = this.$route.params.buNo
+ this.searchData.inspectionNo = this.$route.params.docNo
+ }
+ this.getDataList()
+ },
+
created () {
// 按钮控制
this.getButtonAuthData()
// 获取用户的 site 和 bu
- this.getSiteAndBuByUserName()
+ this.getSiteAndBuByUserName2()
// 获取处置措施
this.disposalMeasuresSearch()
// 校验用户是否收藏
@@ -941,22 +967,6 @@
methods: {
- exportAllIQCRecord () {
- // exportAllIQCRecord(this.searchData).then(({data}) => {
- // if (data && data.code === 0) {
- // this.$message({
- // message: '数据导出成功',
- // type: 'success',
- // duration: 1500
- // })
- // } else {
- // this.$alert(data.msg, '错误', {
- // confirmButtonText: '确定'
- // })
- // }
- // })
- },
-
// 单机选中
FAIClickRow (row) {
this.currentRow = JSON.parse(JSON.stringify(row))
@@ -969,13 +979,13 @@
},
// 获取用户的bu
- getSiteAndBuByUserName () {
+ getSiteAndBuByUserName2 () {
let tempData = {
username: this.$store.state.user.name,
}
- getSiteAndBuByUserName(tempData).then(({data}) => {
+ getSiteAndBuByUserName2(tempData).then(({data}) => {
if (data.code === 0) {
- this.userBuList = data.rows
+ this.buList = data.rows
}
})
},
diff --git a/src/views/modules/report/FQC_report.vue b/src/views/modules/report/FQC_report.vue
index 397020f..2d967b6 100644
--- a/src/views/modules/report/FQC_report.vue
+++ b/src/views/modules/report/FQC_report.vue
@@ -11,12 +11,12 @@
-
+
+ :value = "i.buNo">
@@ -193,7 +193,7 @@
getFQCReport, // 获取IPQC报表
} from "@/api/qc/qc_report.js"
import {
- getSiteAndBuByUserName, // 获取site bu
+ getSiteAndBuByUserName2, // 获取site bu
selectFQCSubDetailedRecord, // 查询子明细
disposalMeasuresSearch, // 获取处置措施列表
} from "@/api/qc/qc.js"
@@ -229,7 +229,7 @@
inspectionResult: '',
orderNo: '',
operationDesc: '',
- buDesc: '',
+ buNo: '',
startDate: '',
endDate: '',
partNo: '',
@@ -491,20 +491,20 @@
{
userId: this.$store.state.user.name,
functionId: 107001004,
- serialNumber: '107001004Table1cinvSourceCode',
+ serialNumber: '107001004Table1PartDesc',
tableId: "107001004Table1",
tableName: "FQC报表",
- columnProp: 'cinvSourceCode',
+ columnProp: 'partDesc',
headerAlign: "center",
- align: "center",
- columnLabel: 'PN',
+ align: "left",
+ columnLabel: '物料名称',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 120,
+ columnWidth: 350,
},
{
userId: this.$store.state.user.name,
@@ -527,20 +527,38 @@
{
userId: this.$store.state.user.name,
functionId: 107001004,
- serialNumber: '107001004Table1PartDesc',
+ serialNumber: '107001004Table1cinvSourceCode',
tableId: "107001004Table1",
tableName: "FQC报表",
- columnProp: 'partDesc',
+ columnProp: 'cinvSourceCode',
headerAlign: "center",
- align: "left",
- columnLabel: '物料名称',
+ align: "center",
+ columnLabel: 'PN',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 350,
+ columnWidth: 120,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 107001004,
+ serialNumber: '107001004Table1Invdefinetype',
+ tableId: "107001004Table1",
+ tableName: "FQC报表",
+ columnProp: 'invdefinetype',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '物料类别',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 120,
},
{
userId: this.$store.state.user.name,
@@ -906,7 +924,7 @@
},
],
options: [],
- userBuList: [],
+ buList: [],
authSearch: false,
menuId: this.$route.meta.menuId,
subDetailModalFlag: false,
@@ -922,11 +940,19 @@
})
},
+ activated () {
+ if (this.$route.params.type === 'tokenLogin') {
+ this.searchData.buNo = this.$route.params.buNo
+ this.searchData.inspectionNo = this.$route.params.docNo
+ }
+ this.getDataList()
+ },
+
created () {
// 按钮控制
this.getButtonAuthData()
// 获取用户的 site 和 bu
- this.getSiteAndBuByUserName()
+ this.getSiteAndBuByUserName2()
// 获取处置措施
this.disposalMeasuresSearch()
// 校验用户是否收藏
@@ -941,22 +967,6 @@
methods: {
- exportAllIQCRecord () {
- // exportAllIQCRecord(this.searchData).then(({data}) => {
- // if (data && data.code === 0) {
- // this.$message({
- // message: '数据导出成功',
- // type: 'success',
- // duration: 1500
- // })
- // } else {
- // this.$alert(data.msg, '错误', {
- // confirmButtonText: '确定'
- // })
- // }
- // })
- },
-
// 单机选中
FQCClickRow (row) {
this.currentRow = JSON.parse(JSON.stringify(row))
@@ -969,13 +979,13 @@
},
// 获取用户的bu
- getSiteAndBuByUserName () {
+ getSiteAndBuByUserName2 () {
let tempData = {
username: this.$store.state.user.name,
}
- getSiteAndBuByUserName(tempData).then(({data}) => {
+ getSiteAndBuByUserName2(tempData).then(({data}) => {
if (data.code === 0) {
- this.userBuList = data.rows
+ this.buList = data.rows
}
})
},
diff --git a/src/views/modules/report/IPQC_report.vue b/src/views/modules/report/IPQC_report.vue
index 715e800..2629fab 100644
--- a/src/views/modules/report/IPQC_report.vue
+++ b/src/views/modules/report/IPQC_report.vue
@@ -11,12 +11,12 @@
-
+
+ :value = "i.buNo">
@@ -197,7 +197,7 @@
getIPQCReport, // 获取IPQC报表
} from "@/api/qc/qc_report.js"
import {
- getSiteAndBuByUserName, // 获取site bu
+ getSiteAndBuByUserName2, // 获取site bu
selectIPQCSubDetailedRecord, // 查询子明细
disposalMeasuresSearch, // 获取处置措施列表
} from "@/api/qc/qc.js"
@@ -233,7 +233,7 @@
inspectionResult: '',
orderNo: '',
operationDesc: '',
- buDesc: '',
+ buNo: '',
startDate: '',
endDate: '',
startDate2: '',
@@ -514,20 +514,20 @@
{
userId: this.$store.state.user.name,
functionId: 107001002,
- serialNumber: '107001002Table1cinvSourceCode',
+ serialNumber: '107001002Table1PartDesc',
tableId: "107001002Table1",
tableName: "IPQC报表",
- columnProp: 'cinvSourceCode',
+ columnProp: 'partDesc',
headerAlign: "center",
- align: "center",
- columnLabel: 'PN',
+ align: "left",
+ columnLabel: '物料名称',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 120,
+ columnWidth: 350,
},
{
userId: this.$store.state.user.name,
@@ -550,20 +550,38 @@
{
userId: this.$store.state.user.name,
functionId: 107001002,
- serialNumber: '107001002Table1PartDesc',
+ serialNumber: '107001002Table1cinvSourceCode',
tableId: "107001002Table1",
tableName: "IPQC报表",
- columnProp: 'partDesc',
+ columnProp: 'cinvSourceCode',
headerAlign: "center",
- align: "left",
- columnLabel: '物料名称',
+ align: "center",
+ columnLabel: 'PN',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
- columnWidth: 350,
+ columnWidth: 120,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 107001002,
+ serialNumber: '107001002Table1Invdefinetype',
+ tableId: "107001002Table1",
+ tableName: "IPQC报表",
+ columnProp: 'invdefinetype',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '物料类别',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 120,
},
{
userId: this.$store.state.user.name,
@@ -929,7 +947,7 @@
},
],
options: [],
- userBuList: [],
+ buList: [],
authSearch: false,
menuId: this.$route.meta.menuId,
subDetailModalFlag: false,
@@ -945,11 +963,19 @@
})
},
+ activated () {
+ if (this.$route.params.type === 'tokenLogin') {
+ this.searchData.buNo = this.$route.params.buNo
+ this.searchData.inspectionNo = this.$route.params.docNo
+ }
+ this.getDataList()
+ },
+
created () {
// 按钮控制
this.getButtonAuthData()
// 获取用户的 site 和 bu
- this.getSiteAndBuByUserName()
+ this.getSiteAndBuByUserName2()
// 获取处置措施
this.disposalMeasuresSearch()
// 校验用户是否收藏
@@ -964,22 +990,6 @@
methods: {
- exportAllIQCRecord () {
- // exportAllIQCRecord(this.searchData).then(({data}) => {
- // if (data && data.code === 0) {
- // this.$message({
- // message: '数据导出成功',
- // type: 'success',
- // duration: 1500
- // })
- // } else {
- // this.$alert(data.msg, '错误', {
- // confirmButtonText: '确定'
- // })
- // }
- // })
- },
-
// 单机选中
IPQCClickRow (row) {
this.currentRow = JSON.parse(JSON.stringify(row))
@@ -992,11 +1002,11 @@
},
// 获取用户的bu
- getSiteAndBuByUserName () {
+ getSiteAndBuByUserName2 () {
let tempData = {
username: this.$store.state.user.name,
}
- getSiteAndBuByUserName(tempData).then(({data}) => {
+ getSiteAndBuByUserName2(tempData).then(({data}) => {
if (data.code === 0) {
this.userBuList = data.rows
}
diff --git a/src/views/modules/report/IQC_report.vue b/src/views/modules/report/IQC_report.vue
index d25b20f..3b882f5 100644
--- a/src/views/modules/report/IQC_report.vue
+++ b/src/views/modules/report/IQC_report.vue
@@ -11,12 +11,12 @@
-
+
+ :value = "i.buNo">
@@ -212,7 +212,7 @@
getIQCReport, // 获取IQC报表
} from "@/api/qc/qc_report.js"
import {
- getSiteAndBuByUserName, // 获取site bu
+ getSiteAndBuByUserName2, // 获取site bu
selectIQCSubDetailedRecord, // 查询子明细
disposalMeasuresSearch, // 获取处置措施列表
orderTypeSearch, // 获取采购类型
@@ -251,7 +251,7 @@
inspectionNo: '',
inspectionTypeNo:'105',
isQualified: '',
- buDesc: '',
+ buNo: '',
startDate: '',
endDate: '',
startDate2: '',
@@ -481,6 +481,24 @@
fixed: '',
columnWidth: 120,
},
+ {
+ userId: this.$store.state.user.name,
+ functionId: 107001001,
+ serialNumber: '107001001Table1Invdefinetype',
+ tableId: "107001001Table1",
+ tableName: "IQC报表",
+ columnProp: 'invdefinetype',
+ headerAlign: "center",
+ align: "left",
+ columnLabel: '物料类别',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 120,
+ },
{
userId: this.$store.state.user.name,
functionId: 107001001,
@@ -971,7 +989,7 @@
},
],
options: [],
- userBuList: [],
+ buList: [],
authSearch: false,
menuId: this.$route.meta.menuId,
subDetailModalFlag: false,
@@ -988,11 +1006,19 @@
})
},
+ activated () {
+ if (this.$route.params.type === 'tokenLogin') {
+ this.searchData.buNo = this.$route.params.buNo
+ this.searchData.inspectionNo = this.$route.params.docNo
+ }
+ this.getDataList()
+ },
+
created () {
// 按钮控制
this.getButtonAuthData()
// 获取用户的 site 和 bu
- this.getSiteAndBuByUserName()
+ this.getSiteAndBuByUserName2()
// 获取处置措施
this.disposalMeasuresSearch()
this.orderTypeSearch()
@@ -1033,13 +1059,13 @@
},
// 获取用户的bu
- getSiteAndBuByUserName () {
+ getSiteAndBuByUserName2 () {
let tempData = {
username: this.$store.state.user.name,
}
- getSiteAndBuByUserName(tempData).then(({data}) => {
+ getSiteAndBuByUserName2(tempData).then(({data}) => {
if (data.code === 0) {
- this.userBuList = data.rows
+ this.buList = data.rows
}
})
},