jianyantianjiaqiyong
This commit is contained in:
parent
ba2b0ad4a6
commit
3b1fefc696
|
|
@ -343,7 +343,7 @@ export const asyncRoutes = [
|
||||||
path: 'admissiontest',
|
path: 'admissiontest',
|
||||||
name: 'admissiontest',
|
name: 'admissiontest',
|
||||||
component: () => import('@/views/qm/admissiontest'),
|
component: () => import('@/views/qm/admissiontest'),
|
||||||
meta: { title: '入场检验', icon: 'example', perms: ['index_manage'] }
|
meta: { title: '入厂检验', icon: 'example', perms: ['index_manage'] }
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,14 @@
|
||||||
<el-table-column label="表名称">
|
<el-table-column label="表名称">
|
||||||
<template slot-scope="scope">{{ scope.row.name }}</template>
|
<template slot-scope="scope">{{ scope.row.name }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="是否启用">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tag v-if="scope.row.enabled==false">否</el-tag>
|
||||||
|
<el-tag v-if="scope.row.enabled==true">是</el-tag>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column align="center" label="操作">
|
<el-table-column align="center" label="操作">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-link
|
<el-link
|
||||||
|
|
@ -73,6 +81,9 @@
|
||||||
<el-form-item label="表格名称" prop="name">
|
<el-form-item label="表格名称" prop="name">
|
||||||
<el-input v-model="recordform.name" placeholder="表格名称"/>
|
<el-input v-model="recordform.name" placeholder="表格名称"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="是否启用" prop="name">
|
||||||
|
<el-switch v-model="recordform.enabled"></el-switch>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div style="text-align: right">
|
<div style="text-align: right">
|
||||||
<el-button type="danger" @click="dialogVisible = false"
|
<el-button type="danger" @click="dialogVisible = false"
|
||||||
|
|
@ -546,7 +557,7 @@
|
||||||
number: "",
|
number: "",
|
||||||
};
|
};
|
||||||
|
|
||||||
const defaultrecordform = {};
|
const defaultrecordform = {enabled:false};
|
||||||
const defaultfield = {};
|
const defaultfield = {};
|
||||||
let preDrawAry = [];
|
let preDrawAry = [];
|
||||||
export default {
|
export default {
|
||||||
|
|
|
||||||
|
|
@ -566,7 +566,13 @@
|
||||||
<el-table-column label="文件名称">
|
<el-table-column label="文件名称">
|
||||||
<template slot-scope="scope">{{ scope.row.name }}</template>
|
<template slot-scope="scope">{{ scope.row.name }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="是否启用">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tag v-if="scope.row.enabled==false">否</el-tag>
|
||||||
|
<el-tag v-if="scope.row.enabled==true">是</el-tag>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column align="center" label="文件">
|
<el-table-column align="center" label="文件">
|
||||||
<template slot-scope="scope" v-if="scope.row.file_">
|
<template slot-scope="scope" v-if="scope.row.file_">
|
||||||
|
|
@ -616,7 +622,9 @@
|
||||||
<quill-editor ref="text" v-model="techdoc.content" style="height:250px" :options="editorOption" />
|
<quill-editor ref="text" v-model="techdoc.content" style="height:250px" :options="editorOption" />
|
||||||
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="是否启用" prop="name">
|
||||||
|
<el-switch v-model="techdoc.enabled"></el-switch>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="文件" prop="template" v-if="dialogVisiblet">
|
<el-form-item label="文件" prop="template" v-if="dialogVisiblet">
|
||||||
<el-upload
|
<el-upload
|
||||||
ref="upload"
|
ref="upload"
|
||||||
|
|
@ -671,9 +679,7 @@ const defaultother = {};
|
||||||
const defaultusedstep = {
|
const defaultusedstep = {
|
||||||
|
|
||||||
};
|
};
|
||||||
const defaulttechdoc = {
|
const defaulttechdoc = {enabled:false};
|
||||||
|
|
||||||
};
|
|
||||||
const defaultsubproducation = {
|
const defaultsubproducation = {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -955,6 +955,7 @@
|
||||||
this.wproduct = scope.row.id;//半成品ID
|
this.wproduct = scope.row.id;//半成品ID
|
||||||
this.listQueryrecordform.material = scope.row.material_.id;//
|
this.listQueryrecordform.material = scope.row.material_.id;//
|
||||||
this.listQueryrecordform.type = 2;
|
this.listQueryrecordform.type = 2;
|
||||||
|
this.listQueryrecordform.enabled = true;
|
||||||
this.recordform = null;
|
this.recordform = null;
|
||||||
getrecordformList(this.listQueryrecordform).then((response) => {
|
getrecordformList(this.listQueryrecordform).then((response) => {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
|
|
@ -1003,7 +1004,7 @@
|
||||||
that.recordform = scope.row.form;
|
that.recordform = scope.row.form;
|
||||||
that.formName = scope.row.form_.name;
|
that.formName = scope.row.form_.name;
|
||||||
if(that.innerIndex==='1'){//非复检
|
if(that.innerIndex==='1'){//非复检
|
||||||
getrffieldList({form: this.recordform, page: 1, page_size: 100}).then((response) => {
|
getrffieldList({form: this.recordform,enabled:true, page: 1, page_size: 100}).then((response) => {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
that.hasPicture = false;
|
that.hasPicture = false;
|
||||||
let fieldList = response.data.results;
|
let fieldList = response.data.results;
|
||||||
|
|
|
||||||
|
|
@ -787,7 +787,7 @@ export default {
|
||||||
},
|
},
|
||||||
//操作自定义表
|
//操作自定义表
|
||||||
getrecordLists() {
|
getrecordLists() {
|
||||||
getrecordList({ operation: this.id, page: 0 }).then((response) => {
|
getrecordList({ operation: this.id, page: 0,enabled:true }).then((response) => {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.recordData = response.data;
|
this.recordData = response.data;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue