This commit is contained in:
faiz 2024-04-07 20:06:43 +08:00
parent afebda12a2
commit f60ea4c078
3 changed files with 169 additions and 122 deletions

View File

@ -52,6 +52,7 @@
placeholder="请输入商品名称" placeholder="请输入商品名称"
size="small" size="small"
class="pageWidth" class="pageWidth"
:disabled='virStatus'
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -85,11 +86,12 @@
:props="props" :props="props"
filterable filterable
clearable clearable
:disabled='virStatus'
@visible-change="getSpecsLst" @visible-change="getSpecsLst"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <!-- <el-col :span="24">
<el-form-item label="商户商品分类:"> <el-form-item label="商户商品分类:">
<el-cascader <el-cascader
v-model="formValidate.mer_cate_id" v-model="formValidate.mer_cate_id"
@ -101,8 +103,8 @@
clearable clearable
/> />
</el-form-item> </el-form-item>
</el-col> </el-col> -->
<el-col v-if="labelList.length" :span="24"> <!-- <el-col v-if="labelList.length" :span="24">
<el-form-item label="商品标签:"> <el-form-item label="商品标签:">
<el-select <el-select
v-model="formValidate.mer_labels" v-model="formValidate.mer_labels"
@ -119,8 +121,8 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
<el-col v-bind="grid2"> <!-- <el-col v-bind="grid2">
<el-form-item label="品牌选择:"> <el-form-item label="品牌选择:">
<el-select <el-select
v-model="formValidate.brand_id" v-model="formValidate.brand_id"
@ -137,7 +139,7 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
<el-col :span="24"> <el-col :span="24">
<el-form-item label="商品封面图:" prop="image"> <el-form-item label="商品封面图:" prop="image">
<div <div
@ -267,7 +269,7 @@
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<!--
<el-col :span="24"> <el-col :span="24">
<el-form-item label="优惠券(赠送券):" class="proCoupon"> <el-form-item label="优惠券(赠送券):" class="proCoupon">
<div class="acea-row"> <div class="acea-row">
@ -287,7 +289,7 @@
>选择优惠券</el-button> >选择优惠券</el-button>
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
</el-row> </el-row>
<!-- 资质详情 --> <!-- 资质详情 -->
<el-row v-if="currentTab == '2'" :gutter="24"> <el-row v-if="currentTab == '2'" :gutter="24">
@ -355,18 +357,18 @@
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)"> <span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
<i class="el-icon-zoom-in" /> <i class="el-icon-zoom-in" />
</span> </span>
<span class="el-upload-list__item-delete" @click="onRemoveHandler(file,'businessList')"> <span v-if="!virStatus" class="el-upload-list__item-delete" @click="onRemoveHandler(file,'businessList')">
<i class="el-icon-delete" /> <i class="el-icon-delete" />
</span> </span>
</span> </span>
</div> </div>
<el-button size="small" type="primary">点击上传</el-button> <el-button :disabled='virStatus' size="small" type="primary">点击上传</el-button>
<!-- <div slot="tip" class="el-upload__tip">只能上传图片和PDF文件</div> --> <!-- <div slot="tip" class="el-upload__tip">只能上传图片和PDF文件</div> -->
</el-upload> </el-upload>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="许可证:" prop="qualification.licenceList"> <el-form-item label="生产许可证:" prop="qualification.licenceList">
<el-upload <el-upload
class="upload-demo" class="upload-demo"
ref="licenceList" ref="licenceList"
@ -394,12 +396,12 @@
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)"> <span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
<i class="el-icon-zoom-in" /> <i class="el-icon-zoom-in" />
</span> </span>
<span class="el-upload-list__item-delete" @click="onRemoveHandler(file,'licenceList')"> <span v-if="!virStatus" class="el-upload-list__item-delete" @click="onRemoveHandler(file,'licenceList')">
<i class="el-icon-delete" /> <i class="el-icon-delete" />
</span> </span>
</span> </span>
</div> </div>
<el-button size="small" type="primary">点击上传</el-button> <el-button :disabled='virStatus' size="small" type="primary">点击上传</el-button>
<!-- <div slot="tip" class="el-upload__tip">只能上传图片和PDF文件</div> --> <!-- <div slot="tip" class="el-upload__tip">只能上传图片和PDF文件</div> -->
</el-upload> </el-upload>
</el-form-item> </el-form-item>
@ -433,18 +435,18 @@
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)"> <span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
<i class="el-icon-zoom-in" /> <i class="el-icon-zoom-in" />
</span> </span>
<span class="el-upload-list__item-delete" @click="onRemoveHandler(file,'trademarkList')"> <span v-if="!virStatus" class="el-upload-list__item-delete" @click="onRemoveHandler(file,'trademarkList')">
<i class="el-icon-delete" /> <i class="el-icon-delete" />
</span> </span>
</span> </span>
</div> </div>
<el-button size="small" type="primary">点击上传</el-button> <el-button :disabled='virStatus' size="small" type="primary">点击上传</el-button>
<!-- <div slot="tip" class="el-upload__tip">只能上传图片和PDF文件</div> --> <!-- <div slot="tip" class="el-upload__tip">只能上传图片和PDF文件</div> -->
</el-upload> </el-upload>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="销售授权及其他" prop="qualification.authorizedList"> <el-form-item label="销售授权及品牌方营业执照" prop="qualification.authorizedList">
<el-upload <el-upload
class="upload-demo" class="upload-demo"
:action="filePdf" :action="filePdf"
@ -471,19 +473,19 @@
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)"> <span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
<i class="el-icon-zoom-in" /> <i class="el-icon-zoom-in" />
</span> </span>
<span class="el-upload-list__item-delete" @click="onRemoveHandler(file,'authorizedList')"> <span v-if="!virStatus" class="el-upload-list__item-delete" @click="onRemoveHandler(file,'authorizedList')">
<i class="el-icon-delete" /> <i class="el-icon-delete" />
</span> </span>
</span> </span>
</div> </div>
<el-button size="small" type="primary">点击上传</el-button> <el-button :disabled='virStatus' size="small" type="primary">点击上传</el-button>
<!-- <div slot="tip" class="el-upload__tip">只能上传图片和PDF文件</div> --> <!-- <div slot="tip" class="el-upload__tip">只能上传图片和PDF文件</div> -->
</el-upload> </el-upload>
</el-form-item> </el-form-item>
</el-col> </el-col>
<div>产品资质</div> <div>产品资质</div>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="商品检测报告" prop="qualification.commodityList"> <el-form-item label="商品检测报告及备案" prop="qualification.commodityList">
<el-upload <el-upload
class="upload-demo" class="upload-demo"
:action="filePdf" :action="filePdf"
@ -510,18 +512,18 @@
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)"> <span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
<i class="el-icon-zoom-in" /> <i class="el-icon-zoom-in" />
</span> </span>
<span class="el-upload-list__item-delete" @click="onRemoveHandler(file,'commodityList')"> <span v-if="!virStatus" class="el-upload-list__item-delete" @click="onRemoveHandler(file,'commodityList')">
<i class="el-icon-delete" /> <i class="el-icon-delete" />
</span> </span>
</span> </span>
</div> </div>
<el-button size="small" type="primary">点击上传</el-button> <el-button :disabled='virStatus' size="small" type="primary">点击上传</el-button>
<!-- <div slot="tip" class="el-upload__tip">只能上传图片和PDF文件</div> --> <!-- <div slot="tip" class="el-upload__tip">只能上传图片和PDF文件</div> -->
</el-upload> </el-upload>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="其他资质:" prop="qualification.otherList"> <el-form-item label="助农文件及其他资质:" prop="qualification.otherList">
<el-upload <el-upload
class="upload-demo" class="upload-demo"
:action="filePdf" :action="filePdf"
@ -548,12 +550,12 @@
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)"> <span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
<i class="el-icon-zoom-in" /> <i class="el-icon-zoom-in" />
</span> </span>
<span class="el-upload-list__item-delete" @click="onRemoveHandler(file,'commodityList')"> <span v-if="!virStatus" class="el-upload-list__item-delete" @click="onRemoveHandler(file,'commodityList')">
<i class="el-icon-delete" /> <i class="el-icon-delete" />
</span> </span>
</span> </span>
</div> </div>
<el-button size="small" type="primary">点击上传</el-button> <el-button :disabled='virStatus' size="small" type="primary">点击上传</el-button>
<!-- <div slot="tip" class="el-upload__tip">只能上传图片和PDF文件</div> --> <!-- <div slot="tip" class="el-upload__tip">只能上传图片和PDF文件</div> -->
</el-upload> </el-upload>
</el-form-item> </el-form-item>
@ -599,19 +601,19 @@
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)"> <span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
<i class="el-icon-zoom-in" /> <i class="el-icon-zoom-in" />
</span> </span>
<span class="el-upload-list__item-delete" @click="onRemoveHandler(file,'importBusinessList')"> <span v-if="!virStatus" class="el-upload-list__item-delete" @click="onRemoveHandler(file,'importBusinessList')">
<i class="el-icon-delete" /> <i class="el-icon-delete" />
</span> </span>
</span> </span>
</div> </div>
<el-button size="small" type="primary">点击上传</el-button> <el-button :disabled='virStatus' size="small" type="primary">点击上传</el-button>
<!-- <div slot="tip" class="el-upload__tip">只能上传图片和PDF文件</div> --> <!-- <div slot="tip" class="el-upload__tip">只能上传图片和PDF文件</div> -->
</el-upload> </el-upload>
</el-form-item> </el-form-item>
</el-col> </el-col>
<div>品牌方资质</div> <div>品牌方资质</div>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="销售授权及其他" prop="qualification.importAuthorizedList"> <el-form-item label="销售授权及品牌方营业执照" prop="qualification.importAuthorizedList">
<el-upload <el-upload
class="upload-demo" class="upload-demo"
:action="filePdf" :action="filePdf"
@ -638,12 +640,12 @@
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)"> <span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
<i class="el-icon-zoom-in" /> <i class="el-icon-zoom-in" />
</span> </span>
<span class="el-upload-list__item-delete" @click="onRemoveHandler(file,'importAuthorizedList')"> <span v-if="!virStatus" class="el-upload-list__item-delete" @click="onRemoveHandler(file,'importAuthorizedList')">
<i class="el-icon-delete" /> <i class="el-icon-delete" />
</span> </span>
</span> </span>
</div> </div>
<el-button size="small" type="primary">点击上传</el-button> <el-button :disabled='virStatus' size="small" type="primary">点击上传</el-button>
<!-- <div slot="tip" class="el-upload__tip">只能上传图片和PDF文件</div> --> <!-- <div slot="tip" class="el-upload__tip">只能上传图片和PDF文件</div> -->
</el-upload> </el-upload>
</el-form-item> </el-form-item>
@ -677,18 +679,18 @@
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)"> <span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
<i class="el-icon-zoom-in" /> <i class="el-icon-zoom-in" />
</span> </span>
<span class="el-upload-list__item-delete" @click="onRemoveHandler(file,'customsList')"> <span v-if="!virStatus" class="el-upload-list__item-delete" @click="onRemoveHandler(file,'customsList')">
<i class="el-icon-delete" /> <i class="el-icon-delete" />
</span> </span>
</span> </span>
</div> </div>
<el-button size="small" type="primary">点击上传</el-button> <el-button :disabled='virStatus' size="small" type="primary">点击上传</el-button>
<!-- <div slot="tip" class="el-upload__tip">只能上传图片和PDF文件</div> --> <!-- <div slot="tip" class="el-upload__tip">只能上传图片和PDF文件</div> -->
</el-upload> </el-upload>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="产品外包装实物图" prop="qualification.packingList"> <el-form-item label="产品外包装实拍图含中文标签" prop="qualification.packingList">
<el-upload <el-upload
class="upload-demo" class="upload-demo"
:action="filePdf" :action="filePdf"
@ -715,12 +717,12 @@
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)"> <span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
<i class="el-icon-zoom-in" /> <i class="el-icon-zoom-in" />
</span> </span>
<span class="el-upload-list__item-delete" @click="onRemoveHandler(file,'packingList')"> <span v-if="!virStatus" class="el-upload-list__item-delete" @click="onRemoveHandler(file,'packingList')">
<i class="el-icon-delete" /> <i class="el-icon-delete" />
</span> </span>
</span> </span>
</div> </div>
<el-button size="small" type="primary">点击上传</el-button> <el-button :disabled='virStatus' size="small" type="primary">点击上传</el-button>
<!-- <div slot="tip" class="el-upload__tip">只能上传图片和PDF文件</div> --> <!-- <div slot="tip" class="el-upload__tip">只能上传图片和PDF文件</div> -->
</el-upload> </el-upload>
</el-form-item> </el-form-item>
@ -753,12 +755,12 @@
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)"> <span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
<i class="el-icon-zoom-in" /> <i class="el-icon-zoom-in" />
</span> </span>
<span class="el-upload-list__item-delete" @click="onRemoveHandler(file,'importOtherList')"> <span v-if="!virStatus" class="el-upload-list__item-delete" @click="onRemoveHandler(file,'importOtherList')">
<i class="el-icon-delete" /> <i class="el-icon-delete" />
</span> </span>
</span> </span>
</div> </div>
<el-button size="small" type="primary">点击上传</el-button> <el-button :disabled='virStatus' size="small" type="primary">点击上传</el-button>
<!-- <div slot="tip" class="el-upload__tip">只能上传图片和PDF文件</div> --> <!-- <div slot="tip" class="el-upload__tip">只能上传图片和PDF文件</div> -->
</el-upload> </el-upload>
</el-form-item> </el-form-item>
@ -1150,7 +1152,7 @@
controls-position="right" controls-position="right"
/> />
<el-input <el-input
v-if="formThead[iii].title === '商品编号'" v-if="formThead[iii].title === '商品编号' || formThead[iii].title === '依据链接'"
v-model="scope.row[iii]" v-model="scope.row[iii]"
type="text" type="text"
class="priceBox" class="priceBox"
@ -1159,6 +1161,7 @@
v-if=" v-if="
formThead[iii].title !== '付费会员价' && formThead[iii].title !== '付费会员价' &&
formThead[iii].title !== '商品编号' && formThead[iii].title !== '商品编号' &&
formThead[iii].title !== '依据链接' &&
formThead[iii].title !== '库存' formThead[iii].title !== '库存'
" "
v-model="scope.row[iii]" v-model="scope.row[iii]"
@ -1187,10 +1190,12 @@
<div v-else> <div v-else>
<el-input <el-input
v-if="formThead[iii].title === '商品编号'" v-if="formThead[iii].title === '商品编号' || formThead[iii].title === '依据链接' || formThead[iii].title === '售价'"
v-model="scope.row[iii]" v-model="scope.row[iii]"
type="text" type="text"
size="small" size="small"
:disabled="virStatus&&formThead[iii].title === '依据链接'"
@input="handleCost(scope.row,iii,$event)"
class="priceBox" class="priceBox"
/> />
<el-input-number <el-input-number
@ -1198,14 +1203,14 @@
v-model="scope.row[iii]" v-model="scope.row[iii]"
:min="0" :min="0"
size="small" size="small"
:disabled="formThead[iii].title === '库存' && formValidate.type == 2" :disabled="formThead[iii].title === '成本价'"
class="priceBox" class="priceBox"
controls-position="right" controls-position="right"
/> />
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<template v-if="formValidate.type == 2"> <!-- <template v-if="formValidate.type == 2">
<el-table-column <el-table-column
align="center" align="center"
label="卡密设置" label="卡密设置"
@ -1220,7 +1225,7 @@
<span v-else class="seeCatMy" @click="seeVirtual(OneattrValue[0], 'OneattrValue', 0)">已设置</span> <span v-else class="seeCatMy" @click="seeVirtual(OneattrValue[0], 'OneattrValue', 0)">已设置</span>
</template> </template>
</el-table-column> </el-table-column>
</template> </template> -->
<template v-if="formValidate.extension_type === 1"> <template v-if="formValidate.extension_type === 1">
<el-table-column <el-table-column
align="center" align="center"
@ -1317,7 +1322,7 @@
controls-position="right" controls-position="right"
/> />
<el-input <el-input
v-if="formThead[iii].title === '商品编号'" v-if="formThead[iii].title === '商品编号' || formThead[iii].title === '依据链接'"
v-model="scope.row[iii]" v-model="scope.row[iii]"
type="text" type="text"
size="small" size="small"
@ -1326,6 +1331,7 @@
<el-input-number <el-input-number
v-if="formThead[iii].title !== '付费会员价' && v-if="formThead[iii].title !== '付费会员价' &&
formThead[iii].title !== '商品编号' && formThead[iii].title !== '商品编号' &&
formThead[iii].title !== '依据链接' &&
formThead[iii].title !== '库存'" formThead[iii].title !== '库存'"
v-model="scope.row[iii]" v-model="scope.row[iii]"
:min="0" :min="0"
@ -1352,7 +1358,7 @@
</div> </div>
<div v-else> <div v-else>
<el-input <el-input
v-if="formThead[iii].title === '商品编号'" v-if="formThead[iii].title === '商品编号' || formThead[iii].title === '依据链接'"
v-model="scope.row[iii]" v-model="scope.row[iii]"
type="text" type="text"
size="small" size="small"
@ -1377,7 +1383,7 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<template v-if="formValidate.type == 2"> <!-- <template v-if="formValidate.type == 2">
<el-table-column <el-table-column
align="center" align="center"
label="卡密设置" label="卡密设置"
@ -1392,7 +1398,7 @@
<span v-else class="seeCatMy" @click="seeVirtual(ManyAttrValue[scope.$index], 'ManyAttrValue', scope.$index)">已设置</span> <span v-else class="seeCatMy" @click="seeVirtual(ManyAttrValue[scope.$index], 'ManyAttrValue', scope.$index)">已设置</span>
</template> </template>
</el-table-column> </el-table-column>
</template> </template> -->
<template v-if="formValidate.extension_type === 1"> <template v-if="formValidate.extension_type === 1">
<el-table-column <el-table-column
key="1" key="1"
@ -1557,6 +1563,7 @@
<el-switch <el-switch
v-model="formValidate.refund_switch" v-model="formValidate.refund_switch"
:active-value="1" :active-value="1"
disabled
:inactive-value="0" :inactive-value="0"
:width="55" :width="55"
active-text="开启" active-text="开启"
@ -2061,7 +2068,8 @@ const defaultObj = {
cdkey: {}, cdkey: {},
bar_code: '', bar_code: '',
weight: null, weight: null,
volume: null volume: null,
gist_url:''
} }
], ],
attr: [], attr: [],
@ -2120,6 +2128,9 @@ const objTitle = {
}, },
volume: { volume: {
title: '体积(m³)' title: '体积(m³)'
},
gist_url: {
title: '依据链接'
} }
} }
const proOptions = [{ name: '店铺推荐', value: 'is_good' }] const proOptions = [{ name: '店铺推荐', value: 'is_good' }]
@ -2258,11 +2269,11 @@ export default {
required: true, message: '请上传营业执照图片或者PDF', trigger: 'blur' required: true, message: '请上传营业执照图片或者PDF', trigger: 'blur'
} }
], ],
'qualification.licenceList': [ // 'qualification.licenceList': [
{ // {
required: true, message: '请上传许可证图片或者PDF', trigger: 'blur' // required: true, message: 'PDF', trigger: 'blur'
} // }
], // ],
'qualification.trademarkList': [ 'qualification.trademarkList': [
{ {
required: true, message: '请上传商标注册证图片或者PDF', trigger: 'blur' required: true, message: '请上传商标注册证图片或者PDF', trigger: 'blur'
@ -2351,9 +2362,9 @@ export default {
previewKey: '', previewKey: '',
deliveryType: [], deliveryType: [],
virtual: [ virtual: [
{ tit: '食品', id: 0, tit2: '物流发货' }, { tit: '食品及保健品', id: 0, tit2: '物流发货' },
{ tit: '日化', id: 1, tit2: '物流发货' }, { tit: '化妆品及日化', id: 1, tit2: '物流发货' },
{ tit: '其他', id: 2, tit2: '物流发货' } { tit: '其他品类', id: 2, tit2: '物流发货' }
], ],
customBtn: 0, // customBtn: 0, //
// //
@ -2411,7 +2422,8 @@ export default {
stock: null, stock: null,
bar_code: '', bar_code: '',
weight: null, weight: null,
volume: null volume: null,
gist_url:''
}, },
open_svip: false, open_svip: false,
svip_rate: 0, svip_rate: 0,
@ -2458,7 +2470,8 @@ export default {
product_id: '', product_id: '',
goodList: [], goodList: [],
unitList: [], unitList: [],
recommendVisible: false recommendVisible: false,
virStatus:false
} }
}, },
computed: { computed: {
@ -2550,6 +2563,11 @@ export default {
window.removeEventListener('popstate', this.goBack, false) window.removeEventListener('popstate', this.goBack, false)
}, },
methods: { methods: {
handleCost(val,i,e){
if(i=='price'){
val.cost = (e * 0.6).toFixed(2)
}
},
handlCommodity(name) { handlCommodity(name) {
console.log(this.importBusinessList); console.log(this.importBusinessList);
this.$refs[name].clearValidate() this.$refs[name].clearValidate()
@ -3317,7 +3335,8 @@ export default {
stock: null, stock: null,
bar_code: '', bar_code: '',
weight: null, weight: null,
volume: null volume: null,
gist_url:''
} }
// if(this.formValidate.type == 2)this.attrVal.cdkey = {} // if(this.formValidate.type == 2)this.attrVal.cdkey = {}
this.OneattrValue[0]['svip_price'] = this.OneattrValue[0]['price'] this.OneattrValue[0]['svip_price'] = this.OneattrValue[0]['price']
@ -3337,7 +3356,8 @@ export default {
stock: null, stock: null,
bar_code: '', bar_code: '',
weight: null, weight: null,
volume: null volume: null,
gist_url:''
} }
} }
}, },
@ -3518,6 +3538,7 @@ export default {
}); });
}, },
infoData(info) { infoData(info) {
this.virStatus = true
this.deduction_set = info.integral_rate == -1 ? -1 : 1; this.deduction_set = info.integral_rate == -1 ? -1 : 1;
this.goodList = info.goodList || []; this.goodList = info.goodList || [];
this.attrs = info.attr || []; this.attrs = info.attr || [];
@ -3585,7 +3606,8 @@ export default {
// cdkey: {}, // cdkey: {},
bar_code: "", bar_code: "",
weight: null, weight: null,
volume: null volume: null,
gist_url:''
}; };
if (this.formValidate.extend.length != 0) { if (this.formValidate.extend.length != 0) {
this.customBtn = 1; this.customBtn = 1;
@ -3612,10 +3634,12 @@ export default {
this.infoData(data); this.infoData(data);
}, },
handleRemove(i) { handleRemove(i) {
if(this.virStatus) return
this.formValidate.slider_image.splice(i, 1); this.formValidate.slider_image.splice(i, 1);
}, },
// //
modalPicTap(tit, num, i) { modalPicTap(tit, num, i) {
if(this.virStatus) return
const _this = this; const _this = this;
const attr = []; const attr = [];
this.$modalUpload(function(img) { this.$modalUpload(function(img) {
@ -3776,15 +3800,19 @@ export default {
}, },
// //
handleDragStart(e, item) { handleDragStart(e, item) {
if(this.virStatus) return
this.dragging = item; this.dragging = item;
}, },
handleDragEnd(e, item) { handleDragEnd(e, item) {
if(this.virStatus) return
this.dragging = null; this.dragging = null;
}, },
handleDragOver(e) { handleDragOver(e) {
if(this.virStatus) return
e.dataTransfer.dropEffect = "move"; e.dataTransfer.dropEffect = "move";
}, },
handleDragEnter(e, item) { handleDragEnter(e, item) {
if(this.virStatus) return
e.dataTransfer.effectAllowed = "move"; e.dataTransfer.effectAllowed = "move";
if (item === this.dragging) { if (item === this.dragging) {
return; return;

View File

@ -294,13 +294,13 @@
<el-tab-pane label="审核回复栏" name="audit"> <el-tab-pane label="审核回复栏" name="audit">
<div class="section"> <div class="section">
<ul class="list"> <ul class="list">
<li class="item"> <li class="item" v-if="productData.refusal">
<div class="item-title">审核拒绝原因</div> <div class="item-title">审核拒绝原因</div>
<div class="value">{{productData.refusal || '-'}}</div> <div class="value">{{productData.refusal || ''}}</div>
</li> </li>
<li class="item item100"> <li class="item item100">
<div class="item-title">审核图</div> <div class="item-title">佐证图片</div>
<el-image :src="productData.status_img" style="width:40px;height:40px;margin-right:12px;" :preview-src-list="[productData.status_img]" /> <el-image v-for="(item,index) in productData.status_img" :key="index" :src="item" style="width:40px;height:40px;margin-right:12px;" :preview-src-list="productData.status_img" />
</li> </li>
</ul> </ul>
</div> </div>

View File

@ -60,7 +60,7 @@
<div class="margin_count" @mouseenter="getCode('all')"> <div class="margin_count" @mouseenter="getCode('all')">
<el-button type="text" size="small" class="mr10 pay_btn">去支付保证金</el-button> <el-button type="text" size="small" class="mr10 pay_btn">去支付保证金</el-button>
<!--支付二维码--> <!--支付二维码-->
<div class="erweima"> <!-- <div class="erweima">
<div class="pay_title">支付保证金</div> <div class="pay_title">支付保证金</div>
<div> <div>
<vue-qr class="bicode" :text="goodsQrcode" :size="310" /> <vue-qr class="bicode" :text="goodsQrcode" :size="310" />
@ -68,6 +68,17 @@
<div class="pay_price">{{ marginPrice }}</div> <div class="pay_price">{{ marginPrice }}</div>
<div class="pay_time">支付码过期时间 {{ qrEndTime }}</div> <div class="pay_time">支付码过期时间 {{ qrEndTime }}</div>
</div> </div>
</div> -->
<div class="erweima">
<div class="pay_title">对公账户</div>
<div>
<!-- <vue-qr class="bicode" :text="goodsQrcode" :size="310" /> -->
<!-- <div class="pay_type">请使用微信扫码支付</div> -->
<div class="pay_price">{{ merData.margin }}</div>
<div class="pay_time">支付账户名称 {{ merData.bank_info.bank_account_name }}</div>
<div class="pay_time">开户银行 {{ merData.bank_info.bank_name }}</div>
<div class="pay_time">银行卡号 {{ merData.bank_info.bank_account_code }}</div>
</div>
</div> </div>
</div> </div>
</div> </div>
@ -79,12 +90,14 @@
<el-button type="text" size="small" class="mr10 pay_btn">去支付产品服务费</el-button> <el-button type="text" size="small" class="mr10 pay_btn">去支付产品服务费</el-button>
<!--支付二维码--> <!--支付二维码-->
<div class="erweima"> <div class="erweima">
<div class="pay_title">支付保证金</div> <div class="pay_title">对公账户</div>
<div> <div>
<vue-qr class="bicode" :text="serviceQrCode" :size="310" /> <!-- <vue-qr class="bicode" :text="goodsQrcode" :size="310" /> -->
<div class="pay_type">请使用微信扫码支付</div> <!-- <div class="pay_type">请使用微信扫码支付</div> -->
<div class="pay_price">{{ servicePrice }}</div> <div class="pay_price">{{ merData.margin }}</div>
<div class="pay_time">支付码过期时间 {{ serviceQrEndTime }}</div> <div class="pay_time">支付账户名称 {{ merData.bank_info.bank_account_name }}</div>
<div class="pay_time">开户银行 {{ merData.bank_info.bank_name }}</div>
<div class="pay_time">银行卡号 {{ merData.bank_info.bank_account_code }}</div>
</div> </div>
</div> </div>
</div> </div>
@ -95,14 +108,15 @@
<span class="font_red">{{ merData.goods_cost }}</span> <span class="font_red">{{ merData.goods_cost }}</span>
<div class="margin_count" @mouseenter="getCode('goods')"> <div class="margin_count" @mouseenter="getCode('goods')">
<el-button type="text" size="small" class="mr10 pay_btn">去支付上架费</el-button> <el-button type="text" size="small" class="mr10 pay_btn">去支付上架费</el-button>
<!--支付二维码-->
<div class="erweima"> <div class="erweima">
<div class="pay_title">支付保证金</div> <div class="pay_title">对公账户</div>
<div> <div>
<vue-qr class="bicode" :text="qrCode" :size="310" /> <!-- <vue-qr class="bicode" :text="goodsQrcode" :size="310" /> -->
<div class="pay_type">请使用微信扫码支付</div> <!-- <div class="pay_type">请使用微信扫码支付</div> -->
<div class="pay_price">{{ goodsPrice }}</div> <div class="pay_price">{{ merData.margin }}</div>
<div class="pay_time">支付码过期时间 {{ goodsQrEndTime }}</div> <div class="pay_time">支付账户名称 {{ merData.bank_info.bank_account_name }}</div>
<div class="pay_time">开户银行 {{ merData.bank_info.bank_name }}</div>
<div class="pay_time">银行卡号 {{ merData.bank_info.bank_account_code }}</div>
</div> </div>
</div> </div>
</div> </div>
@ -129,12 +143,14 @@
<el-button type="text" size="small" class="mr10 pay_btn">去补缴保证金</el-button> <el-button type="text" size="small" class="mr10 pay_btn">去补缴保证金</el-button>
<!--支付二维码--> <!--支付二维码-->
<div class="erweima"> <div class="erweima">
<div class="pay_title">支付保证金</div> <div class="pay_title">对公账户</div>
<div> <div>
<vue-qr class="bicode" :text="qrCode" :size="310" /> <!-- <vue-qr class="bicode" :text="goodsQrcode" :size="310" /> -->
<div class="pay_type">请使用微信扫码支付</div> <!-- <div class="pay_type">请使用微信扫码支付</div> -->
<div class="pay_price">{{ marginPrice }}</div> <div class="pay_price">{{ merData.margin }}</div>
<div class="pay_time">支付码过期时间 {{ qrEndTime }}</div> <div class="pay_time">支付账户名称 {{ merData.bank_info.bank_account_name }}</div>
<div class="pay_time">开户银行 {{ merData.bank_info.bank_name }}</div>
<div class="pay_time">银行卡号 {{ merData.bank_info.bank_account_code }}</div>
</div> </div>
</div> </div>
</div> </div>
@ -717,6 +733,7 @@ export default {
const that = this const that = this
that.merModel = false that.merModel = false
getBaseInfo().then((res) => { getBaseInfo().then((res) => {
console.log(res);
that.merData = res.data that.merData = res.data
that.$set(that.merData, 'uploadedqualifications', '') // that.$set(that.merData, 'uploadedqualifications', '') //
that.$set(that.merData, 'delivery_way', res.data.delivery_way && res.data.delivery_way.length ? res.data.delivery_way.map(String) : []) that.$set(that.merData, 'delivery_way', res.data.delivery_way && res.data.delivery_way.length ? res.data.delivery_way.map(String) : [])
@ -827,46 +844,46 @@ export default {
const that = this const that = this
// //
if(type == 'service' && this.merData.is_service){ if(type == 'service' && this.merData.is_service){
return serviceCodeApi().then((res) => { // return serviceCodeApi().then((res) => {
console.log(res); // console.log(res);
that.serviceQrCode = res.data.config // that.serviceQrCode = res.data.config
that.serviceQrEndTime = res.data.endtime // that.serviceQrEndTime = res.data.endtime
that.servicePrice = res.data.price // that.servicePrice = res.data.price
}).catch(function(res) { // }).catch(function(res) {
that.$message.error(res.message) // that.$message.error(res.message)
}) // })
} }
// //
if(type == 'goods' && this.merData.is_goods){ if(type == 'goods' && this.merData.is_goods){
return goodsCodeApi().then((res) => { // return goodsCodeApi().then((res) => {
console.log(res); // console.log(res);
that.goodsQrCode = res.data.config // that.goodsQrCode = res.data.config
that.goodsQrEndTime = res.data.endtime // that.goodsQrEndTime = res.data.endtime
that.goodsPrice = res.data.price // that.goodsPrice = res.data.price
}).catch(function(res) { // }).catch(function(res) {
that.$message.error(res.message) // that.$message.error(res.message)
}) // })
} }
if (type =='all' && this.merData.marginStatus) { if (type =='all' && this.merData.marginStatus) {
return marginMakeCode() // return marginMakeCode()
.then((res) => { // .then((res) => {
that.qrCode = res.data.config // that.qrCode = res.data.config
that.qrEndTime = res.data.endtime // that.qrEndTime = res.data.endtime
that.marginPrice = res.data.price // that.marginPrice = res.data.price
}) // })
.catch(function(res) { // .catch(function(res) {
that.$message.error(res.message) // that.$message.error(res.message)
}) // })
} else { } else {
return marginCode() // return marginCode()
.then((res) => { // .then((res) => {
that.qrCode = res.data.config // that.qrCode = res.data.config
that.qrEndTime = res.data.endtime // that.qrEndTime = res.data.endtime
that.marginPrice = res.data.price // that.marginPrice = res.data.price
}) // })
.catch(function(res) { // .catch(function(res) {
that.$message.error(res.message) // that.$message.error(res.message)
}) // })
} }
}, },
// //
@ -1189,7 +1206,7 @@ export default {
z-index: 9; z-index: 9;
display: none; display: none;
width: 250px; width: 250px;
height: 320px; height: 220px;
text-align: center; text-align: center;
background: #fff; background: #fff;
border-radius: 8px; border-radius: 8px;
@ -1218,9 +1235,11 @@ export default {
margin-top: 20px; margin-top: 20px;
} }
.pay_time{ .pay_time{
font-size: 12px; font-size: 16px;
color: #6D7278; color: #6D7278;
& + .pay_time{
margin-top: 10px;
}
} }
} }