diff --git a/src/api/mes/qc/templateindex.js b/src/api/mes/qc/templateindex.js
new file mode 100644
index 0000000..2d48242
--- /dev/null
+++ b/src/api/mes/qc/templateindex.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询检测模板-检测项列表
+export function listTemplateindex(query) {
+ return request({
+ url: '/mes/qc/templateindex/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询检测模板-检测项详细
+export function getTemplateindex(recordId) {
+ return request({
+ url: '/mes/qc/templateindex/' + recordId,
+ method: 'get'
+ })
+}
+
+// 新增检测模板-检测项
+export function addTemplateindex(data) {
+ return request({
+ url: '/mes/qc/templateindex',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改检测模板-检测项
+export function updateTemplateindex(data) {
+ return request({
+ url: '/mes/qc/templateindex',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除检测模板-检测项
+export function delTemplateindex(recordId) {
+ return request({
+ url: '/mes/qc/templateindex/' + recordId,
+ method: 'delete'
+ })
+}
diff --git a/src/components/qcindexSelect/single.vue b/src/components/qcindexSelect/single.vue
new file mode 100644
index 0000000..091dfcd
--- /dev/null
+++ b/src/components/qcindexSelect/single.vue
@@ -0,0 +1,187 @@
+
+
+
+
+
+ {{dict.label}}
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+ {{""}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/mes/md/mditem/index.vue b/src/views/mes/md/mditem/index.vue
index c9d1f66..5763ae9 100644
--- a/src/views/mes/md/mditem/index.vue
+++ b/src/views/mes/md/mditem/index.vue
@@ -122,7 +122,8 @@
-
+
+
@@ -470,6 +471,7 @@ export default {
created() {
this.getList();
this.getTreeselect();
+ this.getUnits();
},
methods: {
/** 查询物料编码列表 */
@@ -482,6 +484,11 @@ export default {
}
);
},
+ getUnits(){
+ listAllUnitmeasure().then(response =>{
+ this.measureOptions = response.data;
+ });
+ },
/** 查询分类下拉树结构 */
getTreeselect() {
treeselect().then(response => {
@@ -555,9 +562,6 @@ export default {
/** 新增按钮操作 */
handleAdd() {
this.reset();
- listAllUnitmeasure().then(response =>{
- this.measureOptions = response.data;
- });
this.getTreeselect();
if(this.queryParams.itemTypeId != 0){
this.form.itemTypeId = this.queryParams.itemTypeId;
diff --git a/src/views/mes/qc/qctemplate/index.vue b/src/views/mes/qc/qctemplate/index.vue
index 9373be4..b7a6840 100644
--- a/src/views/mes/qc/qctemplate/index.vue
+++ b/src/views/mes/qc/qctemplate/index.vue
@@ -85,7 +85,15 @@
-
+
+
+ {{scope.row.templateCode}}
+
+
@@ -187,6 +195,12 @@
+
+
+
+
+
+