diff --git a/src/api/qc/qc.js b/src/api/qc/qc.js
index f32536c..29e4fb8 100644
--- a/src/api/qc/qc.js
+++ b/src/api/qc/qc.js
@@ -28,6 +28,7 @@ export const templateSave = data => createAPI(`/pms/qc/templateSave`,'post',data
export const templateUpdate = data => createAPI(`/pms/qc/templateUpdate`,'post',data)
export const templateDelete = data => createAPI(`/pms/qc/templateDelete`,'post',data)
export const inspectionTypeSearch = data => createAPI(`/pms/qc/inspectionTypeSearch`,'post',data)
+export const itemTypeSearch = data => createAPI(`/pms/qc/itemTypeSearch`,'post',data)
export const objectSearch = data => createAPI(`/pms/qc/objectSearch`,'post',data)
export const templateDetailsSearch = data => createAPI(`/pms/qc/templateDetailsSearch`,'post',data)
export const addItemDetails = data => createAPI(`/pms/qc/addItemDetails`,'post',data)
diff --git a/src/views/modules/qc/FQASResultEntry.vue b/src/views/modules/qc/FQASResultEntry.vue
index af738cd..6e5cb54 100644
--- a/src/views/modules/qc/FQASResultEntry.vue
+++ b/src/views/modules/qc/FQASResultEntry.vue
@@ -43,20 +43,27 @@
-
+
-
+
-
+
-
+
-
+
+
+ 关联单号6
+
+
+
+
+
@@ -258,9 +265,12 @@
- 责任人
- 责任人
-
+ 责任人(供应商)
+ 责任人(供应商)
+
+
+
+
明细导入
@@ -739,6 +749,7 @@
orderRef3: '',
orderRef4: '',
orderRef5: '',
+ orderRef6: '',
},
pageIndex: 1,
pageSize: 20,
@@ -1098,6 +1109,24 @@
fixed: '',
columnWidth: 130,
},
+ {
+ userId: this.$store.state.user.name,
+ functionId: 301016,
+ serialNumber: '301016Table1OrderRef6',
+ tableId: "301016Table1",
+ tableName: "FQAS检验记录表",
+ columnProp: 'orderRef6',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '关联单号6',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 130,
+ },
{
userId: this.$store.state.user.name,
functionId: 301016,
@@ -2252,6 +2281,14 @@
conSql = " and bu_no = '" + this.changeData.buNo + "'"
this.$refs.baseList.init(val, strVal, conSql)
}
+ if (val === 509) {
+ strVal = this.detailData.responsiblePerson
+ this.$refs.baseList.init(val, strVal)
+ }
+ if (val === 24) {
+ strVal = this.searchData.orderRef6
+ this.$refs.baseList.init(val, strVal)
+ }
})
},
@@ -2273,6 +2310,12 @@
this.changeData.samplingLevelNo = val.sampling_level_no
this.changeData.samplingLevelDesc = val.sampling_level_desc
}
+ if (this.tagNo === 509) {
+ this.detailData.responsiblePerson = val.SupplierID
+ }
+ if (this.tagNo === 24) {
+ this.searchData.orderRef6 = val.WorkCenterNo
+ }
},
// 获取主信息数据列表
diff --git a/src/views/modules/qc/IPQCResultEntry.vue b/src/views/modules/qc/IPQCResultEntry.vue
index e4a97d6..a32cbb6 100644
--- a/src/views/modules/qc/IPQCResultEntry.vue
+++ b/src/views/modules/qc/IPQCResultEntry.vue
@@ -208,7 +208,7 @@
派工单号
-
+
派工单号
@@ -231,13 +231,13 @@
-
+
机台
-
-
-
-
+
+
+
+
@@ -283,7 +283,7 @@
检验模板
检验模板
-
+
@@ -298,7 +298,7 @@
- 保存
+ 保存
关闭
@@ -375,9 +375,12 @@
- 责任人
- 责任人
-
+ 责任人(供应商)
+ 责任人(供应商)
+
+
+
+
工作文件
@@ -2113,7 +2116,7 @@
{
columnProp: 'partNo',
headerAlign: "center",
- align: "center",
+ align: "left",
columnLabel: '物料编码',
columnHidden: false,
columnImage: false,
@@ -2121,11 +2124,12 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 120,
},
{
columnProp: 'partDesc',
headerAlign: "center",
- align: "center",
+ align: "left",
columnLabel: '物料名称',
columnHidden: false,
columnImage: false,
@@ -2133,6 +2137,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 300,
},
],
checked: false,
@@ -2221,6 +2226,7 @@
inspectionTypeNo: ''
},
currentRow: {},
+ saveLoading: false
}
},
@@ -2852,6 +2858,10 @@
strVal = this.modalData.resourceDesc
this.$refs.baseList.init(val, strVal)
}
+ if (val === 509) {
+ strVal = this.detailData.responsiblePerson
+ this.$refs.baseList.init(val, strVal)
+ }
// if (val === 206) {
// strVal = this.modalData.partNo
// this.$refs.baseList.init(val, strVal)
@@ -2870,8 +2880,11 @@
//this.getPartList()
}
if (this.tagNo === 505) {
- this.modalData.resourceId = val.resource_id
- this.modalData.resourceDesc = val.resource_desc
+ this.modalData.resourceId = val.ResourceID
+ this.modalData.resourceDesc = val.ResourceDesc
+ }
+ if (this.tagNo === 509) {
+ this.detailData.responsiblePerson = val.SupplierID
}
// if (this.tagNo === 206) {
// this.modalData.partNo = val.part_no
@@ -3065,6 +3078,7 @@
this.modalData.qtyrequired = row.qtyrequired
this.modalData.rollQty = row.qtyrequired
this.modalData.sjzs = row.sjzs
+ this.modalData.umId = row.umId
this.getOperationList()
this.seqDetailFlag = false
},
@@ -3186,6 +3200,7 @@
this.$message.warning('请选择检验模板!')
return
}
+ this.saveLoading = true
if(this.modalData.flag === '1'){
saveOsInspection(this.modalData).then(({data}) => {
if (data && data.code === 0) {
@@ -3205,6 +3220,9 @@
confirmButtonText: '确定'
})
}
+ this.saveLoading = false
+ }).catch(()=>{
+ this.saveLoading = false
})
}
},
diff --git a/src/views/modules/qc/OQCResultEntry.vue b/src/views/modules/qc/OQCResultEntry.vue
index 9e31854..7e6c375 100644
--- a/src/views/modules/qc/OQCResultEntry.vue
+++ b/src/views/modules/qc/OQCResultEntry.vue
@@ -258,9 +258,12 @@
- 责任人
- 责任人
-
+ 责任人(供应商)
+ 责任人(供应商)
+
+
+
+
明细导入
@@ -2252,6 +2255,10 @@
conSql = " and bu_no = '" + this.changeData.buNo + "'"
this.$refs.baseList.init(val, strVal, conSql)
}
+ if (val === 509) {
+ strVal = this.detailData.responsiblePerson
+ this.$refs.baseList.init(val, strVal)
+ }
})
},
@@ -2273,6 +2280,9 @@
this.changeData.samplingLevelNo = val.sampling_level_no
this.changeData.samplingLevelDesc = val.sampling_level_desc
}
+ if (this.tagNo === 509) {
+ this.detailData.responsiblePerson = val.SupplierID
+ }
},
// 获取主信息数据列表
diff --git a/src/views/modules/qc/qcItem.vue b/src/views/modules/qc/qcItem.vue
index ad2a116..5cb7ae5 100644
--- a/src/views/modules/qc/qcItem.vue
+++ b/src/views/modules/qc/qcItem.vue
@@ -85,7 +85,7 @@
fixed="right"
header-align="center"
align="center"
- width="160"
+ width="120"
label="操作">
编辑
@@ -108,41 +108,44 @@
-
+
- {{ i.sitename }}
-
- {{ i.buDesc }}
-
+ {{ i.sitename }}
+
+
+
-
-
-
-
-
-
-
+
+
+ v-for = "i in itemTypeList"
+ :key = "i.typeNo"
+ :label = "i.typeDesc"
+ :value = "i.typeNo">
+
+
+
+
+
+
+
+
检验方法编码
@@ -199,6 +202,16 @@
+
+
+
+
+
+
保存
@@ -273,7 +286,8 @@
qcItemDelete, // 删除项目
inspectionTypeSearch, // 查询检验类型
queryMethodList, // 查询检验方法
- getSiteAndBuByUserName
+ getSiteAndBuByUserName,
+ itemTypeSearch, // 检验项目类型
} from "@/api/qc/qc.js"
import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js"
import Chooselist from '@/views/modules/common/Chooselist_eam'
@@ -351,7 +365,8 @@
samplingLevelDesc: '',
defaultSamplingProportion: '',
defectLevelCode: '',
- defectLevelDescription: ''
+ defectLevelDescription: '',
+ typeNo: ''
},
// 检验项目展示标头
columnList: [
@@ -361,7 +376,6 @@
serialNumber: '301002TableBuDesc',
tableId: "301002Table",
tableName: "检验项目维护表",
- columnWidth: 100,
columnProp: 'buDesc',
headerAlign: 'center',
align: "center",
@@ -372,6 +386,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 100,
},
{
userId: this.$store.state.user.name,
@@ -379,7 +394,6 @@
serialNumber: '301002TableItemNo',
tableId: "301002Table",
tableName: "检验项目维护表",
- columnWidth: 99,
columnProp: 'itemNo',
headerAlign: 'center',
align: "center",
@@ -390,6 +404,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 120,
},
{
userId: this.$store.state.user.name,
@@ -397,10 +412,9 @@
serialNumber: '301002TableItemDesc',
tableId: "301002Table",
tableName: "检验项目维护表",
- columnWidth: 85,
columnProp: 'itemDesc',
headerAlign: 'center',
- align: "center",
+ align: "left",
columnLabel: '检验项目名称',
columnHidden: false,
columnImage: false,
@@ -408,6 +422,25 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 200,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 301002,
+ serialNumber: '301002TableTypeDesc',
+ tableId: "301002Table",
+ tableName: "检验项目维护表",
+ columnProp: 'typeDesc',
+ headerAlign: 'center',
+ align: "center",
+ columnLabel: '项目类型',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 100,
},
{
userId: this.$store.state.user.name,
@@ -415,10 +448,9 @@
serialNumber: '301002TableMethodName',
tableId: "301002Table",
tableName: "检验项目维护表",
- columnWidth: 85,
columnProp: 'methodName',
headerAlign: 'center',
- align: "center",
+ align: "left",
columnLabel: '检验方法',
columnHidden: false,
columnImage: false,
@@ -426,6 +458,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 150,
},
{
userId: this.$store.state.user.name,
@@ -433,10 +466,9 @@
serialNumber: '301002TableMethodRemark',
tableId: "301002Table",
tableName: "检验项目维护表",
- columnWidth: 85,
columnProp: 'methodRemark',
headerAlign: 'center',
- align: "center",
+ align: "left",
columnLabel: '检验方法说明',
columnHidden: false,
columnImage: false,
@@ -444,6 +476,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 200,
},
{
userId: this.$store.state.user.name,
@@ -451,7 +484,6 @@
serialNumber: '301002TableValueType',
tableId: "301002Table",
tableName: "检验项目维护表",
- columnWidth: 85,
columnProp: 'valueType',
headerAlign: 'center',
align: "center",
@@ -462,6 +494,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 100,
},
{
userId: this.$store.state.user.name,
@@ -469,7 +502,6 @@
serialNumber: '301002TableInspectionTypeName',
tableId: "301002Table",
tableName: "检验项目维护表",
- columnWidth: 85,
columnProp: 'inspectionTypeName',
headerAlign: 'center',
align: "center",
@@ -480,6 +512,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 100,
},
{
userId: this.$store.state.user.name,
@@ -487,7 +520,6 @@
serialNumber: '301002TableDefaultValue',
tableId: "301002Table",
tableName: "检验项目维护表",
- columnWidth: 85,
columnProp: 'defaultValue',
headerAlign: 'center',
align: "right",
@@ -498,6 +530,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 100,
},
{
userId: this.$store.state.user.name,
@@ -505,7 +538,6 @@
serialNumber: '301002TableMaxValue',
tableId: "301002Table",
tableName: "检验项目维护表",
- columnWidth: 85,
columnProp: 'maxValue',
headerAlign: 'center',
align: "right",
@@ -516,6 +548,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 100,
},
{
userId: this.$store.state.user.name,
@@ -523,7 +556,6 @@
serialNumber: '301002TableMinValue',
tableId: "301002Table",
tableName: "检验项目维护表",
- columnWidth: 85,
columnProp: 'minValue',
headerAlign: 'center',
align: "right",
@@ -534,6 +566,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 100,
},
{
userId: this.$store.state.user.name,
@@ -541,10 +574,9 @@
serialNumber: '301002TableSamplingProgrammeDesc',
tableId: "301002Table",
tableName: "检验项目维护表",
- columnWidth: 85,
columnProp: 'samplingProgrammeDesc',
headerAlign: 'center',
- align: "center",
+ align: "left",
columnLabel: '抽样方案',
columnHidden: false,
columnImage: false,
@@ -552,6 +584,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 150,
},
{
userId: this.$store.state.user.name,
@@ -559,10 +592,9 @@
serialNumber: '301002TableSamplingLevelDesco',
tableId: "301002Table",
tableName: "检验项目维护表",
- columnWidth: 85,
columnProp: 'samplingLevelDesc',
headerAlign: 'center',
- align: "center",
+ align: "left",
columnLabel: '检验水平',
columnHidden: false,
columnImage: false,
@@ -570,6 +602,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 150,
},
{
userId: this.$store.state.user.name,
@@ -577,7 +610,6 @@
serialNumber: '301002TableItemSamplingQuantity',
tableId: "301002Table",
tableName: "检验项目维护表",
- columnWidth: 85,
columnProp: 'itemSamplingQuantity',
headerAlign: 'center',
align: "right",
@@ -588,6 +620,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 100,
},
{
userId: this.$store.state.user.name,
@@ -595,7 +628,6 @@
serialNumber: '301002TableDefaultSamplingProportion',
tableId: "301002Table",
tableName: "检验项目维护表",
- columnWidth: 85,
columnProp: 'defaultSamplingProportion',
headerAlign: 'center',
align: "right",
@@ -606,6 +638,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 100,
},
{
userId: this.$store.state.user.name,
@@ -613,7 +646,6 @@
serialNumber: '301002TableCreatedDate',
tableId: "301002Table",
tableName: "检验项目维护表",
- columnWidth: 85,
columnProp: 'createdDate',
headerAlign: 'center',
align: "center",
@@ -624,6 +656,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 170,
},
{
userId: this.$store.state.user.name,
@@ -631,7 +664,6 @@
serialNumber: '301002TableCreatedBy',
tableId: "301002Table",
tableName: "检验项目维护表",
- columnWidth: 85,
columnProp: 'createdBy',
headerAlign: 'center',
align: "center",
@@ -642,6 +674,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 100,
},
{
userId: this.$store.state.user.name,
@@ -649,7 +682,6 @@
serialNumber: '301002TableUpdateDate',
tableId: "301002Table",
tableName: "检验项目维护表",
- columnWidth: 85,
columnProp: 'updateDate',
headerAlign: 'center',
align: "center",
@@ -660,6 +692,7 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 170,
},
{
userId: this.$store.state.user.name,
@@ -667,7 +700,6 @@
serialNumber: '301002TableUpdateBy',
tableId: "301002Table",
tableName: "检验项目维护表",
- columnWidth: 85,
columnProp: 'updateBy',
headerAlign: 'center',
align: "center",
@@ -678,9 +710,17 @@
sortLv: 0,
status: true,
fixed: '',
+ columnWidth: 100,
},
],
rules: {
+ itemNoType:[
+ {
+ required: true,
+ message: ' ',
+ trigger: ['blur','change']
+ }
+ ],
itemDescType:[
{
required: true,
@@ -695,6 +735,13 @@
trigger: ['blur','change']
}
],
+ typeNoType:[
+ {
+ required: true,
+ message: ' ',
+ trigger: ['blur','change']
+ }
+ ],
methodNoType:[
{
required: true,
@@ -739,6 +786,7 @@
],
},
options: [],
+ itemTypeList:[],
methodData: {
site: '',
bu: '',
@@ -900,6 +948,24 @@
})
},
+ // 查询项目类型
+ itemTypeSearch () {
+ let tempData = {
+ site: this.modalData.bu.split('_')[0],
+ buNo: this.modalData.bu.split('_')[1],
+ }
+ itemTypeSearch(tempData).then(({data}) => {
+ if (data.code === 0) {
+ this.itemTypeList = data.rows
+ }
+ })
+ },
+
+ // bu改变事件
+ changeBu () {
+ this.itemTypeSearch()
+ },
+
// 列表方法的回调
getBaseData (val) {
if (this.tagNo === 1036) {
@@ -957,8 +1023,11 @@
samplingLevelDesc: '',
defaultSamplingProportion: '',
defectLevelCode: '',
- defectLevelDescription: ''
+ defectLevelDescription: '',
+ typeNo: ''
}
+ // 获取检验项目类型
+ this.itemTypeSearch()
this.modalDisableFlag = false
this.modalFlag = true
},
@@ -988,8 +1057,11 @@
samplingLevelDesc: row.samplingLevelDesc,
defaultSamplingProportion: row.defaultSamplingProportion,
defectLevelCode: row.defectLevelCode,
- defectLevelDescription: row.defectLevelDescription
+ defectLevelDescription: row.defectLevelDescription,
+ typeNo: row.typeNo
}
+ // 获取检验项目类型
+ this.itemTypeSearch()
this.modalDisableFlag = true
this.modalFlag = true
},
@@ -1025,14 +1097,22 @@
this.$message.warning('请选择BU!')
return
}
- if (this.modalData.itemDesc === '' || this.modalData.itemDesc == null) {
- this.$message.warning('请输入检验项目名称!')
- return
- }
if (this.modalData.valueTypeDb === '' || this.modalData.valueTypeDb == null) {
this.$message.warning('请选择检验值类型!')
return
}
+ if (this.modalData.typeNo === '' || this.modalData.typeNo == null) {
+ this.$message.warning('请选项目类型!')
+ return
+ }
+ if (this.modalData.itemNo === '' || this.modalData.itemNo == null) {
+ this.$message.warning('请输入检验项目编码!')
+ return
+ }
+ if (this.modalData.itemDesc === '' || this.modalData.itemDesc == null) {
+ this.$message.warning('请输入检验项目名称!')
+ return
+ }
if (this.modalData.inspectionTypeNo === '' || this.modalData.inspectionTypeNo == null) {
this.$message.warning('请选择检验类型!')
return