物料组新增导入优化

master
shaoyong 7 months ago
parent e8252a155c
commit 59e95d5f39

@ -50,3 +50,11 @@ export function delMaterialGroup(id) {
method: 'delete'
});
}
export function getOriginalGroupList(query) {
return request({
url: '/quality/materialGroup/getOriginalGroupList',
method: 'get',
params: query
});
}

@ -58,6 +58,9 @@
<el-form-item label="物料组名称" prop="groupName">
<el-input v-model="form.groupName" placeholder="请输入物料组名称" />
</el-form-item>
<el-form-item label="物料组编码" prop="groupCode">
<el-input v-model="form.groupCode" placeholder="请输入物料组编码" disabled/>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
@ -75,6 +78,7 @@
<script>
import {
getGroupList,
addMaterialGroup,
delMaterialGroup,
updateMaterialGroup,

@ -8,8 +8,8 @@
<el-row :gutter="20">
<el-col :span="24" :xs="24">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="105px" align="left">
<el-form-item label="检测项目名称">
<el-form :model="queryParams" ref="queryProjectForm" size="small" :inline="true" v-show="showSearch" label-width="105px" align="left">
<el-form-item label="检测项目名称" prop="ruleName">
<el-input
v-model="queryParams.ruleName"
placeholder="检测项目名称"
@ -19,11 +19,11 @@
/>
</el-form-item>
<el-form-item label="检测方案名称">
<el-form-item label="检测方案名称" prop="projectType">
<el-select v-model="queryParams.projectType" filterable clearable placeholder="请选择检测方案">
<el-option
v-for="item in projectTypeOptions"
:key="item.projectTypeCode"
v-for="(item,index) in projectTypeOptions"
:key="index"
:label="item.projectTypeName"
:value="item.projectTypeCode">
</el-option>
@ -66,7 +66,7 @@
</el-table-column>
<el-table-column label="测量单位" align="left" prop="unitCode" width="90"/>
<el-table-column label="抽样方案" align="left" prop="samplePlan" width="100" :show-overflow-tooltip="true"/>
<el-table-column label="合格判定" align="left" prop="judge"/ width="100">
<el-table-column label="合格判定" align="left" prop="judge" width="100" />
<el-table-column label="缺陷等级" align="left" prop="defectLevel" width="90"/>
<el-table-column label="检验方式" align="left" prop="checkMode" width="90" :show-overflow-tooltip="true"/>
<el-table-column label="检验工具" align="left" prop="checkTool" width="90"/>
@ -107,7 +107,8 @@ export default {
total: 0,
// BOM
itemList: null,
ruleName: null,
projectType:null,
//
bomCode: undefined,
defaultProps: {
@ -164,7 +165,7 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.resetForm("queryProjectForm");
this.handleQuery();
},
@ -183,6 +184,8 @@ export default {
this.$emit('onSelected', this.$refs.myTable.selection);
this.showFlag = false;
this.ruleName = '';
this.projectType = '';
},
}
};

@ -483,7 +483,7 @@ export default {
/** 下载模板操作 */
importTemplate() {
this.download('quality/project/importTemplate', {
}, `user_template_${new Date().getTime()}.xlsx`)
}, `check_project_template_${new Date().getTime()}.xlsx`)
},
//
handleFileUploadProgress(event, file, fileList) {

Loading…
Cancel
Save