Commit 657b1096 by 张立顺

字段修改

1 parent 99f0e9d6
<template> <template>
<div class="configUpgradation-list"> <div class="configUpgradation-list">
<div class="table-tips"> <div class="table-tips">
<img class="tips-img" <img class="tips-img" src="@/assets/icon-info.png" />
src="@/assets/icon-info.png" />
<div class="table-tips-text"> <div class="table-tips-text">
已生成有效订单{{ statisticsInfo.orderCount || 0 }}项 累计订单总额:{{ 已生成有效订单{{ statisticsInfo.orderCount || 0 }}项 累计订单总额:{{
statisticsInfo.payPriceTotal || 0 statisticsInfo.payPriceTotal || 0
...@@ -11,61 +10,38 @@ ...@@ -11,61 +10,38 @@
</div> </div>
<d2-container class="m-t-94"> <d2-container class="m-t-94">
<!-- 搜索 --> <!-- 搜索 -->
<div class="header" <div class="header" slot="header">
slot="header"> <d2-search ref="showSearch" class="show-search" :search-form="searchForm" :label-width="'150px'"
<d2-search ref="showSearch" :form-data="searchFormData" />
class="show-search"
:search-form="searchForm"
:label-width="'150px'"
:form-data="searchFormData" />
<div class="up-btns"> <div class="up-btns">
<el-button @click="handleSearch" <el-button @click="handleSearch" size="small" type="primary">
size="small"
type="primary">
查询 查询
</el-button> </el-button>
<el-button size="small" <el-button size="small" @click="handleReset"> 重置 </el-button>
@click="handleReset"> 重置 </el-button>
</div> </div>
</div> </div>
<div class="tab-list"> <div class="tab-list">
<div class="tabs"> <div class="tabs">
<el-tabs type="card" <el-tabs type="card" v-model="searchForm.requestSource" @tab-click="handleTabClick">
v-model="searchForm.requestSource"
@tab-click="handleTabClick">
<template v-for="(i, index) in requestSourceList"> <template v-for="(i, index) in requestSourceList">
<el-tab-pane :label="i" <el-tab-pane :label="i" :name="index + ''" :key="index"></el-tab-pane>
:name="index + ''"
:key="index"></el-tab-pane>
</template> </template>
</el-tabs> </el-tabs>
</div> </div>
<div class="btn-group"> <div class="btn-group">
<template> <template>
<el-button class="default-blue-btn" <el-button class="default-blue-btn" type="primary" @click="handleExport">导出</el-button>
type="primary"
@click="handleExport">导出</el-button>
</template> </template>
</div> </div>
<!-- 表格区域 --> <!-- 表格区域 -->
<d2-table ref="crowdfundTable" <d2-table ref="crowdfundTable" :has-num="true" :search-form="tableSearchForm" :table-params="tableParams"
:has-num="true" :get-list-api="getListApi" :before-search-fn="beforeSearchFn" :filter-list-data="true">
:search-form="tableSearchForm" <div slot="weChatName" class="flex-align" slot-scope="scope">
:table-params="tableParams" <img v-if="scope.scope.weChatImageUrl" class="img-36 pointer img-circle" :src="scope.scope.weChatImageUrl" />
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn"
:filter-list-data="true">
<div slot="weChatName"
class="flex-align"
slot-scope="scope">
<img v-if="scope.scope.weChatImageUrl"
class="img-36 pointer img-circle"
:src="scope.scope.weChatImageUrl" />
<span class="m-l-10">{{ scope.scope.weChatName }}</span> <span class="m-l-10">{{ scope.scope.weChatName }}</span>
<span v-if="!scope.scope.shareAvatar && !scope.scope.weChatName">-</span> <span v-if="!scope.scope.shareAvatar && !scope.scope.weChatName">-</span>
</div> </div>
<div slot="orderStatus" <div slot="orderStatus" slot-scope="scope">
slot-scope="scope">
<span :class="[ <span :class="[
'table-circle', 'table-circle',
'm-r-8', 'm-r-8',
...@@ -87,43 +63,32 @@ ...@@ -87,43 +63,32 @@
: "-" : "-"
}}</span> }}</span>
</div> </div>
<div slot="shareStaffName" <div slot="shareStaffName" class="table-image" slot-scope="scope">
class="table-image"
slot-scope="scope">
<div> <div>
<img v-if="scope.scope.shareStaffImageUrl" <img v-if="scope.scope.shareStaffImageUrl" class="img-36 pointer img-circle" style="vertical-align: middle"
class="img-36 pointer img-circle" slot="reference" :src="scope.scope.shareStaffImageUrl" />
style="vertical-align: middle"
slot="reference"
:src="scope.scope.shareStaffImageUrl" />
<span class="m-l-10"> <span class="m-l-10">
<span>{{ scope.scope.shareStaffName }}</span> <span>{{ scope.scope.shareStaffName }}</span>
<span class="txt-green" <span class="txt-green" v-if="scope.scope.shareStaffSource == 1">@个微</span>
v-if="scope.scope.shareStaffSource == 1">@个微</span> <span class="txt-orange" v-if="scope.scope.shareStaffSource == 2">@企微</span>
<span class="txt-orange" <span class="txt-blue" v-if="scope.scope.shareStaffSource == 3">@员工</span>
v-if="scope.scope.shareStaffSource == 2">@企微</span>
<span class="txt-blue"
v-if="scope.scope.shareStaffSource == 3">@员工</span>
</span> </span>
</div> </div>
<span v-if="!scope.scope.shareStaffImageUrl && !scope.scope.shareStaffName <span v-if="!scope.scope.shareStaffImageUrl && !scope.scope.shareStaffName
">-</span> ">-</span>
</div> </div>
<div slot="assignName" <div slot="assignName" slot-scope="scope">
slot-scope="scope">
<div class="flex-align"> <div class="flex-align">
<template v-if="scope.scope.assignStaffName"> <template v-if="scope.scope.assignStaffName">
<img class="img-36 pointer img-circle" <img class="img-36 pointer img-circle" v-if="scope.scope.assignStaffImageUrl"
v-if="scope.scope.assignStaffImageUrl" :src="scope.scope.assignStaffImageUrl" />
:src="scope.scope.assignStaffImageUrl" />
<span class="m-l-10"> <span class="m-l-10">
<span>{{ scope.scope.assignStaffName }}</span> <span>{{ scope.scope.assignStaffName }}</span>
</span> </span>
</template> </template>
<template v-else-if="scope.scope.shareStaffName"> <template v-else-if="scope.scope.shareStaffName">
<img class="img-36 pointer img-circle" <img class="img-36 pointer img-circle" v-if="scope.scope.shareStaffImageUrl"
v-if="scope.scope.shareStaffImageUrl" :src="scope.scope.shareStaffImageUrl" />
:src="scope.scope.shareStaffImageUrl" />
<span class="m-l-10"> <span class="m-l-10">
<span>{{ scope.scope.shareStaffName }}</span> <span>{{ scope.scope.shareStaffName }}</span>
</span> </span>
...@@ -137,43 +102,28 @@ ...@@ -137,43 +102,28 @@
</template> </template>
</div> </div>
</div> </div>
<div slot="auth-button" <div slot="auth-button" slot-scope="scope">
slot-scope="scope">
<span style="margin-left: 10px;"> <span style="margin-left: 10px;">
<auth-button slot="auth-button" <auth-button slot="auth-button" :show-btn-ids="['9040112']" :data="scope.scope" />
:show-btn-ids="['9040112']"
:data="scope.scope" />
</span> </span>
<!-- 仅预支付状态显示 --> <!-- 仅预支付状态显示 -->
<span v-if="scope.scope.tailOrderStatus == '3'"> <span v-if="scope.scope.tailOrderStatus == '3'">
<el-button type="text" <el-button type="text" size="mini" style="margin-left: 10px" @click="record(scope.scope)">
size="mini"
style="margin-left: 10px"
@click="record(scope.scope)">
确认补录 确认补录
</el-button> </el-button>
<el-button type="text" <el-button type="text" size="mini" style="margin-left: 10px" @click="cancelRelat(scope.scope)">
size="mini"
style="margin-left: 10px"
@click="cancelRelat(scope.scope)">
取消关联 取消关联
</el-button> </el-button>
</span> </span>
<!-- 核销 --> <!-- 核销 -->
<span v-if="scope.scope.showVerf == '1'"> <span v-if="scope.scope.showVerf == '1'">
<el-button type="text" <el-button type="text" size="mini" style="margin-left: 10px" @click="writeOff(scope.scope)">
size="mini"
style="margin-left: 10px"
@click="writeOff(scope.scope)">
订单核销 订单核销
</el-button> </el-button>
</span> </span>
<!-- 退款 --> <!-- 退款 -->
<span v-if="scope.scope.showRefund == '1'"> <span v-if="scope.scope.showRefund == '1'">
<el-button type="text" <el-button type="text" size="mini" style="margin-left: 10px" @click="setRefund(scope.scope)">
size="mini"
style="margin-left: 10px"
@click="setRefund(scope.scope)">
退款 退款
</el-button> </el-button>
</span> </span>
...@@ -213,7 +163,7 @@ export default { ...@@ -213,7 +163,7 @@ export default {
shareStaffName: "", shareStaffName: "",
shareStaffType: "", shareStaffType: "",
goodsName: "", goodsName: "",
requestSource: "0", requestSource: "0"
}, },
statisticsInfo: { statisticsInfo: {
orderCount: "", orderCount: "",
...@@ -242,10 +192,12 @@ export default { ...@@ -242,10 +192,12 @@ export default {
}, },
{ {
label: "支付定金/元", label: "支付定金/元",
prop: "payPrice", prop: "orderPrice",
// prop: "payPrice",
width: "120", width: "120",
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.payPrice || "0" return cellValue.orderPrice || "0"
// return cellValue.payPrice || "0"
} }
}, },
{ {
...@@ -275,7 +227,7 @@ export default { ...@@ -275,7 +227,7 @@ export default {
"已付款", "已付款",
"未付款", "未付款",
"已退款", "已退款",
"售后订单", "售后订单"
// "待审批" // "待审批"
], ],
// 基本数据 // 基本数据
...@@ -303,7 +255,7 @@ export default { ...@@ -303,7 +255,7 @@ export default {
{ confId: "3", confName: "已分账" }, { confId: "3", confName: "已分账" },
{ confId: "4", confName: "分账中" } { confId: "4", confName: "分账中" }
] ]
}, }
} }
}, },
name: "ConfigUpgradation", name: "ConfigUpgradation",
...@@ -383,7 +335,7 @@ export default { ...@@ -383,7 +335,7 @@ export default {
shareStaffName: "", shareStaffName: "",
shareStaffType: "", shareStaffType: "",
goodsName: "", goodsName: "",
requestSource: "0", requestSource: "0"
} }
this.handleSearch() this.handleSearch()
}, },
...@@ -809,7 +761,7 @@ export default { ...@@ -809,7 +761,7 @@ export default {
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
}) })
}, }
} }
} }
</script> </script>
......
...@@ -5,63 +5,49 @@ ...@@ -5,63 +5,49 @@
<div class="edit-box"> <div class="edit-box">
<div class="container m-b-20"> <div class="container m-b-20">
<p class="edit-title">订单信息</p> <p class="edit-title">订单信息</p>
<el-form label-width="100px" <el-form label-width="100px" :inline="true">
:inline="true"> <el-row v-for="(item, index) in detailFormDataRow" :key="index">
<el-row v-for="(item, index) in detailFormDataRow" <el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label"
:key="index"> class="row-item">
<el-form-item v-for="(subItem, subIndex) in item.rowList" <div class="" v-if="subItem.isImage">
:key="subIndex" <img v-if="detailForm[subItem.name]" class="order-img" :src="detailForm[subItem.name]"
:label="subItem.label" @click="handleEnlargeImg(detailForm[subItem.name])">
class="row-item">
<div class=""
v-if="subItem.isImage">
<img v-if="detailForm[subItem.name]"
class="order-img"
:src="detailForm[subItem.name]"
@click="handleEnlargeImg(detailForm[subItem.name])">
<span v-else>-</span> <span v-else>-</span>
</div> </div>
<span v-else <span v-else class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{
class="detail-txt ellipsis-1"
:title="detailForm[subItem.name]">{{
detailForm[subItem.name] detailForm[subItem.name]
? detailForm[subItem.name] + (subItem.suffix || "") ? detailForm[subItem.name] + (subItem.suffix || "")
: "-" : "-"
}}</span> }}</span>
</el-form-item> </el-form-item>
</el-row> </el-row>
<template> <template>
<el-form-item label="其他信息">{{ <el-form-item label="其他信息">{{
detailForm.formDescribe detailForm.formDescribe
}}</el-form-item> }}</el-form-item>
</template> </template>
</el-form> </el-form>
</div> </div>
<div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']"> <div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']">
<p class="edit-title">发货信息</p> <p class="edit-title">发货信息</p>
<el-form label-width="100px" <el-form label-width="100px" :inline="true">
:inline="true">
<el-form-item label="物流信息"> <el-form-item label="物流信息">
<span>{{ detailForm.deliveryCompany }}&nbsp;&nbsp;&nbsp;{{ <span>{{ detailForm.deliveryCompany }}&nbsp;&nbsp;&nbsp;{{
detailForm.deliveryNumber detailForm.deliveryNumber
}}</span> }}</span>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div v-if="orderGoods.length" <div v-if="orderGoods.length" class="p-l-40">
class="p-l-40">
<table class="show-table"> <table class="show-table">
<tbody> <tbody>
<tr v-for="(item, index) in orderGoods" <tr v-for="(item, index) in orderGoods" :key="index" style="height: 70px">
:key="index" <td><img :src="item.goodsImage" class="img-60" /></td>
style="height: 70px">
<td><img :src="item.goodsImage"
class="img-60" /></td>
<td>{{ item.goodsName }}</td> <td>{{ item.goodsName }}</td>
<td>{{ item.specificationData }}</td> <td>{{ item.specificationData }}</td>
<td> <td>
{{ {{
item.activityPrice ? item.activityPrice : item.retailPrice item.activityPrice ? item.activityPrice : item.retailPrice
}}元 * {{ item.goodsNumber }} }}元 * {{ item.goodsNumber }}
</td> </td>
</tr> </tr>
<!-- <tr v-if="detailForm.subOrderCoupon" <!-- <tr v-if="detailForm.subOrderCoupon"
...@@ -74,31 +60,22 @@ ...@@ -74,31 +60,22 @@
</table> </table>
</div> </div>
</div> </div>
<div class="container edit-container" <div class="container edit-container" v-if="orderRefund">
v-if="orderRefund">
<p class="edit-title">售后信息</p> <p class="edit-title">售后信息</p>
<el-form label-width="100px" <el-form label-width="100px" :inline="true">
:inline="true"> <el-row v-for="(item, index) in afterInfoDataRow" :key="index">
<el-row v-for="(item, index) in afterInfoDataRow" <el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label">
:key="index"> <span class="detail-txt ellipsis-1" :title="orderRefund[subItem.name]">{{ orderRefund[subItem.name] || "-"
<el-form-item v-for="(subItem, subIndex) in item.rowList" }}</span>
:key="subIndex"
:label="subItem.label">
<span class="detail-txt ellipsis-1"
:title="orderRefund[subItem.name]">{{ orderRefund[subItem.name] || "-" }}</span>
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </el-form>
<div class="form-img"> <div class="form-img">
<el-form label-width="100px" <el-form label-width="100px" :inline="true">
:inline="true">
<el-form-item label="售后凭证"> <el-form-item label="售后凭证">
<div class="flex"> <div class="flex">
<span v-for="(item, index) in orderRefund.imgUrls" <span v-for="(item, index) in orderRefund.imgUrls" :key="index">
:key="index"> <el-image class="img-60 comment-img" :src="item" :preview-src-list="[item]"></el-image>
<el-image class="img-60 comment-img"
:src="item"
:preview-src-list="[item]"></el-image>
</span> </span>
</div> </div>
</el-form-item> </el-form-item>
...@@ -108,20 +85,14 @@ ...@@ -108,20 +85,14 @@
</div> </div>
<!-- <GLFooter> --> <!-- <GLFooter> -->
<div class="footer_box"> <div class="footer_box">
<el-button @click="handleCancel" <el-button @click="handleCancel" class="footer_btn" size="medium">取消</el-button>
class="footer_btn"
size="medium">取消</el-button>
</div> </div>
<!-- </GLFooter> --> <!-- </GLFooter> -->
</div> </div>
<el-dialog :visible="imgVisible" <el-dialog :visible="imgVisible" :before-close="handleEnlargeImg">
:before-close="handleEnlargeImg"> <img width="100%" :src="detailForm.payVoucher" alt="图片">
<img width="100%"
:src="detailForm.payVoucher"
alt="图片">
</el-dialog> </el-dialog>
</d2-container> </d2-container>
</template> </template>
<script> <script>
...@@ -133,7 +104,7 @@ import { ...@@ -133,7 +104,7 @@ import {
deliveryTypeList deliveryTypeList
} from "@/common/constants" } from "@/common/constants"
export default { export default {
name: "orderDetail", name: "OrderDetail",
data() { data() {
return { return {
size: "small", size: "small",
...@@ -208,7 +179,7 @@ export default { ...@@ -208,7 +179,7 @@ export default {
methods: { methods: {
async getCrowdfundingOrderConfig() { async getCrowdfundingOrderConfig() {
let detailFormData = [ const detailFormData = [
{ {
label: "订单编号", label: "订单编号",
name: "orderCode" name: "orderCode"
...@@ -264,7 +235,8 @@ export default { ...@@ -264,7 +235,8 @@ export default {
}, },
{ {
label: "支付定金", label: "支付定金",
name: "payPrice" // name: "payPrice"
name: "orderPrice"
}, },
{ {
label: "尾款", label: "尾款",
...@@ -289,7 +261,7 @@ export default { ...@@ -289,7 +261,7 @@ export default {
{ {
label: "退款备注", label: "退款备注",
name: 'refundRemark' name: 'refundRemark'
}, }
// { // {
// label: '备注', // label: '备注',
// name: 'orderRemark' // name: 'orderRemark'
...@@ -326,7 +298,6 @@ export default { ...@@ -326,7 +298,6 @@ export default {
} }
} }
} }
}, },
getInfo() { getInfo() {
orderManage orderManage
...@@ -364,7 +335,7 @@ export default { ...@@ -364,7 +335,7 @@ export default {
} }
this.detailForm.formDescribe = "-" this.detailForm.formDescribe = "-"
if (this.detailForm.subOrderCoupon) { if (this.detailForm.subOrderCoupon) {
let _subOrderCoupon = this.detailForm.subOrderCoupon const _subOrderCoupon = this.detailForm.subOrderCoupon
_subOrderCoupon.discountAmount = ( _subOrderCoupon.discountAmount = (
_subOrderCoupon.discountAmount / 100 _subOrderCoupon.discountAmount / 100
).toFixed(2) ).toFixed(2)
...@@ -448,18 +419,22 @@ export default { ...@@ -448,18 +419,22 @@ export default {
.order-detail .el-form--inline .el-form-item { .order-detail .el-form--inline .el-form-item {
margin: 0; margin: 0;
} }
.order-detail { .order-detail {
display: flex; display: flex;
flex-flow: column; flex-flow: column;
justify-content: center; justify-content: center;
.footer_box { .footer_box {
text-align: center; text-align: center;
} }
} }
.container { .container {
background: #fff; background: #fff;
padding: 20px; padding: 20px;
} }
.edit-title { .edit-title {
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
...@@ -469,26 +444,33 @@ export default { ...@@ -469,26 +444,33 @@ export default {
margin: 0 0; margin: 0 0;
padding: 0 0 0 20px; padding: 0 0 0 20px;
} }
.edit-container { .edit-container {
margin-bottom: 16px; margin-bottom: 16px;
} }
.order-detail .el-form--inline .el-form-item__content { .order-detail .el-form--inline .el-form-item__content {
height: 30px; height: 30px;
} }
.order-detail .form-img .el-form--inline .el-form-item__content { .order-detail .form-img .el-form--inline .el-form-item__content {
height: auto !important; height: auto !important;
} }
.order-detail .flex { .order-detail .flex {
justify-content: flex-start; justify-content: flex-start;
} }
.order-detail .row-item { .order-detail .row-item {
width: 33%; width: 33%;
} }
.order-detail .row-item .order-img { .order-detail .row-item .order-img {
width: 80px; width: 80px;
height: 80px; height: 80px;
cursor: pointer; cursor: pointer;
} }
.detail-txt { .detail-txt {
display: inline-block; display: inline-block;
width: 320px; width: 320px;
...@@ -497,13 +479,16 @@ export default { ...@@ -497,13 +479,16 @@ export default {
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.order-detail .show-table > tbody > tr > td {
.order-detail .show-table>tbody>tr>td {
text-align: center; text-align: center;
vertical-align: middle; vertical-align: middle;
} }
.order-detail .show-table td { .order-detail .show-table td {
padding-right: 20px; padding-right: 20px;
} }
.order-detail .comment-img { .order-detail .comment-img {
margin-top: 10px; margin-top: 10px;
margin-right: 20px; margin-right: 20px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!