|
@@ -71,19 +71,33 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column label="公司类型" align="center" width="250" :show-overflow-tooltip="true">
|
|
|
+ <el-table-column label="投标类型" align="center" width="250" :show-overflow-tooltip="true">
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ scope.row.customerTypeDetails }}</span>
|
|
|
- <!-- <span v-if="scope.row.customerTypeDetails === 1" size="small">有限责任公司(自然人独资)</span>
|
|
|
- <span v-if="scope.row.customerTypeDetails === 2" size="small">有限责任公司(自然人投资或控股)</span>
|
|
|
- <span v-if="scope.row.customerTypeDetails === 3" size="small">股份有限公司</span>
|
|
|
- <span v-if="scope.row.customerTypeDetails === 4" size="small">有限合伙企业</span>
|
|
|
- <span v-if="scope.row.customerTypeDetails === 5" size="small">外商独资公司</span>
|
|
|
- <span v-if="scope.row.customerTypeDetails === 6" size="small">个人独资企业</span>
|
|
|
+ <span v-if="scope.row.customerBidType === 1" size="small">物流</span>
|
|
|
+ <span v-if="scope.row.customerBidType === 2" size="small">原料</span>
|
|
|
+ <span v-if="scope.row.customerBidType === 3" size="small">销售</span>
|
|
|
+ <span v-if="scope.row.customerBidType === 4" size="small">加工承揽</span>
|
|
|
+ <span v-if="scope.row.customerBidType === 0" size="small">未知</span>
|
|
|
+ <!-- <span v-if="scope.row.customerTypeDetails === 6" size="small">个人独资企业</span>
|
|
|
<span v-if="scope.row.customerTypeDetails === 7" size="small">国有独资公司</span>
|
|
|
<span v-if="scope.row.customerTypeDetails === 8" size="small">其他</span> -->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+
|
|
|
+ <el-table-column label="公司类型" align="center" width="250" :show-overflow-tooltip="true">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <!-- <span>{{ scope.row.customerTypeDetails }}</span> -->
|
|
|
+ <span v-if="scope.row.type === 1" size="small">有限责任公司(自然人独资)</span>
|
|
|
+ <span v-if="scope.row.type === 2" size="small">有限责任公司(自然人投资或控股)</span>
|
|
|
+ <span v-if="scope.row.type === 3" size="small">股份有限公司</span>
|
|
|
+ <span v-if="scope.row.type === 4" size="small">有限合伙企业</span>
|
|
|
+ <span v-if="scope.row.type === 5" size="small">外商独资公司</span>
|
|
|
+ <span v-if="scope.row.type === 6" size="small">个人独资企业</span>
|
|
|
+ <span v-if="scope.row.type === 7" size="small">国有独资公司</span>
|
|
|
+ <span v-if="scope.row.type === 8" size="small">其他</span>
|
|
|
+ <span v-if="scope.row.type === 0" size="small">未知</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="法定代表人" width="250" align="center" :show-overflow-tooltip="true">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.legalPerson }}</span>
|
|
@@ -188,7 +202,7 @@
|
|
|
<div>2、上传填写好的文件</div>
|
|
|
<i class="el-icon-document"></i>
|
|
|
<el-upload
|
|
|
- :action="BASE_API+'/tender/upload'"
|
|
|
+ :action="BASE_API+'/customer/batch'"
|
|
|
:on-preview="handlePreview"
|
|
|
:on-change="handleChange"
|
|
|
:on-remove="handleRemove"
|
|
@@ -368,7 +382,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { Listarea } from '@/api/dataForm'
|
|
|
-import { customerList, addCustomer, editCustomer, deleteCustomer,userRoles } from '@/api/record'
|
|
|
+import { customerList, addCustomer, editCustomer, deleteCustomer,userRoles,apiFile } from '@/api/record'
|
|
|
import { parseTime } from '@/utils/index'
|
|
|
import { getUserInfo,vailUserName } from '@/api/user'
|
|
|
|
|
@@ -453,18 +467,22 @@ export default {
|
|
|
// { required: true, message: "请选择角色", trigger: "change" },
|
|
|
// ],
|
|
|
},
|
|
|
+
|
|
|
+
|
|
|
loading: false,
|
|
|
dialogVisible: false,
|
|
|
batchVisible:false,
|
|
|
BASE_API: process.env.BASE_API,
|
|
|
fileList: [],
|
|
|
- roles:[]
|
|
|
+ roles:[],
|
|
|
+ fileUrl:"",
|
|
|
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
this.getTenantList()
|
|
|
this.onRoles()
|
|
|
+ this.getFile() //获取模板地址
|
|
|
console.log('res')
|
|
|
},
|
|
|
methods: {
|
|
@@ -484,6 +502,13 @@ export default {
|
|
|
console.log('1' + response.data.data.records)
|
|
|
this.total = response.data.data.total
|
|
|
})
|
|
|
+ },
|
|
|
+ // 获取模板url
|
|
|
+ getFile(){
|
|
|
+ apiFile().then((res)=>{
|
|
|
+ console.log(res)
|
|
|
+ this.fileUrl = res.data.data.path
|
|
|
+ })
|
|
|
},
|
|
|
// 文件移除的时候
|
|
|
handleRemove(file, fileList) {
|
|
@@ -496,7 +521,7 @@ export default {
|
|
|
if (file.response) {
|
|
|
console.log(file.response, 'file')
|
|
|
if (file.response.code == '200') {
|
|
|
- this.form.appendix = file.response.data
|
|
|
+ // this.form.appendix = file.response.data
|
|
|
} else {
|
|
|
Notification.error({
|
|
|
title: file.response.msg,
|
|
@@ -530,7 +555,8 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
onFile(){
|
|
|
- Window.location.href = ""
|
|
|
+ // let url = "https://fire-development.oss-cn-beijing.aliyuncs.com/bid/dev/客户批量上传模板.xlsx"
|
|
|
+ window.open(this.fileUrl, '_self');
|
|
|
},
|
|
|
// 验证手机号
|
|
|
checkMobile(str) {
|