Browse Source

优化

master
ltlzx 4 years ago
parent
commit
bd980b9ed3
  1. 16
      src/api/index.js
  2. 14
      src/components/page/AssetDetails.vue
  3. 2
      src/components/page/ClassificationDetails.vue
  4. 190
      src/components/page/Hoster/Listing.vue
  5. 6
      src/components/page/Hoster/myAssets.vue
  6. 16
      src/components/page/Hoster/myOrder.vue
  7. 4
      src/components/page/Listing.vue
  8. 8
      src/components/page/NoticeDetails.vue
  9. 10
      src/components/page/Order/orderDetails.vue
  10. 19
      src/components/page/Order/orderPendingPay.vue
  11. 72
      src/components/page/Order/sellOrderPendingPay.vue
  12. 18
      src/components/page/Purchaser/myOrder.vue
  13. 200
      src/components/page/Purchaser/wkPurchaser.vue
  14. 148
      src/components/page/Purchaser/wkThird.vue
  15. 191
      src/components/page/Purchaser/wkTrusteeship.vue
  16. 5
      src/components/page/StationNotice.vue
  17. 71
      src/components/page/StationNoticeDetails.vue
  18. 5
      src/router/index.js

16
src/api/index.js

@ -152,6 +152,14 @@ export const uploadingRecord = query => {
data: query data: query
}); });
}; };
// 上传支付凭证
export const uploadingPaymentDocument = query => {
return request({
url: '/api/user.Order/uploadingPaymentDocument',
method: 'post',
data: query
});
};
// 修改资产挂牌 // 修改资产挂牌
export const update_cartellino = query => { export const update_cartellino = query => {
return request({ return request({
@ -312,3 +320,11 @@ export const getagreement = query => {
params: query params: query
}); });
}; };
// 获取文件类型
export const getFileType = query => {
return request({
url: '/api/Index/getFileType',
method: 'get',
params: query
});
};

14
src/components/page/AssetDetails.vue

@ -55,8 +55,8 @@
<div class="asset1"> <div class="asset1">
<div class="asset1_title"> <div class="asset1_title">
<div class="asset1_title_item">标的介绍</div> <div class="asset1_title_item" :class=" asset1_title==0?'asset1_title_item_active':'' " @click="tabAsset1_title(0)">标的介绍</div>
<!-- <div class="asset1_title_item">标的评估报告</div> --> <!-- <div class="asset1_title_item" :class=" asset1_title==1?'asset1_title_item_active':'' " @click="tabAsset1_title(1)">挂牌公告内容</div> -->
<!-- <div class="asset1_title_item">购买须知</div> <!-- <div class="asset1_title_item">购买须知</div>
<div class="asset1_title_item">历史评价</div> --> <div class="asset1_title_item">历史评价</div> -->
</div> </div>
@ -90,7 +90,8 @@ export default {
count:'', count:'',
type:'' type:''
}, },
listingList:{} listingList:{},
asset1_title:0
} }
}, },
components: { components: {
@ -102,6 +103,9 @@ export default {
this.getData() this.getData()
}, },
methods:{ methods:{
tabAsset1_title(type){
this.asset1_title=type
},
callback(){ callback(){
}, },
@ -299,6 +303,10 @@ export default {
justify-content: center; justify-content: center;
font-weight: bold; font-weight: bold;
} }
.asset1_title_item_active{
background: #C94C4C;
color: white;
}
.asset1_content{ .asset1_content{
padding: 20px ; padding: 20px ;
} }

2
src/components/page/ClassificationDetails.vue

@ -45,7 +45,7 @@
:value="item.city_code" > :value="item.city_code" >
</el-option> </el-option>
</el-select> </el-select>
<el-select placeholder="选择具体区镇" clearable filterable v-model="query.area" class="select_city"> <el-select placeholder="选择具体区镇" clearable filterable v-model="query.area" class="select_city" @change="changeDate(3)">
<el-option <el-option
v-for="item in area" v-for="item in area"
:key="item.id" :key="item.id"

190
src/components/page/Hoster/Listing.vue

@ -22,7 +22,7 @@
</div> </div>
<div class="listing_flex"> <div class="listing_flex">
<el-form-item label="成立日期" > <el-form-item label="成立日期" >
<el-input v-model="means.establish_time" readonly class="listing_input"></el-input> <el-input v-model="means.establish_time_date" readonly class="listing_input"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="注册资本" > <el-form-item label="注册资本" >
<el-input v-model="means.reg_money" readonly class="listing_input"></el-input> <el-input v-model="means.reg_money" readonly class="listing_input"></el-input>
@ -73,7 +73,6 @@
:action="action" :action="action"
:show-file-list="false" :show-file-list="false"
:on-change="fileChange" :on-change="fileChange"
:on-success="(res)=>{handleAvatarSuccess(0,res,index)}" v-for="(item,index) in 5" :key="index"> :on-success="(res)=>{handleAvatarSuccess(0,res,index)}" v-for="(item,index) in 5" :key="index">
<img v-if="ruleForm.serial_img[index]" :src="ruleForm.serial_img[index]" class="avatar"> <img v-if="ruleForm.serial_img[index]" :src="ruleForm.serial_img[index]" class="avatar">
<template v-else> <template v-else>
@ -126,6 +125,36 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="标的基本情况" prop="asset_file" >
<p class="listing_tips">
请如实并详细地填写资资产的基本情况
<a class="listing_button" v-if="means.account_type" style="margin-left:15px" :href="means.account_type==1? means.file[7]: means.file[6]" target="_blank" rel="nofollow">下载模板</a>
</p>
<el-upload
class="upload-demo"
:action="action1"
:show-file-list="false"
:on-error="handleAvatarError"
list-type="picture"
:on-success="(res,file,index)=>{handleAvatarSuccess1(res,file,'asset_file')}"
>
<button class="listing_button">上传文件</button>
</el-upload>
<!-- <mavon-editor
v-model="ruleForm.serial_content"
:subfield="false" ref="md" :boxShadow="false"
@imgAdd="$imgAdd" @change="change"
class="listing_editor"/> -->
<div class="upload_file">
<div class="listing_tips1" v-if="ruleForm.asset_file">
已上传文件
<div class="table_right_item" >
<span >{{file_name.asset_file}}</span>
<i class="el-icon-close" @click="deleteUrl('asset_file')"></i>
</div>
</div>
</div>
</el-form-item>
<el-form-item label="挂牌时长" prop="cartellino_time_id" > <el-form-item label="挂牌时长" prop="cartellino_time_id" >
<el-select placeholder="选择挂牌时长" clearable filterable v-model="ruleForm.cartellino_time_id" class="select_city1"> <el-select placeholder="选择挂牌时长" clearable filterable v-model="ruleForm.cartellino_time_id" class="select_city1">
<el-option <el-option
@ -154,7 +183,9 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="其他标的材料" :prop="ruleForm.buy_mode==2?'serial_img' :'' " > <el-form-item label="其他标的材料" :prop="ruleForm.buy_mode==2?'serial_img' :'' " >
<p class="listing_tips">请上传与标的相关的证明材料线上交易请在此处上传相关资产</p> <p class="listing_tips">
请上传与标的相关的证明材料线上交易请在此处上传相关资产
</p>
<el-upload <el-upload
class="upload-demo" class="upload-demo"
:action="action1" :action="action1"
@ -165,12 +196,12 @@
> >
<button class="listing_button">上传文件</button> <button class="listing_button">上传文件</button>
</el-upload> </el-upload>
<div class="upload_file" v-if="ruleForm.else_serial_file!=''"> <div class="upload_file" v-if="ruleForm.else_serial_file.length!=0">
<div class="listing_tips1"> <div class="listing_tips1" style="display:block">
已上传文件 已上传文件
<div class="table_right_item" > <div class="table_right_item" v-for="(item,index) in file_name.else_serial_file " :key="index">
<span >{{file_name.else_serial_file}}</span> <span >{{item.name}}</span>
<i class="el-icon-close" @click="deleteUrl(item,index,index1)"></i> <i class="el-icon-close" @click="deleteUrl('else_serial_file',index)"></i>
</div> </div>
</div> </div>
</div> </div>
@ -257,6 +288,32 @@
<el-radio v-model="ruleForm.earnestmoney_dispose" :label="2">成功摘牌后转为成交价款的一部分</el-radio> <el-radio v-model="ruleForm.earnestmoney_dispose" :label="2">成功摘牌后转为成交价款的一部分</el-radio>
</el-form-item> </el-form-item>
</template> </template>
<el-form-item label="申请承诺文件" prop="promise_file">
<p class="listing_tips">
请上传申请承诺文件
<a class="listing_button" style="margin-left:15px" :href="means.apply_promise_file" target="_blank" rel="nofollow">下载模板</a>
</p>
<el-upload
class="upload-demo"
:action="action1"
:show-file-list="false"
:on-error="handleAvatarError"
list-type="picture"
:on-success="(res,file,index)=>{handleAvatarSuccess1(res,file,'promise_file')}"
>
<button class="listing_button">上传文件</button>
</el-upload>
<div class="upload_file" v-if="ruleForm.promise_file!=''">
<div class="listing_tips1">
已上传文件
<div class="table_right_item" >
<span >{{file_name.promise_file}}</span>
<i class="el-icon-close" @click="deleteUrl('promise_file')"></i>
</div>
</div>
</div>
</el-form-item>
<el-form-item label="其他披露事项" prop="announcements" > <el-form-item label="其他披露事项" prop="announcements" >
<el-input <el-input
type="textarea" type="textarea"
@ -267,7 +324,8 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="附件" > <el-form-item label="附件" >
<p class="listing_tips">请上传与标的相关的证明材料线上交易请在此处上传相关资产</p> <p class="listing_tips">请上传人才产权评价报告</p>
<el-upload <el-upload
class="upload-demo" class="upload-demo"
:action="action1" :action="action1"
@ -283,7 +341,7 @@
已上传文件 已上传文件
<div class="table_right_item" > <div class="table_right_item" >
<span >{{file_name.accessory}}</span> <span >{{file_name.accessory}}</span>
<i class="el-icon-close" @click="deleteUrl(item,index,index1)"></i> <i class="el-icon-close" @click="deleteUrl('accessory')"></i>
</div> </div>
</div> </div>
</div> </div>
@ -294,12 +352,32 @@
</el-form> </el-form>
<div class="footer" > <div class="footer" >
<el-button class="submit" @click="submit" v-if="query.type!=0" :loading="loading">提交资料</el-button> <el-button class="submit" @click="submit" v-if="query.type!=0" :loading="loading">提交资料</el-button>
<div style="margin-top:10px"> <!-- <div style="margin-top:10px">
<el-checkbox v-model="checked" :true-label=1 :false-label=2></el-checkbox> <el-checkbox v-model="checked" :true-label=1 :false-label=2></el-checkbox>
<span class="footer_span">已阅读并同意</span> <span class="footer_span">已阅读并同意</span>
<span class="footer_span1" @click="goAgreement()">人才产权挂牌申请与承诺</span> <span class="footer_span1" @click="goAgreement()">人才产权挂牌申请与承诺</span>
</div> </div> -->
</div> </div>
<!-- 添加黑名单 -->
<el-dialog title="资产挂牌付款凭证" :visible.sync="editVisible" width="50%">
<p class="recordTips">请上传资产挂牌付款凭证</p>
<el-upload
class="avatar-uploader"
:action="action"
:show-file-list="false"
:on-change="fileChange"
:on-success="(res)=>{handleAvatarSuccess(1,res)}">
<img v-if="ruleForm.payment_document" :src="ruleForm.payment_document" class="avatar">
<template v-else>
<i class="el-icon-plus avatar-uploader-icon"></i>
<p class="avatar_p">添加上传图片</p>
</template>
</el-upload>
<span slot="footer" class="dialog-footer">
<el-button @click="editVisible = false"> </el-button>
<el-button type="primary" @click="addBlacklist"> </el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
@ -318,15 +396,16 @@ export default {
}, },
checked:1, checked:1,
isTypeOther:false, isTypeOther:false,
editVisible:false,
options:[ options:[
{value: '1',label: '知识产权(著作权、专利权、专有技术、商标专有权)'}, {value: 1,label: '知识产权(著作权、专利权、专有技术、商标专有权)'},
{value: '2',label: '销售网络及客户关系'}, {value: 2,label: '销售网络及客户关系'},
{value: '3',label: '特许经营权'}, {value: 3,label: '特许经营权'},
{value: '4',label: '合同权益'}, {value: 4,label: '合同权益'},
{value: '5',label: '域名'}, {value: 5,label: '域名'},
{value: '6',label: '商誉'}, {value: 6,label: '商誉'},
{value: '7',label: '时间和档期'}, {value: 7,label: '时间和档期'},
{value: '8',label: '其它'}, {value: 8,label: '其它'},
], ],
props: { props: {
value:'id', value:'id',
@ -359,7 +438,7 @@ export default {
announcements:'', announcements:'',
accessory:'', accessory:'',
hotline:'', hotline:'',
else_serial_file:'', else_serial_file:[],
province:'', province:'',
city:'', city:'',
area:'', area:'',
@ -369,11 +448,13 @@ export default {
count:'', count:'',
pay_count:'', pay_count:'',
pay_mode:'', pay_mode:'',
cartellino_time_id:'' cartellino_time_id:'',
promise_file:'',
payment_document:'',
}, },
file_name:{ file_name:{
asset_file:'', asset_file:'',
else_serial_file:'', else_serial_file:[],
}, },
means:{}, means:{},
rules:{ rules:{
@ -464,6 +545,12 @@ export default {
earnestmoney_dispose: [ earnestmoney_dispose: [
{ required: true, message: '请选择保证金处置方式', trigger: 'blur' }, { required: true, message: '请选择保证金处置方式', trigger: 'blur' },
], ],
promise_file: [
{ required: true, message: '请上传申请承诺文件', trigger: 'blur' },
],
asset_file: [
{ required: true, message: '请上传标的基本情况', trigger: 'blur' },
],
}, },
} }
}, },
@ -481,6 +568,9 @@ export default {
this.getPrice() this.getPrice()
}, },
methods:{ methods:{
addBlacklist(){
this.submit()
},
goAgreement(){ goAgreement(){
let type let type
if (this.means.account_type==1) { if (this.means.account_type==1) {
@ -488,7 +578,8 @@ export default {
}else{ }else{
type=2 type=2
} }
this.$router.resolve({path: "/agreement",query: {type:type}}); let routeData = this.$router.resolve({path: "/agreement",query: {type:type}});
window.open(routeData.href, '_blank');
}, },
// //
getAccountInfo(){ getAccountInfo(){
@ -515,14 +606,36 @@ export default {
this.isTypeOther=false this.isTypeOther=false
} }
}, },
deleteUrl(key,index){
if(key=="else_file"){
this.ruleForm.else_file[index].splice(index,1)
this.file_name.else_file[index].splice(index,1)
if(this.ruleForm.else_file.length==0){
this.file_name[key]=[];
this.ruleForm[key]=[]
}
}else{
this.file_name[key]='';
this.ruleForm[key]=''
}
},
handleAvatarSuccess1(res,file,index){ handleAvatarSuccess1(res,file,index){
console.info(file) console.info(file)
console.info(res) console.info(res)
if(res.code==1){ if(res.code==1){
let contract=this.host+res.data.img_url; let contract={
url:this.host+res.data.img_url,
name:file.name
};
// this.ruleForm[index]=contract // this.ruleForm[index]=contract
this.$set(this.ruleForm, index, contract); if (index=='else_serial_file') {
this.$set(this.file_name, index, file.name); this.ruleForm[index].push(this.host+res.data.img_url)
this.file_name[index].push(contract)
}else{
this.$set(this.ruleForm, index, contract.url);
this.$set(this.file_name, index, file.name);
}
console.info(this.ruleForm) console.info(this.ruleForm)
this.$message.success('文件上传成功!'); this.$message.success('文件上传成功!');
}else{ }else{
@ -541,6 +654,9 @@ export default {
res.data.city=parseInt(res.data.city) res.data.city=parseInt(res.data.city)
res.data.area=parseInt(res.data.area) res.data.area=parseInt(res.data.area)
res.data.pay_type=[parseInt(res.data.pay_type)] res.data.pay_type=[parseInt(res.data.pay_type)]
if (res.data.else_file==null) {
res.data.else_file=[]
}
this.ruleForm=res.data this.ruleForm=res.data
this.getCity() this.getCity()
this.getArea() this.getArea()
@ -600,20 +716,21 @@ export default {
}, },
submit(){ submit(){
console.info(this.ruleForm) console.info(this.ruleForm)
if (this.checked==2) { // this.$message.error('')
this.$message.error('请先勾选《人才产权挂牌申请与承诺》')
}else{
this.$refs["ruleForm1"].validate((valid) => { this.$refs["ruleForm1"].validate((valid) => {
if(valid){ if(valid){
this.loading=true if (this.ruleForm.payment_document=='') {
if(this.query.type==2){ this.editVisible=true
this.update_cartellino()
}else{ }else{
this.cartellino() this.loading=true
if(this.query.type==2){
this.update_cartellino()
}else{
this.cartellino()
}
} }
} }
}) })
}
}, },
// //
cartellino(){ cartellino(){
@ -697,6 +814,8 @@ export default {
this.ruleForm.serial_img.push(url) this.ruleForm.serial_img.push(url)
} }
console.info(this.ruleForm.serial_img) console.info(this.ruleForm.serial_img)
}else if(type==1){
this.$set(this.ruleForm,'payment_document',url)
} }
} }
} }
@ -897,5 +1016,6 @@ export default {
.footer_span1{ .footer_span1{
color: rgb(201, 76, 76); color: rgb(201, 76, 76);
text-decoration: underline; text-decoration: underline;
cursor: pointer;
} }
</style> </style>

6
src/components/page/Hoster/myAssets.vue

@ -338,7 +338,11 @@ export default {
}) })
}, },
goDetails(id,type){ goDetails(id,type){
this.$router.push({path:'/AssetListing',query:{id:id,type:type}}) // if (type==2) {
// this.$router.push({path:'/AssetListing',query:{id:id,type:type}})
// }else{
this.$router.push({path:'/AssetListing',query:{id:id,type:type}})
// }
}, },
tableRowClassName({row, rowIndex}) { tableRowClassName({row, rowIndex}) {
let n=rowIndex let n=rowIndex

16
src/components/page/Hoster/myOrder.vue

@ -69,8 +69,9 @@
<div class="order_item_info_content"> <div class="order_item_info_content">
<div class="order_item_info_content_left"> <div class="order_item_info_content_left">
<p>{{item.serial_name}}</p> <p>{{item.serial_name}}</p>
<p>契税¥ {{item.contract_tax}}</p> <!-- <p>契税¥ {{item.contract_tax}}</p> -->
<p>印花税¥ {{item.printing_tax}}</p> <p>手续费¥ {{item.service_charge}}</p>
<!-- <p>印花税¥ {{item.printing_tax}}</p> -->
</div> </div>
<div class="order_item_info_content_price"> <div class="order_item_info_content_price">
<p>¥ {{item.price}}</p> <p>¥ {{item.price}}</p>
@ -90,10 +91,11 @@
<span v-else-if="item.status==9">退款中</span> <span v-else-if="item.status==9">退款中</span>
<span v-else-if="item.status==10">已退款</span> <span v-else-if="item.status==10">已退款</span>
<span v-else-if="item.status==11">已取消</span> <span v-else-if="item.status==11">已取消</span>
<p v-if="item.check_status==2" style="color:red">(审核不通过)</p>
</div> </div>
<div class="order_item_info_content_operation"> <div class="order_item_info_content_operation">
<p @click="goDetails(item.status,item.batchcode,item.type)">订单详情</p> <p @click="goDetails(item.status,item.batchcode,item.type)">订单详情</p>
<p>下载合同</p> <a v-if="item.status>=6" :href="item.sell_contract" target="_blank" rel="nofollow">下载合同</a>
</div> </div>
</div> </div>
</div> </div>
@ -130,8 +132,12 @@ export default {
headerList:[ headerList:[
{name:'全部订单',type:''}, {name:'全部订单',type:''},
{name:'待付款',type:1}, {name:'待付款',type:1},
{name:'待审核付款',type:6},
{name:'待签约',type:2}, {name:'待签约',type:2},
{name:'待确认签约合同',type:7},
{name:'待交付',type:3}, {name:'待交付',type:3},
{name:'待确认交付',type:8},
{name:'待结算',type:9},
{name:'已完成',type:4}, {name:'已完成',type:4},
{name:'已关闭',type:5}, {name:'已关闭',type:5},
], ],
@ -339,4 +345,8 @@ export default {
margin-bottom: 5px; margin-bottom: 5px;
cursor: pointer; cursor: pointer;
} }
.order_item_info_content_operation a{
color: #555555;
cursor: pointer;
}
</style> </style>

4
src/components/page/Listing.vue

@ -62,10 +62,10 @@
</el-input> </el-input>
</div> </div>
<div class="seach1_item"> <div class="seach1_item">
<span>挂牌编号</span> <span>标的代码</span>
<el-input <el-input
class="seach1_select" class="seach1_select"
placeholder="请输入挂牌编号" placeholder="请输入标的代码"
v-model="query.cartellino_id"> v-model="query.cartellino_id">
</el-input> </el-input>
</div> </div>

8
src/components/page/NoticeDetails.vue

@ -41,8 +41,8 @@
<div class="detalie detalie1"> <div class="detalie detalie1">
<div class="detalie_title">公告内容</div> <div class="detalie_title">公告内容</div>
<div class="detalie_content"> <div class="detalie_content">
<div class="detalie1_div" v-if="detailsDate.delist_file_img"> <div class="detalie1_div" v-if="detailsDate.delist_file_img.length!=0">
<img :src="detailsDate.delist_file_img" alt="" class="detalie1_img"> <img :src="item" alt="" class="detalie1_img" v-for="(item,index) in detailsDate.delist_file_img" :key="index">
</div> </div>
</div> </div>
</div> </div>
@ -137,8 +137,8 @@ export default {
text-align: center; text-align: center;
} }
.detalie1_img{ .detalie1_img{
width: 600px; width: 800px;
height: 600px; height: 800px;
} }
.tabs_item{ .tabs_item{
width: 283px; width: 283px;

10
src/components/page/Order/orderDetails.vue

@ -37,11 +37,11 @@
<span>订单状态{{type==2?'已关闭':'已完成'}}</span> <span>订单状态{{type==2?'已关闭':'已完成'}}</span>
</div> </div>
<p class="order_info_right_tips" v-if="type==0">双方交易已完成</p> <p class="order_info_right_tips" v-if="type==0">双方交易已完成</p>
<p class="order_info_right_tips" v-else-if="type==1">双方交易已完成订单结算金额 ¥ 27,000.00 已转入开户账户请及时查收</p> <p class="order_info_right_tips" v-else-if="type==1">双方交易已完成订单结算金额¥ {{orderInfos.price}}已转入开户账户请及时查收</p>
<p class="order_info_right_tips" v-else-if="type==2">交易订单已关闭详情请咨询客服人员</p> <p class="order_info_right_tips" v-else-if="type==2">交易订单已关闭详情请咨询客服人员</p>
<div class="order_info_right_tips" v-if="type!=2"> <div class="order_info_right_tips" v-if="type!=2">
<span>您可以点击</span> <span>您可以点击</span>
<a class="pay_button" :href="'http://www.xdocin.com/xdoc?_func=to&amp;_format=html&amp;_cache=1&amp;_xdoc='+orderInfos.type==1?orderInfos.asset_report:orderInfos.transaction_doc" target="_blank" rel="nofollow">{{orderInfos.type==1?'资产评估报告':'交易凭证'}}</a> <a class="pay_button" :href="orderInfos.type==1?orderInfos.asset_report:orderInfos.transaction_pdf" target="_blank" rel="nofollow">{{orderInfos.type==1?'资产评估报告':'交易凭证'}}</a>
<span>下载{{orderInfos.type==1?'资产评估报告':'交易凭证'}}</span> <span>下载{{orderInfos.type==1?'资产评估报告':'交易凭证'}}</span>
</div> </div>
</div> </div>
@ -84,13 +84,17 @@
<span>{{orderInfos.buy_message}}</span> <span>{{orderInfos.buy_message}}</span>
</div> </div>
<div class="order_other_item_right" v-if="orderInfos.type==0"> <div class="order_other_item_right" v-if="orderInfos.type==0">
<div> <!-- <div>
<span>契税 ¥ {{orderInfos.contract_tax}}</span> <span>契税 ¥ {{orderInfos.contract_tax}}</span>
<span class="order_price">¥ {{orderInfos.contract_tax}}</span> <span class="order_price">¥ {{orderInfos.contract_tax}}</span>
</div> </div>
<div> <div>
<span>印花税 ¥ {{orderInfos.printing_tax}}</span> <span>印花税 ¥ {{orderInfos.printing_tax}}</span>
<span class="order_price">¥ {{orderInfos.printing_tax}}</span> <span class="order_price">¥ {{orderInfos.printing_tax}}</span>
</div> -->
<div>
<span>手续费 ¥ {{orderInfos.service_charge}}</span>
<span class="order_price">¥ {{orderInfos.service_charge}}</span>
</div> </div>
</div> </div>
</div> </div>

19
src/components/page/Order/orderPendingPay.vue

@ -68,7 +68,7 @@
<div class="order_info_right_tips"> <div class="order_info_right_tips">
<span>摘牌方上传</span> <span>摘牌方上传</span>
<el-upload <el-upload
v-if=" orderInfos.buy_contract==null && orderInfos.check_status==0 || orderInfos.check_status==2 &&orderInfos.buy_contract==null" v-if=" orderInfos.buy_contract==null && orderInfos.check_status==0 || orderInfos.check_status==2 &&orderInfos.buy_contract==''"
class="upload-demo" class="upload-demo"
:action="action1" :action="action1"
:show-file-list="false" :show-file-list="false"
@ -78,11 +78,12 @@
> >
<span class="upload_span " :class="orderInfos.check_status==2?'upload_span2':''">{{orderInfos.check_status==2? '重新上传':'点击上传'}}</span> <span class="upload_span " :class="orderInfos.check_status==2?'upload_span2':''">{{orderInfos.check_status==2? '重新上传':'点击上传'}}</span>
</el-upload> </el-upload>
<a v-else class="upload_span upload-demo" :href="orderInfos.buy_contract" download>查看记录</a> <a v-else class="upload_span upload-demo" :href="orderInfos.buy_contract" download target="_blank" rel="nofollow">查看记录</a>
</div> </div>
<div class="order_info_right_tips"> <div class="order_info_right_tips">
<span>挂牌方上传</span> <span>挂牌方上传</span>
<a class="upload_span upload-demo" @click="imgDetils(orderInfos.sell_contract)">查看记录</a> <a class="upload_span upload-demo" @click="imgDetils(orderInfos.sell_contract)" >查看记录</a>
<!-- <a class="upload_span upload-demo" target="_blank" rel="nofollow" :href="orderInfos.buy_contract">查看记录</a> -->
</div> </div>
</template> </template>
<div class="order_info_right_tips" v-if="orderInfos.status==4 "> <div class="order_info_right_tips" v-if="orderInfos.status==4 ">
@ -128,7 +129,7 @@
<span class="order_content_item_span">{{orderInfos.serial_name}}</span> <span class="order_content_item_span">{{orderInfos.serial_name}}</span>
</div> </div>
<div class="order_content_item"> <div class="order_content_item">
<span>GM-BZ-165254{{orderInfos.serial_name}}</span> <span>{{orderInfos.serial_number}}</span>
</div> </div>
<div class="order_content_item"> <div class="order_content_item">
<span>{{orderInfos.asset_type_name}}</span> <span>{{orderInfos.asset_type_name}}</span>
@ -151,13 +152,17 @@
</div> </div>
<div class="order_other_item_right" v-if="query.type==0"> <div class="order_other_item_right" v-if="query.type==0">
<div> <div>
<span>手续费 ¥ {{orderInfos.service_charge}}</span>
<span class="order_price">¥ {{orderInfos.service_charge}}</span>
</div>
<!-- <div>
<span>契税 ¥ {{orderInfos.contract_tax}}</span> <span>契税 ¥ {{orderInfos.contract_tax}}</span>
<span class="order_price">¥ {{orderInfos.contract_tax}}</span> <span class="order_price">¥ {{orderInfos.contract_tax}}</span>
</div> </div>
<div> <div>
<span>印花税 ¥ {{orderInfos.printing_tax}}</span> <span>印花税 ¥ {{orderInfos.printing_tax}}</span>
<span class="order_price">¥ {{orderInfos.printing_tax}}</span> <span class="order_price">¥ {{orderInfos.printing_tax}}</span>
</div> </div> -->
</div> </div>
</div> </div>
<div class="order_other_item order_other_item1"> <div class="order_other_item order_other_item1">
@ -230,7 +235,7 @@ export default {
}, },
imgDetils(img){ imgDetils(img){
if(img!=null){ if(img!=null){
window.location.href = img; window.open = img;
}else{ }else{
this.$message.error('摘牌方还未上传签约合同') this.$message.error('摘牌方还未上传签约合同')
} }
@ -502,7 +507,7 @@ export default {
} }
.order_other_item_right>div{ .order_other_item_right>div{
width: 601px; width: 601px;
height: 50px; height: 100%;
background-color: rgba(242, 242, 242, 1); background-color: rgba(242, 242, 242, 1);
font-size: 12px; font-size: 12px;
padding: 0 20px; padding: 0 20px;

72
src/components/page/Order/sellOrderPendingPay.vue

@ -50,7 +50,7 @@
来付款超时订单自动关闭 来付款超时订单自动关闭
</p> </p>
<p class="order_info_right_tips" v-if="orderInfos.status==6"> <p class="order_info_right_tips" v-if="orderInfos.status==6">
摘牌方已确认交付该订单正在结算中订单结算金额为 ¥ 27,000.00 请耐心等候 摘牌方已确认交付该订单正在结算中订单结算金额为¥ {{orderInfos.price}}请耐心等候
</p> </p>
<p class="order_info_right_tips" v-else-if="orderInfos.status==1 && orderInfos.check_status==0"> <p class="order_info_right_tips" v-else-if="orderInfos.status==1 && orderInfos.check_status==0">
摘牌方已上传转账记录还有 摘牌方已上传转账记录还有
@ -72,26 +72,42 @@
<div class="order_info_right_tips"> <div class="order_info_right_tips">
<span>挂牌方上传</span> <span>挂牌方上传</span>
<el-upload <el-upload
v-if="orderInfos.sell_contract==null && orderInfos.check_status==0 || orderInfos.check_status==2 &&orderInfos.sell_contract==null" v-if="orderInfos.sell_contract==null && orderInfos.check_status==0 || orderInfos.check_status==2 &&orderInfos.sell_contract==''"
class="upload-demo" class="upload-demo"
:action="action1" :action="action1"
:show-file-list="false" :show-file-list="false"
:on-error="handleAvatarError" :on-error="handleAvatarError"
list-type="picture" list-type="picture"
style="margin-right:25px"
:on-success="(res,file)=>{handleAvatarSuccess1(res,file)}" :on-success="(res,file)=>{handleAvatarSuccess1(res,file)}"
> >
<span class="upload_span " :class="orderInfos.check_status==2?'upload_span2':''">{{orderInfos.check_status==2? '重新上传':'点击上传'}}</span>
</el-upload>
<a v-else class="upload_span upload-demo" style="margin-right:25px;display:inline-block" :href="orderInfos.sell_contract" download>查看记录</a>
<span>支付凭证上传</span>
<el-upload
v-if="orderInfos.seller_payment_document=='' && orderInfos.check_status==0 || orderInfos.check_status==2 &&orderInfos.seller_payment_document==''"
class="upload-demo"
:action="action1"
:show-file-list="false"
:on-error="handleAvatarError"
list-type="picture"
:on-success="(res,file)=>{handleAvatarSuccess(res,file,1)}"
>
<span class="upload_span " :class="orderInfos.check_status==2?'upload_span2':''">{{orderInfos.check_status==2? '重新上传':'点击上传'}}</span> <span class="upload_span " :class="orderInfos.check_status==2?'upload_span2':''">{{orderInfos.check_status==2? '重新上传':'点击上传'}}</span>
</el-upload> </el-upload>
<a v-else class="upload_span upload-demo" :href="orderInfos.sell_contract" download>查看记录</a> <a v-else class="upload_span upload-demo" :href="orderInfos.seller_payment_document" target="_blank" rel="nofollow" download>查看记录</a>
</div> </div>
<div class="order_info_right_tips"> <div class="order_info_right_tips">
<span>摘牌方上传</span> <span>摘牌方上传</span>
<a class="upload_span upload-demo" @click="imgDetils(orderInfos.buy_contract)">查看记录</a> <a class="upload_span upload-demo" @click="imgDetils(orderInfos.buy_contract,0)">查看记录</a>
</div> </div>
</template> </template>
<div class="order_info_right_tips" v-if="orderInfos.status==6 "> <div class="order_info_right_tips" v-if="orderInfos.status==6 ">
<span>您可以点击</span> <span>您可以点击</span>
<button class="pay_button" @click="imgDetils()">{{orderInfos.type==1?'资产评估报告':'交易凭证'}}</button> <button class="pay_button" @click="imgDetils(orderInfos.type==1?orderInfos.asset_report_img:orderInfos.transaction_pdf,1,orderInfos.type)">{{orderInfos.type==1?'资产评估报告':'交易凭证'}}</button>
<span>下载{{orderInfos.type==1?'资产评估报告':'交易凭证'}}</span> <span>下载{{orderInfos.type==1?'资产评估报告':'交易凭证'}}</span>
</div> </div>
<div class="order_info_right_tips" v-if=" orderInfos.status==1"> <div class="order_info_right_tips" v-if=" orderInfos.status==1">
@ -106,7 +122,7 @@
:show-file-list="false" :show-file-list="false"
:on-error="handleAvatarError" :on-error="handleAvatarError"
list-type="picture" list-type="picture"
:on-success="(res,file)=>{handleAvatarSuccess(res,file)}" :on-success="(res,file)=>{handleAvatarSuccess(res,file,0)}"
> >
<span class="upload_span">点击上传</span> <span class="upload_span">点击上传</span>
</el-upload> </el-upload>
@ -132,7 +148,7 @@
<span class="order_content_item_span">{{orderInfos.serial_name}}</span> <span class="order_content_item_span">{{orderInfos.serial_name}}</span>
</div> </div>
<div class="order_content_item"> <div class="order_content_item">
<span>GM-BZ-165254{{orderInfos.serial_name}}</span> <span>{{orderInfos.serial_number}}</span>
</div> </div>
<div class="order_content_item"> <div class="order_content_item">
<span>{{orderInfos.asset_type_name}}</span> <span>{{orderInfos.asset_type_name}}</span>
@ -154,13 +170,17 @@
<span>{{orderInfos.buy_message}}</span> <span>{{orderInfos.buy_message}}</span>
</div> </div>
<div class="order_other_item_right"> <div class="order_other_item_right">
<div> <!-- <div>
<span>契税 ¥ {{orderInfos.contract_tax}}</span> <span>契税 ¥ {{orderInfos.contract_tax}}</span>
<span class="order_price">¥ {{orderInfos.contract_tax}}</span> <span class="order_price">¥ {{orderInfos.contract_tax}}</span>
</div> </div>
<div> <div>
<span>印花税 ¥ {{orderInfos.printing_tax}}</span> <span>印花税 ¥ {{orderInfos.printing_tax}}</span>
<span class="order_price">¥ {{orderInfos.printing_tax}}</span> <span class="order_price">¥ {{orderInfos.printing_tax}}</span>
</div> -->
<div>
<span>手续费 ¥ {{orderInfos.service_charge}}</span>
<span class="order_price">¥ {{orderInfos.service_charge}}</span>
</div> </div>
</div> </div>
</div> </div>
@ -178,7 +198,7 @@
</div> </div>
</template> </template>
<script> <script>
import {orderInfo,uploadingRecord,uploadingContract} from '../../../api/index' import {orderInfo,uploadingRecord,uploadingContract,uploadingPaymentDocument} from '../../../api/index'
export default { export default {
data(){ data(){
return{ return{
@ -221,11 +241,13 @@ export default {
} }
}) })
}, },
imgDetils(img){ imgDetils(img,type,type1){
if(img!=null){ if(img!=null){
window.location.href = img; window.open = img;
}else{ }else{
this.$message.error('摘牌方还未上传签约合同') if (type==0) {
this.$message.error('摘牌方还未上传签约合同')
}
} }
}, },
getData(){ getData(){
@ -250,6 +272,17 @@ export default {
} }
}) })
}, },
uploadingPaymentDocument(){
uploadingPaymentDocument(this.query).then(res => {
console.info(res)
if(res.code==100){
this.$message.success('文件上传成功!请等待审核~');
this.getData()
}else{
this.$message.error(res.msg)
}
})
},
onPreview(img) { onPreview(img) {
this.img_url = [img] this.img_url = [img]
this.showViewer = true this.showViewer = true
@ -270,10 +303,17 @@ export default {
this.$message.error(res.msg); this.$message.error(res.msg);
} }
}, },
handleAvatarSuccess(res, file, index,key){
handleAvatarSuccess(res, file, type){
if(res.code==1){ if(res.code==1){
this.query.record=this.host+res.data.img_url; if (type==0) {
this.uploadingRecord() this.query.record=this.host+res.data.img_url;
this.uploadingRecord()
}else{
this.query.seller_payment_document=this.host+res.data.img_url;
this.uploadingPaymentDocument()
}
} }
}, },
fileChange(file){ fileChange(file){
@ -491,7 +531,7 @@ export default {
} }
.order_other_item_right>div{ .order_other_item_right>div{
width: 601px; width: 601px;
height: 50px; height: 100%;
background-color: rgba(242, 242, 242, 1); background-color: rgba(242, 242, 242, 1);
font-size: 12px; font-size: 12px;
padding: 0 20px; padding: 0 20px;

18
src/components/page/Purchaser/myOrder.vue

@ -66,13 +66,14 @@
<span>{{item.create_time | formatDate}}</span> <span>{{item.create_time | formatDate}}</span>
<span>订单编号{{item.batchcode}}</span> <span>订单编号{{item.batchcode}}</span>
<span>托管方{{item.firm_name}}</span> <span>托管方{{item.firm_name}}</span>
<span>标的编号{{item.serial}}</span> <span>标的编号{{item.serial_number}}</span>
</div> </div>
<div class="order_item_info_content"> <div class="order_item_info_content">
<div class="order_item_info_content_left"> <div class="order_item_info_content_left">
<p>{{item.serial_name}}</p> <p>{{item.serial_name}}</p>
<p>契税¥ {{item.contract_tax}}</p> <!-- <p>契税¥ {{item.contract_tax}}</p>
<p>印花税¥ {{item.printing_tax}}</p> <p>印花税¥ {{item.printing_tax}}</p> -->
<p>手续费¥ {{item.service_charge}}</p>
</div> </div>
<div class="order_item_info_content_price"> <div class="order_item_info_content_price">
<p>¥ {{item.price}}</p> <p>¥ {{item.price}}</p>
@ -92,10 +93,11 @@
<span v-else-if="item.status==9">退款中</span> <span v-else-if="item.status==9">退款中</span>
<span v-else-if="item.status==10">已退款</span> <span v-else-if="item.status==10">已退款</span>
<span v-else-if="item.status==11">已取消</span> <span v-else-if="item.status==11">已取消</span>
<p v-if="item.check_status==2" style="color:red">(审核不通过)</p>
</div> </div>
<div class="order_item_info_content_operation"> <div class="order_item_info_content_operation">
<p @click="goDetails(item.status,item.batchcode,item.type)">订单详情</p> <p @click="goDetails(item.status,item.batchcode,item.type)">订单详情</p>
<p>下载合同</p> <a v-if="item.status>=6" :href="item.buy_contract" target="_blank" rel="nofollow">下载合同</a>
</div> </div>
</div> </div>
</div> </div>
@ -132,8 +134,12 @@ export default {
headerList:[ headerList:[
{name:'全部订单',type:''}, {name:'全部订单',type:''},
{name:'待付款',type:1}, {name:'待付款',type:1},
{name:'待审核付款',type:6},
{name:'待签约',type:2}, {name:'待签约',type:2},
{name:'待确认签约合同',type:7},
{name:'待交付',type:3}, {name:'待交付',type:3},
{name:'待确认交付',type:8},
{name:'待结算',type:9},
{name:'已完成',type:4}, {name:'已完成',type:4},
{name:'已关闭',type:5}, {name:'已关闭',type:5},
], ],
@ -342,4 +348,8 @@ export default {
margin-bottom: 5px; margin-bottom: 5px;
cursor: pointer; cursor: pointer;
} }
.order_item_info_content_operation a{
color: #555555;
cursor: pointer;
}
</style> </style>

200
src/components/page/Purchaser/wkPurchaser.vue

@ -32,6 +32,7 @@
<span class="upload_span">上传</span> <span class="upload_span">上传</span>
</el-upload> </el-upload>
<span class="el-icon-success" v-if="item.type==1"></span> <span class="el-icon-success" v-if="item.type==1"></span>
<a class="listing_button" v-if="item.upType==1 && item.file!=''" :href="item.file" style="margin-left:15px" target="_blank" rel="nofollow">下载模板</a>
</div> </div>
</div> </div>
</div> </div>
@ -112,13 +113,15 @@
<div v-for="(item,index) in upList" :key="index" > <div v-for="(item,index) in upList" :key="index" >
<template v-if="item.key=='else_file' && item.type==1"> <template v-if="item.key=='else_file' && item.type==1">
<div class="table_right_item" v-for="(item1,index1) in item.url" :key="index1" > <div class="table_right_item" v-for="(item1,index1) in item.url" :key="index1" >
<span @click="onPreview([item.url[index1]])">{{item.name}}<span v-if="index1!=0">{{index1}}</span></span> <span v-if="item.url[index1].type==0" @click="onPreview([item.url[index1].url])">{{item.name}}<span v-if="index1!=0">{{index1}}</span></span>
<a class="table_right_item_a" v-else :href="item.url[index1].url" target="_blank" rel="nofollow">{{item.name}}<span v-if="index1!=0">{{index1}}</span></a>
<i class="el-icon-close" @click="deleteUrl(item,index,index1)"></i> <i class="el-icon-close" @click="deleteUrl(item,index,index1)"></i>
</div> </div>
</template> </template>
<template v-else> <template v-else>
<div class="table_right_item" v-if="item.type==1" > <div class="table_right_item" v-if="item.type==1" >
<span @click="onPreview([item.url])">{{item.name}}</span> <span v-if="item.url.type==0" @click="onPreview([item.url.url])">{{item.name}}</span>
<a class="table_right_item_a" v-else :href="item.url.url" target="_blank" rel="nofollow">{{item.name}}</a>
<i class="el-icon-close" @click="deleteUrl(item,index)"></i> <i class="el-icon-close" @click="deleteUrl(item,index)"></i>
</div> </div>
</template> </template>
@ -167,7 +170,7 @@
</div> </div>
</template> </template>
<script> <script>
import {openAccount,getAccountInfo} from '../../../api/index'; import {openAccount,getAccountInfo,getFileType} from '../../../api/index';
export default { export default {
data(){ data(){
return{ return{
@ -177,19 +180,19 @@ export default {
disabled:false, disabled:false,
showViewer:false, showViewer:false,
host:'http://wenhua.xingtongworld.com', host:'http://wenhua.xingtongworld.com',
action:'http://wenhua.xingtongworld.com/api/Index/uploadimg', action:'http://wenhua.xingtongworld.com/api/Index/uploadFile',
upList:[ upList:[
{name:'营业执照(复印件)',type:0,url:'',key:'business_license',required:true}, {name:'营业执照(复印件)',type:0,url:'',key:'business_license',required:true,upType:0},
{name:'法人代表证明书',type:0,url:'',key:'legal_certificate',required:true}, {name:'法人代表证明书',type:0,url:'',key:'legal_certificate',required:true,upType:1,file:''},
{name:'法人身份证件(正面)',type:0,url:'',key:'legal_card_front',required:true}, {name:'法人身份证件(正面)',type:0,url:'',key:'legal_card_front',required:true,upType:0},
{name:'法人身份证件(反面)',type:0,url:'',key:'legal_card_backfacade',required:true}, {name:'法人身份证件(反面)',type:0,url:'',key:'legal_card_backfacade',required:true,upType:0},
{name:' 数字证书申请表',type:0,url:'',key:'number_certificate',required:true}, // {name:' ',type:0,url:'',key:'number_certificate',required:true,upType:0},
{name:' 银行开户证明',type:0,url:'',key:'bank_account_certificate',required:true}, {name:' 银行开户证明',type:0,url:'',key:'bank_account_certificate',required:true,upType:0},
{name:'标的证明文件',type:0,url:'',key:'asset_certificate',required:true}, // {name:'',type:0,url:'',key:'asset_certificate',required:true,upType:0},
{name:'法人授权委托书',type:0,url:'',key:'legal_authorization',required:false}, {name:'法人授权委托书',type:0,url:'',key:'legal_authorization',required:false,upType:1,file:''},
{name:'经办人身份证(正反面)',type:0,url:'',key:'operator_card_front',required:false}, {name:'经办人身份证(正反面)',type:0,url:'',key:'operator_card_front',required:false,upType:0},
{name:'经办人身份证(反面)',type:0,url:'',key:'operator_card_backfacade',required:false}, {name:'经办人身份证(反面)',type:0,url:'',key:'operator_card_backfacade',required:false,upType:0},
{name:'其他要求文件',type:0,url:[],key:'else_file',required:false}, {name:'其他要求文件',type:0,url:[],key:'else_file',required:false,upType:1,file:''},
], ],
ruleForm: { ruleForm: {
open_account_type:'buyer', open_account_type:'buyer',
@ -282,7 +285,8 @@ export default {
}, },
methods:{ methods:{
goAgreement(type){ goAgreement(type){
this.$router.resolve({path: "/agreement",query: {type:type}}); let routeData = this.$router.resolve({path: "/agreement",query: {type:type}});
window.open(routeData.href, '_blank');
}, },
checkStatus(){ checkStatus(){
this.check_status=-1 this.check_status=-1
@ -304,11 +308,15 @@ export default {
console.info(res) console.info(res)
if (res.code==100) { if (res.code==100) {
this.check_status=res.data.check_status this.check_status=res.data.check_status
this.$set(this.upList[1], 'file', res.data.file[0]);
this.$set(this.upList[5], 'file', res.data.file[2]);
console.info(this.upList)
if(res.data!=null){ if(res.data!=null){
this.disabled=true this.disabled=true
// this.changeRadio(res.data.account_type) // this.changeRadio(res.data.account_type)
res.data.establish_time=res.data.establish_time*1000 res.data.establish_time=res.data.establish_time*1000
res.data.check_message = res.data.check_message.replace(/\n/gm, "<br/>") res.data.check_message = res.data.check_message.replace(/\n/gm, "<br/>")
// this.upList.else_file=res.data.file[0]
// res.data.else_file=JSON.parse(res.data.else_file) // res.data.else_file=JSON.parse(res.data.else_file)
for(let key in res.data){ for(let key in res.data){
for(let item in this.ruleForm){ for(let item in this.ruleForm){
@ -317,22 +325,36 @@ export default {
continue; continue;
} }
} }
this.upList.forEach((v,i)=>{
if(key==v.key &&res.data[key]!=''){
if (key=='else_file' && res.data['else_file'] ==null) {
v.type=0;
v.url=[]
}else{
v.type=1;
v.url=res.data[key]
}
}
})
} }
this.getFileType()
} }
} }
}); });
}, },
getFileType(){
let data ={file_info:this.ruleForm}
getFileType(data).then(res=>{
console.info(res)
if (res.code==100 && res.file_info.length!=0) {
for(let key in res.file_info){
this.upList.forEach((v,i)=>{
if(key==v.key &&res.file_info[key]!=''){
if (key=='else_file' && res.file_info['else_file'] ==null) {
v.type=0;
v.url=[]
}else{
v.type=1;
v.url=res.file_info[key]
}
}
})
}
}
})
},
//rado //rado
changeRadio(label){ changeRadio(label){
if(label==1){ if(label==1){
@ -340,9 +362,9 @@ export default {
{name:'营业执照(复印件)',type:0,url:'',key:'business_license'}, {name:'营业执照(复印件)',type:0,url:'',key:'business_license'},
{name:'法人代表证明书',type:0,url:'',key:'legal_certificate'}, {name:'法人代表证明书',type:0,url:'',key:'legal_certificate'},
{name:'法人身份证件(复印件)',type:0,url:'',key:'legal_card'}, {name:'法人身份证件(复印件)',type:0,url:'',key:'legal_card'},
{name:' 数字证书申请表',type:0,url:'',key:'number_certificate'}, // {name:' ',type:0,url:'',key:'number_certificate'},
{name:' 银行开户证明',type:0,url:'',key:'bank_account_certificate'}, {name:' 银行开户证明',type:0,url:'',key:'bank_account_certificate'},
{name:'标的证明文件',type:0,url:'',key:'asset_certificate'}, // {name:'',type:0,url:'',key:'asset_certificate'},
{name:'法人授权委托书',type:0,url:'',key:'legal_authorization'}, {name:'法人授权委托书',type:0,url:'',key:'legal_authorization'},
{name:'经办人身份证(复印件)',type:0,url:'',key:'operator_card'}, {name:'经办人身份证(复印件)',type:0,url:'',key:'operator_card'},
{name:'其他要求文件',type:0,url:[],key:'else_file'}, {name:'其他要求文件',type:0,url:[],key:'else_file'},
@ -351,8 +373,8 @@ export default {
this.upList=[ this.upList=[
{name:'身份证正面',type:0,url:'',key:'user_card_front'}, {name:'身份证正面',type:0,url:'',key:'user_card_front'},
{name:'身份证背面',type:0,url:'',key:'user_card_backfacade'}, {name:'身份证背面',type:0,url:'',key:'user_card_backfacade'},
{name:' 数字证书申请表',type:0,url:'',key:'number_certificate'}, // {name:' ',type:0,url:'',key:'number_certificate'},
{name:'标的证明文件',type:0,url:'',key:'asset_certificate'}, // {name:'',type:0,url:'',key:'asset_certificate'},
{name:'其他要求文件',type:0,url:[],key:'else_file'}, {name:'其他要求文件',type:0,url:[],key:'else_file'},
] ]
} }
@ -376,58 +398,85 @@ export default {
}, },
submit(){ submit(){
console.info(this.ruleForm) console.info(this.ruleForm)
if (this.checked==2) {
this.$refs["ruleForm1"].validate((valid) => { this.$message.error('请先勾选《隐私权政策》等')
if(valid){ }else{
if(this.ruleForm.account_type==1){ this.$refs["ruleForm1"].validate((valid) => {
this.ruleForm.establish_time=this.ruleForm.establish_time/1000 if(valid){
} if(this.ruleForm.account_type==1){
openAccount(this.ruleForm).then(res => { this.ruleForm.establish_time=this.ruleForm.establish_time/1000
console.info(res)
if(res.code==101){
this.$message.error(res.msg);
}else{
this.$message.success('上传资料成功!请等待审核~');
this.check_status=0;
this.disabled=true
} }
this.ruleForm.establish_time=this.ruleForm.establish_time*1000 openAccount(this.ruleForm).then(res => {
}); console.info(res)
} if(res.code==101){
}) this.$message.error(res.msg);
}else{
this.$message.success('上传资料成功!请等待审核~');
this.check_status=0;
this.disabled=true
}
this.ruleForm.establish_time=this.ruleForm.establish_time*1000
});
}
})
}
}, },
handleAvatarError(){ handleAvatarError(){
this.$message.error('文件上传失败!'); this.$message.error('文件上传失败!');
}, },
handleAvatarSuccess(res, file, index,key){ handleAvatarSuccess(res, file, index,key){
console.info(file)
if(res.code==1){ if(res.code==1){
const typeArr1 = ['application/pdf'];
const isJPG1 = typeArr1.indexOf(file.raw.type) !== -1;
let type;
if (isJPG1) {
type=1
}else{
type=0
}
let data={
url:this.host+res.data.img_url,
type:type
}
if(key=="else_file"){ if(key=="else_file"){
this.upList[index].type=1; this.upList[index].type=1;
this.ruleForm.else_file.push(this.host+res.data.img_url) this.ruleForm.else_file.push(this.host+res.data.img_url)
this.upList[index].url.push(this.host+res.data.img_url); this.upList[index].url.push(data);
}else{ }else{
this.upList[index].type=1; this.upList[index].type=1;
this.upList[index].url=this.host+res.data.img_url; this.upList[index].url=data;
this.ruleForm[key]=this.host+res.data.img_url this.ruleForm[key]=this.host+res.data.img_url
} }
this.$message.success('文件上传成功!'); this.$message.success('文件上传成功!');
} }
}, },
fileChange(file){ fileChange(file){
const typeArr = ['image/png', 'image/gif', 'image/jpeg', 'image/jpg']; // const typeArr = ['image/png', 'image/gif', 'image/jpeg', 'image/jpg'];
const isJPG = typeArr.indexOf(file.raw.type) !== -1; const typeArr1 = ['image/png', 'image/gif', 'image/jpeg', 'image/jpg','application/pdf'];
const isLt3M = file.size / 1024 / 1024 < 3; // const isJPG = typeArr.indexOf(file.raw.type) !== -1;
if (!isJPG) { const isJPG1 = typeArr1.indexOf(file.raw.type) !== -1;
this.$message.error('只能是图片!'); const isLt3M = file.size / 1024 / 1024 < 10;
this.$refs.upload.clearFiles(); // if (type==1) {
return; if (!isJPG1) {
} this.$message.error('只能上传图片和PDF文件!');
if (!isLt3M) { this.$refs.upload.clearFiles();
this.$message.error('上传图片大小不能超过 3MB!'); return;
this.$refs.upload.clearFiles(); }
// this.$set(this.query, 'goods_img', ''); // }else{
return; // if (!isJPG) {
} // this.$message.error('!');
// this.$refs.upload.clearFiles();
// return;
// }
if (!isLt3M) {
this.$message.error('上传图片和文件大小不能超过 10MB!');
this.$refs.upload.clearFiles();
// this.$set(this.query, 'goods_img', '');
return;
}
// }
}, },
} }
@ -587,4 +636,25 @@ export default {
.table_content_item_span{ .table_content_item_span{
color: red; color: red;
} }
.listing_button{
display: inline-block;
width: 70px;
height: 32px;
border-radius: 5px;
border: 1px solid #E7B0B0;
background: #F3D8D8;
font-size: 14px;
color: rgba(201, 76, 76, 0.898039215686275);
text-align: center;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.table_right_item_a{
color: black;
}
.table_right_item_a:hover{
text-decoration: underline;
}
</style> </style>

148
src/components/page/Purchaser/wkThird.vue

@ -31,6 +31,7 @@
<span class="upload_span">上传</span> <span class="upload_span">上传</span>
</el-upload> </el-upload>
<span class="el-icon-success" v-if="item.type==1"></span> <span class="el-icon-success" v-if="item.type==1"></span>
<a class="listing_button" v-if="item.upType==1 && item.file!=''" :href="item.file" style="margin-left:15px" target="_blank" rel="nofollow">下载模板</a>
</div> </div>
</div> </div>
</div> </div>
@ -111,13 +112,17 @@
<div v-for="(item,index) in upList" :key="index" > <div v-for="(item,index) in upList" :key="index" >
<template v-if="item.key=='else_file' && item.type==1"> <template v-if="item.key=='else_file' && item.type==1">
<div class="table_right_item" v-for="(item1,index1) in item.url" :key="index1" > <div class="table_right_item" v-for="(item1,index1) in item.url" :key="index1" >
<span @click="onPreview([item.url[index1]])">{{item.name}}<span v-if="index1!=0">{{index1}}</span></span> <span v-if="item.url[index1].type==0" @click="onPreview([item.url[index1].url])">{{item.name}}<span v-if="index1!=0">{{index1}}</span></span>
<a class="table_right_item_a" v-else :href="item.url[index1].url" target="_blank" rel="nofollow">{{item.name}}<span v-if="index1!=0">{{index1}}</span></a>
<!-- <span @click="onPreview([item.url[index1]])">{{item.name}}<span v-if="index1!=0">{{index1}}</span></span> -->
<i class="el-icon-close" @click="deleteUrl(item,index,index1)"></i> <i class="el-icon-close" @click="deleteUrl(item,index,index1)"></i>
</div> </div>
</template> </template>
<template v-else> <template v-else>
<div class="table_right_item" v-if="item.type==1" > <div class="table_right_item" v-if="item.type==1" >
<span @click="onPreview([item.url])">{{item.name}}</span> <span v-if="item.url.type==0" @click="onPreview([item.url.url])">{{item.name}}</span>
<a class="table_right_item_a" v-else :href="item.url.url" target="_blank" rel="nofollow">{{item.name}}</a>
<!-- <span @click="onPreview([item.url])">{{item.name}}</span> -->
<i class="el-icon-close" @click="deleteUrl(item,index)"></i> <i class="el-icon-close" @click="deleteUrl(item,index)"></i>
</div> </div>
</template> </template>
@ -166,7 +171,7 @@
</div> </div>
</template> </template>
<script> <script>
import {openAccount,getAccountInfo} from '../../../api/index'; import {openAccount,getAccountInfo,getFileType} from '../../../api/index';
export default { export default {
data(){ data(){
return{ return{
@ -178,17 +183,17 @@ export default {
host:'http://wenhua.xingtongworld.com', host:'http://wenhua.xingtongworld.com',
action:'http://wenhua.xingtongworld.com/api/Index/uploadimg', action:'http://wenhua.xingtongworld.com/api/Index/uploadimg',
upList:[ upList:[
{name:'营业执照(复印件)',type:0,url:'',key:'business_license',required:true}, {name:'营业执照(复印件)',type:0,url:'',key:'business_license',required:true,upType:0},
{name:'法人代表证明书',type:0,url:'',key:'legal_certificate',required:true}, {name:'法人代表证明书',type:0,url:'',key:'legal_certificate',required:true,upType:1,file:''},
{name:'法人身份证件(正面)',type:0,url:'',key:'legal_card_front',required:true}, {name:'法人身份证件(正面)',type:0,url:'',key:'legal_card_front',required:true,upType:0},
{name:'法人身份证件(反面)',type:0,url:'',key:'legal_card_backfacade',required:true}, {name:'法人身份证件(反面)',type:0,url:'',key:'legal_card_backfacade',required:true,upType:0},
{name:' 数字证书申请表',type:0,url:'',key:'number_certificate',required:true}, // {name:' ',type:0,url:'',key:'number_certificate',required:true,upType:0},
{name:' 银行开户证明',type:0,url:'',key:'bank_account_certificate',required:true}, {name:' 银行开户证明',type:0,url:'',key:'bank_account_certificate',required:true,upType:0},
{name:'标的证明文件',type:0,url:'',key:'asset_certificate',required:true}, // {name:'',type:0,url:'',key:'asset_certificate',required:true,upType:0},
{name:'法人授权委托书',type:0,url:'',key:'legal_authorization',required:false}, {name:'法人授权委托书',type:0,url:'',key:'legal_authorization',required:false,upType:1,file:''},
{name:'经办人身份证(正反面)',type:0,url:'',key:'operator_card_front',required:false}, {name:'经办人身份证(正反面)',type:0,url:'',key:'operator_card_front',required:false,upType:0},
{name:'经办人身份证(反面)',type:0,url:'',key:'operator_card_backfacade',required:false}, {name:'经办人身份证(反面)',type:0,url:'',key:'operator_card_backfacade',required:false,upType:0},
{name:'其他要求文件',type:0,url:[],key:'else_file',required:false}, {name:'其他要求文件',type:0,url:[],key:'else_file',required:false,upType:1,file:''},
], ],
ruleForm: { ruleForm: {
open_account_type:'third_party', open_account_type:'third_party',
@ -297,6 +302,8 @@ export default {
console.info(res) console.info(res)
if (res.code==100) { if (res.code==100) {
this.check_status=res.data.check_status this.check_status=res.data.check_status
this.$set(this.upList[1], 'file', res.data.file[0]);
this.$set(this.upList[5], 'file', res.data.file[1]);
if(res.data!=null){ if(res.data!=null){
this.disabled=true this.disabled=true
// this.changeRadio(res.data.account_type) // this.changeRadio(res.data.account_type)
@ -310,22 +317,34 @@ export default {
continue; continue;
} }
} }
this.upList.forEach((v,i)=>{
if(key==v.key &&res.data[key]!=''){
if (key=='else_file' && res.data['else_file'] ==null) {
v.type=0;
v.url=[]
}else{
v.type=1;
v.url=res.data[key]
}
}
})
} }
} }
} }
}); });
}, },
getFileType(){
let data ={file_info:this.ruleForm}
getFileType(data).then(res=>{
console.info(res)
if (res.code==100 && res.file_info.length!=0) {
for(let key in res.file_info){
this.upList.forEach((v,i)=>{
if(key==v.key &&res.file_info[key]!=''){
if (key=='else_file' && res.file_info['else_file'] ==null) {
v.type=0;
v.url=[]
}else{
v.type=1;
v.url=res.file_info[key]
}
}
})
}
}
})
},
//rado //rado
changeRadio(label){ changeRadio(label){
if(label==1){ if(label==1){
@ -371,56 +390,70 @@ export default {
}, },
submit(){ submit(){
console.info(this.ruleForm) console.info(this.ruleForm)
if (this.checked==2) {
this.$refs["ruleForm1"].validate((valid) => { this.$message.error('请先勾选《隐私权政策》等')
if(valid){ }else{
if(this.ruleForm.account_type==1){ this.$refs["ruleForm1"].validate((valid) => {
this.ruleForm.establish_time=this.ruleForm.establish_time/1000 if(valid){
} if(this.ruleForm.account_type==1){
openAccount(this.ruleForm).then(res => { this.ruleForm.establish_time=this.ruleForm.establish_time/1000
console.info(res)
if(res.code==101){
this.$message.error(res.msg);
}else{
this.$message.success('上传资料成功!请等待审核~');
this.disabled=true
this.check_status=0
} }
this.ruleForm.establish_time=this.ruleForm.establish_time*1000 openAccount(this.ruleForm).then(res => {
}); console.info(res)
} if(res.code==101){
}) this.$message.error(res.msg);
}else{
this.$message.success('上传资料成功!请等待审核~');
this.disabled=true
this.check_status=0
}
this.ruleForm.establish_time=this.ruleForm.establish_time*1000
});
}
})
}
}, },
handleAvatarError(){ handleAvatarError(){
this.$message.error('文件上传失败!'); this.$message.error('文件上传失败!');
}, },
handleAvatarSuccess(res, file, index,key){ handleAvatarSuccess(res, file, index,key){
if(res.code==1){ if(res.code==1){
const typeArr1 = ['application/pdf'];
const isJPG1 = typeArr1.indexOf(file.raw.type) !== -1;
let type;
if (isJPG1) {
type=1
}else{
type=0
}
let data={
url:this.host+res.data.img_url,
type:type
}
if(key=="else_file"){ if(key=="else_file"){
this.upList[index].type=1; this.upList[index].type=1;
this.ruleForm.else_file.push(this.host+res.data.img_url) this.ruleForm.else_file.push(this.host+res.data.img_url)
this.upList[index].url.push(this.host+res.data.img_url); this.upList[index].url.push(data);
}else{ }else{
this.upList[index].type=1; this.upList[index].type=1;
this.upList[index].url=this.host+res.data.img_url; this.upList[index].url=data;
this.ruleForm[key]=this.host+res.data.img_url this.ruleForm[key]=this.host+res.data.img_url
} }
this.$message.success('文件上传成功!'); this.$message.success('文件上传成功!');
} }
}, },
fileChange(file){ fileChange(file){
const typeArr = ['image/png', 'image/gif', 'image/jpeg', 'image/jpg']; const typeArr = ['image/png', 'image/gif', 'image/jpeg', 'image/jpg','application/pdf'];
const isJPG = typeArr.indexOf(file.raw.type) !== -1; const isJPG = typeArr.indexOf(file.raw.type) !== -1;
const isLt3M = file.size / 1024 / 1024 < 3; const isLt3M = file.size / 1024 / 1024 < 10;
if (!isJPG) { if (!isJPG) {
this.$message.error('只能是图片!'); this.$message.error('只能上传图片和PDF文件!');
this.$refs.upload.clearFiles(); this.$refs.upload.clearFiles();
return; return;
} }
if (!isLt3M) { if (!isLt3M) {
this.$message.error('上传图片大小不能超过 3MB!'); this.$message.error('上传图片大小不能超过 10MB!');
this.$refs.upload.clearFiles(); this.$refs.upload.clearFiles();
// this.$set(this.query, 'goods_img', '');
return; return;
} }
}, },
@ -579,4 +612,19 @@ export default {
.table_content_item_span{ .table_content_item_span{
color: red; color: red;
} }
.listing_button{
display: inline-block;
width: 70px;
height: 32px;
border-radius: 5px;
border: 1px solid #E7B0B0;
background: #F3D8D8;
font-size: 14px;
color: rgba(201, 76, 76, 0.898039215686275);
text-align: center;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
</style> </style>

191
src/components/page/Purchaser/wkTrusteeship.vue

@ -32,6 +32,7 @@
<span class="upload_span">上传</span> <span class="upload_span">上传</span>
</el-upload> </el-upload>
<span class="el-icon-success" v-if="item.type==1"></span> <span class="el-icon-success" v-if="item.type==1"></span>
<a class="listing_button" v-if="item.upType==1 && item.file!=''" :href="item.file" style="margin-left:15px" target="_blank" rel="nofollow">下载模板</a>
</div> </div>
</div> </div>
</div> </div>
@ -121,13 +122,17 @@
<div v-for="(item,index) in upList" :key="index" > <div v-for="(item,index) in upList" :key="index" >
<template v-if="item.key=='else_file' && item.type==1"> <template v-if="item.key=='else_file' && item.type==1">
<div class="table_right_item" v-for="(item1,index1) in item.url" :key="index1" > <div class="table_right_item" v-for="(item1,index1) in item.url" :key="index1" >
<span @click="onPreview([item.url[index1]])">{{item.name}}<span v-if="index1!=0">{{index1}}</span></span> <span v-if="item.url[index1].type==0" @click="onPreview([item.url[index1].url])">{{item.name}}<span v-if="index1!=0">{{index1}}</span></span>
<a class="table_right_item_a" v-else :href="item.url[index1].url" target="_blank" rel="nofollow">{{item.name}}<span v-if="index1!=0">{{index1}}</span></a>
<!-- <span @click="onPreview([item.url[index1]])">{{item.name}}<span v-if="index1!=0">{{index1}}</span></span> -->
<i class="el-icon-close" @click="deleteUrl(item,index,index1)"></i> <i class="el-icon-close" @click="deleteUrl(item,index,index1)"></i>
</div> </div>
</template> </template>
<template v-else> <template v-else>
<div class="table_right_item" v-if="item.type==1" > <div class="table_right_item" v-if="item.type==1" >
<span @click="onPreview([item.url])">{{item.name}}</span> <span v-if="item.url.type==0" @click="onPreview([item.url.url])">{{item.name}}</span>
<a class="table_right_item_a" v-else :href="item.url.url" target="_blank" rel="nofollow">{{item.name}}</a>
<!-- <span @click="onPreview([item.url])">{{item.name}}</span> -->
<i class="el-icon-close" @click="deleteUrl(item,index)"></i> <i class="el-icon-close" @click="deleteUrl(item,index)"></i>
</div> </div>
</template> </template>
@ -175,7 +180,7 @@
</div> </div>
</template> </template>
<script> <script>
import {openAccount,getAccountInfo} from '../../../api/index'; import {openAccount,getAccountInfo,getFileType} from '../../../api/index';
export default { export default {
data(){ data(){
return{ return{
@ -187,17 +192,17 @@ export default {
host:'http://wenhua.xingtongworld.com', host:'http://wenhua.xingtongworld.com',
action:'http://wenhua.xingtongworld.com/api/Index/uploadimg', action:'http://wenhua.xingtongworld.com/api/Index/uploadimg',
upList:[ upList:[
{name:'营业执照(复印件)',type:0,url:'',key:'business_license',required:true}, {name:'营业执照(复印件)',type:0,url:'',key:'business_license',required:true,upType:0},
{name:'法人代表证明书',type:0,url:'',key:'legal_certificate',required:true}, {name:'法人代表证明书',type:0,url:'',key:'legal_certificate',required:true,upType:1,file:''},
{name:'法人身份证件(正面)',type:0,url:'',key:'legal_card_front',required:true}, {name:'法人身份证件(正面)',type:0,url:'',key:'legal_card_front',required:true,upType:0},
{name:'法人身份证件(反面)',type:0,url:'',key:'legal_card_backfacade',required:true}, {name:'法人身份证件(反面)',type:0,url:'',key:'legal_card_backfacade',required:true,upType:0},
{name:' 数字证书申请表',type:0,url:'',key:'number_certificate',required:true}, // {name:' ',type:0,url:'',key:'number_certificate',required:true,upType:0},
{name:' 银行开户证明',type:0,url:'',key:'bank_account_certificate',required:true}, {name:' 银行开户证明',type:0,url:'',key:'bank_account_certificate',required:true,upType:0},
{name:'标的证明文件',type:0,url:'',key:'asset_certificate',required:true}, // {name:'',type:0,url:'',key:'asset_certificate',required:true,upType:0},
{name:'法人授权委托书',type:0,url:'',key:'legal_authorization',required:false}, {name:'法人授权委托书',type:0,url:'',key:'legal_authorization',required:false,upType:1,file:''},
{name:'经办人身份证(正反面)',type:0,url:'',key:'operator_card_front',required:false}, {name:'经办人身份证(正反面)',type:0,url:'',key:'operator_card_front',required:false,upType:0},
{name:'经办人身份证(反面)',type:0,url:'',key:'operator_card_backfacade',required:false}, {name:'经办人身份证(反面)',type:0,url:'',key:'operator_card_backfacade',required:false,upType:0},
{name:'其他要求文件',type:0,url:[],key:'else_file',required:false}, {name:'其他要求文件',type:0,url:[],key:'else_file',required:false,upType:1,file:''},
], ],
ruleForm: { ruleForm: {
open_account_type:'enter_shop', open_account_type:'enter_shop',
@ -291,7 +296,8 @@ export default {
email: [ email: [
{ required: true, message: '请输入电子邮件', trigger: 'blur' }, { required: true, message: '请输入电子邮件', trigger: 'blur' },
], ],
} },
mode_foel:[]
} }
}, },
components: { components: {
@ -302,7 +308,8 @@ export default {
}, },
methods:{ methods:{
goAgreement(type){ goAgreement(type){
this.$router.resolve({path: "/agreement",query: {type:type}}); let routeData = this.$router.resolve({path: "/agreement",query: {type:type}});
window.open(routeData.href, '_blank');
}, },
checkStatus(){ checkStatus(){
this.check_status=-1 this.check_status=-1
@ -324,6 +331,9 @@ export default {
console.info(res) console.info(res)
if (res.code==100) { if (res.code==100) {
this.check_status=res.data.check_status this.check_status=res.data.check_status
this.mode_foel=res.data.file
this.$set(this.upList[1], 'file', res.data.file[0]);
this.$set(this.upList[5], 'file', res.data.file[4]);
if(res.data!=null){ if(res.data!=null){
if (res.data.account_type) { if (res.data.account_type) {
this.disabled=true this.disabled=true
@ -340,50 +350,58 @@ export default {
continue; continue;
} }
} }
this.upList.forEach((v,i)=>{
if(key==v.key &&res.data[key]!=''){
if (key=='else_file' && res.data['else_file'] ==null) {
v.type=0;
v.url=[]
}else{
v.type=1;
v.url=res.data[key]
}
}
})
} }
} }
} }
}); });
}, },
getFileType(){
let data ={file_info:this.ruleForm}
getFileType(data).then(res=>{
console.info(res)
if (res.code==100 && res.file_info.length!=0) {
for(let key in res.file_info){
this.upList.forEach((v,i)=>{
if(key==v.key &&res.file_info[key]!=''){
if (key=='else_file' && res.file_info['else_file'] ==null) {
v.type=0;
v.url=[]
}else{
v.type=1;
v.url=res.file_info[key]
}
}
})
}
}
})
},
//rado //rado
changeRadio(label){ changeRadio(label){
if(label==1){ if(label==1){
this.upList=[ this.upList=[
{name:'营业执照(复印件)',type:0,url:'',key:'business_license',required:true}, {name:'营业执照(复印件)',type:0,url:'',key:'business_license',required:true,upType:0},
{name:'法人代表证明书',type:0,url:'',key:'legal_certificate',required:true}, {name:'法人代表证明书',type:0,url:'',key:'legal_certificate',required:true,upType:1,file:this.mode_foel[0]},
{name:'法人身份证件(正面)',type:0,url:'',key:'legal_card_front',required:true}, {name:'法人身份证件(正面)',type:0,url:'',key:'legal_card_front',required:true,upType:0},
{name:'法人身份证件(反面)',type:0,url:'',key:'legal_card_backfacade',required:true}, {name:'法人身份证件(反面)',type:0,url:'',key:'legal_card_backfacade',required:true,upType:0},
{name:' 数字证书申请表',type:0,url:'',key:'number_certificate',required:true}, {name:' 银行开户证明',type:0,url:'',key:'bank_account_certificate',required:true,upType:0},
{name:' 银行开户证明',type:0,url:'',key:'bank_account_certificate',required:true}, {name:'法人授权委托书',type:0,url:'',key:'legal_authorization',required:false,upType:1,file:this.mode_foel[4]},
// {name:'',type:0,url:'',key:'asset_certificate',required:true}, {name:'经办人身份证(正反面)',type:0,url:'',key:'operator_card_front',required:false,upType:0},
{name:'法人授权委托书',type:0,url:'',key:'legal_authorization',required:false}, {name:'经办人身份证(反面)',type:0,url:'',key:'operator_card_backfacade',required:false,upType:0},
{name:'经办人身份证(正反面)',type:0,url:'',key:'operator_card_front',required:false}, {name:'其他要求文件',type:0,url:[],key:'else_file',required:false,upType:1,file:''},
{name:'经办人身份证(反面)',type:0,url:'',key:'operator_card_backfacade',required:false},
{name:'其他要求文件',type:0,url:[],key:'else_file',required:false},
] ]
}else{ }else{
this.upList=[ this.upList=[
{name:'身份证正面',type:0,url:'',key:'user_card_front',required:true}, {name:'身份证正面',type:0,url:'',key:'user_card_front',required:true,upType:0},
{name:'身份证背面',type:0,url:'',key:'user_card_backfacade',required:true}, {name:'身份证背面',type:0,url:'',key:'user_card_backfacade',required:true,upType:0},
{name:' 数字证书申请表',type:0,url:'',key:'number_certificate',required:true}, {name:'授权委托证明书',type:0,url:'',key:'legal_authorization',required:false,upType:1,file:this.mode_foel[5]},
{name:'标的证明文件',type:0,url:'',key:'asset_certificate',required:true}, {name:'被授权人身份证(正面)',type:0,url:'',key:'operator_card_front',required:false,upType:0},
{name:'授权委托证明书',type:0,url:'',key:'legal_authorization',required:false}, {name:'被授权人身份证(反面)',type:0,url:'',key:'operator_card_backfacade',required:false,upType:0},
{name:'被授权人身份证(正面)',type:0,url:'',key:'operator_card_front',required:false}, {name:'其他要求文件',type:0,url:[],key:'else_file',required:false,upType:0},
{name:'被授权人身份证(反面)',type:0,url:'',key:'operator_card_backfacade',required:false},
{name:'其他要求文件',type:0,url:[],key:'else_file',required:false},
] ]
} }
this.ruleForm.else_file=[]; this.ruleForm.else_file=[];
@ -406,56 +424,71 @@ export default {
}, },
submit(){ submit(){
console.info(this.ruleForm) console.info(this.ruleForm)
if (this.checked==2) {
this.$refs["ruleForm1"].validate((valid) => { this.$message.error('请先勾选《隐私权政策》等')
if(valid){ }else{
if(this.ruleForm.account_type==1){ this.$refs["ruleForm1"].validate((valid) => {
this.ruleForm.establish_time=this.ruleForm.establish_time/1000 if(valid){
}else{ if(this.ruleForm.account_type==1){
this.ruleForm.establish_time=0 this.ruleForm.establish_time=this.ruleForm.establish_time/1000
}
openAccount(this.ruleForm).then(res => {
console.info(res)
if(res.code==101){
this.$message.error(res.msg);
}else{ }else{
this.$message.success('上传资料成功!请等待审核~'); this.ruleForm.establish_time=0
this.disabled=true
this.check_status=0
} }
this.ruleForm.establish_time=this.ruleForm.establish_time*1000 openAccount(this.ruleForm).then(res => {
}); console.info(res)
} if(res.code==101){
}) this.$message.error(res.msg);
}else{
this.$message.success('上传资料成功!请等待审核~');
this.disabled=true
this.check_status=0
}
this.ruleForm.establish_time=this.ruleForm.establish_time*1000
});
}
})
}
}, },
handleAvatarError(){ handleAvatarError(){
this.$message.error('文件上传失败!'); this.$message.error('文件上传失败!');
}, },
handleAvatarSuccess(res, file, index,key){ handleAvatarSuccess(res, file, index,key){
if(res.code==1){ if(res.code==1){
const typeArr1 = ['application/pdf'];
const isJPG1 = typeArr1.indexOf(file.raw.type) !== -1;
let type;
if (isJPG1) {
type=1
}else{
type=0
}
let data={
url:this.host+res.data.img_url,
type:type
}
if(key=="else_file"){ if(key=="else_file"){
this.upList[index].type=1; this.upList[index].type=1;
this.ruleForm.else_file.push(this.host+res.data.img_url) this.ruleForm.else_file.push(this.host+res.data.img_url)
this.upList[index].url.push(this.host+res.data.img_url); this.upList[index].url.push(data);
}else{ }else{
this.upList[index].type=1; this.upList[index].type=1;
this.upList[index].url=this.host+res.data.img_url; this.upList[index].url=data;
this.ruleForm[key]=this.host+res.data.img_url this.ruleForm[key]=this.host+res.data.img_url
} }
this.$message.success('文件上传成功!'); this.$message.success('文件上传成功!');
} }
}, },
fileChange(file){ fileChange(file){
const typeArr = ['image/png', 'image/gif', 'image/jpeg', 'image/jpg']; const typeArr = ['image/png', 'image/gif', 'image/jpeg', 'image/jpg','application/pdf'];
const isJPG = typeArr.indexOf(file.raw.type) !== -1; const isJPG = typeArr.indexOf(file.raw.type) !== -1;
const isLt3M = file.size / 1024 / 1024 < 3; const isLt3M = file.size / 1024 / 1024 < 10;
if (!isJPG) { if (!isJPG) {
this.$message.error('只能是图片!'); this.$message.error('只能上传图片和PDF文件!');
this.$refs.upload.clearFiles(); this.$refs.upload.clearFiles();
return; return;
} }
if (!isLt3M) { if (!isLt3M) {
this.$message.error('上传图片大小不能超过 3MB!'); this.$message.error('上传图片大小不能超过 10MB!');
this.$refs.upload.clearFiles(); this.$refs.upload.clearFiles();
// this.$set(this.query, 'goods_img', ''); // this.$set(this.query, 'goods_img', '');
return; return;
@ -603,6 +636,7 @@ export default {
.footer_span1{ .footer_span1{
color: rgb(201, 76, 76); color: rgb(201, 76, 76);
text-decoration: underline; text-decoration: underline;
cursor: pointer;
} }
.examine_content{ .examine_content{
width: 100%; width: 100%;
@ -616,4 +650,19 @@ export default {
.table_content_item_span{ .table_content_item_span{
color: red; color: red;
} }
.listing_button{
display: inline-block;
width: 70px;
height: 32px;
border-radius: 5px;
border: 1px solid #E7B0B0;
background: #F3D8D8;
font-size: 14px;
color: rgba(201, 76, 76, 0.898039215686275);
text-align: center;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
</style> </style>

5
src/components/page/StationNotice.vue

@ -6,6 +6,7 @@
:data="tableData" :data="tableData"
header-cell-class-name="theader" header-cell-class-name="theader"
:header-cell-style="{background:'#F2F2F2 !important',color:'#333333',height:'60px',fontSize:'14px'}" :header-cell-style="{background:'#F2F2F2 !important',color:'#333333',height:'60px',fontSize:'14px'}"
@row-click="goDetails"
style="width: 100%"> style="width: 100%">
<el-table-column <el-table-column
prop="create_time" prop="create_time"
@ -59,6 +60,10 @@ export default {
this.getData(); this.getData();
}, },
methods:{ methods:{
goDetails(row){
console.info(row)
this.$router.push({path:'/StationNoticeDetails',query:{id:row.id}})
},
getData(){ getData(){
informList(this.query).then(res => { informList(this.query).then(res => {
console.info(res) console.info(res)

71
src/components/page/StationNoticeDetails.vue

@ -0,0 +1,71 @@
<template>
<div class="body">
<div class="title">{{tableData.title}}</div>
<div>{{tableData.content}}</div>
</div>
</template>
<script>
import {informList} from '../../api/index'
export default {
data(){
return{
query:{
id:''
},
tableData:{},
}
},
created(){
this.query.id=this.$route.query.id
this.getData();
},
methods:{
getData(){
informList(this.query).then(res => {
console.info(res)
if(res.code==100){
this.tableData=res.list[0];
}else{
this.$message.error(res.msg)
}
})
},
//
handlePageChange(val) {
this.$set(this.query, 'page', val);
this.getData();
}
}
}
</script>
<style scoped>
.body{
width: 1200px;
margin: 0 auto;
padding-top: 20px;
text-align: center;
min-height: 400px;
}
.el-dropdown-link{
color: #EAB1B1;
cursor: pointer;
}
.tabs{
margin-top: 20px;
}
.tabs>>> .el-table tr{
border:1px solid #E9B7B7 !important
}
.tabs>>>.el-table td, .el-table th.is-leaf{
border-bottom: none;
}
.tabs>>>.el-table::before{
height: 0;
}
.title{
font-size: 20px;
font-weight: bold;
margin-bottom: 20px;
}
</style>

5
src/router/index.js

@ -54,6 +54,11 @@ export default new Router({
component: () => import(/* webpackChunkName: "dashboard" */ '../components/page/StationNotice.vue'), component: () => import(/* webpackChunkName: "dashboard" */ '../components/page/StationNotice.vue'),
meta: { title: '站内通知' } meta: { title: '站内通知' }
}, },
{
path: '/StationNoticeDetails',
component: () => import(/* webpackChunkName: "dashboard" */ '../components/page/StationNoticeDetails.vue'),
meta: { title: '站内通知详情' }
},
{ {
path: '/ClassificationDetails', path: '/ClassificationDetails',
component: () => import(/* webpackChunkName: "dashboard" */ '../components/page/ClassificationDetails.vue'), component: () => import(/* webpackChunkName: "dashboard" */ '../components/page/ClassificationDetails.vue'),

Loading…
Cancel
Save