|
|
@@ -11,9 +11,20 @@
|
|
|
<i class="icon icon-table2"></i> 信息
|
|
|
</span>
|
|
|
<span style="float: right;">
|
|
|
- <el-button plain icon="el-icon-right" size="mini" style="margin-right: 5px" @click="nextTab">下一步</el-button>
|
|
|
+ <el-button
|
|
|
+ plain
|
|
|
+ icon="el-icon-right"
|
|
|
+ size="mini"
|
|
|
+ style="margin-right: 5px"
|
|
|
+ @click="nextTab"
|
|
|
+ >下一步</el-button>
|
|
|
<el-popover>
|
|
|
- <el-steps :active="formData.Step" direction="vertical" align-center finish-status="success">
|
|
|
+ <el-steps
|
|
|
+ :active="formData.Step"
|
|
|
+ direction="vertical"
|
|
|
+ align-center
|
|
|
+ finish-status="success"
|
|
|
+ >
|
|
|
<el-step title="填信息"></el-step>
|
|
|
<el-step title="待审批"></el-step>
|
|
|
<el-step title="已审批"></el-step>
|
|
|
@@ -24,15 +35,19 @@
|
|
|
<el-button slot="reference" plain size="mini" style="margin-right: 5px">查看进度</el-button>
|
|
|
</el-popover>
|
|
|
<router-link :to="'/oilsupplier/annualaudit'">
|
|
|
- <el-button type="primary" plain size="mini" style="margin-right:3px" :disabled="formDataCert.Status == 0">
|
|
|
- 年审申请</el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ size="mini"
|
|
|
+ style="margin-right:3px"
|
|
|
+ :disabled="formDataCert.Status == 0"
|
|
|
+ >年审申请</el-button>
|
|
|
</router-link>
|
|
|
<router-link :to="'/oilsupplier/supplierappend/goodslist'">
|
|
|
<el-button type="primary" plain size="mini" :disabled="formDataCert.Status == 0">增项申请</el-button>
|
|
|
</router-link>
|
|
|
<router-link :to="'/oilsupplier/supplier/goodslist'">
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" v-if="showReturn">返回
|
|
|
- </el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" v-if="showReturn">返回</el-button>
|
|
|
</router-link>
|
|
|
</span>
|
|
|
</div>
|
|
|
@@ -44,7 +59,7 @@
|
|
|
<el-step title="待交费"></el-step>
|
|
|
<el-step title="待入库"></el-step>
|
|
|
<el-step title="完成"></el-step>
|
|
|
- </el-steps> -->
|
|
|
+ </el-steps>-->
|
|
|
|
|
|
<el-tabs tab-position="top" v-model="activeName" style="margin-top: -10px">
|
|
|
<el-tab-pane label="企业信息">
|
|
|
@@ -52,13 +67,23 @@
|
|
|
<div slot="header" class="clearfix">
|
|
|
<span>供方基本信息表</span>
|
|
|
<span style="float: right;">
|
|
|
- <el-button type="primary" size="mini" @click="saveEntity" v-if="formDataCert.Status == 0">保存基本信息
|
|
|
- </el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ size="mini"
|
|
|
+ @click="saveEntity"
|
|
|
+ v-if="formDataCert.Status == 0"
|
|
|
+ >保存基本信息</el-button>
|
|
|
</span>
|
|
|
</div>
|
|
|
- <goods-info ref="GoodsInfo" :formData.sync="formData" :dictData.sync="dictData" :authUser="authUser"
|
|
|
- :canUpdateSupplier="canUpdateSupplier" @selectcompany="changeFormData" @inputcompany="inputCompany">
|
|
|
- </goods-info>
|
|
|
+ <goods-info
|
|
|
+ ref="GoodsInfo"
|
|
|
+ :formData.sync="formData"
|
|
|
+ :dictData.sync="dictData"
|
|
|
+ :authUser="authUser"
|
|
|
+ :canUpdateSupplier="canUpdateSupplier"
|
|
|
+ @selectcompany="changeFormData"
|
|
|
+ @inputcompany="inputCompany"
|
|
|
+ ></goods-info>
|
|
|
</el-card>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
@@ -67,8 +92,12 @@
|
|
|
<div slot="header" class="clearfix">
|
|
|
<span>企业人员结构情况</span>
|
|
|
<span style="float: right;">
|
|
|
- <el-button type="primary" size="mini" @click="updateNumberEntity" v-if="formDataCert.Status == 0">
|
|
|
- 保存人员结构情况</el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ size="mini"
|
|
|
+ @click="updateNumberEntity"
|
|
|
+ v-if="formDataCert.Status == 0"
|
|
|
+ >保存人员结构情况</el-button>
|
|
|
</span>
|
|
|
</div>
|
|
|
|
|
|
@@ -76,71 +105,111 @@
|
|
|
<el-row>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="企业员工总数">
|
|
|
- <el-input-number v-model="formDataCert.WorkerTotal" controls-position="right" :min="0"
|
|
|
- style="width: 100%"></el-input-number>
|
|
|
+ <el-input-number
|
|
|
+ v-model="formDataCert.WorkerTotal"
|
|
|
+ controls-position="right"
|
|
|
+ :min="0"
|
|
|
+ style="width: 100%"
|
|
|
+ ></el-input-number>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="合同化用工数量">
|
|
|
- <el-input-number v-model="formDataCert.ContractNum" controls-position="right" :min="0"
|
|
|
- style="width: 100%"></el-input-number>
|
|
|
+ <el-input-number
|
|
|
+ v-model="formDataCert.ContractNum"
|
|
|
+ controls-position="right"
|
|
|
+ :min="0"
|
|
|
+ style="width: 100%"
|
|
|
+ ></el-input-number>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="大学及以上学历人员数量">
|
|
|
- <el-input-number v-model="formDataCert.UniversityNum" controls-position="right" :min="0"
|
|
|
- style="width: 100%"></el-input-number>
|
|
|
+ <el-input-number
|
|
|
+ v-model="formDataCert.UniversityNum"
|
|
|
+ controls-position="right"
|
|
|
+ :min="0"
|
|
|
+ style="width: 100%"
|
|
|
+ ></el-input-number>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="技术、管理人员数量">
|
|
|
- <el-input-number v-model="formDataCert.TechnicalNum" controls-position="right" :min="0"
|
|
|
- style="width: 100%"></el-input-number>
|
|
|
+ <el-input-number
|
|
|
+ v-model="formDataCert.TechnicalNum"
|
|
|
+ controls-position="right"
|
|
|
+ :min="0"
|
|
|
+ style="width: 100%"
|
|
|
+ ></el-input-number>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="高级及以上职称人员数量">
|
|
|
- <el-input-number v-model="formDataCert.AboveProfNum" controls-position="right" :min="0"
|
|
|
- style="width: 100%"></el-input-number>
|
|
|
+ <el-input-number
|
|
|
+ v-model="formDataCert.AboveProfNum"
|
|
|
+ controls-position="right"
|
|
|
+ :min="0"
|
|
|
+ style="width: 100%"
|
|
|
+ ></el-input-number>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="中级职称人员数量">
|
|
|
- <el-input-number v-model="formDataCert.MiddleProfNum" controls-position="right" :min="0"
|
|
|
- style="width: 100%"></el-input-number>
|
|
|
+ <el-input-number
|
|
|
+ v-model="formDataCert.MiddleProfNum"
|
|
|
+ controls-position="right"
|
|
|
+ :min="0"
|
|
|
+ style="width: 100%"
|
|
|
+ ></el-input-number>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="具有国家注册执业资格人员数量">
|
|
|
- <el-input-number v-model="formDataCert.NationalRegNum" controls-position="right" :min="0"
|
|
|
- style="width: 100%"></el-input-number>
|
|
|
+ <el-input-number
|
|
|
+ v-model="formDataCert.NationalRegNum"
|
|
|
+ controls-position="right"
|
|
|
+ :min="0"
|
|
|
+ style="width: 100%"
|
|
|
+ ></el-input-number>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="具有国家注册执业资格证书总数">
|
|
|
- <el-input-number v-model="formDataCert.NationalCertTotal" controls-position="right" :min="0"
|
|
|
- style="width: 100%"></el-input-number>
|
|
|
+ <el-input-number
|
|
|
+ v-model="formDataCert.NationalCertTotal"
|
|
|
+ controls-position="right"
|
|
|
+ :min="0"
|
|
|
+ style="width: 100%"
|
|
|
+ ></el-input-number>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="设计人员总数">
|
|
|
- <el-input-number v-model="formDataCert.DesignerTotal" controls-position="right" :min="0"
|
|
|
- style="width: 100%"></el-input-number>
|
|
|
+ <el-input-number
|
|
|
+ v-model="formDataCert.DesignerTotal"
|
|
|
+ controls-position="right"
|
|
|
+ :min="0"
|
|
|
+ style="width: 100%"
|
|
|
+ ></el-input-number>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="技术工人总数">
|
|
|
- <el-input-number v-model="formDataCert.SkillerTotal" controls-position="right" :min="0"
|
|
|
- style="width: 100%"></el-input-number>
|
|
|
+ <el-input-number
|
|
|
+ v-model="formDataCert.SkillerTotal"
|
|
|
+ controls-position="right"
|
|
|
+ :min="0"
|
|
|
+ style="width: 100%"
|
|
|
+ ></el-input-number>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
@@ -150,53 +219,107 @@
|
|
|
<el-card class="box-card" style="margin-top: 10px;">
|
|
|
<div slot="header" class="clearfix">
|
|
|
<span>企业主要装备情况</span>
|
|
|
- <el-button style="float: right; padding: 3px 0" type="text" @click="equipmentdialog"
|
|
|
- v-if="formDataCert.Status == 0">添加</el-button>
|
|
|
+ <el-button
|
|
|
+ style="float: right; padding: 3px 0"
|
|
|
+ type="text"
|
|
|
+ @click="equipmentdialog"
|
|
|
+ v-if="formDataCert.Status == 0"
|
|
|
+ >添加</el-button>
|
|
|
</div>
|
|
|
- <equipment-list ref="equipmentList" :data.sync="equipmentList" :SupplierCertId="certId+''"
|
|
|
- :SupplierTypeCode="classId" :canadd="add_flat" height="360px" style="margin-top: 20px"></equipment-list>
|
|
|
+ <equipment-list
|
|
|
+ ref="equipmentList"
|
|
|
+ :data.sync="equipmentList"
|
|
|
+ :SupplierCertId="certId+''"
|
|
|
+ :SupplierTypeCode="classId"
|
|
|
+ :canadd="add_flat"
|
|
|
+ height="360px"
|
|
|
+ style="margin-top: 20px"
|
|
|
+ ></equipment-list>
|
|
|
</el-card>
|
|
|
|
|
|
<el-card class="box-card" style="margin-top: 10px;">
|
|
|
<div slot="header" class="clearfix">
|
|
|
<span>近三年主要工程业绩</span>
|
|
|
- <el-button style="float: right; padding: 3px 0" type="text" @click="performancedialog"
|
|
|
- v-if="formDataCert.Status == 0">添加</el-button>
|
|
|
+ <el-button
|
|
|
+ style="float: right; padding: 3px 0"
|
|
|
+ type="text"
|
|
|
+ @click="performancedialog"
|
|
|
+ v-if="formDataCert.Status == 0"
|
|
|
+ >添加</el-button>
|
|
|
</div>
|
|
|
- <performance-list ref="performanceList" :data.sync="performanceList" :SupplierCertId="certId+''"
|
|
|
- :SupplierTypeCode="classId" :canadd="add_flat" style="margin-top: 20px"></performance-list>
|
|
|
+ <performance-list
|
|
|
+ ref="performanceList"
|
|
|
+ :data.sync="performanceList"
|
|
|
+ :SupplierCertId="certId+''"
|
|
|
+ :SupplierTypeCode="classId"
|
|
|
+ :canadd="add_flat"
|
|
|
+ style="margin-top: 20px"
|
|
|
+ ></performance-list>
|
|
|
</el-card>
|
|
|
|
|
|
<el-card class="box-card" style="margin-top: 10px;">
|
|
|
<div slot="header" class="clearfix">
|
|
|
<span>拥有专利、专有技术及工法</span>
|
|
|
- <el-button style="float: right; padding: 3px 0" type="text" @click="patentdialog"
|
|
|
- v-if="formDataCert.Status == 0">添加</el-button>
|
|
|
+ <el-button
|
|
|
+ style="float: right; padding: 3px 0"
|
|
|
+ type="text"
|
|
|
+ @click="patentdialog"
|
|
|
+ v-if="formDataCert.Status == 0"
|
|
|
+ >添加</el-button>
|
|
|
</div>
|
|
|
- <patent-list ref="patentList" :data.sync="patentList" :SupplierCertId="certId+''"
|
|
|
- :SupplierTypeCode="classId" :canadd="add_flat" height="360px" style="margin-top: 20px">
|
|
|
- </patent-list>
|
|
|
+ <patent-list
|
|
|
+ ref="patentList"
|
|
|
+ :data.sync="patentList"
|
|
|
+ :SupplierCertId="certId+''"
|
|
|
+ :SupplierTypeCode="classId"
|
|
|
+ :canadd="add_flat"
|
|
|
+ height="360px"
|
|
|
+ style="margin-top: 20px"
|
|
|
+ ></patent-list>
|
|
|
</el-card>
|
|
|
|
|
|
<el-card class="box-card" style="margin-top: 10px;">
|
|
|
<div slot="header" class="clearfix">
|
|
|
<span>近三年获得省部级及以上主要技术、管理成果、获奖项目</span>
|
|
|
- <el-button style="float: right; padding: 3px 0" type="text" @click="winningdialog"
|
|
|
- v-if="formDataCert.Status == 0">添加</el-button>
|
|
|
+ <el-button
|
|
|
+ style="float: right; padding: 3px 0"
|
|
|
+ type="text"
|
|
|
+ @click="winningdialog"
|
|
|
+ v-if="formDataCert.Status == 0"
|
|
|
+ >添加</el-button>
|
|
|
</div>
|
|
|
- <winning-list ref="winningList" :data.sync="winningList" :SupplierCertId="certId+''"
|
|
|
- :SupplierTypeCode="classId" :canadd="add_flat" height="360px" style="margin-top: 20px">
|
|
|
- </winning-list>
|
|
|
+ <winning-list
|
|
|
+ ref="winningList"
|
|
|
+ :data.sync="winningList"
|
|
|
+ :SupplierCertId="certId+''"
|
|
|
+ :SupplierTypeCode="classId"
|
|
|
+ :canadd="add_flat"
|
|
|
+ height="360px"
|
|
|
+ style="margin-top: 20px"
|
|
|
+ ></winning-list>
|
|
|
</el-card>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
<el-tab-pane label="准入范围" :disabled="!certId">
|
|
|
- <goods-list ref="goodsList" :data.sync="goodsList" @close="getbuslist" :canadd="add_flat" height="360px"
|
|
|
- style="margin-top: 20px"></goods-list>
|
|
|
+ <goods-list
|
|
|
+ ref="goodsList"
|
|
|
+ :data.sync="goodsList"
|
|
|
+ @close="getbuslist"
|
|
|
+ :canadd="add_flat"
|
|
|
+ height="360px"
|
|
|
+ style="margin-top: 20px"
|
|
|
+ ></goods-list>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="企业资质" :disabled="!certId">
|
|
|
- <subfile-list ref="subfileList" :data.sync="subfileList" :canadd="add_flat" :flag="flag" @close="selectAuditOrg"
|
|
|
- height="360px" style="margin-top: 20px"></subfile-list>
|
|
|
+ <subfile-list
|
|
|
+ ref="subfileList"
|
|
|
+ :data.sync="subfileList"
|
|
|
+ :canadd="add_flat"
|
|
|
+ :flag="flag"
|
|
|
+ @close="selectAuditOrg"
|
|
|
+ height="360px"
|
|
|
+ style="margin-top: 20px"
|
|
|
+ ></subfile-list>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
<el-tab-pane label="审批流程" v-if="formDataCert.Status > 0">
|
|
|
@@ -207,7 +330,7 @@
|
|
|
<el-button type="primary" size="mini" :disabled="formDataCert.Status > 0" :loading="applyLoading"
|
|
|
@click="AuditEntity">提交审批
|
|
|
</el-button>
|
|
|
- </span> -->
|
|
|
+ </span>-->
|
|
|
</div>
|
|
|
<wf-history ref="WfHistory" :entryinfo="entrydetail"></wf-history>
|
|
|
</el-card>
|
|
|
@@ -222,11 +345,10 @@
|
|
|
</el-card>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
- <el-tab-pane label="供方缴费" v-if="formDataCert.Status == 5">
|
|
|
- </el-tab-pane>
|
|
|
+ <el-tab-pane label="供方缴费" v-if="formDataCert.Status == 5"></el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</el-card>
|
|
|
- <el-dialog title="提交初审" :visible.sync="dialogVisible" width="520px">
|
|
|
+ <el-dialog title="提交初审" :visible.sync="dialogVisible" width="520px">
|
|
|
<el-form ref="searchForm" label-width="70px">
|
|
|
<el-row>
|
|
|
<!--<el-col :span="24">
|
|
|
@@ -250,8 +372,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="说明">
|
|
|
- <el-input v-model="auditform.AuditRemark" type="textarea" placeholder="请输入说明内容">
|
|
|
- </el-input>
|
|
|
+ <el-input v-model="auditform.AuditRemark" type="textarea" placeholder="请输入说明内容"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
@@ -262,632 +383,710 @@
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
|
|
|
- <choose-auditor ref="chooseAuditor" @close="setAuditer" @hideChooseAuditer="chooseAuditorVisible=false"
|
|
|
- :visible="chooseAuditorVisible"></choose-auditor>
|
|
|
+ <choose-auditor
|
|
|
+ ref="chooseAuditor"
|
|
|
+ @close="setAuditer"
|
|
|
+ @hideChooseAuditer="chooseAuditorVisible=false"
|
|
|
+ :visible="chooseAuditorVisible"
|
|
|
+ ></choose-auditor>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import {
|
|
|
- mapGetters
|
|
|
- } from 'vuex'
|
|
|
- import api from '@/api/oilsupplier/supplier'
|
|
|
- import apiCert from '@/api/oilsupplier/suppliercert'
|
|
|
- import SupplierFileTable from '@/pages/oilsupplier/supplierfile/table.vue'
|
|
|
- import WfHistory from '@/components/workflow/wfhistory.vue'
|
|
|
- import WfBackHistory from '@/components/workflow/wfbackhistory.vue'
|
|
|
- import SupplierCertEdit from '@/components/oilsupplier/suppliercertedit.vue'
|
|
|
-
|
|
|
- import EquipmentList from '@/components/oilsupplier/equipmentlist'
|
|
|
- import PerformanceList from '@/components/oilsupplier/performancelist'
|
|
|
- import PatentList from '@/components/oilsupplier/patentlist'
|
|
|
- import WinningList from '@/components/oilsupplier/winninglist'
|
|
|
- import GoodsList from '@/components/oilsupplier/goodslist'
|
|
|
- import SubfileList from '@/components/oilsupplier/subfilelist'
|
|
|
- import GoodsInfo from '@/components/oilsupplier/goodsinfo'
|
|
|
-
|
|
|
- import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
|
|
|
-
|
|
|
- export default {
|
|
|
-
|
|
|
- components: {
|
|
|
+import { mapGetters } from "vuex";
|
|
|
+import api from "@/api/oilsupplier/supplier";
|
|
|
+import apiCert from "@/api/oilsupplier/suppliercert";
|
|
|
+import SupplierFileTable from "@/pages/oilsupplier/supplierfile/table.vue";
|
|
|
+import WfHistory from "@/components/workflow/wfhistory.vue";
|
|
|
+import WfBackHistory from "@/components/workflow/wfbackhistory.vue";
|
|
|
+import SupplierCertEdit from "@/components/oilsupplier/suppliercertedit.vue";
|
|
|
+
|
|
|
+import EquipmentList from "@/components/oilsupplier/equipmentlist";
|
|
|
+import PerformanceList from "@/components/oilsupplier/performancelist";
|
|
|
+import PatentList from "@/components/oilsupplier/patentlist";
|
|
|
+import WinningList from "@/components/oilsupplier/winninglist";
|
|
|
+import GoodsList from "@/components/oilsupplier/goodslist";
|
|
|
+import SubfileList from "@/components/oilsupplier/subfilelist";
|
|
|
+import GoodsInfo from "@/components/oilsupplier/goodsinfo";
|
|
|
+
|
|
|
+import ChooseAuditor from "@/components/oilsupplier/chooseauditor";
|
|
|
+
|
|
|
+export default {
|
|
|
+ components: {
|
|
|
+ chooseAuditorVisible: false,
|
|
|
+ SupplierFileTable,
|
|
|
+ WfHistory,
|
|
|
+ WfBackHistory,
|
|
|
+ SupplierCertEdit,
|
|
|
+
|
|
|
+ EquipmentList, // 企业主要装备情况
|
|
|
+ PerformanceList, // 近三年主要工程业绩列表
|
|
|
+ PatentList, // 拥有专利、专有技术及工法列表
|
|
|
+ WinningList, // 近三年获得省部级及以上主要技术、管理成果、获奖项目列表
|
|
|
+ GoodsList, // 选择准入范围
|
|
|
+ SubfileList, // 选择企业资质
|
|
|
+ GoodsInfo,
|
|
|
+
|
|
|
+ ChooseAuditor
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapGetters({
|
|
|
+ authUser: "authUser"
|
|
|
+ })
|
|
|
+ },
|
|
|
+ name: "goodsEdit",
|
|
|
+
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ activeName: "0",
|
|
|
chooseAuditorVisible: false,
|
|
|
- SupplierFileTable,
|
|
|
- WfHistory,
|
|
|
- WfBackHistory,
|
|
|
- SupplierCertEdit,
|
|
|
-
|
|
|
- EquipmentList, // 企业主要装备情况
|
|
|
- PerformanceList, // 近三年主要工程业绩列表
|
|
|
- PatentList, // 拥有专利、专有技术及工法列表
|
|
|
- WinningList, // 近三年获得省部级及以上主要技术、管理成果、获奖项目列表
|
|
|
- GoodsList, // 选择准入范围
|
|
|
- SubfileList, // 选择企业资质
|
|
|
- GoodsInfo,
|
|
|
-
|
|
|
- ChooseAuditor
|
|
|
- },
|
|
|
- computed: {
|
|
|
- ...mapGetters({
|
|
|
- authUser: 'authUser'
|
|
|
- })
|
|
|
- },
|
|
|
- name: 'goodsEdit',
|
|
|
-
|
|
|
- data() {
|
|
|
- return {
|
|
|
- activeName: '0',
|
|
|
- chooseAuditorVisible: false,
|
|
|
- showReturn: 1,
|
|
|
- IsCompanyUser: 0,
|
|
|
- dialogVisible: false,
|
|
|
- canUpdateSupplier: true,
|
|
|
- dictData: null,
|
|
|
- applyLoading: false,
|
|
|
- equipmentList: [], // 企业主要装备情况
|
|
|
- performanceList: [], // 近三年主要工程业绩
|
|
|
- patentList: [], // 拥有专利、专有技术及工法
|
|
|
- winningList: [], // 近三年获得省部级及以上主要技术、管理成果、获奖项目
|
|
|
- goodsList: [], // 准入业务
|
|
|
- subfileList: [], // 资质
|
|
|
- organizeOption: [], // 审批部门
|
|
|
- auditerOption: [], // 审批人
|
|
|
- orgtreelist: [],
|
|
|
- secOrganize: [],
|
|
|
- auditer: '',
|
|
|
- auditerName: '',
|
|
|
- serviceId: '',
|
|
|
- certId: '',
|
|
|
- classId: '01',
|
|
|
- FirstAudit: '',
|
|
|
- auditform: {
|
|
|
- FirstAuditName: '',
|
|
|
- CertId: '',
|
|
|
- AuditRemark: ''
|
|
|
- },
|
|
|
- orgtreeprops: {
|
|
|
- value: 'id',
|
|
|
- label: 'Fullname',
|
|
|
- children: 'children'
|
|
|
- },
|
|
|
- formData: {
|
|
|
- Id: '',
|
|
|
- SupplierName: '',
|
|
|
- OilCertificateNo: '',
|
|
|
- Grade: '',
|
|
|
- MgrUnit: '',
|
|
|
- OperType: '',
|
|
|
- Country: '中国',
|
|
|
- MaunAgent: '',
|
|
|
- ConstructTeam: '',
|
|
|
- CommercialNo: '',
|
|
|
- OrganCode: '',
|
|
|
- CountryTaxNo: '',
|
|
|
- LocalTaxNo: '',
|
|
|
- Address: '',
|
|
|
- Province: '',
|
|
|
- City: '',
|
|
|
- Street: '',
|
|
|
- HouseNo: '',
|
|
|
- ZipCode: '',
|
|
|
- LinkAddress: '',
|
|
|
- LinkProvince: '',
|
|
|
- LinkCity: '',
|
|
|
- LinkStreet: '',
|
|
|
- LinkHouseNo: '',
|
|
|
- LinkZipCode: '',
|
|
|
- QualitySystemCert: '',
|
|
|
- ProductQualityCert: '',
|
|
|
- MaunLicense: '',
|
|
|
- QualifCert: '',
|
|
|
- QualifCertLevel: '',
|
|
|
- SafetyLicense: '',
|
|
|
- TechServiceLic: '',
|
|
|
- TJInNotify: '',
|
|
|
- SpecIndustryCert: '',
|
|
|
- BusinessScope: '',
|
|
|
- LegalPerson: '',
|
|
|
- CategoryCode: '',
|
|
|
- CategoryName: '',
|
|
|
- RegCapital: '',
|
|
|
- Currency: '',
|
|
|
- ContactName: '',
|
|
|
- CompanyType: '',
|
|
|
- SetupTime: null,
|
|
|
- DepositBank: '',
|
|
|
- BankAccount: '',
|
|
|
- EMail: '',
|
|
|
- BankCreditRating: '',
|
|
|
- Mobile: '',
|
|
|
- Telphone: '',
|
|
|
- Fax: '',
|
|
|
- CompanyTel: '',
|
|
|
- QQ: '',
|
|
|
- CompanyUrl: '',
|
|
|
- SpecSupplier: '',
|
|
|
- SpecTypeCode: '1',
|
|
|
- SpecTypeName: '',
|
|
|
- WorkerTotal: 0,
|
|
|
- ContractNum: 0,
|
|
|
- UniversityNum: 0,
|
|
|
- TechnicalNum: 0,
|
|
|
- AboveProfNum: 0,
|
|
|
- MiddleProfNum: 0,
|
|
|
- NationalRegNum: 0,
|
|
|
- NationalCertTotal: 0,
|
|
|
- DesignerTotal: 0,
|
|
|
- SkillerTotal: 0,
|
|
|
- Remark: '',
|
|
|
- IsDelete: '',
|
|
|
- CreateOn: '',
|
|
|
- CreateUserId: '',
|
|
|
- CreateBy: '',
|
|
|
- ModifiedOn: '',
|
|
|
- ModifiedUserId: '',
|
|
|
- ModifiedBy: '',
|
|
|
- CertId: 0,
|
|
|
- SupplierTypeCode: '01',
|
|
|
- SupplierTypeName: '物资类',
|
|
|
- Step: 0,
|
|
|
- HseTraining: 0,
|
|
|
- AuditIndex: 0
|
|
|
- },
|
|
|
-
|
|
|
- formDataCert: {
|
|
|
- WorkerTotal: 0,
|
|
|
- ContractNum: 0,
|
|
|
- UniversityNum: 0,
|
|
|
- TechnicalNum: 0,
|
|
|
- AboveProfNum: 0,
|
|
|
- MiddleProfNum: 0,
|
|
|
- NationalRegNum: 0,
|
|
|
- NationalCertTotal: 0,
|
|
|
- DesignerTotal: 0,
|
|
|
- SkillerTotal: 0,
|
|
|
- Status: 0
|
|
|
- },
|
|
|
- add_flat: true,
|
|
|
- entrydetail: {
|
|
|
- process: 'oil_supplier_apply_1',
|
|
|
- business: '',
|
|
|
- instance: ''
|
|
|
- },
|
|
|
- backhistroy: {
|
|
|
- certId: '',
|
|
|
- classId: '03',
|
|
|
- workflowId: ''
|
|
|
- },
|
|
|
- flag:'01'
|
|
|
- }
|
|
|
- },
|
|
|
+ showReturn: 1,
|
|
|
+ IsCompanyUser: 0,
|
|
|
+ dialogVisible: false,
|
|
|
+ canUpdateSupplier: true,
|
|
|
+ dictData: null,
|
|
|
+ applyLoading: false,
|
|
|
+ equipmentList: [], // 企业主要装备情况
|
|
|
+ performanceList: [], // 近三年主要工程业绩
|
|
|
+ patentList: [], // 拥有专利、专有技术及工法
|
|
|
+ winningList: [], // 近三年获得省部级及以上主要技术、管理成果、获奖项目
|
|
|
+ goodsList: [], // 准入业务
|
|
|
+ subfileList: [], // 资质
|
|
|
+ organizeOption: [], // 审批部门
|
|
|
+ auditerOption: [], // 审批人
|
|
|
+ orgtreelist: [],
|
|
|
+ secOrganize: [],
|
|
|
+ auditer: "",
|
|
|
+ auditerName: "",
|
|
|
+ serviceId: "",
|
|
|
+ certId: "",
|
|
|
+ classId: "01",
|
|
|
+ FirstAudit: "",
|
|
|
+ auditform: {
|
|
|
+ FirstAuditName: "",
|
|
|
+ CertId: "",
|
|
|
+ AuditRemark: ""
|
|
|
+ },
|
|
|
+ orgtreeprops: {
|
|
|
+ value: "id",
|
|
|
+ label: "Fullname",
|
|
|
+ children: "children"
|
|
|
+ },
|
|
|
+ formData: {
|
|
|
+ Id: "",
|
|
|
+ SupplierName: "",
|
|
|
+ OilCertificateNo: "",
|
|
|
+ Grade: "",
|
|
|
+ MgrUnit: "",
|
|
|
+ OperType: "",
|
|
|
+ Country: "中国",
|
|
|
+ MaunAgent: "",
|
|
|
+ ConstructTeam: "",
|
|
|
+ CommercialNo: "",
|
|
|
+ OrganCode: "",
|
|
|
+ CountryTaxNo: "",
|
|
|
+ LocalTaxNo: "",
|
|
|
+ Address: "",
|
|
|
+ Province: "",
|
|
|
+ City: "",
|
|
|
+ Street: "",
|
|
|
+ HouseNo: "",
|
|
|
+ ZipCode: "",
|
|
|
+ LinkAddress: "",
|
|
|
+ LinkProvince: "",
|
|
|
+ LinkCity: "",
|
|
|
+ LinkStreet: "",
|
|
|
+ LinkHouseNo: "",
|
|
|
+ LinkZipCode: "",
|
|
|
+ QualitySystemCert: "",
|
|
|
+ ProductQualityCert: "",
|
|
|
+ MaunLicense: "",
|
|
|
+ QualifCert: "",
|
|
|
+ QualifCertLevel: "",
|
|
|
+ SafetyLicense: "",
|
|
|
+ TechServiceLic: "",
|
|
|
+ TJInNotify: "",
|
|
|
+ SpecIndustryCert: "",
|
|
|
+ BusinessScope: "",
|
|
|
+ LegalPerson: "",
|
|
|
+ CategoryCode: "",
|
|
|
+ CategoryName: "",
|
|
|
+ RegCapital: "",
|
|
|
+ Currency: "",
|
|
|
+ ContactName: "",
|
|
|
+ CompanyType: "",
|
|
|
+ SetupTime: null,
|
|
|
+ DepositBank: "",
|
|
|
+ BankAccount: "",
|
|
|
+ EMail: "",
|
|
|
+ BankCreditRating: "",
|
|
|
+ Mobile: "",
|
|
|
+ Telphone: "",
|
|
|
+ Fax: "",
|
|
|
+ CompanyTel: "",
|
|
|
+ QQ: "",
|
|
|
+ CompanyUrl: "",
|
|
|
+ SpecSupplier: "",
|
|
|
+ SpecTypeCode: "1",
|
|
|
+ SpecTypeName: "",
|
|
|
+ WorkerTotal: 0,
|
|
|
+ ContractNum: 0,
|
|
|
+ UniversityNum: 0,
|
|
|
+ TechnicalNum: 0,
|
|
|
+ AboveProfNum: 0,
|
|
|
+ MiddleProfNum: 0,
|
|
|
+ NationalRegNum: 0,
|
|
|
+ NationalCertTotal: 0,
|
|
|
+ DesignerTotal: 0,
|
|
|
+ SkillerTotal: 0,
|
|
|
+ Remark: "",
|
|
|
+ IsDelete: "",
|
|
|
+ CreateOn: "",
|
|
|
+ CreateUserId: "",
|
|
|
+ CreateBy: "",
|
|
|
+ ModifiedOn: "",
|
|
|
+ ModifiedUserId: "",
|
|
|
+ ModifiedBy: "",
|
|
|
+ CertId: 0,
|
|
|
+ SupplierTypeCode: "01",
|
|
|
+ SupplierTypeName: "物资类",
|
|
|
+ Step: 0,
|
|
|
+ HseTraining: 0,
|
|
|
+ AuditIndex: 0
|
|
|
+ },
|
|
|
|
|
|
- mounted() {
|
|
|
- this.serviceId = this.$route.params.opera + ''
|
|
|
- if (this.$route.query.rtn) {
|
|
|
- this.showReturn = 0
|
|
|
- }
|
|
|
- if (this.$route.query.certid) {
|
|
|
- this.certId = this.$route.query.certid + ''
|
|
|
- }
|
|
|
- if (this.serviceId !== 'add' && this.serviceId > 0) {
|
|
|
- this.formData.Id = this.serviceId
|
|
|
- } else {
|
|
|
- this.formData.Id = 0
|
|
|
- }
|
|
|
- this.getDictOptions()
|
|
|
- this.getorgtreelist()
|
|
|
- this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
|
|
|
-
|
|
|
- if (this.IsCompanyUser && this.serviceId === 'add') {
|
|
|
- apiCert.getEntityByCreatorAndType('01', this.$axios).then(res => {
|
|
|
- this.certId = res.data.Id
|
|
|
- this.serviceId = res.data.SupplierId
|
|
|
- this.formData.Id = res.data.SupplierId
|
|
|
- this.initDatas()
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
+ formDataCert: {
|
|
|
+ WorkerTotal: 0,
|
|
|
+ ContractNum: 0,
|
|
|
+ UniversityNum: 0,
|
|
|
+ TechnicalNum: 0,
|
|
|
+ AboveProfNum: 0,
|
|
|
+ MiddleProfNum: 0,
|
|
|
+ NationalRegNum: 0,
|
|
|
+ NationalCertTotal: 0,
|
|
|
+ DesignerTotal: 0,
|
|
|
+ SkillerTotal: 0,
|
|
|
+ Status: 0
|
|
|
+ },
|
|
|
+ add_flat: true,
|
|
|
+ entrydetail: {
|
|
|
+ process: "oil_supplier_apply_1",
|
|
|
+ business: "",
|
|
|
+ instance: ""
|
|
|
+ },
|
|
|
+ backhistroy: {
|
|
|
+ certId: "",
|
|
|
+ classId: "03",
|
|
|
+ workflowId: ""
|
|
|
+ },
|
|
|
+ flag: "01"
|
|
|
+ };
|
|
|
+ },
|
|
|
+
|
|
|
+ mounted() {
|
|
|
+ this.serviceId = this.$route.params.opera + "";
|
|
|
+ if (this.$route.query.rtn) {
|
|
|
+ this.showReturn = 0;
|
|
|
+ }
|
|
|
+ if (this.$route.query.certid) {
|
|
|
+ this.certId = this.$route.query.certid + "";
|
|
|
+ }
|
|
|
+ if (this.serviceId !== "add" && this.serviceId > 0) {
|
|
|
+ this.formData.Id = this.serviceId;
|
|
|
+ } else {
|
|
|
+ this.formData.Id = 0;
|
|
|
+ }
|
|
|
+ this.getDictOptions();
|
|
|
+ this.getorgtreelist();
|
|
|
+ this.IsCompanyUser = this.authUser.Profile.IsCompanyUser;
|
|
|
+
|
|
|
+ if (this.IsCompanyUser && this.serviceId === "add") {
|
|
|
+ apiCert
|
|
|
+ .getEntityByCreatorAndType("01", this.$axios)
|
|
|
+ .then(res => {
|
|
|
+ this.certId = res.data.Id;
|
|
|
+ this.serviceId = res.data.SupplierId;
|
|
|
+ this.formData.Id = res.data.SupplierId;
|
|
|
+ this.initDatas();
|
|
|
})
|
|
|
- } else {
|
|
|
- this.initDatas()
|
|
|
- }
|
|
|
- },
|
|
|
- methods: {
|
|
|
- inputCompany(val) {
|
|
|
- if (!this.certId) {
|
|
|
- api.getEntityByName(val, this.$axios).then(res => {
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.initDatas();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ inputCompany(val) {
|
|
|
+ if (!this.certId) {
|
|
|
+ api
|
|
|
+ .getEntityByName(val, this.$axios)
|
|
|
+ .then(res => {
|
|
|
if (res.data && res.data.Id) {
|
|
|
- this.SetFormData(res.data)
|
|
|
+ this.SetFormData(res.data);
|
|
|
}
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
})
|
|
|
- }
|
|
|
- },
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
- changeFormData(fdata) {
|
|
|
- if (!this.certId) {
|
|
|
- this.SetFormData(fdata)
|
|
|
- }
|
|
|
- },
|
|
|
- SetFormData(fdata) {
|
|
|
- this.isCanUpdateSupplier(fdata.Id)
|
|
|
- this.formData.Id = fdata.Id
|
|
|
- this.formData.SupplierName = fdata.SupplierName
|
|
|
- this.formData.OilCertificateNo = fdata.OilCertificateNo
|
|
|
- this.formData.Grade = fdata.Grade
|
|
|
- this.formData.MgrUnit = fdata.MgrUnit
|
|
|
- this.formData.OperType = fdata.OperType
|
|
|
- this.formData.Country = fdata.Country
|
|
|
- this.formData.MaunAgent = fdata.MaunAgent
|
|
|
- this.formData.ConstructTeam = fdata.ConstructTeam
|
|
|
- this.formData.CommercialNo = fdata.CommercialNo
|
|
|
- this.formData.OrganCode = fdata.OrganCode
|
|
|
- this.formData.CountryTaxNo = fdata.CountryTaxNo
|
|
|
- this.formData.LocalTaxNo = fdata.LocalTaxNo
|
|
|
- this.formData.Address = fdata.Address
|
|
|
- this.formData.Province = fdata.Province
|
|
|
- this.formData.City = fdata.City
|
|
|
- this.formData.Street = fdata.Street
|
|
|
- this.formData.HouseNo = fdata.HouseNo
|
|
|
- this.formData.ZipCode = fdata.ZipCode
|
|
|
- this.formData.LinkAddress = fdata.LinkAddress
|
|
|
- this.formData.LinkProvince = fdata.LinkProvince
|
|
|
- this.formData.LinkCity = fdata.LinkCity
|
|
|
- this.formData.LinkStreet = fdata.LinkStreet
|
|
|
- this.formData.LinkHouseNo = fdata.LinkHouseNo
|
|
|
- this.formData.LinkZipCode = fdata.LinkZipCode
|
|
|
- this.formData.LegalPerson = fdata.LegalPerson
|
|
|
- this.formData.CategoryCode = fdata.CategoryCode
|
|
|
- this.formData.CategoryName = fdata.CategoryName
|
|
|
- this.formData.RegCapital = fdata.RegCapital
|
|
|
- this.formData.Currency = fdata.Currency
|
|
|
- this.formData.ContactName = fdata.ContactName
|
|
|
- this.formData.CompanyType = fdata.CompanyType
|
|
|
- this.formData.SetupTime = fdata.SetupTime
|
|
|
- this.formData.DepositBank = fdata.DepositBank
|
|
|
- this.formData.BankAccount = fdata.BankAccount
|
|
|
- this.formData.EMail = fdata.EMail
|
|
|
- this.formData.BankCreditRating = fdata.BankCreditRating
|
|
|
- this.formData.Mobile = fdata.Mobile
|
|
|
- this.formData.Telphone = fdata.Telphone
|
|
|
- this.formData.Fax = fdata.Fax
|
|
|
- this.formData.CompanyTel = fdata.CompanyTel
|
|
|
- this.formData.QQ = fdata.QQ
|
|
|
- this.formData.CompanyUrl = fdata.CompanyUrl
|
|
|
- this.formData.HseTraining = fdata.HseTraining
|
|
|
- this.formData.SpecTypeCode = fdata.SpecTypeCode
|
|
|
-
|
|
|
- this.$refs['GoodsInfo'].CityAry = []
|
|
|
- this.$refs['GoodsInfo'].CityAry.push(this.formData.Province)
|
|
|
- this.$refs['GoodsInfo'].CityAry.push(this.formData.City)
|
|
|
- this.$refs['GoodsInfo'].CityAry.push(this.formData.Street)
|
|
|
- this.$refs['GoodsInfo'].LinkCityAry = []
|
|
|
- this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkProvince)
|
|
|
- this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkCity)
|
|
|
- this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkStreet)
|
|
|
- /* this.$refs['GoodsInfo'].UnitRelationAry = []
|
|
|
+ changeFormData(fdata) {
|
|
|
+ if (!this.certId) {
|
|
|
+ this.SetFormData(fdata);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ SetFormData(fdata) {
|
|
|
+ this.isCanUpdateSupplier(fdata.Id);
|
|
|
+ this.formData.Id = fdata.Id;
|
|
|
+ this.formData.SupplierName = fdata.SupplierName;
|
|
|
+ this.formData.OilCertificateNo = fdata.OilCertificateNo;
|
|
|
+ this.formData.Grade = fdata.Grade;
|
|
|
+ this.formData.MgrUnit = fdata.MgrUnit;
|
|
|
+ this.formData.OperType = fdata.OperType;
|
|
|
+ this.formData.Country = fdata.Country;
|
|
|
+ this.formData.MaunAgent = fdata.MaunAgent;
|
|
|
+ this.formData.ConstructTeam = fdata.ConstructTeam;
|
|
|
+ this.formData.CommercialNo = fdata.CommercialNo;
|
|
|
+ this.formData.OrganCode = fdata.OrganCode;
|
|
|
+ this.formData.CountryTaxNo = fdata.CountryTaxNo;
|
|
|
+ this.formData.LocalTaxNo = fdata.LocalTaxNo;
|
|
|
+ this.formData.Address = fdata.Address;
|
|
|
+ this.formData.Province = fdata.Province;
|
|
|
+ this.formData.City = fdata.City;
|
|
|
+ this.formData.Street = fdata.Street;
|
|
|
+ this.formData.HouseNo = fdata.HouseNo;
|
|
|
+ this.formData.ZipCode = fdata.ZipCode;
|
|
|
+ this.formData.LinkAddress = fdata.LinkAddress;
|
|
|
+ this.formData.LinkProvince = fdata.LinkProvince;
|
|
|
+ this.formData.LinkCity = fdata.LinkCity;
|
|
|
+ this.formData.LinkStreet = fdata.LinkStreet;
|
|
|
+ this.formData.LinkHouseNo = fdata.LinkHouseNo;
|
|
|
+ this.formData.LinkZipCode = fdata.LinkZipCode;
|
|
|
+ this.formData.LegalPerson = fdata.LegalPerson;
|
|
|
+ this.formData.CategoryCode = fdata.CategoryCode;
|
|
|
+ this.formData.CategoryName = fdata.CategoryName;
|
|
|
+ this.formData.RegCapital = fdata.RegCapital;
|
|
|
+ this.formData.Currency = fdata.Currency;
|
|
|
+ this.formData.ContactName = fdata.ContactName;
|
|
|
+ this.formData.CompanyType = fdata.CompanyType;
|
|
|
+ this.formData.SetupTime = fdata.SetupTime;
|
|
|
+ this.formData.DepositBank = fdata.DepositBank;
|
|
|
+ this.formData.BankAccount = fdata.BankAccount;
|
|
|
+ this.formData.EMail = fdata.EMail;
|
|
|
+ this.formData.BankCreditRating = fdata.BankCreditRating;
|
|
|
+ this.formData.Mobile = fdata.Mobile;
|
|
|
+ this.formData.Telphone = fdata.Telphone;
|
|
|
+ this.formData.Fax = fdata.Fax;
|
|
|
+ this.formData.CompanyTel = fdata.CompanyTel;
|
|
|
+ this.formData.QQ = fdata.QQ;
|
|
|
+ this.formData.CompanyUrl = fdata.CompanyUrl;
|
|
|
+ this.formData.HseTraining = fdata.HseTraining;
|
|
|
+ this.formData.SpecTypeCode = fdata.SpecTypeCode;
|
|
|
+
|
|
|
+ this.$refs["GoodsInfo"].CityAry = [];
|
|
|
+ this.$refs["GoodsInfo"].CityAry.push(this.formData.Province);
|
|
|
+ this.$refs["GoodsInfo"].CityAry.push(this.formData.City);
|
|
|
+ this.$refs["GoodsInfo"].CityAry.push(this.formData.Street);
|
|
|
+ this.$refs["GoodsInfo"].LinkCityAry = [];
|
|
|
+ this.$refs["GoodsInfo"].LinkCityAry.push(this.formData.LinkProvince);
|
|
|
+ this.$refs["GoodsInfo"].LinkCityAry.push(this.formData.LinkCity);
|
|
|
+ this.$refs["GoodsInfo"].LinkCityAry.push(this.formData.LinkStreet);
|
|
|
+ /* this.$refs['GoodsInfo'].UnitRelationAry = []
|
|
|
if (this.formData.SpecTypeCode.length > 0) {
|
|
|
this.$refs['GoodsInfo'].UnitRelationAry = this.formData.SpecTypeCode.split(',')
|
|
|
} */
|
|
|
- },
|
|
|
+ },
|
|
|
|
|
|
- isCanUpdateSupplier(supplierId) {
|
|
|
- api.isCanUpdateSupplier(supplierId, this.$axios).then(res => {
|
|
|
- this.canUpdateSupplier = (res.data.code === 0)
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
+ isCanUpdateSupplier(supplierId) {
|
|
|
+ api
|
|
|
+ .isCanUpdateSupplier(supplierId, this.$axios)
|
|
|
+ .then(res => {
|
|
|
+ this.canUpdateSupplier = res.data.code === 0;
|
|
|
})
|
|
|
- },
|
|
|
- equipmentdialog() {
|
|
|
- this.$refs['equipmentList'].showDialog()
|
|
|
- },
|
|
|
- performancedialog() {
|
|
|
- this.$refs['performanceList'].showDialog()
|
|
|
- },
|
|
|
- patentdialog() {
|
|
|
- this.$refs['patentList'].showDialog()
|
|
|
- },
|
|
|
- winningdialog() {
|
|
|
- this.$refs['winningList'].showDialog()
|
|
|
- },
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ equipmentdialog() {
|
|
|
+ this.$refs["equipmentList"].showDialog();
|
|
|
+ },
|
|
|
+ performancedialog() {
|
|
|
+ this.$refs["performanceList"].showDialog();
|
|
|
+ },
|
|
|
+ patentdialog() {
|
|
|
+ this.$refs["patentList"].showDialog();
|
|
|
+ },
|
|
|
+ winningdialog() {
|
|
|
+ this.$refs["winningList"].showDialog();
|
|
|
+ },
|
|
|
|
|
|
- initDatas() {
|
|
|
- this.isCanUpdateSupplier(this.formData.Id)
|
|
|
- if (this.formData.Id) {
|
|
|
- api.getEntityAndCert(this.certId, this.$axios).then(res => {
|
|
|
- this.formData = res.data
|
|
|
- this.formDataCert.WorkerTotal = this.formData.WorkerTotal
|
|
|
- this.formDataCert.ContractNum = this.formData.ContractNum
|
|
|
- this.formDataCert.UniversityNum = this.formData.UniversityNum
|
|
|
- this.formDataCert.TechnicalNum = this.formData.TechnicalNum
|
|
|
- this.formDataCert.AboveProfNum = this.formData.AboveProfNum
|
|
|
- this.formDataCert.MiddleProfNum = this.formData.MiddleProfNum
|
|
|
- this.formDataCert.NationalRegNum = this.formData.NationalRegNum
|
|
|
- this.formDataCert.NationalCertTotal = this.formData.NationalCertTotal
|
|
|
- this.formDataCert.DesignerTotal = this.formData.DesignerTotal
|
|
|
- this.formDataCert.SkillerTotal = this.formData.SkillerTotal
|
|
|
- this.formDataCert.Status = this.formData.Status
|
|
|
- this.formDataCert.WorkflowId = this.formData.WorkflowId
|
|
|
+ initDatas() {
|
|
|
+ this.isCanUpdateSupplier(this.formData.Id);
|
|
|
+ if (this.formData.Id) {
|
|
|
+ api
|
|
|
+ .getEntityAndCert(this.certId, this.$axios)
|
|
|
+ .then(res => {
|
|
|
+ this.formData = res.data;
|
|
|
+ this.formDataCert.WorkerTotal = this.formData.WorkerTotal;
|
|
|
+ this.formDataCert.ContractNum = this.formData.ContractNum;
|
|
|
+ this.formDataCert.UniversityNum = this.formData.UniversityNum;
|
|
|
+ this.formDataCert.TechnicalNum = this.formData.TechnicalNum;
|
|
|
+ this.formDataCert.AboveProfNum = this.formData.AboveProfNum;
|
|
|
+ this.formDataCert.MiddleProfNum = this.formData.MiddleProfNum;
|
|
|
+ this.formDataCert.NationalRegNum = this.formData.NationalRegNum;
|
|
|
+ this.formDataCert.NationalCertTotal = this.formData.NationalCertTotal;
|
|
|
+ this.formDataCert.DesignerTotal = this.formData.DesignerTotal;
|
|
|
+ this.formDataCert.SkillerTotal = this.formData.SkillerTotal;
|
|
|
+ this.formDataCert.Status = this.formData.Status;
|
|
|
+ this.formDataCert.WorkflowId = this.formData.WorkflowId;
|
|
|
if (this.formData.Status != 0) {
|
|
|
- this.add_flat = false
|
|
|
+ this.add_flat = false;
|
|
|
}
|
|
|
- this.$refs['GoodsInfo'].CityAry = []
|
|
|
- this.$refs['GoodsInfo'].CityAry.push(this.formData.Province)
|
|
|
- this.$refs['GoodsInfo'].CityAry.push(this.formData.City)
|
|
|
- this.$refs['GoodsInfo'].CityAry.push(this.formData.Street)
|
|
|
- this.$refs['GoodsInfo'].LinkCityAry = []
|
|
|
- this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkProvince)
|
|
|
- this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkCity)
|
|
|
- this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkStreet)
|
|
|
+ this.$refs["GoodsInfo"].CityAry = [];
|
|
|
+ this.$refs["GoodsInfo"].CityAry.push(this.formData.Province);
|
|
|
+ this.$refs["GoodsInfo"].CityAry.push(this.formData.City);
|
|
|
+ this.$refs["GoodsInfo"].CityAry.push(this.formData.Street);
|
|
|
+ this.$refs["GoodsInfo"].LinkCityAry = [];
|
|
|
+ this.$refs["GoodsInfo"].LinkCityAry.push(
|
|
|
+ this.formData.LinkProvince
|
|
|
+ );
|
|
|
+ this.$refs["GoodsInfo"].LinkCityAry.push(this.formData.LinkCity);
|
|
|
+ this.$refs["GoodsInfo"].LinkCityAry.push(this.formData.LinkStreet);
|
|
|
/* this.$refs['GoodsInfo'].UnitRelationAry = []
|
|
|
if (this.formData.SpecTypeCode.length > 0) {
|
|
|
this.$refs['GoodsInfo'].UnitRelationAry = this.formData.SpecTypeCode.split(',')
|
|
|
} */
|
|
|
|
|
|
- this.entrydetail.business = this.certId
|
|
|
- this.entrydetail.instance = this.formDataCert.WorkflowId
|
|
|
- this.backhistroy.certId = this.certId
|
|
|
- this.backhistroy.workflowId = this.formDataCert.WorkflowId
|
|
|
+ this.entrydetail.business = this.certId;
|
|
|
+ this.entrydetail.instance = this.formDataCert.WorkflowId;
|
|
|
+ this.backhistroy.certId = this.certId;
|
|
|
+ this.backhistroy.workflowId = this.formDataCert.WorkflowId;
|
|
|
if (this.certId && this.formDataCert.WorkflowId) {
|
|
|
//this.$refs['WfHistory'].getHistoryTask() /* 刷新工作流 */
|
|
|
}
|
|
|
- this.$refs['equipmentList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
- this.$refs['performanceList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
- this.$refs['patentList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
- this.$refs['winningList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
- this.$refs['goodsList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
- this.$refs['subfileList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
+ this.$refs["equipmentList"].getvalue(
|
|
|
+ this.formData.Id,
|
|
|
+ this.formData.SupplierTypeCode,
|
|
|
+ this.certId
|
|
|
+ );
|
|
|
+ this.$refs["performanceList"].getvalue(
|
|
|
+ this.formData.Id,
|
|
|
+ this.formData.SupplierTypeCode,
|
|
|
+ this.certId
|
|
|
+ );
|
|
|
+ this.$refs["patentList"].getvalue(
|
|
|
+ this.formData.Id,
|
|
|
+ this.formData.SupplierTypeCode,
|
|
|
+ this.certId
|
|
|
+ );
|
|
|
+ this.$refs["winningList"].getvalue(
|
|
|
+ this.formData.Id,
|
|
|
+ this.formData.SupplierTypeCode,
|
|
|
+ this.certId
|
|
|
+ );
|
|
|
+ this.$refs["goodsList"].getvalue(
|
|
|
+ this.formData.Id,
|
|
|
+ this.formData.SupplierTypeCode,
|
|
|
+ this.certId
|
|
|
+ );
|
|
|
+ this.$refs["subfileList"].getvalue(
|
|
|
+ this.formData.Id,
|
|
|
+ this.formData.SupplierTypeCode,
|
|
|
+ this.certId
|
|
|
+ );
|
|
|
})
|
|
|
- }
|
|
|
- },
|
|
|
- getbuslist() {
|
|
|
- this.$refs['subfileList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
- },
|
|
|
- nextTab () {
|
|
|
- let activeIdx = parseInt(this.activeName)
|
|
|
- if (activeIdx < 4) {
|
|
|
- this.activeName = (activeIdx + 1) + ''
|
|
|
- } else {
|
|
|
- this.activeName = '1'
|
|
|
- }
|
|
|
- },
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getbuslist() {
|
|
|
+ this.$refs["subfileList"].getvalue(
|
|
|
+ this.formData.Id,
|
|
|
+ this.formData.SupplierTypeCode,
|
|
|
+ this.certId
|
|
|
+ );
|
|
|
+ },
|
|
|
+ nextTab() {
|
|
|
+ let activeIdx = parseInt(this.activeName);
|
|
|
+ if (activeIdx < 4) {
|
|
|
+ this.activeName = activeIdx + 1 + "";
|
|
|
+ } else {
|
|
|
+ this.activeName = "1";
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
- getDictOptions() {
|
|
|
- api.getDictList(this.$axios).then(res => {
|
|
|
- this.dictData = res.data.items
|
|
|
- this.organizeOption = res.data.items['Organizes']
|
|
|
+ getDictOptions() {
|
|
|
+ api
|
|
|
+ .getDictList(this.$axios)
|
|
|
+ .then(res => {
|
|
|
+ this.dictData = res.data.items;
|
|
|
+ this.organizeOption = res.data.items["Organizes"];
|
|
|
/* this.UnitRelationOptions = res.data.items['UnitRelation']
|
|
|
this.getCityList(res.data.items['GaodeMapChinaAreas'])
|
|
|
this.CompanyTypeOptions = res.data.items['CompanyType'] */
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
})
|
|
|
- },
|
|
|
- getorgtreelist() {
|
|
|
- let _this = this
|
|
|
- let params = {
|
|
|
- IsInnerOrganize: 1
|
|
|
- }
|
|
|
- _this.$axios.get('organizes/orgalllist', {
|
|
|
- params
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- _this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
|
|
|
- if (_this.authUser.Profile.IsCompanyUser === 0) {
|
|
|
- this.secOrganize = _this.authUser.Profile.Superior.split(',').map((val) => {
|
|
|
- return parseInt(val)
|
|
|
- })
|
|
|
- this.auditOrgChang(this.secOrganize)
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ getorgtreelist() {
|
|
|
+ let _this = this;
|
|
|
+ let params = {
|
|
|
+ IsInnerOrganize: 1
|
|
|
+ };
|
|
|
+ _this.$axios
|
|
|
+ .get("organizes/orgalllist", {
|
|
|
+ params
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ _this.orgtreelist = window.toolfun_gettreejson(
|
|
|
+ res.data.items,
|
|
|
+ "Id",
|
|
|
+ "Parentid",
|
|
|
+ "Id,Fullname"
|
|
|
+ );
|
|
|
+ if (_this.authUser.Profile.IsCompanyUser === 0) {
|
|
|
+ this.secOrganize = _this.authUser.Profile.Superior.split(",").map(
|
|
|
+ val => {
|
|
|
+ return parseInt(val);
|
|
|
+ }
|
|
|
+ );
|
|
|
+ this.auditOrgChang(this.secOrganize);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
|
|
|
- auditOrgChang(val) {
|
|
|
- let deptid = val[val.length - 1]
|
|
|
- this.auditerOption = []
|
|
|
- this.auditer = ''
|
|
|
- let auditstepcode = 'FIRST_TRIAL'
|
|
|
- api.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
|
|
|
- this.auditerOption = res.data.item
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
+ auditOrgChang(val) {
|
|
|
+ let deptid = val[val.length - 1];
|
|
|
+ this.auditerOption = [];
|
|
|
+ this.auditer = "";
|
|
|
+ let auditstepcode = "FIRST_TRIAL";
|
|
|
+ api
|
|
|
+ .getAuditerByDept(deptid, auditstepcode, this.$axios)
|
|
|
+ .then(res => {
|
|
|
+ this.auditerOption = res.data.item;
|
|
|
})
|
|
|
- },
|
|
|
- /* getCityList(val) {
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /* getCityList(val) {
|
|
|
let resultData = JSON.parse(val)
|
|
|
let countstr = JSON.stringify(resultData.districts[0].districts)
|
|
|
countstr = countstr.replace(/\,\"districts\"\:\[\]/g, '')
|
|
|
this.countryoptions = JSON.parse(countstr)
|
|
|
}, */
|
|
|
|
|
|
- // 保存信息
|
|
|
- saveEntity() {
|
|
|
- this.$refs['GoodsInfo'].$refs['EntityForm'].validate((valid) => {
|
|
|
- if (valid) {
|
|
|
- if (!this.formData.SetupTime) {
|
|
|
- this.formData.SetupTime = null
|
|
|
- } else {
|
|
|
- this.formData.SetupTime = new Date(this.formData.SetupTime)
|
|
|
- }
|
|
|
- // this.formData.WellNo = this.$refs.selectWellNo.selectedLabel + '';
|
|
|
- if (!this.formData.Id || !this.certId) {
|
|
|
- this.addEntity()
|
|
|
- } else {
|
|
|
- this.updateEntity()
|
|
|
- }
|
|
|
+ // 保存信息
|
|
|
+ saveEntity() {
|
|
|
+ console.log(this.formData);
|
|
|
+
|
|
|
+ this.$refs["GoodsInfo"].$refs["EntityForm"].validate(valid => {
|
|
|
+ this.$refs["GoodsInfo"].$refs["EntityFormCert"].validate(vvalid => {
|
|
|
+ if (valid&&vvalid) {
|
|
|
+ if (!this.formData.SetupTime) {
|
|
|
+ this.formData.SetupTime = null;
|
|
|
+ } else {
|
|
|
+ this.formData.SetupTime = new Date(this.formData.SetupTime);
|
|
|
+ }
|
|
|
+ // this.formData.WellNo = this.$refs.selectWellNo.selectedLabel + '';
|
|
|
+ if (!this.formData.Id || !this.certId) {
|
|
|
+ this.addEntity();
|
|
|
} else {
|
|
|
- return false
|
|
|
+ this.updateEntity();
|
|
|
}
|
|
|
+ } else {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
})
|
|
|
- },
|
|
|
+
|
|
|
+ });
|
|
|
+ },
|
|
|
|
|
|
- // 保存信息
|
|
|
- saveCertEntity() {
|
|
|
- this.$refs['SupplierCertEditCompoment'].saveEntity()
|
|
|
- },
|
|
|
+ // 保存信息
|
|
|
+ saveCertEntity() {
|
|
|
+ this.$refs["SupplierCertEditCompoment"].saveEntity();
|
|
|
+ },
|
|
|
|
|
|
- addEntity() {
|
|
|
- this.formData.SupplierTypeCode = '01'
|
|
|
- this.formData.SupplierTypeName = '物资类'
|
|
|
- api.addEntity(this.formData, this.$axios).then(res => {
|
|
|
+ addEntity() {
|
|
|
+ this.formData.SupplierTypeCode = "01";
|
|
|
+ this.formData.SupplierTypeName = "物资类";
|
|
|
+ api
|
|
|
+ .addEntity(this.formData, this.$axios)
|
|
|
+ .then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
// 保存成功后,初始化数据,变成修改
|
|
|
- this.formData.Id = res.data.item.split('_')[0]
|
|
|
- this.certId = res.data.item.split('_')[1]
|
|
|
- this.initDatas()
|
|
|
+ this.formData.Id = res.data.item.split("_")[0];
|
|
|
+ this.certId = res.data.item.split("_")[1];
|
|
|
+ this.initDatas();
|
|
|
this.$message({
|
|
|
- type: 'success',
|
|
|
+ type: "success",
|
|
|
message: res.data.message
|
|
|
- })
|
|
|
+ });
|
|
|
} else {
|
|
|
this.$message({
|
|
|
- type: 'warning',
|
|
|
+ type: "warning",
|
|
|
message: res.data.message
|
|
|
- })
|
|
|
+ });
|
|
|
}
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
})
|
|
|
- },
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
|
|
|
- updateEntity() {
|
|
|
- api.updateEntity(this.formData.Id, this.formData, this.$axios).then(res => {
|
|
|
+ updateEntity() {
|
|
|
+ api
|
|
|
+ .updateEntity(this.formData.Id, this.formData, this.$axios)
|
|
|
+ .then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
// 保存成功后,初始化数据,变成修改
|
|
|
- this.initDatas()
|
|
|
+ this.initDatas();
|
|
|
this.$message({
|
|
|
- type: 'success',
|
|
|
+ type: "success",
|
|
|
message: res.data.message
|
|
|
- })
|
|
|
+ });
|
|
|
} else {
|
|
|
this.$message({
|
|
|
- type: 'warning',
|
|
|
+ type: "warning",
|
|
|
message: res.data.message
|
|
|
- })
|
|
|
+ });
|
|
|
}
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
})
|
|
|
- },
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
|
|
|
- CheckCompanyBase() {
|
|
|
- if (!this.formData.Id) {
|
|
|
- this.$message({
|
|
|
- type: 'error',
|
|
|
- message: '无法保存,请先填写企业基本信息'
|
|
|
- })
|
|
|
- return false
|
|
|
- }
|
|
|
- if (!this.certId) {
|
|
|
- this.$message({
|
|
|
- type: 'error',
|
|
|
- message: '准入类别不清晰,无法保存!'
|
|
|
- })
|
|
|
- return false
|
|
|
- }
|
|
|
- return true
|
|
|
- },
|
|
|
- // 企业人员结构情况
|
|
|
- updateNumberEntity() {
|
|
|
- if (!this.CheckCompanyBase()) {
|
|
|
- return false
|
|
|
- }
|
|
|
- api.updateNumberEntity(this.formData.Id + '_' + this.certId, this.formDataCert, this.$axios).then(res => {
|
|
|
+ CheckCompanyBase() {
|
|
|
+ if (!this.formData.Id) {
|
|
|
+ this.$message({
|
|
|
+ type: "error",
|
|
|
+ message: "无法保存,请先填写企业基本信息"
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (!this.certId) {
|
|
|
+ this.$message({
|
|
|
+ type: "error",
|
|
|
+ message: "准入类别不清晰,无法保存!"
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ },
|
|
|
+ // 企业人员结构情况
|
|
|
+ updateNumberEntity() {
|
|
|
+ if (!this.CheckCompanyBase()) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ api
|
|
|
+ .updateNumberEntity(
|
|
|
+ this.formData.Id + "_" + this.certId,
|
|
|
+ this.formDataCert,
|
|
|
+ this.$axios
|
|
|
+ )
|
|
|
+ .then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
// 保存成功后,初始化数据,变成修改
|
|
|
- this.initDatas()
|
|
|
+ this.initDatas();
|
|
|
this.$message({
|
|
|
- type: 'success',
|
|
|
+ type: "success",
|
|
|
message: res.data.message
|
|
|
- })
|
|
|
+ });
|
|
|
} else {
|
|
|
this.$message({
|
|
|
- type: 'warning',
|
|
|
+ type: "warning",
|
|
|
message: res.data.message
|
|
|
- })
|
|
|
+ });
|
|
|
}
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
})
|
|
|
- },
|
|
|
- selectAuditOrg() {
|
|
|
- this.dialogVisible = true
|
|
|
- },
|
|
|
- chooseAuditorShow() {
|
|
|
- this.$refs['chooseAuditor'].getorgtreelist(this.formData.SupplierTypeCode)
|
|
|
- this.chooseAuditorVisible = true
|
|
|
- },
|
|
|
- setAuditer(val, name) {
|
|
|
- this.auditer = val
|
|
|
- this.auditerName = name
|
|
|
- this.chooseAuditorVisible = false
|
|
|
- },
|
|
|
- AuditEntity(val) {
|
|
|
- if (this.auditer === '') {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '请选择审批人!'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- this.applyLoading = true
|
|
|
- this.auditform.FirstAuditName = this.auditer
|
|
|
- this.auditform.CertId = this.certId
|
|
|
- apiCert.auditEntity(this.certId, this.auditform, this.$axios).then(res => {
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ selectAuditOrg() {
|
|
|
+ this.dialogVisible = true;
|
|
|
+ },
|
|
|
+ chooseAuditorShow() {
|
|
|
+ this.$refs["chooseAuditor"].getorgtreelist(
|
|
|
+ this.formData.SupplierTypeCode
|
|
|
+ );
|
|
|
+ this.chooseAuditorVisible = true;
|
|
|
+ },
|
|
|
+ setAuditer(val, name) {
|
|
|
+ this.auditer = val;
|
|
|
+ this.auditerName = name;
|
|
|
+ this.chooseAuditorVisible = false;
|
|
|
+ },
|
|
|
+ AuditEntity(val) {
|
|
|
+ if (this.auditer === "") {
|
|
|
+ this.$message({
|
|
|
+ type: "warning",
|
|
|
+ message: "请选择审批人!"
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.applyLoading = true;
|
|
|
+ this.auditform.FirstAuditName = this.auditer;
|
|
|
+ this.auditform.CertId = this.certId;
|
|
|
+ apiCert
|
|
|
+ .auditEntity(this.certId, this.auditform, this.$axios)
|
|
|
+ .then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
// 保存成功后,初始化数据,变成修改
|
|
|
- this.initDatas()
|
|
|
- this.dialogVisible = false
|
|
|
+ this.initDatas();
|
|
|
+ this.dialogVisible = false;
|
|
|
this.$message({
|
|
|
- type: 'success',
|
|
|
+ type: "success",
|
|
|
message: res.data.message
|
|
|
- })
|
|
|
+ });
|
|
|
} else {
|
|
|
this.$message({
|
|
|
- type: 'warning',
|
|
|
+ type: "warning",
|
|
|
message: res.data.message
|
|
|
- })
|
|
|
+ });
|
|
|
}
|
|
|
- this.applyLoading = false
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
+ this.applyLoading = false;
|
|
|
})
|
|
|
- },
|
|
|
-
|
|
|
- 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 {
|
|
|
- val = val.replace('T', ' ')
|
|
|
- return val.substring(0, 10)
|
|
|
- }
|
|
|
- },
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
|
|
|
- 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()
|
|
|
- var minute = date.getMinutes()
|
|
|
- minute = minute < 10 ? ('0' + minute) : minute
|
|
|
- return y + '-' + m + '-' + d + ' ' + h + ':' + minute
|
|
|
+ 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 {
|
|
|
+ val = val.replace("T", " ");
|
|
|
+ return val.substring(0, 10);
|
|
|
}
|
|
|
+ },
|
|
|
+
|
|
|
+ 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();
|
|
|
+ var minute = date.getMinutes();
|
|
|
+ minute = minute < 10 ? "0" + minute : minute;
|
|
|
+ return y + "-" + m + "-" + d + " " + h + ":" + minute;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
|
-
|
|
|
</style>
|