accessment part1

This commit is contained in:
caoqianming 2020-09-16 14:33:15 +08:00
parent 464b46b1ff
commit aa7a88d031
12 changed files with 72 additions and 10 deletions

View File

@ -32,6 +32,7 @@ if (process.env.NODE_ENV === 'production') {
// set ElementUI lang to EN
// Vue.use(ElementUI, { locale })
// 如果想要中文版 element-ui按如下方式声明
ElementUI.Input.props.clearable.default=true;
Vue.use(ElementUI, { size: 'medium' })
Vue.config.productionTip = false

View File

@ -70,7 +70,10 @@ div:focus {
.el-form-item {
margin-bottom: 16px;
}
.el-card, .el-message {
border-radius: 0px;
overflow: hidden;
}
.el-card__body {
padding: 6px;
}
@ -95,3 +98,6 @@ div:focus {
.el-button+.el-button {
margin-left: 1px;
}
.el-button {
border-radius: 0px;
}

View File

@ -2,14 +2,48 @@
<div>
<el-card >
<div slot="header" class="clearfix">
<span>评定结论</span>
<span>认证结果评价</span>
<el-button type="primary" >创建</el-button>
</div>
<el-table
ref="elTable"
v-loading="listLoading"
:data="tableData"
style="width: 100%;"
border
fit
stripe
highlight-current-row
>
<el-table-column label="评定表编号">
<template slot-scope="scope">{{ scope.row.number }}</template>
</el-table-column>
<el-table-column label="工厂检查结论">
<template slot-scope="scope">
{{ scope.row.conclusion }}
</template>
</el-table-column>
<el-table-column label="不符合项分类">
<template slot-scope="scope" >{{ scope.row.create_time }}</template>
</el-table-column>
<el-table-column label="创建时间">
<template slot-scope="scope">
{{ scope.row.create_time }}
</template>
</el-table-column>
</el-table>
</el-card>
</div>
</template>
<script>
export default {
name:'access'
name:'access',
data() {
return {
listLoading:false,
tableData:[]
}
}
}
</script>

View File

@ -38,7 +38,7 @@
fit
stripe
highlight-current-row
max-height="600"
>
<el-table-column type="index" width="50" />
<el-table-column label="申请单号">

View File

@ -73,6 +73,7 @@
v-model="formDataMember.identity"
placeholder="请选择"
:style="{width: '100%'}"
clearable
>
<el-option
v-for="item in identityOptions"
@ -89,12 +90,10 @@
</el-form-item>
</el-col>
</el-row>
<el-row style="text-align:left;">
<el-button-group>
<el-row style="text-align:right;">
<el-button type="primary" @click="appendNewM">添加新成员</el-button>
<el-button type="warning" @click="updateNowM">保存</el-button>
<el-button @click="resetForm_member">重置</el-button>
</el-button-group>
</el-row>
</el-form>
</el-card>
@ -136,10 +135,8 @@
</el-form-item>
</el-col>
</el-row>
<el-row style="text-align:left;">
<el-button-group>
<el-row style="text-align:right;">
<el-button type="warning" @click="saveDays">保存</el-button>
</el-button-group>
</el-row>
</el-form>
</el-card>

View File

View File

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

View File

@ -0,0 +1,5 @@
from django.apps import AppConfig
class AccessmentConfig(AppConfig):
name = 'accessment'

View File

@ -0,0 +1,10 @@
from utils import model
from django.contrib.postgres.fields import JSONField
from django.db import models
from rest_framework.exceptions import ParseError
from simple_history.models import HistoricalRecords
from apps.certset.models import ImplementRule, UnitType, EvaluationItem, Standard
from apps.crm.models import Enterprise
from apps.project.models import CertApp
from apps.system.models import CommonAModel, CommonBModel, Dict, User

View File

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

View File

@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.