|
@@ -35,14 +35,15 @@
|
|
|
<el-card class="box-card">
|
|
<el-card class="box-card">
|
|
|
<div slot="header">
|
|
<div slot="header">
|
|
|
<span><i class="icon icon-table2"></i> 增项信息</span>
|
|
<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>
|
|
|
|
|
|
|
+ <el-button style="float: right; padding: 3px 0" type="text"
|
|
|
|
|
+ v-if="formData.Status <= 0 && formData.Status != -5" @click="saveEntity()">保存信息</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
<el-form label-width="150px" ref="EntityForm" :rules="appendRules" :model="formData">
|
|
<el-form label-width="150px" ref="EntityForm" :rules="appendRules" :model="formData">
|
|
|
<el-row>
|
|
<el-row>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item label="供应方公司名称" prop="checkSelectedSupplier">
|
|
<el-form-item label="供应方公司名称" prop="checkSelectedSupplier">
|
|
|
- <el-select ref="suppselect" :disabled="formData.Status>0" v-model="supplierOptions" filterable @change="getInfo" placeholder="请选择供应方公司"
|
|
|
|
|
- style="width: 100%">
|
|
|
|
|
|
|
+ <el-select ref="suppselect" :disabled="formData.Status>0" v-model="supplierOptions" filterable
|
|
|
|
|
+ @change="getInfo" placeholder="请选择供应方公司" style="width: 100%">
|
|
|
<el-option v-for="item in supplierList" :key="item.SupplierId" :label="item.SupplierName"
|
|
<el-option v-for="item in supplierList" :key="item.SupplierId" :label="item.SupplierName"
|
|
|
:value="item.SupplierId">
|
|
:value="item.SupplierId">
|
|
|
</el-option>
|
|
</el-option>
|
|
@@ -51,7 +52,8 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="16">
|
|
<el-col :span="16">
|
|
|
<el-form-item label="备注" prop="Remark">
|
|
<el-form-item label="备注" prop="Remark">
|
|
|
- <el-input :disabled="formData.Status>0" type="textarea" v-model="formData.Remark" placeholder="请输入"></el-input>
|
|
|
|
|
|
|
+ <el-input :disabled="formData.Status>0" type="textarea" v-model="formData.Remark" placeholder="请输入">
|
|
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
@@ -61,7 +63,8 @@
|
|
|
<el-card class="box-card" style="margin-top: 10px;">
|
|
<el-card class="box-card" style="margin-top: 10px;">
|
|
|
<div slot="header">
|
|
<div slot="header">
|
|
|
<span><i class="icon icon-table2"></i> 增项分类</span>
|
|
<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="addSortData()">添加</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
<el-table :data="entityList" border style="width: 100%" @sort-change="orderby">
|
|
<el-table :data="entityList" border style="width: 100%" @sort-change="orderby">
|
|
|
<el-table-column label="操作" min-width="100" align="center" fixed>
|
|
<el-table-column label="操作" min-width="100" align="center" fixed>
|
|
@@ -132,10 +135,10 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item label="资质文件">
|
|
<el-form-item label="资质文件">
|
|
|
- <el-upload multiple style="margin-top: 10px;" action="" ref="refuploadattach" :http-request="uploadrequest"
|
|
|
|
|
- class="attach-uploader" :before-upload="beforeAvatarUpload">
|
|
|
|
|
|
|
+ <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>
|
|
<i class="el-icon-plus attach-uploader-icon"></i>
|
|
|
- <div slot="tip" class="el-upload__tip">大小为512KB-5MB</div>
|
|
|
|
|
|
|
+ <div slot="tip" class="el-upload__tip" v-if="SubfileForm.NeedFileType !=yasuoname">大小为512KB-5MB</div>
|
|
|
</el-upload>
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -260,6 +263,7 @@
|
|
|
import uploadajax from '@/assets/js//uploadajax.js'
|
|
import uploadajax from '@/assets/js//uploadajax.js'
|
|
|
import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
|
|
import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
|
|
|
import WfBackHistory from '@/components/workflow/wfbackhistory.vue'
|
|
import WfBackHistory from '@/components/workflow/wfbackhistory.vue'
|
|
|
|
|
+ import fileapi from '@/api/oilsupplier/supplierfile'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
@@ -289,6 +293,7 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
return {
|
|
return {
|
|
|
|
|
+ yasuoname: '',
|
|
|
auditbusList: [],
|
|
auditbusList: [],
|
|
|
audithistoryshow: false,
|
|
audithistoryshow: false,
|
|
|
chooseAuditorVisible: false,
|
|
chooseAuditorVisible: false,
|
|
@@ -365,7 +370,7 @@
|
|
|
Step: 1,
|
|
Step: 1,
|
|
|
Type: '',
|
|
Type: '',
|
|
|
Status: '',
|
|
Status: '',
|
|
|
- SupplierName:'',
|
|
|
|
|
|
|
+ SupplierName: '',
|
|
|
SupplierId: 0,
|
|
SupplierId: 0,
|
|
|
SupplierCertId: 0,
|
|
SupplierCertId: 0,
|
|
|
RecUnitFlag: '', //推荐单位的级联Id标记
|
|
RecUnitFlag: '', //推荐单位的级联Id标记
|
|
@@ -465,6 +470,13 @@
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ getDictOptions() {
|
|
|
|
|
+ fileapi.getDictList(this.$axios).then(res => {
|
|
|
|
|
+ this.yasuoname = res.data.items['YaSuoName']
|
|
|
|
|
+ }).catch(err => {
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
//获取资质文件
|
|
//获取资质文件
|
|
|
getFileList() {
|
|
getFileList() {
|
|
|
this.SupplierId = this.formData.SupplierId
|
|
this.SupplierId = this.formData.SupplierId
|
|
@@ -481,7 +493,6 @@
|
|
|
})
|
|
})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
_this.subfileList = res.data.items
|
|
_this.subfileList = res.data.items
|
|
|
- console.log("---this.subfileList---",this.subfileList)
|
|
|
|
|
_this.currentItemCount = res.data.currentItemCount
|
|
_this.currentItemCount = res.data.currentItemCount
|
|
|
for (let idx in _this.subfileList) {
|
|
for (let idx in _this.subfileList) {
|
|
|
console.log(_this.subfileList[idx])
|
|
console.log(_this.subfileList[idx])
|
|
@@ -493,17 +504,17 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
makesure() {
|
|
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()
|
|
|
|
|
|
|
+ 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() {
|
|
editSubfile() {
|
|
|
let _this = this
|
|
let _this = this
|
|
@@ -569,18 +580,20 @@
|
|
|
}
|
|
}
|
|
|
_this.doclist.push(params)
|
|
_this.doclist.push(params)
|
|
|
},
|
|
},
|
|
|
- beforeAvatarUpload (file) {
|
|
|
|
|
|
|
+ beforeAvatarUpload(file) {
|
|
|
/*let isLt512K = file.size / 1024 < 512
|
|
/*let isLt512K = file.size / 1024 < 512
|
|
|
if (isLt512K) {
|
|
if (isLt512K) {
|
|
|
this.$message.error('上传文件大小不能小于 512KB!')
|
|
this.$message.error('上传文件大小不能小于 512KB!')
|
|
|
return false
|
|
return false
|
|
|
}*/
|
|
}*/
|
|
|
- let isLt50m = file.size / 1024 / 1024 / 5 < 1
|
|
|
|
|
- if (!isLt50m) {
|
|
|
|
|
- this.$message.error('上传文件大小不能超过 5MB!')
|
|
|
|
|
- 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
|
|
|
}
|
|
}
|
|
|
- return true
|
|
|
|
|
},
|
|
},
|
|
|
uploadrequest(option) {
|
|
uploadrequest(option) {
|
|
|
let _this = this
|
|
let _this = this
|
|
@@ -713,7 +726,6 @@
|
|
|
let _this = this
|
|
let _this = this
|
|
|
api2.getEntityById(_this.Id, _this.$axios).then(res => {
|
|
api2.getEntityById(_this.Id, _this.$axios).then(res => {
|
|
|
_this.formData = res.data
|
|
_this.formData = res.data
|
|
|
- console.log("---this.formData---", _this.formData)
|
|
|
|
|
this.backhistroy.certId = _this.Id
|
|
this.backhistroy.certId = _this.Id
|
|
|
this.backhistroy.workflowId = _this.formData.WorkFlowId
|
|
this.backhistroy.workflowId = _this.formData.WorkFlowId
|
|
|
this.getFileList()
|
|
this.getFileList()
|
|
@@ -779,7 +791,6 @@
|
|
|
//访问接口
|
|
//访问接口
|
|
|
api.getList(params, this.$axios).then(res => {
|
|
api.getList(params, this.$axios).then(res => {
|
|
|
this.entityList = res.data.item
|
|
this.entityList = res.data.item
|
|
|
- console.log("------res.entityList==--", this.entityList)
|
|
|
|
|
// this.currentItemCount = res.data.currentItemCount
|
|
// this.currentItemCount = res.data.currentItemCount
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
@@ -894,7 +905,7 @@
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
})
|
|
})
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
- _this.$axios.delete('suppliercertsub/businessdelete/' +Id, {})
|
|
|
|
|
|
|
+ _this.$axios.delete('suppliercertsub/businessdelete/' + Id, {})
|
|
|
.then(function (response) {
|
|
.then(function (response) {
|
|
|
if (response.data.code === 0) {
|
|
if (response.data.code === 0) {
|
|
|
_this.$message({
|
|
_this.$message({
|
|
@@ -978,12 +989,10 @@
|
|
|
},
|
|
},
|
|
|
auditOrgChang(val) {
|
|
auditOrgChang(val) {
|
|
|
let deptid = val[val.length - 1]
|
|
let deptid = val[val.length - 1]
|
|
|
- console.log(deptid)
|
|
|
|
|
this.auditerOption = []
|
|
this.auditerOption = []
|
|
|
let auditstepcode = 'FIRST_TRIAL'
|
|
let auditstepcode = 'FIRST_TRIAL'
|
|
|
suppapi.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
|
|
suppapi.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
|
|
|
this.auditerOption = res.data.item
|
|
this.auditerOption = res.data.item
|
|
|
- console.log("---this.auditerOption---", this.auditerOption)
|
|
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|