|
|
|
@ -5,129 +5,45 @@
|
|
|
|
|
<el-card>
|
|
|
|
|
<el-form
|
|
|
|
|
:model="filterQuery"
|
|
|
|
|
v-if="queryList && queryList.length > 0"
|
|
|
|
|
class="query-form"
|
|
|
|
|
label-width="100px"
|
|
|
|
|
label-width="110px"
|
|
|
|
|
v-show="showSearch"
|
|
|
|
|
>
|
|
|
|
|
<!-- <el-row>-->
|
|
|
|
|
<!-- <el-col span="6">-->
|
|
|
|
|
<!-- <el-form-item label="企业名称:">-->
|
|
|
|
|
<!-- <el-input-->
|
|
|
|
|
<!-- v-model="filterQuery.companyName"-->
|
|
|
|
|
<!-- style="width: 90%"-->
|
|
|
|
|
<!-- placeholder="请输入企业名称"-->
|
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- <el-col span="6">-->
|
|
|
|
|
<!-- <el-form-item label="社会信用号:">-->
|
|
|
|
|
<!-- <el-input-->
|
|
|
|
|
<!-- v-model="filterQuery.creditCode"-->
|
|
|
|
|
<!-- style="width: 90%"-->
|
|
|
|
|
<!-- placeholder="请输入社会信用号"-->
|
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- <el-col span="6">-->
|
|
|
|
|
<!-- <el-form-item label="处理状态:">-->
|
|
|
|
|
<!-- <el-select-->
|
|
|
|
|
<!-- v-model="filterQuery.auditStatus"-->
|
|
|
|
|
<!-- style="width: 90%"-->
|
|
|
|
|
<!-- placeholder="请输入处理状态"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <el-option label="全部" value=""></el-option>-->
|
|
|
|
|
<!-- <el-option label="草稿" value="0"></el-option>-->
|
|
|
|
|
<!-- <el-option label="未审核" value="6"></el-option>-->
|
|
|
|
|
<!-- <el-option label="变更未审核" value="3"></el-option>-->
|
|
|
|
|
<!-- <el-option label="已审核" value="1"></el-option>-->
|
|
|
|
|
<!-- <el-option label="已拒绝" value="2"></el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
<el-row style=" display:flex; flex-wrap: wrap; ">
|
|
|
|
|
<template v-for="(item, index) in queryList" >
|
|
|
|
|
<el-form-item v-if="item.columnType == 'input' && item.columnName !='queryName' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`" :key="item.id">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col span="6">
|
|
|
|
|
<el-form-item label="生产企业/代理人:">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="filterQuery[item.columnName]"
|
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
|
:disabled="executeEval(null,item.disabledFuc,false)"
|
|
|
|
|
@keyup.enter.native="executeFuc($event,'5',item.clickFuc)"
|
|
|
|
|
clearable
|
|
|
|
|
v-model="filterQuery.companyName"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
placeholder="请输入生产企业/代理人"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="item.columnType == 'input' && item.columnName =='queryName' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`" :key="item.id">
|
|
|
|
|
<el-autocomplete
|
|
|
|
|
class="inline-input"
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col span="6">
|
|
|
|
|
<el-form-item label="社会信用号:">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="filterQuery.creditCode"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
v-model="queryName"
|
|
|
|
|
:fetch-suggestions="queryProductName"
|
|
|
|
|
placeholder="请输入内容"
|
|
|
|
|
clearable
|
|
|
|
|
@select="handleSelect"
|
|
|
|
|
@clear="clearQueryProduct"
|
|
|
|
|
></el-autocomplete>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="item.columnType == 'select' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
|
|
|
|
|
<el-select v-model="filterQuery[item.columnName]"
|
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
|
@change="executeFuc($event,'5',item.checkRules)"
|
|
|
|
|
:disabled="executeEval(null,item.disabledFuc,false)"
|
|
|
|
|
clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in item.lableRuleObj"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
<span v-if="item.isShowXx == '1'" style="float: right; color: #8492a6; font-size: 13px">{{ item.code }}</span>
|
|
|
|
|
</el-select>
|
|
|
|
|
placeholder="请输入社会信用号"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="item.columnType == 'selectServer' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col span="6">
|
|
|
|
|
<el-form-item label="处理状态:">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="filterQuery[item.columnName]"
|
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
|
:disabled="executeEval(null,item.disabledFuc,false)"
|
|
|
|
|
filterable
|
|
|
|
|
remote
|
|
|
|
|
@change="executeFuc($event,'5',item.checkRules)"
|
|
|
|
|
:remote-method="(query) => executeFuc(query,'5',item.clickFuc)"
|
|
|
|
|
clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in options[item.clickFuc]"
|
|
|
|
|
:key="item.code"
|
|
|
|
|
:label="item.label"
|
|
|
|
|
:value="item.code"
|
|
|
|
|
/>
|
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
<span v-if="item.isShowXx == '1'" style="float: right; color: #8492a6; font-size: 13px">{{ item.code }}</span>
|
|
|
|
|
v-model="filterQuery.auditStatus"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
placeholder="请输入处理状态"
|
|
|
|
|
>
|
|
|
|
|
<el-option label="全部" value=""></el-option>
|
|
|
|
|
<el-option label="草稿" value="0"></el-option>
|
|
|
|
|
<el-option label="未审核" value="6"></el-option>
|
|
|
|
|
<el-option label="变更未审核" value="3"></el-option>
|
|
|
|
|
<el-option label="已审核" value="1"></el-option>
|
|
|
|
|
<el-option label="已拒绝" value="2"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="item.columnType == 'datePicker' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
:picker-options="pickerOptions"
|
|
|
|
|
v-model="actDateRange"
|
|
|
|
|
type="daterange"
|
|
|
|
|
format="yyyy 年 MM 月 dd 日"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
range-separator="至"
|
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
|
></el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="item.columnType == 'date' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="filterQuery[item.columnName]"
|
|
|
|
|
:style="`width:${item.width+'px'}`"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
:disabled="executeEval(null,item.disabledFuc,false)"
|
|
|
|
|
type="date"
|
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
|
></el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</template>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
@ -156,150 +72,63 @@
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
border
|
|
|
|
|
highlight-current-row
|
|
|
|
|
@current-change="(row) => executeFuc(row,'0',tableObj.handleChangeFuc)"
|
|
|
|
|
@current-change="supManufacturerClick"
|
|
|
|
|
>
|
|
|
|
|
<!-- <el-table-column label="序号" type="index"></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column-->
|
|
|
|
|
<!-- label="企业名称"-->
|
|
|
|
|
<!-- prop="companyName"-->
|
|
|
|
|
<!-- width="250"-->
|
|
|
|
|
<!-- ></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column label="社会信用号" prop="creditCode"></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column label="企业类型" prop="bussinessStatus" width="1">-->
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
<!-- <span>{{ companyTypeMap[scope.row.companyType] }}</span>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<!-- <el-table-column label="所在地区" prop="placeArea"></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column-->
|
|
|
|
|
<!-- label="所在地址"-->
|
|
|
|
|
<!-- prop="placeAddress"-->
|
|
|
|
|
<!-- :show-overflow-tooltip="true"-->
|
|
|
|
|
<!-- ></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column-->
|
|
|
|
|
<!-- label="所属供应商"-->
|
|
|
|
|
<!-- prop="supName"-->
|
|
|
|
|
<!-- show-overflow-tooltip-->
|
|
|
|
|
<!-- ></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column label="审核状态" prop="auditStatus" width="120">-->
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
<!-- <el-tag :type="scope.row.auditStatus | statusFilterType">-->
|
|
|
|
|
<!-- {{ checkFlag[scope.row.auditStatus] }}-->
|
|
|
|
|
<!-- </el-tag>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
|
|
|
|
|
<!-- <el-table-column label="操作" width="120">-->
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="text"-->
|
|
|
|
|
<!-- size="small"-->
|
|
|
|
|
<!-- @click.native.stop="addInfoDialog(scope.row)"-->
|
|
|
|
|
<!-- >编辑</el-button-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="text"-->
|
|
|
|
|
<!-- size="small"-->
|
|
|
|
|
<!-- :disabled="scope.row.auditStatus === 1"-->
|
|
|
|
|
<!-- @click.native.stop="deleteDialog(scope.row)"-->
|
|
|
|
|
<!-- >删除-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="text"-->
|
|
|
|
|
<!-- size="small"-->
|
|
|
|
|
<!-- v-if="scope.row.auditStatus === 2"-->
|
|
|
|
|
<!-- @click.native.stop="rejectInfo(scope.row)"-->
|
|
|
|
|
<!-- >说明-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<template v-for="(item, index) in tableHeader">
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'id' && executeEval(row,item.expression,true)"
|
|
|
|
|
type="index" :label="item.columnDesc"></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'selection'"
|
|
|
|
|
type="selection"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:selectable="(row,number) => executeFuc(row,'3',item.clickFuc)"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="生产企业/代理人"
|
|
|
|
|
prop="companyName"
|
|
|
|
|
width="250"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column label="社会信用号" prop="creditCode"></el-table-column>
|
|
|
|
|
<el-table-column label="企业类型" prop="bussinessStatus" width="120">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ companyTypeMap[scope.row.companyType] }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="所在地区" prop="placeArea"></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="所在地址"
|
|
|
|
|
prop="placeAddress"
|
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="所属供应商"
|
|
|
|
|
prop="supName"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column label="审核状态" prop="auditStatus" width="120">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag :type="scope.row.auditStatus | statusFilterType">
|
|
|
|
|
{{ checkFlag[scope.row.auditStatus] }}
|
|
|
|
|
</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'radio' && executeEval(row,item.expression,true)"
|
|
|
|
|
:prop="item.columnName"
|
|
|
|
|
:label="item.columnDesc"
|
|
|
|
|
:sortable="item.sort"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:show-overflow-tooltip="item.tooltip"
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'laber' && executeEval(row,item.expression,true)"
|
|
|
|
|
:prop="item.columnName"
|
|
|
|
|
:label="item.columnDesc"
|
|
|
|
|
:sortable="item.sort"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:show-overflow-tooltip="item.tooltip"
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}">{{ item.lableRuleObj[scope.row[item.columnName]] }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'eltag' && executeEval(row,item.expression,true)"
|
|
|
|
|
:prop="item.columnName"
|
|
|
|
|
:label="item.columnDesc"
|
|
|
|
|
:sortable="item.sort"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:show-overflow-tooltip="item.tooltip"
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag :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>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'button' && executeEval(row,item.expression,true)"
|
|
|
|
|
:prop="item.columnName"
|
|
|
|
|
:label="item.columnDesc"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
fixed="right"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button v-for="(buttonItem, buttonIndex) in item.buttonRulObj"
|
|
|
|
|
:type="buttonItem.type"
|
|
|
|
|
:size="buttonItem.size"
|
|
|
|
|
:style="buttonItem.style"
|
|
|
|
|
:key="buttonItem"
|
|
|
|
|
v-if="executeEval(scope.row,buttonItem.hasPermi,true)"
|
|
|
|
|
:disabled="executeEval(scope.row,buttonItem.disabledFuc,false)"
|
|
|
|
|
@click.native.stop="executeFuc(scope.row,'1',buttonItem.clickFuc)"
|
|
|
|
|
>{{ buttonItem.name }}
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'text' && executeEval(row,item.expression,true)"
|
|
|
|
|
:prop="item.columnName"
|
|
|
|
|
:label="item.columnDesc"
|
|
|
|
|
:sortable="item.sort"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:show-overflow-tooltip="item.tooltip"
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{ scope.row[item.columnName] }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
<el-table-column label="操作" width="120">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
@click.native.stop="addInfoDialog(scope.row)"
|
|
|
|
|
>编辑</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
:disabled="scope.row.auditStatus === 1"
|
|
|
|
|
@click.native.stop="deleteDialog(scope.row)"
|
|
|
|
|
>删除
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
v-if="scope.row.auditStatus === 2"
|
|
|
|
|
@click.native.stop="rejectInfo(scope.row)"
|
|
|
|
|
>说明
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
@ -337,120 +166,37 @@
|
|
|
|
|
v-show="showSearch2"
|
|
|
|
|
label-width="100px"
|
|
|
|
|
>
|
|
|
|
|
<!-- <el-row>-->
|
|
|
|
|
<!-- <el-col span="6">-->
|
|
|
|
|
<!-- <el-form-item label="物资名称:">-->
|
|
|
|
|
<!-- <el-input-->
|
|
|
|
|
<!-- v-model="registrationQuery.recordProductName"-->
|
|
|
|
|
<!-- style="width: 90%"-->
|
|
|
|
|
<!-- clearable-->
|
|
|
|
|
<!-- placeholder="物资名称"-->
|
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- <el-col span="6">-->
|
|
|
|
|
<!-- <el-form-item label="注册备案号:">-->
|
|
|
|
|
<!-- <el-input-->
|
|
|
|
|
<!-- v-model="registrationQuery.recordCode"-->
|
|
|
|
|
<!-- style="width: 90%"-->
|
|
|
|
|
<!-- clearable-->
|
|
|
|
|
<!-- placeholder="注册备案号"-->
|
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- <el-col span="6">-->
|
|
|
|
|
<!-- <el-form-item label="注册备案人:">-->
|
|
|
|
|
<!-- <el-input-->
|
|
|
|
|
<!-- v-model="registrationQuery.recordPeopleName"-->
|
|
|
|
|
<!-- style="width: 90%"-->
|
|
|
|
|
<!-- clearable-->
|
|
|
|
|
<!-- placeholder="注册备案人"-->
|
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
<el-row style=" display:flex; flex-wrap: wrap; ">
|
|
|
|
|
<template v-for="(item, index) in queryList2" >
|
|
|
|
|
<el-form-item v-if="item.columnType == 'input' && item.columnName !='queryName' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`" :key="item.id">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col span="6">
|
|
|
|
|
<el-form-item label="物资名称:">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="registrationQuery[item.columnName]"
|
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
|
:disabled="executeEval(null,item.disabledFuc,false)"
|
|
|
|
|
@keyup.enter.native="executeFuc($event,'5',item.clickFuc)"
|
|
|
|
|
v-model="registrationQuery.recordProductName"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
clearable
|
|
|
|
|
placeholder="物资名称"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="item.columnType == 'input' && item.columnName =='queryName' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`" :key="item.id">
|
|
|
|
|
<el-autocomplete
|
|
|
|
|
class="inline-input"
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col span="6">
|
|
|
|
|
<el-form-item label="注册备案号:">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="registrationQuery.recordCode"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
v-model="queryName"
|
|
|
|
|
:fetch-suggestions="queryProductName"
|
|
|
|
|
placeholder="请输入内容"
|
|
|
|
|
clearable
|
|
|
|
|
@select="handleSelect"
|
|
|
|
|
@clear="clearQueryProduct"
|
|
|
|
|
></el-autocomplete>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="item.columnType == 'select' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
|
|
|
|
|
<el-select v-model="registrationQuery[item.columnName]"
|
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
|
@change="executeFuc($event,'5',item.checkRules)"
|
|
|
|
|
:disabled="executeEval(null,item.disabledFuc,false)"
|
|
|
|
|
clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in item.lableRuleObj"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
<span v-if="item.isShowXx == '1'" style="float: right; color: #8492a6; font-size: 13px">{{ item.code }}</span>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="item.columnType == 'selectServer' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="registrationQuery[item.columnName]"
|
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
|
:disabled="executeEval(null,item.disabledFuc,false)"
|
|
|
|
|
filterable
|
|
|
|
|
remote
|
|
|
|
|
@change="executeFuc($event,'5',item.checkRules)"
|
|
|
|
|
:remote-method="(query) => executeFuc(query,'5',item.clickFuc)"
|
|
|
|
|
clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in options[item.clickFuc]"
|
|
|
|
|
:key="item.code"
|
|
|
|
|
:label="item.label"
|
|
|
|
|
:value="item.code"
|
|
|
|
|
/>
|
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
<span v-if="item.isShowXx == '1'" style="float: right; color: #8492a6; font-size: 13px">{{ item.code }}</span>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="item.columnType == 'datePicker' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
:picker-options="pickerOptions"
|
|
|
|
|
v-model="actDateRange"
|
|
|
|
|
type="daterange"
|
|
|
|
|
format="yyyy 年 MM 月 dd 日"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
range-separator="至"
|
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
|
></el-date-picker>
|
|
|
|
|
placeholder="注册备案号"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="item.columnType == 'date' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="registrationQuery[item.columnName]"
|
|
|
|
|
:style="`width:${item.width+'px'}`"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
:disabled="executeEval(null,item.disabledFuc,false)"
|
|
|
|
|
type="date"
|
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
|
></el-date-picker>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col span="6">
|
|
|
|
|
<el-form-item label="注册备案人:">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="registrationQuery.recordPeopleName"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
clearable
|
|
|
|
|
placeholder="注册备案人"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</template>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
@ -482,148 +228,61 @@
|
|
|
|
|
border
|
|
|
|
|
highlight-current-row
|
|
|
|
|
>
|
|
|
|
|
<!-- <el-table-column type="index" label="序号" width="50"></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column-->
|
|
|
|
|
<!-- label="注册/备案产品名称"-->
|
|
|
|
|
<!-- prop="recordProductName"-->
|
|
|
|
|
<!-- show-overflow-tooltip-->
|
|
|
|
|
<!-- ></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column-->
|
|
|
|
|
<!-- label="规格型号"-->
|
|
|
|
|
<!-- prop="ggxh"-->
|
|
|
|
|
<!-- show-overflow-tooltip-->
|
|
|
|
|
<!-- ></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column-->
|
|
|
|
|
<!-- label="注册/备案号"-->
|
|
|
|
|
<!-- prop="recordCode"-->
|
|
|
|
|
<!-- show-overflow-tooltip-->
|
|
|
|
|
<!-- ></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column-->
|
|
|
|
|
<!-- label="注册/备案人名称"-->
|
|
|
|
|
<!-- prop="recordPeopleName"-->
|
|
|
|
|
<!-- show-overflow-tooltip-->
|
|
|
|
|
<!-- ></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column-->
|
|
|
|
|
<!-- label="生产企业"-->
|
|
|
|
|
<!-- prop="manufacturerName"-->
|
|
|
|
|
<!-- show-overflow-tooltip-->
|
|
|
|
|
<!-- ></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column-->
|
|
|
|
|
<!-- label="所属供应商"-->
|
|
|
|
|
<!-- prop="supName"-->
|
|
|
|
|
<!-- show-overflow-tooltip-->
|
|
|
|
|
<!-- ></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column label="审核状态" prop="auditStatus" width="120">-->
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
<!-- <el-tag :type="scope.row.auditStatus | statusFilterType">-->
|
|
|
|
|
<!-- {{ checkFlag[scope.row.auditStatus] }}-->
|
|
|
|
|
<!-- </el-tag>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<!-- <el-table-column label="操作" width="120">-->
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="text"-->
|
|
|
|
|
<!-- size="small"-->
|
|
|
|
|
<!-- @click.native.stop="registrationDialog(scope.row)"-->
|
|
|
|
|
<!-- >编辑</el-button-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="text"-->
|
|
|
|
|
<!-- size="small"-->
|
|
|
|
|
<!-- :disabled="scope.row.auditStatus === 1"-->
|
|
|
|
|
<!-- @click.native="deleteRegistration(scope.row)"-->
|
|
|
|
|
<!-- >删除-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<template v-for="(item, index) in tableHeader">
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'id' && executeEval(row,item.expression,true)"
|
|
|
|
|
type="index" :label="item.columnDesc"></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'selection'"
|
|
|
|
|
type="selection"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:selectable="(row,number) => executeFuc(row,'3',item.clickFuc)"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'radio' && executeEval(row,item.expression,true)"
|
|
|
|
|
:prop="item.columnName"
|
|
|
|
|
:label="item.columnDesc"
|
|
|
|
|
:sortable="item.sort"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:show-overflow-tooltip="item.tooltip"
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'laber' && executeEval(row,item.expression,true)"
|
|
|
|
|
:prop="item.columnName"
|
|
|
|
|
:label="item.columnDesc"
|
|
|
|
|
:sortable="item.sort"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:show-overflow-tooltip="item.tooltip"
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}">{{ item.lableRuleObj[scope.row[item.columnName]] }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'eltag' && executeEval(row,item.expression,true)"
|
|
|
|
|
:prop="item.columnName"
|
|
|
|
|
:label="item.columnDesc"
|
|
|
|
|
:sortable="item.sort"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:show-overflow-tooltip="item.tooltip"
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag :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>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'button' && executeEval(row,item.expression,true)"
|
|
|
|
|
:prop="item.columnName"
|
|
|
|
|
:label="item.columnDesc"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
fixed="right"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button v-for="(buttonItem, buttonIndex) in item.buttonRulObj"
|
|
|
|
|
:type="buttonItem.type"
|
|
|
|
|
:size="buttonItem.size"
|
|
|
|
|
:style="buttonItem.style"
|
|
|
|
|
:key="buttonItem"
|
|
|
|
|
v-if="executeEval(scope.row,buttonItem.hasPermi,true)"
|
|
|
|
|
:disabled="executeEval(scope.row,buttonItem.disabledFuc,false)"
|
|
|
|
|
@click.native.stop="executeFuc(scope.row,'1',buttonItem.clickFuc)"
|
|
|
|
|
>{{ buttonItem.name }}
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'text' && executeEval(row,item.expression,true)"
|
|
|
|
|
:prop="item.columnName"
|
|
|
|
|
:label="item.columnDesc"
|
|
|
|
|
:sortable="item.sort"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:show-overflow-tooltip="item.tooltip"
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{ scope.row[item.columnName] }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
<el-table-column type="index" label="序号" width="50"></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="注册/备案产品名称"
|
|
|
|
|
prop="recordProductName"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="规格型号"
|
|
|
|
|
prop="ggxh"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="注册/备案号"
|
|
|
|
|
prop="recordCode"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="注册/备案人名称"
|
|
|
|
|
prop="recordPeopleName"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="生产企业/代理人"
|
|
|
|
|
prop="manufacturerName"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="所属供应商"
|
|
|
|
|
prop="supName"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column label="审核状态" prop="auditStatus" width="120">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag :type="scope.row.auditStatus | statusFilterType">
|
|
|
|
|
{{ checkFlag[scope.row.auditStatus] }}
|
|
|
|
|
</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" width="120">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
@click.native.stop="registrationDialog(scope.row)"
|
|
|
|
|
>编辑</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
:disabled="scope.row.auditStatus === 1"
|
|
|
|
|
@click.native="deleteRegistration(scope.row)"
|
|
|
|
|
>删除
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
@ -666,9 +325,6 @@ import {
|
|
|
|
|
deleteRegistration,
|
|
|
|
|
} from "../../../api/purchase/suppliersRegistrationBasic";
|
|
|
|
|
import suppliersRegistrationBasic from "@/views/purchase/product/supProductEditDialog";
|
|
|
|
|
import {
|
|
|
|
|
getHead,executeFuc
|
|
|
|
|
} from "@/utils/customConfig";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "supCertificationAdd",
|
|
|
|
@ -734,14 +390,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
registrationList: [],
|
|
|
|
|
certTotal: 0,
|
|
|
|
|
tableHeader:[],
|
|
|
|
|
queryList:[],
|
|
|
|
|
fromList:[],
|
|
|
|
|
tableHeader2:[],
|
|
|
|
|
queryList2:[],
|
|
|
|
|
fromList2:[],
|
|
|
|
|
options: {
|
|
|
|
|
},
|
|
|
|
|
registrationLoading: false,
|
|
|
|
|
registrationId: "",
|
|
|
|
|
|
|
|
|
@ -832,23 +480,20 @@ export default {
|
|
|
|
|
hideSearch2() {
|
|
|
|
|
this.showSearch2 = !this.showSearch2;
|
|
|
|
|
},
|
|
|
|
|
addInfoDialog(_this,row) {
|
|
|
|
|
if(_this == null){
|
|
|
|
|
_this = this
|
|
|
|
|
}
|
|
|
|
|
if (_this.$isNotBlank(row)) {
|
|
|
|
|
_this.enterpriseId = row.id;
|
|
|
|
|
_this.editType = 1;
|
|
|
|
|
_this.inputQuery = row;
|
|
|
|
|
addInfoDialog(row) {
|
|
|
|
|
if (this.$isNotBlank(row)) {
|
|
|
|
|
this.enterpriseId = row.id;
|
|
|
|
|
this.editType = 1;
|
|
|
|
|
this.inputQuery = row;
|
|
|
|
|
} else {
|
|
|
|
|
_this.enterpriseId = null;
|
|
|
|
|
_this.editType = 0;
|
|
|
|
|
_this.inputQuery = {
|
|
|
|
|
this.enterpriseId = null;
|
|
|
|
|
this.editType = 0;
|
|
|
|
|
this.inputQuery = {
|
|
|
|
|
auditStatus: 0,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_this.addInfoVisible = true;
|
|
|
|
|
this.addInfoVisible = true;
|
|
|
|
|
},
|
|
|
|
|
closeDialog(type) {
|
|
|
|
|
this.addInfoVisible = false;
|
|
|
|
@ -872,16 +517,16 @@ export default {
|
|
|
|
|
console.log(this.check);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
rejectInfo(_this,row) {
|
|
|
|
|
_this.$confirm(row.auditComment, "驳回说明", {
|
|
|
|
|
rejectInfo(row) {
|
|
|
|
|
this.$confirm(row.auditComment, "驳回说明", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
type: "warning",
|
|
|
|
|
showCancelButton: false,
|
|
|
|
|
}).then(() => {});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
deleteDialog(_this,row) {
|
|
|
|
|
_this.$confirm("删除后将清空该生产企业以及所有关联信息?", "提示", {
|
|
|
|
|
deleteDialog(row) {
|
|
|
|
|
this.$confirm("删除后将清空该生产企业以及所有关联信息?", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
type: "warning",
|
|
|
|
@ -891,17 +536,17 @@ export default {
|
|
|
|
|
id: row.id,
|
|
|
|
|
};
|
|
|
|
|
deleteCompany(tQuery).then(() => {
|
|
|
|
|
_this.getList();
|
|
|
|
|
this.getList();
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
supManufacturerClick(_this,row) {
|
|
|
|
|
_this.registrationQuery.customerId = row.customerId;
|
|
|
|
|
_this.registrationQuery.manufacturerIdFk = row.manufacturerId;
|
|
|
|
|
_this.getRegistrationList();
|
|
|
|
|
_this.currentManufacturer = row;
|
|
|
|
|
supManufacturerClick(row) {
|
|
|
|
|
this.registrationQuery.customerId = row.customerId;
|
|
|
|
|
this.registrationQuery.manufacturerIdFk = row.manufacturerId;
|
|
|
|
|
this.getRegistrationList();
|
|
|
|
|
this.currentManufacturer = row;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**---------------------------配送产品资质----------------------*/
|
|
|
|
@ -930,42 +575,39 @@ export default {
|
|
|
|
|
this.registrationQuery.page = 1;
|
|
|
|
|
this.getRegistrationList();
|
|
|
|
|
},
|
|
|
|
|
registrationDialog(_this,row) {
|
|
|
|
|
if(_this == null){
|
|
|
|
|
_this = this
|
|
|
|
|
}
|
|
|
|
|
if (_this.currentManufacturer == null) {
|
|
|
|
|
_this.$message.error("请先选中生产企业!");
|
|
|
|
|
registrationDialog(row) {
|
|
|
|
|
if (this.currentManufacturer == null) {
|
|
|
|
|
this.$message.error("请先选中生产企业!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (_this.$isNotBlank(row)) {
|
|
|
|
|
_this.registrationId = row.id;
|
|
|
|
|
_this.curProductQuery = row;
|
|
|
|
|
_this.curProductQuery.cuStatus = _this.currentManufacturer.auditStatus;
|
|
|
|
|
_this.curProductQuery.manufacturerId =
|
|
|
|
|
_this.registrationQuery.manufacturerIdFk;
|
|
|
|
|
_this.formName = "update";
|
|
|
|
|
_this.editProductType = 1;
|
|
|
|
|
if (this.$isNotBlank(row)) {
|
|
|
|
|
this.registrationId = row.id;
|
|
|
|
|
this.curProductQuery = row;
|
|
|
|
|
this.curProductQuery.cuStatus = this.currentManufacturer.auditStatus;
|
|
|
|
|
this.curProductQuery.manufacturerId =
|
|
|
|
|
this.registrationQuery.manufacturerIdFk;
|
|
|
|
|
this.formName = "update";
|
|
|
|
|
this.editProductType = 1;
|
|
|
|
|
} else {
|
|
|
|
|
_this.editProductType = 0;
|
|
|
|
|
_this.formName = "add";
|
|
|
|
|
_this.curProductQuery = {
|
|
|
|
|
this.editProductType = 0;
|
|
|
|
|
this.formName = "add";
|
|
|
|
|
this.curProductQuery = {
|
|
|
|
|
auditStatus: 0,
|
|
|
|
|
cuStatus: _this.currentManufacturer.auditStatus,
|
|
|
|
|
manufacturerId: _this.registrationQuery.manufacturerIdFk,
|
|
|
|
|
cuStatus: this.currentManufacturer.auditStatus,
|
|
|
|
|
manufacturerId: this.registrationQuery.manufacturerIdFk,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
_this.registrationVisible = true;
|
|
|
|
|
this.registrationVisible = true;
|
|
|
|
|
},
|
|
|
|
|
deleteRegistration(_this,row) {
|
|
|
|
|
_this.$confirm("是否删除?", "提示", {
|
|
|
|
|
deleteRegistration(row) {
|
|
|
|
|
this.$confirm("是否删除?", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
type: "warning",
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
_this.certLoading = true;
|
|
|
|
|
this.certLoading = true;
|
|
|
|
|
let tQuery = {
|
|
|
|
|
id: row.id,
|
|
|
|
|
filePath: row.filePath,
|
|
|
|
@ -973,19 +615,19 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
deleteRegistration(tQuery)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
_this.certLoading = false;
|
|
|
|
|
this.certLoading = false;
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
_this.getRegistrationList();
|
|
|
|
|
_this.$message({
|
|
|
|
|
this.getRegistrationList();
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "success",
|
|
|
|
|
message: "删除成功!",
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
_this.$message.error(response.message);
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
_this.certLoading = false;
|
|
|
|
|
this.certLoading = false;
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {});
|
|
|
|
@ -1017,15 +659,6 @@ export default {
|
|
|
|
|
this.registrationQuery.page = val.page;
|
|
|
|
|
this.getRegistrationList();
|
|
|
|
|
},
|
|
|
|
|
executeFuc(row,type,clickFuc,value){
|
|
|
|
|
return executeFuc(this,row,type,clickFuc,value);
|
|
|
|
|
},
|
|
|
|
|
executeEval(row,expression,defaultRet){
|
|
|
|
|
if(expression){
|
|
|
|
|
return eval(expression);
|
|
|
|
|
}
|
|
|
|
|
return defaultRet;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
|
suppliersEnterpriseBasicAdd,
|
|
|
|
@ -1035,21 +668,7 @@ export default {
|
|
|
|
|
created() {
|
|
|
|
|
this.fileUrl =
|
|
|
|
|
this.BASE_URL + "/udiwms/image/register/file/getImage?type=image4&name=";
|
|
|
|
|
getHead("supCertificationAdd-1","1").then((re) => {
|
|
|
|
|
// 处理返回的数据
|
|
|
|
|
this.tableObj = re.data;
|
|
|
|
|
this.tableHeader = re.data.tableList;
|
|
|
|
|
this.queryList = re.data.queryList;
|
|
|
|
|
this.fromList = re.data.fromList;
|
|
|
|
|
this.getList();
|
|
|
|
|
});
|
|
|
|
|
getHead("supCertificationAdd-2","1").then((re) => {
|
|
|
|
|
// 处理返回的数据
|
|
|
|
|
this.tableObj2 = re.data;
|
|
|
|
|
this.tableHeader2 = re.data.tableList;
|
|
|
|
|
this.queryList2 = re.data.queryList;
|
|
|
|
|
this.fromList2 = re.data.fromList;
|
|
|
|
|
});
|
|
|
|
|
this.getList();
|
|
|
|
|
// this.getRegistrationList();
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|