|
|
@@ -1,1882 +0,0 @@
|
|
|
-<template>
|
|
|
- <div>
|
|
|
- <el-breadcrumb class="heading">
|
|
|
- <el-breadcrumb-item :to="{ path: '/' }">平台首页</el-breadcrumb-item>
|
|
|
- <el-breadcrumb-item :to="{ path: '/oilsupplier/supplierappend/goodslist' }">物资类列表</el-breadcrumb-item>
|
|
|
- <el-breadcrumb-item>编辑</el-breadcrumb-item>
|
|
|
- </el-breadcrumb>
|
|
|
- <el-card class="box-card">
|
|
|
- <div slot="header">
|
|
|
- <span>
|
|
|
- <i class="icon icon-table2"></i> 编辑
|
|
|
- </span>
|
|
|
- <span style="float: right;">
|
|
|
- <el-popover>
|
|
|
- <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>
|
|
|
- <el-step title="待交费"></el-step>
|
|
|
- <el-step title="待入库"></el-step>
|
|
|
- <el-step title="完成"></el-step>
|
|
|
- </el-steps>
|
|
|
- <!-- <el-button slot="reference" plain size="mini" style="margin-right: 8px">查看进度</el-button> -->
|
|
|
- </el-popover>
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" @click="auhistory">审批流程</el-button>
|
|
|
- <el-button type="primary" size="mini" style="margin-right: 8px" @click="commitaudit"
|
|
|
- v-if="formData.Id !='' && formData.Status <= 0 && formData.Status != -5 && IsCompanyUser == 0">提交审批
|
|
|
- </el-button>
|
|
|
- <el-button type="primary" size="mini" style="margin-right: 8px" @click="commitfenban"
|
|
|
- v-if="formData.Id !='' && formData.Status <= 0 && formData.Status != -5 && IsCompanyUser == 1">提交分办
|
|
|
- </el-button>
|
|
|
- <router-link :to="'/oilsupplier/supplierappend/goodslist'">
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px">返回</el-button>
|
|
|
- </router-link>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <el-card class="box-card" style="margin-top: 20px">
|
|
|
- <div slot="header">
|
|
|
- <span><i class="icon icon-table2"></i> 增项信息</span>
|
|
|
- <el-button style="float: right; padding: 3px 0" type="text"
|
|
|
- v-if="formData.Status <= 0 && formData.Status != -5" @click="saveEntity()">保存信息</el-button>
|
|
|
- </div>
|
|
|
- <el-form label-width="150px" ref="EntityForm" :rules="appendRules" :model="formData">
|
|
|
- <el-row>
|
|
|
- <!-- <el-col :span="12">
|
|
|
- <el-form-item label="推荐单位名称" prop="checkSelectedRecUnitName">
|
|
|
- <el-cascader ref="tjdwCascader" :options="organizeTreeList" :props="organizeTreeProps"
|
|
|
- change-on-select :show-all-levels="false" v-model="selectedOrgList" @change="getCode2"
|
|
|
- placeholder="请选择推荐单位" style="width: 100%">
|
|
|
- </el-cascader>
|
|
|
- </el-form-item>
|
|
|
- </el-col> -->
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="供应商公司名称" prop="checkSelectedSupplier">
|
|
|
- <el-select ref="suppselect" :disabled="formData.Status>0||IsCompanyUser == 1" v-model="supplierOptions" filterable
|
|
|
- @change="getInfo" placeholder="请选择供应商公司" style="width: 100%">
|
|
|
- <el-option v-for="item in supplierList" :key="item.SupplierId" :label="item.SupplierName"
|
|
|
- :value="item.SupplierId">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="16">
|
|
|
- <el-form-item label="备注" prop="Remark">
|
|
|
- <el-input :disabled="formData.Status>0" type="textarea" v-model="formData.Remark" placeholder="请输入">
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
- </el-card>
|
|
|
- <!-- 增项分类列表 -->
|
|
|
- <el-row :gutter="2">
|
|
|
- <el-col :span="12">
|
|
|
- <el-card class="box-card" style="margin-top: 10px;height: calc(100vh - 353px);">
|
|
|
- <div slot="header">
|
|
|
- <span><i class="icon icon-table2"></i> 全部准入范围</span>
|
|
|
- <!-- <el-button style="float: right; padding: 3px 0" type="text"
|
|
|
- v-if="formData.Status <= 0 && formData.Status != -5" @click="addSortData()">添加</el-button> -->
|
|
|
- </div>
|
|
|
- <el-table :data="entityList" size="mini" border style="width: 100%;" height="calc(100vh - 428px)" @sort-change="orderby">
|
|
|
- <!-- <el-table-column label="操作" min-width="100" align="center" fixed>
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button type="primary" title="删除" size="mini" plain @click="deleteData(scope.row.Id)"
|
|
|
- :disabled="scope.row.Type == '1'||formData.Status > 0">删除</el-button>
|
|
|
- </template>
|
|
|
- </el-table-column> -->
|
|
|
- <!-- <el-table-column prop="SortFlag" label="分类标记" v-if="1==2" show-overflow-tooltip></el-table-column> -->
|
|
|
- <el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="Remark" label="备注" show-overflow-tooltip></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-card>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <!-- <goods-list ref="goodsList" :data.sync="myentityList" :canadd="add_flat"
|
|
|
- :candelete="delete_flat" height="360px" style="margin-top: 20px"></goods-list> -->
|
|
|
- <el-card class="box-card" style="margin-top: 10px;height: calc(100vh - 353px);">
|
|
|
- <div slot="header">
|
|
|
- <span><i class="icon icon-table2"></i> 新增准入范围</span>
|
|
|
- <!--<el-button style="float: right; padding: 3px 0" type="text"-->
|
|
|
- <!--v-if="formData.Status <= 0 && formData.Status != -5" @click="addSortData()">添加</el-button>-->
|
|
|
- <el-button style="float: right; padding: 3px 0" type="text"
|
|
|
- v-if="formData.Status <= 0 && formData.Status != -5" @click="addSortData1()">添加</el-button>
|
|
|
- </div>
|
|
|
- <el-table :data="myentityList" size="mini" border style="width: 100%;" height="calc(100vh - 428px)" @sort-change="orderby">
|
|
|
- <el-table-column label="操作" min-width="100" align="center" fixed>
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button type="primary" title="删除" size="mini" plain @click="deleteData(scope.row.Id)"
|
|
|
- :disabled="scope.row.Type == '1'||formData.Status > 0">删除</el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="Remark" label="备注" show-overflow-tooltip></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-card>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-card class="box-card" style="margin-top: 10px;">
|
|
|
- <div slot="header" class="clearfix">
|
|
|
- <span><i class="icon icon-table2"></i> 企业资质</span>
|
|
|
- <el-button style="float: right; padding: 3px 0" type="text" @click="showDialog" >添加</el-button>
|
|
|
- </div>
|
|
|
- <el-table :data="subfileList" size="mini" 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="scope.row.SupType != 2||formData.Status > 0">上传
|
|
|
- </el-button>
|
|
|
- <el-button type="primary" plain size="mini" title="删除" style="margin-left:3px"
|
|
|
- v-if="scope.row.FileType == '66'" @click="newdeletedata(scope.row)">删除</el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="NeedFileType" label="资质名称" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="FileUrlList" label="资质文件" show-overflow-tooltip>
|
|
|
- <template slot-scope="scope">
|
|
|
- <div v-for="(tmpUrl, index) in scope.row.FileUrlList">
|
|
|
- <a :href="fileurlcut(scope.row.FileUrl, index)" target="_blank"
|
|
|
- class="buttonText">{{scope.row.FileName.split('$')[index]}}</a>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="EffectDate" label="有效日期" show-overflow-tooltip>
|
|
|
- <template slot-scope="scope">
|
|
|
- {{ jstimehandle(scope.row.EffectDate+'') }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="OtherRemark" label="描述" show-overflow-tooltip></el-table-column>
|
|
|
- </el-table>
|
|
|
- </el-card>
|
|
|
- </div>
|
|
|
- </el-card>
|
|
|
- <el-dialog title="上传文件" :visible.sync="visible" top="5vh">
|
|
|
- <el-form :model="SubfileForm" size="mini" label-width="100px">
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="资质名称" required>
|
|
|
- <el-input v-model="SubfileForm.NeedFileType" placeholder="请输文件类型" :disabled="true"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="有效日期" required>
|
|
|
- <el-date-picker style="width: 100%" v-model="SubfileForm.EffectDate" type="date" placeholder="请选择有效日期">
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item label="描述">
|
|
|
- <el-input v-model="SubfileForm.OtherRemark" type="textarea" :rows=3 placeholder="请输入备注信息"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="资质文件">
|
|
|
- <!--<el-upload multiple style="margin-top: 10px;" action="" ref="refuploadattach"-->
|
|
|
- <!--:http-request="uploadrequest" class="attach-uploader" :before-upload="beforeAvatarUpload">-->
|
|
|
- <!--<i class="el-icon-plus attach-uploader-icon"></i>-->
|
|
|
- <!--<div slot="tip" class="el-upload__tip">大小为512KB-5MB</div>-->
|
|
|
- <!--</el-upload>-->
|
|
|
- <el-upload multiple style="margin-top: 10px;" action="" ref="refuploadattach"
|
|
|
- :http-request="uploadrequest" class="attach-uploader" :before-upload="beforeAvatarUpload">
|
|
|
- <i class="el-icon-plus attach-uploader-icon"></i>
|
|
|
- <div slot="tip" class="el-upload__tip">大小为512KB-5MB</div>
|
|
|
- </el-upload>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
- <div slot="footer" class="dialog-footer" style="margin-top:-30px;">
|
|
|
- <el-button @click="visible = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="makesure()">确 定</el-button>
|
|
|
- </div>
|
|
|
- </el-dialog>
|
|
|
- <!-- 增项分类添加、修改 -->
|
|
|
- <!--<el-dialog :title="dialogTitle" :visible.sync="dialogVisible">-->
|
|
|
-
|
|
|
- <!--<el-form label-width="150px" v-loading="dialogloading" ref="dialogFormData" :rules="sortEntityFormRules" :model="dialogFormData">-->
|
|
|
- <!--<el-row style="margin-top: -10px">-->
|
|
|
- <!--<el-col :span="12">-->
|
|
|
- <!--<el-input v-if="!switchstatus" v-model="filterText" placeholder="请输入名称或代码" size="mini"-->
|
|
|
- <!--style="width: 250px;"></el-input>-->
|
|
|
- <!--<el-input v-if="switchstatus" v-model="searchText" placeholder="请输入名称或代码" size="mini" style="width: 250px;">-->
|
|
|
- <!--</el-input>-->
|
|
|
- <!--<el-button style="float: right;" type="primary" size="mini" @click="getsectreelist()"-->
|
|
|
- <!--:disabled="!switchstatus">查询</el-button>-->
|
|
|
- <!--<el-switch v-model="switchstatus" size="mini"></el-switch>-->
|
|
|
- <!--</el-col>-->
|
|
|
- <!--</el-row>-->
|
|
|
- <!--<el-row :gutter="20" style="height: calc(100vh - 450px); overflow: auto; margin-top:20px">-->
|
|
|
- <!--<el-col :span="20">-->
|
|
|
- <!--<el-tree v-show="!switchstatus" highlight-current :expand-on-click-node="true" node-key="CodeName"-->
|
|
|
- <!--:data="orgtreelist" :props="orgtreeprops" ref="orgmanagetree" check-on-click-node show-checkbox lazy-->
|
|
|
- <!--:load="getChildrens" :filter-node-method="filterNode">-->
|
|
|
- <!--</el-tree>-->
|
|
|
- <!--<el-tree v-show="switchstatus" ref="secmanagetree" :data="sectreelist" show-checkbox check-on-click-node-->
|
|
|
- <!--node-key="CodeName" :props="sectreeprops">-->
|
|
|
- <!--</el-tree>-->
|
|
|
- <!--</el-col>-->
|
|
|
- <!--</el-row>-->
|
|
|
- <!--<el-row style="margin-top: 30px">-->
|
|
|
- <!--备注信息:-->
|
|
|
- <!--<el-col :span="24">-->
|
|
|
- <!--<el-input type="textarea" :rows=3 v-model="dialogFormData.Remark" placeholder="请输入备注" style="width: 100%">-->
|
|
|
- <!--</el-input>-->
|
|
|
- <!--</el-col>-->
|
|
|
- <!--</el-row>-->
|
|
|
- <!--</el-form>-->
|
|
|
- <!--<span slot="footer" class="dialog-footer">-->
|
|
|
- <!--<el-button size="mini" @click="cancelOption()">取 消</el-button>-->
|
|
|
- <!--<el-button size="mini" type="primary" @click="ensureOption()">确 定</el-button>-->
|
|
|
- <!--</span>-->
|
|
|
- <!--</el-dialog>-->
|
|
|
-
|
|
|
-
|
|
|
- <el-dialog
|
|
|
- element-loading-text="正在添加请稍后..."
|
|
|
- title="物资类业务列表"
|
|
|
- :visible.sync="goodsDialog"
|
|
|
- top="5vh">
|
|
|
- <el-tabs v-model="tabIdx"
|
|
|
- style="margin-top: -30px;">
|
|
|
- <el-tab-pane label="准入编码"
|
|
|
- name="1">
|
|
|
- <el-form label-width="150px" v-loading="dialogloading" ref="dialogFormData" :rules="sortEntityFormRules" :model="dialogFormData" style="padding-top: 15px">
|
|
|
- <el-row style="margin-top: -10px">
|
|
|
- <el-col :span="12">
|
|
|
- <el-input v-if="!switchstatus" v-model="filterText" placeholder="请输入名称或代码" size="mini"
|
|
|
- style="width: 250px;"></el-input>
|
|
|
- <el-input v-if="switchstatus" v-model="searchText" placeholder="请输入名称或代码" size="mini" style="width: 250px;">
|
|
|
- </el-input>
|
|
|
- <el-button style="float: right;" type="primary" size="mini" @click="getsectreelist()"
|
|
|
- :disabled="!switchstatus">查询</el-button>
|
|
|
- <el-switch v-model="switchstatus" size="mini"></el-switch>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row :gutter="20" style="height: calc(100vh - 450px); overflow: auto; margin-top:20px">
|
|
|
- <el-col :span="20">
|
|
|
- <el-tree v-show="!switchstatus" highlight-current :expand-on-click-node="true" node-key="CodeName"
|
|
|
- :data="orgtreelist" :props="orgtreeprops" ref="orgmanagetree" check-on-click-node show-checkbox lazy
|
|
|
- :load="getChildrens" :filter-node-method="filterNode">
|
|
|
- </el-tree>
|
|
|
- <el-tree v-show="switchstatus" ref="secmanagetree" :data="sectreelist" show-checkbox check-on-click-node
|
|
|
- node-key="CodeName" :props="sectreeprops">
|
|
|
- </el-tree>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row style="margin-top: 30px">
|
|
|
- 备注信息:
|
|
|
- <el-col :span="24">
|
|
|
- <el-input type="textarea" :rows=3 v-model="dialogFormData.Remark" placeholder="请输入备注" style="width: 100%">
|
|
|
- </el-input>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
- <!--<span slot="footer" class="dialog-footer">-->
|
|
|
- <!--<el-button size="mini" @click="cancelOption()">取 消</el-button>-->
|
|
|
- <!--<el-button size="mini" type="primary" @click="ensureOption()">确 定</el-button>-->
|
|
|
- <!--</span>-->
|
|
|
- </el-tab-pane>
|
|
|
-
|
|
|
- <el-tab-pane label="顶级编码" v-loading="loading"
|
|
|
- name="2">
|
|
|
- <el-form ref="form"
|
|
|
- :inline="true"
|
|
|
- style="float: left;margin-top:-7px">
|
|
|
- <el-form-item label="">
|
|
|
- <el-input size="mini"
|
|
|
- style="width: 245px;"
|
|
|
- v-model="keyword"
|
|
|
- placeholder="请输入名称或代码"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- <span style="float: left">
|
|
|
- <el-button type="primary"
|
|
|
- size="mini"
|
|
|
- style="margin-left:10px;"
|
|
|
- @click="initData2019()">查询
|
|
|
- </el-button>
|
|
|
- <el-button type="primary"
|
|
|
- size="mini"
|
|
|
- style="margin-left:10px;"
|
|
|
- @click="goodsDialog = false">
|
|
|
- 取消</el-button>
|
|
|
- </span>
|
|
|
-
|
|
|
- <el-table :data="goodsList2019"
|
|
|
- border
|
|
|
- size="mini"
|
|
|
- @selection-change="handleSelectionChangeCert">
|
|
|
- <el-table-column type="selection"
|
|
|
- width="55">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="Code"
|
|
|
- label="编码"
|
|
|
- show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="Name"
|
|
|
- label="名称"
|
|
|
- show-overflow-tooltip></el-table-column>
|
|
|
- </el-table>
|
|
|
- <el-pagination @size-change="handleSizeChangeCert"
|
|
|
- @current-change="handleCurrentChangeCert"
|
|
|
- :current-page="currentPageCert"
|
|
|
- :page-sizes="[10, 15, 20, 25]"
|
|
|
- :page-size="sizeCert"
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
- :total="currentItemCountCert">
|
|
|
- </el-pagination>
|
|
|
- <el-form label-width="80px"
|
|
|
- label-position="top">
|
|
|
- <el-form-item label="备注信息">
|
|
|
- <el-input size="mini"
|
|
|
- type="textarea"
|
|
|
- style="width:100%"
|
|
|
- v-model="Remark1"></el-input>
|
|
|
- </el-form-item>
|
|
|
-
|
|
|
- </el-form>
|
|
|
-
|
|
|
- </el-tab-pane>
|
|
|
- </el-tabs>
|
|
|
- <div slot="footer"
|
|
|
- class="dialog-footer"
|
|
|
- v-if="tabIdx==1">
|
|
|
- <!--<el-button size="mini" @click="visible = false">取 消</el-button>-->
|
|
|
- <el-button type="primary"
|
|
|
- size="mini"
|
|
|
- @click="ensureOption()">确 定</el-button>
|
|
|
- </div>
|
|
|
- <div slot="footer"
|
|
|
- class="dialog-footer"
|
|
|
- v-if="tabIdx==2">
|
|
|
- <el-button type="primary"
|
|
|
- size="mini"
|
|
|
- @click="addBusiness1()">确 定</el-button>
|
|
|
- </div>
|
|
|
- </el-dialog>
|
|
|
-
|
|
|
- <el-dialog title="审批流程" :visible.sync="audithistoryshow" width="1200px">
|
|
|
- <wf-multi-history ref="WfHistory" :entryinfo="entrydetail"></wf-multi-history>
|
|
|
- </el-dialog>
|
|
|
-
|
|
|
- <el-dialog title="提交初审" :visible.sync="AuditdialogShow" width="520px">
|
|
|
- <el-form ref="searchForm" label-width="110px">
|
|
|
- <el-row>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item label="初审人员">
|
|
|
- <el-input ref="selectAuditer" readonly v-model="auditerName" placeholder="请选择初审人">
|
|
|
- <el-button slot="append" icon="el-icon-search" @click="chooseAuditorShow"></el-button>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="复审人员">
|
|
|
- <el-select ref="selectAuditer" v-model="fushenauditer" placeholder="请选择复审人" style="width: 100%" filterable
|
|
|
- allow-create default-first-option>
|
|
|
- <el-option v-for="item in secauditerOptions" :key="item.Id" :label="item.Realname" :value="item.Id">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="专业处室" v-if="allowpre">
|
|
|
- <el-cascader :options="preorgtreelist" :props="preorgtreeprops" :show-all-levels="false" filterable
|
|
|
- style="width: 100%" v-model="majorDept" placeholder="请选择专业处室" @change="orgtreeChange">
|
|
|
- </el-cascader>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item label="备注">
|
|
|
- <el-input v-model="auditform.AuditRemark" type="textarea" placeholder="请输入备注内容">
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-button size="mini" @click="AuditdialogShow = false">取 消</el-button>
|
|
|
- <el-button size="mini" type="primary" @click="AuditEntity">确定</el-button>
|
|
|
- </span>
|
|
|
- </el-dialog>
|
|
|
-
|
|
|
- <el-dialog title="分办" :visible.sync="ComAuditdialogShow" width="520px">
|
|
|
- <el-form ref="searchForm" label-width="100px">
|
|
|
- <el-row>
|
|
|
- <el-col :span="24">
|
|
|
- <!--<el-form-item label="分办人员">-->
|
|
|
- <!--<el-input ref="selectAuditerFen" readonly v-model="auditerName" placeholder="请选择分办人">-->
|
|
|
- <!--<el-button slot="append" icon="el-icon-search" @click="chooseAuditorShowFen"></el-button>-->
|
|
|
- <!--</el-input>-->
|
|
|
- <!--</el-form-item>-->
|
|
|
- <el-form-item label="分办单位">
|
|
|
- <el-select filterable
|
|
|
- v-model="UnitOrg"
|
|
|
- maxlength="255"
|
|
|
- clearable
|
|
|
- placeholder="请选择分办单位"
|
|
|
- style="width: 100%"
|
|
|
- @change="orgunitChange">
|
|
|
- <el-option v-for="item in UnitOrgOptions"
|
|
|
- :key="item.Id"
|
|
|
- :label="item.Fullname"
|
|
|
- :value="item.Id">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item label="备注">
|
|
|
- <el-input v-model="auditform.AuditRemark" type="textarea" placeholder="请输入备注内容">
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-button size="mini" @click="ComAuditdialogShow = false">取 消</el-button>
|
|
|
- <el-button size="mini" type="primary" @click="SubpEntity">确定</el-button>
|
|
|
- </span>
|
|
|
- </el-dialog>
|
|
|
-
|
|
|
- <choose-auditor ref="chooseAuditor" @close="setAuditer" @hideChooseAuditer="chooseAuditorVisible=false"
|
|
|
- :visible="chooseAuditorVisible"></choose-auditor>
|
|
|
- <choose-auditor-fen ref="chooseAuditorFen" @close="setAuditerFen" @hideChooseAuditer="chooseAuditorVisibleFen=false"
|
|
|
- :visible="chooseAuditorVisibleFen" typeCode="01"></choose-auditor-fen>
|
|
|
-
|
|
|
- <el-dialog title="新增文件" :visible.sync="newVisible" top="5vh">
|
|
|
- <el-form :model="newSubfileForm" label-width="100px">
|
|
|
- <el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="资质名称" required>
|
|
|
- <el-select v-model="newSubfileForm.NeedFileType" placeholder="请输文件类型" size="medium">
|
|
|
- <el-option v-for="item in dynamicTableColumns" :key="item.prop" :label="item.label" :value="item.label">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="有效日期" required>
|
|
|
- <el-date-picker style="width: 100%" v-model="newSubfileForm.EffectDate" type="date" placeholder="请选择有效日期">
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item label="描述">
|
|
|
- <el-input v-model="newSubfileForm.OtherRemark" type="textarea" :rows=3 placeholder="请输入备注信息"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="资质文件">
|
|
|
- <el-upload multiple style="margin-top: 10px;" action="" ref="newrefuploadattach"
|
|
|
- :http-request="uploadrequest" class="attach-uploader" :before-upload="beforeAvatarUpload">
|
|
|
- <i class="el-icon-plus attach-uploader-icon"></i>
|
|
|
- <div slot="tip" class="el-upload__tip">大小为512KB-5MB
|
|
|
- </div>
|
|
|
- </el-upload>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
- <div slot="footer" class="dialog-footer" style="margin-top:-30px;">
|
|
|
- <el-button @click="newVisible = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="makeNewSure()">确 定</el-button>
|
|
|
- </div>
|
|
|
- </el-dialog>
|
|
|
- </div>
|
|
|
-</template>
|
|
|
-
|
|
|
-<script>
|
|
|
- import {
|
|
|
- mapGetters
|
|
|
- } from 'vuex'
|
|
|
- import axios from 'axios'
|
|
|
- import WfMultiHistory from '@/components/workflow/wfmultihistory.vue'
|
|
|
- import uploadajax from '@/assets/js//uploadajax.js'
|
|
|
- import suppapi from '@/api/oilsupplier/supplier'
|
|
|
- import api from '@/api/oilsupplier/supplierappendsub'
|
|
|
- import api2 from '@/api/oilsupplier/supplierappend'
|
|
|
- import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
|
|
|
- import ChooseAuditorFen from '@/components/oilsupplier/chooseauditorfenban'
|
|
|
- import setapi from '@/api/oilsupplier/oilclassorgset'
|
|
|
-
|
|
|
- export default {
|
|
|
- components: {
|
|
|
- WfMultiHistory,
|
|
|
- ChooseAuditor,
|
|
|
- ChooseAuditorFen
|
|
|
- },
|
|
|
- computed: {
|
|
|
- ...mapGetters({
|
|
|
- authUser: 'authUser'
|
|
|
- })
|
|
|
- },
|
|
|
- watch: {
|
|
|
- filterText (val) {
|
|
|
- this.$refs.orgmanagetree.filter(val)
|
|
|
- }
|
|
|
- },
|
|
|
- name: 'oilsuppliercertappendsub',
|
|
|
-
|
|
|
- data () {
|
|
|
- var CheckSelectedOption = (rule, value, callback) => {
|
|
|
- if (this.selectedOrgList && this.selectedOrgList.length < 1) {
|
|
|
- callback(new Error('请选择推荐单位'))
|
|
|
- } else {
|
|
|
- callback()
|
|
|
- }
|
|
|
- }
|
|
|
- var CheckSelectedOption2 = (rule, value, callback) => {
|
|
|
- if (this.selectedOptList && this.selectedOptList.length < 1) {
|
|
|
- callback(new Error('请选择增项'))
|
|
|
- } else {
|
|
|
- callback()
|
|
|
- }
|
|
|
- }
|
|
|
- var CheckSelectedOption3 = (rule, value, callback) => {
|
|
|
- if (this.supplierOptions === '') {
|
|
|
- callback(new Error('请选择供应方公司'))
|
|
|
- } else {
|
|
|
- callback()
|
|
|
- }
|
|
|
- }
|
|
|
- return {
|
|
|
- // 456
|
|
|
- Remark: '',
|
|
|
- Remark1: '',
|
|
|
- loading: false,
|
|
|
- tabIdx: '1',
|
|
|
- sizeCert: 10,
|
|
|
- currentItemCountCert: 0,
|
|
|
- currentPageCert: 1, // 分页
|
|
|
- keyword: '',
|
|
|
- goodsList2019: [],
|
|
|
- sectionCert: [],
|
|
|
- goodsDialog: false,
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- UnitOrg: '',
|
|
|
- allowpre: true,
|
|
|
- newVisible: false,
|
|
|
- filterText: '',
|
|
|
- searchText: '',
|
|
|
- switchstatus: false,
|
|
|
- audithistoryshow: false,
|
|
|
- chooseAuditorVisible: false,
|
|
|
- chooseAuditorVisibleFen: false,
|
|
|
- orgauditOptions: [],
|
|
|
- UnitOrgOptions: [],
|
|
|
- sectreelist: [],
|
|
|
- orgtreelist: [], // 二级单位
|
|
|
- preorgtreelist: [],
|
|
|
- secauditerOptions: [],
|
|
|
- fushenauditer: '', // 复审人员
|
|
|
- majorDept: [100000000, 100000001, 100000071], // 专业可是
|
|
|
- AuditdialogShow: false, // 提交审核弹框
|
|
|
- ComAuditdialogShow: false,
|
|
|
- organizeOption: [], // 审批部门
|
|
|
- auditerOption: [], // 审批人
|
|
|
- orgtreeprops: {
|
|
|
- value: 'Id',
|
|
|
- label: 'CodeName',
|
|
|
- children: 'children',
|
|
|
- isLeaf: 'Leaf',
|
|
|
- disabled: 'disabled'
|
|
|
- },
|
|
|
- sectreeprops: {
|
|
|
- children: 'children',
|
|
|
- label: 'CodeName',
|
|
|
- disabled: 'disabled'
|
|
|
- },
|
|
|
- preorgtreeprops: {
|
|
|
- value: 'id',
|
|
|
- label: 'name',
|
|
|
- children: 'children'
|
|
|
- },
|
|
|
- entrydetail: {
|
|
|
- process: '',
|
|
|
- business: '',
|
|
|
- instance: '',
|
|
|
- Status: ''
|
|
|
- },
|
|
|
- auditform: {
|
|
|
- FirstAuditName: '',
|
|
|
- CertId: '',
|
|
|
- AuditRemark: '',
|
|
|
- SecondAudit: '',
|
|
|
- ThirdAudit: '',
|
|
|
- TypeCode: ''
|
|
|
- },
|
|
|
- auditbusList: [],
|
|
|
- SupplierId: 0,
|
|
|
- SupplierTypeCode: '',
|
|
|
- SupplierCertId: 0,
|
|
|
- subfileList: [],
|
|
|
- visible: false,
|
|
|
- dynamicTableColumns: [],
|
|
|
- flag: '',
|
|
|
- editbtn: true,
|
|
|
- // 资质文件
|
|
|
- SubfileForm: {
|
|
|
- Id: '',
|
|
|
- SupplierId: '',
|
|
|
- SupplierTypeCode: '',
|
|
|
- SupplierCertSubId: '',
|
|
|
- CertSubName: '',
|
|
|
- NeedFileType: '',
|
|
|
- NeedFileCode: '',
|
|
|
- FileType: '',
|
|
|
- FileExt: '',
|
|
|
- FileName: '',
|
|
|
- EffectDate: new Date(),
|
|
|
- FileUrl: '',
|
|
|
- OtherRemark: '',
|
|
|
- Remark: '',
|
|
|
- IsDelete: 0,
|
|
|
- FileUrlList: []
|
|
|
- },
|
|
|
- newSubfileForm: {
|
|
|
- Id: '',
|
|
|
- SupplierId: '',
|
|
|
- SupplierTypeCode: '01',
|
|
|
- SupplierCertSubId: '',
|
|
|
- CertSubName: '',
|
|
|
- SupType: 2,
|
|
|
- NeedFileType: '',
|
|
|
- NeedFileCode: '',
|
|
|
- FileType: 66,
|
|
|
- FileExt: '',
|
|
|
- FileName: '',
|
|
|
- EffectDate: new Date(),
|
|
|
- FileUrl: '',
|
|
|
- OtherRemark: '',
|
|
|
- Remark: '',
|
|
|
- IsDelete: 0,
|
|
|
- FileUrlList: []
|
|
|
- },
|
|
|
- checkList: [],
|
|
|
- auditer: '',
|
|
|
- auditerName: '',
|
|
|
- FirstAudit: '',
|
|
|
- supplierList: [], // 供应方公司列表
|
|
|
- supplierOptions: '', // 已选择的供应方公司列表
|
|
|
- // serviceType: '', //服务类型()
|
|
|
- optionsList: [], // 增项分类层级列表
|
|
|
- selectedOptList: [], // 已选择的增项分类列表
|
|
|
- goodsProps: {
|
|
|
- value: 'id',
|
|
|
- label: 'Name',
|
|
|
- children: 'children'
|
|
|
- },
|
|
|
- ParentId: 0, // 物资类初始父类Id值:0
|
|
|
- flagId: 0, // 标记是否第一次点击
|
|
|
- organizeTreeList: [], // 推荐单位层级列表
|
|
|
- selectedOrgList: [], // 已选择的单位列表
|
|
|
- organizeTreeProps: {
|
|
|
- value: 'id',
|
|
|
- label: 'Fullname',
|
|
|
- children: 'children'
|
|
|
- },
|
|
|
- organizeform: {
|
|
|
- IsInnerOrganize: 1,
|
|
|
- parentid: 0,
|
|
|
- fullname: '',
|
|
|
- description: '',
|
|
|
- id: 0
|
|
|
- },
|
|
|
- // 增项信息表
|
|
|
- formData: {
|
|
|
- Id: '',
|
|
|
- Step: 1,
|
|
|
- Status: '',
|
|
|
- ProcessKey: '',
|
|
|
- SupplierId: 0,
|
|
|
- SupplierCertId: 0,
|
|
|
- RecUnitFlag: '', // 推荐单位的级联Id标记
|
|
|
- RecUnitId: '', // 推荐单位编码
|
|
|
- RecUnitName: '', // 推荐单位名称
|
|
|
- AppendType: '', // 增项类别(01 物资类,02 基建类,03 技术服务类)
|
|
|
- Remark: '' // 备注
|
|
|
- },
|
|
|
- dialogloading: false,
|
|
|
- dialogVisible: false, // 增项分类dialog
|
|
|
- dialogTitle: '',
|
|
|
- dialogFormData: {
|
|
|
- Id: '',
|
|
|
- SupplierId: 0, // 供方表ID
|
|
|
- SupplierCertId: 0, // 供方证书表ID
|
|
|
- SupplierCertAppendId: '', // 增项信息表ID
|
|
|
- SubClassId: 1, // 分类表主键(物资类或基建类或技术服务类)
|
|
|
- SortFlag: '', // 分类标记
|
|
|
- Code: '', // 分类编码
|
|
|
- Name: '', // 分类名称
|
|
|
- Remark: '' // 备注
|
|
|
- },
|
|
|
- // 列表数据
|
|
|
- entityList: [],
|
|
|
- myentityList: [],
|
|
|
- // 分页参数
|
|
|
- size: 10,
|
|
|
- currentPage: 1,
|
|
|
- currentItemCount: 0,
|
|
|
- // 列表排序
|
|
|
- Column: {
|
|
|
- Order: '',
|
|
|
- Prop: ''
|
|
|
- },
|
|
|
- // 增项表单规则
|
|
|
- appendRules: {
|
|
|
- checkSelectedRecUnitName: [{
|
|
|
- required: true,
|
|
|
- validator: CheckSelectedOption,
|
|
|
- trigger: 'blur'
|
|
|
- }],
|
|
|
- checkSelectedSupplier: [{
|
|
|
- required: true,
|
|
|
- validator: CheckSelectedOption3,
|
|
|
- trigger: 'blur'
|
|
|
- }]
|
|
|
- },
|
|
|
- // 增项分类表单规则
|
|
|
- sortEntityFormRules: {
|
|
|
- checkSelectedOptList: [{
|
|
|
- required: true,
|
|
|
- validator: CheckSelectedOption2,
|
|
|
- trigger: 'blur'
|
|
|
- }]
|
|
|
- },
|
|
|
- Id: '', // 传的参数
|
|
|
- editFlag: '', // 编辑操作标记
|
|
|
- waituploads: [], // 等待上传的附件列表
|
|
|
- IsCompanyUser: ''
|
|
|
- }
|
|
|
- },
|
|
|
- created () {
|
|
|
- this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
|
|
|
- // this.serviceType = this.$route.params.opera //获取服务类型
|
|
|
- this.Id = this.$route.query.Id
|
|
|
- this.editFlag = this.$route.query.editFlag
|
|
|
- if (this.editFlag == '1' && this.Id !== '') {
|
|
|
- this.getEntityById()
|
|
|
- this.dialogFormData.SupplierCertAppendId = this.Id
|
|
|
- }
|
|
|
- this.getSupplierList() // 获取供应方公司列表
|
|
|
- this.getDictOptions()
|
|
|
- this.getorgtreelist()
|
|
|
- this.orgtreeChange(this.majorDept)
|
|
|
- this.initTableHeader()
|
|
|
- this.initData2019()
|
|
|
- },
|
|
|
- methods: {
|
|
|
- addSortData1 () {
|
|
|
- this.goodsDialog = true
|
|
|
- },
|
|
|
- newdeletedata (val) {
|
|
|
- let _this = this
|
|
|
- _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- _this.$axios.delete('supplierfile/subfiledelete/' + val.Id, {})
|
|
|
- .then(function (response) {
|
|
|
- if (response.data.code === 0) {
|
|
|
- _this.$message({
|
|
|
- type: 'success',
|
|
|
- message: response.data.message
|
|
|
- })
|
|
|
- _this.getFileList()
|
|
|
- } else {
|
|
|
- _this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: response.data.message
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(function (error) {
|
|
|
- console.log(error)
|
|
|
- })
|
|
|
- })
|
|
|
- .catch(() => {})
|
|
|
- },
|
|
|
- makeNewSure () {
|
|
|
- if (this.$refs.newrefuploadattach.uploadFiles && this.$refs.newrefuploadattach.uploadFiles.length > 0) {
|
|
|
- // 上传附件是否完成判断
|
|
|
- if (!this.newattachissuccess()) {
|
|
|
- this.$message.error('有附件未成功上传!不能保存数据')
|
|
|
- return
|
|
|
- }
|
|
|
- this.newgetattachissuccess()
|
|
|
- this.addSubfile()
|
|
|
- } else {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '请上传文件!'
|
|
|
- })
|
|
|
- }
|
|
|
- },
|
|
|
- addSubfile () {
|
|
|
- let _this = this
|
|
|
- _this.newSubfileForm.SupplierId = parseInt(this.SupplierId)
|
|
|
- _this.$axios.post('/supplierfile/addsubfile/', _this.newSubfileForm)
|
|
|
- .then(res => {
|
|
|
- if (res.data.code === 0) {
|
|
|
- _this.$message({
|
|
|
- type: 'success',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- this.newVisible = false
|
|
|
- this.getFileList()
|
|
|
- this.$refs.newrefuploadattach.uploadFiles = []
|
|
|
- } else {
|
|
|
- _this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
- initTableHeader () {
|
|
|
- setapi.initGoodTableHeader(this.$axios).then(res => {
|
|
|
- this.dynamicTableColumns = res.data.items
|
|
|
- })
|
|
|
- },
|
|
|
- orgtreeChange (val) {
|
|
|
- this.userOptions = []
|
|
|
- let deptid = val[val.length - 1]
|
|
|
- let auditstepcode = 'PROF_RECE'
|
|
|
- suppapi.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
|
|
|
- this.userOptions = res.data.item
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
- // 获取推荐单位列表
|
|
|
- getOrgTreeList () {
|
|
|
- let _this = this
|
|
|
- let params = {
|
|
|
- IsInnerOrganize: this.organizeform.IsInnerOrganize
|
|
|
- }
|
|
|
- _this.$axios.get('organizes/orgalllist', {
|
|
|
- params
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- _this.organizeTreeList = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
|
|
|
- if (_this.authUser.Profile.IsCompanyUser === 0) {
|
|
|
- this.selectedOrgList = _this.authUser.Profile.Superior.split(',').map((val) => {
|
|
|
- return parseInt(val)
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
- // 获取供应方公司列表
|
|
|
- getSupplierList () {
|
|
|
- let _this = this
|
|
|
- let params = {
|
|
|
- SuppTypeCode: '01'
|
|
|
- }
|
|
|
- _this.$axios.get('/suppliercertappend/getsupplier', {params})
|
|
|
- .then(res => {
|
|
|
- _this.supplierList = res.data
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
- // 获取物资类第一级分类
|
|
|
- // getGoodsTreeList(Id) {
|
|
|
- // let _this = this
|
|
|
- // this.$axios.get('goodsaptitudeclass/getgoodsclasslist/' + Id, {})
|
|
|
- // .then(res => {
|
|
|
- // _this.optionsList = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Name')
|
|
|
- // _this.optionsList.forEach((item, index) => {
|
|
|
- // _this.$set(this.optionsList[index], 'children', [])
|
|
|
- // })
|
|
|
- // })
|
|
|
- // .catch(err => {
|
|
|
- // console.error(err)
|
|
|
- // })
|
|
|
- // },
|
|
|
-
|
|
|
- // 获取下一级所有分类
|
|
|
- getChildrens (val, resolve) {
|
|
|
- let Id = 0
|
|
|
- if (val.level === 0) {
|
|
|
- Id = 0
|
|
|
- } else {
|
|
|
- Id = val.data.Id
|
|
|
- }
|
|
|
- this.$axios.get('goodsaptitude/goodschildlistbypid/' + Id, {})
|
|
|
- .then(res => {
|
|
|
- if (!res.data.items || res.data.items.length <= 0) {
|
|
|
- val.isLeaf = true
|
|
|
- return resolve([])
|
|
|
- }
|
|
|
- for (let idx in res.data.items) {
|
|
|
- if (res.data.items[idx].Code.length <= 4) {
|
|
|
- res.data.items[idx].disabled = true
|
|
|
- }
|
|
|
- res.data.items[idx].Leaf = res.data.items[idx].Leaf === '1'
|
|
|
- }
|
|
|
- return resolve(res.data.items)
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
- filterNode (value, data) {
|
|
|
- if (!value) return true
|
|
|
- return data.CodeName.indexOf(value) !== -1
|
|
|
- },
|
|
|
- // 获取分类级联Id
|
|
|
- getCode (item) {
|
|
|
- let sortFlagStr = item.toString()
|
|
|
- this.dialogFormData.SortFlag = sortFlagStr
|
|
|
- this.getCodeById(item[item.length - 1]) // 根据分类Id获取Code
|
|
|
- },
|
|
|
-
|
|
|
- commitaudit () {
|
|
|
- this.AuditdialogShow = true
|
|
|
- // if (this.subfileList && this.subfileList.length > 0) {
|
|
|
- // for (var i = 0; i < this.subfileList.length; i++) {
|
|
|
- // if (this.subfileList[i].FileType === 1 && this.subfileList[i].FileUrl === '') {
|
|
|
- // this.$message({
|
|
|
- // type: 'warning',
|
|
|
- // message: '请上传文件' + this.subfileList[i].NeedFileType + '!'
|
|
|
- // })
|
|
|
- // return
|
|
|
- // }
|
|
|
- // }
|
|
|
- // } else {
|
|
|
- // this.AuditdialogShow = true
|
|
|
- // }
|
|
|
- },
|
|
|
- commitfenban () {
|
|
|
- this.ComAuditdialogShow = true
|
|
|
- // if (this.subfileList && this.subfileList.length > 0) {
|
|
|
- // for (var i = 0; i < this.subfileList.length; i++) {
|
|
|
- // if (this.subfileList[i].FileType === 1 && this.subfileList[i].FileUrl === '') {
|
|
|
- // this.$message({
|
|
|
- // type: 'warning',
|
|
|
- // message: '请上传文件' + this.subfileList[i].NeedFileType + '!'
|
|
|
- // })
|
|
|
- // return
|
|
|
- // }
|
|
|
- // }
|
|
|
- // } else {
|
|
|
- // this.ComAuditdialogShow = true
|
|
|
- // }
|
|
|
- },
|
|
|
-
|
|
|
- // 根据分类Id获取Code
|
|
|
- getCodeById (Id) {
|
|
|
- let _this = this
|
|
|
- this.$axios.get('goodsaptitudeclass/getcode/' + Id, {})
|
|
|
- .then(res => {
|
|
|
- _this.dialogFormData.Code = res.data.items[0].Code
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
- // 获取SupplierId和SupplierCertId
|
|
|
- getInfo (vId) { // 这个vId也就是value值
|
|
|
- let obj = {}
|
|
|
- obj = this.supplierList.find((item) => {
|
|
|
- return item.SupplierId === vId // 筛选出匹配数据
|
|
|
- })
|
|
|
- this.formData.SupplierId = parseInt(obj.SupplierId)
|
|
|
- this.formData.SupplierCertId = parseInt(obj.SupplierCertId)
|
|
|
- },
|
|
|
-
|
|
|
- // 获取推荐单位级联Id
|
|
|
- getCode2 (item) {
|
|
|
- let codeStr = item.toString()
|
|
|
- this.formData.RecUnitFlag = codeStr
|
|
|
- },
|
|
|
-
|
|
|
- // 审批历史
|
|
|
- auhistory () {
|
|
|
- this.audithistoryshow = true
|
|
|
- },
|
|
|
-
|
|
|
- // 获取需要修改的增项信息
|
|
|
- getEntityById () {
|
|
|
- let _this = this
|
|
|
- api2.getEntityById(_this.Id, _this.$axios).then(res => {
|
|
|
- _this.formData = res.data
|
|
|
- this.entrydetail.process = this.formData.ProcessKey
|
|
|
- this.entrydetail.business = _this.Id
|
|
|
- this.entrydetail.instance = this.formData.WorkFlowId
|
|
|
- this.entrydetail.Status = this.formData.Status
|
|
|
- if (this.formData.InStyle == '2' || this.formData.InStyle == '6' || this.formData.InStyle == '4') {
|
|
|
- this.allowpre = false
|
|
|
- }
|
|
|
- this.getFileList()
|
|
|
- // 显示公司名
|
|
|
- _this.supplierOptions = _this.formData.SupplierId.toString()
|
|
|
- _this.getSortList()
|
|
|
- _this.getMySortList()
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
- // 获取资质文件
|
|
|
- getFileList () {
|
|
|
- this.SupplierId = this.formData.SupplierId
|
|
|
- this.SupplierTypeCode = this.formData.AppendType
|
|
|
- let _this = this
|
|
|
- const params = {
|
|
|
- AppendId: this.formData.Id,
|
|
|
- SupplierId: this.SupplierId,
|
|
|
- SupplierTypeCode: this.SupplierTypeCode,
|
|
|
- _currentPage: 1,
|
|
|
- _size: 1000
|
|
|
- }
|
|
|
- _this.$axios.get('supplierfile/filelistall', {
|
|
|
- params
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- _this.subfileList = res.data.items
|
|
|
- _this.currentItemCount = res.data.currentItemCount
|
|
|
- for (let idx in _this.subfileList) {
|
|
|
- _this.subfileList[idx].FileUrlList = _this.subfileList[idx].FileUrl.split('$')
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
- makesure () {
|
|
|
- if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
|
|
|
- // 上传附件是否完成判断
|
|
|
- if (!this.attachissuccess()) {
|
|
|
- this.$message.error('有附件未成功上传!不能保存数据')
|
|
|
- return
|
|
|
- }
|
|
|
- this.getattachissuccess()
|
|
|
- this.editSubfile()
|
|
|
- } else {
|
|
|
- this.editSubfile()
|
|
|
- }
|
|
|
- },
|
|
|
- editSubfile () {
|
|
|
- let _this = this
|
|
|
- _this.SubfileForm.SupplierId = parseInt(_this.SubfileForm.SupplierId)
|
|
|
- _this.SubfileForm.SupplierCertSubId = parseInt(_this.SubfileForm.SupplierCertSubId)
|
|
|
- _this.$axios.put('/supplierfile/editsubfile/' + _this.SubfileForm.Id, _this.SubfileForm)
|
|
|
- .then(res => {
|
|
|
- if (res.data.code === 0) {
|
|
|
- _this.$message({
|
|
|
- type: 'success',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- this.visible = false
|
|
|
- // this.initData()
|
|
|
- this.getFileList()
|
|
|
- this.$refs.refuploadattach.uploadFiles = []
|
|
|
- } else {
|
|
|
- _this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
- fileurlcut (val, index) {
|
|
|
- let fileurlall = val.split('$')[index]
|
|
|
- let fileurl = fileurlall.split('|')
|
|
|
- let fullUrl = fileurl[0]
|
|
|
- // 内网服务器专用
|
|
|
- if (process.client && (fullUrl.indexOf('upfile') === 0 || fullUrl.indexOf('/upfile') === 0)) {
|
|
|
- const myDomain = window.location.host
|
|
|
- fullUrl = 'http://' + myDomain + '/' + fullUrl
|
|
|
- } else {
|
|
|
- fullUrl = 'http://' + fullUrl
|
|
|
- }
|
|
|
- return fullUrl
|
|
|
- },
|
|
|
- openDialog (val) {
|
|
|
- this.SubfileForm.Id = val.Id
|
|
|
- this.SubfileForm.SupplierId = val.SupplierId
|
|
|
- this.SubfileForm.SupplierTypeCode = val.SupplierTypeCode
|
|
|
- if (val.SupplierCertSubId == 0) {
|
|
|
- this.SubfileForm.SupplierCertSubId = ''
|
|
|
- } else {
|
|
|
- this.SubfileForm.SupplierCertSubId = val.SupplierCertSubId
|
|
|
- }
|
|
|
- this.SubfileForm.CertSubName = val.CertSubName
|
|
|
- this.SubfileForm.NeedFileType = val.NeedFileType
|
|
|
- this.SubfileForm.NeedFileCode = val.NeedFileCode
|
|
|
- this.SubfileForm.FileExt = val.FileExt
|
|
|
- this.SubfileForm.FileType = val.FileType
|
|
|
- this.SubfileForm.FileName = val.FileName
|
|
|
- this.SubfileForm.EffectDate = new Date(val.EffectDate)
|
|
|
- this.SubfileForm.FileUrl = val.FileUrl
|
|
|
- this.getwendanginfo(val.FileUrl)
|
|
|
- this.SubfileForm.OtherRemark = val.OtherRemark
|
|
|
- this.SubfileForm.Remark = val.Remark
|
|
|
- this.SubfileForm.IsDelete = val.IsDelete
|
|
|
- this.visible = true
|
|
|
- },
|
|
|
- showDialog () {
|
|
|
- this.newVisible = true
|
|
|
- },
|
|
|
- // 文档列表
|
|
|
- getwendanginfo (iUrl) {
|
|
|
- let _this = this
|
|
|
- _this.doclist = []
|
|
|
- let exArr = iUrl.split('|')
|
|
|
- let params = {
|
|
|
- name: exArr[1],
|
|
|
- url: exArr[0]
|
|
|
- }
|
|
|
- _this.doclist.push(params)
|
|
|
- },
|
|
|
- beforeAvatarUpload (file) {
|
|
|
- /* let isLt512K = file.size / 1024 < 512
|
|
|
- if (isLt512K) {
|
|
|
- this.$message.error('上传文件大小不能小于 512KB!')
|
|
|
- return false
|
|
|
- } */
|
|
|
- let isLt50m = file.size / 1024 / 1024 / 5 < 1
|
|
|
- if (!isLt50m) {
|
|
|
- this.$message.error('上传文件大小不能超过 5MB!')
|
|
|
- return false
|
|
|
- }
|
|
|
- return true
|
|
|
- },
|
|
|
- uploadrequest (option) {
|
|
|
- let _this = this
|
|
|
- if (process.client) {
|
|
|
- const myDomain = window.location.host
|
|
|
- axios.post(process.env.upfilehost, {})
|
|
|
- .then(function (res) {
|
|
|
- if (res.data && res.data.fid && res.data.fid !== '') {
|
|
|
- if (res.data.publicUrl.indexOf('/upfile') === 0) {
|
|
|
- option.action = `http://${myDomain}/${res.data.publicUrl}/${res.data.fid}`
|
|
|
- } else {
|
|
|
- option.action = `http://${res.data.publicUrl}/${res.data.fid}`
|
|
|
- }
|
|
|
- _this.waituploads.push({
|
|
|
- uid: option.file.uid,
|
|
|
- url: res.data.publicUrl,
|
|
|
- fid: res.data.fid
|
|
|
- })
|
|
|
- // axios.post(process.env.upfilehost, {})
|
|
|
- // .then(function (res) {
|
|
|
- // if (res.data && res.data.fid && res.data.fid !== '') {
|
|
|
- // option.action = `http://${res.data.publicUrl}/${res.data.fid}`
|
|
|
- // _this.waituploads.push({
|
|
|
- // uid: option.file.uid,
|
|
|
- // url: res.data.publicUrl,
|
|
|
- // fid: res.data.fid
|
|
|
- // })
|
|
|
- uploadajax(option)
|
|
|
- } else {
|
|
|
- _this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '未上传成功!请刷新界面重新上传!'
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(function (error) {
|
|
|
- _this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '未上传成功!请重新上传!'
|
|
|
- })
|
|
|
- })
|
|
|
- }
|
|
|
- },
|
|
|
- // 判断附件是否上传成功
|
|
|
- attachissuccess () {
|
|
|
- if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
|
|
|
- for (let i = 0; i < this.$refs.refuploadattach.uploadFiles.length; i++) {
|
|
|
- if (this.$refs.refuploadattach.uploadFiles[i].status !== 'success') {
|
|
|
- return false
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- return true
|
|
|
- },
|
|
|
- newattachissuccess () {
|
|
|
- if (this.$refs.newrefuploadattach.uploadFiles && this.$refs.newrefuploadattach.uploadFiles.length > 0) {
|
|
|
- for (let i = 0; i < this.$refs.newrefuploadattach.uploadFiles.length; i++) {
|
|
|
- if (this.$refs.newrefuploadattach.uploadFiles[i].status !== 'success') {
|
|
|
- return false
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- return true
|
|
|
- },
|
|
|
- getattachissuccess () {
|
|
|
- this.SubfileForm.FileUrl = ''
|
|
|
- this.SubfileForm.FileName = ''
|
|
|
- if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
|
|
|
- for (let i = 0; i < this.$refs.refuploadattach.uploadFiles.length; i++) {
|
|
|
- if (this.$refs.refuploadattach.uploadFiles[i].status === 'success') {
|
|
|
- for (let j = 0; j < this.waituploads.length; j++) {
|
|
|
- if (this.waituploads[j].uid === this.$refs.refuploadattach.uploadFiles[i].uid) {
|
|
|
- this.SubfileForm.FileUrl +=
|
|
|
- `${this.waituploads[j].url}/${this.waituploads[j].fid}|${this.$refs.refuploadattach.uploadFiles[i].name}$`
|
|
|
- this.SubfileForm.FileName += `${this.$refs.refuploadattach.uploadFiles[i].name}$`
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- newgetattachissuccess () {
|
|
|
- this.newSubfileForm.FileUrl = ''
|
|
|
- this.newSubfileForm.FileName = ''
|
|
|
- if (this.$refs.newrefuploadattach.uploadFiles && this.$refs.newrefuploadattach.uploadFiles.length > 0) {
|
|
|
- for (let i = 0; i < this.$refs.newrefuploadattach.uploadFiles.length; i++) {
|
|
|
- if (this.$refs.newrefuploadattach.uploadFiles[i].status === 'success') {
|
|
|
- for (let j = 0; j < this.waituploads.length; j++) {
|
|
|
- if (this.waituploads[j].uid === this.$refs.newrefuploadattach.uploadFiles[i].uid) {
|
|
|
- this.newSubfileForm.FileUrl +=
|
|
|
- `${this.waituploads[j].url}/${this.waituploads[j].fid}|${this.$refs.newrefuploadattach.uploadFiles[i].name}$`
|
|
|
- this.newSubfileForm.FileName += `${this.$refs.newrefuploadattach.uploadFiles[i].name}$`
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- clickachment (url, uid) {
|
|
|
- window.open(`http://${url}`)
|
|
|
- },
|
|
|
-
|
|
|
- // 保存增项信息
|
|
|
- saveEntity () {
|
|
|
- let _this = this
|
|
|
- this.$refs['EntityForm'].validate((valid) => {
|
|
|
- if (valid) {
|
|
|
- if (_this.editFlag == '1' && _this.Id !== '') {
|
|
|
- _this.updateData()
|
|
|
- } else {
|
|
|
- _this.addAppend()
|
|
|
- }
|
|
|
- } else {
|
|
|
- return false
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
- // 更新增项信息
|
|
|
- updateData () {
|
|
|
- this.formData.SupplierName = this.$refs.suppselect.selectedLabel + ''
|
|
|
- let _this = this
|
|
|
- api2.updateEntity(_this.Id, _this.formData, _this.$axios).then(res => {
|
|
|
- if (res.data.code === 0) {
|
|
|
- this.getEntityById()
|
|
|
- this.$message({
|
|
|
- type: 'success',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- }
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
- // 获取增项分类表
|
|
|
- getSortList () {
|
|
|
- // 分页及列表条件
|
|
|
- let params = {
|
|
|
- // _currentPage: this.currentPage,
|
|
|
- // _size: this.size,
|
|
|
- // Order: this.Column.Order,
|
|
|
- // Prop: this.Column.Prop,
|
|
|
- SupplierCertAppendId: this.dialogFormData.SupplierCertAppendId,
|
|
|
- SupCertId: this.formData.SupplierCertId,
|
|
|
- SupTypeCode: this.formData.AppendType
|
|
|
- }
|
|
|
-
|
|
|
- // 访问接口
|
|
|
- api.getList(params, this.$axios).then(res => {
|
|
|
- this.entityList = res.data.item
|
|
|
- // this.currentItemCount = res.data.currentItemCount
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
- // 获取增项分类表
|
|
|
- getMySortList () {
|
|
|
- // 分页及列表条件
|
|
|
- let params = {
|
|
|
- // _currentPage: this.currentPage,
|
|
|
- // _size: this.size,
|
|
|
- // Order: this.Column.Order,
|
|
|
- // Prop: this.Column.Prop,
|
|
|
- SupplierCertAppendId: this.dialogFormData.SupplierCertAppendId,
|
|
|
- SupCertId: this.formData.SupplierCertId,
|
|
|
- SupTypeCode: this.formData.AppendType
|
|
|
- }
|
|
|
-
|
|
|
- // 访问接口
|
|
|
- api.getMyList(params, this.$axios).then(res => {
|
|
|
- this.myentityList = res.data.item
|
|
|
- // this.currentItemCount = res.data.currentItemCount
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
- // 添加增项信息
|
|
|
- addAppend () {
|
|
|
- this.formData.SupplierName = this.$refs.suppselect.selectedLabel + ''
|
|
|
- let _this = this
|
|
|
- _this.formData.AppendType = '01'
|
|
|
- _this.$axios.post('/suppliercertappend/addappend/', _this.formData)
|
|
|
- .then(res => {
|
|
|
- if (res.data.code === 0) {
|
|
|
- this.entityList = res.data.item
|
|
|
- this.dialogFormData.SupplierCertAppendId = res.data.info // 接收插入数据后返回的Id
|
|
|
- this.Id = res.data.info
|
|
|
- this.getEntityById()
|
|
|
- _this.$message({
|
|
|
- type: 'success',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- } else {
|
|
|
- _this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
- // 添加增项分类
|
|
|
- addSortData () {
|
|
|
- let _this = this
|
|
|
- // 先判断是否保存了增项信息
|
|
|
- if (this.checkAppendSave()) {
|
|
|
- _this.dialogTitle = '添加'
|
|
|
- _this.dialogVisible = true
|
|
|
- _this.selectedOptList = [] // 置空,防止先修改再添加时的已选分类信息保留
|
|
|
- _this.dialogFormData.Id = ''
|
|
|
- _this.dialogFormData.SortFlag = ''
|
|
|
- _this.dialogFormData.Code = ''
|
|
|
- _this.dialogFormData.Remark = ''
|
|
|
- }
|
|
|
- },
|
|
|
-
|
|
|
- // 编辑增项分类
|
|
|
- editSortData (row) {
|
|
|
- let _this = this
|
|
|
- _this.dialogTitle = '编辑'
|
|
|
- _this.dialogVisible = true
|
|
|
- _this.dialogFormData = row
|
|
|
- // 显示原增项结构
|
|
|
- if (_this.dialogFormData.SortFlag != null) {
|
|
|
- let arr = _this.dialogFormData.SortFlag.split(',')
|
|
|
- let arr2 = []
|
|
|
- for (let i = 0; i < arr.length; i++) {
|
|
|
- arr2.push(parseInt(arr[i]))
|
|
|
- }
|
|
|
- _this.selectedOptList = arr2
|
|
|
- }
|
|
|
- let Id = _this.selectedOptList[0]
|
|
|
- this.$axios.get('goodsaptitudeclass/getchildlist/' + Id, {})
|
|
|
- .then(res => {
|
|
|
- if (res.data.items) { // 判断是否有数据
|
|
|
- let tempList = []
|
|
|
- tempList = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Name')
|
|
|
- // 添加到上一级对应的选项中
|
|
|
- for (let i = 0; i < _this.optionsList.length; i++) {
|
|
|
- if (_this.optionsList[i].id === Id) {
|
|
|
- _this.$set(_this.optionsList[i], 'children', tempList)
|
|
|
- break
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
- // 修改上一级的children属性
|
|
|
- for (let i = 0; i < _this.optionsList.length; i++) {
|
|
|
- if (_this.optionsList[i].id === Id) {
|
|
|
- _this.$set(_this.optionsList[i], 'children', '')
|
|
|
- break
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
- // 取消
|
|
|
- cancelOption () {
|
|
|
- let _this = this
|
|
|
- _this.dialogVisible = false
|
|
|
- },
|
|
|
-
|
|
|
- // 确定
|
|
|
- ensureOption () {
|
|
|
- this.dialogloading = true
|
|
|
- let _this = this
|
|
|
- let arr = []
|
|
|
- let val1 = this.$refs.orgmanagetree.getCheckedNodes()
|
|
|
- let val2 = this.$refs.secmanagetree.getCheckedNodes()
|
|
|
- this.checkList = []
|
|
|
- for (var i = 0; i < val1.length; i++) {
|
|
|
- if (val1[i].Code.length == 8) {
|
|
|
- this.checkList.push(val1[i])
|
|
|
- }
|
|
|
- }
|
|
|
- for (var i = 0; i < val2.length; i++) {
|
|
|
- if (val2[i].Code.length == 8) {
|
|
|
- this.checkList.push(val2[i])
|
|
|
- }
|
|
|
- }
|
|
|
- _this.dialogFormData.SupplierId = _this.formData.SupplierId
|
|
|
- _this.dialogFormData.SupplierCertId = _this.formData.SupplierCertId
|
|
|
- _this.dialogFormData.SupplierCertAppendId = parseInt(_this.dialogFormData.SupplierCertAppendId)
|
|
|
- _this.addSortAppend()
|
|
|
- _this.switchstatus = false
|
|
|
- this.dialogloading = false
|
|
|
- },
|
|
|
-
|
|
|
- getsectreelist () {
|
|
|
- let _this = this
|
|
|
- let name = _this.searchText
|
|
|
- this.$axios.get('goodsaptitude/goodsparentlist/' + name)
|
|
|
- .then(res => {
|
|
|
- _this.sectreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Code,Name,CodeName')
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
- // 判断是否保存了增项信息
|
|
|
- checkAppendSave () {
|
|
|
- if (this.dialogFormData.SupplierCertAppendId == '' && this.editFlag == null) {
|
|
|
- this.$message({
|
|
|
- type: 'error',
|
|
|
- message: '无法执行该命令,请先保存增项信息!'
|
|
|
- })
|
|
|
- return false
|
|
|
- }
|
|
|
- return true
|
|
|
- },
|
|
|
-
|
|
|
- // 添加增项分类信息
|
|
|
- addSortAppend () {
|
|
|
- let _this = this
|
|
|
- let params = {
|
|
|
- SupplierId: parseInt(this.formData.SupplierId),
|
|
|
- SupplierCertId: parseInt(this.formData.SupplierCertId),
|
|
|
- SupplierCertAppendId: parseInt(this.dialogFormData.SupplierCertAppendId),
|
|
|
- SupplierTypeCode: '01',
|
|
|
- Remark: this.dialogFormData.Remark,
|
|
|
- Type: '2'
|
|
|
- }
|
|
|
- if (_this.checkList.length > 0) {
|
|
|
- params = Object.assign(params, {
|
|
|
- CheckList: _this.checkList
|
|
|
- })
|
|
|
- } else {
|
|
|
- _this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '名称不能为空,请选择分类!'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- _this.$axios.post('/suppliercertappendsub/addgoodsbus/', params)
|
|
|
- .then(res => {
|
|
|
- _this.dialogloading = false
|
|
|
- if (res.data.code === 0) {
|
|
|
- _this.$message({
|
|
|
- type: 'success',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- // 关闭dialog
|
|
|
- _this.dialogVisible = false
|
|
|
- // 更新增项分类表
|
|
|
- _this.getSortList()
|
|
|
- _this.getMySortList()
|
|
|
- _this.getFileList()
|
|
|
- } else {
|
|
|
- _this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- this.$refs.orgmanagetree.setCheckedKeys([])
|
|
|
- this.$refs.secmanagetree.setCheckedKeys([])
|
|
|
- this.filterText = ''
|
|
|
- this.searchText = ''
|
|
|
- },
|
|
|
-
|
|
|
- // 删除增项分类信息
|
|
|
- deleteData (Id) {
|
|
|
- let _this = this
|
|
|
- _this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- _this.$axios.delete('suppliercertsub/businessdelete/' + Id, {})
|
|
|
- .then(function (response) {
|
|
|
- if (response.data.code === 0) {
|
|
|
- _this.$message({
|
|
|
- type: 'success',
|
|
|
- message: response.data.message
|
|
|
- })
|
|
|
- _this.getEntityById()
|
|
|
- } else {
|
|
|
- _this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: response.data.message
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(function (error) {
|
|
|
- console.log(error)
|
|
|
- })
|
|
|
- })
|
|
|
- .catch(() => {})
|
|
|
- },
|
|
|
- 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
|
|
|
- this.auditOrgChang(this.auditer)
|
|
|
- },
|
|
|
- auditOrgChang (val) {
|
|
|
- let auditstepcode = 'SECOND_TRIAL'
|
|
|
- suppapi
|
|
|
- .getAuditerByFirst(val, auditstepcode, this.$axios)
|
|
|
- .then(res => {
|
|
|
- this.secauditerOptions = res.data.item
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
- chooseAuditorShowFen () {
|
|
|
- this.$refs['chooseAuditorFen'].getorgtreelist(this.formData.SupplierTypeCode)
|
|
|
- this.chooseAuditorVisibleFen = true
|
|
|
- },
|
|
|
- setAuditerFen (val, name) {
|
|
|
- this.auditer = val
|
|
|
- this.auditerName = name
|
|
|
- this.chooseAuditorVisibleFen = false
|
|
|
- },
|
|
|
- // 提交审批
|
|
|
- AuditEntity () {
|
|
|
-
|
|
|
- if (this.auditer === '') {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '请选择初审人!'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.fushenauditer === '') {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '请选择复审人!'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.formData.InStyle != '2' && this.formData.InStyle != '6' || this.formData.InStyle == '4') {
|
|
|
- if (this.majorDept.length === 0) {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '请选择专业处室!'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- }
|
|
|
- if (this.formData.InStyle != '2' && this.formData.InStyle != '6' || this.formData.InStyle == '4') {
|
|
|
- if (this.userOptions == null || this.userOptions.length === 0) {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '该专业科室未配置接收人!'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- }
|
|
|
- this.applyLoading = true
|
|
|
- this.auditform.FirstAuditName = this.auditer
|
|
|
- this.auditform.CertId = this.formData.Id
|
|
|
- this.auditform.SecondAudit = this.fushenauditer
|
|
|
- this.auditform.ThirdAudit = this.majorDept[this.majorDept.length - 1]
|
|
|
- api2.auditEntity(this.formData.Id, this.auditform, this.$axios).then(res => {
|
|
|
- if (res.data.code === 0) {
|
|
|
- // 保存成功后,初始化数据,变成修改
|
|
|
- this.getEntityById()
|
|
|
- this.AuditdialogShow = false
|
|
|
- this.$message({
|
|
|
- type: 'success',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- }
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
- SubpEntity () {
|
|
|
- if (this.UnitOrg === '') {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '请选择分办单位!'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.orgauditOptions == null || this.orgauditOptions.length == 0) {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '该单位未配置分办人!'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- this.applyLoading = true
|
|
|
- this.auditform.FirstAuditName = this.UnitOrg
|
|
|
- this.auditform.CertId = this.formData.Id
|
|
|
- this.auditform.TypeCode = '01'
|
|
|
- api2.auditEntity(this.formData.Id, this.auditform, this.$axios).then(res => {
|
|
|
- if (res.data.code === 0) {
|
|
|
- // 保存成功后,初始化数据,变成修改
|
|
|
- this.getEntityById()
|
|
|
- this.ComAuditdialogShow = false
|
|
|
- this.$message({
|
|
|
- type: 'success',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- }
|
|
|
- this.applyLoading = false
|
|
|
- }).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')
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
- getDictOptions () {
|
|
|
- let params = {
|
|
|
- status: this.formData.Status,
|
|
|
- majorAduit: this.formData.ThirdAudit
|
|
|
- }
|
|
|
- suppapi.getDictListByStatus(params, this.$axios).then(res => {
|
|
|
- this.dictData = res.data.items
|
|
|
- this.organizeOption = res.data.items['Organizes']
|
|
|
- this.preorgtreelist = window.toolfun_gettreejson(res.data.items['ProOrgList'], 'id', 'pId', 'id,name')
|
|
|
- this.UnitOrg = res.data.items['Register'].CheckUnitId
|
|
|
- this.UnitOrgOptions = res.data.items['UnitOrgList']
|
|
|
- this.orgunitChange(this.UnitOrg)
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
- orgunitChange (val) {
|
|
|
- let deptid = val
|
|
|
- let auditstepcode = 'SUB_OFFICE_WZ'
|
|
|
- suppapi.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
|
|
|
- this.orgauditOptions = res.data.item
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
- // 列表排序功能
|
|
|
- orderby (column) {
|
|
|
- if (column.order === 'ascending') {
|
|
|
- this.Column.Order = 'asc'
|
|
|
- } else if (column.order === 'descending') {
|
|
|
- this.Column.Order = 'desc'
|
|
|
- }
|
|
|
- this.Column.Prop = column.prop
|
|
|
- },
|
|
|
-
|
|
|
- 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)
|
|
|
- }
|
|
|
- },
|
|
|
-
|
|
|
- // 123
|
|
|
- addBusiness1 () {
|
|
|
- if (this.sectionCert.length <= 0) {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '请选择准入类别'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- let params = {
|
|
|
- SupplierId: parseInt(this.formData.SupplierId),
|
|
|
- SupplierCertId: parseInt(this.formData.SupplierCertId),
|
|
|
- SupplierCertAppendId: parseInt(this.dialogFormData.SupplierCertAppendId),
|
|
|
- SupplierTypeCode: '01',
|
|
|
- Type: '2',
|
|
|
- Remark: this.Remark1,
|
|
|
- CheckList: this.sectionCert
|
|
|
- }
|
|
|
- for (var i = 0; i < this.sectionCert.length; i++) {
|
|
|
- this.sectionCert[i].Id = this.sectionCert[i].Id + ''
|
|
|
- }
|
|
|
- this.loading = true
|
|
|
- this.$axios.post('/suppliercertappendsub/addgoodsbus', params)
|
|
|
- .then(res => {
|
|
|
- if (res.data.code === 0) {
|
|
|
- this.$message({
|
|
|
- type: 'success',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- this.goodsDialog = false
|
|
|
- this.loading = false
|
|
|
- this.sectionCert = []
|
|
|
- this.Remark1 = ''
|
|
|
- this.getSortList()
|
|
|
- this.getMySortList()
|
|
|
- this.getFileList()
|
|
|
- this.initData2019()
|
|
|
- } else {
|
|
|
- this.loading = false
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '操作失败!'
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
- initData2019 () {
|
|
|
- let params = {
|
|
|
- _currentPage: this.currentPageCert,
|
|
|
- _size: this.sizeCert,
|
|
|
- Name: this.keyword
|
|
|
- }
|
|
|
- this.$axios.get('suppliercertsub/listCert2019', { params })
|
|
|
- .then(res => {
|
|
|
- this.goodsList2019 = res.data.items
|
|
|
- this.currentItemCountCert = res.data.currentItemCount
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
- handleSizeChangeCert (value) {
|
|
|
- this.sizeCert = value
|
|
|
- this.currentPageCert = 1
|
|
|
- this.initData2019()
|
|
|
- },
|
|
|
- handleCurrentChangeCert (value) {
|
|
|
- this.currentPageCert = value
|
|
|
- this.initData2019()
|
|
|
- },
|
|
|
- handleSelectionChangeCert (val) {
|
|
|
- this.sectionCert = val
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
-</script>
|
|
|
-<style lang='scss'>
|
|
|
- .attach-uploader .el-upload {
|
|
|
- border: 1px dashed #63B8FF;
|
|
|
- cursor: pointer;
|
|
|
- position: relative;
|
|
|
- overflow: hidden;
|
|
|
- // margin-bottom: -17px;
|
|
|
- margin-top: -15px;
|
|
|
- margin-left: 20px
|
|
|
- }
|
|
|
-
|
|
|
- .attach-uploader .el-upload:hover {
|
|
|
- border-color: #228B22;
|
|
|
- }
|
|
|
-
|
|
|
- .attach-uploader-icon {
|
|
|
- font-size: 25px;
|
|
|
- color: #63B8FF;
|
|
|
- width: 50px;
|
|
|
- height: 50px;
|
|
|
- line-height: 50px;
|
|
|
- text-align: center;
|
|
|
- }
|
|
|
-
|
|
|
- .attach-uploader-icon:hover {
|
|
|
- color: #228B22;
|
|
|
- }
|
|
|
-
|
|
|
-</style>
|