Commit 08bb019b authored by 吴冠's avatar 吴冠

审核

parent df95536f
......@@ -60,11 +60,14 @@ export default {
max: {
type: Number,
default: 10
}
},
fileList:{
type: Array,
default: () => []
},
},
data() {
return {
fileList: []
}
},
methods: {
......
......@@ -43,13 +43,16 @@ export default {
max: {
type: Number,
default: 10
}
},
fileList:{
type: Array,
default: () => []
},
},
data() {
return {
dialogImageUrl: '',
dialogVisible: false,
fileList: []
}
},
methods: {
......
......@@ -86,11 +86,7 @@ import Cookies from 'js-cookie'
size:10,
noticeType:"BIDDING"
}
/* if(Cookies.get("details")){
mes.currentPage = Cookies.get("currentPage")
}
Cookies.remove("details")
Cookies.remove("currentPage") */
const res = await industryList();
const {data,total} = await getBidingList(mes)
console.log(data+'------------')
......
......@@ -96,7 +96,7 @@ export default {
citySelect,
dataTable
},
/* async asyncData({ params, route, error }){
async asyncData({ params, route, error }){
let mes ={
currentPage:1,
size:10,
......@@ -109,7 +109,7 @@ export default {
total : total,
industryOptions:res
}
}, */
},
mounted(){
console.log(11111111111)
if(Cookies.get("details")){
......@@ -118,12 +118,6 @@ export default {
mes.size = Cookies.get("size")
mes.noticeType = "ENQUIRY"
this. getInquiryList(mes)
}else{
let mes = {}
mes.currentPage = 1
mes.size = 10
mes.noticeType = "ENQUIRY"
this. getInquiryList(mes)
}
this. industryList();
Cookies.remove("details")
......
......@@ -573,12 +573,14 @@
:max="10"
@input="getJustimg"
tip=""
:fileList = "justimg"
></imgUpload>
<imgUpload
:limit="1"
:max="10"
@input="getBackimg"
tip=""
:fileList = "backimg"
></imgUpload>
</el-form-item>
<el-form-item label="三证合一扫描件" prop="cardimg" class="item">
......@@ -587,6 +589,7 @@
:max="10"
@input="getCardimg"
tip="只可上传三张图片,大小不能超过10MB,此项为必填项"
:fileList = "cardimg"
></imgUpload>
</el-form-item>
<el-form-item prop="file" class="item" margin-left="-1.8rem">
......@@ -603,6 +606,7 @@
:max="10"
@input="getfile"
tip="最多上传五份文件,每份不超过10M"
:fileList = "files"
></Upload>
</el-form-item>
</el-form>
......@@ -680,8 +684,8 @@ export default {
this.getIndustryList();
this.getCompanyNatureList();
//如果是来自于auditStatus状态的话 说明有错误信息 重新把用户输入的信息自动填充
if(Cookies.get("auditStatus")=="1"){
this.active ==1
if(Cookies.get("auditStatus")==1){
this.active =1
this.getErrorInfo()
}
},
......@@ -1091,6 +1095,7 @@ export default {
async getErrorInfo(){
let companyErrorId = Cookies.get("companyErrorId")
const {data} = await getErrorInfo(companyErrorId)
this.form.companyName = data.companyName
this.perfectForm.legalPersonPhone = data.legalPersonPhone
this.perfectForm.legalPersonName = data.legalPersonName
this.perfectForm.location = data.location
......@@ -1099,10 +1104,28 @@ export default {
this.perfectForm.contactAddress = data.contactAddress
this.perfectForm.socialCode = data.socialCode
this.perfectForm.companyNature = data.companyNature
this.perfectForm.industryType = data.industryList
this.perfectForm.industryType = data.industryName
this.perfectForm.bankName = data.bankName
this.perfectForm.registeredCapital = data.registeredCapital
this.perfectForm.businessScope = data.businessScope
for(let item of data.fileList){
item.url=item.fileUrl
item.name=item.fileName
if(item.type==1){
this.justimg.push(item)
}
if(item.type==2){
this.backimg.push(item)
}
if(item.type==3){
this.cardimg.push(item)
}
if(item.type==4){
this.files.push(item)
}
}
/* this.cardimg = data.fileList[2].fileUrl */
/* this.perfectForm.businessScope = data.businessScope */
Cookies.remove("companyErrorId")
Cookies.remove("auditStatus")
},
......
......@@ -158,24 +158,14 @@
this.$router.push("/")
},1500)
/* this.$message.success(msg) */
} else {
/* this.$message({
message: msg,
type: 'error'
}); */
this.$message.error(msg)
}
//储存公司id 审核未通过时自动填充数据
/* if(code!=200){
this.$router.push("/login/auditStatus")
Cookies.set("companyErrorId",data.companyId)
} */
if(code==502){
/* 审核未通过 说明拒绝原因 */
this.$message.error(msg)
this.$router.push('/login/auditStatus')
Cookies.set("companyErrorId",data.companyId)
Cookies.set("code",data.code)
Cookies.set("message",data.message)
Cookies.set("companyErrorId",data)
Cookies.set("code",code)
Cookies.set("message",msg)
}else if(code==501){
/* 审核中 */
Cookies.set("code",data.code)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment