|
|
@@ -58,7 +58,15 @@
|
|
|
</el-col> -->
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="资质名称" required>
|
|
|
- <el-input v-model="SubfileForm.NeedFileType" placeholder="请输文件类型"></el-input>
|
|
|
+ <!-- <el-input v-model="SubfileForm.NeedFileType" placeholder="请输文件类型"></el-input> -->
|
|
|
+ <el-select v-model="SubfileForm.NeedFileType" placeholder="请输文件类型" size="medium">
|
|
|
+ <el-option
|
|
|
+ v-for="item in dynamicTableColumns"
|
|
|
+ :key="item.prop"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.label">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
@@ -115,6 +123,7 @@
|
|
|
import axios from 'axios'
|
|
|
import uploadajax from '../../assets/js/uploadajax.js'
|
|
|
import BusinessList from '../../components/oilsupplier/businesslist'
|
|
|
+ import setapi from '@/api/oilsupplier/oilclassorgset'
|
|
|
|
|
|
export default {
|
|
|
name: 'SubfileList',
|
|
|
@@ -126,8 +135,13 @@
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
},
|
|
|
+ flag:{
|
|
|
+ type: String
|
|
|
+ },
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.initTableHeader()
|
|
|
},
|
|
|
- created() {},
|
|
|
computed: {
|
|
|
...mapGetters({
|
|
|
session: 'session'
|
|
|
@@ -173,9 +187,30 @@
|
|
|
|
|
|
waituploads: [], // 等待上传的附件列表
|
|
|
doclist: [],
|
|
|
+ dynamicTableColumns:[]
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ initTableHeader(){
|
|
|
+ console.log("flag:"+this.flag)
|
|
|
+ if(this.flag=='01'){
|
|
|
+ setapi.initGoodTableHeader(this.$axios).then(res => {
|
|
|
+ console.log(res)
|
|
|
+ this.dynamicTableColumns=res.data.items
|
|
|
+ })
|
|
|
+ }else if(this.flag=='02'){
|
|
|
+ setapi.initBbTableHeader(this.$axios).then(res => {
|
|
|
+ console.log(res)
|
|
|
+ this.dynamicTableColumns=res.data.items
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ setapi.initTsTableHeader(this.$axios).then(res => {
|
|
|
+ console.log(res)
|
|
|
+ this.dynamicTableColumns=res.data.items
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
getvalue(SupplierId, SupplierTypeCode, certId) {
|
|
|
this.SupplierId = SupplierId
|
|
|
this.SupplierTypeCode = SupplierTypeCode
|