624 lines
26 KiB
Vue
624 lines
26 KiB
Vue
<template>
|
||
<view>
|
||
<top-bar></top-bar>
|
||
<common-header></common-header>
|
||
<category-bar></category-bar>
|
||
|
||
<view class="page-nav">
|
||
<el-breadcrumb separator="/">
|
||
<el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
|
||
<el-breadcrumb-item>
|
||
<navigator style="display: inline-block;" url="/pages/index/old/old">旧货交易</navigator>
|
||
</el-breadcrumb-item>
|
||
<el-breadcrumb-item>{{ oldType[sheet.type] }}</el-breadcrumb-item>
|
||
</el-breadcrumb>
|
||
</view>
|
||
|
||
<view class="page-main" v-if="sheet">
|
||
<view class="flex justify-between items-center">
|
||
<text class="text-gray">发布时间:{{ sheet._add_time_str }}</text>
|
||
</view>
|
||
<view class="my-25 flex justify-between items-center">
|
||
<view class="flex justify-start items-center">
|
||
<text class="text-main" v-if="sheet.isUrgent">[加急]</text>
|
||
<text class="text-40 font-bold">{{ sheet.title }}</text>
|
||
<view class="ml-20 flex justify-start items-center" v-if="sheet.type < 3">
|
||
<building-one theme="outline" size="24" fill="#a92924" strokeLinecap="square"/>
|
||
<view class="text-main ">
|
||
<text class="mx-20">{{
|
||
(sheet.quoteList && sheet.quoteList.length > 0) ? sheet.quoteList.length : 0
|
||
}}
|
||
</text>
|
||
<text>家已报价</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
</view>
|
||
<view class="my-25 flex justify-between items-center pb-20 border-bottom">
|
||
<view class="flex justify-start items-center">
|
||
<id-card theme="outline" size="24" fill="#a92924" strokeLinecap="square"/>
|
||
<text class="ml-15 text-gray" :class="[sheet.user.showInYellow ? 'pointer hover' : '']" @click="toCompany">
|
||
{{
|
||
(sheet.supplier && sheet.supplier.companyName) ? sheet.supplier.companyName : sheet.buyer.companyName
|
||
}}
|
||
</text>
|
||
</view>
|
||
<template v-if="sheet.type < 3">
|
||
<el-button type="primary" @click.native="toQuote"
|
||
v-if="vk.getVuex('$user.userInfo._id') !== sheet.uid && sheet.status === 0">
|
||
{{ (sheet.type === 3 || (sheet.type === 2 && sheet.rentType === 1)) ? '我要询价' : '我要报价' }}
|
||
</el-button>
|
||
<el-button type="primary" @click.native="showDialog = true"
|
||
v-else-if="vk.getVuex('$user.userInfo._id') === sheet.uid">查看收到的申请报价
|
||
</el-button>
|
||
</template>
|
||
</view>
|
||
<view class="item-wrap">
|
||
<view class="form-title-wrap">
|
||
<view class="goods-sheet-title">
|
||
<view class="form-title">
|
||
物资信息
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="mt-15 mr-15" v-for="(item, index) in sheet.files" :key="index">
|
||
<el-image :src="item" style="width: 100px; height: 100px" fit="cover"
|
||
:preview-src-list="sheet.files"/>
|
||
</view>
|
||
<view class="mt-15">物资分类:{{ sheet.category[1] }}</view>
|
||
<view class="mt-15" v-if="sheet.addressRegion && sheet.addressRegion.city">
|
||
物资所在地:{{ sheet.addressRegion.province.name }}{{
|
||
sheet.addressRegion.city.name
|
||
}}{{ sheet.addressRegion.area.name }}{{ sheet.addressDetail }}
|
||
</view>
|
||
<view class="mt-15" v-if="[2].includes(sheet.type) && sheet.deliverAddressRegion.city">
|
||
{{
|
||
sheet.type === 2 ? (sheet.rentType === 0 ? '物资交货地' : '物资装货地') : '物资交货地'
|
||
}}:{{ sheet.deliverAddressRegion.province.name }}{{
|
||
sheet.deliverAddressRegion.city.name
|
||
}}{{ sheet.deliverAddressRegion.area.name }}{{ sheet.deliverAddressDetail }}
|
||
</view>
|
||
<view class="mt-15">详情:{{ sheet.desc ? sheet.desc : '无' }}</view>
|
||
<template v-if="sheet.type === 0">
|
||
<view class="mt-15">起拍计价单位:
|
||
<!-- <text>{{-->
|
||
<!-- sheet.startNum ? sheet.startNum : '无'-->
|
||
<!-- }}-->
|
||
<!-- </text>-->
|
||
<text v-if="sheet.unit">{{ sheet.unit ? sheet.unit : '无' }}</text>
|
||
</view>
|
||
<view class="mt-15">起拍人民币单价:{{ sheet.startAmount ? `${sheet.startAmount}元` : '无' }}</view>
|
||
<view class="mt-15">拍卖信息失效时间:{{ sheet.expiredTime ? sheet.expiredTime : '无' }}</view>
|
||
</template>
|
||
</view>
|
||
|
||
<view class="item-wrap" v-if="[1, 2].includes(sheet.type)">
|
||
<view class="form-title-wrap">
|
||
<view class="goods-sheet-title">
|
||
<view class="form-title">
|
||
纳税和税票
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="mt-15">是否含税:{{ sheet.invoice ? '含税' : '不含税' }}</view>
|
||
<view class="mt-15">
|
||
开票时间:{{ sheet.writeInvoiceTime ? WRITE_INVOICE_TIME[sheet.writeInvoiceTime] : '无' }}
|
||
</view>
|
||
<template v-if="sheet.type === 1">
|
||
<view class="mt-15" v-if="sheet.invoiceOther">税票要求:{{ sheet.invoiceOther }}</view>
|
||
<template v-else>
|
||
<view class="mt-15">纳税人身份:{{ sheet.taxType ? sheet.taxType : '无' }}</view>
|
||
<view class="mt-15">发票种类:{{ sheet.invoiceType ? sheet.invoiceType : '无' }}</view>
|
||
<view class="mt-15">税率:{{ sheet.taxRate ? sheet.taxRate : '无' }}</view>
|
||
</template>
|
||
</template>
|
||
<template v-else>
|
||
<view class="mt-15">发票种类:{{ sheet.invoiceType ? INVOICE_TYPE[sheet.invoiceType] : '无' }}</view>
|
||
<view class="mt-15" v-if="sheet.type === 2">报价明细:{{
|
||
sheet.invoiceDetail ? sheet.invoiceDetail : '无'
|
||
}}
|
||
</view>
|
||
<view class="mt-15" v-if="sheet.invoiceOther">其他要求:{{
|
||
sheet.invoiceOther ? sheet.invoiceOther : '无'
|
||
}}
|
||
</view>
|
||
</template>
|
||
</view>
|
||
|
||
<view class="item-wrap">
|
||
<view class="form-title-wrap">
|
||
<view class="goods-sheet-title">
|
||
<view class="form-title">
|
||
交易说明
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="mt-15">报价区域:{{
|
||
sheet.offerAddressNoLimit ? '不限区域' :
|
||
(sheet.offerAddressRegion && sheet.offerAddressRegion.province) ? `${sheet.offerAddressRegion.province.name} ${sheet.offerAddressRegion.city ? sheet.offerAddressRegion.city.name : '无'} ${sheet.offerAddressRegion.area ? sheet.offerAddressRegion.area.name : '无'}` : '无'
|
||
}}
|
||
</view>
|
||
<view class="mt-15" v-if="sheet.payMethod !== '其他付款方式描述'">
|
||
付款方式:{{ sheet.payMethod ? sheet.payMethod : '无' }} {{ sheet.prePayRate ? `${sheet.prePayRate}%` : '' }}
|
||
</view>
|
||
<view class="mt-15" v-else>付款方式:{{
|
||
sheet.otherPayMethodDesc ? sheet.otherPayMethodDesc : '无'
|
||
}}
|
||
</view>
|
||
<!-- <view class="mt-15">报价形式:{{ sheet.offerType === 0 ? '整单报价' : '可分项报价' }}</view>-->
|
||
</view>
|
||
|
||
<template v-if="sheet.type === 1">
|
||
<view class="item-wrap">
|
||
<view class="form-title-wrap">
|
||
<view class="goods-sheet-title">
|
||
<view class="form-title">
|
||
采购商信息
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<template v-if="sheet.isMine || sheet.hasQuote || userInfo.userLevel > 0">
|
||
<view class="mt-15" v-if="sheet.buyer.companyName">公司信息:{{
|
||
sheet.buyer.companyName ? sheet.buyer.companyName : ''
|
||
}}
|
||
</view>
|
||
<view class="mt-15" v-if="sheet.buyer.contract">公司联系方式:{{
|
||
sheet.buyer.contract ? sheet.buyer.contract : ''
|
||
}}
|
||
</view>
|
||
<view class="mt-15" v-if="sheet.buyer.personalName">个人信息:{{
|
||
sheet.buyer.personalName ? sheet.buyer.personalName : ''
|
||
}}
|
||
</view>
|
||
<view class="mt-15" v-if="sheet.buyer.personalContract">个人联系方式:{{
|
||
sheet.buyer.personalContract ? sheet.buyer.personalContract : ''
|
||
}}
|
||
</view>
|
||
<view class="mt-15" v-if="sheet.buyer.managerName">授权人姓名:{{
|
||
sheet.buyer.managerName ? sheet.buyer.managerName : ''
|
||
}}
|
||
</view>
|
||
<view class="mt-15" v-if="sheet.buyer.managerContract">授权联系方式:{{
|
||
sheet.buyer.managerContract ? sheet.buyer.managerContract : ''
|
||
}}
|
||
</view>
|
||
</template>
|
||
<template v-else>
|
||
<view class="mt-15" v-if="sheet.buyer.companyName">公司信息:{{
|
||
sheet.buyer.companyName ? sheet.buyer.companyName.replace(/^(.)(.).*(.)(.)(.)(.)$/, "$1$2***$3$4$5$6") : ''
|
||
}}
|
||
</view>
|
||
<view class="mt-15" v-if="sheet.buyer.contract">公司联系方式:{{
|
||
sheet.buyer.contract ? (sheet.buyer.contract.slice(0, 3) + '*'.repeat(sheet.buyer.contract.length - 7) + sheet.buyer.contract.slice(-4)) : ''
|
||
}}
|
||
</view>
|
||
<view class="mt-15" v-if="sheet.buyer.personalName">个人信息:{{
|
||
sheet.buyer.personalName ? sheet.buyer.personalName.replace(/^(.).*(.)$/, "$1***$2") : ''
|
||
}}
|
||
</view>
|
||
<view class="mt-15" v-if="sheet.buyer.personalContract">个人联系方式:{{
|
||
sheet.buyer.personalContract ? sheet.buyer.personalContract.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2") : ''
|
||
}}
|
||
</view>
|
||
<view class="mt-15" v-if="sheet.buyer.managerName">授权人姓名:{{
|
||
sheet.buyer.managerName ? sheet.buyer.managerName.replace(/^(.).*(.)$/, "$1***$2") : ''
|
||
}}
|
||
</view>
|
||
<view class="mt-15" v-if="sheet.buyer.managerContract">授权联系方式:{{
|
||
sheet.buyer.managerContract ? sheet.buyer.managerContract.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2") : ''
|
||
}}
|
||
</view>
|
||
</template>
|
||
</view>
|
||
</template>
|
||
<template v-else>
|
||
<view class="item-wrap">
|
||
<view class="form-title-wrap">
|
||
<view class="goods-sheet-title">
|
||
<view class="form-title">
|
||
{{ sheet.type === 3 ? '回收单位信息' : '供货商信息' }}
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<template v-if="sheet.isMine || sheet.hasQuote || userInfo.userLevel > 0">
|
||
<view class="mt-15" v-if="sheet.supplier.companyName">公司信息:{{
|
||
sheet.supplier.companyName ? sheet.supplier.companyName : ''
|
||
}}
|
||
</view>
|
||
<view class="mt-15" v-if="sheet.supplier.contract">公司联系方式:{{
|
||
sheet.supplier.contract ? sheet.supplier.contract : ''
|
||
}}
|
||
</view>
|
||
<view class="mt-15" v-if="sheet.supplier.personalName">个人信息:{{
|
||
sheet.supplier.personalName ? sheet.supplier.personalName : ''
|
||
}}
|
||
</view>
|
||
<view class="mt-15" v-if="sheet.supplier.personalContract">
|
||
个人联系方式:{{
|
||
sheet.supplier.personalContract ? sheet.supplier.personalContract : ''
|
||
}}
|
||
</view>
|
||
<view class="mt-15" v-if="sheet.supplier.managerName">授权人姓名:{{
|
||
sheet.supplier.managerName ? sheet.supplier.managerName : ''
|
||
}}
|
||
</view>
|
||
<view class="mt-15" v-if="sheet.supplier.managerContract">授权联系方式:{{
|
||
sheet.supplier.managerContract ? sheet.supplier.managerContract : ''
|
||
}}
|
||
</view>
|
||
</template>
|
||
<template v-else>
|
||
<view class="mt-15" v-if="sheet.supplier.companyName">公司信息:{{
|
||
sheet.supplier.companyName ? sheet.supplier.companyName.replace(/^(.)(.).*(.)(.)(.)(.)$/, "$1$2***$3$4$5$6") : ''
|
||
}}
|
||
</view>
|
||
<view class="mt-15" v-if="sheet.supplier.contract">公司联系方式:{{
|
||
sheet.supplier.contract ? (sheet.supplier.contract.slice(0, 3) + '*'.repeat(sheet.supplier.contract.length - 7) + sheet.supplier.contract.slice(-4)) : ''
|
||
}}
|
||
</view>
|
||
<view class="mt-15" v-if="sheet.supplier.personalName">个人信息:{{
|
||
sheet.supplier.personalName ? sheet.supplier.personalName.replace(/^(.).*(.)$/, "$1***$2") : ''
|
||
}}
|
||
</view>
|
||
<view class="mt-15" v-if="sheet.supplier.personalContract">
|
||
个人联系方式:{{
|
||
sheet.supplier.personalContract ? sheet.supplier.personalContract.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2") : ''
|
||
}}
|
||
</view>
|
||
<view class="mt-15" v-if="sheet.supplier.managerName">授权人姓名:{{
|
||
sheet.supplier.managerName ? sheet.supplier.managerName.replace(/^(.).*(.)$/, "$1***$2") : ''
|
||
}}
|
||
</view>
|
||
<view class="mt-15" v-if="sheet.supplier.managerContract">授权联系方式:{{
|
||
sheet.supplier.managerContract ? sheet.supplier.managerContract.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2") : ''
|
||
}}
|
||
</view>
|
||
</template>
|
||
</view>
|
||
</template>
|
||
<view class="item-wrap" v-if="sheet.signMethod === 0">
|
||
<view class="form-title-wrap">
|
||
<view class="goods-sheet-title">
|
||
<view class="form-title">
|
||
简易合同备注和其他补充条款
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="mt-15">违约责任:</view>
|
||
<view class="mt-15">
|
||
1.乙方所交产品品种、型号、规格、质量不符合规定的,如果甲方同意利用,应当按质论价;如果甲方不能利用的,应根据产品的具体情况,由乙方负责包换或包修,并承担修理、调换或退货而支付的实际费用;2.乙方不予供货违约责任为甲方的实际损失+违约金,如乙方材料符合订货标准,甲方不能退货和不收货,甲方无条件应按实际本合同订货数量支付100%货款,并支付乙方因此产生的实际费用。带有甲乙双方单位相关收货人和发货人签字的本合同的发货清单事项和内容均视为本合同的补充合同,与本合同有相同的法律效力,双方应共同遵照执行。
|
||
</view>
|
||
<view class="mt-15">解决纠纷的方法:</view>
|
||
<view class="mt-15">
|
||
1、凡因本合同引起的或与本合同有关的任何争议,均可友好协商或仲裁解决,协商或仲裁不成的,双方协商同意在合同签订地人民法院管辖地起诉,违约一方或对合同争议承担主要责任的一方,应承担对方因仲裁和起诉而产生的全部律师代理费、鉴定(检验)费、诉讼保全费、诉讼保险费、公告费、差旅费、执行费、误工費和获取证据产生费用等其他相关费用。2、双方本合同相关权利放弃均应有双方书面作出并加盖公章或授权委托人签字后生效。
|
||
</view>
|
||
<view class="mt-15">不可抗力:</view>
|
||
<view class="mt-15">
|
||
甲乙双方的任何一方由于不可抗力或突发公共事件的原因不能履行合同时,应及时向对方通报不能履行或不能完全履行的理由,以减轻可能给对方造成的损失,在取得有关机构证明以后,允许延期履行、部分履行或者不履行合同,并根据情况可部分或全部免予承担违约责任。
|
||
</view>
|
||
<view class="mt-15">其他:</view>
|
||
<view class="mt-15">
|
||
本合同的全部内容由双方平等共同协商一致,共同起草制定,非一方事先拟定,不属于格式条款。本合同自双方签字盖章后生效(包括电子签字、盖章),按本合同内容地址、联系方式寄送的一切文书、函件送达与否,均为视为送达有法律效力,通知途径和本合同内联系方式或地址送达文件双方均予以验证。
|
||
</view>
|
||
<view class="mt-15">采购方补充条款: {{ sheet.supplementary }}</view>
|
||
</view>
|
||
|
||
<template v-else-if="sheet.signMethod === 2">
|
||
<view class="item-wrap">
|
||
<view class="form-title-wrap">
|
||
<view class="goods-sheet-title">
|
||
<view class="form-title">
|
||
合同附件
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view v-for="(item, index) in sheet.contractAttachment" :key="index" class="mr-25 my-25">
|
||
<file-type :item="item" @click.native="openDownload(item)"/>
|
||
</view>
|
||
</template>
|
||
</view>
|
||
|
||
<common-footer></common-footer>
|
||
|
||
<el-dialog :visible.sync="showDialog" width="70%" :show-close="false">
|
||
<view slot="title" class="text-main text-40 m-30 flex justify-between items-center">
|
||
<text>收到的报价</text>
|
||
<el-button type="primary" @click.native="showDialog = false">关闭</el-button>
|
||
</view>
|
||
<view class="mt-15">
|
||
<view class="request-header">
|
||
<text class="flex-1">报价方</text>
|
||
<text class="flex-1">报价时间</text>
|
||
<text class="flex-1">联系方式</text>
|
||
<text class="flex-1">报价</text>
|
||
<text class="flex-1">详情</text>
|
||
<text class="flex-1">补充协议</text>
|
||
<text class="flex-1">附件</text>
|
||
<text class="flex-1">操作</text>
|
||
</view>
|
||
<view class="quote" v-for="(item, index) in sheet.quoteList" :key="index">
|
||
<text class="flex-1">{{ item.subjectName }}</text>
|
||
<text class="flex-1">{{ item._add_time_str }}</text>
|
||
<text class="flex-1" v-if="item.user">{{ item.user.mobile }}</text>
|
||
<text class="flex-1">{{ item.totalPrice }}元</text>
|
||
<text class="flex-1">{{ item.remark }}</text>
|
||
<text class="flex-1">{{ item.supplierExt ? item.supplierExt : '无' }}</text>
|
||
<view class="flex-1">
|
||
<view class="flex-1">
|
||
<view class="mt-15 mr-15" v-for="(file, fileIndex) in item.files" :key="fileIndex">
|
||
<file-type :item="file" @click.native="openDownload(file)"/>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<text class="flex-1">
|
||
<el-button type="primary" v-if="sheet.status === 0 && sheet.type !== 3"
|
||
@click.native="confirmQuote(item._id)">
|
||
选择
|
||
</el-button>
|
||
<el-button type="primary" v-if="sheet.status === 1 && sheet.type !== 3"
|
||
@click.native="toSign(item._id)">
|
||
去签约
|
||
</el-button>
|
||
</text>
|
||
</view>
|
||
</view>
|
||
</el-dialog>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
import {BuildingOne, FileExcel, FilePdfOne, FileWord, IdCard} from "@icon-park/vue";
|
||
import dayjs from "dayjs";
|
||
import {WRITE_INVOICE_TIME, INVOICE_TYPE, PROCESS_PAY_METHOD} from '@/util'
|
||
import provinces from "@/uni_modules/vk-uview-ui/libs/address/provinces.json";
|
||
import citys from "@/uni_modules/vk-uview-ui/libs/address/citys.json";
|
||
import areas from "@/uni_modules/vk-uview-ui/libs/address/areas.json";
|
||
|
||
export default {
|
||
components: {FileExcel, FilePdfOne, FileWord, BuildingOne, IdCard},
|
||
data() {
|
||
return {
|
||
oldType: [
|
||
'拍卖信息',
|
||
'采购信息',
|
||
'承租信息',
|
||
'物资回收信息',
|
||
],
|
||
provinceData: provinces,
|
||
cityData: citys,
|
||
areaData: areas,
|
||
WRITE_INVOICE_TIME,
|
||
INVOICE_TYPE,
|
||
PROCESS_PAY_METHOD,
|
||
id: undefined,
|
||
showDialog: false,
|
||
productList: [],
|
||
sheetTitle: '',
|
||
sheet: {
|
||
user: {},
|
||
productList: [],
|
||
transportDocuments: []
|
||
},
|
||
userInfo: {
|
||
userLevel: -1
|
||
}
|
||
};
|
||
},
|
||
async onLoad(options = {}) {
|
||
const {
|
||
id
|
||
} = options
|
||
if (!id) {
|
||
vk.navigateBack()
|
||
return
|
||
}
|
||
|
||
this.id = id
|
||
|
||
const {userInfo} = await vk.callFunction({
|
||
url: 'user/kh/getMyUserInfo'
|
||
})
|
||
this.userInfo = userInfo
|
||
|
||
this.getDetail()
|
||
},
|
||
methods: {
|
||
dayjs,
|
||
/**
|
||
* 获取询价单详情
|
||
*/
|
||
getDetail() {
|
||
vk.callFunction({
|
||
url: 'client/old/pub/getDetail',
|
||
title: '请求中...',
|
||
data: {
|
||
id: this.id
|
||
},
|
||
success: (res) => {
|
||
this.sheet = res
|
||
this.sheet.address = ''
|
||
this.sheet.deliverAddress = ''
|
||
this.sheet.offerAddress = ''
|
||
if (this.sheet.addressRegion && this.sheet.addressRegion.length > 0)
|
||
this.sheet.address = this.sheet?.addressRegion[0]?.name + this.sheet?.addressRegion[1]?.name + this.sheet?.addressRegion[2]?.name + this.sheet.addressDetail
|
||
if (this.sheet.deliverAddress && this.sheet.deliverAddress.length > 0)
|
||
this.sheet.deliverAddress = this.sheet?.deliverAddressRegion[0]?.name + this.sheet?.deliverAddressRegion[1]?.name + this.sheet?.deliverAddressRegion[2]?.name + this.sheet.addressDetail
|
||
if (this.sheet.offerAddress && this.sheet.offerAddress.length > 0)
|
||
this.sheet.offerAddress = !this.sheet.offerAddressNoLimit ? (this.sheet?.offerAddressRegion[0]?.name + this.sheet?.offerAddressRegion[1]?.name + this.sheet?.offerAddressRegion[2]?.name) : '无限制'
|
||
this.sheet.expiredTime = dayjs(this.sheet.expiredTime).format('YYYY-MM-DD')
|
||
}
|
||
});
|
||
},
|
||
async toQuote() {
|
||
const {userInfo, accountNum} = await vk.callFunction({
|
||
url: 'user/kh/getMyUserInfo'
|
||
})
|
||
|
||
if (!userInfo.fadadaConfirm || [-1, 2].includes(userInfo.authStatus)) {
|
||
this.$confirm('您尚未认证, 是否前往个人中心认证?', '提示', {
|
||
confirmButtonText: '确定',
|
||
cancelButtonText: '取消',
|
||
type: 'warning'
|
||
}).then(() => {
|
||
vk.navigateTo({url: '/pages/user/user?menu=fadada'});
|
||
})
|
||
} else if (vk.pubfn.isNull(userInfo.businessCard)) {
|
||
this.$confirm('您尚未认证和完善名片,是否前往个人中心?', '提示', {
|
||
confirmButtonText: '确定',
|
||
cancelButtonText: '取消',
|
||
type: 'warning'
|
||
}).then(() => {
|
||
vk.navigateTo({url: '/pages/user/user?menu=fadada'});
|
||
})
|
||
} else if (accountNum === 0) {
|
||
this.$confirm('请先到个人中心添加收款账户', '提示', {
|
||
confirmButtonText: '确定',
|
||
cancelButtonText: '取消',
|
||
type: 'warning'
|
||
}).then(() => {
|
||
vk.navigateTo({url: '/pages/user/user?menu=account'});
|
||
})
|
||
} else {
|
||
if (userInfo.businessCard.status !== 1) {
|
||
this.$confirm('您的名片信息未审核,请耐心等待', '提示', {
|
||
confirmButtonText: '确定',
|
||
cancelButtonText: '取消',
|
||
type: 'warning'
|
||
})
|
||
return
|
||
}
|
||
vk.navigateTo({
|
||
url: `/pages/index/old/quote?id=${this.id}`
|
||
})
|
||
}
|
||
},
|
||
async confirmQuote(quoteId) {
|
||
const {userInfo, accountNum} = await vk.callFunction({
|
||
url: 'user/kh/getMyUserInfo'
|
||
})
|
||
if (userInfo.qybNum <= 0) {
|
||
this.showDialog = false
|
||
this.$confirm('您的金久信签约宝次数不足,请先购买', '提示', {
|
||
confirmButtonText: '确定',
|
||
cancelButtonText: '取消',
|
||
type: 'warning'
|
||
}).then(() => {
|
||
vk.navigateTo({url: '/pages/contract/index?tab=sign'});
|
||
})
|
||
return
|
||
}
|
||
await vk.callFunction({
|
||
url: 'client/old/kh/confirmQuote',
|
||
title: '请求中...',
|
||
data: {
|
||
quoteId,
|
||
}
|
||
});
|
||
this.showDialog = false
|
||
this.$message({
|
||
message: "选择成功",
|
||
type: 'success'
|
||
})
|
||
if (this.sheet.signMethod === 0) vk.navigateTo('/pages/contract/index?tab=1')
|
||
else {
|
||
if (this.sheet.signMethod === 1) vk.navigateTo('/pages/store/store?menuIndex=2')
|
||
else vk.navigateTo('/pages/contract/index?tab=0&tradeMethod=0')
|
||
}
|
||
},
|
||
toSign() {
|
||
this.showDialog = false
|
||
if (this.sheet.signMethod === 0) vk.navigateTo('/pages/contract/index?tab=1')
|
||
else {
|
||
if (this.sheet.signMethod === 1) vk.navigateTo('/pages/store/store?menuIndex=2')
|
||
else vk.navigateTo('/pages/contract/index?tab=0&tradeMethod=0')
|
||
}
|
||
},
|
||
openDownload(url) {
|
||
window.open(url)
|
||
},
|
||
toCompany() {
|
||
if (this.sheet.user.showInYellow && this.sheet.user.showInYellow === 1) {
|
||
vk.navigateTo({
|
||
url: `/pages/yellowPage/info?id=${this.sheet.user._id}`
|
||
})
|
||
}
|
||
}
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style lang="scss" scoped>
|
||
@import "@/common/css/app.scss";
|
||
|
||
.page-main {
|
||
width: 1200px;
|
||
margin: 20px auto;
|
||
background-color: #FFFFFF;
|
||
padding: 20px;
|
||
border-radius: 5px;
|
||
}
|
||
|
||
.countdown {
|
||
padding: 2px 5px;
|
||
margin: 0 5px;
|
||
}
|
||
|
||
.item-wrap {
|
||
margin: 24px 0;
|
||
|
||
.form-title-wrap {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
|
||
.goods-info-title {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: flex-start;
|
||
}
|
||
|
||
.form-title {
|
||
padding-left: 10px;
|
||
color: $--color-primary;
|
||
font-size: 18px;
|
||
line-height: 18px;
|
||
border-left: 4px solid $--color-primary;
|
||
}
|
||
|
||
}
|
||
}
|
||
|
||
.request-header {
|
||
border: 1px solid #EDEDED;
|
||
background-color: #FFF8F1;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 15px;
|
||
margin-top: 30px;
|
||
|
||
text {
|
||
text-align: center;
|
||
}
|
||
}
|
||
|
||
.quote {
|
||
border-left: 1px solid #EDEDED;
|
||
border-right: 1px solid #EDEDED;
|
||
border-bottom: 1px solid #EDEDED;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 15px;
|
||
|
||
text {
|
||
text-align: center;
|
||
}
|
||
}
|
||
|
||
.hover:hover {
|
||
color: #a92924;
|
||
}
|
||
</style> |