|
@@ -11,7 +11,7 @@
|
|
|
<i class="icon icon-table2"></i> 编辑
|
|
<i class="icon icon-table2"></i> 编辑
|
|
|
</span>
|
|
</span>
|
|
|
<span style="float: right;">
|
|
<span style="float: right;">
|
|
|
- <el-button type="primary" size="mini" @click="submitqualChange">提交申请</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" size="mini" @click="submitqualChange" v-if="(QualStatus == 0 || QualStatus == '') && !butnab">提交申请</el-button>
|
|
|
<router-link :to="'/oilsupplier/qualchange'">
|
|
<router-link :to="'/oilsupplier/qualchange'">
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px">返回</el-button>
|
|
<el-button type="primary" size="mini" style="margin-left: 8px">返回</el-button>
|
|
|
</router-link>
|
|
</router-link>
|
|
@@ -22,14 +22,10 @@
|
|
|
<el-table-column prop="Name" 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-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
|
|
|
</el-table>
|
|
</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-card>
|
|
|
<el-card class="box-card" style="margin-top: 10px;">
|
|
<el-card class="box-card" style="margin-top: 10px;">
|
|
|
<div slot="header" class="clearfix">
|
|
<div slot="header" class="clearfix">
|
|
|
- <span style="font-weight: bold">分类文档</span>
|
|
|
|
|
|
|
+ <span style="font-weight: bold">企业资质</span>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- <subfile-list ref="subfileList" :data="subfileList" :SupplierId="SupplierId" :SupplierCertId="SupplierCertId"
|
|
<!-- <subfile-list ref="subfileList" :data="subfileList" :SupplierId="SupplierId" :SupplierCertId="SupplierCertId"
|
|
|
:SupplierTypeCode="SupplierTypeCode" :businessList="businessList" :BusinessForm="BusinessForm" height="360px"
|
|
:SupplierTypeCode="SupplierTypeCode" :businessList="businessList" :BusinessForm="BusinessForm" height="360px"
|
|
@@ -42,14 +38,19 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="NeedFileType" label="文件分类" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="NeedFileType" label="文件分类" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="FileName" label="文件名称" show-overflow-tooltip></el-table-column>
|
|
|
|
|
- <el-table-column prop="EffectDate" label="有效日期" show-overflow-tooltip>
|
|
|
|
|
|
|
+ <el-table-column prop="FileName" label="原文件" show-overflow-tooltip></el-table-column>
|
|
|
|
|
+ <el-table-column prop="EffectDate" label="原有效日期" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
{{ jstimehandle(scope.row.EffectDate+'') }}
|
|
{{ jstimehandle(scope.row.EffectDate+'') }}
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column prop="OtherRemark" label="其他信息" show-overflow-tooltip></el-table-column>
|
|
|
|
|
- <el-table-column prop="Remark" label="备注信息" show-overflow-tooltip></el-table-column>
|
|
|
|
|
|
|
+ <el-table-column prop="OtherRemark" label="变更后文件" show-overflow-tooltip></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-table>
|
|
|
|
|
|
|
|
<el-dialog :title="Title" :visible.sync="visible" top="5vh">
|
|
<el-dialog :title="Title" :visible.sync="visible" top="5vh">
|
|
@@ -62,15 +63,14 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
|
- <el-form-item label="备注信息">
|
|
|
|
|
|
|
+ <el-form-item label="描述">
|
|
|
<el-input v-model="SubfileForm.Remark" type="textarea" :rows=3 placeholder="请输入备注信息"></el-input>
|
|
<el-input v-model="SubfileForm.Remark" type="textarea" :rows=3 placeholder="请输入备注信息"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="文档上传">
|
|
|
|
|
- <el-upload style="margin-top: 10px;" multiple action="" :limit="1" ref="refuploadattach"
|
|
|
|
|
- :http-request="uploadrequest" class="attach-uploader" :show-file-list="true"
|
|
|
|
|
- :before-upload="beforeAvatarUpload">
|
|
|
|
|
|
|
+ <el-form-item label="资质文件">
|
|
|
|
|
+ <el-upload 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>
|
|
<i class="el-icon-plus attach-uploader-icon"></i>
|
|
|
</el-upload>
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -100,6 +100,36 @@
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
|
|
+ <!-- <el-dialog title="提交申请" :visible.sync="commitshow" width="360px">
|
|
|
|
|
+ <el-form label-width="90px" :model="entityForm" :rules="rules" ref="EntityFormref">
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <el-form-item label="审批单位" prop="FirstAudit" required>
|
|
|
|
|
+ <el-cascader :options="orgtreelist" :props="orgtreeprops" change-on-select :show-all-levels="false"
|
|
|
|
|
+ filterable @change="auditOrgChang" style="width: 100%" v-model="entityForm.FirstAudit"
|
|
|
|
|
+ placeholder="请选择组织"></el-cascader>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <el-form-item label="审批人" prop="auditer" required>
|
|
|
|
|
+ <el-select ref="selectAuditer" v-model="entityForm.auditer" placeholder="请选择" style="width: 100%"
|
|
|
|
|
+ filterable allow-create default-first-option>
|
|
|
|
|
+ <el-option v-for="item in auditerOption" :key="item.id" :label="item.realname" :value="item.id">
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+ <span style="float: right;margin-top:-10px;">
|
|
|
|
|
+ <el-button size="small" @click="commitshow = false">取 消</el-button>
|
|
|
|
|
+ <el-button type="primary" size="small" @click="addInfoChangeAudit()">确 定</el-button>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ <br>
|
|
|
|
|
+ </el-dialog> -->
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -166,6 +196,9 @@
|
|
|
|
|
|
|
|
waituploads: [], // 等待上传的附件列表
|
|
waituploads: [], // 等待上传的附件列表
|
|
|
doclist: [],
|
|
doclist: [],
|
|
|
|
|
+ QualStatus: '',
|
|
|
|
|
+ butnab: false,
|
|
|
|
|
+ commitshow: false,
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -176,32 +209,35 @@
|
|
|
if (this.$route.query.classId) {
|
|
if (this.$route.query.classId) {
|
|
|
this.classId = this.$route.query.classId + ''
|
|
this.classId = this.$route.query.classId + ''
|
|
|
}
|
|
}
|
|
|
|
|
+ this.QualStatus = this.$route.query.QualStatus
|
|
|
|
|
+ if (this.QualStatus > 0){
|
|
|
|
|
+ this.butnab = true
|
|
|
|
|
+ }
|
|
|
this.SupplierId = this.serviceId
|
|
this.SupplierId = this.serviceId
|
|
|
this.SupplierTypeCode = this.classId
|
|
this.SupplierTypeCode = this.classId
|
|
|
this.SupplierCertId = this.certId
|
|
this.SupplierCertId = this.certId
|
|
|
console.log("---Id---", this.certId, this.serviceId)
|
|
console.log("---Id---", this.certId, this.serviceId)
|
|
|
this.getDictOptions()
|
|
this.getDictOptions()
|
|
|
this.initData()
|
|
this.initData()
|
|
|
|
|
+ this.getbusList()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
initData() {
|
|
initData() {
|
|
|
let _this = this
|
|
let _this = this
|
|
|
const params = {
|
|
const params = {
|
|
|
- SupplierCertId: this.SupplierCertId,
|
|
|
|
|
|
|
+ SupplierId: this.SupplierId,
|
|
|
SupplierTypeCode: this.SupplierTypeCode,
|
|
SupplierTypeCode: this.SupplierTypeCode,
|
|
|
- _currentPage: this.currentPage,
|
|
|
|
|
- _size: this.size,
|
|
|
|
|
|
|
+ _currentPage: 1,
|
|
|
|
|
+ _size: 1000,
|
|
|
}
|
|
}
|
|
|
- this.$axios.get('suppliercertsub/list', {
|
|
|
|
|
|
|
+ _this.$axios.get('supplierfile/filelist', {
|
|
|
params
|
|
params
|
|
|
})
|
|
})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
- _this.businessList = res.data.items
|
|
|
|
|
|
|
+ _this.subfileList = res.data.items
|
|
|
_this.currentItemCount = res.data.currentItemCount
|
|
_this.currentItemCount = res.data.currentItemCount
|
|
|
- _this.initFileData()
|
|
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
- // handle error
|
|
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -213,52 +249,25 @@
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- initFileData() {
|
|
|
|
|
|
|
+ getbusList() {
|
|
|
let _this = this
|
|
let _this = this
|
|
|
const params = {
|
|
const params = {
|
|
|
- SupplierId: this.SupplierId,
|
|
|
|
|
|
|
+ SupplierCertId: this.SupplierCertId,
|
|
|
SupplierTypeCode: this.SupplierTypeCode,
|
|
SupplierTypeCode: this.SupplierTypeCode,
|
|
|
_currentPage: 1,
|
|
_currentPage: 1,
|
|
|
- _size: 1000,
|
|
|
|
|
|
|
+ _size: 1000
|
|
|
}
|
|
}
|
|
|
- _this.$axios.get('supplierfile/filelist', {
|
|
|
|
|
|
|
+ this.$axios.get('suppliercertsub/list', {
|
|
|
params
|
|
params
|
|
|
})
|
|
})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
- _this.subfileList = res.data.items
|
|
|
|
|
- _this.currentItemCount = res.data.currentItemCount
|
|
|
|
|
|
|
+ _this.businessList = res.data.items
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
- // handle error
|
|
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- getCode() {
|
|
|
|
|
- if (this.businessList && this.businessList.length > 0) {
|
|
|
|
|
- for (var i = 0; i < this.businessList.length; i++) {
|
|
|
|
|
- if (this.SubfileForm.SupplierCertSubId == this.businessList[i].Id) {
|
|
|
|
|
- this.SubfileForm.CertSubName = this.businessList[i].Name
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
makesure() {
|
|
makesure() {
|
|
|
- if (this.Title == '新增文件') {
|
|
|
|
|
- if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
|
|
|
|
|
- // 上传附件是否完成判断
|
|
|
|
|
- if (!this.attachissuccess()) {
|
|
|
|
|
- this.$message.error('有附件未成功上传!不能保存数据')
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
- this.getattachissuccess()
|
|
|
|
|
- this.addSubfile()
|
|
|
|
|
- } else {
|
|
|
|
|
- this.$message({
|
|
|
|
|
- type: 'warning',
|
|
|
|
|
- message: '请上传文件!'
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- } else if (this.Title == '编辑文件') {
|
|
|
|
|
if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
|
|
if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
|
|
|
// 上传附件是否完成判断
|
|
// 上传附件是否完成判断
|
|
|
if (!this.attachissuccess()) {
|
|
if (!this.attachissuccess()) {
|
|
@@ -270,7 +279,6 @@
|
|
|
} else {
|
|
} else {
|
|
|
this.editSubfile()
|
|
this.editSubfile()
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
},
|
|
},
|
|
|
editSubfile() {
|
|
editSubfile() {
|
|
|
let _this = this
|
|
let _this = this
|
|
@@ -284,8 +292,8 @@
|
|
|
message: res.data.message,
|
|
message: res.data.message,
|
|
|
})
|
|
})
|
|
|
this.visible = false
|
|
this.visible = false
|
|
|
- this.initFileData()
|
|
|
|
|
- this.$refs.refuploadattach = ''
|
|
|
|
|
|
|
+ this.initData()
|
|
|
|
|
+ this.$refs.refuploadattach.uploadFiles = []
|
|
|
} else {
|
|
} else {
|
|
|
_this.$message({
|
|
_this.$message({
|
|
|
type: 'warning',
|
|
type: 'warning',
|
|
@@ -297,25 +305,6 @@
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- showDialog() {
|
|
|
|
|
- this.Title = '新增文件'
|
|
|
|
|
- this.SubfileForm.Id = ''
|
|
|
|
|
- this.SubfileForm.SupplierId = this.SupplierId
|
|
|
|
|
- this.SubfileForm.SupplierTypeCode = this.SupplierTypeCode
|
|
|
|
|
- this.SubfileForm.SupplierCertSubId = ''
|
|
|
|
|
- this.SubfileForm.CertSubName = ''
|
|
|
|
|
- this.SubfileForm.NeedFileType = ''
|
|
|
|
|
- this.SubfileForm.NeedFileCode = ''
|
|
|
|
|
- this.SubfileForm.FileExt = ''
|
|
|
|
|
- this.SubfileForm.FileType = ''
|
|
|
|
|
- this.SubfileForm.FileName = ''
|
|
|
|
|
- this.SubfileForm.EffectDate = new Date()
|
|
|
|
|
- this.SubfileForm.FileUrl = ''
|
|
|
|
|
- this.SubfileForm.OtherRemark = ''
|
|
|
|
|
- this.SubfileForm.Remark = ''
|
|
|
|
|
- this.SubfileForm.IsDelete = 0
|
|
|
|
|
- this.visible = true
|
|
|
|
|
- },
|
|
|
|
|
openDialog(val) {
|
|
openDialog(val) {
|
|
|
this.Title = '编辑文件'
|
|
this.Title = '编辑文件'
|
|
|
this.SubfileForm.Id = val.Id
|
|
this.SubfileForm.Id = val.Id
|
|
@@ -388,7 +377,7 @@
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- // 判断附件是否上传成功
|
|
|
|
|
|
|
+ // 判断附件是否上传成功
|
|
|
attachissuccess() {
|
|
attachissuccess() {
|
|
|
if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
|
|
if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
|
|
|
for (let i = 0; i < this.$refs.refuploadattach.uploadFiles.length; i++) {
|
|
for (let i = 0; i < this.$refs.refuploadattach.uploadFiles.length; i++) {
|
|
@@ -430,8 +419,10 @@
|
|
|
})
|
|
})
|
|
|
.catch(() => {})
|
|
.catch(() => {})
|
|
|
},
|
|
},
|
|
|
- submitqualChange() {
|
|
|
|
|
|
|
|
|
|
|
|
+ submitqualChange() {
|
|
|
|
|
+ this.getorgtreelist()
|
|
|
|
|
+ this.commitshow = true
|
|
|
},
|
|
},
|
|
|
jstimehandle(val) {
|
|
jstimehandle(val) {
|
|
|
if (val === '') {
|
|
if (val === '') {
|