This commit is contained in:
faiz 2024-05-10 17:40:38 +08:00
parent 94c0d44a5e
commit 66c1a4a0c9
9 changed files with 60 additions and 30 deletions

View File

@ -949,4 +949,7 @@ export default {
font-size: 12px; font-size: 12px;
white-space: nowrap; white-space: nowrap;
} }
::v-deep.el-radio-group{
vertical-align: top;
}
</style> </style>

View File

@ -14,10 +14,12 @@ uploadFrom.install = function (Vue, options) {
const instance = new ToastConstructor() const instance = new ToastConstructor()
instance.$mount(document.createElement('div')) instance.$mount(document.createElement('div'))
document.body.appendChild(instance.$el) document.body.appendChild(instance.$el)
Vue.prototype.$modalUpload = function (callback, isMore) { Vue.prototype.$modalUpload = function (callback, isMore, isPage) {
instance.visible = true instance.visible = true
console.log(instance);
instance.callback = callback instance.callback = callback
instance.isMore = isMore instance.isMore = isMore
instance.isPage = isPage
} }
} }
export default uploadFrom export default uploadFrom

View File

@ -3,10 +3,10 @@
<el-dialog <el-dialog
title="上传图片" title="上传图片"
:visible.sync="visible" :visible.sync="visible"
width="1000px" width="1300px"
:before-close="handleClose" :before-close="handleClose"
> >
<upload-index v-if="visible" :is-more="isMore" @getImage="getImage" /> <upload-index v-if="visible" :is-more="isMore" :is-page="isPage" @getImage="getImage" />
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@ -21,7 +21,8 @@ export default {
return { return {
visible: false, visible: false,
callback: function() {}, callback: function() {},
isMore: '' isMore: '',
isPage:false
} }
}, },
watch: { watch: {

View File

@ -92,8 +92,10 @@ export default {
if(this.isDiy){ if(this.isDiy){
this.$emit('getVideo',this.formValidate.video_link) this.$emit('getVideo',this.formValidate.video_link)
}else if(nowEditor){ }else if(nowEditor){
let video_html = `<p><span contenteditable="false" data-mce-object="video" data-mce-p-allowfullscreen="allowfullscreen" data-mce-p-frameborder="no" data-mce-p-scrolling="no" data-mce-p-src="${this.formValidate.video_link}" ><video src='${this.formValidate.video_link}' width="320" height="180" controls></video></span></p>`
nowEditor.dialog.close(true) nowEditor.dialog.close(true)
nowEditor.editor.setContent("<video src='" + this.formValidate.video_link + "' controls='controls'></video>", true) nowEditor.editor.execCommand("insertHtml", video_html);
// nowEditor.editor.setContent(`<p><video src='${this.formValidate.video_link}' width="320" height="180" controls ></video><br></p>`, true)
} }
} }

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="divBox"> <div class="divBox">
<div class="selCard"> <div class="selCard">
<el-form :model="tableFrom" ref="searchForm" size="small" inline label-width="85px"> <el-form ref="searchForm" :model="tableFrom" size="small" inline label-width="85px">
<el-form-item label="订单状态:" class="width100" prop="order_type"> <el-form-item label="订单状态:" class="width100" prop="order_type">
<el-radio-group v-model="tableFrom.order_type" type="button" @change="getList(1)"> <el-radio-group v-model="tableFrom.order_type" type="button" @change="getList(1)">
<el-radio-button label="">全部 </el-radio-button> <el-radio-button label="">全部 </el-radio-button>
@ -32,8 +32,8 @@
v-model="tableFrom.keyword" v-model="tableFrom.keyword"
placeholder="请输入订单号/收货人/联系方式" placeholder="请输入订单号/收货人/联系方式"
class="selWidth" class="selWidth"
@keyup.enter.native="getList(1)"
clearable clearable
@keyup.enter.native="getList(1)"
/> />
</el-form-item> </el-form-item>
<el-form-item label="开票状态:" prop="status"> <el-form-item label="开票状态:" prop="status">
@ -57,8 +57,8 @@
v-model="tableFrom.username" v-model="tableFrom.username"
placeholder="请输入用户昵称/手机号" placeholder="请输入用户昵称/手机号"
class="selWidth" class="selWidth"
@keyup.enter.native="getList(1)"
clearable clearable
@keyup.enter.native="getList(1)"
/> />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
@ -96,7 +96,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="receipt_price" label="发票金额" min-width="90" /> <el-table-column prop="receipt_price" label="发票金额" min-width="90" />
<el-table-column prop="receipt_sn" label="发票单号" min-width="120" /> <el-table-column prop="receipt_sn" label="申请单号" min-width="120" />
<el-table-column label="发票类型" min-width="100"> <el-table-column label="发票类型" min-width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.receipt_info">{{ scope.row.receipt_info.receipt_type == 1 ? '普通发票' : '专用发票' }}</span> <span v-if="scope.row.receipt_info">{{ scope.row.receipt_info.receipt_type == 1 ? '普通发票' : '专用发票' }}</span>
@ -195,7 +195,7 @@ import {
invoiceInfoApi, invoiceInfoApi,
invoiceApi invoiceApi
} from '@/api/order' } from '@/api/order'
import timeOptions from '@/utils/timeOptions'; import timeOptions from '@/utils/timeOptions'
export default { export default {
name: 'OrderInvoice', name: 'OrderInvoice',
data() { data() {
@ -259,10 +259,10 @@ export default {
}, },
methods: { methods: {
/**重置 */ /** 重置 */
searchReset(){ searchReset() {
this.timeVal = [] this.timeVal = []
this.tableFrom.date = "" this.tableFrom.date = ''
this.$refs.searchForm.resetFields() this.$refs.searchForm.resetFields()
this.getList(1) this.getList(1)
}, },

View File

@ -2637,10 +2637,6 @@ export default {
window.removeEventListener('popstate', this.goBack, false) window.removeEventListener('popstate', this.goBack, false)
}, },
methods: { methods: {
// handleLeave(activeName, oldActiveName){
// console.log(!!this.$route.params.id);
// return !!this.$route.params.id
// },
onsubmit(){ onsubmit(){
this.dialogVisible = false this.dialogVisible = false
}, },
@ -2669,7 +2665,6 @@ export default {
} }
}, },
handlCommodity(name) { handlCommodity(name) {
console.log(this.importBusinessList);
this.$refs[name].clearValidate() this.$refs[name].clearValidate()
}, },
beforeUpload(file,fileList) { beforeUpload(file,fileList) {
@ -2679,7 +2674,6 @@ export default {
} }
}, },
handlePictureCardPreview(file) { handlePictureCardPreview(file) {
console.log(file);
// pdf // pdf
if (['application/pdf'].includes(file.type)) { if (['application/pdf'].includes(file.type)) {
window.open(file.url) window.open(file.url)
@ -2710,7 +2704,6 @@ export default {
fileList.map(item => { fileList.map(item => {
arr.push({ name:item.name,uid:item.uid,url: item?.response?.data?.src||item.url,type:item?.raw?.type||item.type}) arr.push({ name:item.name,uid:item.uid,url: item?.response?.data?.src||item.url,type:item?.raw?.type||item.type})
}) })
console.log(fileList);
this.formValidate.qualification[name] = arr this.formValidate.qualification[name] = arr
console.log(this.formValidate.qualification[name]); console.log(this.formValidate.qualification[name]);
} }

View File

@ -87,7 +87,7 @@
<el-option v-for="item in productTypeList" :key="item.value" :label="item.label" :value="item.value" /> <el-option v-for="item in productTypeList" :key="item.value" :label="item.label" :value="item.value" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="时间选择" prop="create_time"> <el-form-item label="创建时间:" prop="create_time">
<el-date-picker <el-date-picker
v-model="timeVal" v-model="timeVal"
value-format="yyyy/MM/dd" value-format="yyyy/MM/dd"
@ -216,7 +216,7 @@
<el-table-column label="操作" min-width="150" fixed="right"> <el-table-column label="操作" min-width="150" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="small" class="mr10" @click="onDetails(scope.row.product_id)">详情</el-button> <el-button type="text" size="small" class="mr10" @click="onDetails(scope.row.product_id)">详情</el-button>
<router-link v-if="tableFrom.type != 5" :to="{path: roterPre + '/product/list/addProduct/' + scope.row.product_id}"> <router-link v-if="tableFrom.type != 5 && tableFrom.type!=12" :to="{path: roterPre + '/product/list/addProduct/' + scope.row.product_id}">
<el-button type="text" size="small" class="mr10">编辑</el-button> <el-button type="text" size="small" class="mr10">编辑</el-button>
</router-link> </router-link>
<el-button v-if="tableFrom.type !== '5'" type="text" size="small" class="mr10" @click="handlePreview(scope.row.product_id)">预览</el-button> <el-button v-if="tableFrom.type !== '5'" type="text" size="small" class="mr10" @click="handlePreview(scope.row.product_id)">预览</el-button>

View File

@ -143,6 +143,10 @@
<div class="item-title">规格</div> <div class="item-title">规格</div>
<div class="value">{{productData.spec_type == 1 ? "多规格" : "单规格"}}</div> <div class="value">{{productData.spec_type == 1 ? "多规格" : "单规格"}}</div>
</li> </li>
<li class="item item100">
<div class="item-title">佐证图片</div>
<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>
</ul> </ul>
</div> </div>
<div class="section" style="margin-top: 50px;"> <div class="section" style="margin-top: 50px;">
@ -163,7 +167,13 @@
</el-table-column> </el-table-column>
<el-table-column v-for="(item,iii) in attrValue" :key="iii" :label="formThead[iii].title" align="center" min-width="120"> <el-table-column v-for="(item,iii) in attrValue" :key="iii" :label="formThead[iii].title" align="center" min-width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="priceBox" v-text="scope.row[iii]" /> <a
v-if="formThead[iii].title == '依据链接'"
:href="scope.row[iii]"
target="_blank"
>{{ scope.row[iii] }}</a
>
<span v-else class="priceBox" v-text="scope.row[iii]" />
</template> </template>
</el-table-column> </el-table-column>
<template v-if="productData.extension_type === 1"> <template v-if="productData.extension_type === 1">
@ -196,7 +206,13 @@
</el-table-column> </el-table-column>
<el-table-column v-for="(item,iii) in attrValue" :key="iii" :label="formThead[iii].title" align="center" min-width="100"> <el-table-column v-for="(item,iii) in attrValue" :key="iii" :label="formThead[iii].title" align="center" min-width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="priceBox">{{ scope.row[iii] }}</span> <a
v-if="formThead[iii].title == '依据链接'"
:href="scope.row[iii]"
target="_blank"
>{{ scope.row[iii] }}</a
>
<span v-else class="priceBox">{{ scope.row[iii] }}</span>
</template> </template>
</el-table-column> </el-table-column>
<template v-if="productData.extension_type === 1"> <template v-if="productData.extension_type === 1">
@ -294,9 +310,9 @@
<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" v-if="productData.refusal"> <li class="audit" v-if="productData.refusal">
<div class="item-title">审核拒绝原因</div> <div class="item-title">审核拒绝原因</div>
<div class="value">{{productData.refusal || ''}}</div> <div style="margin-left: 100px;" 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>
@ -726,6 +742,7 @@ const defaultObj = {
ot_price: null, ot_price: null,
stock: null, stock: null,
bar_code: '', bar_code: '',
gist_url:'',
weight: null, weight: null,
volume: null volume: null
}], }],
@ -758,6 +775,9 @@ const objTitle = {
weight: { weight: {
title: '重量KG' title: '重量KG'
}, },
gist_url: {
title: '依据链接'
},
volume: { volume: {
title: '体积(m³)' title: '体积(m³)'
} }
@ -1066,6 +1086,15 @@ export default {
padding: 0; padding: 0;
margin: 0; margin: 0;
} }
.audit{
margin-top: 16px;
font-size: 13px;
color: #606266;
.item-title{
width: 100px;
text-align: right;
}
}
.item { .item {
flex: 0 0 calc(100% / 3); flex: 0 0 calc(100% / 3);
display: flex; display: flex;

View File

@ -374,11 +374,11 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="商户关键字:" prop="mer_keyword"> <!-- <el-form-item label="商户关键字:" prop="mer_keyword">
<div class="tip-form"> <div class="tip-form">
<el-input v-model="merData.mer_keyword" class="pageWidth" placeholder="用户在搜索该关键字时,可搜索到本店铺" /> <el-input v-model="merData.mer_keyword" class="pageWidth" placeholder="用户在搜索该关键字时,可搜索到本店铺" />
</div> </div>
</el-form-item> </el-form-item> -->
<el-form-item label="联系客服方式:"> <el-form-item label="联系客服方式:">
<el-radio-group <el-radio-group
v-model="merData.services_type" v-model="merData.services_type"
@ -1097,7 +1097,7 @@ export default {
if (tit === '3' && !num) { if (tit === '3' && !num) {
_this.merData.mini_banner = img[0] _this.merData.mini_banner = img[0]
} }
}, tit) }, tit,true)
}, },
// //