Commit 94fc1a8f authored by jiaxu.yan's avatar jiaxu.yan

feat(统一修改样式): 分页样式

parent c513fb8b
......@@ -26,6 +26,7 @@ findex
Fixi
fuhelv
iconfont
iconpark
ipaddr
ishttp
jjwt
......
......@@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<!-- <link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet"> -->
<script src="https://lf1-cdn-tos.bytegoofy.com/obj/iconpark/icons_31435_5.c0443d2b40b0390efdb03d4a310219ef.js"></script>
<script src="https://lf1-cdn-tos.bytegoofy.com/obj/iconpark/icons_31435_35.a442e2b4ccf79c65839893f9276ba5b4.js"></script>
<title><%= webpackConfig.name %></title>
<!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
<style>
......
......@@ -2,4 +2,10 @@ import request from '@/utils/request'
/**
* 获取任务下企业文件
*/
export function getCompanyFile(data) {}
export function getCompanyFile(data) {
return request({
url: '/review/enterprise/archive/findList',
method: 'post',
data: data
})
}
......@@ -345,9 +345,43 @@ aside {
.w-100 {
width: 100%;
}
.el-dialog__header{
.el-dialog__header {
padding: 15px 23px;
}
.el-dialog__body{
.el-dialog__body {
padding: 15px 23px;
}
.el-pagination {
.number {
width: 32px;
height: 28px;
border: 1px solid #d9d9d9;
border-radius: 2px;
margin: 0 5px;
font-weight: normal;
background-color: #ffffff;
color: #606266;
}
button {
border: 1px solid #d9d9d9;
border-radius: 2px;
margin: 0 5px;
font-weight: normal;
color: #606266;
padding: 6px;
}
}
.el-pagination .btn-next {
padding-left: 6px;
}
.el-pagination .btn-prev {
padding-right: 6px;
}
.el-pager li.active + li {
border-left: 1px solid #d9d9d9 !important;
}
.el-pager li.active {
border: 1px solid #1a6fd7;
// background-color: #ffffff;
color: #1a6fd7;
}
......@@ -13,7 +13,10 @@ const mutations = {
const actions = {
getCompanyFiles({ commit }, data) {
getCompanyFile(data).then(res => {
commit('SET_FILES', res.data)
// 筛选数组返回其中某一个元素成为新数组
const resData = res.rows.map(item => { return { "value": item.fileName } })
console.log(resData);
commit('SET_FILES', resData)
})
}
}
......
......@@ -228,6 +228,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
......
......@@ -205,6 +205,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
......
......@@ -189,6 +189,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
......
......@@ -104,6 +104,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="pageNum"
:limit.sync="pageSize"
/>
......
......@@ -236,6 +236,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
......
......@@ -197,26 +197,26 @@
</div>
<div v-else class="card-cell option-cell">
<page-button
icon="renwuxiangqing"
icon="view-list"
title="任务详情"
class="button-item"
@click.native="goDetail(item.id)"
></page-button>
<page-button
icon="yunlanwenjian"
icon="file-display"
title="预览企业留档文件"
class="button-item"
@click.native="handleRetentionFile(item)"
></page-button>
<page-button
icon="wenjanku"
icon="folder-close"
title="车企文件库"
class="button-item"
@click.native="handleFileLibrary(item)"
></page-button>
<page-button
v-if="item.runStatus === 'RUNNABLE'"
icon="kaishitixishencha"
icon="play-one"
title="开始体系审查"
class="button-item"
@click.native="startTask(item)"
......@@ -228,6 +228,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="loadData"
......
......@@ -34,12 +34,12 @@
<div class="detail-title">审查细则(条)</div>
<div class="detail-num mt10">100</div>
</div>
<svg-icon
<iconpark-icon
class="message-icon"
width="64px"
height="64px"
icon-class="tag_shechaxize"
></svg-icon>
name="shechaxize"
size="64"
color="rgba(255,255,255,.3)"
></iconpark-icon>
</div>
<div class="message-box" style="background-color: #477bba">
......@@ -47,48 +47,48 @@
<div class="detail-title">审查细则符合率(%)</div>
<div class="detail-num mt10">100</div>
</div>
<svg-icon
<iconpark-icon
class="message-icon"
width="64px"
height="64px"
icon-class="tag_fuhelv"
></svg-icon>
name="fuhelv"
size="64"
color="rgba(255,255,255,.3)"
></iconpark-icon>
</div>
<div class="message-box" style="background-color: #eca740">
<div class="message-detail">
<div class="detail-title">标准条款(条)</div>
<div class="detail-num mt10">100</div>
</div>
<svg-icon
<iconpark-icon
class="message-icon"
width="64px"
height="64px"
icon-class="tag_biaozhuntiaokuan"
></svg-icon>
name="biaozhuntiaokuan"
size="64"
color="rgba(255,255,255,.3)"
></iconpark-icon>
</div>
<div class="message-box" style="background-color: #47baba">
<div class="message-detail">
<div class="detail-title">标准条款通过率(条)</div>
<div class="detail-num mt10">100</div>
</div>
<svg-icon
<iconpark-icon
class="message-icon"
width="64px"
height="64px"
icon-class="tag_tongguolv"
></svg-icon>
name="tongguolv"
size="64"
color="rgba(255,255,255,.3)"
></iconpark-icon>
</div>
<div class="message-box" style="background-color: #6c47ba">
<div class="message-detail">
<div class="detail-title">参与审查人数(人)</div>
<div class="detail-num mt10">100</div>
</div>
<svg-icon
<iconpark-icon
class="message-icon"
width="64px"
height="64px"
icon-class="tag_shenehrenshu"
></svg-icon>
name="shenehrenshu"
size="64"
color="rgba(255,255,255,.3)"
></iconpark-icon>
</div>
</div>
</div>
......@@ -149,6 +149,7 @@
<th>审查要点</th>
<th>审查细则</th>
<th>审查结果</th>
<th>记录</th>
<th>填写人</th>
</tr>
<template v-for="(keyPoint, keyPointKey) in item.keyPointList">
......@@ -165,16 +166,18 @@
<tr :key="reviewDetailKey">
<td align="center">{{ reviewDetail.text }}</td>
<td align="center">
{{
reviewDetail.result
? reviewDetail.result.passed === null
? '__'
: reviewDetail.result.passed === 0
? '不通过'
: '通过'
: '__'
}}
<el-tag
v-if="reviewDetail.result.passed === 1"
type="success"
>通过</el-tag
>
<el-tag
v-if="reviewDetail.result.passed === 0"
type="danger"
>不通过</el-tag
>
</td>
<td align="center">{{ reviewDetail.result }}</td>
<td align="center">
{{
reviewDetail.result
......
......@@ -7,7 +7,7 @@
<div class="file-box-header">企业文件库</div>
<el-form
ref="fileRef"
:model="fileData"
:model="model"
label-width="100px"
label-position="top"
class="file-form-class"
......@@ -17,21 +17,21 @@
<el-col :span="12">
<el-form-item label="企业名称" prop="enterpriseName">
<el-input
v-model="fileData.enterpriseName"
v-model="model.enterpriseName"
placeholder="请输入"
@input="updateFocus"
></el-input>
</el-form-item>
<el-form-item label="文件版本" prop="fileVersion">
<el-form-item label="文件版本" prop="version">
<el-input
v-model="fileData.fileVersion"
v-model="model.version"
placeholder="请输入"
@input="updateFocus"
></el-input>
</el-form-item>
<el-form-item label="文件状态" prop="fileStatus">
<el-form-item label="文件状态" prop="status">
<el-select
v-model="fileData.fileStatus"
v-model="model.status"
placeholder="请选择"
style="width: 100%"
@input="updateFocus"
......@@ -45,16 +45,16 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="文件识别号" prop="fileIdentification">
<el-form-item label="文件识别号" prop="identifyNumber">
<el-input
v-model="fileData.fileIdentification"
v-model="model.identifyNumber"
placeholder="请输入"
@input="updateFocus"
></el-input>
</el-form-item>
<el-form-item label="存储位置" prop="storageLocation">
<el-form-item label="存储位置" prop="storage">
<el-input
v-model="fileData.storageLocation"
v-model="model.storage"
placeholder="请输入"
@input="updateFocus"
></el-input>
......@@ -68,9 +68,10 @@
:disabled="true"
></el-input>
</el-form-item>
<el-form-item label="发布日期" prop="releaseDate">
<el-form-item label="发布日期" prop="publishDate">
<el-date-picker
v-model="fileData.releaseDate"
v-model="model.publishDate"
value-format="yyyy-MM-dd"
type="date"
placeholder="选择日期"
style="width: 100%"
......@@ -78,11 +79,8 @@
>
</el-date-picker>
</el-form-item>
<el-form-item label="文件照片" prop="filePicture">
<ImageUpload
v-model="fileData.filePicture"
:limit="1"
></ImageUpload>
<el-form-item label="文件照片" prop="photo">
<ImageUpload v-model="model.photo" :limit="1"></ImageUpload>
</el-form-item>
</el-col>
</el-row>
......@@ -111,39 +109,65 @@ export default {
fileName: [
{ required: true, message: '请输入文件名称', trigger: 'blur' }
],
fileVersion: [
version: [
{ required: true, message: '请输入文件版本', trigger: 'blur' }
],
releaseDate: [
publishDate: [
{ required: true, message: '请选择发布日期', trigger: 'change' }
],
fileStatus: [
status: [
{ required: true, message: '请选择文件状态', trigger: 'change' }
],
storageLocation: [
storage: [
{ required: true, message: '请输入存储位置', trigger: 'blur' }
],
fileIdentification: [
identifyNumber: [
{ required: true, message: '请输入文件识别号', trigger: 'blur' }
],
filePicture: [
photo: [
{ required: true, message: '请选择文件照片', trigger: 'change' }
]
},
fileData: {
model: this.$modelDataSource({
url: '/review/enterprise/archive',
dataKey: 'model',
attributes: {
id: 0,
enterpriseName: '',
fileStatus: '',
filePicture: '',
storageLocation: ''
fileName: '',
version: '',
publishDate: '',
status: '',
storage: '',
identifyNumber: '',
photo: '',
taskId: ''
}
})
}
},
watch: {
fileName(newValue) {
this.model.fileName = newValue
},
'dialogManger.dialogEditId'(newValue) {
this.model.fetch(
newValue,
{},
() => {},
() => {}
)
}
},
created() {
this.model.taskId = this.$route.query.id
},
methods: {
/**
* 失去焦点回调
*/
updateFocus() {
this.$emit('handleUpdate', this.isAllPropertiesNull(this.fileData))
this.$emit('handleUpdate', this.isAllPropertiesNull(this.model))
},
isAllPropertiesNull(obj) {
for (var key in obj) {
......@@ -157,11 +181,15 @@ export default {
// vue表单校验
this.$refs.fileRef.validate(valid => {
if (valid) {
this.model.save(
() => {
this.$store.dispatch('processing/getCompanyFiles', {
company: '',
taskId: ''
taskId: this.$route.query.id
})
this.$emit('handleSave', false)
},
errors => {}
)
}
})
}
......
......@@ -59,6 +59,7 @@
<th>审查要点</th>
<th>审查细则</th>
<th>审查结果</th>
<th>记录</th>
<th>填写人</th>
</tr>
<template v-for="(keyPoint, keyPointKey) in item.keyPointList">
......@@ -75,16 +76,18 @@
<tr :key="reviewDetailKey">
<td align="center">{{ reviewDetail.text }}</td>
<td align="center">
{{
reviewDetail.result
? reviewDetail.result.passed === null
? '__'
: reviewDetail.result.passed === 0
? '不通过'
: '通过'
: '__'
}}
<el-tag
v-if="reviewDetail.result.passed === 1"
type="success"
>通过</el-tag
>
<el-tag
v-if="reviewDetail.result.passed === 0"
type="danger"
>不通过</el-tag
>
</td>
<td align="center">{{ reviewDetail.result }}</td>
<td align="center">
{{
reviewDetail.result
......
......@@ -380,10 +380,9 @@ export default {
},
async mounted() {
this.taskId = this.$route.query.id
// this.$store.dispatch('processing/getCompanyFiles', {
// company: '',
// taskId: ''
// })
this.$store.dispatch('processing/getCompanyFiles', {
taskId: this.$route.query.id
})
await this.getTask()
this.handleCircle(0)
},
......
<template>
<el-dialog
:visible.sync="dialogManger.dialogVisible"
:title="modelTitle"
width="1200"
append-to-body
destroy-on-close
:before-close="handleClose"
>
<el-form
ref="fileRef"
:model="model"
label-width="100px"
label-position="top"
class="file-form-class"
:rules="rules"
>
<el-row :gutter="40">
<el-col :span="12">
<el-form-item label="企业名称" prop="enterpriseName">
<el-input
v-model="model.enterpriseName"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="文件版本" prop="version">
<el-input v-model="model.version" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="文件状态" prop="status">
<el-select
v-model="model.status"
placeholder="请选择"
style="width: 100%"
>
<el-option
v-for="item in dict.type.file_status"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="文件识别号" prop="identifyNumber">
<el-input
v-model="model.identifyNumber"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="存储位置" prop="storage">
<el-input v-model="model.storage" placeholder="请输入"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="文件名称" prop="fileName">
<el-input
v-model="model.fileName"
placeholder="请输入"
:disabled="true"
></el-input>
</el-form-item>
<el-form-item label="发布日期" prop="publishDate">
<el-date-picker
v-model="model.publishDate"
value-format="yyyy-MM-dd"
type="date"
placeholder="选择日期"
style="width: 100%"
>
</el-date-picker>
</el-form-item>
<el-form-item label="文件照片" prop="photo">
<ImageUpload v-model="model.photo" :limit="1"></ImageUpload>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer">
<el-button @click="handleClose()"> 取消</el-button>
<el-button type="primary" @click="handleConfirm()"> 保存</el-button>
</div>
</el-dialog>
</template>
<script>
export default {
props: {
dialogManger: {
type: Object,
default() {
return {
dialogVisible: false,
dialogEditId: 0
}
}
}
},
dicts: ['sys_scene_type'],
data() {
return {
model: this.$modelDataSource({
url: '/review/enterprise/archive',
dataKey: 'model',
attributes: {
id: 0,
enterpriseName: '',
fileName: '',
version: '',
publishDate: '',
status: '',
storage: '',
identifyNumber: '',
photo: '',
taskId: ''
}
}),
rules: {
enterpriseName: [
{ required: true, message: '请输入企业名称', trigger: 'blur' }
],
fileName: [
{ required: true, message: '请输入文件名称', trigger: 'blur' }
],
version: [
{ required: true, message: '请输入文件版本', trigger: 'blur' }
],
publishDate: [
{ required: true, message: '请选择发布日期', trigger: 'change' }
],
status: [
{ required: true, message: '请选择文件状态', trigger: 'change' }
],
storage: [
{ required: true, message: '请输入存储位置', trigger: 'blur' }
],
identifyNumber: [
{ required: true, message: '请输入文件识别号', trigger: 'blur' }
],
photo: [
{ required: true, message: '请选择文件照片', trigger: 'change' }
]
}
}
},
computed: {
modelTitle() {
return this.dialogManger.dialogEditId ? '编辑' : '新增' + '校验场景'
}
},
watch: {
'dialogManger.dialogEditId'(newValue) {
this.model.fetch(
newValue,
{},
() => {
this.dialogManger.dialogVisible = true
},
() => {
this.$emit('refresh')
}
)
}
},
methods: {
handleClose() {
this.$emit('close')
},
handleConfirm() {
this.$refs['form'].validate(valid => {
if (valid) {
console.log('校验', '111')
}
})
}
}
}
</script>
......@@ -2,15 +2,15 @@
<task-standard>
<el-form ref="queryForm" :model="queryParams" size="small" :inline="true">
<template v-if="showSearch">
<el-form-item prop="status" label="文件状态">
<el-form-item prop="fileName" label="文件名称">
<el-input
v-model="queryParams.deptName"
v-model="queryParams.fileName"
placeholder="请输入"
clearable
/>
</el-form-item>
<el-form-item prop="fileStatus" label="文件状态">
<el-select v-model="queryParams.fileStatus" placeholder="请选择">
<el-form-item prop="status" label="文件状态">
<el-select v-model="queryParams.status" placeholder="请选择">
<el-option
v-for="item in dict.type.file_status"
:key="item.value"
......@@ -20,9 +20,9 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item prop="status" label="文件识别号">
<el-form-item prop="identifyNumber" label="文件识别号">
<el-input
v-model="queryParams.deptName"
v-model="queryParams.identifyNumber"
placeholder="请输入"
clearable
/>
......@@ -66,74 +66,87 @@
</el-table-column>
<el-table-column
label="所属车企"
min-width="200"
prop="category"
min-width="210"
prop="enterpriseName"
align="center"
>
</el-table-column>
<el-table-column
prop="section"
prop="fileName"
label="文件名称"
min-width="200"
min-width="220"
align="center"
>
</el-table-column>
<el-table-column
prop="request"
prop="version"
label="文件版本"
min-width="200"
align="center"
min-width="100"
align="left"
>
</el-table-column>
<el-table-column
prop="resultYes"
prop="publishDate"
label="发布日期"
min-width="200"
min-width="100"
align="left"
>
<template slot-scope="scope">
<span>{{ parseTime(scope.row.publishDate, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column
prop="resultNO"
prop="status"
label="文件状态"
min-width="120"
align="left"
min-width="100"
align="center"
>
<template slot-scope="scope">
<el-tag type="success">{{ scope.row.resultNO }}</el-tag>
<el-tag size="medium" type="success"
>{{ getDictData(dict.type.file_status, scope.row.status) }}
</el-tag>
</template>
</el-table-column>
<el-table-column
prop="resultNO"
prop="storage"
label="存储位置"
min-width="200"
min-width="210"
align="left"
>
</el-table-column>
<el-table-column
prop="resultNO"
prop="identifyNumber"
label="文件识别号"
min-width="200"
min-width="170"
align="left"
>
</el-table-column>
<el-table-column
prop="resultNO"
prop="photo"
label="文件照片"
min-width="200"
align="left"
min-width="80"
align="center"
>
<template slot-scope="scope">
<img
:src="baseUrl + scope.row.photo"
alt="文件照片"
width="36"
height="36"
/>
</template>
</el-table-column>
<el-table-column
prop="resultNO"
prop="createBy"
label="创建人员"
min-width="200"
min-width="130"
align="left"
>
</el-table-column>
<el-table-column
label="创建时间"
min-width="200"
align="left"
min-width="170"
align="center"
sortable
prop="createTime"
>
......@@ -143,26 +156,29 @@
</el-table-column>
<el-table-column
label="操作"
align="left"
min-width="160"
align="center"
min-width="90"
fixed="right"
class-name="fixed-width"
>
<template slot-scope="scope">
<el-button
<page-button
v-hasPermi="['setting:standard:update']"
plain
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
>修改</el-button
>
style="margin: 0 auto"
icon="edit"
title="修改"
@click.native="handleUpdate(scope.row.id)"
></page-button>
</template>
</el-table-column>
</el-table>
<yan-dialog
:dialog-manger="dialogManger"
@close="dialogManger.dialogVisible = false"
></yan-dialog>
<pagination
:total="tableTotal"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="loadData"
......@@ -173,30 +189,50 @@
<script>
import page from '@/mixins/page'
import dialog from './components/dialog.vue'
export default {
components: {
'yan-dialog': dialog
},
dicts: ['file_status'],
mixins: [page],
data() {
return {
// 查询参数
queryParams: {
deptName: ''
// 弹窗管理器
dialogManger: {
dialogVisible: false,
refreshList: false,
dialogEditId: 0
},
baseUrl: process.env.VUE_APP_IMAGE_API,
listUrl: '/review/enterprise/archive/findEnterpriseArchive',
// 表格loading状态
tableLoading: false,
// 表格数据
tableData: [],
// 表格数据总数
tableTotal: 0
tableData: []
}
},
created() {
this.queryParams.taskId = this.$route.query.id
},
methods: {
// 搜索
handleQuery() {},
// 重置
resetQuery() {},
handleUpdate() {},
loadData() {}
/**
* 获取字典
* @param {*} options
* @param {*} value
*/
getDictData(options, value) {
const item = options.filter(v => v.value === value)
if (item.length > 0) {
return item[0].label
} else {
return null
}
},
handleUpdate(id) {
this.dialogManger.dialogVisible = true
this.dialogManger.dialogEditId = id
}
}
}
</script>
......
......@@ -204,6 +204,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="loadData"
......
......@@ -34,12 +34,12 @@
<div class="detail-title">审查细则(条)</div>
<div class="detail-num mt10">100</div>
</div>
<svg-icon
<iconpark-icon
class="message-icon"
width="64px"
height="64px"
icon-class="tag_shechaxize"
></svg-icon>
name="shechaxize"
size="64"
color="rgba(255,255,255,.3)"
></iconpark-icon>
</div>
<div class="message-box" style="background-color: #477bba">
......@@ -47,48 +47,48 @@
<div class="detail-title">审查细则符合率(%)</div>
<div class="detail-num mt10">100</div>
</div>
<svg-icon
<iconpark-icon
class="message-icon"
width="64px"
height="64px"
icon-class="tag_fuhelv"
></svg-icon>
name="fuhelv"
size="64"
color="rgba(255,255,255,.3)"
></iconpark-icon>
</div>
<div class="message-box" style="background-color: #eca740">
<div class="message-detail">
<div class="detail-title">标准条款(条)</div>
<div class="detail-num mt10">100</div>
</div>
<svg-icon
<iconpark-icon
class="message-icon"
width="64px"
height="64px"
icon-class="tag_biaozhuntiaokuan"
></svg-icon>
name="biaozhuntiaokuan"
size="64"
color="rgba(255,255,255,.3)"
></iconpark-icon>
</div>
<div class="message-box" style="background-color: #47baba">
<div class="message-detail">
<div class="detail-title">标准条款通过率(条)</div>
<div class="detail-num mt10">100</div>
</div>
<svg-icon
<iconpark-icon
class="message-icon"
width="64px"
height="64px"
icon-class="tag_tongguolv"
></svg-icon>
name="tongguolv"
size="64"
color="rgba(255,255,255,.3)"
></iconpark-icon>
</div>
<div class="message-box" style="background-color: #6c47ba">
<div class="message-detail">
<div class="detail-title">参与审查人数(人)</div>
<div class="detail-num mt10">100</div>
</div>
<svg-icon
<iconpark-icon
class="message-icon"
icon-class="tag_shenehrenshu"
width="64px"
height="64px"
></svg-icon>
name="shenehrenshu"
size="64"
color="rgba(255,255,255,.3)"
></iconpark-icon>
</div>
</div>
</div>
......@@ -149,6 +149,7 @@
<th>审查要点</th>
<th>审查细则</th>
<th>审查结果</th>
<th>记录</th>
<th>填写人</th>
</tr>
<template v-for="(keyPoint, keyPointKey) in item.keyPointList">
......@@ -165,16 +166,18 @@
<tr :key="reviewDetailKey">
<td align="center">{{ reviewDetail.text }}</td>
<td align="center">
{{
reviewDetail.result
? reviewDetail.result.passed === null
? '__'
: reviewDetail.result.passed === 0
? '不通过'
: '通过'
: '__'
}}
<el-tag
v-if="reviewDetail.result.passed === 1"
type="success"
>通过</el-tag
>
<el-tag
v-if="reviewDetail.result.passed === 0"
type="danger"
>不通过</el-tag
>
</td>
<td align="center">{{ reviewDetail.result }}</td>
<td align="center">
{{
reviewDetail.result
......
......@@ -34,12 +34,12 @@
<div class="detail-title">审查细则(条)</div>
<div class="detail-num mt10">100</div>
</div>
<svg-icon
<iconpark-icon
class="message-icon"
width="64px"
height="64px"
icon-class="tag_shechaxize"
></svg-icon>
name="shechaxize"
size="64"
color="rgba(255,255,255,.3)"
></iconpark-icon>
</div>
<div class="message-box" style="background-color: #477bba">
......@@ -47,48 +47,48 @@
<div class="detail-title">审查细则符合率(%)</div>
<div class="detail-num mt10">100</div>
</div>
<svg-icon
<iconpark-icon
class="message-icon"
width="64px"
height="64px"
icon-class="tag_fuhelv"
></svg-icon>
name="fuhelv"
size="64"
color="rgba(255,255,255,.3)"
></iconpark-icon>
</div>
<div class="message-box" style="background-color: #eca740">
<div class="message-detail">
<div class="detail-title">标准条款(条)</div>
<div class="detail-num mt10">100</div>
</div>
<svg-icon
<iconpark-icon
class="message-icon"
width="64px"
height="64px"
icon-class="tag_biaozhuntiaokuan"
></svg-icon>
name="biaozhuntiaokuan"
size="64"
color="rgba(255,255,255,.3)"
></iconpark-icon>
</div>
<div class="message-box" style="background-color: #47baba">
<div class="message-detail">
<div class="detail-title">标准条款通过率(条)</div>
<div class="detail-num mt10">100</div>
</div>
<svg-icon
<iconpark-icon
class="message-icon"
width="64px"
height="64px"
icon-class="tag_biaozhuntiaokuan"
></svg-icon>
name="tongguolv"
size="64"
color="rgba(255,255,255,.3)"
></iconpark-icon>
</div>
<div class="message-box" style="background-color: #6c47ba">
<div class="message-detail">
<div class="detail-title">参与审查人数(人)</div>
<div class="detail-num mt10">100</div>
</div>
<svg-icon
<iconpark-icon
class="message-icon"
width="64px"
height="64px"
icon-class="tag_shenehrenshu"
></svg-icon>
name="shenehrenshu"
size="64"
color="rgba(255,255,255,.3)"
></iconpark-icon>
</div>
</div>
</div>
......@@ -149,6 +149,7 @@
<th>审查要点</th>
<th>审查细则</th>
<th>审查结果</th>
<th>记录</th>
<th>填写人</th>
</tr>
<template v-for="(keyPoint, keyPointKey) in item.keyPointList">
......@@ -165,16 +166,18 @@
<tr :key="reviewDetailKey">
<td align="center">{{ reviewDetail.text }}</td>
<td align="center">
{{
reviewDetail.result
? reviewDetail.result.passed === null
? '__'
: reviewDetail.result.passed === 0
? '不通过'
: '通过'
: '__'
}}
<el-tag
v-if="reviewDetail.result.passed === 1"
type="success"
>通过</el-tag
>
<el-tag
v-if="reviewDetail.result.passed === 0"
type="danger"
>不通过</el-tag
>
</td>
<td align="center">{{ reviewDetail.result }}</td>
<td align="center">
{{
reviewDetail.result
......
......@@ -7,7 +7,7 @@
<div class="file-box-header">企业文件库</div>
<el-form
ref="fileRef"
:model="fileData"
:model="model"
label-width="100px"
label-position="top"
class="file-form-class"
......@@ -17,21 +17,21 @@
<el-col :span="12">
<el-form-item label="企业名称" prop="enterpriseName">
<el-input
v-model="fileData.enterpriseName"
v-model="model.enterpriseName"
placeholder="请输入"
@input="updateFocus"
></el-input>
</el-form-item>
<el-form-item label="文件版本" prop="fileVersion">
<el-form-item label="文件版本" prop="version">
<el-input
v-model="fileData.fileVersion"
v-model="model.version"
placeholder="请输入"
@input="updateFocus"
></el-input>
</el-form-item>
<el-form-item label="文件状态" prop="fileStatus">
<el-form-item label="文件状态" prop="status">
<el-select
v-model="fileData.fileStatus"
v-model="model.status"
placeholder="请选择"
style="width: 100%"
@input="updateFocus"
......@@ -45,16 +45,16 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="文件识别号" prop="fileIdentification">
<el-form-item label="文件识别号" prop="identifyNumber">
<el-input
v-model="fileData.fileIdentification"
v-model="model.identifyNumber"
placeholder="请输入"
@input="updateFocus"
></el-input>
</el-form-item>
<el-form-item label="存储位置" prop="storageLocation">
<el-form-item label="存储位置" prop="storage">
<el-input
v-model="fileData.storageLocation"
v-model="model.storage"
placeholder="请输入"
@input="updateFocus"
></el-input>
......@@ -68,9 +68,10 @@
:disabled="true"
></el-input>
</el-form-item>
<el-form-item label="发布日期" prop="releaseDate">
<el-form-item label="发布日期" prop="publishDate">
<el-date-picker
v-model="fileData.releaseDate"
v-model="model.publishDate"
value-format="yyyy-MM-dd"
type="date"
placeholder="选择日期"
style="width: 100%"
......@@ -78,11 +79,8 @@
>
</el-date-picker>
</el-form-item>
<el-form-item label="文件照片" prop="filePicture">
<ImageUpload
v-model="fileData.filePicture"
:limit="1"
></ImageUpload>
<el-form-item label="文件照片" prop="photo">
<ImageUpload v-model="model.photo" :limit="1"></ImageUpload>
</el-form-item>
</el-col>
</el-row>
......@@ -111,39 +109,65 @@ export default {
fileName: [
{ required: true, message: '请输入文件名称', trigger: 'blur' }
],
fileVersion: [
version: [
{ required: true, message: '请输入文件版本', trigger: 'blur' }
],
releaseDate: [
publishDate: [
{ required: true, message: '请选择发布日期', trigger: 'change' }
],
fileStatus: [
status: [
{ required: true, message: '请选择文件状态', trigger: 'change' }
],
storageLocation: [
storage: [
{ required: true, message: '请输入存储位置', trigger: 'blur' }
],
fileIdentification: [
identifyNumber: [
{ required: true, message: '请输入文件识别号', trigger: 'blur' }
],
filePicture: [
photo: [
{ required: true, message: '请选择文件照片', trigger: 'change' }
]
},
fileData: {
model: this.$modelDataSource({
url: '/review/enterprise/archive',
dataKey: 'model',
attributes: {
id: 0,
enterpriseName: '',
fileStatus: '',
filePicture: '',
storageLocation: ''
fileName: '',
version: '',
publishDate: '',
status: '',
storage: '',
identifyNumber: '',
photo: '',
taskId: ''
}
})
}
},
watch: {
fileName(newValue) {
this.model.fileName = newValue
},
'dialogManger.dialogEditId'(newValue) {
this.model.fetch(
newValue,
{},
() => {},
() => {}
)
}
},
created() {
this.model.taskId = this.$route.query.id
},
methods: {
/**
* 失去焦点回调
*/
updateFocus() {
this.$emit('handleUpdate', this.isAllPropertiesNull(this.fileData))
this.$emit('handleUpdate', this.isAllPropertiesNull(this.model))
},
isAllPropertiesNull(obj) {
for (var key in obj) {
......@@ -153,16 +177,19 @@ export default {
}
return false
},
handleSaveFile() {
// vue表单校验
this.$refs.fileRef.validate(valid => {
if (valid) {
this.model.save(
() => {
this.$store.dispatch('processing/getCompanyFiles', {
company: '',
taskId: ''
taskId: this.$route.query.id
})
this.$emit('handleSave', false)
},
errors => {}
)
}
})
}
......
......@@ -59,6 +59,7 @@
<th>审查要点</th>
<th>审查细则</th>
<th>审查结果</th>
<th>记录</th>
<th>填写人</th>
</tr>
<template v-for="(keyPoint, keyPointKey) in item.keyPointList">
......@@ -75,16 +76,18 @@
<tr :key="reviewDetailKey">
<td align="center">{{ reviewDetail.text }}</td>
<td align="center">
{{
reviewDetail.result
? reviewDetail.result.passed === null
? '__'
: reviewDetail.result.passed === 0
? '不通过'
: '通过'
: '__'
}}
<el-tag
v-if="reviewDetail.result.passed === 1"
type="success"
>通过</el-tag
>
<el-tag
v-if="reviewDetail.result.passed === 0"
type="danger"
>不通过</el-tag
>
</td>
<td align="center">{{ reviewDetail.result }}</td>
<td align="center">
{{
reviewDetail.result
......
......@@ -361,6 +361,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="loadData"
......@@ -462,7 +463,7 @@ export default {
handleFileLibrary(item) {
console.log(item)
this.$router.push({
path: '/processing/fileLibrary'
path: '/processing/fileLibrary?id=' + item.id
})
},
/**
......
......@@ -134,6 +134,7 @@
</el-table>
<pagination
:total="tableTotal"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="loadData"
......
......@@ -160,6 +160,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.page"
:limit.sync="queryParams.size"
@pagination="loadData"
......
......@@ -168,6 +168,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="loadData"
......
......@@ -115,6 +115,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.page"
:limit.sync="queryParams.size"
@pagination="loadData"
......
......@@ -62,6 +62,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.page"
:limit.sync="queryParams.size"
@pagination="loadData"
......
......@@ -62,6 +62,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.page"
:limit.sync="queryParams.size"
@pagination="loadData"
......
......@@ -271,6 +271,7 @@
v-if="queryParams.type > 1"
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.page"
:limit.sync="queryParams.size"
@pagination="loadData"
......
......@@ -180,6 +180,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
......@@ -602,7 +603,7 @@ export default {
<style>
.dialog-button {
display: flex;
justify-content: end;
justify-content: flex-end;
margin-right: 20px;
}
</style>
......@@ -113,6 +113,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="loadData"
......
......@@ -62,6 +62,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.page"
:limit.sync="queryParams.size"
@pagination="loadData"
......
......@@ -99,6 +99,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.page"
:limit.sync="queryParams.size"
@pagination="loadData"
......
......@@ -107,6 +107,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="loadData"
......
......@@ -86,6 +86,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.page"
:limit.sync="queryParams.size"
@pagination="getList"
......
......@@ -114,6 +114,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="loadData"
......
......@@ -141,6 +141,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
......
......@@ -207,6 +207,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
......
......@@ -197,6 +197,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
......
......@@ -210,6 +210,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
......
......@@ -176,6 +176,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
......
......@@ -162,6 +162,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
......
......@@ -144,6 +144,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
......
......@@ -210,6 +210,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
......
......@@ -88,6 +88,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
......
......@@ -53,6 +53,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="pageNum"
:limit.sync="pageSize"
/>
......
......@@ -284,6 +284,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
......
......@@ -137,6 +137,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.page"
:limit.sync="queryParams.size"
@pagination="loadData"
......
......@@ -141,6 +141,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.page"
:limit.sync="queryParams.size"
@pagination="loadData"
......
......@@ -476,6 +476,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="loadData"
......@@ -571,7 +572,7 @@ export default {
handleFileLibrary(item) {
console.log(item)
this.$router.push({
path: '/processing/fileLibrary'
path: '/processing/fileLibrary?id=' + item.id
})
},
/**
......
......@@ -66,6 +66,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
......
......@@ -208,6 +208,7 @@
<pagination
v-show="total > 0"
:total="total"
:background="false"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment