|
|
@@ -232,7 +232,7 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="专业处室">
|
|
|
+ <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>
|
|
|
@@ -336,7 +336,7 @@
|
|
|
import api2 from '@/api/oilsupplier/supplierappend'
|
|
|
import apiCert from '@/api/oilsupplier/suppliercert'
|
|
|
import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
|
|
|
- import WfMultiHistory from "@/components/workflow/wfmultihistory.vue";
|
|
|
+ import WfMultiHistory from '@/components/workflow/wfmultihistory.vue';
|
|
|
import ChooseAuditorFen from '@/components/oilsupplier/chooseauditorfenban'
|
|
|
import setapi from '@/api/oilsupplier/oilclassorgset'
|
|
|
|
|
|
@@ -353,7 +353,7 @@
|
|
|
},
|
|
|
name: 'oilsuppliercertappendsub',
|
|
|
|
|
|
- data() {
|
|
|
+ data () {
|
|
|
var CheckSelectedOption = (rule, value, callback) => {
|
|
|
if (this.selectedOrgList && this.selectedOrgList.length < 1) {
|
|
|
callback(new Error('请选择推荐单位'))
|
|
|
@@ -376,16 +376,17 @@
|
|
|
}
|
|
|
}
|
|
|
return {
|
|
|
- newVisible:false,
|
|
|
+ allowpre: true,
|
|
|
+ newVisible: false,
|
|
|
audithistoryshow: false,
|
|
|
chooseAuditorVisible: false,
|
|
|
chooseAuditorVisibleFen: false,
|
|
|
- orgtreelist: [], //二级单位
|
|
|
+ orgtreelist: [], // 二级单位
|
|
|
preorgtreelist: [],
|
|
|
secauditerOptions: [],
|
|
|
- fushenauditer: '', //复审人员
|
|
|
- majorDept: [], //专业可是
|
|
|
- AuditdialogShow: false, //提交审核弹框
|
|
|
+ fushenauditer: '', // 复审人员
|
|
|
+ majorDept: [], // 专业可是
|
|
|
+ AuditdialogShow: false, // 提交审核弹框
|
|
|
ComAuditdialogShow: false,
|
|
|
organizeOption: [], // 审批部门
|
|
|
auditerOption: [], // 审批人
|
|
|
@@ -400,10 +401,10 @@
|
|
|
children: 'children'
|
|
|
},
|
|
|
entrydetail: {
|
|
|
- process: "",
|
|
|
- business: "",
|
|
|
- instance: "",
|
|
|
- Status: '',
|
|
|
+ process: '',
|
|
|
+ business: '',
|
|
|
+ instance: '',
|
|
|
+ Status: ''
|
|
|
},
|
|
|
auditform: {
|
|
|
FirstAuditName: '',
|
|
|
@@ -421,7 +422,7 @@
|
|
|
dynamicTableColumns: [],
|
|
|
flag: '',
|
|
|
editbtn: true,
|
|
|
- //资质文件
|
|
|
+ // 资质文件
|
|
|
SubfileForm: {
|
|
|
Id: '',
|
|
|
SupplierId: '',
|
|
|
@@ -438,9 +439,9 @@
|
|
|
OtherRemark: '',
|
|
|
Remark: '',
|
|
|
IsDelete: 0,
|
|
|
- FileUrlList: [],
|
|
|
+ FileUrlList: []
|
|
|
},
|
|
|
- newSubfileForm:{
|
|
|
+ newSubfileForm: {
|
|
|
Id: '',
|
|
|
SupplierId: '',
|
|
|
SupplierTypeCode: '03',
|
|
|
@@ -457,25 +458,25 @@
|
|
|
OtherRemark: '',
|
|
|
Remark: '',
|
|
|
IsDelete: 0,
|
|
|
- FileUrlList: [],
|
|
|
+ FileUrlList: []
|
|
|
},
|
|
|
checkList: [],
|
|
|
auditer: '',
|
|
|
auditerName: '',
|
|
|
FirstAudit: '',
|
|
|
- keyword: '', //查询关键字
|
|
|
- supplierList: [], //供应方公司列表
|
|
|
- supplierOptions: '', //已选择的供应方公司列表
|
|
|
+ keyword: '', // 查询关键字
|
|
|
+ supplierList: [], // 供应方公司列表
|
|
|
+ supplierOptions: '', // 已选择的供应方公司列表
|
|
|
// serviceType: '', //服务类型()
|
|
|
- optionsList: [], //增项分类层级列表
|
|
|
- selectedOptList: [], //已选择的增项分类列表
|
|
|
+ optionsList: [], // 增项分类层级列表
|
|
|
+ selectedOptList: [], // 已选择的增项分类列表
|
|
|
tytreeprops: {
|
|
|
value: 'id',
|
|
|
label: 'Name',
|
|
|
children: 'children'
|
|
|
},
|
|
|
- organizeTreeList: [], //推荐单位层级列表
|
|
|
- selectedOrgList: [], //已选择的单位列表
|
|
|
+ organizeTreeList: [], // 推荐单位层级列表
|
|
|
+ selectedOrgList: [], // 已选择的单位列表
|
|
|
organizeTreeProps: {
|
|
|
value: 'id',
|
|
|
label: 'Fullname',
|
|
|
@@ -488,44 +489,44 @@
|
|
|
description: '',
|
|
|
id: 0
|
|
|
},
|
|
|
- //增项信息表
|
|
|
+ // 增项信息表
|
|
|
formData: {
|
|
|
Id: '',
|
|
|
Step: 1,
|
|
|
Status: '',
|
|
|
SupplierId: 0,
|
|
|
SupplierCertId: 0,
|
|
|
- RecUnitFlag: '', //推荐单位的级联Id标记
|
|
|
- RecUnitId: '', //推荐单位编码
|
|
|
- RecUnitName: '', //推荐单位名称
|
|
|
- AppendType: '', //增项类别(01 物资类,02 基建类,03 技术服务类)
|
|
|
- Remark: '', //备注
|
|
|
+ RecUnitFlag: '', // 推荐单位的级联Id标记
|
|
|
+ RecUnitId: '', // 推荐单位编码
|
|
|
+ RecUnitName: '', // 推荐单位名称
|
|
|
+ AppendType: '', // 增项类别(01 物资类,02 基建类,03 技术服务类)
|
|
|
+ Remark: '' // 备注
|
|
|
},
|
|
|
- dialogVisible: false, //增项分类dialog
|
|
|
+ dialogVisible: false, // 增项分类dialog
|
|
|
dialogFormData: {
|
|
|
Id: '',
|
|
|
- SupplierId: 0, //供方表ID
|
|
|
- SupplierCertId: 0, //供方证书表ID
|
|
|
- SupplierCertAppendId: '', //增项信息表ID
|
|
|
- SubClassId: 3, //分类表主键(物资类或基建类或技术服务类)
|
|
|
- SortFlag: '', //分类标记
|
|
|
- Code: '', //分类编码
|
|
|
- Name: '', //分类名称
|
|
|
- Remark: '', //备注
|
|
|
+ SupplierId: 0, // 供方表ID
|
|
|
+ SupplierCertId: 0, // 供方证书表ID
|
|
|
+ SupplierCertAppendId: '', // 增项信息表ID
|
|
|
+ SubClassId: 3, // 分类表主键(物资类或基建类或技术服务类)
|
|
|
+ SortFlag: '', // 分类标记
|
|
|
+ Code: '', // 分类编码
|
|
|
+ Name: '', // 分类名称
|
|
|
+ Remark: '' // 备注
|
|
|
},
|
|
|
- //列表数据
|
|
|
+ // 列表数据
|
|
|
entityList: [],
|
|
|
myentityList: [],
|
|
|
- //分页参数
|
|
|
+ // 分页参数
|
|
|
size: 10,
|
|
|
currentPage: 1,
|
|
|
currentItemCount: 0,
|
|
|
- //列表排序
|
|
|
+ // 列表排序
|
|
|
Column: {
|
|
|
Order: '',
|
|
|
Prop: ''
|
|
|
},
|
|
|
- //增项表单规则
|
|
|
+ // 增项表单规则
|
|
|
appendRules: {
|
|
|
checkSelectedRecUnitName: [{
|
|
|
required: true,
|
|
|
@@ -536,23 +537,23 @@
|
|
|
required: true,
|
|
|
validator: CheckSelectedOption3,
|
|
|
trigger: 'blur'
|
|
|
- }],
|
|
|
+ }]
|
|
|
},
|
|
|
- //增项分类表单规则
|
|
|
+ // 增项分类表单规则
|
|
|
sortEntityFormRules: {
|
|
|
checkSelectedOptList: [{
|
|
|
required: true,
|
|
|
validator: CheckSelectedOption2,
|
|
|
trigger: 'blur'
|
|
|
- }],
|
|
|
+ }]
|
|
|
},
|
|
|
- Id: '', //传的参数
|
|
|
- editFlag: '', //编辑操作标记
|
|
|
+ Id: '', // 传的参数
|
|
|
+ editFlag: '', // 编辑操作标记
|
|
|
waituploads: [],
|
|
|
- IsCompanyUser: '',
|
|
|
+ IsCompanyUser: ''
|
|
|
}
|
|
|
},
|
|
|
- created() {
|
|
|
+ created () {
|
|
|
this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
|
|
|
// this.serviceType = this.$route.params.opera //获取服务类型
|
|
|
this.Id = this.$route.query.Id
|
|
|
@@ -561,60 +562,60 @@
|
|
|
this.getEntityById()
|
|
|
this.dialogFormData.SupplierCertAppendId = this.Id
|
|
|
}
|
|
|
- this.getOrgTreeList() //获取推荐单位层级列表
|
|
|
- //this.getTechTreeList() //获取技术服务类层级列表
|
|
|
- this.getSupplierList() //获取供应方公司列表
|
|
|
+ this.getOrgTreeList() // 获取推荐单位层级列表
|
|
|
+ // this.getTechTreeList() //获取技术服务类层级列表
|
|
|
+ this.getSupplierList() // 获取供应方公司列表
|
|
|
this.getDictOptions()
|
|
|
this.orgtreeChange(this.majorDept)
|
|
|
this.initTableHeader()
|
|
|
},
|
|
|
methods: {
|
|
|
- newdeletedata(val) {
|
|
|
- let _this = this;
|
|
|
- _this.$confirm("此操作将永久删除该数据, 是否继续?", "提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
- })
|
|
|
+ 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",
|
|
|
+ type: 'success',
|
|
|
message: response.data.message
|
|
|
- });
|
|
|
- _this.getFileList();
|
|
|
- } else {
|
|
|
+ })
|
|
|
+ _this.getFileList()
|
|
|
+ } else {
|
|
|
_this.$message({
|
|
|
- type: "warning",
|
|
|
+ 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: '请上传文件!'
|
|
|
+ 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() {
|
|
|
+ addSubfile () {
|
|
|
let _this = this
|
|
|
_this.newSubfileForm.SupplierId = parseInt(this.SupplierId)
|
|
|
_this.$axios.post('/supplierfile/addsubfile/', _this.newSubfileForm)
|
|
|
@@ -622,7 +623,7 @@
|
|
|
if (res.data.code === 0) {
|
|
|
_this.$message({
|
|
|
type: 'success',
|
|
|
- message: res.data.message,
|
|
|
+ message: res.data.message
|
|
|
})
|
|
|
this.newVisible = false
|
|
|
this.getFileList()
|
|
|
@@ -638,15 +639,15 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- initTableHeader() {
|
|
|
- setapi.initTsTableHeader(this.$axios).then(res => {
|
|
|
- this.dynamicTableColumns = res.data.items
|
|
|
- })
|
|
|
+ initTableHeader () {
|
|
|
+ setapi.initTsTableHeader(this.$axios).then(res => {
|
|
|
+ this.dynamicTableColumns = res.data.items
|
|
|
+ })
|
|
|
},
|
|
|
- showDialog1(){
|
|
|
+ showDialog1 () {
|
|
|
this.newVisible = true
|
|
|
},
|
|
|
- newattachissuccess() {
|
|
|
+ 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') {
|
|
|
@@ -656,7 +657,7 @@
|
|
|
}
|
|
|
return true
|
|
|
},
|
|
|
- newgetattachissuccess() {
|
|
|
+ newgetattachissuccess () {
|
|
|
this.newSubfileForm.FileUrl = ''
|
|
|
this.newSubfileForm.FileName = ''
|
|
|
if (this.$refs.newrefuploadattach.uploadFiles && this.$refs.newrefuploadattach.uploadFiles.length > 0) {
|
|
|
@@ -673,7 +674,7 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- orgtreeChange(val) {
|
|
|
+ orgtreeChange (val) {
|
|
|
this.userOptions = []
|
|
|
let deptid = val[val.length - 1]
|
|
|
let auditstepcode = 'PROF_RECE'
|
|
|
@@ -683,15 +684,15 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- //获取推荐单位列表
|
|
|
- getOrgTreeList() {
|
|
|
+ // 获取推荐单位列表
|
|
|
+ getOrgTreeList () {
|
|
|
let _this = this
|
|
|
let params = {
|
|
|
IsInnerOrganize: this.organizeform.IsInnerOrganize
|
|
|
}
|
|
|
_this.$axios.get('organizes/orgalllist', {
|
|
|
- params
|
|
|
- })
|
|
|
+ params
|
|
|
+ })
|
|
|
.then(res => {
|
|
|
_this.organizeTreeList = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
|
|
|
if (_this.authUser.Profile.IsCompanyUser === 0) {
|
|
|
@@ -705,11 +706,11 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- //获取供应方公司列表
|
|
|
- getSupplierList() {
|
|
|
+ // 获取供应方公司列表
|
|
|
+ getSupplierList () {
|
|
|
let _this = this
|
|
|
let params = {
|
|
|
- SuppTypeCode: '03',
|
|
|
+ SuppTypeCode: '03'
|
|
|
}
|
|
|
_this.$axios.get('/suppliercertappend/getsupplier', {params})
|
|
|
.then(res => {
|
|
|
@@ -719,12 +720,12 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- chooseAuditorShow() {
|
|
|
+ chooseAuditorShow () {
|
|
|
this.$refs['chooseAuditor'].getorgtreelist(this.formData.SupplierTypeCode)
|
|
|
this.chooseAuditorVisible = true
|
|
|
},
|
|
|
|
|
|
- //获取技术服务类层级列表
|
|
|
+ // 获取技术服务类层级列表
|
|
|
// getTechTreeList() {
|
|
|
// let _this = this
|
|
|
// this.$axios.get('technologyservice/businesslist', {})
|
|
|
@@ -737,25 +738,25 @@
|
|
|
// })
|
|
|
// },
|
|
|
|
|
|
- //获取SupplierId和SupplierCertId
|
|
|
- getInfo(vId) { //这个vId也就是value值
|
|
|
+ // 获取SupplierId和SupplierCertId
|
|
|
+ getInfo (vId) { // 这个vId也就是value值
|
|
|
let obj = {}
|
|
|
obj = this.supplierList.find((item) => {
|
|
|
- return item.SupplierId === vId; //筛选出匹配数据
|
|
|
- })
|
|
|
+ return item.SupplierId === vId //筛选出匹配数据
|
|
|
+ })
|
|
|
this.formData.SupplierId = parseInt(obj.SupplierId)
|
|
|
this.formData.SupplierCertId = parseInt(obj.SupplierCertId)
|
|
|
},
|
|
|
|
|
|
- //获取分类级联Id
|
|
|
- getCode(item) {
|
|
|
+ // 获取分类级联Id
|
|
|
+ getCode (item) {
|
|
|
let sortFlagStr = item.toString()
|
|
|
this.dialogFormData.SortFlag = sortFlagStr
|
|
|
- this.getCodeById(item[item.length - 1]) //根据分类Id获取Code
|
|
|
+ this.getCodeById(item[item.length - 1]) // 根据分类Id获取Code
|
|
|
},
|
|
|
|
|
|
- //根据分类Id获取Code
|
|
|
- getCodeById(Id) {
|
|
|
+ // 根据分类Id获取Code
|
|
|
+ getCodeById (Id) {
|
|
|
let _this = this
|
|
|
this.$axios.get('technologyservice/getcode/' + Id, {})
|
|
|
.then(res => {
|
|
|
@@ -766,28 +767,31 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- //获取推荐单位级联Id
|
|
|
- getCode2(item) {
|
|
|
+ // 获取推荐单位级联Id
|
|
|
+ getCode2 (item) {
|
|
|
let codeStr = item.toString()
|
|
|
this.formData.RecUnitFlag = codeStr
|
|
|
},
|
|
|
|
|
|
- //审批历史
|
|
|
- auhistory() {
|
|
|
+ // 审批历史
|
|
|
+ auhistory () {
|
|
|
this.audithistoryshow = true
|
|
|
},
|
|
|
|
|
|
- //获取需要修改的增项信息
|
|
|
- getEntityById() {
|
|
|
+ // 获取需要修改的增项信息
|
|
|
+ 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
|
|
|
+ this.entrydetail.instance = this.formData.WorkFlowId
|
|
|
+ this.entrydetail.Status = this.formData.Status
|
|
|
+ if (this.formData.InStyle == '2' || this.formData.InStyle == '6') {
|
|
|
+ this.allowpre = false
|
|
|
+ }
|
|
|
this.getFileList()
|
|
|
- //显示公司名
|
|
|
+ // 显示公司名
|
|
|
_this.supplierOptions = _this.formData.SupplierId.toString()
|
|
|
_this.getSortList()
|
|
|
_this.getMySortList()
|
|
|
@@ -795,8 +799,8 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- //获取资质文件
|
|
|
- getFileList() {
|
|
|
+ // 获取资质文件
|
|
|
+ getFileList () {
|
|
|
this.SupplierId = this.formData.SupplierId
|
|
|
this.SupplierTypeCode = this.formData.AppendType
|
|
|
let _this = this
|
|
|
@@ -804,11 +808,11 @@
|
|
|
SupplierId: this.SupplierId,
|
|
|
SupplierTypeCode: this.SupplierTypeCode,
|
|
|
_currentPage: 1,
|
|
|
- _size: 1000,
|
|
|
+ _size: 1000
|
|
|
}
|
|
|
_this.$axios.get('supplierfile/filelistall', {
|
|
|
- params
|
|
|
- })
|
|
|
+ params
|
|
|
+ })
|
|
|
.then(res => {
|
|
|
_this.subfileList = res.data.items
|
|
|
_this.currentItemCount = res.data.currentItemCount
|
|
|
@@ -820,7 +824,7 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- makesure() {
|
|
|
+ makesure () {
|
|
|
if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
|
|
|
// 上传附件是否完成判断
|
|
|
if (!this.attachissuccess()) {
|
|
|
@@ -833,7 +837,7 @@
|
|
|
this.editSubfile()
|
|
|
}
|
|
|
},
|
|
|
- editSubfile() {
|
|
|
+ editSubfile () {
|
|
|
let _this = this
|
|
|
_this.SubfileForm.SupplierId = parseInt(_this.SubfileForm.SupplierId)
|
|
|
_this.SubfileForm.SupplierCertSubId = parseInt(_this.SubfileForm.SupplierCertSubId)
|
|
|
@@ -842,7 +846,7 @@
|
|
|
if (res.data.code === 0) {
|
|
|
_this.$message({
|
|
|
type: 'success',
|
|
|
- message: res.data.message,
|
|
|
+ message: res.data.message
|
|
|
})
|
|
|
this.visible = false
|
|
|
this.getFileList()
|
|
|
@@ -858,12 +862,12 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- fileurlcut(val, index) {
|
|
|
+ fileurlcut (val, index) {
|
|
|
let fileurlall = val.split('$')[index]
|
|
|
- let fileurl = fileurlall.split("|")
|
|
|
+ let fileurl = fileurlall.split('|')
|
|
|
return fileurl[0]
|
|
|
},
|
|
|
- openDialog(val) {
|
|
|
+ openDialog (val) {
|
|
|
this.SubfileForm.Id = val.Id
|
|
|
this.SubfileForm.SupplierId = val.SupplierId
|
|
|
this.SubfileForm.SupplierTypeCode = val.SupplierTypeCode
|
|
|
@@ -886,8 +890,8 @@
|
|
|
this.SubfileForm.IsDelete = val.IsDelete
|
|
|
this.visible = true
|
|
|
},
|
|
|
- //文档列表
|
|
|
- getwendanginfo(iUrl) {
|
|
|
+ // 文档列表
|
|
|
+ getwendanginfo (iUrl) {
|
|
|
let _this = this
|
|
|
_this.doclist = []
|
|
|
let exArr = iUrl.split('|')
|
|
|
@@ -897,12 +901,12 @@
|
|
|
}
|
|
|
_this.doclist.push(params)
|
|
|
},
|
|
|
- beforeAvatarUpload(file) {
|
|
|
+ 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!')
|
|
|
@@ -910,7 +914,7 @@
|
|
|
}
|
|
|
return true
|
|
|
},
|
|
|
- uploadrequest(option) {
|
|
|
+ uploadrequest (option) {
|
|
|
let _this = this
|
|
|
if (process.client) {
|
|
|
const myDomain = window.location.host
|
|
|
@@ -953,7 +957,7 @@
|
|
|
}
|
|
|
},
|
|
|
// 判断附件是否上传成功
|
|
|
- attachissuccess() {
|
|
|
+ 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') {
|
|
|
@@ -963,7 +967,7 @@
|
|
|
}
|
|
|
return true
|
|
|
},
|
|
|
- getattachissuccess() {
|
|
|
+ getattachissuccess () {
|
|
|
this.SubfileForm.FileUrl = ''
|
|
|
this.SubfileForm.FileName = ''
|
|
|
if (this.$refs.refuploadattach.uploadFiles && this.$refs.refuploadattach.uploadFiles.length > 0) {
|
|
|
@@ -980,11 +984,11 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- clickachment(url, uid) {
|
|
|
+ clickachment (url, uid) {
|
|
|
window.open(`http://${url}`)
|
|
|
},
|
|
|
- //保存增项信息
|
|
|
- saveEntity() {
|
|
|
+ // 保存增项信息
|
|
|
+ saveEntity () {
|
|
|
let _this = this
|
|
|
this.$refs['EntityForm'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
@@ -999,8 +1003,8 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- //更新增项信息
|
|
|
- updateData() {
|
|
|
+ // 更新增项信息
|
|
|
+ updateData () {
|
|
|
this.formData.SupplierName = this.$refs.suppselect.selectedLabel + ''
|
|
|
let _this = this
|
|
|
api2.updateEntity(_this.Id, _this.formData, _this.$axios).then(res => {
|
|
|
@@ -1009,21 +1013,21 @@
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
|
- });
|
|
|
- } else {
|
|
|
+ })
|
|
|
+ } else {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
message: res.data.message
|
|
|
- });
|
|
|
- }
|
|
|
+ })
|
|
|
+ }
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- //获取增项分类表
|
|
|
- getSortList() {
|
|
|
- //分页及列表条件
|
|
|
+ // 获取增项分类表
|
|
|
+ getSortList () {
|
|
|
+ // 分页及列表条件
|
|
|
let params = {
|
|
|
// _currentPage: this.currentPage,
|
|
|
// _size: this.size,
|
|
|
@@ -1031,20 +1035,20 @@
|
|
|
// Prop: this.Column.Prop,
|
|
|
SupplierCertAppendId: this.dialogFormData.SupplierCertAppendId,
|
|
|
SupCertId: this.formData.SupplierCertId,
|
|
|
- SupTypeCode: this.formData.AppendType,
|
|
|
- };
|
|
|
+ SupTypeCode: this.formData.AppendType
|
|
|
+ }
|
|
|
|
|
|
- //访问接口
|
|
|
- api.getList(params, this.$axios).then(res => {
|
|
|
+ //访问接口
|
|
|
+ api.getList(params, this.$axios).then(res => {
|
|
|
this.entityList = res.data.item
|
|
|
// this.currentItemCount = res.data.currentItemCount
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- //获取增项分类表
|
|
|
- getMySortList() {
|
|
|
- //分页及列表条件
|
|
|
+ // 获取增项分类表
|
|
|
+ getMySortList () {
|
|
|
+ // 分页及列表条件
|
|
|
let params = {
|
|
|
// _currentPage: this.currentPage,
|
|
|
// _size: this.size,
|
|
|
@@ -1052,11 +1056,11 @@
|
|
|
// Prop: this.Column.Prop,
|
|
|
SupplierCertAppendId: this.dialogFormData.SupplierCertAppendId,
|
|
|
SupCertId: this.formData.SupplierCertId,
|
|
|
- SupTypeCode: this.formData.AppendType,
|
|
|
- };
|
|
|
+ SupTypeCode: this.formData.AppendType
|
|
|
+ }
|
|
|
|
|
|
- //访问接口
|
|
|
- api.getMyList(params, this.$axios).then(res => {
|
|
|
+ //访问接口
|
|
|
+ api.getMyList(params, this.$axios).then(res => {
|
|
|
this.myentityList = res.data.item
|
|
|
// this.currentItemCount = res.data.currentItemCount
|
|
|
}).catch(err => {
|
|
|
@@ -1064,8 +1068,8 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- //添加增项信息
|
|
|
- addAppend() {
|
|
|
+ // 添加增项信息
|
|
|
+ addAppend () {
|
|
|
this.formData.SupplierName = this.$refs.suppselect.selectedLabel + ''
|
|
|
let _this = this
|
|
|
_this.formData.AppendType = '03'
|
|
|
@@ -1073,12 +1077,12 @@
|
|
|
.then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
this.entityList = res.data.item
|
|
|
- this.dialogFormData.SupplierCertAppendId = res.data.info //接收插入数据后返回的Id
|
|
|
+ this.dialogFormData.SupplierCertAppendId = res.data.info // 接收插入数据后返回的Id
|
|
|
this.Id = res.data.info
|
|
|
this.getEntityById()
|
|
|
_this.$message({
|
|
|
type: 'success',
|
|
|
- message: res.data.message,
|
|
|
+ message: res.data.message
|
|
|
})
|
|
|
} else {
|
|
|
_this.$message({
|
|
|
@@ -1092,13 +1096,13 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- //添加增项分类
|
|
|
- addSortData() {
|
|
|
+ // 添加增项分类
|
|
|
+ addSortData () {
|
|
|
let _this = this
|
|
|
- //先判断是否保存了增项信息
|
|
|
+ // 先判断是否保存了增项信息
|
|
|
if (this.checkAppendSave()) {
|
|
|
_this.dialogVisible = true
|
|
|
- _this.selectedOptList = [] //置空,防止先修改再添加时的已选分类信息保留
|
|
|
+ _this.selectedOptList = [] // 置空,防止先修改再添加时的已选分类信息保留
|
|
|
_this.dialogFormData.Id = ''
|
|
|
_this.dialogFormData.SortFlag = ''
|
|
|
_this.dialogFormData.Code = ''
|
|
|
@@ -1107,13 +1111,13 @@
|
|
|
this.getorgtreelist()
|
|
|
},
|
|
|
|
|
|
- //取消
|
|
|
- cancelOption() {
|
|
|
+ // 取消
|
|
|
+ cancelOption () {
|
|
|
this.dialogVisible = false
|
|
|
},
|
|
|
|
|
|
- //确定
|
|
|
- ensureOption() {
|
|
|
+ // 确定
|
|
|
+ ensureOption () {
|
|
|
let arr = []
|
|
|
let val = this.$refs.orgmanagetree.getCheckedNodes()
|
|
|
this.checkList = []
|
|
|
@@ -1128,8 +1132,8 @@
|
|
|
this.addSortAppend()
|
|
|
},
|
|
|
|
|
|
- //判断是否保存了增项信息
|
|
|
- checkAppendSave() {
|
|
|
+ // 判断是否保存了增项信息
|
|
|
+ checkAppendSave () {
|
|
|
if (this.dialogFormData.SupplierCertAppendId == '' && this.editFlag == null) {
|
|
|
this.$message({
|
|
|
type: 'error',
|
|
|
@@ -1140,8 +1144,8 @@
|
|
|
return true
|
|
|
},
|
|
|
|
|
|
- //添加增项分类信息
|
|
|
- addSortAppend() {
|
|
|
+ // 添加增项分类信息
|
|
|
+ addSortAppend () {
|
|
|
let _this = this
|
|
|
let params = {
|
|
|
SupplierId: parseInt(this.formData.SupplierId),
|
|
|
@@ -1149,7 +1153,7 @@
|
|
|
SupplierCertAppendId: parseInt(this.dialogFormData.SupplierCertAppendId),
|
|
|
SupplierTypeCode: '03',
|
|
|
Remark: this.dialogFormData.Remark,
|
|
|
- Type:"2"
|
|
|
+ Type: '2'
|
|
|
}
|
|
|
if (_this.checkList.length > 0) {
|
|
|
params = Object.assign(params, {
|
|
|
@@ -1167,11 +1171,11 @@
|
|
|
if (res.data.code === 0) {
|
|
|
_this.$message({
|
|
|
type: 'success',
|
|
|
- message: res.data.message,
|
|
|
+ message: res.data.message
|
|
|
})
|
|
|
- //关闭dialog
|
|
|
+ // 关闭dialog
|
|
|
_this.dialogVisible = false
|
|
|
- //更新增项分类表
|
|
|
+ // 更新增项分类表
|
|
|
_this.getEntityById()
|
|
|
} else {
|
|
|
_this.$message({
|
|
|
@@ -1185,14 +1189,14 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- //删除增项分类信息
|
|
|
- deleteData(Id) {
|
|
|
+ // 删除增项分类信息
|
|
|
+ deleteData (Id) {
|
|
|
let _this = this
|
|
|
_this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
.then(() => {
|
|
|
_this.$axios.delete('suppliercertsub/businessdelete/' + Id, {})
|
|
|
.then(function (response) {
|
|
|
@@ -1216,57 +1220,57 @@
|
|
|
.catch(() => {})
|
|
|
},
|
|
|
|
|
|
- selectAuditOrg() {
|
|
|
+ selectAuditOrg () {
|
|
|
this.dialogVisible = true
|
|
|
},
|
|
|
- setAuditer(val, name) {
|
|
|
+ setAuditer (val, name) {
|
|
|
this.auditer = val
|
|
|
this.auditerName = name
|
|
|
this.chooseAuditorVisible = false
|
|
|
this.auditOrgChang(this.auditer)
|
|
|
},
|
|
|
- auditOrgChang(val) {
|
|
|
- let auditstepcode = "SECOND_TRIAL";
|
|
|
+ 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() {
|
|
|
- console.log("--this.formData.SupplierTypeCode----", this.formData.SupplierTypeCode)
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ chooseAuditorShowFen () {
|
|
|
+ console.log('--this.formData.SupplierTypeCode----', this.formData.SupplierTypeCode)
|
|
|
this.$refs['chooseAuditorFen'].getorgtreelist(this.formData.SupplierTypeCode)
|
|
|
this.chooseAuditorVisibleFen = true
|
|
|
},
|
|
|
- setAuditerFen(val, name) {
|
|
|
+ setAuditerFen (val, name) {
|
|
|
this.auditer = val
|
|
|
this.auditerName = name
|
|
|
this.chooseAuditorVisibleFen = false
|
|
|
},
|
|
|
|
|
|
- //提交审批
|
|
|
- AuditEntity() {
|
|
|
- if (this.auditer === "") {
|
|
|
+ // 提交审批
|
|
|
+ AuditEntity () {
|
|
|
+ if (this.auditer === '') {
|
|
|
this.$message({
|
|
|
- type: "warning",
|
|
|
- message: "请选择初审人!"
|
|
|
+ type: 'warning',
|
|
|
+ message: '请选择初审人!'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.fushenauditer === "") {
|
|
|
+ if (this.fushenauditer === '') {
|
|
|
this.$message({
|
|
|
- type: "warning",
|
|
|
- message: "请选择复审人!"
|
|
|
+ type: 'warning',
|
|
|
+ message: '请选择复审人!'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
if (this.majorDept.length === 0) {
|
|
|
this.$message({
|
|
|
- type: "warning",
|
|
|
- message: "请选择专业处室!"
|
|
|
+ type: 'warning',
|
|
|
+ message: '请选择专业处室!'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
@@ -1303,11 +1307,11 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- SubpEntity() {
|
|
|
- if (this.auditer === "") {
|
|
|
+ SubpEntity () {
|
|
|
+ if (this.auditer === '') {
|
|
|
this.$message({
|
|
|
- type: "warning",
|
|
|
- message: "请选择分办人!"
|
|
|
+ type: 'warning',
|
|
|
+ message: '请选择分办人!'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
@@ -1335,18 +1339,18 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- showDialog() {
|
|
|
+ showDialog () {
|
|
|
this.getorgtreelist()
|
|
|
this.techDialog = true
|
|
|
},
|
|
|
- getorgtreelist() {
|
|
|
+ getorgtreelist () {
|
|
|
let _this = this
|
|
|
let params = {
|
|
|
keyword: _this.keyword
|
|
|
}
|
|
|
this.$axios.get('technologyservice/techbuslist', {
|
|
|
- params
|
|
|
- })
|
|
|
+ params
|
|
|
+ })
|
|
|
.then(res => {
|
|
|
_this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Code,Name,CodeName')
|
|
|
})
|
|
|
@@ -1355,7 +1359,7 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- getDictOptions() {
|
|
|
+ getDictOptions () {
|
|
|
let params = {
|
|
|
status: this.formData.Status,
|
|
|
majorAduit: this.formData.ThirdAudit
|
|
|
@@ -1369,8 +1373,8 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- //列表排序功能
|
|
|
- orderby(column) {
|
|
|
+ // 列表排序功能
|
|
|
+ orderby (column) {
|
|
|
if (column.order == 'ascending') {
|
|
|
this.Column.Order = 'asc'
|
|
|
} else if (column.order == 'descending') {
|
|
|
@@ -1378,18 +1382,18 @@
|
|
|
}
|
|
|
this.Column.Prop = column.prop
|
|
|
},
|
|
|
- //分页功能
|
|
|
- handleCurrentChange(value) {
|
|
|
+ // 分页功能
|
|
|
+ handleCurrentChange (value) {
|
|
|
this.currentPage = value
|
|
|
this.getSortList()
|
|
|
},
|
|
|
- handleSizeChange(value) {
|
|
|
+ handleSizeChange (value) {
|
|
|
this.size = value
|
|
|
this.currentPage = 1
|
|
|
this.getSortList()
|
|
|
},
|
|
|
|
|
|
- jstimehandle(val) {
|
|
|
+ jstimehandle (val) {
|
|
|
if (val === '') {
|
|
|
return '----'
|
|
|
} else if (val === '0001-01-01T08:00:00+08:00') {
|
|
|
@@ -1400,10 +1404,9 @@
|
|
|
val = val.replace('T', ' ')
|
|
|
return val.substring(0, 10)
|
|
|
}
|
|
|
- },
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
</script>
|
|
|
<style lang='scss'>
|
|
|
.attach-uploader .el-upload {
|