|
|
@@ -15,7 +15,8 @@
|
|
|
<!--v-if="formData.Step>=5"-->
|
|
|
<el-button type="primary" plain size="mini">增项申请</el-button>
|
|
|
<router-link :to="'/oilsupplier/supplier/techlist'">
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" v-if="authUser.Profile.IsCompanyUser != 1">返回</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" v-if="authUser.Profile.IsCompanyUser != 1">返回
|
|
|
+ </el-button>
|
|
|
</router-link>
|
|
|
</span>
|
|
|
</div>
|
|
|
@@ -37,7 +38,9 @@
|
|
|
<el-button type="primary" size="mini" @click="saveEntity">保存基本信息</el-button>
|
|
|
</span>
|
|
|
</div>
|
|
|
- <tech-info ref="TechInfo" :formData.sync="formData" :dictData.sync="dictData" :authUser="authUser" :canUpdateSupplier="canUpdateSupplier" @selectcompany="changeFormData" @inputcompany="inputCompany"></tech-info>
|
|
|
+ <tech-info ref="TechInfo" :formData.sync="formData" :dictData.sync="dictData" :authUser="authUser"
|
|
|
+ :canUpdateSupplier="canUpdateSupplier" @selectcompany="changeFormData" @inputcompany="inputCompany">
|
|
|
+ </tech-info>
|
|
|
</el-card>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
@@ -130,8 +133,8 @@
|
|
|
<span>企业主要装备情况</span>
|
|
|
<el-button style="float: right; padding: 3px 0" type="text" @click="equipmentdialog">添加</el-button>
|
|
|
</div>
|
|
|
- <equipment-list ref="equipmentList" :data="equipmentList" :SupplierCertId="certId" height="360px"
|
|
|
- style="margin-top: 20px"></equipment-list>
|
|
|
+ <equipment-list ref="equipmentList" :data="equipmentList" :SupplierCertId="certId"
|
|
|
+ :SupplierTypeCode="classId" height="360px" style="margin-top: 20px"></equipment-list>
|
|
|
</el-card>
|
|
|
|
|
|
<el-card class="box-card" style="margin-top: 10px;">
|
|
|
@@ -139,8 +142,8 @@
|
|
|
<span>近三年主要工程业绩</span>
|
|
|
<el-button style="float: right; padding: 3px 0" type="text" @click="performancedialog">添加</el-button>
|
|
|
</div>
|
|
|
- <performance-list ref="performanceList" :data="performanceList" :SupplierCertId="certId" height="360px"
|
|
|
- style="margin-top: 20px"></performance-list>
|
|
|
+ <performance-list ref="performanceList" :data="performanceList" :SupplierCertId="certId"
|
|
|
+ :SupplierTypeCode="classId" height="360px" style="margin-top: 20px"></performance-list>
|
|
|
</el-card>
|
|
|
|
|
|
<el-card class="box-card" style="margin-top: 10px;">
|
|
|
@@ -148,8 +151,8 @@
|
|
|
<span>拥有专利、专有技术及工法</span>
|
|
|
<el-button style="float: right; padding: 3px 0" type="text" @click="patentdialog">添加</el-button>
|
|
|
</div>
|
|
|
- <patent-list ref="patentList" :data="patentList" :SupplierCertId="certId" height="360px"
|
|
|
- style="margin-top: 20px">
|
|
|
+ <patent-list ref="patentList" :data="patentList" :SupplierCertId="certId" :SupplierTypeCode="classId"
|
|
|
+ height="360px" style="margin-top: 20px">
|
|
|
</patent-list>
|
|
|
</el-card>
|
|
|
|
|
|
@@ -158,8 +161,8 @@
|
|
|
<span>近三年获得省部级及以上主要技术、管理成果、获奖项目</span>
|
|
|
<el-button style="float: right; padding: 3px 0" type="text" @click="winningdialog">添加</el-button>
|
|
|
</div>
|
|
|
- <winning-list ref="winningList" :data="winningList" :SupplierCertId="certId" height="360px"
|
|
|
- style="margin-top: 20px">
|
|
|
+ <winning-list ref="winningList" :data="winningList" :SupplierCertId="certId" :SupplierTypeCode="classId"
|
|
|
+ height="360px" style="margin-top: 20px">
|
|
|
</winning-list>
|
|
|
</el-card>
|
|
|
</el-tab-pane>
|
|
|
@@ -225,7 +228,7 @@
|
|
|
},
|
|
|
name: 'oilsupplierEdit',
|
|
|
|
|
|
- data () {
|
|
|
+ data() {
|
|
|
return {
|
|
|
canUpdateSupplier: true,
|
|
|
dictData: null,
|
|
|
@@ -340,7 +343,7 @@
|
|
|
},
|
|
|
}
|
|
|
},
|
|
|
- created () {
|
|
|
+ created() {
|
|
|
this.serviceId = this.$route.params.opera + ''
|
|
|
if (this.$route.query.certid) {
|
|
|
this.certId = this.$route.query.certid + ''
|
|
|
@@ -354,7 +357,7 @@
|
|
|
this.initDatas()
|
|
|
},
|
|
|
methods: {
|
|
|
- inputCompany (val) {
|
|
|
+ inputCompany(val) {
|
|
|
if (!this.certId) {
|
|
|
api.getEntityByName(val, this.$axios).then(res => {
|
|
|
if (res.data && res.data.Id) {
|
|
|
@@ -365,12 +368,12 @@
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- changeFormData (fdata) {
|
|
|
+ changeFormData(fdata) {
|
|
|
if (!this.certId) {
|
|
|
this.SetFormData(fdata)
|
|
|
}
|
|
|
},
|
|
|
- SetFormData (fdata) {
|
|
|
+ SetFormData(fdata) {
|
|
|
this.isCanUpdateSupplier(fdata.Id)
|
|
|
this.formData.Id = fdata.Id
|
|
|
this.formData.SupplierName = fdata.SupplierName
|
|
|
@@ -432,7 +435,7 @@
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- isCanUpdateSupplier (supplierId) {
|
|
|
+ isCanUpdateSupplier(supplierId) {
|
|
|
api.isCanUpdateSupplier(supplierId, this.$axios).then(res => {
|
|
|
this.canUpdateSupplier = (res.data.code === 0)
|
|
|
}).catch(err => {
|
|
|
@@ -452,7 +455,7 @@
|
|
|
this.$refs["winningList"].showDialog()
|
|
|
},
|
|
|
|
|
|
- initDatas () {
|
|
|
+ initDatas() {
|
|
|
this.isCanUpdateSupplier(this.formData.Id)
|
|
|
if (this.formData.Id) {
|
|
|
api.getEntityAndCert(this.certId, this.$axios).then(res => {
|
|
|
@@ -494,7 +497,7 @@
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- getDictOptions () {
|
|
|
+ getDictOptions() {
|
|
|
api.getDictList(this.$axios).then(res => {
|
|
|
this.dictData = res.data.items
|
|
|
/*this.UnitRelationOptions = res.data.items['UnitRelation']
|
|
|
@@ -512,7 +515,7 @@
|
|
|
},*/
|
|
|
|
|
|
//保存信息
|
|
|
- saveEntity () {
|
|
|
+ saveEntity() {
|
|
|
this.$refs['TechInfo'].$refs['EntityForm'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
if (!this.formData.SetupTime) {
|
|
|
@@ -538,7 +541,7 @@
|
|
|
this.$refs['SupplierCertEditCompoment'].saveEntity()
|
|
|
},
|
|
|
|
|
|
- addEntity () {
|
|
|
+ addEntity() {
|
|
|
this.formData.SupplierTypeCode = '03'
|
|
|
this.formData.SupplierTypeName = '技术服务类'
|
|
|
api.addEntity(this.formData, this.$axios).then(res => {
|
|
|
@@ -563,7 +566,7 @@
|
|
|
});
|
|
|
},
|
|
|
|
|
|
- updateEntity () {
|
|
|
+ updateEntity() {
|
|
|
api.updateEntity(this.formData.Id, this.formData, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
//保存成功后,初始化数据,变成修改
|