|
|
@@ -50,7 +50,7 @@
|
|
|
</el-cascader>
|
|
|
</el-form-item>
|
|
|
</el-col> -->
|
|
|
- <el-col :span="8">
|
|
|
+ <el-col :span="6">
|
|
|
<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%">
|
|
|
@@ -60,12 +60,22 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="准入方式">
|
|
|
+ <el-select ref="SpecType" v-model="formData.InStyle" :disabled="this.formData.Status > '0'"
|
|
|
+ placeholder="请选择" style="width: 100%">
|
|
|
+ <el-option v-for="item in InOptions" :key="item.Id" :label="item.Key" v-if="item.Value != '2' && item.Value != '3'"
|
|
|
+ :value="item.Value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<!-- <el-col :span="12">
|
|
|
<el-form-item label="推荐单位编码" prop="RecUnitId">
|
|
|
<el-input v-model="formData.RecUnitId" placeholder="请输入推荐单位编码"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col> -->
|
|
|
- <el-col :span="16">
|
|
|
+ <el-col :span="12">
|
|
|
<el-form-item label="备注" prop="Remark">
|
|
|
<el-input :disabled="formData.Status>0" type="textarea" v-model="formData.Remark" placeholder="请输入"></el-input>
|
|
|
</el-form-item>
|
|
|
@@ -233,9 +243,15 @@
|
|
|
</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-cascader :options="preorgtreelist" :props="preorgtreeprops" :show-all-levels="false" filterable-->
|
|
|
+ <!--style="width: 100%" v-model="majorDept" placeholder="请选择专业处室" @change="orgtreeChange">-->
|
|
|
+ <!--</el-cascader>-->
|
|
|
+ <el-select v-model="selectDept" filterable
|
|
|
+ placeholder="请选择" style="width: 100%" @change="changeOrgUnit">
|
|
|
+ <el-option v-for="item in allorgunitOptions" :key="item.Id" :label="item.Fullname"
|
|
|
+ :value="item.Id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
@@ -391,6 +407,7 @@
|
|
|
}
|
|
|
}
|
|
|
return {
|
|
|
+ selectDept: '',
|
|
|
UnitOrg: '',
|
|
|
allowpre: true,
|
|
|
newVisible: false,
|
|
|
@@ -408,6 +425,7 @@
|
|
|
ComAuditdialogShow: false,
|
|
|
organizeOption: [], // 审批部门
|
|
|
auditerOption: [], // 审批人
|
|
|
+ allorgunitOptions: [],
|
|
|
orgtreeprops: {
|
|
|
value: 'Id',
|
|
|
label: 'CodeName',
|
|
|
@@ -515,6 +533,7 @@
|
|
|
Status: '',
|
|
|
SupplierId: 0,
|
|
|
SupplierCertId: 0,
|
|
|
+ InStyle: '',
|
|
|
RecUnitFlag: '', // 推荐单位的级联Id标记
|
|
|
RecUnitId: '', // 推荐单位编码
|
|
|
RecUnitName: '', // 推荐单位名称
|
|
|
@@ -570,6 +589,7 @@
|
|
|
Id: '', // 传的参数
|
|
|
editFlag: '', // 编辑操作标记
|
|
|
waituploads: [],
|
|
|
+ userOptions: [],
|
|
|
IsCompanyUser: ''
|
|
|
}
|
|
|
},
|
|
|
@@ -586,10 +606,19 @@
|
|
|
// this.getTechTreeList() //获取技术服务类层级列表
|
|
|
this.getSupplierList() // 获取供应方公司列表
|
|
|
this.getDictOptions()
|
|
|
- this.orgtreeChange(this.majorDept)
|
|
|
+ // this.orgtreeChange(this.majorDept)
|
|
|
+ this.changeOrgUnit(this.selectDept)
|
|
|
this.initTableHeader()
|
|
|
},
|
|
|
methods: {
|
|
|
+ changeOrgUnit (val) {
|
|
|
+ let auditstepcode = 'PROF_RECE'
|
|
|
+ suppapi.getAuditerByDept(val, auditstepcode, this.$axios).then(res => {
|
|
|
+ this.userOptions = res.data.item
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
newdeletedata (val) {
|
|
|
let _this = this
|
|
|
_this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
|
|
@@ -694,16 +723,16 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- 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)
|
|
|
- })
|
|
|
- },
|
|
|
+ // 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
|
|
|
@@ -847,6 +876,11 @@
|
|
|
},
|
|
|
|
|
|
commitaudit () {
|
|
|
+ if (this.formData.InStyle === '2' || this.formData.InStyle === '6' || this.formData.InStyle === '4') {
|
|
|
+ this.allowpre = false
|
|
|
+ } else {
|
|
|
+ this.allowpre = true
|
|
|
+ }
|
|
|
this.AuditdialogShow = true
|
|
|
// if (this.subfileList && this.subfileList.length > 0) {
|
|
|
// for (var i = 0; i < this.subfileList.length; i++) {
|
|
|
@@ -1310,7 +1344,6 @@
|
|
|
})
|
|
|
},
|
|
|
chooseAuditorShowFen () {
|
|
|
- console.log('--this.formData.SupplierTypeCode----', this.formData.SupplierTypeCode)
|
|
|
this.$refs['chooseAuditorFen'].getorgtreelist(this.formData.SupplierTypeCode)
|
|
|
this.chooseAuditorVisibleFen = true
|
|
|
},
|
|
|
@@ -1336,8 +1369,8 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.formData.InStyle != '2' && this.formData.InStyle != '6' || this.formData.InStyle == '4') {
|
|
|
- if (this.majorDept.length === 0) {
|
|
|
+ if (this.formData.InStyle === '1' || this.formData.InStyle === '5') {
|
|
|
+ if (this.selectDept === 0 || this.selectDept === '') {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
message: '请选择专业处室!'
|
|
|
@@ -1345,7 +1378,7 @@
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
- if (this.formData.InStyle != '2' && this.formData.InStyle != '6' || this.formData.InStyle == '4') {
|
|
|
+ if (this.formData.InStyle === '1' || this.formData.InStyle === '5') {
|
|
|
if (this.userOptions == null || this.userOptions.length === 0) {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
@@ -1358,7 +1391,7 @@
|
|
|
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]
|
|
|
+ this.auditform.ThirdAudit = this.selectDept
|
|
|
api2.auditEntity(this.formData.Id, this.auditform, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
// 保存成功后,初始化数据,变成修改
|
|
|
@@ -1381,6 +1414,13 @@
|
|
|
},
|
|
|
|
|
|
SubpEntity () {
|
|
|
+ if (this.myentityList == null || this.myentityList.length <= 0) {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '没有新增准入项,不能提交!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
if (this.UnitOrg === '') {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
@@ -1451,6 +1491,8 @@
|
|
|
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.allorgunitOptions = res.data.items['Allunitorglist']
|
|
|
+ this.InOptions = res.data.items['InOptions']
|
|
|
this.orgunitChange(this.UnitOrg)
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|