|
|
@ -179,6 +179,65 @@
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
<el-card>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
码上放心企业信息:
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div style="float: right; margin-top: -20px">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
icon="search"
|
|
|
|
|
|
|
|
@click="restAssuredOnCodeSave()"
|
|
|
|
|
|
|
|
>保存信息
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<el-form
|
|
|
|
|
|
|
|
:model="restAssuredOnCodeQuery"
|
|
|
|
|
|
|
|
:rules="restAssuredOnCodeRules"
|
|
|
|
|
|
|
|
ref="restAssuredOnCodeQuery"
|
|
|
|
|
|
|
|
label-width="100px"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-row
|
|
|
|
|
|
|
|
:gutter="20"
|
|
|
|
|
|
|
|
class="el-row"
|
|
|
|
|
|
|
|
type="flex"
|
|
|
|
|
|
|
|
style="margin-top: 25px"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-col :span="10" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item
|
|
|
|
|
|
|
|
label="应用Key:"
|
|
|
|
|
|
|
|
label-width="150px"
|
|
|
|
|
|
|
|
prop="appKey"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
v-model="restAssuredOnCodeQuery.appKey"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="10" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item
|
|
|
|
|
|
|
|
label="应用密文:"
|
|
|
|
|
|
|
|
label-width="150px"
|
|
|
|
|
|
|
|
prop="appSecret"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
v-model="restAssuredOnCodeQuery.appSecret"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
<el-card>
|
|
|
|
<el-card>
|
|
|
|
<div style="float: right; text-align: right; margin-bottom: 8px">
|
|
|
|
<div style="float: right; text-align: right; margin-bottom: 8px">
|
|
|
@ -280,7 +339,8 @@
|
|
|
|
<template v-for="(item, index) in tableHeader">
|
|
|
|
<template v-for="(item, index) in tableHeader">
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
v-if="item.columnType == 'id' && executeEval(row,item.expression,true)"
|
|
|
|
v-if="item.columnType == 'id' && executeEval(row,item.expression,true)"
|
|
|
|
type="index" :label="item.columnDesc"></el-table-column>
|
|
|
|
type="index" :label="item.columnDesc"
|
|
|
|
|
|
|
|
></el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
v-if="item.columnType == 'selection'"
|
|
|
|
v-if="item.columnType == 'selection'"
|
|
|
|
type="selection"
|
|
|
|
type="selection"
|
|
|
@ -311,7 +371,8 @@
|
|
|
|
:key="item.columnName"
|
|
|
|
:key="item.columnName"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}">{{ item.lableRuleObj[scope.row[item.columnName]] }}</span>
|
|
|
|
<span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}"
|
|
|
|
|
|
|
|
>{{ item.lableRuleObj[scope.row[item.columnName]] }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
@ -324,8 +385,12 @@
|
|
|
|
:key="item.columnName"
|
|
|
|
:key="item.columnName"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-tag :type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])">
|
|
|
|
<el-tag
|
|
|
|
<span>{{ item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName] }}</span>
|
|
|
|
:type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<span>{{
|
|
|
|
|
|
|
|
item.lableRuleObj ? item.lableRuleObj[scope.row[item.columnName]] : scope.row[item.columnName]
|
|
|
|
|
|
|
|
}}</span>
|
|
|
|
</el-tag>
|
|
|
|
</el-tag>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
@ -360,7 +425,8 @@
|
|
|
|
:key="item.columnName"
|
|
|
|
:key="item.columnName"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{ scope.row[item.columnName] }}</span>
|
|
|
|
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}"
|
|
|
|
|
|
|
|
>{{ scope.row[item.columnName] }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -435,31 +501,33 @@
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
modifyCompany,
|
|
|
|
modifyCompany,
|
|
|
|
addCompany,
|
|
|
|
addCompany,
|
|
|
|
getSubCompany,
|
|
|
|
getSubCompany
|
|
|
|
} from "@/api/supplier/supCompany";
|
|
|
|
} from '@/api/supplier/supCompany'
|
|
|
|
import store from "@/store/index";
|
|
|
|
import store from '@/store/index'
|
|
|
|
import {regionDataPlus, CodeToText} from "element-china-area-data";
|
|
|
|
import { regionDataPlus, CodeToText } from 'element-china-area-data'
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
filterCompanyCert,
|
|
|
|
filterCompanyCert,
|
|
|
|
deleteCompanyCert,
|
|
|
|
deleteCompanyCert,
|
|
|
|
updateCompanyCert,
|
|
|
|
updateCompanyCert
|
|
|
|
} from "@/api/purchase/companyCert";
|
|
|
|
} from '@/api/purchase/companyCert'
|
|
|
|
import companyAddCert from "@/views/purchase/cert/supCertAddDialog";
|
|
|
|
import companyAddCert from '@/views/purchase/cert/supCertAddDialog'
|
|
|
|
import supCertSetSelectDialog from "@/views/purchase/cert/supCertSetSelectDialog";
|
|
|
|
import supCertSetSelectDialog from '@/views/purchase/cert/supCertSetSelectDialog'
|
|
|
|
import draggable from "vuedraggable";
|
|
|
|
import draggable from 'vuedraggable'
|
|
|
|
import {getCompany} from "@/api/supplier/company";
|
|
|
|
import { getCompany } from '@/api/supplier/company'
|
|
|
|
import {previewImage} from "@/api/purchase/supCompany";
|
|
|
|
import { previewImage } from '@/api/purchase/supCompany'
|
|
|
|
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
|
|
|
|
import ElImageViewer from 'element-ui/packages/image/src/image-viewer'
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
getHead, executeFuc
|
|
|
|
getHead, executeFuc
|
|
|
|
} from "@/utils/customConfig";
|
|
|
|
} from '@/utils/customConfig'
|
|
|
|
|
|
|
|
import { restAssuredOnCodeAdd } from '@/api/auth/customer'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "supCompanyEdit",
|
|
|
|
name: 'supCompanyEdit',
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
BASE_URL: process.env.VUE_APP_BASE_API,
|
|
|
|
BASE_URL: process.env.VUE_APP_BASE_API,
|
|
|
|
inputQuery: {},
|
|
|
|
inputQuery: {},
|
|
|
|
|
|
|
|
restAssuredOnCodeQuery:{},
|
|
|
|
headers: {},
|
|
|
|
headers: {},
|
|
|
|
imgViewerVisible: false,
|
|
|
|
imgViewerVisible: false,
|
|
|
|
imgList: [],
|
|
|
|
imgList: [],
|
|
|
@ -470,75 +538,91 @@ export default {
|
|
|
|
companyName: [
|
|
|
|
companyName: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
required: true,
|
|
|
|
required: true,
|
|
|
|
message: "请输入企业名称",
|
|
|
|
message: '请输入企业名称',
|
|
|
|
trigger: "blur",
|
|
|
|
trigger: 'blur'
|
|
|
|
},
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
creditNum: [
|
|
|
|
creditNum: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
required: true,
|
|
|
|
required: true,
|
|
|
|
message: "请输入统一社会信用代码",
|
|
|
|
message: '请输入统一社会信用代码',
|
|
|
|
trigger: "blur",
|
|
|
|
trigger: 'blur'
|
|
|
|
},
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
classes: [
|
|
|
|
classes: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
required: true,
|
|
|
|
required: true,
|
|
|
|
message: "请选择企业类别",
|
|
|
|
message: '请选择企业类别',
|
|
|
|
trigger: "change",
|
|
|
|
trigger: 'change'
|
|
|
|
},
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
area: [
|
|
|
|
area: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
required: true,
|
|
|
|
required: true,
|
|
|
|
message: "请选择所属地区",
|
|
|
|
message: '请选择所属地区',
|
|
|
|
trigger: "change",
|
|
|
|
trigger: 'change'
|
|
|
|
},
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
detailAddr: [
|
|
|
|
detailAddr: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
required: true,
|
|
|
|
required: true,
|
|
|
|
message: "请输入详细地址",
|
|
|
|
message: '请输入详细地址',
|
|
|
|
trigger: "change",
|
|
|
|
trigger: 'change'
|
|
|
|
},
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
contacts: [
|
|
|
|
contacts: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
required: true,
|
|
|
|
required: true,
|
|
|
|
message: "请输入联系人",
|
|
|
|
message: '请输入联系人',
|
|
|
|
trigger: "change",
|
|
|
|
trigger: 'change'
|
|
|
|
},
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
mobile: [
|
|
|
|
mobile: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
required: true,
|
|
|
|
required: true,
|
|
|
|
message: "请输入联系电话",
|
|
|
|
message: '请输入联系电话',
|
|
|
|
trigger: "change",
|
|
|
|
trigger: 'change'
|
|
|
|
},
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
email: [
|
|
|
|
email: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
required: true,
|
|
|
|
required: true,
|
|
|
|
message: "请输入邮箱",
|
|
|
|
message: '请输入邮箱',
|
|
|
|
trigger: "change",
|
|
|
|
trigger: 'change'
|
|
|
|
},
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
updateCause: [
|
|
|
|
updateCause: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
required: true,
|
|
|
|
required: true,
|
|
|
|
message: "请输入变更原因",
|
|
|
|
message: '请输入变更原因',
|
|
|
|
trigger: "change",
|
|
|
|
trigger: 'change'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
restAssuredOnCodeRules:{
|
|
|
|
|
|
|
|
appKey: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
|
|
message: '请输入应用Key',
|
|
|
|
|
|
|
|
trigger: 'change'
|
|
|
|
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
appSecret: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
|
|
message: '请输入应用密文',
|
|
|
|
|
|
|
|
trigger: 'change'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
uploadUrl: "",
|
|
|
|
uploadUrl: '',
|
|
|
|
fileUrl: "",
|
|
|
|
fileUrl: '',
|
|
|
|
certFileUrl: "",
|
|
|
|
certFileUrl: '',
|
|
|
|
url: "http://127.0.0.1:9996/udiwms/image/register/file/getImage?type=image1&name=t11111.jpg",
|
|
|
|
url: 'http://127.0.0.1:9996/udiwms/image/register/file/getImage?type=image1&name=t11111.jpg',
|
|
|
|
certQuery: {
|
|
|
|
certQuery: {
|
|
|
|
type: 1,
|
|
|
|
type: 1,
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
limit: 20,
|
|
|
|
limit: 20
|
|
|
|
},
|
|
|
|
},
|
|
|
|
certList: [],
|
|
|
|
certList: [],
|
|
|
|
certTotal: 0,
|
|
|
|
certTotal: 0,
|
|
|
@ -546,24 +630,24 @@ export default {
|
|
|
|
addCertVisible: false,
|
|
|
|
addCertVisible: false,
|
|
|
|
certType: 1,
|
|
|
|
certType: 1,
|
|
|
|
salesmanQuery: {
|
|
|
|
salesmanQuery: {
|
|
|
|
name: "",
|
|
|
|
name: '',
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
limit: 20,
|
|
|
|
limit: 20
|
|
|
|
},
|
|
|
|
},
|
|
|
|
salesmanList: [],
|
|
|
|
salesmanList: [],
|
|
|
|
salesmanTotal: 0,
|
|
|
|
salesmanTotal: 0,
|
|
|
|
salesmanLoading: false,
|
|
|
|
salesmanLoading: false,
|
|
|
|
addSalesmanVisible: false,
|
|
|
|
addSalesmanVisible: false,
|
|
|
|
certTypeMap: {
|
|
|
|
certTypeMap: {
|
|
|
|
1: "身份证",
|
|
|
|
1: '身份证'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selectLocalVisible: false,
|
|
|
|
selectLocalVisible: false,
|
|
|
|
productQuery: {
|
|
|
|
productQuery: {
|
|
|
|
ylqxzcrbarmc: "",
|
|
|
|
ylqxzcrbarmc: '',
|
|
|
|
cpmctymc: "",
|
|
|
|
cpmctymc: '',
|
|
|
|
ggxh: "",
|
|
|
|
ggxh: '',
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
limit: 20,
|
|
|
|
limit: 20
|
|
|
|
},
|
|
|
|
},
|
|
|
|
productList: [],
|
|
|
|
productList: [],
|
|
|
|
productTotal: 0,
|
|
|
|
productTotal: 0,
|
|
|
@ -571,120 +655,127 @@ export default {
|
|
|
|
uuid: null,
|
|
|
|
uuid: null,
|
|
|
|
companyApplyUpdateVisible: false,
|
|
|
|
companyApplyUpdateVisible: false,
|
|
|
|
explainCertVisible: false,
|
|
|
|
explainCertVisible: false,
|
|
|
|
explainMsg: "",
|
|
|
|
explainMsg: '',
|
|
|
|
companyEditDisabled: true,
|
|
|
|
companyEditDisabled: true,
|
|
|
|
companyEditButtonStr: "编辑",
|
|
|
|
companyEditButtonStr: '编辑',
|
|
|
|
addType: "1", //证书类型:1:供应商;2.生产企业;3.产品品种
|
|
|
|
addType: '1', //证书类型:1:供应商;2.生产企业;3.产品品种
|
|
|
|
editTye: 1,
|
|
|
|
editTye: 1,
|
|
|
|
checkFlag: {
|
|
|
|
checkFlag: {
|
|
|
|
0: "未认证",
|
|
|
|
0: '未认证',
|
|
|
|
1: "已确认",
|
|
|
|
1: '已确认',
|
|
|
|
2: "已拒绝",
|
|
|
|
2: '已拒绝',
|
|
|
|
3: "变更未确认",
|
|
|
|
3: '变更未确认',
|
|
|
|
6: "未确认",
|
|
|
|
6: '未确认'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
checkSupFlag: {
|
|
|
|
checkSupFlag: {
|
|
|
|
0: "未认证",
|
|
|
|
0: '未认证',
|
|
|
|
1: "已认证",
|
|
|
|
1: '已认证',
|
|
|
|
2: "已拒绝",
|
|
|
|
2: '已拒绝',
|
|
|
|
3: "变更未确认",
|
|
|
|
3: '变更未确认',
|
|
|
|
6: "待认证",
|
|
|
|
6: '待认证'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
statusFlag: {
|
|
|
|
statusFlag: {
|
|
|
|
0: "有效",
|
|
|
|
0: '有效',
|
|
|
|
1: "失效",
|
|
|
|
1: '失效'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
formName: 1,
|
|
|
|
formName: 1,
|
|
|
|
formMap: {
|
|
|
|
formMap: {
|
|
|
|
1: "新增本企业资质证书",
|
|
|
|
1: '新增本企业资质证书',
|
|
|
|
2: "编辑本企业资质证书",
|
|
|
|
2: '编辑本企业资质证书'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selectCertVisible: false,
|
|
|
|
selectCertVisible: false
|
|
|
|
};
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
getHead("basicCompany","1").then((re) => {
|
|
|
|
getHead('basicCompany', '1').then((re) => {
|
|
|
|
// 处理返回的数据
|
|
|
|
// 处理返回的数据
|
|
|
|
this.tableObj = re.data;
|
|
|
|
this.tableObj = re.data
|
|
|
|
this.tableHeader = re.data.tableList;
|
|
|
|
this.tableHeader = re.data.tableList
|
|
|
|
this.queryList = re.data.queryList;
|
|
|
|
this.queryList = re.data.queryList
|
|
|
|
this.fromList = re.data.fromList;
|
|
|
|
this.fromList = re.data.fromList
|
|
|
|
this.getCompanyInfo();
|
|
|
|
this.getCompanyInfo()
|
|
|
|
});
|
|
|
|
})
|
|
|
|
this.headers = {
|
|
|
|
this.headers = {
|
|
|
|
ADMIN_ID: store.getters.adminId,
|
|
|
|
ADMIN_ID: store.getters.adminId,
|
|
|
|
ADMIN_TOKEN: store.getters.token,
|
|
|
|
ADMIN_TOKEN: store.getters.token
|
|
|
|
};
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// mounted(){
|
|
|
|
|
|
|
|
// this.restAssuredOnCodeQuery.appKey = this.inputQuery.alihealthAppKey
|
|
|
|
|
|
|
|
// this.restAssuredOnCodeQuery.appSecret = this.inputQuery.alihealthAppSecret
|
|
|
|
|
|
|
|
// this.restAssuredOnCodeQuery.refEntId = this.inputQuery.alihealthRefEntId
|
|
|
|
|
|
|
|
// },
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
|
draggable,
|
|
|
|
draggable,
|
|
|
|
companyAddCert,
|
|
|
|
companyAddCert,
|
|
|
|
supCertSetSelectDialog,
|
|
|
|
supCertSetSelectDialog,
|
|
|
|
ElImageViewer,
|
|
|
|
ElImageViewer
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
getCompanyInfo() {
|
|
|
|
getCompanyInfo() {
|
|
|
|
let query = {
|
|
|
|
let query = {
|
|
|
|
customerId: this.$store.getters.customerId,
|
|
|
|
customerId: this.$store.getters.customerId
|
|
|
|
};
|
|
|
|
}
|
|
|
|
getCompany(query)
|
|
|
|
getCompany(query)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.inputQuery = response.data;
|
|
|
|
this.inputQuery = response.data
|
|
|
|
if (this.inputQuery.auditStatus == null) {
|
|
|
|
if (this.inputQuery.auditStatus == null) {
|
|
|
|
this.inputQuery.auditStatus = 0;
|
|
|
|
this.inputQuery.auditStatus = 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.getCompanyCertList();
|
|
|
|
this.getCompanyCertList()
|
|
|
|
this.selectedOptions = this.inputQuery.areaCode.split(",");
|
|
|
|
this.selectedOptions = this.inputQuery.areaCode.split(',')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
});
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
onModifySubmit(val) {
|
|
|
|
onModifySubmit(val) {
|
|
|
|
//this.$message.error(val);
|
|
|
|
//this.$message.error(val);
|
|
|
|
var status = this.inputQuery.auditStatus;
|
|
|
|
var status = this.inputQuery.auditStatus
|
|
|
|
if (this.editType == 0) {
|
|
|
|
if (this.editType == 0) {
|
|
|
|
//新增保存
|
|
|
|
//新增保存
|
|
|
|
|
|
|
|
|
|
|
|
this.$refs["inputQuery"].validate((valid) => {
|
|
|
|
this.$refs['inputQuery'].validate((valid) => {
|
|
|
|
if (valid) {
|
|
|
|
if (valid) {
|
|
|
|
this.$confirm("是否确定提交保存?", "提示", {
|
|
|
|
this.$confirm('是否确定提交保存?', '提示', {
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
type: "warning",
|
|
|
|
type: 'warning'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then(() => {
|
|
|
|
.then(() => {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true
|
|
|
|
this.inputQuery.auditStatus = val;
|
|
|
|
this.inputQuery.auditStatus = val
|
|
|
|
addCompany(this.inputQuery).then((response) => {
|
|
|
|
addCompany(this.inputQuery).then((response) => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false
|
|
|
|
if (response.code === 20000) {
|
|
|
|
if (response.code === 20000) {
|
|
|
|
this.$message.success("提交成功");
|
|
|
|
this.$message.success('提交成功')
|
|
|
|
this.closeDialog();
|
|
|
|
this.closeDialog()
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(response.message);
|
|
|
|
this.$message.error(response.message)
|
|
|
|
this.inputQuery.auditStatus = status;
|
|
|
|
this.inputQuery.auditStatus = status
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
});
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return false;
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
//编辑保存
|
|
|
|
//编辑保存
|
|
|
|
if (val == 0 && this.inputQuery.auditStatus == 0) {
|
|
|
|
if (val == 0 && this.inputQuery.auditStatus == 0) {
|
|
|
|
var str = "是否确定草稿保存?";
|
|
|
|
var str = '是否确定草稿保存?'
|
|
|
|
} else if (val == 3 && this.inputQuery.auditStatus == 0) {
|
|
|
|
} else if (val == 3 && this.inputQuery.auditStatus == 0) {
|
|
|
|
var str = "是否确定提交审核?";
|
|
|
|
var str = '是否确定提交审核?'
|
|
|
|
} else if (val == 3 && this.inputQuery.auditStatus == 2) {
|
|
|
|
} else if (val == 3 && this.inputQuery.auditStatus == 2) {
|
|
|
|
var str = "企业信息已拒绝审核,是否确认重新提交审核?";
|
|
|
|
var str = '企业信息已拒绝审核,是否确认重新提交审核?'
|
|
|
|
} else if (val == 3 && this.inputQuery.auditStatus == 3) {
|
|
|
|
} else if (val == 3 && this.inputQuery.auditStatus == 3) {
|
|
|
|
var str = "企业信息更变未确认,是否确认重新提交审核?";
|
|
|
|
var str = '企业信息更变未确认,是否确认重新提交审核?'
|
|
|
|
} else if (val == 6 && this.inputQuery.auditStatus == 1) {
|
|
|
|
} else if (val == 6 && this.inputQuery.auditStatus == 1) {
|
|
|
|
var str = "企业信息已通过审核,是否确认重新提交审核?";
|
|
|
|
var str = '企业信息已通过审核,是否确认重新提交审核?'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// else if (val == 1) {
|
|
|
|
// else if (val == 1) {
|
|
|
@ -698,33 +789,33 @@ export default {
|
|
|
|
// }else {
|
|
|
|
// }else {
|
|
|
|
// var str = "企业信息已通过审核,是否确认重新提交审核?";
|
|
|
|
// var str = "企业信息已通过审核,是否确认重新提交审核?";
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
this.$refs["inputQuery"].validate((valid) => {
|
|
|
|
this.$refs['inputQuery'].validate((valid) => {
|
|
|
|
if (valid) {
|
|
|
|
if (valid) {
|
|
|
|
this.$confirm(str, "提示", {
|
|
|
|
this.$confirm(str, '提示', {
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
type: "warning",
|
|
|
|
type: 'warning'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then(() => {
|
|
|
|
.then(() => {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true
|
|
|
|
this.inputQuery.auditStatus = val;
|
|
|
|
this.inputQuery.auditStatus = val
|
|
|
|
modifyCompany(this.inputQuery).then((response) => {
|
|
|
|
modifyCompany(this.inputQuery).then((response) => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false
|
|
|
|
if (response.code === 20000) {
|
|
|
|
if (response.code === 20000) {
|
|
|
|
this.$message.success("提交成功");
|
|
|
|
this.$message.success('提交成功')
|
|
|
|
this.closeDialog();
|
|
|
|
this.closeDialog()
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(response.message);
|
|
|
|
this.$message.error(response.message)
|
|
|
|
this.inputQuery.auditStatus = status;
|
|
|
|
this.inputQuery.auditStatus = status
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
});
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return false;
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
@ -732,16 +823,16 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
disableCert(row, status) {
|
|
|
|
disableCert(row, status) {
|
|
|
|
row.status = status;
|
|
|
|
row.status = status
|
|
|
|
updateCompanyCert(row).then((response) => {
|
|
|
|
updateCompanyCert(row).then((response) => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false
|
|
|
|
if (response.code === 20000) {
|
|
|
|
if (response.code === 20000) {
|
|
|
|
this.$message.success("更新成功!");
|
|
|
|
this.$message.success('更新成功!')
|
|
|
|
this.getCompanyCertList();
|
|
|
|
this.getCompanyCertList()
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(response.message);
|
|
|
|
this.$message.error(response.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
showImgViewer(_this, row) {
|
|
|
|
showImgViewer(_this, row) {
|
|
|
@ -749,48 +840,48 @@ export default {
|
|
|
|
// newWindow.document.write(row.filePath)
|
|
|
|
// newWindow.document.write(row.filePath)
|
|
|
|
_this.certFileUrl =
|
|
|
|
_this.certFileUrl =
|
|
|
|
_this.BASE_URL +
|
|
|
|
_this.BASE_URL +
|
|
|
|
"/udiwms/image/register/file/getImage?type=image2&name=";
|
|
|
|
'/udiwms/image/register/file/getImage?type=image2&name='
|
|
|
|
_this.imgList = [];
|
|
|
|
_this.imgList = []
|
|
|
|
previewImage({
|
|
|
|
previewImage({
|
|
|
|
imageUrl: row.filePath,
|
|
|
|
imageUrl: row.filePath,
|
|
|
|
certFileUrl: this.certFileUrl,
|
|
|
|
certFileUrl: this.certFileUrl
|
|
|
|
}).then((response) => {
|
|
|
|
}).then((response) => {
|
|
|
|
if (response.code === 20000) {
|
|
|
|
if (response.code === 20000) {
|
|
|
|
_this.imgList = response.data;
|
|
|
|
_this.imgList = response.data
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log(this.imgList);
|
|
|
|
console.log(this.imgList)
|
|
|
|
_this.imgViewerVisible = true;
|
|
|
|
_this.imgViewerVisible = true
|
|
|
|
});
|
|
|
|
})
|
|
|
|
const m = (e) => {
|
|
|
|
const m = (e) => {
|
|
|
|
e.preventDefault();
|
|
|
|
e.preventDefault()
|
|
|
|
};
|
|
|
|
}
|
|
|
|
document.body.style.overflow = "hidden";
|
|
|
|
document.body.style.overflow = 'hidden'
|
|
|
|
document.addEventListener("touchmove", m, false); // 禁止页面滑动
|
|
|
|
document.addEventListener('touchmove', m, false) // 禁止页面滑动
|
|
|
|
},
|
|
|
|
},
|
|
|
|
closeImgViewer() {
|
|
|
|
closeImgViewer() {
|
|
|
|
this.imgViewerVisible = false;
|
|
|
|
this.imgViewerVisible = false
|
|
|
|
const m = (e) => {
|
|
|
|
const m = (e) => {
|
|
|
|
e.preventDefault();
|
|
|
|
e.preventDefault()
|
|
|
|
};
|
|
|
|
}
|
|
|
|
document.body.style.overflow = "auto";
|
|
|
|
document.body.style.overflow = 'auto'
|
|
|
|
document.removeEventListener("touchmove", m, true);
|
|
|
|
document.removeEventListener('touchmove', m, true)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
cancelDialog() {
|
|
|
|
cancelDialog() {
|
|
|
|
this.closeDialog();
|
|
|
|
this.closeDialog()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
closeLocalDialog() {
|
|
|
|
closeLocalDialog() {
|
|
|
|
this.addCertVisible = false;
|
|
|
|
this.addCertVisible = false
|
|
|
|
this.selectCertVisible = false;
|
|
|
|
this.selectCertVisible = false
|
|
|
|
this.getCompanyInfo();
|
|
|
|
this.getCompanyInfo()
|
|
|
|
this.getCompanyCertList();
|
|
|
|
this.getCompanyCertList()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
handleChange(value) {
|
|
|
|
handleChange(value) {
|
|
|
|
this.inputQuery.area =
|
|
|
|
this.inputQuery.area =
|
|
|
|
CodeToText[value[0]] + CodeToText[value[1]] + CodeToText[value[2]];
|
|
|
|
CodeToText[value[0]] + CodeToText[value[1]] + CodeToText[value[2]]
|
|
|
|
this.inputQuery.areaCode = value.toString();
|
|
|
|
this.inputQuery.areaCode = value.toString()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
addCert(_this, row) {
|
|
|
|
addCert(_this, row) {
|
|
|
@ -798,119 +889,155 @@ export default {
|
|
|
|
_this = this
|
|
|
|
_this = this
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (_this.$isNotBlank(row)) {
|
|
|
|
if (_this.$isNotBlank(row)) {
|
|
|
|
_this.formName = 2;
|
|
|
|
_this.formName = 2
|
|
|
|
_this.inputQuery.formData = row;
|
|
|
|
_this.inputQuery.formData = row
|
|
|
|
_this.editTye = 2;
|
|
|
|
_this.editTye = 2
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
_this.formName = 1;
|
|
|
|
_this.formName = 1
|
|
|
|
_this.inputQuery.formData = {};
|
|
|
|
_this.inputQuery.formData = {}
|
|
|
|
_this.editTye = 1;
|
|
|
|
_this.editTye = 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
_this.addCertVisible = true;
|
|
|
|
_this.addCertVisible = true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
selectCert() {
|
|
|
|
selectCert() {
|
|
|
|
this.selectCertVisible = true;
|
|
|
|
this.selectCertVisible = true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
toViewCompanyCert(row) {
|
|
|
|
toViewCompanyCert(row) {
|
|
|
|
this.certFileUrl =
|
|
|
|
this.certFileUrl =
|
|
|
|
this.BASE_URL +
|
|
|
|
this.BASE_URL +
|
|
|
|
"/udiwms/image/register/file/getImage?type=image2&name=";
|
|
|
|
'/udiwms/image/register/file/getImage?type=image2&name='
|
|
|
|
window.open(this.certFileUrl + row.filePath);
|
|
|
|
window.open(this.certFileUrl + row.filePath)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
certHandleCurrentChange(val) {
|
|
|
|
certHandleCurrentChange(val) {
|
|
|
|
this.certQuery.page = val.page;
|
|
|
|
this.certQuery.page = val.page
|
|
|
|
this.getCompanyCertList();
|
|
|
|
this.getCompanyCertList()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
getCompanyCertList() {
|
|
|
|
getCompanyCertList() {
|
|
|
|
this.certLoading = true;
|
|
|
|
this.certLoading = true
|
|
|
|
this.certQuery.customerId = this.inputQuery.customerId;
|
|
|
|
this.certQuery.customerId = this.inputQuery.customerId
|
|
|
|
filterCompanyCert(this.certQuery)
|
|
|
|
filterCompanyCert(this.certQuery)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.certLoading = false;
|
|
|
|
this.certLoading = false
|
|
|
|
this.certList = response.data.list || [];
|
|
|
|
this.certList = response.data.list || []
|
|
|
|
this.certTotal = response.data.total;
|
|
|
|
this.certTotal = response.data.total
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
this.certLoading = false;
|
|
|
|
this.certLoading = false
|
|
|
|
this.certList = [];
|
|
|
|
this.certList = []
|
|
|
|
});
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
explainCompanyCert(_this, row) {
|
|
|
|
explainCompanyCert(_this, row) {
|
|
|
|
_this.$confirm(row.auditComment, "拒绝原因", {
|
|
|
|
_this.$confirm(row.auditComment, '拒绝原因', {
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
type: "warning",
|
|
|
|
type: 'warning',
|
|
|
|
showCancelButton: false,
|
|
|
|
showCancelButton: false
|
|
|
|
}).then(() => {
|
|
|
|
}).then(() => {
|
|
|
|
});
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
deleteCompanyCert(_this, row) {
|
|
|
|
deleteCompanyCert(_this, row) {
|
|
|
|
_this.$confirm("是否删除?", "提示", {
|
|
|
|
_this.$confirm('是否删除?', '提示', {
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
type: "warning",
|
|
|
|
type: 'warning'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then(() => {
|
|
|
|
.then(() => {
|
|
|
|
_this.certLoading = true;
|
|
|
|
_this.certLoading = true
|
|
|
|
let tquery = {
|
|
|
|
let tquery = {
|
|
|
|
id: row.id,
|
|
|
|
id: row.id,
|
|
|
|
filePath: row.filePath,
|
|
|
|
filePath: row.filePath
|
|
|
|
};
|
|
|
|
}
|
|
|
|
deleteCompanyCert(tquery)
|
|
|
|
deleteCompanyCert(tquery)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
_this.certLoading = false;
|
|
|
|
_this.certLoading = false
|
|
|
|
if (response.code === 20000) {
|
|
|
|
if (response.code === 20000) {
|
|
|
|
_this.getCompanyCertList();
|
|
|
|
_this.getCompanyCertList()
|
|
|
|
_this.$message({
|
|
|
|
_this.$message({
|
|
|
|
type: "success",
|
|
|
|
type: 'success',
|
|
|
|
message: "删除成功!",
|
|
|
|
message: '删除成功!'
|
|
|
|
});
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
_this.$message.error(response.message);
|
|
|
|
_this.$message.error(response.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
_this.certLoading = false;
|
|
|
|
_this.certLoading = false
|
|
|
|
});
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
});
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
executeFuc(row, type, clickFuc, value) {
|
|
|
|
executeFuc(row, type, clickFuc, value) {
|
|
|
|
return executeFuc(this,row,type,clickFuc,value);
|
|
|
|
return executeFuc(this, row, type, clickFuc, value)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
executeEval(row, expression, defaultRet) {
|
|
|
|
executeEval(row, expression, defaultRet) {
|
|
|
|
if (expression) {
|
|
|
|
if (expression) {
|
|
|
|
return eval(expression);
|
|
|
|
return eval(expression)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return defaultRet;
|
|
|
|
return defaultRet
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
restAssuredOnCodeSave(){
|
|
|
|
|
|
|
|
this.$refs['restAssuredOnCodeQuery'].validate((valid) => {
|
|
|
|
|
|
|
|
if (valid) {
|
|
|
|
|
|
|
|
this.$confirm('是否确定提交保存?', '提示', {
|
|
|
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
|
|
|
type: 'warning'
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.then(() => {
|
|
|
|
|
|
|
|
this.restAssuredOnCodeQuery.customerId = this.inputQuery.customerId
|
|
|
|
|
|
|
|
this.restAssuredOnCodeQuery.customerName = this.inputQuery.companyName
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
restAssuredOnCodeAdd(this.restAssuredOnCodeQuery)
|
|
|
|
|
|
|
|
.then((response) => {
|
|
|
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
type: "success",
|
|
|
|
|
|
|
|
message: response.data,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.warning(response.message);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(() => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(() => {
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
filters: {
|
|
|
|
filters: {
|
|
|
|
statusFilterType(status) {
|
|
|
|
statusFilterType(status) {
|
|
|
|
const statusMap = {
|
|
|
|
const statusMap = {
|
|
|
|
0: "warning",
|
|
|
|
0: 'warning',
|
|
|
|
1: "success",
|
|
|
|
1: 'success',
|
|
|
|
2: "danger",
|
|
|
|
2: 'danger',
|
|
|
|
3: "warning",
|
|
|
|
3: 'warning',
|
|
|
|
6: "warning",
|
|
|
|
6: 'warning'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
return statusMap[status];
|
|
|
|
return statusMap[status]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
statusType(status) {
|
|
|
|
statusType(status) {
|
|
|
|
const statusMap = {
|
|
|
|
const statusMap = {
|
|
|
|
0: "success",
|
|
|
|
0: 'success',
|
|
|
|
1: "danger",
|
|
|
|
1: 'danger'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
return statusMap[status];
|
|
|
|
return statusMap[status]
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<style>
|
|
|
|
<style>
|
|
|
|
.itemTag {
|
|
|
|
.itemTag {
|
|
|
|