|
|
@@ -440,6 +440,375 @@
|
|
|
|
|
|
</el-form>
|
|
|
</el-tab-pane>
|
|
|
+ <el-tab-pane label="物资类企业情况" v-if="accessedType.includes('01')">
|
|
|
+ <el-card class="box-card">
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
+ <span>企业人员结构情况</span>
|
|
|
+ <span style="float: right;">
|
|
|
+ <el-button type="primary" size="mini" @click="updateNumberEntity1()" v-if="InfoStatus <= 0">
|
|
|
+ 保存人员结构情况</el-button>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <el-form label-width="220px" class="formDataInfo" ref="EntityFormNumber1" size="mini" :model="formDataCert1" :rules="rulesnum">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="企业员工总数" prop="WorkerTotal">
|
|
|
+ <el-input-number v-model="formDataCert1.WorkerTotal" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="合同化用工数量">
|
|
|
+ <el-input-number v-model="formDataCert1.ContractNum" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="大学及以上学历人员数量">
|
|
|
+ <el-input-number v-model="formDataCert1.UniversityNum" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="技术、管理人员数量" prop="TechnicalNum">
|
|
|
+ <el-input-number v-model="formDataCert1.TechnicalNum" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="高级及以上职称人员数量">
|
|
|
+ <el-input-number v-model="formDataCert1.AboveProfNum" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="中级职称人员数量">
|
|
|
+ <el-input-number v-model="formDataCert1.MiddleProfNum" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="具有国家注册执业资格人员数量">
|
|
|
+ <el-input-number v-model="formDataCert1.NationalRegNum" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="具有国家注册执业资格证书总数">
|
|
|
+ <el-input-number v-model="formDataCert1.NationalCertTotal" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="设计人员总数">
|
|
|
+ <el-input-number v-model="formDataCert1.DesignerTotal" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="技术工人总数" prop="SkillerTotal">
|
|
|
+ <el-input-number v-model="formDataCert1.SkillerTotal" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ </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="equipmentdialog('01')" v-if="InfoStatus <= 0">添加
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ <equipment-list ref="equipmentList1" :data="equipmentList" :SupplierCertId="formData.SupplierCertId"
|
|
|
+ :canadd="InfoStatus <= 0" 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('01')" v-if="InfoStatus <= 0">
|
|
|
+ 添加</el-button>
|
|
|
+ </div>
|
|
|
+ <performance-list ref="performanceList1" :data="performanceList" :SupplierCertId="formData.SupplierCertId" :disabled="true"
|
|
|
+ :canadd="InfoStatus <= 0" height="360px" 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('01')" v-if="InfoStatus <= 0">添加
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ <patent-list ref="patentList1" :canadd="InfoStatus <= 0" :data="patentList" :SupplierCertId="formData.SupplierCertId"
|
|
|
+ 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('01')" v-if="InfoStatus <= 0">添加
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ <winning-list ref="winningList1" :canadd="InfoStatus <= 0" :data="winningList" :SupplierCertId="formData.SupplierCertId"
|
|
|
+ height="360px" style="margin-top: 20px">
|
|
|
+ </winning-list>
|
|
|
+ </el-card>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="服务类企业情况" v-if="accessedType.includes('03')">
|
|
|
+ <el-card class="box-card">
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
+ <span>企业人员结构情况</span>
|
|
|
+ <span style="float: right;">
|
|
|
+ <el-button type="primary" size="mini" @click="updateNumberEntity3()" v-if="InfoStatus <= 0">
|
|
|
+ 保存人员结构情况</el-button>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <el-form label-width="220px" class="formDataInfo" ref="EntityFormNumber3" size="mini" :model="formDataCert3" :rules="rulesnum">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="企业员工总数" prop="WorkerTotal">
|
|
|
+ <el-input-number v-model="formDataCert3.WorkerTotal" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="合同化用工数量">
|
|
|
+ <el-input-number v-model="formDataCert3.ContractNum" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="大学及以上学历人员数量">
|
|
|
+ <el-input-number v-model="formDataCert3.UniversityNum" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="技术、管理人员数量" prop="TechnicalNum">
|
|
|
+ <el-input-number v-model="formDataCert3.TechnicalNum" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="高级及以上职称人员数量">
|
|
|
+ <el-input-number v-model="formDataCert3.AboveProfNum" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="中级职称人员数量">
|
|
|
+ <el-input-number v-model="formDataCert3.MiddleProfNum" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="具有国家注册执业资格人员数量">
|
|
|
+ <el-input-number v-model="formDataCert3.NationalRegNum" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="具有国家注册执业资格证书总数">
|
|
|
+ <el-input-number v-model="formDataCert3.NationalCertTotal" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="设计人员总数">
|
|
|
+ <el-input-number v-model="formDataCert3.DesignerTotal" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="技术工人总数" prop="SkillerTotal">
|
|
|
+ <el-input-number v-model="formDataCert3.SkillerTotal" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ </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="equipmentdialog('03')" v-if="InfoStatus <= 0">添加
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ <equipment-list ref="equipmentList3" :data="equipmentList" :SupplierCertId="formData.SupplierCertId"
|
|
|
+ :canadd="InfoStatus <= 0" 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('03')" v-if="InfoStatus <= 0">
|
|
|
+ 添加</el-button>
|
|
|
+ </div>
|
|
|
+ <performance-list ref="performanceList3" :data="performanceList" :SupplierCertId="formData.SupplierCertId" :disabled="true"
|
|
|
+ :canadd="InfoStatus <= 0" height="360px" 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('03')" v-if="InfoStatus <= 0">添加
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ <patent-list ref="patentList3" :canadd="InfoStatus <= 0" :data="patentList" :SupplierCertId="formData.SupplierCertId"
|
|
|
+ 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('03')" v-if="InfoStatus <= 0">添加
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ <winning-list ref="winningList3" :canadd="InfoStatus <= 0" :data="winningList" :SupplierCertId="formData.SupplierCertId"
|
|
|
+ height="360px" style="margin-top: 20px">
|
|
|
+ </winning-list>
|
|
|
+ </el-card>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="基建类企业情况" v-if="accessedType.includes('02')">
|
|
|
+ <el-card class="box-card">
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
+ <span>企业人员结构情况</span>
|
|
|
+ <span style="float: right;">
|
|
|
+ <el-button type="primary" size="mini" @click="updateNumberEntity2()" v-if="InfoStatus <= 0">
|
|
|
+ 保存人员结构情况</el-button>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <el-form label-width="220px" class="formDataInfo" ref="EntityFormNumber2" size="mini" :model="formDataCert2" :rules="rulesnum">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="企业员工总数" prop="WorkerTotal">
|
|
|
+ <el-input-number v-model="formDataCert2.WorkerTotal" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="合同化用工数量">
|
|
|
+ <el-input-number v-model="formDataCert2.ContractNum" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="大学及以上学历人员数量">
|
|
|
+ <el-input-number v-model="formDataCert2.UniversityNum" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="技术、管理人员数量" prop="TechnicalNum">
|
|
|
+ <el-input-number v-model="formDataCert2.TechnicalNum" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="高级及以上职称人员数量">
|
|
|
+ <el-input-number v-model="formDataCert2.AboveProfNum" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="中级职称人员数量">
|
|
|
+ <el-input-number v-model="formDataCert2.MiddleProfNum" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="具有国家注册执业资格人员数量">
|
|
|
+ <el-input-number v-model="formDataCert2.NationalRegNum" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="具有国家注册执业资格证书总数">
|
|
|
+ <el-input-number v-model="formDataCert2.NationalCertTotal" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="设计人员总数">
|
|
|
+ <el-input-number v-model="formDataCert2.DesignerTotal" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="技术工人总数" prop="SkillerTotal">
|
|
|
+ <el-input-number v-model="formDataCert2.SkillerTotal" controls-position="right" :min="0" :disabled="disabled"
|
|
|
+ style="width: 100%"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ </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="equipmentdialog('02')" v-if="InfoStatus <= 0">添加
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ <equipment-list ref="equipmentList2" :data="equipmentList" :SupplierCertId="formData.SupplierCertId"
|
|
|
+ :canadd="InfoStatus <= 0" 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('02')" v-if="InfoStatus <= 0">
|
|
|
+ 添加</el-button>
|
|
|
+ </div>
|
|
|
+ <performance-list ref="performanceList2" :data="performanceList" :SupplierCertId="formData.SupplierCertId" :disabled="true"
|
|
|
+ :canadd="InfoStatus <= 0" height="360px" 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('02')" v-if="InfoStatus <= 0">添加
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ <patent-list ref="patentList2" :canadd="InfoStatus <= 0" :data="patentList" :SupplierCertId="formData.SupplierCertId"
|
|
|
+ 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('02')" v-if="InfoStatus <= 0">添加
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ <winning-list ref="winningList2" :canadd="InfoStatus <= 0" :data="winningList" :SupplierCertId="formData.SupplierCertId"
|
|
|
+ height="360px" style="margin-top: 20px">
|
|
|
+ </winning-list>
|
|
|
+ </el-card>
|
|
|
+ </el-tab-pane>
|
|
|
<el-tab-pane label="物资类" v-if="accessedType.includes('01')">
|
|
|
<!-- <el-card class="box-card">
|
|
|
<el-form :model="formData">
|
|
|
@@ -571,21 +940,20 @@
|
|
|
</el-pagination>
|
|
|
</el-card>
|
|
|
</el-tab-pane>
|
|
|
-
|
|
|
- <el-tab-pane label="基建类" v-if="accessedType.includes('02')">
|
|
|
+ <el-tab-pane label="服务类" v-if="accessedType.includes('03')">
|
|
|
<el-card class="box-card" style="margin-top: 10px;">
|
|
|
<div slot="header" class="clearfix">
|
|
|
<span style="font-weight: bold">企业资质</span>
|
|
|
<span style="float: right;">
|
|
|
- <el-button style="padding: 3px 0" type="text" @click="recall('02')" v-if="!(InfoStatus > 0 || butnab)">撤销删除</el-button>
|
|
|
- <el-button style="padding: 3px 0" type="text" @click="showDialog('02')" v-if="!(InfoStatus > 0 || butnab)">添加</el-button>
|
|
|
+ <el-button style="padding: 3px 0" type="text" @click="recall('03')" v-if="!(InfoStatus > 0 || butnab)">撤销删除</el-button>
|
|
|
+ <el-button style="padding: 3px 0" type="text" @click="showDialog('03')" v-if="!(InfoStatus > 0 || butnab)">添加</el-button>
|
|
|
</span>
|
|
|
</div>
|
|
|
- <el-table :data="subfileList2" border>
|
|
|
+ <el-table :data="subfileList3" border>
|
|
|
<el-table-column label="操作" width="150" align="center" fixed>
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="primary" plain size="mini" title="文件变更" @click="openDialog(scope.row)"
|
|
|
- :disabled="InfoStatus > 0 || butnab">
|
|
|
+ :disabled="InfoStatus > 0 || butnab">
|
|
|
变更</el-button>
|
|
|
<el-button type="danger" plain size="mini" title="文件变更" @click="delFile(scope.row)"
|
|
|
:disabled="InfoStatus > 0 || butnab">
|
|
|
@@ -597,6 +965,11 @@
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
|
+ <!-- <div v-for="(tmpUrl, index) in scope.row.OldFileUrlList">
|
|
|
+ <a :href="'http://'+fileurlcut(scope.row.OldFileUrl, index)" target="_blank"
|
|
|
+ class="buttonText">{{scope.row.OldFileName.split('$')[index]}}</a>
|
|
|
+ </div> -->
|
|
|
+
|
|
|
<viewer :images="scope.row.OldFileUrlList">
|
|
|
<div v-for="(tmpUrl,index) in scope.row.OldFileUrlList" :key="index" style="vertical-align: middle; text-align: center;">
|
|
|
<div v-if="imgFormat(scope.row.OldFileUrl, index)">
|
|
|
@@ -611,13 +984,7 @@
|
|
|
:key="index">
|
|
|
</div>
|
|
|
</div>
|
|
|
- </viewer>
|
|
|
-
|
|
|
- <!-- <div v-for="(tmpUrl, index) in scope.row.OldFileUrlList">
|
|
|
- <a :href="'http://'+fileurlcut(scope.row.OldFileUrl, index)" target="_blank"
|
|
|
- class="buttonText">{{scope.row.OldFileName.split('$')[index]}}</a>
|
|
|
- </div> -->
|
|
|
-
|
|
|
+ </viewer>
|
|
|
|
|
|
|
|
|
</template>
|
|
|
@@ -632,28 +999,27 @@
|
|
|
|
|
|
|
|
|
<el-row align="middle">
|
|
|
- <el-col :span="20">
|
|
|
- <viewer :images="scope.row.FileUrlList">
|
|
|
+ <el-col :span="20">
|
|
|
+ <viewer :images="scope.row.FileUrlList">
|
|
|
<div v-for="(tmpUrl,index) in scope.row.FileUrlList" :key="index" style="vertical-align: middle; text-align: center;">
|
|
|
- <div v-if="imgFormat(scope.row.FileUrl, index)">
|
|
|
- <el-link :href="'http://'+fileurlcut(scope.row.FileUrl, index)" target="_blank" type="primary">
|
|
|
- {{scope.row.FileName.split('$')[index]}}</el-link>
|
|
|
+ <div v-if="imgFormat(scope.row.FileUrl, index)">
|
|
|
+ <el-link :href="'http://'+fileurlcut(scope.row.FileUrl, index)" target="_blank" type="primary">
|
|
|
+ {{scope.row.FileName.split('$')[index]}}</el-link>
|
|
|
+ </div>
|
|
|
+ <div v-else>
|
|
|
+ <img
|
|
|
+ class="photoStyle" alt=""
|
|
|
+ v-if="fileurlcut(scope.row.FileUrl, index)"
|
|
|
+ :src="'http://'+fileurlcut(scope.row.FileUrl, index)"
|
|
|
+ :key="index">
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div v-else>
|
|
|
- <img
|
|
|
- class="photoStyle" alt=""
|
|
|
- v-if="fileurlcut(scope.row.FileUrl, index)"
|
|
|
- :src="'http://'+fileurlcut(scope.row.FileUrl, index)"
|
|
|
- :key="index">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </viewer>
|
|
|
- </el-col>
|
|
|
- <el-col :span="4" v-if="scope.row.FileUrl != ''">
|
|
|
+ </viewer>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4" v-if="scope.row.FileUrl != ''">
|
|
|
<i class="el-icon-close" :style="{'float': 'right', 'height': '100%','line-height': lineheight(scope.row.FileUrlList.length) + 'px',}" @click="iconclear(scope.row)"></i>
|
|
|
</el-col>
|
|
|
- </el-row>
|
|
|
-
|
|
|
+ </el-row>
|
|
|
|
|
|
<!-- <el-row align="middle">
|
|
|
<el-col :span="20">
|
|
|
@@ -669,7 +1035,6 @@
|
|
|
</el-row> -->
|
|
|
|
|
|
|
|
|
-
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="EffectDate" label="变更后有效日期" show-overflow-tooltip>
|
|
|
@@ -680,27 +1045,27 @@
|
|
|
<el-table-column prop="Remark" label="描述" show-overflow-tooltip></el-table-column>
|
|
|
</el-table>
|
|
|
<el-pagination small
|
|
|
- @size-change="handleProjectSizeChange2"
|
|
|
- @current-change="handleProjectCurrentChange2"
|
|
|
- :current-page="currentPageProject2"
|
|
|
+ @size-change="handleProjectSizeChange3"
|
|
|
+ @current-change="handleProjectCurrentChange3"
|
|
|
+ :current-page="currentPageProject3"
|
|
|
:page-sizes="[10, 20, 30]"
|
|
|
- :page-size="sizeProject2"
|
|
|
+ :page-size="sizeProject3"
|
|
|
layout="total, sizes, prev, pager, next,jumper"
|
|
|
- :total="currentItemCountProject2"
|
|
|
+ :total="currentItemCountProject3"
|
|
|
style="margin: 5px;">
|
|
|
</el-pagination>
|
|
|
</el-card>
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="服务类" v-if="accessedType.includes('03')">
|
|
|
+ <el-tab-pane label="基建类" v-if="accessedType.includes('02')">
|
|
|
<el-card class="box-card" style="margin-top: 10px;">
|
|
|
<div slot="header" class="clearfix">
|
|
|
<span style="font-weight: bold">企业资质</span>
|
|
|
<span style="float: right;">
|
|
|
- <el-button style="padding: 3px 0" type="text" @click="recall('03')" v-if="!(InfoStatus > 0 || butnab)">撤销删除</el-button>
|
|
|
- <el-button style="padding: 3px 0" type="text" @click="showDialog('03')" v-if="!(InfoStatus > 0 || butnab)">添加</el-button>
|
|
|
+ <el-button style="padding: 3px 0" type="text" @click="recall('02')" v-if="!(InfoStatus > 0 || butnab)">撤销删除</el-button>
|
|
|
+ <el-button style="padding: 3px 0" type="text" @click="showDialog('02')" v-if="!(InfoStatus > 0 || butnab)">添加</el-button>
|
|
|
</span>
|
|
|
</div>
|
|
|
- <el-table :data="subfileList3" border>
|
|
|
+ <el-table :data="subfileList2" border>
|
|
|
<el-table-column label="操作" width="150" align="center" fixed>
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="primary" plain size="mini" title="文件变更" @click="openDialog(scope.row)"
|
|
|
@@ -716,11 +1081,6 @@
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
|
- <!-- <div v-for="(tmpUrl, index) in scope.row.OldFileUrlList">
|
|
|
- <a :href="'http://'+fileurlcut(scope.row.OldFileUrl, index)" target="_blank"
|
|
|
- class="buttonText">{{scope.row.OldFileName.split('$')[index]}}</a>
|
|
|
- </div> -->
|
|
|
-
|
|
|
<viewer :images="scope.row.OldFileUrlList">
|
|
|
<div v-for="(tmpUrl,index) in scope.row.OldFileUrlList" :key="index" style="vertical-align: middle; text-align: center;">
|
|
|
<div v-if="imgFormat(scope.row.OldFileUrl, index)">
|
|
|
@@ -737,6 +1097,12 @@
|
|
|
</div>
|
|
|
</viewer>
|
|
|
|
|
|
+ <!-- <div v-for="(tmpUrl, index) in scope.row.OldFileUrlList">
|
|
|
+ <a :href="'http://'+fileurlcut(scope.row.OldFileUrl, index)" target="_blank"
|
|
|
+ class="buttonText">{{scope.row.OldFileName.split('$')[index]}}</a>
|
|
|
+ </div> -->
|
|
|
+
|
|
|
+
|
|
|
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -772,6 +1138,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
+
|
|
|
<!-- <el-row align="middle">
|
|
|
<el-col :span="20">
|
|
|
<div v-for="(tmpUrl, index) in scope.row.FileUrlList">
|
|
|
@@ -786,6 +1153,7 @@
|
|
|
</el-row> -->
|
|
|
|
|
|
|
|
|
+
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="EffectDate" label="变更后有效日期" show-overflow-tooltip>
|
|
|
@@ -796,13 +1164,13 @@
|
|
|
<el-table-column prop="Remark" label="描述" show-overflow-tooltip></el-table-column>
|
|
|
</el-table>
|
|
|
<el-pagination small
|
|
|
- @size-change="handleProjectSizeChange3"
|
|
|
- @current-change="handleProjectCurrentChange3"
|
|
|
- :current-page="currentPageProject3"
|
|
|
+ @size-change="handleProjectSizeChange2"
|
|
|
+ @current-change="handleProjectCurrentChange2"
|
|
|
+ :current-page="currentPageProject2"
|
|
|
:page-sizes="[10, 20, 30]"
|
|
|
- :page-size="sizeProject3"
|
|
|
+ :page-size="sizeProject2"
|
|
|
layout="total, sizes, prev, pager, next,jumper"
|
|
|
- :total="currentItemCountProject3"
|
|
|
+ :total="currentItemCountProject2"
|
|
|
style="margin: 5px;">
|
|
|
</el-pagination>
|
|
|
</el-card>
|
|
|
@@ -965,6 +1333,10 @@
|
|
|
import fileapi from '@/api/oilsupplier/supplierfile'
|
|
|
import ChooseAuditorFen from '@/components/oilsupplier/chooseauditorfenban'
|
|
|
import setapi from '@/api/oilsupplier/oilclassorgset'
|
|
|
+ import EquipmentList from '@/components/oilsupplier/equipmentlist'
|
|
|
+ import PerformanceList from '@/components/oilsupplier/performancelist'
|
|
|
+ import PatentList from '@/components/oilsupplier/patentlist'
|
|
|
+ import WinningList from '@/components/oilsupplier/winninglist'
|
|
|
// v-viewer
|
|
|
import Vue from 'vue'
|
|
|
import Viewer from 'v-viewer'
|
|
|
@@ -977,6 +1349,10 @@
|
|
|
components: {
|
|
|
WfMultiHistory,
|
|
|
ChooseAuditor,
|
|
|
+ EquipmentList, // 企业主要设备
|
|
|
+ PerformanceList, // 近三年主要业绩列表
|
|
|
+ PatentList, // 专利及专有技术列表
|
|
|
+ WinningList, // 近三年省部级及以上获奖项目列表
|
|
|
ChooseAuditorFen
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -1129,7 +1505,95 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ var checkWorkerTotal = (rule, value, callback) => {
|
|
|
+ if (value <= 0) {
|
|
|
+ callback(new Error('企业员工总数必须大于0'))
|
|
|
+ } else {
|
|
|
+ callback()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ var checkTechnicalNum = (rule, value, callback) => {
|
|
|
+ if (value <= 0) {
|
|
|
+ callback(new Error('技术、管理人员数量必须大于0'))
|
|
|
+ } else {
|
|
|
+ callback()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ var checkSkillerTotal = (rule, value, callback) => {
|
|
|
+ if (value <= 0) {
|
|
|
+ callback(new Error('技术工人总数必须大于0'))
|
|
|
+ } else {
|
|
|
+ callback()
|
|
|
+ }
|
|
|
+ }
|
|
|
return {
|
|
|
+ rulesnum: {
|
|
|
+ WorkerTotal: [{
|
|
|
+ required: true,
|
|
|
+ validator: checkWorkerTotal,
|
|
|
+ trigger: 'blur'
|
|
|
+ }],
|
|
|
+ TechnicalNum: [{
|
|
|
+ required: true,
|
|
|
+ validator: checkTechnicalNum,
|
|
|
+ trigger: 'blur'
|
|
|
+ }],
|
|
|
+ SkillerTotal: [{
|
|
|
+ required: true,
|
|
|
+ validator: checkSkillerTotal,
|
|
|
+ trigger: 'blur'
|
|
|
+ }]
|
|
|
+ },
|
|
|
+ equipmentList: [], // 企业主要设备
|
|
|
+ performanceList: [], // 近三年主要业绩
|
|
|
+ patentList: [], // 专利及专有技术
|
|
|
+ winningList: [], // 近三年省部级及以上获奖项目
|
|
|
+ certList: [],
|
|
|
+ CertId1: 0,
|
|
|
+ CertId2: 0,
|
|
|
+ CertId3: 0,
|
|
|
+ formDataCert1: {
|
|
|
+ WorkerTotal: 0,
|
|
|
+ ContractNum: 0,
|
|
|
+ UniversityNum: 0,
|
|
|
+ TechnicalNum: 0,
|
|
|
+ AboveProfNum: 0,
|
|
|
+ MiddleProfNum: 0,
|
|
|
+ NationalRegNum: 0,
|
|
|
+ NationalCertTotal: 0,
|
|
|
+ DesignerTotal: 0,
|
|
|
+ SkillerTotal: 0,
|
|
|
+ Status: 0,
|
|
|
+ WorkflowId: ''
|
|
|
+ },
|
|
|
+ formDataCert2: {
|
|
|
+ WorkerTotal: 0,
|
|
|
+ ContractNum: 0,
|
|
|
+ UniversityNum: 0,
|
|
|
+ TechnicalNum: 0,
|
|
|
+ AboveProfNum: 0,
|
|
|
+ MiddleProfNum: 0,
|
|
|
+ NationalRegNum: 0,
|
|
|
+ NationalCertTotal: 0,
|
|
|
+ DesignerTotal: 0,
|
|
|
+ SkillerTotal: 0,
|
|
|
+ Status: 0,
|
|
|
+ WorkflowId: ''
|
|
|
+ },
|
|
|
+ formDataCert3: {
|
|
|
+ WorkerTotal: 0,
|
|
|
+ ContractNum: 0,
|
|
|
+ UniversityNum: 0,
|
|
|
+ TechnicalNum: 0,
|
|
|
+ AboveProfNum: 0,
|
|
|
+ MiddleProfNum: 0,
|
|
|
+ NationalRegNum: 0,
|
|
|
+ NationalCertTotal: 0,
|
|
|
+ DesignerTotal: 0,
|
|
|
+ SkillerTotal: 0,
|
|
|
+ Status: 0,
|
|
|
+ WorkflowId: ''
|
|
|
+ },
|
|
|
saveLoading: false,
|
|
|
dateDisable: false,
|
|
|
OperTypeCopy: '',
|
|
|
@@ -1602,9 +2066,235 @@
|
|
|
this.getsubfile3()
|
|
|
this.getFileDictOptions()
|
|
|
this.initTableHeader()
|
|
|
+ this.getSupplierCert()
|
|
|
// this.getAccessCardNo()
|
|
|
},
|
|
|
methods: {
|
|
|
+ equipmentdialog (code) {
|
|
|
+ if (code === '01') {
|
|
|
+ this.$refs['equipmentList1'].showDialog()
|
|
|
+ } else if (code === '02') {
|
|
|
+ this.$refs['equipmentList2'].showDialog()
|
|
|
+ } else {
|
|
|
+ this.$refs['equipmentList3'].showDialog()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ performancedialog (code) {
|
|
|
+ if (code === '01') {
|
|
|
+ this.$refs['performanceList1'].showDialog()
|
|
|
+ } else if (code === '02') {
|
|
|
+ this.$refs['performanceList2'].showDialog()
|
|
|
+ } else {
|
|
|
+ this.$refs['performanceList3'].showDialog()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ patentdialog (code) {
|
|
|
+ if (code === '01') {
|
|
|
+ this.$refs['patentList1'].showDialog()
|
|
|
+ } else if (code === '02') {
|
|
|
+ this.$refs['patentList2'].showDialog()
|
|
|
+ } else {
|
|
|
+ this.$refs['patentList3'].showDialog()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ winningdialog (code) {
|
|
|
+ if (code === '01') {
|
|
|
+ this.$refs['winningList1'].showDialog()
|
|
|
+ } else if (code === '02') {
|
|
|
+ this.$refs['winningList2'].showDialog()
|
|
|
+ } else {
|
|
|
+ this.$refs['winningList3'].showDialog()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getSupplierCert () {
|
|
|
+ supplierapi.getSupplierCert(this.supplierId, this.$axios).then(res => {
|
|
|
+ this.certList = res.data.items
|
|
|
+ if (this.certList.length > 0) {
|
|
|
+ for (let i = 0; i < this.certList.length; i++) {
|
|
|
+ if (this.certList[i].SupplierTypeCode == '01') {
|
|
|
+ this.CertId1 = this.certList[i].Id
|
|
|
+ this.formDataCert1.WorkerTotal = this.certList[i].WorkerTotal
|
|
|
+ this.formDataCert1.ContractNum = this.certList[i].ContractNum
|
|
|
+ this.formDataCert1.UniversityNum = this.certList[i].UniversityNum
|
|
|
+ this.formDataCert1.TechnicalNum = this.certList[i].TechnicalNum
|
|
|
+ this.formDataCert1.AboveProfNum = this.certList[i].AboveProfNum
|
|
|
+ this.formDataCert1.MiddleProfNum = this.certList[i].MiddleProfNum
|
|
|
+ this.formDataCert1.NationalRegNum = this.certList[i].NationalRegNum
|
|
|
+ this.formDataCert1.NationalCertTotal = this.certList[i].NationalCertTotal
|
|
|
+ this.formDataCert1.DesignerTotal = this.certList[i].DesignerTotal
|
|
|
+ this.formDataCert1.SkillerTotal = this.certList[i].SkillerTotal
|
|
|
+ this.formDataCert1.Status = this.certList[i].Status
|
|
|
+ this.formDataCert1.WorkflowId = this.certList[i].WorkflowId
|
|
|
+ this.$refs['equipmentList1'].getvalue(0, '01', this.certList[i].Id)
|
|
|
+ this.$refs['performanceList1'].getvalue(0, '01', this.certList[i].Id)
|
|
|
+ this.$refs['patentList1'].getvalue(0, '01', this.certList[i].Id)
|
|
|
+ this.$refs['winningList1'].getvalue(0, '01', this.certList[i].Id)
|
|
|
+ }
|
|
|
+ if (this.certList[i].SupplierTypeCode == '02') {
|
|
|
+ this.CertId2 = this.certList[i].Id
|
|
|
+ this.formDataCert2.WorkerTotal = this.certList[i].WorkerTotal
|
|
|
+ this.formDataCert2.ContractNum = this.certList[i].ContractNum
|
|
|
+ this.formDataCert2.UniversityNum = this.certList[i].UniversityNum
|
|
|
+ this.formDataCert2.TechnicalNum = this.certList[i].TechnicalNum
|
|
|
+ this.formDataCert2.AboveProfNum = this.certList[i].AboveProfNum
|
|
|
+ this.formDataCert2.MiddleProfNum = this.certList[i].MiddleProfNum
|
|
|
+ this.formDataCert2.NationalRegNum = this.certList[i].NationalRegNum
|
|
|
+ this.formDataCert2.NationalCertTotal = this.certList[i].NationalCertTotal
|
|
|
+ this.formDataCert2.DesignerTotal = this.certList[i].DesignerTotal
|
|
|
+ this.formDataCert2.SkillerTotal = this.certList[i].SkillerTotal
|
|
|
+ this.formDataCert2.Status = this.certList[i].Status
|
|
|
+ this.formDataCert2.WorkflowId = this.certList[i].WorkflowId
|
|
|
+ this.$refs['equipmentList2'].getvalue(0, '02', this.certList[i].Id)
|
|
|
+ this.$refs['performanceList2'].getvalue(0, '02', this.certList[i].Id)
|
|
|
+ this.$refs['patentList2'].getvalue(0, '02', this.certList[i].Id)
|
|
|
+ this.$refs['winningList2'].getvalue(0, '02', this.certList[i].Id)
|
|
|
+ }
|
|
|
+ if (this.certList[i].SupplierTypeCode == '03') {
|
|
|
+ this.CertId3 = this.certList[i].Id
|
|
|
+ this.formDataCert3.WorkerTotal = this.certList[i].WorkerTotal
|
|
|
+ this.formDataCert3.ContractNum = this.certList[i].ContractNum
|
|
|
+ this.formDataCert3.UniversityNum = this.certList[i].UniversityNum
|
|
|
+ this.formDataCert3.TechnicalNum = this.certList[i].TechnicalNum
|
|
|
+ this.formDataCert3.AboveProfNum = this.certList[i].AboveProfNum
|
|
|
+ this.formDataCert3.MiddleProfNum = this.certList[i].MiddleProfNum
|
|
|
+ this.formDataCert3.NationalRegNum = this.certList[i].NationalRegNum
|
|
|
+ this.formDataCert3.NationalCertTotal = this.certList[i].NationalCertTotal
|
|
|
+ this.formDataCert3.DesignerTotal = this.certList[i].DesignerTotal
|
|
|
+ this.formDataCert3.SkillerTotal = this.certList[i].SkillerTotal
|
|
|
+ this.formDataCert3.Status = this.certList[i].Status
|
|
|
+ this.formDataCert3.WorkflowId = this.certList[i].WorkflowId
|
|
|
+ this.$refs['equipmentList3'].getvalue(0, '03', this.certList[i].Id)
|
|
|
+ this.$refs['performanceList3'].getvalue(0, '03', this.certList[i].Id)
|
|
|
+ this.$refs['patentList3'].getvalue(0, '03', this.certList[i].Id)
|
|
|
+ this.$refs['winningList3'].getvalue(0, '03', this.certList[i].Id)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 企业人员结构情况
|
|
|
+ updateNumberEntity1 () {
|
|
|
+ if (this.formDataCert1.TechnicalNum > this.formDataCert1.WorkerTotal) {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '技术、管理人员数量不能大于员工总数!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.formDataCert1.SkillerTotal > this.formDataCert1.WorkerTotal) {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '技术工人总数不能大于员工总数!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.$refs['EntityFormNumber1'].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ supplierapi.updateNumberEntity(this.formData.Id + '_' + this.CertId1, this.formDataCert1, this.$axios).then(
|
|
|
+ res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ // 保存成功后,初始化数据,变成修改
|
|
|
+ this.getSupplierCert()
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ updateNumberEntity2 () {
|
|
|
+ if (this.formDataCert2.TechnicalNum > this.formDataCert2.WorkerTotal) {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '技术、管理人员数量不能大于员工总数!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.formDataCert2.SkillerTotal > this.formDataCert2.WorkerTotal) {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '技术工人总数不能大于员工总数!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.$refs['EntityFormNumber2'].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ supplierapi.updateNumberEntity(this.formData.Id + '_' + this.CertId2, this.formDataCert2, this.$axios).then(
|
|
|
+ res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ // 保存成功后,初始化数据,变成修改
|
|
|
+ this.getSupplierCert()
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ updateNumberEntity3 () {
|
|
|
+ if (this.formDataCert3.TechnicalNum > this.formDataCert3.WorkerTotal) {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '技术、管理人员数量不能大于员工总数!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.formDataCert3.SkillerTotal > this.formDataCert3.WorkerTotal) {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '技术工人总数不能大于员工总数!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.$refs['EntityFormNumber3'].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ supplierapi.updateNumberEntity(this.formData.Id + '_' + this.CertId3, this.formDataCert3, this.$axios).then(
|
|
|
+ res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ // 保存成功后,初始化数据,变成修改
|
|
|
+ this.getSupplierCert()
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
addDate () {
|
|
|
let date = new Date()
|
|
|
let year = date.getFullYear() + 50
|