| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211 |
- <template>
- <div style="overflow-y: auto">
- <el-card class="box-card">
- <span>
- <i class="icon icon-table2"></i> 待办/已办
- </span>
- <el-form ref="form" :inline="true" style="float: right;">
- <el-form-item label="提交时间">
- <el-date-picker size="mini" style="width: 220px" v-model="CreateOn" type="daterange" range-separator="至"
- start-placeholder="提交日期" end-placeholder="提交日期"></el-date-picker>
- </el-form-item>
- <el-form-item label="类型">
- <el-select size="mini" style="width:100px" v-model="searchForm.Type" placeholder="准入类别">
- <el-option label="全部" value=""></el-option>
- <el-option label="准入" value="1"></el-option>
- <el-option label="增项" value="2"></el-option>
- <el-option label="年审" value="3"></el-option>
- <el-option label="信息变更" value="4"></el-option>
- <el-option label="注册审核" value="5"></el-option>
- <el-option label="待入库" value="7"></el-option>
- <el-option label="收入业务" value="9"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="类别">
- <el-select size="mini" style="width:100px" v-model="searchForm.SupplierTypeCode" placeholder="准入类别">
- <el-option label="全部" value=""></el-option>
- <el-option label="物资类" value="01"></el-option>
- <el-option label="基建类" value="02"></el-option>
- <el-option label="服务类" value="03"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="公司名称">
- <el-input size="mini" v-model="searchForm.SupplierName" placeholder="请输入" style="width: 100%"></el-input>
- </el-form-item>
- <el-form-item>
- <el-button size="mini" type="primary" @click="handleSearch">查 询</el-button>
- </el-form-item>
- </el-form>
- </el-card>
- <el-tabs v-model="activeName" type="border-card" @tab-click="handleClick">
- <el-tab-pane name="first">
- <span slot="label">待办任务</span>
- <el-table
- :data="entityListtode"
- size="mini"
- border
- :stripe="true"
- style="width: 100%"
- highlight-current-row v-loading="loading">
- <!--<el-table-column type="index" label="序号"></el-table-column>-->
- <el-table-column label="待办类型" prop="Type" align="center">
- <template slot-scope="scope">
- <span v-if="scope.row.Type=='1'" style="color:#E6A23C">准入-{{scope.row.TaskName}}</span>
- <span v-if="scope.row.Type=='2'" style="color:#E6A23C">增项-{{scope.row.TaskName}}</span>
- <span v-if="scope.row.Type=='3'" style="color:#E6A23C">年审-{{scope.row.TaskName}}</span>
- <span v-if="scope.row.Type=='4'" style="color:#E6A23C">信息变更-{{scope.row.TaskName}}</span>
- <span v-if="scope.row.Type=='5'" style="color:#E6A23C">企业注册-待审批</span>
- <!-- <span v-if="scope.row.Type=='7'" style="color:#E6A23C">准入-{{scope.row.TaskName}}</span> -->
- <span v-if="scope.row.Type=='8'" style="color:#E6A23C">发票</span>
- <span v-if="scope.row.Type=='9'" style="color:#E6A23C">目录申请-{{scope.row.TaskName}}</span>
- <span v-if="scope.row.Type=='10'" style="color:#E6A23C">合同日常评审</span>
- <span v-if="scope.row.Type=='11'" style="color:#E6A23C">合同年度评审</span>
- </template>
- </el-table-column>
- <!--<el-table-column label="当前状态" prop="Status" align="center">-->
- <!--<!–<template slot-scope="scope">–>-->
- <!--<!–{{statusStr(scope.row.Status, scope.row.Type)}}–>-->
- <!--<!–</template>–>-->
- <!--</el-table-column>-->
- <el-table-column label="类别" prop="SupplierTypeCode" align="center">
- <!-- <template slot-scope="scope" v-if="scope.row.Type=='10'">
- <span v-if="scope.row.SupplierTypeCode=='01'">供应商</span>
- <span v-if="scope.row.SupplierTypeCode=='02'">承包商</span>
- <span v-if="scope.row.SupplierTypeCode=='03'">服务商</span>
- </template> -->
- <template slot-scope="scope" >
- <span v-if="scope.row.SupplierTypeCode=='01' && scope.row.Type!='10'&&scope.row.Type!='11'">物资类</span>
- <span v-if="scope.row.SupplierTypeCode=='02' && scope.row.Type!='10'&&scope.row.Type!='11'">基建类</span>
- <span v-if="scope.row.SupplierTypeCode=='03' && scope.row.Type!='10'&&scope.row.Type!='11'">服务类</span>
- <span v-if="scope.row.SupplierTypeCode=='4'">信息变更</span>
- <span v-if="scope.row.SupplierTypeCode=='5'">企业注册</span>
- <span v-if="scope.row.SupplierTypeCode=='8'">待开发票</span>
- <span v-if="scope.row.SupplierTypeCode=='9-6'">外部市场</span>
- <span v-if="scope.row.SupplierTypeCode=='9-7'">收入业务</span>
- <span v-if="scope.row.SupplierTypeCode=='01' && (scope.row.Type=='10'||scope.row.Type=='11')">供应商</span>
- <span v-if="scope.row.SupplierTypeCode=='02' && (scope.row.Type=='10'||scope.row.Type=='11')">承包商</span>
- <span v-if="scope.row.SupplierTypeCode=='03' && (scope.row.Type=='10'||scope.row.Type=='11')">服务商</span>
- </template>
- </el-table-column>
- <el-table-column label="公司名称" prop="SupplierName" align="center"></el-table-column>
- <el-table-column label="执行人" prop="UserName" align="center"></el-table-column>
- <el-table-column label="提交时间" prop="CreateTime" align="center">
- <template slot-scope="scope">
- {{ jstimehandle(timestampToTime(scope.row.CreateTime)) }}
- </template>
- </el-table-column>
- <el-table-column label="当前状态" prop="Status" align="center">
- <template slot-scope="scope">
- <span>{{statusStr(scope.row.Status, scope.row.Type)}}</span>
- </template>
- </el-table-column>
- <el-table-column label="操作" width="130" align="center" fixed="right">
- <template slot-scope="scope">
- <el-button type="text" title="办理" icon="el-icon-edit" size="mini" @click="rowClick(scope.row)">办理</el-button>
- <!--<el-button type="text" title="编辑" icon="el-icon-s-promotion" size="mini">跟踪</el-button>-->
- </template>
- </el-table-column>
- </el-table>
- <el-pagination @size-change="handleSizeChange"
- @current-change="handleCurrentChange"
- :current-page="currentPage"
- :page-sizes="[10, 15, 20, 25]"
- :page-size="size"
- layout="total, sizes, prev, pager, next, jumper"
- :total="currentItemCount">
- </el-pagination>
- </el-tab-pane>
- <el-tab-pane label="已办任务" name="second">
- <el-table
- :data="entityListdone"
- size="mini"
- border
- :stripe="true"
- style="width: 100%"
- highlight-current-row v-loading="loading">
- <el-table-column label="已办类型" prop="Type" align="center">
- <template slot-scope="scope">
- <span v-if="scope.row.Type=='1'" style="color:#E6A23C">准入-{{scope.row.TaskName}}</span>
- <span v-if="scope.row.Type=='2'" style="color:#E6A23C">增项-{{scope.row.TaskName}}</span>
- <span v-if="scope.row.Type=='3'" style="color:#E6A23C">年审-{{scope.row.TaskName}}</span>
- <span v-if="scope.row.Type=='4'" style="color:#E6A23C">信息变更-{{scope.row.TaskName}}</span>
- <span v-if="scope.row.Type=='5'" style="color:#E6A23C">企业注册-待审批</span>
- <span v-if="scope.row.Type=='8'" style="color:#E6A23C">发票</span>
- <span v-if="scope.row.Type=='9'" style="color:#E6A23C">目录申请-{{scope.row.TaskName}}</span>
- <span v-if="scope.row.Type=='10'" style="color:#E6A23C">合同日常评审</span>
- <span v-if="scope.row.Type=='11'" style="color:#E6A23C">合同年度评审</span>
- </template>
- </el-table-column>
- <el-table-column label="类别" prop="SupplierTypeCode" align="center">
- <template slot-scope="scope">
- <span v-if="scope.row.SupplierTypeCode=='01' && scope.row.Type!='10'&&scope.row.Type!='11'">物资类</span>
- <span v-if="scope.row.SupplierTypeCode=='02' && scope.row.Type!='10'&&scope.row.Type!='11'">基建类</span>
- <span v-if="scope.row.SupplierTypeCode=='03' && scope.row.Type!='10'&&scope.row.Type!='11'">服务类</span>
- <span v-if="scope.row.SupplierTypeCode=='4'">信息变更</span>
- <span v-if="scope.row.SupplierTypeCode=='5'">企业注册</span>
- <span v-if="scope.row.SupplierTypeCode=='8'">待开发票</span>
- <span v-if="scope.row.SupplierTypeCode=='9-6'">外部市场</span>
- <span v-if="scope.row.SupplierTypeCode=='9-7'">收入业务</span>
- <span v-if="scope.row.SupplierTypeCode=='01' && (scope.row.Type=='10'||scope.row.Type=='11')">供应商</span>
- <span v-if="scope.row.SupplierTypeCode=='02' && (scope.row.Type=='10'||scope.row.Type=='11')">承包商</span>
- <span v-if="scope.row.SupplierTypeCode=='03' && (scope.row.Type=='10'||scope.row.Type=='11')">服务商</span>
- </template>
- </el-table-column>
- <el-table-column label="公司名称" prop="SupplierName" align="center"></el-table-column>
- <el-table-column label="执行人" prop="UserName" align="center"></el-table-column>
- <el-table-column label="完成时间" prop="CreateTime" align="center">
- <template slot-scope="scope">
- {{ jstimehandle(timestampToTime(scope.row.CreateTime)) }}
- </template>
- </el-table-column>
- <el-table-column label="当前状态" prop="Status" align="center">
- <template slot-scope="scope">
- <span>{{statusStr(scope.row.Status, scope.row.Type)}}</span>
- </template>
- </el-table-column>
- <el-table-column label="操作" width="130" align="center" fixed="right">
- <template slot-scope="scope">
- <el-button type="text" title="打开" icon="el-icon-edit" size="mini" @click="rowFinishedClick(scope.row)">打开</el-button>
- <!--<el-button type="text" title="编辑" icon="el-icon-s-promotion" size="mini">跟踪</el-button>-->
- </template>
- </el-table-column>
- </el-table>
- <el-pagination @size-change="handleSizeChangeFinished"
- @current-change="handleCurrentChangeFinished"
- :current-page="currentPageFinished"
- :page-sizes="[10, 15, 20, 25]"
- :page-size="sizeFinished"
- layout="total, sizes, prev, pager, next, jumper"
- :total="currentItemCountFinished">
- </el-pagination>
- </el-tab-pane>
- </el-tabs>
- <!-- 公司审核信息 -->
- <el-dialog title="企业注册信息" :visible.sync="dialogVisible">
- <el-form label-width="135px" ref="formData" :model="formData" size="small">
- <el-row>
- <el-col :span="24">
- <el-form-item label="公司名称" label-width="150px" style="width: 100%" prop="SupplierName">
- <el-input v-model="formData.SupplierName" readonly></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="24">
- <el-form-item label="统一社会信用代码" label-width="150px" style="width: 100%" prop="CommercialNo">
- <el-input v-model="formData.CommercialNo" readonly></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="24">
- <el-form-item label="有效证件类型" label-width="150px" style="width: 100%;">
- <el-select v-model="formData.CardNoType1" disabled placeholder="请选择有效证件类型" label-width="150px" style="width: 100%">
- <el-option :key=0 label="身份证" :value=0 ></el-option>
- <el-option :key=1 label="护照" :value=1 ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="24">
- <el-form-item v-if="formData.CardNoType1" label="联系人护照编号" label-width="150px" style="width: 100%" prop="LegalPersonId">
- <el-input v-model="formData.LegalPersonId" readonly></el-input>
- </el-form-item>
- <el-form-item v-else label="法定代表人身份证号" label-width="150px" style="width: 100%" prop="LegalPersonId">
- <el-input v-model="formData.LegalPersonId" readonly></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="24">
- <el-form-item label="有效证件扫描件"
- label-width="170px"
- prop="LegalPersonImg">
- <div class="block"
- style="overflow: auto;">
- <template>
- <el-row>
- <el-col :span="12"
- v-for="(url, index) in urlList"
- :key="index">
- <span @click="bigImg(url)">
- <el-image style="width: 170px; height: 100px; cursor: pointer"
- :src="url"></el-image>
- </span>
- </el-col>
- </el-row>
- </template>
- </div>
- </el-form-item>
- </el-col>
- <el-col :span="24">
- <el-form-item label="联系人姓名" label-width="150px" style="width: 100%" prop="ContactName">
- <el-input v-model="formData.ContactName" readonly></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="24">
- <el-form-item label="有效证件类型" label-width="150px" style="width: 100%;">
- <el-select v-model="formData.CardNoType2" disabled placeholder="请选择有效证件类型" label-width="150px" style="width: 100%">
- <el-option :key=0 label="身份证" :value=0 ></el-option>
- <el-option :key=1 label="护照" :value=1 ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="24">
- <el-form-item v-if="formData.CardNoType2" label="联系人护照编号" label-width="150px" style="width: 100%" prop="ContactId">
- <el-input v-model="formData.ContactId" readonly></el-input>
- </el-form-item>
- <el-form-item v-else label="联系人身份证号" label-width="150px" style="width: 100%" prop="ContactId">
- <el-input v-model="formData.ContactId" readonly></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="24">
- <el-form-item label="有效证件扫描件" label-width="170px" prop="ContactImg">
- <div class="block" style="overflow: auto;">
- <template>
- <el-row>
- <el-col :span="12" v-for="(url, index) in urlList2" :key="index">
- <span @click="bigImg1(url)">
- <el-image style="width: 170px; height: 100px; cursor: pointer" :src="url"></el-image>
- </span>
- </el-col>
- </el-row>
- </template>
- </div>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="12">
- <el-form-item label="邮箱" label-width="150px" style="width: 100%" prop="EMail">
- <el-input v-model="formData.EMail" readonly></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="手机号" style="width: 100%" prop="UserTelephone">
- <el-input v-model="formData.UserTelephone" readonly></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="用户名" label-width="150px" style="width: 100%" prop="UserName">
- <el-input v-model="formData.UserName" readonly></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <!--<el-row style="margin-left: 35%; margin-top: 10px; margin-bottom: 20px;">-->
- <!--<el-button size="mini" @click="cancelOption" v-if="formData.CheckStatus==0">审核未通过</el-button>-->
- <!--<el-button size="mini" type="primary" @click="ensureOption" style="margin-left: 20%;" v-if="formData.CheckStatus==0">审核通过</el-button>-->
- <!--</el-row>-->
- </el-form>
- <div slot="footer" class="dialog-footer" style="margin-top: -25px">
- <el-button type="primary" size="mini" @click="ComAudit" v-if="formData.CheckStatus == 0">审核</el-button>
- </div>
- </el-dialog>
- <el-dialog :title="invoicetitle" :visible.sync="invoiceVisible" width="70%">
- <el-card class="box-card">
- <div slot="header">
- <span>
- <i class="icon icon-table2"></i> {{this.invoicetitle}}
- </span>
- <span style="float: right;">
- <el-form ref="form" :inline="true" style="margin-top: -10px">
- <el-form-item>
- <el-button type="primary" size="mini" style="margin-right: 15px" @click="confirmIsInvoice()" v-if="this.formDataInvoice.IsInvoice == '0'" :loading="invoiceLoading">确认</el-button>
- </el-form-item>
- </el-form>
- </span>
- </div>
- <div class="table-layout" style="margin-top: 0px">
- <el-row>
- <el-col :span="9" class="table-cell-title">单位名称</el-col>
- <el-col :span="10" class="table-cell-title">注册地址</el-col>
- <el-col :span="5" class="table-cell-title">税号</el-col>
- </el-row>
- <el-row>
- <el-col :span="9" class="table-cell">{{this.formDataInvoice.SupplierName}}</el-col>
- <el-col :span="10" class="table-cell">{{this.formDataInvoice.Address}}</el-col>
- <el-col :span="5" class="table-cell">{{this.formDataInvoice.CommercialNo}}</el-col>
- </el-row>
- <el-row>
- <el-col :span="9" class="table-cell-title">开户银行</el-col>
- <el-col :span="10" class="table-cell-title">银行账号</el-col>
- <el-col :span="5" class="table-cell-title">邮箱</el-col>
- </el-row>
- <el-row>
- <el-col :span="9" class="table-cell">{{this.formDataInvoice.DepositBank}}</el-col>
- <el-col :span="10" class="table-cell">{{this.formDataInvoice.BankAccount}}</el-col>
- <el-col :span="5" class="table-cell">{{this.formDataInvoice.Email}}</el-col>
- </el-row>
- </div>
- </el-card>
- <el-card class="box-card" style="margin-top: 5px"> <!--v-if="entityList && entityList.length > 0"-->
- <div slot="header">
- <span>
- <span style="font-weight: bold;">
- 金额合计: <font color="red">{{this.formDataInvoice.Amount}} 元</font>
- </span>
- </span>
- </div>
- <el-table :data="paymentinfoList" size="mini" border style="width: 100%">
- <!--<el-table-column sortable min-width="120" align="center" show-overflow-tooltip prop="SupplierName" label="企业名称"></el-table-column>-->
- <el-table-column sortable min-width="120" align="center" show-overflow-tooltip prop="SupplierTypeName" label="项目类型"></el-table-column>
- <el-table-column sortable min-width="120" align="center" show-overflow-tooltip prop="PayType" label="交费类型">
- <template slot-scope="scope">
- {{ transferStr(scope.row.PayType) }}
- </template>
- </el-table-column>
- <el-table-column sortable min-width="120" align="center" show-overflow-tooltip prop="Amount" label="交费金额">
- </el-table-column>
- <el-table-column prop="CreateOn" sortable min-width="150" label="交费时间" align="center" show-overflow-tooltip>
- <template slot-scope="scope">
- {{ jstimehandle(scope.row.PayDate) }}
- </template>
- </el-table-column>
- </el-table>
- </el-card>
- </el-dialog>
- <el-dialog title="审核" :visible.sync="Auditshow">
- <el-form :model="shenheForm" label-width="100px" ref="shenheForm">
- <el-form-item label="审核状态">
- <template>
- <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="1">通过</el-radio>
- <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="2">未通过</el-radio>
- </template>
- </el-form-item>
- <el-form-item label="意见" :rules="[{ required: true, message: '请输入审批意见', trigger: 'blur' }]">
- <el-input type="textarea" v-model="shenheForm.AuditorRemark" placeholder="请输入审核意见"></el-input>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer" style="margin-top: -25px">
- <el-button size="small" @click="Auditshow = false">取 消</el-button>
- <el-button type="primary" size="small" @click="makeSure()" :loading="btnLoading">确 定</el-button>
- </div>
- </el-dialog>
- <!--点击图片放大区域-->
- <el-dialog
- title="法定代表人有效证件扫描件"
- :visible.sync="legalPersonImgVisible"
- width="40%">
- <el-image :src="bigUrl"></el-image>
- </el-dialog>
- <el-dialog
- title="联系人有效证件扫描件"
- :visible.sync="legalPersonImg1Visible"
- width="40%">
- <el-image :src="bigUrl"></el-image>
- </el-dialog>
- </div>
- </template>
- <script>
- import api from '@/api/oilsupplier/supplier'
- import {
- mapGetters
- } from 'vuex'
- export default {
- name: 'index',
- computed: mapGetters({
- authUser: 'authUser'
- }),
- data () {
- return {
- urlList: [], // 照片地址数组
- urlList2: [], // 照片地址数组2
- bigUrl: '',
- invoicetitle: '待开发票',
- Auditshow: false,
- btnLoading: false,
- dialogVisible: false,
- invoiceVisible: false,
- legalPersonImgVisible: false,
- legalPersonImg1Visible: false,
- tabindex: '',
- activeName: 'first',
- currentDate: new Date(),
- // 查询时间
- CreateOn: null,
- // 分页参数
- size: 10,
- currentPage: 1,
- currentItemCount: 0,
- // finished
- // 分页参数
- sizeFinished: 10,
- currentPageFinished: 1,
- currentItemCountFinished: 0,
- shenheForm: {
- SuccessStatus: 1,
- AuditorRemark: ''
- },
- // 列表排序
- Column: {
- Order: '',
- Prop: ''
- },
- ColumnFinished: {
- Order: '',
- Prop: ''
- },
- // 查询项
- searchForm: {
- Id: '',
- Type: '',
- SupplierTypeCode: '',
- SupplierName: '',
- IsPay: '1',
- CreateUserId: '',
- CreateBy: '',
- ModifiedOn: '',
- ModifiedUserId: '',
- ModifiedBy: ''
- },
- formData: {
- Id: '', // int
- UserId: '', // int
- UserName: '', // 账号/Email
- UserRealName: '', // 用户真实姓名
- UserTelephone: '', // 用户手机号
- UserPass: '',
- UserPass2: '',
- SupplierName: '',
- OilCertificateNo: '',
- Grade: '',
- MgrUnit: '',
- OperType: '',
- Country: '',
- CommercialNo: '',
- OrganCode: '',
- CountryTaxNo: '',
- LocalTaxNo: '',
- Address: '',
- DetailAddress: '',
- Province: '',
- City: '',
- Street: '',
- HouseNo: '',
- ZipCode: '',
- BusinessScope: '',
- LegalPerson: '',
- LegalPersonId: '',
- LegalPersonURL: '',
- CategoryCode: '',
- CategoryName: '',
- RegCapital: 0, //float32
- Currency: '',
- ContactName: '',
- ContactId: '',
- ContactURL: '',
- CompanyType: '',
- SetupTime: '', //time
- DepositBank: '',
- BankAccount: '',
- EMail: '',
- BankCreditRating: '',
- Mobile: '',
- Telphone: '',
- Fax: '',
- CompanyTel: '',
- QQ: '',
- CompanyUrl: '',
- Remark: '',
- CheckStatus: 0, // 二级单位审核状态,0:未通过,1:通过 默认0
- IsDelete: 0, // 删除状态,0正常,1已删除
- LinkAddress: '',
- LinkProvince: '',
- LinkCity: '',
- LinkStreet: '',
- LinkHouseNo: '',
- LinkZipCode: '',
- HseTraining: '',
- CardNoType1: 0,
- CardNoType2: 0
- },
- formDataInvoice: {
- Id: '',
- SrcIds: '',
- IsInvoice: '',
- SupplierName: '',
- CommercialNo: '',
- Address: '',
- DepositBank: '',
- BankAccount: '',
- Email: '',
- Amount: ''
- },
- paymentinfoList: [],
- entityListtode: [],
- entityListdone: [],
- invoiceLoading: false,
- loading: false
- }
- },
- created () {
- if (this.authUser.Profile.IsCompanyUser == 1) {
- this.$router.push('/oilsupplier/supplier') // 跳转到登录页
- }
- this.initDatas()
- },
- methods: {
- confirmIsInvoice () {
- this.invoiceLoading = true
- let params = {
- Id: this.formDataInvoice.Id,
- SrcIds: this.formDataInvoice.SrcIds
- }
- api.updateIsInvoice(params, this.$axios).then(res => {
- if (res.data.code === 0) {
- this.$message({
- type: 'success',
- message: res.data.message
- })
- // 关闭dialog
- this.invoiceVisible = false
- // 更新列表
- this.initDatas()
- } else {
- this.$message({
- type: 'warning',
- message: res.data.message
- })
- }
- this.invoiceLoading = false
- })
- },
- initDatas () {
- this.loading = true
- // 分页及列表条件
- let myCreateOn = []
- // 解析时间
- if (this.CreateOn != null && this.CreateOn.length === 2) {
- this.CreateOn[1].setHours(23)
- this.CreateOn[1].setMinutes(59)
- this.CreateOn[1].setSeconds(59)
- myCreateOn.push(this.formatDateTime(this.CreateOn[0]))
- myCreateOn.push(this.formatDateTime(this.CreateOn[1]))
- }
- let params = {
- _currentPage: this.currentPage,
- _size: this.size,
- Order: this.Column.Order,
- Prop: this.Column.Prop,
- CreateOn: myCreateOn.join(',')
- }
- // 查询条件
- Object.assign(params, this.searchForm)
- // 访问接口
- api.getTodoList(params, this.$axios).then(res => {
- this.entityListtode = res.data.items
- this.currentItemCount = res.data.currentItemCount
- this.loading = false
- }).catch(err => {
- console.error(err)
- })
- },
- handleSearch () {
- this.currentPage = 1
- if (this.tabindex === '0') {
- this.initDatas()
- } else {
- this.finishedData()
- }
- this.initDatas()
- },
- handleClick (tab) {
- this.tabindex = tab.index
- if (tab.index === '0') {
- this.initDatas()
- } else {
- this.finishedData()
- }
- },
- rowClick (val) {
- // alert(JSON.stringify(val))
- // return
- console.log('待办-分流路由',val)
- let SupplierType = ''
- if (val.Type == '1') { // 准入
- if (val.Status === '7') {
- // 待入库状态时直接跳转单独的入库审批页面,.信息变更入库不需要区分类型, 直接审批。
- if (val.SupplierTypeCode === '01') {
- SupplierType = 'goodsedit'
- } else if (val.SupplierTypeCode === '02') {
- SupplierType = 'basisedit'
- } else {
- SupplierType = 'techedit'
- }
- this.$router.push('oilsupplier/supplierstorage/' + val.Id + '/' + SupplierType + '?certid=' + val.CertId + '&applytype=' + val.Type)
- } else {
- // 到详情页面
- if (val.SupplierTypeCode === '01') {
- SupplierType = 'goodsedit'
- } else if (val.SupplierTypeCode === '02') {
- SupplierType = 'basisedit'
- } else {
- SupplierType = 'techedit'
- }
- // 准入 且审批未通过之后 创建人中的待办按钮
- if (Number(val.Status) <= 0) {
- this.$router.push('oilsupplier/supplier/' + val.Id + '/' + SupplierType + '?certid=' + val.CertId)
- } else {
- this.$router.push('oilsupplier/supplieraudit/' + val.Id + '/' + SupplierType + '?certid=' + val.CertId)
- }
- }
- } else if (val.Type == '2') { // 增项
- let appendId = ''
- if (val.SupplierTypeCode === '01') {
- SupplierType = 'goodsdataopera'
- appendId = '1'
- } else if (val.SupplierTypeCode === '02') {
- appendId = '2'
- SupplierType = 'basisdataopera'
- } else {
- appendId = '3'
- SupplierType = 'techdataopera'
- }
- if (Number(val.Status) <= 0) {
- this.$router.push('oilsupplier/supplierappend/' + appendId + '/' + SupplierType + '?Id=' + val.Id + '&editFlag=1&sId=' + val.SupplierId)
- }
- this.$router.push('oilsupplier/addtionaudit/' + val.Id + '/' + SupplierType)
- } else if (val.Type == '3') { // 年审
- if (val.SupplierTypeCode === '01') {
- SupplierType = 'auditoperation'
- } else if (val.SupplierTypeCode === '02') {
- SupplierType = 'basicauditoperation'
- } else {
- SupplierType = 'techoperation'
- }
- if (Number(val.Status) <= 0) {
- this.$router.push('oilsupplier/annualaudit/' + val.SupplierId + '/' + SupplierType + '?certid=' + val.CertId + '&WorkflowId=' + val.WorkflowId + '&Status=' + val.Status + '&Step=' + val.Step + '&annualId=' + val.Id)
- } else {
- this.$router.push('oilsupplier/annualaudit/' + val.SupplierId + '/' + SupplierType + '?certid=' + val.CertId + '&WorkflowId=' + val.WorkflowId + '&AnnualStatus=' + val.Status + '&annualId=' + val.Id + '&Step=' + val.Step)
- }
- } else if (val.Type == '4') { // 信息变更
- this.$router.push('/oilsupplier/infochangech/' + val.Id + '/auditoperation?InfoStatus=' + val.Status + '&SupId=' + val.SupplierId)
- } else if (val.Type == '5') { // 企业注册
- this.initDataregister(val.Id)
- } else if (val.Type == '8') { // 发票
- if (val.Status === '未开') {
- this.invoicetitle = '待开发票'
- } else {
- this.invoicetitle = '已开发票'
- }
- this.initInvoiceDatas(val.Id)
- this.invoiceVisible = true
- } else if (val.Type == '9') { // 目录申请
- this.$router.push('/oilsupplier/oilcatalogsub/' + val.Id + '/incomeedit')
- } else if (val.Type == '10') { //日常评价 评价呀
- if(val.SupplierTypeCode=='01'){
- this.$router.push({
- path:'/oilcontract/contract-goods/' + val.Id + '/evaluate',
- })
- }else if(val.SupplierTypeCode=='02'){
- this.$router.push({
- path:'/oilcontract/contract-basis/' + val.Id + '/evaluate',
- })
- }else if(val.SupplierTypeCode=='03'){
- this.$router.push({
- path:'/oilcontract/contract-service/' + val.Id + '/evaluate',
- })
- }
- }else if (val.Type == '11') { //年度评价 评价呀
- if(val.SupplierTypeCode=='01'){
- this.$router.push({
- path:'/oilcontract/contract-goods-year/' + val.Id + '/operation',
- })
- }else if(val.SupplierTypeCode=='02'){
- this.$router.push({
- path:'/oilcontract/contract-basis-year/' + val.Id + '/operation',
- })
- }else if(val.SupplierTypeCode=='03'){
- this.$router.push({
- path:'/oilcontract/contract-service-year/' + val.Id + '/operation',
- })
- }
- }
- },
- rowFinishedClick (val) {
- console.log('已办-分流路由')
- let SupplierType = ''
- if (val.Type == '1') { // 准入
- if (val.TaskName == '企管法规处编号、入库') {
- // 待入库状态时直接跳转单独的入库审批页面,.信息变更入库不需要区分类型, 直接审批。
- if (val.SupplierTypeCode === '01') {
- SupplierType = 'goodsedit'
- } else if (val.SupplierTypeCode === '02') {
- SupplierType = 'basisedit'
- } else {
- SupplierType = 'techedit'
- }
- this.$router.push('oilsupplier/supplierstorage/' + val.Id + '/' + SupplierType + '?certid=' + val.CertId + '&applytype=' + val.Type)
- } else {
- // 到详情页面
- if (val.SupplierTypeCode === '01') {
- SupplierType = 'goodsedit'
- } else if (val.SupplierTypeCode === '02') {
- SupplierType = 'basisedit'
- } else {
- SupplierType = 'techedit'
- }
- // 准入 且审批未通过之后 创建人中的待办按钮
- this.$router.push('oilsupplier/supplieraudit/' + val.Id + '/' + SupplierType + '?certid=' + val.CertId)
- }
- } else if (val.Type == '2') { // 增项
- let appendId = ''
- if (val.SupplierTypeCode === '01') {
- SupplierType = 'goodsdataopera'
- appendId = '1'
- } else if (val.SupplierTypeCode === '02') {
- appendId = '2'
- SupplierType = 'basisdataopera'
- } else {
- appendId = '3'
- SupplierType = 'techdataopera'
- }
- this.$router.push('oilsupplier/addtionaudit/' + val.Id + '/' + SupplierType)
- } else if (val.Type == '3') { // 年审
- if (val.SupplierTypeCode === '01') {
- SupplierType = 'auditoperation'
- } else if (val.SupplierTypeCode === '02') {
- SupplierType = 'basicauditoperation'
- } else {
- SupplierType = 'techoperation'
- }
- this.$router.push('oilsupplier/annualaudit/' + val.SupplierId + '/' + SupplierType + '?certid=' + val.CertId + '&WorkflowId=' + val.WorkflowId + '&AnnualStatus=' + val.Status + '&annualId=' + val.Id + '&Step=' + val.Step)
- } else if (val.Type == '4') { // 信息变更
- this.$router.push('/oilsupplier/infochangech/' + val.Id + '/auditoperation?InfoStatus=' + val.Status + '&SupId=' + val.SupplierId)
- } else if (val.Type == '5') { // 企业注册
- this.initDataregister(val.Id)
- } else if (val.Type == '8') { // 发票
- if (val.Status === '未开') {
- this.invoicetitle = '待开发票'
- } else {
- this.invoicetitle = '已开发票'
- }
- this.initInvoiceDatas(val.Id)
- this.invoiceVisible = true
- } else if (val.Type == '9') { // 目录申请
- this.$router.push('/oilsupplier/oilcatalogsub/' + val.Id + '/incomeedit')
- } else if (val.Type == '10') { //日常评价 评价呀
- if(val.SupplierTypeCode=='01'){
- this.$router.push({
- path:'/oilcontract/contract-goods/' + val.Id + '/evaluate',
- })
- }else if(val.SupplierTypeCode=='02'){
- this.$router.push({
- path:'/oilcontract/contract-basis/' + val.Id + '/evaluate',
- })
- }else if(val.SupplierTypeCode=='03'){
- this.$router.push({
- path:'/oilcontract/contract-service/' + val.Id + '/evaluate',
- })
- }
- }else if (val.Type == '11') { //年度评价 评价呀
- if(val.SupplierTypeCode=='01'){
- this.$router.push({
- path:'/oilcontract/contract-goods-year/' + val.Id + '/operation',
- })
- }else if(val.SupplierTypeCode=='02'){
- this.$router.push({
- path:'/oilcontract/contract-basis-year/' + val.Id + '/operation',
- })
- }else if(val.SupplierTypeCode=='03'){
- this.$router.push({
- path:'/oilcontract/contract-service-year/' + val.Id + '/operation',
- })
- }
- }
- },
- initInvoiceDatas (Id) {
- let params = {
- Id: Id
- }
- api.getInvoiceData(params, this.$axios).then(res => {
- this.formDataInvoice = res.data.items['invoiceinfo']
- this.paymentinfoList = res.data.items['paymentinfos']
- }).catch(err => {
- console.error(err)
- })
- },
- bigImg (url) {
- this.bigUrl = url
- this.legalPersonImgVisible = true
- },
- bigImg1 (url) {
- this.bigUrl = url
- this.legalPersonImg1Visible = true
- },
- initDataregister (Id) {
- let _this = this
- const params = {
- _currentPage: _this.currentPage,
- _size: _this.size,
- Name: _this.searchForm.SupplierName
- }
- this.$axios.get('/register/get/' + Id)
- .then(function (response) {
- _this.formData = response.data
- _this.dialogVisible = true
- // 处理URL
- _this.urlList = []
- let urlArr = _this.formData.LegalPersonURL.split('&')
- if (urlArr) {
- for (let i = 0; i < urlArr.length; i++) {
- let tempURL = urlArr[i].split('|')
- if (tempURL[0].indexOf('/upfile') === 0) {
- const myDomain = window.location.host
- _this.urlList.push('http://' + myDomain + tempURL[0])
- } else {
- _this.urlList.push('http://' + tempURL[0])
- }
- }
- }
- _this.urlList2 = []
- let urlArr2 = _this.formData.ContactURL.split('&')
- if (urlArr2) {
- for (let i = 0; i < urlArr2.length; i++) {
- let tempURL = urlArr2[i].split('|')
- if (tempURL[0].indexOf('/upfile') === 0) {
- const myDomain = window.location.host
- _this.urlList2.push('http://' + myDomain + tempURL[0])
- } else {
- _this.urlList2.push('http://' + tempURL[0])
- }
- }
- }
- })
- .catch(function (error) {
- console.log(error)
- })
- },
- ComAudit () {
- this.Auditshow = true
- },
- // 审核
- makeSure () {
- if (this.shenheForm.AuditorRemark.trim().length < 1) {
- this.$message({
- type: 'warning',
- message: '请填写审批意见!'
- })
- return
- }
- this.checkstatus()
- },
- // 审核未通过
- checkstatus () {
- let _this = this
- _this.btnLoading = true
- const params = _this.shenheForm
- _this.$axios.post('/register/comaudit/', _this.formData, {params})
- .then(res => {
- if (res.data.code === 0) {
- _this.$message({
- type: 'success',
- message: res.data.message,
- })
- // 关闭dialog
- _this.Auditshow = false
- _this.dialogVisible = false
- // 更新列表
- _this.initDatas()
- } else {
- _this.$message({
- type: 'warning',
- message: res.data.message
- })
- }
- this.btnLoading = false
- })
- .catch(err => {
- console.error(err)
- })
- },
- ensureOption () {
- let _this = this
- _this.$axios.post('/register/adduser/', _this.formData)
- .then(res => {
- if (res.data.code === 0) {
- _this.$message({
- type: 'success',
- message: res.data.message
- })
- // 关闭dialog
- _this.dialogVisible = false
- // 更新列表
- this.initDatas()
- } else {
- _this.$message({
- type: 'warning',
- message: res.data.message
- })
- }
- })
- .catch(err => {
- console.error(err)
- })
- },
- finishedData () {
- this.loading = true
- let myCreateOn = []
- // 解析时间
- if (this.CreateOn != null && this.CreateOn.length === 2) {
- this.CreateOn[1].setHours(23)
- this.CreateOn[1].setMinutes(59)
- this.CreateOn[1].setSeconds(59)
- myCreateOn.push(this.formatDateTime(this.CreateOn[0]))
- myCreateOn.push(this.formatDateTime(this.CreateOn[1]))
- }
- // 分页及列表条件
- let params = {
- _currentPage: this.currentPageFinished,
- _size: this.sizeFinished,
- Order: this.ColumnFinished.Order,
- Prop: this.ColumnFinished.Prop,
- CreateOn: myCreateOn.join(',')
- }
- // 查询条件
- Object.assign(params, this.searchForm)
- api.getMyTaskFinished(params, this.$axios).then(res => {
- this.entityListdone = res.data.items
- this.currentItemCountFinished = res.data.currentItemCount
- this.loading = false
- }).catch(err => {
- console.error(err)
- })
- },
- /** statusStr (val, type) {
- if (type == '1') { //准入
- this.statusApplyStr()
- } else if (type == '2') { //增项
- this.statusApplyStr()
- } else if (type == '3') { //年审
- } else if (type == '4') { //信息变更
- } else if (type == '5') { //企业注册
- } else if (type == '8') { //发票
- } else if (type == '9') { //目录申请
- }
- }, */
- statusStr (val, type) {
- switch (val) {
- case '':
- return '待提交'
- case '0':
- return '待提交'
- case '1':
- return '待初审'
- case '2':
- return '待复审'
- case '3':
- return '待专业处室分办'
- case '4':
- return '待专业处室审批'
- case '5':
- if (type == '3') { // 年审
- return '待企业法规处审批'
- } else if (type == '4') { // 信息变更
- return '待企业法规处审批'
- } else if (type == '9') { // 目录申请
- return '待企业法规处审批'
- } else {
- return '待集中评审'
- }
- case '6':
- return '待交费'
- case '7':
- if(type == '10' || type == '11'){
- return '待企管法规处审批'
- }else{
- return '待入库'
- }
- case '8':
- if(type == '10' || type == '11'){
- return '已完成'
- }else{
- return '已入库'
- }
- case '9':
- return '待企管法规处审批'
- case '10':
- return '分办'
- case '11':
- return '审核完成'
- case '-1':
- if (type == '5') {
- return '审核未通过'
- } else {
- return '初审未通过'
- }
- case '-2':
- return '复审未通过'
- case '-3':
- return '专业处室分办未通过'
- case '-4':
- return '专业处室审批未通过'
- case '-5':
- if (type == '4') { // 信息变更
- return '企管法规处审批未通过'
- } else if (type == '9') { // 目录申请
- return '待企管法规处审批'
- } else {
- return '集中评审未通过'
- }
- case '-7':
- return '入库未通过'
- case '-9':
- return '企管法规处审批未通过'
- case '-10':
- return '二级单位分办未通过'
- default:
- return val
- }
- },
- transferStr (val) {
- if (val === '1') {
- return '准入交费'
- } else if (val === '2') {
- return '年审交费'
- } else if (val === '3') {
- return '增项交费'
- } else if (val === '7') {
- return '信息变更交费'
- } else {
- return val
- }
- },
- timestampToTime (val) {
- var date = new Date(val) // 时间戳为10位需*1000,时间戳为13位的话不需乘1000
- var Y = date.getFullYear() + '-'
- var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
- var D = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate()) + ' '
- var h = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':'
- var m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) + ':'
- var s = (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds())
- return Y + M + D + h + m + s
- },
- jstimehandle (val) {
- if (val === '') {
- return '----'
- } else if (val === '0001-01-01T08:00:00+08:00') {
- return '----'
- } else if (val === '5000-01-01T23:59:59+08:00') {
- return '永久'
- } else if (val === '1970-01-01 8:0:0') {
- return '----'
- } else if (val === '1970-01-1 8:0:0') {
- return '----'
- } else {
- val = val.replace('T', ' ')
- return val.substring(0, 19)
- }
- },
- formatDateTime (date) {
- var y = date.getFullYear()
- var m = date.getMonth() + 1
- m = m < 10 ? ('0' + m) : m
- var d = date.getDate()
- d = d < 10 ? ('0' + d) : d
- var h = date.getHours()
- h = h < 10 ? ('0' + h) : h
- var minute = date.getMinutes()
- minute = minute < 10 ? ('0' + minute) : minute
- return y + '-' + m + '-' + d + ' ' + h + ':' + minute
- },
- formatDateTimeymd (date) {
- var y = date.getFullYear()
- var m = date.getMonth() + 1
- m = m < 10 ? ('0' + m) : m
- var d = date.getDate()
- d = d < 10 ? ('0' + d) : d
- return y + '-' + m + '-' + d
- },
- handleCurrentChangeFinished (value) {
- this.currentPageFinished = value
- this.finishedData()
- },
- handleSizeChangeFinished (value) {
- this.sizeFinished = value
- this.currentPageFinished = 1
- this.finishedData()
- },
- handleCurrentChange (value) {
- this.currentPage = value
- this.initDatas()
- },
- handleSizeChange (value) {
- this.size = value
- this.currentPage = 1
- this.initDatas()
- }
- }
- }
- </script>
- <style lang="scss">
- .el-pagination {
- margin: 1rem 0 2rem;
- text-align: right;
- }
- .item {
- margin-top: 10px;
- margin-right: 40px;
- }
- .table-layout {
- margin-top: 20px;
- border-left: 1px solid #DCDFE6;
- border-top: 1px solid #DCDFE6;
- }
- .table-cell {
- height: 40px;
- /*line-height: 20px;*/
- border-right: 1px solid #DCDFE6;
- border-bottom: 1px solid #DCDFE6;
- padding: 10px;
- font-size: 14px;
- color: #606266;
- text-align: center;
- overflow: hidden;
- }
- .table-cell-title {
- border-right: 1px solid #DCDFE6;
- border-bottom: 1px solid #DCDFE6;
- padding: 10px;
- background: #F2F6FC;
- text-align: center;
- font-size: 14px;
- color: #303133;
- }
- </style>
|