|
|
@@ -682,7 +682,67 @@
|
|
|
</el-tab-pane>
|
|
|
|
|
|
<el-tab-pane label="企业资质" :disabled="!certId">
|
|
|
- <subfile-list ref="subfileList" :data.sync="subfileList" :canadd="canadd" height="360px" style="margin-top: 20px"></subfile-list>
|
|
|
+ <!--<subfile-list ref="subfileList" :data.sync="subfileList" :canadd="canadd" height="360px" style="margin-top: 20px"></subfile-list>-->
|
|
|
+ <el-card class="box-card" style="margin-top: 10px;">
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
+ <span style="font-weight: bold">企业资质</span>
|
|
|
+ </div>
|
|
|
+ <el-table :data="subfileList" border>
|
|
|
+ <el-table-column label="操作" width="150" align="center" fixed v-if="Status <= 0">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button type="primary" plain size="mini" title="文件变更" @click="openDialog(scope.row)">
|
|
|
+ 变更</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="NeedFileType" label="文件分类" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column prop="OldFileUrlList" label="原文件" show-overflow-tooltip>
|
|
|
+ <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>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="OldEffectDate" label="原有效日期" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ jstimehandle(scope.row.OldEffectDate+'') }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="FileUrlList" label="变更后文件" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-row align="middle">
|
|
|
+ <el-col :span="20">
|
|
|
+ <div v-for="(tmpUrl, index) in scope.row.FileUrlList">
|
|
|
+ <a :href="'http://'+fileurlcut(scope.row.FileUrl, index)" target="_blank"
|
|
|
+ class="buttonText">{{scope.row.FileName.split('$')[index]}}
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ </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>
|
|
|
+ </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="Remark" label="描述" show-overflow-tooltip></el-table-column>
|
|
|
+ </el-table>
|
|
|
+
|
|
|
+ <el-pagination small
|
|
|
+ @size-change="handleProjectSizeChange"
|
|
|
+ @current-change="handleProjectCurrentChange"
|
|
|
+ :current-page="currentPageProject"
|
|
|
+ :page-sizes="[10, 20, 30]"
|
|
|
+ :page-size="sizeProject"
|
|
|
+ layout="total, sizes, prev, pager, next,jumper"
|
|
|
+ :total="currentItemCountProject"
|
|
|
+ style="margin: 5px;">
|
|
|
+ </el-pagination>
|
|
|
+ </el-card>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
<el-tab-pane label="提交审批">
|
|
|
@@ -797,6 +857,47 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog :title="Title" :visible.sync="visible" top="5vh">
|
|
|
+ <el-form ref="subfileForm" :model="SubfileForm" :rules="filerules" label-width="100px">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="资质名称" prop="NeedFileType">
|
|
|
+ <!--<el-select v-model="SubfileForm.NeedFileType" placeholder="请输文件类型" size="medium" :disabled="IsMust">-->
|
|
|
+ <!--<el-option v-for="item in dynamicTableColumns" :key="item.prop" :label="item.label" :value="item.label">-->
|
|
|
+ <!--</el-option>-->
|
|
|
+ <!--</el-select>-->
|
|
|
+ <el-input v-model="SubfileForm.NeedFileType"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="有效日期" prop="EffectDate">
|
|
|
+ <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.Remark" 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"
|
|
|
+ :on-remove="filremove" :file-list="fileList" :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" v-if="SubfileForm.NeedFileType !=yasuoname">大小为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>
|
|
|
<choose-auditor ref="chooseAuditor" @close="setAuditer" @hideChooseAuditer="chooseAuditorVisible=false"
|
|
|
:visible="chooseAuditorVisible"></choose-auditor>
|
|
|
<choose-auditor-fen ref="chooseAuditorFen" @close="setAuditerFen" @hideChooseAuditer="chooseAuditorVisibleFen=false"
|
|
|
@@ -824,9 +925,12 @@
|
|
|
import GoodsInfo from '@/components/oilsupplier/goodsinfo'
|
|
|
import AuditbusList from '@/components/oilsupplier/auditbuslist'
|
|
|
import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
|
|
|
- import SubfileList from '@/components/oilsupplier/subfilelist'
|
|
|
+ // import SubfileList from '@/components/oilsupplier/subfilelist'
|
|
|
import ChooseAuditorFen from '@/components/oilsupplier/chooseauditorfenban'
|
|
|
import _ from 'lodash'
|
|
|
+ import axios from 'axios'
|
|
|
+ import uploadajax from '@/assets/js//uploadajax.js'
|
|
|
+ import fileapi from '@/api/oilsupplier/supplierfile'
|
|
|
|
|
|
export default {
|
|
|
computed: {
|
|
|
@@ -839,7 +943,7 @@
|
|
|
SupplierFileTable,
|
|
|
WfHistory,
|
|
|
SupplierCertEdit,
|
|
|
- SubfileList, // 选择企业资质
|
|
|
+ // SubfileList, // 选择企业资质
|
|
|
EquipmentList, // 企业主要装备情况
|
|
|
PerformanceList, // 近三年主要工程业绩列表
|
|
|
PatentList, // 专利及专有技术列表
|
|
|
@@ -974,6 +1078,9 @@
|
|
|
}
|
|
|
}
|
|
|
return {
|
|
|
+ sizeProject: 10,
|
|
|
+ currentPageProject: 1,
|
|
|
+ currentItemCountProject: 0,
|
|
|
canadd: false,
|
|
|
newcanadd: false,
|
|
|
InfoData: [],
|
|
|
@@ -1355,6 +1462,42 @@
|
|
|
message: '请选择审批人',
|
|
|
trigger: 'blur'
|
|
|
}]
|
|
|
+ },
|
|
|
+ SubfileForm: {
|
|
|
+ Id: '',
|
|
|
+ SupplierId: '',
|
|
|
+ SupplierCertId: '',
|
|
|
+ SupplierTypeCode: '',
|
|
|
+ SupplierCertSubId: '',
|
|
|
+ CertSubName: '',
|
|
|
+ NeedFileType: '',
|
|
|
+ NeedFileCode: '',
|
|
|
+ FileType: '',
|
|
|
+ FileExt: '',
|
|
|
+ FileName: '',
|
|
|
+ EffectDate: new Date(),
|
|
|
+ FileUrl: '',
|
|
|
+ OldFileName: '',
|
|
|
+ OldEffectDate: new Date(),
|
|
|
+ OldFileUrl: '',
|
|
|
+ OtherRemark: '',
|
|
|
+ FileUrlList: [],
|
|
|
+ OldFileUrlList: [],
|
|
|
+ Remark: '',
|
|
|
+ IsDelete: 0
|
|
|
+ },
|
|
|
+ waituploads: [], // 等待上传的附件列表
|
|
|
+ fileList: [],
|
|
|
+ visible: false,
|
|
|
+ IsMust: false,
|
|
|
+ Title: '编辑',
|
|
|
+ yasuoname: '',
|
|
|
+ filerules: {
|
|
|
+ NeedFileType: [
|
|
|
+ {required: true, message: '资质名称不能为空', trigger: 'blur'}
|
|
|
+ ],
|
|
|
+ EffectDate:
|
|
|
+ [{ required: true, message: '请选择有效日期', trigger: 'change' }]
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -1380,8 +1523,285 @@
|
|
|
this.add_flat = false
|
|
|
}
|
|
|
this.orgtreeChange(this.majorDept)
|
|
|
+ this.getsubfile()
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 资质变更相关
|
|
|
+ lineheight (list) {
|
|
|
+ return list * 23 + ''
|
|
|
+ },
|
|
|
+ fileurlcut (val, index) {
|
|
|
+ let fileurlall = val.split('$')[index]
|
|
|
+ let fileurl = fileurlall.split('|')
|
|
|
+ let retUrl = fileurl[0]
|
|
|
+ // 内网服务器专用
|
|
|
+ if (process.client && retUrl.indexOf('/upfile') === 0) {
|
|
|
+ const myDomain = window.location.host
|
|
|
+ retUrl = myDomain + '/' + retUrl
|
|
|
+ }
|
|
|
+ return retUrl
|
|
|
+ },
|
|
|
+ filremove (file, files) {
|
|
|
+ this.fileList = files
|
|
|
+ },
|
|
|
+ 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
|
|
|
+ })
|
|
|
+ uploadajax(option)
|
|
|
+ } else {
|
|
|
+ _this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '未上传成功!请刷新界面重新上传!'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(function (error) {
|
|
|
+ _this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '未上传成功!请重新上传!'
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ beforeAvatarUpload (file) {
|
|
|
+ /* let isLt512K = file.size / 1024 < 512
|
|
|
+ if (isLt512K) {
|
|
|
+ this.$message.error('上传文件大小不能小于 512KB!')
|
|
|
+ return false
|
|
|
+ } */
|
|
|
+ if (this.SubfileForm.NeedFileType !== this.yasuoname) {
|
|
|
+ let isLt50m = file.size / 1024 / 1024 / 5 < 1
|
|
|
+ if (!isLt50m) {
|
|
|
+ this.$message.error('上传文件大小不能超过 5MB!')
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ iconclear (row) {
|
|
|
+ this.$confirm('该操作将删除新上传的资质,是否继续?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ annualapi.deleteNewFile(row.Id, this.$axios).then(res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ this.getsubfile()
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ openDialog (val) {
|
|
|
+ this.IsMust = true
|
|
|
+ this.Title = '资质变更'
|
|
|
+ this.waituploads = []
|
|
|
+ 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.OldFileName = val.OldFileName
|
|
|
+ this.SubfileForm.OldEffectDate = new Date(val.OldEffectDate)
|
|
|
+ this.SubfileForm.EffectDate = (this.jsEffectDate(val.EffectDate))
|
|
|
+ this.SubfileForm.OldFileUrl = val.OldFileUrl
|
|
|
+ this.SubfileForm.OtherRemark = val.OtherRemark
|
|
|
+ this.SubfileForm.FileUrl = val.FileUrl
|
|
|
+ this.fileList = []
|
|
|
+ if (val.FileUrl !== '') {
|
|
|
+ this.getwendanginfo(val.FileUrl)
|
|
|
+ }
|
|
|
+ this.SubfileForm.Remark = val.Remark
|
|
|
+ this.SubfileForm.IsDelete = val.IsDelete
|
|
|
+ this.visible = true
|
|
|
+ },
|
|
|
+ getwendanginfo (iUrl) {
|
|
|
+ let _this = this
|
|
|
+ let urlArr = iUrl.split('$')
|
|
|
+ for (let idx in urlArr) {
|
|
|
+ let exArr = urlArr[idx].split('|')
|
|
|
+ let params = {
|
|
|
+ name: exArr[1],
|
|
|
+ url: exArr[0]
|
|
|
+ }
|
|
|
+ _this.fileList.push(params)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getFileDictOptions () {
|
|
|
+ fileapi.getDictList(this.$axios).then(res => {
|
|
|
+ this.yasuoname = res.data.items['YaSuoName']
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ jsEffectDate (val) {
|
|
|
+ if (val === '') {
|
|
|
+ return ''
|
|
|
+ } else if (val === '0001-01-01T00:00:00Z') {
|
|
|
+ return ''
|
|
|
+ } else if (val === '0001-01-01T08:00:00+08:00') {
|
|
|
+ return ''
|
|
|
+ } else if (val === '5000-01-01T23:59:59+08:00') {
|
|
|
+ return ''
|
|
|
+ } else {
|
|
|
+ return val
|
|
|
+ }
|
|
|
+ },
|
|
|
+ makesure () {
|
|
|
+ let _this = this
|
|
|
+ _this.$refs['subfileForm'].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ if (_this.Title === '新增文件') {
|
|
|
+ if (_this.$refs.refuploadattach.uploadFiles && _this.$refs.refuploadattach.uploadFiles.length > 0) {
|
|
|
+ // 上传附件是否完成判断
|
|
|
+ if (!_this.attachissuccess()) {
|
|
|
+ _this.$message.error('有附件未成功上传!不能保存数据')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ _this.getattachissuccess()
|
|
|
+ _this.addqualchange()
|
|
|
+ } else {
|
|
|
+ _this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '请上传文件!'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ } else if (_this.Title === '资质变更') {
|
|
|
+ if (_this.$refs.refuploadattach.uploadFiles && _this.$refs.refuploadattach.uploadFiles.length > 0) {
|
|
|
+ // 上传附件是否完成判断
|
|
|
+ if (!_this.attachissuccess()) {
|
|
|
+ _this.$message.error('有附件未成功上传!不能保存数据')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ _this.getattachissuccess()
|
|
|
+ _this.editqualchange()
|
|
|
+ } else {
|
|
|
+ _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
|
|
|
+ },
|
|
|
+ getattachissuccess () {
|
|
|
+ this.SubfileForm.FileUrl = ''
|
|
|
+ this.SubfileForm.FileName = ''
|
|
|
+ if (this.fileList != null && this.fileList.length > 0) {
|
|
|
+ for (let idx in this.fileList) {
|
|
|
+ this.SubfileForm.FileName += this.fileList[idx].name + '$'
|
|
|
+ this.SubfileForm.FileUrl += this.fileList[idx].url + '|' + this.fileList[idx].name + '$'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ 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}$`
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ addqualchange () {
|
|
|
+ let _this = this
|
|
|
+ _this.SubfileForm.SupplierId = parseInt(_this.SubfileForm.SupplierId)
|
|
|
+ _this.SubfileForm.SupplierCertSubId = parseInt(_this.SubfileForm.SupplierCertSubId)
|
|
|
+ _this.SubfileForm.SupplierCertId = parseInt(_this.SupplierCertId)
|
|
|
+ _this.$axios.post('/annualaudit/addqualchange/' + this.annualId, _this.SubfileForm)
|
|
|
+ .then(res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ _this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ this.visible = false
|
|
|
+ this.getsubfile()
|
|
|
+ this.$refs.refuploadattach.uploadFiles = []
|
|
|
+ } else {
|
|
|
+ _this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ editqualchange () {
|
|
|
+ let _this = this
|
|
|
+ _this.SubfileForm.SupplierId = parseInt(_this.SubfileForm.SupplierId)
|
|
|
+ _this.SubfileForm.SupplierCertSubId = parseInt(_this.SubfileForm.SupplierCertSubId)
|
|
|
+ _this.SubfileForm.SupplierCertId = parseInt(_this.SupplierCertId)
|
|
|
+ _this.$axios.put('/annualaudit/editqualchange/' + _this.annualId, _this.SubfileForm)
|
|
|
+ .then(res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ _this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ this.visible = false
|
|
|
+ this.getsubfile()
|
|
|
+ this.$refs.refuploadattach.uploadFiles = []
|
|
|
+ } else {
|
|
|
+ _this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
SubpEntity () {
|
|
|
if (this.UnitOrg === '') {
|
|
|
this.$message({
|
|
|
@@ -1551,8 +1971,32 @@
|
|
|
}
|
|
|
return true
|
|
|
},
|
|
|
- getbuslist () {
|
|
|
- this.$refs['subfileList'].getvalue(this.formData.Id, this.SupplierTypeCode, this.certId)
|
|
|
+ getsubfile () {
|
|
|
+ // this.$refs['subfileList'].getvalue(this.formData.Id, this.SupplierTypeCode, this.certId)
|
|
|
+ let _this = this
|
|
|
+ const params = {
|
|
|
+ SupplierId: this.formData.Id,
|
|
|
+ SupplierTypeCode: '01',
|
|
|
+ MInfoId: this.annualId,
|
|
|
+ _currentPage: this.currentPageProject,
|
|
|
+ _size: this.sizeProject
|
|
|
+ }
|
|
|
+ _this.$axios.get('annualaudit/filelist', {
|
|
|
+ params
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ _this.subfileList = res.data.items
|
|
|
+ _this.currentItemCountProject = res.data.currentItemCount
|
|
|
+ for (let idx in _this.subfileList) {
|
|
|
+ _this.subfileList[idx].FileUrlList = _this.subfileList[idx].FileUrl.split('$')
|
|
|
+ }
|
|
|
+ for (let idx1 in _this.subfileList) {
|
|
|
+ _this.subfileList[idx1].OldFileUrlList = _this.subfileList[idx1].OldFileUrl.split('$')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
},
|
|
|
|
|
|
equipmentdialog () {
|
|
|
@@ -1599,7 +2043,7 @@
|
|
|
this.$refs['patentList'].getvalue(res.data.Id, this.SupplierTypeCode, this.certId)
|
|
|
this.$refs['winningList'].getvalue(res.data.Id, this.SupplierTypeCode, this.certId)
|
|
|
this.$refs['businessList'].getvalue(res.data.Id, this.SupplierTypeCode, this.certId)
|
|
|
- this.$refs['subfileList'].getvalue(res.data.Id, this.SupplierTypeCode, this.certId)
|
|
|
+ // this.$refs['subfileList'].getvalue(res.data.Id, this.SupplierTypeCode, this.certId)
|
|
|
if (this.certId && this.WorkflowId) {
|
|
|
this.$refs['WfHistory'].getHistoryTask() /* 刷新工作流 */
|
|
|
}
|
|
|
@@ -2191,13 +2635,23 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+ handleProjectSizeChange (value) {
|
|
|
+ this.sizeProject = value
|
|
|
+ this.currentPageProject = 1
|
|
|
+ this.getsubfile()
|
|
|
+ },
|
|
|
+ handleProjectCurrentChange (value) {
|
|
|
+ this.currentPageProject = value
|
|
|
+ this.getsubfile()
|
|
|
+ },
|
|
|
nexStepCB () {
|
|
|
this.Step += 1
|
|
|
},
|
|
|
jstimehandle (val) {
|
|
|
if (val === '') {
|
|
|
return '----'
|
|
|
+ } else if (val === '0001-01-01T00:00:00Z') {
|
|
|
+ return '----'
|
|
|
} else if (val === '0001-01-01T08:00:00+08:00') {
|
|
|
return '----'
|
|
|
} else if (val === '5000-01-01T23:59:59+08:00') {
|