|
|
@@ -31,13 +31,14 @@
|
|
|
<el-button style="float: right; padding: 3px 0" type="text" @click="subfiledialog">添加</el-button>
|
|
|
</div>
|
|
|
<subfile-list ref="subfileList" :data="subfileList" :SupplierCertId="SupplierCertId" :SupplierCertSubId="cersubId"
|
|
|
- :businessList="businessList" :BusinessForm="BusinessForm" height="360px" style="margin-top: 20px"></subfile-list>
|
|
|
+ :businessList="businessList" :BusinessForm="BusinessForm" height="360px" style="margin-top: 20px">
|
|
|
+ </subfile-list>
|
|
|
</el-card>
|
|
|
|
|
|
<el-dialog :title="Title" :visible.sync="visible" top="5vh">
|
|
|
<el-form :model="BusinessForm" label-width="100px">
|
|
|
<el-row>
|
|
|
- <el-col :span="12" v-if="SubClassId == '1'">
|
|
|
+ <el-col :span="12" v-if="SupplierTypeCode == '01'">
|
|
|
<el-form-item label="名称" required>
|
|
|
<el-select filterable default-first-option v-model="OneCode" placeholder="请选择" style="width: 100%"
|
|
|
@change="getChild()">
|
|
|
@@ -46,7 +47,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12" v-if="SubClassId == '3'">
|
|
|
+ <el-col :span="12" v-if="SupplierTypeCode == '02'">
|
|
|
<el-form-item label="名称" required>
|
|
|
<el-input placeholder="请选择名称" v-model="BusinessForm.Name" style="width:100%">
|
|
|
<el-button type="primary" style="width:30%" @click="basicDialog = true" slot="append">选择
|
|
|
@@ -54,7 +55,7 @@
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12" v-if="SubClassId != '3'">
|
|
|
+ <el-col :span="12" v-if="SupplierTypeCode != '02'">
|
|
|
<el-form-item label="名称" required>
|
|
|
<el-cascader :options="techTreeList" :props="orgtreeprops" change-on-select :show-all-levels="false"
|
|
|
v-model="selectedorg" placeholder="请选择菜单" @change="getCode()" style="width:100%"></el-cascader>
|
|
|
@@ -129,7 +130,7 @@
|
|
|
type: String,
|
|
|
default: '0'
|
|
|
},
|
|
|
- SubClassId: {
|
|
|
+ SupplierTypeCode: {
|
|
|
type: String,
|
|
|
default: '0'
|
|
|
}
|
|
|
@@ -163,6 +164,7 @@
|
|
|
Id: '',
|
|
|
SupplierId: '',
|
|
|
SupplierCertId: '',
|
|
|
+ SupplierTypeCode: '',
|
|
|
SubClassId: '',
|
|
|
Code: '',
|
|
|
Name: '',
|
|
|
@@ -191,7 +193,7 @@
|
|
|
let _this = this
|
|
|
const params = {
|
|
|
SupplierCertId: this.SupplierCertId,
|
|
|
- SubClassId: this.SubClassId,
|
|
|
+ SupplierTypeCode: this.SupplierTypeCode,
|
|
|
_currentPage: this.currentPage,
|
|
|
_size: this.size,
|
|
|
}
|
|
|
@@ -308,7 +310,8 @@
|
|
|
this.BusinessForm.Id = ''
|
|
|
this.BusinessForm.SupplierId = this.SupplierId
|
|
|
this.BusinessForm.SupplierCertId = this.SupplierCertId
|
|
|
- this.BusinessForm.SubClassId = this.SubClassId
|
|
|
+ this.BusinessForm.SupplierTypeCode = this.SupplierTypeCode
|
|
|
+ this.BusinessForm.SubClassId = ''
|
|
|
this.BusinessForm.Code = ''
|
|
|
this.BusinessForm.Name = ''
|
|
|
this.BusinessForm.Remark = ''
|
|
|
@@ -321,6 +324,7 @@
|
|
|
this.BusinessForm.Id = val.Id
|
|
|
this.BusinessForm.SupplierId = val.SupplierId
|
|
|
this.BusinessForm.SupplierCertId = val.SupplierCertId
|
|
|
+ this.BusinessForm.SupplierTypeCode = val.SupplierTypeCode
|
|
|
this.BusinessForm.SubClassId = val.SubClassId
|
|
|
this.BusinessForm.Code = val.Code
|
|
|
this.BusinessForm.Name = val.Name
|
|
|
@@ -331,7 +335,7 @@
|
|
|
},
|
|
|
getbusiness() {
|
|
|
let _this = this
|
|
|
- if (_this.SubClassId == '1') { //获取物资类业务列表
|
|
|
+ if (_this.SupplierTypeCode == '01') { //获取物资类业务列表
|
|
|
this.$axios.get('goodsaptitude/goodsparentlist', {})
|
|
|
.then(res => {
|
|
|
_this.oneList = res.data.items
|
|
|
@@ -346,17 +350,7 @@
|
|
|
.catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
- } else if (_this.SubClassId == '2') { //获取技术服务类业务列表
|
|
|
- this.$axios.get('technologyservice/businesslist', {})
|
|
|
- .then(res => {
|
|
|
- _this.techList = res.data.items
|
|
|
- _this.techTreeList = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Name')
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- // handle error
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- } else if (_this.SubClassId == '3') { //获取基建类业务列表
|
|
|
+ } else if (_this.SupplierTypeCode == '02') { //获取基建类业务列表
|
|
|
const params = {
|
|
|
keyword: this.keyword,
|
|
|
_currentPage: this.CurrentPage,
|
|
|
@@ -373,12 +367,23 @@
|
|
|
// handle error
|
|
|
console.error(err)
|
|
|
})
|
|
|
+ } else if (_this.SupplierTypeCode == '03') { //获取技术服务类业务列表
|
|
|
+ this.$axios.get('technologyservice/businesslist', {})
|
|
|
+ .then(res => {
|
|
|
+ _this.techList = res.data.items
|
|
|
+ _this.techTreeList = window.toolfun_gettreejson(res.data.items, 'Id', 'ParentId', 'Id,Name')
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ // handle error
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
getCode() {
|
|
|
this.ClassId = this.selectedorg[this.selectedorg.length - 1]
|
|
|
for (var i = 0; i < this.techList.length; i++) {
|
|
|
if (this.selectedorg[this.selectedorg.length - 1] == this.techList[i].Id) {
|
|
|
+ this.BusinessForm.SubClassId = this.techList[i].Id
|
|
|
this.BusinessForm.Name = this.techList[i].Name
|
|
|
this.BusinessForm.Code = this.techList[i].Code
|
|
|
}
|
|
|
@@ -408,6 +413,7 @@
|
|
|
this.ClassId = this.OneCode
|
|
|
for (var i = 0; i < this.oneList.length; i++) {
|
|
|
if (this.OneCode == this.oneList[i].Id) {
|
|
|
+ this.BusinessForm.SubClassId = this.techList[i].Id
|
|
|
this.BusinessForm.Name = this.oneList[i].Name
|
|
|
this.BusinessForm.Code = this.oneList[i].Code
|
|
|
}
|
|
|
@@ -424,8 +430,7 @@
|
|
|
const params = {
|
|
|
ClassId: this.ClassId
|
|
|
}
|
|
|
- console.log(params)
|
|
|
- if (_this.SubClassId == '2') { //获取技术服务类文件需求
|
|
|
+ if (_this.SubClassId == '03') { //获取技术服务类文件需求
|
|
|
this.$axios.get('technologyservice/needfilelist', {
|
|
|
params
|
|
|
})
|