资质填报设置

master
schry 2 years ago
parent 879c2f1c93
commit 9b2ed727fa

@ -1,97 +1,97 @@
<template>
<div>
<el-card>
<div>
<p class="form-title">配送企业资质设置</p>
</div>
<div style=" float: right; text-align: right; margin-bottom: 8px;">
<el-button type="primary" size="mini" icon="search" @click="addCert" style="text-align:right">添加设置</el-button>
</div>
<el-table v-loading="loading" :data="list" style="width: 100%" border highlight-current-row>
<el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column label="证书名称" prop="name"></el-table-column>
<el-table-column label="是否必传" prop="require" s>
<template slot-scope="scope">
<span>{{ enableMap[scope.row.need] }}</span>
</template>
</el-table-column>
<el-table-column label="说明" prop="remark"></el-table-column>
<el-table-column label="操作" width="200">
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click="handleEdit(scope.row)"
>编辑
</el-button>
<el-button
type="text"
size="small"
@click="handleDel( scope.row)"
>删除
</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="query.page"
:limit.sync="query.limit"
@pagination="handleCurrentChange"
></pagination>
<el-dialog
:title="formMap[formName]"
:visible.sync="addDialogVisible"
width="60%"
:close-on-click-modal="false"
:close-on-press-escape="false"
v-if="addDialogVisible"
>
<el-form :model="currentSup" :rules="formRules" label-width="100px" ref="dataForm">
<el-row>
<el-col :span="11">
<el-form-item label="证书名称:" prop="name">
<el-input v-model="currentSup.name" style="width: 90%" auto-complete="off"></el-input>
</el-form-item>
</el-col>
<el-col :span="11">
<el-form-item label="是否必传:" prop="need">
<el-select style="width: 90%" v-model="currentSup.need">
<el-option label="是" :value=true></el-option>
<el-option label="否" :value=false></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="22">
<el-form-item label="说明:" prop="remark">
<el-input v-model="currentSup.remark" style="width: 95.5%" auto-complete="off" type="textarea"
autosize></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div style="text-align: center">
<el-button type="primary" size="small" icon="search" @click="onAddSubmit"
>提交
</el-button
>
<el-button type="primary" size="small" icon="search" @click="cancelDialog"
>取消
</el-button
>
</div>
</el-dialog>
</el-card>
<!-- <el-card>-->
<!-- <div>-->
<!-- <p class="form-title">配送企业资质设置</p>-->
<!-- </div>-->
<!-- <div style=" float: right; text-align: right; margin-bottom: 8px;">-->
<!-- <el-button type="primary" size="mini" icon="search" @click="addCert" style="text-align:right">添加设置</el-button>-->
<!-- </div>-->
<!-- <el-table v-loading="loading" :data="list" style="width: 100%" border highlight-current-row>-->
<!-- <el-table-column type="index" label="序号" width="50"></el-table-column>-->
<!-- <el-table-column label="证书名称" prop="name"></el-table-column>-->
<!-- <el-table-column label="是否必传" prop="require" s>-->
<!-- <template slot-scope="scope">-->
<!-- <span>{{ enableMap[scope.row.need] }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column label="说明" prop="remark"></el-table-column>-->
<!-- <el-table-column label="操作" width="200">-->
<!-- <template slot-scope="scope">-->
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small"-->
<!-- @click="handleEdit(scope.row)"-->
<!-- >编辑-->
<!-- </el-button>-->
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small"-->
<!-- @click="handleDel( scope.row)"-->
<!-- >删除-->
<!-- </el-button>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- </el-table>-->
<!-- <pagination-->
<!-- v-show="total>0"-->
<!-- :total="total"-->
<!-- :page.sync="query.page"-->
<!-- :limit.sync="query.limit"-->
<!-- @pagination="handleCurrentChange"-->
<!-- ></pagination>-->
<!-- <el-dialog-->
<!-- :title="formMap[formName]"-->
<!-- :visible.sync="addDialogVisible"-->
<!-- width="60%"-->
<!-- :close-on-click-modal="false"-->
<!-- :close-on-press-escape="false"-->
<!-- v-if="addDialogVisible"-->
<!-- >-->
<!-- <el-form :model="currentSup" :rules="formRules" label-width="100px" ref="dataForm">-->
<!-- <el-row>-->
<!-- <el-col :span="11">-->
<!-- <el-form-item label="证书名称:" prop="name">-->
<!-- <el-input v-model="currentSup.name" style="width: 90%" auto-complete="off"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="11">-->
<!-- <el-form-item label="是否必传:" prop="need">-->
<!-- <el-select style="width: 90%" v-model="currentSup.need">-->
<!-- <el-option label="是" :value=true></el-option>-->
<!-- <el-option label="否" :value=false></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row>-->
<!-- <el-col :span="22">-->
<!-- <el-form-item label="说明:" prop="remark">-->
<!-- <el-input v-model="currentSup.remark" style="width: 95.5%" auto-complete="off" type="textarea"-->
<!-- autosize></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- </el-form>-->
<!-- <div style="text-align: center">-->
<!-- <el-button type="primary" size="small" icon="search" @click="onAddSubmit"-->
<!-- >提交-->
<!-- </el-button-->
<!-- >-->
<!-- <el-button type="primary" size="small" icon="search" @click="cancelDialog"-->
<!-- >取消-->
<!-- </el-button-->
<!-- >-->
<!-- </div>-->
<!-- </el-dialog>-->
<!-- </el-card>-->
<el-card>
<div>

Loading…
Cancel
Save