|
@@ -0,0 +1,523 @@
|
|
|
+<template>
|
|
|
+ <div class="borderless">
|
|
|
+ <div class="customer-head">
|
|
|
+ <div class="customer-back">
|
|
|
+ <el-button
|
|
|
+ type="danger"
|
|
|
+ style="border: none;background: none;color: red"
|
|
|
+ icon="el-icon-arrow-left"
|
|
|
+ @click="backToList"
|
|
|
+ >返回列表
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin-top: 60px;margin-bottom:35px">
|
|
|
+ <containerTitle title="基础信息"></containerTitle>
|
|
|
+ <basic-container>
|
|
|
+ <avue-form ref="form" v-model="form" :option="option"></avue-form>
|
|
|
+ </basic-container>
|
|
|
+ <!-- 选择-->
|
|
|
+ <div class="tags" style="margin: 15px 0">
|
|
|
+ <ul>
|
|
|
+ <li @click="changeTags('收货人')"><span :class="{'active': tagsName == '收货人'}">收货人<div v-if="tagsName == '收货人'" class="active_bot el-button--primary"></div></span></li>
|
|
|
+ <li @click="changeTags('商品')"><span :class="{'active': tagsName == '商品'}">商品<div v-if="tagsName == '商品'" class="active_bot el-button--primary"></div></span></li>
|
|
|
+ <li @click="changeTags('日志')"><span :class="{'active': tagsName == '日志'}">日志<div v-if="tagsName == '日志'" class="active_bot el-button--primary"></div></span></li>
|
|
|
+ <li @click="changeTags('评价')"><span :class="{'active': tagsName == '评价'}">评价<div v-if="tagsName == '评价'" class="active_bot el-button--primary"></div></span></li>
|
|
|
+ <li @click="changeTags('支付')"><span :class="{'active': tagsName == '支付'}">支付<div v-if="tagsName == '支付'" class="active_bot el-button--primary"></div></span></li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ <basic-container>
|
|
|
+ <avue-crud
|
|
|
+ ref="consignee"
|
|
|
+ :data="consigneeList"
|
|
|
+ v-if="tagsName == '收货人'"
|
|
|
+ :option="consigneeOption"
|
|
|
+ ></avue-crud>
|
|
|
+ <avue-crud
|
|
|
+ ref="consignee"
|
|
|
+ :data="goodsList"
|
|
|
+ v-if="tagsName == '商品'"
|
|
|
+ :option="goodsOption"
|
|
|
+ ></avue-crud>
|
|
|
+ <avue-crud
|
|
|
+ ref="consignee"
|
|
|
+ :data="journalList"
|
|
|
+ v-if="tagsName == '日志'"
|
|
|
+ :option="journalOption"
|
|
|
+ ></avue-crud>
|
|
|
+ <avue-crud
|
|
|
+ ref="consignee"
|
|
|
+ :data="evaluateList"
|
|
|
+ v-if="tagsName == '评价'"
|
|
|
+ :option="evaluateOption"
|
|
|
+ ></avue-crud>
|
|
|
+ <avue-crud
|
|
|
+ ref="consignee"
|
|
|
+ :data="payList"
|
|
|
+ v-if="tagsName == '支付'"
|
|
|
+ :option="payOption"
|
|
|
+ ></avue-crud>
|
|
|
+ </basic-container>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import consigneeOption from './config/consigneeOption.json'
|
|
|
+import goodsOption from './config/goodsOption.json'
|
|
|
+import journalOption from './config/journalOption.json'
|
|
|
+import evaluateOption from './config/evaluateOption.json'
|
|
|
+import payOption from './config/payOption.json'
|
|
|
+
|
|
|
+export default {
|
|
|
+ name: "orderDetail",
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ form: {},
|
|
|
+ option: {
|
|
|
+ menuBtn: false,
|
|
|
+ labelWidth: 100,
|
|
|
+ column: [
|
|
|
+ {
|
|
|
+ label: "下单人",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "订单编号",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "客户名称",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "下单人openid",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "收货人",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "收货人手机号",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "快递公司",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "快递单号",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "支付编号",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "支付方式",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "支付渠道",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "支付状态",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "支付方式",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "订单总金额",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "订单数量",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "订单方式",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "订单信息",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "订单类型",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "商品数量",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "实际付款金额",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "来源",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "退款状态",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "退款原因",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "退款说明",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "拒绝退款原因",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },{
|
|
|
+ label: "状态",
|
|
|
+ prop: "corpId",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ label: "备注",
|
|
|
+ prop: "remark",
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ span: 6,
|
|
|
+ slot: false
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ tagsName: '收货人',
|
|
|
+ consigneeList:[],
|
|
|
+ goodsList: [],
|
|
|
+ journalList: [],
|
|
|
+ evaluateList: [],
|
|
|
+ payList: [],
|
|
|
+ consigneeOption: consigneeOption,
|
|
|
+ goodsOption: goodsOption,
|
|
|
+ journalOption: journalOption,
|
|
|
+ evaluateOption: evaluateOption,
|
|
|
+ payOption: payOption,
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ // 选择卡切换
|
|
|
+ changeTags(name) {
|
|
|
+ if (this.tagsName == name) return
|
|
|
+ this.tagsName = name
|
|
|
+ },
|
|
|
+ backToList() {
|
|
|
+ this.$router.$avueRouter.closeTag("/orderManagement/orderDetail/index");
|
|
|
+ this.$router.go(-1)
|
|
|
+ },
|
|
|
+ },
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.customer-head {
|
|
|
+ position: fixed;
|
|
|
+ top: 105px;
|
|
|
+ width: 100%;
|
|
|
+ margin-left: -10px;
|
|
|
+ height: 62px;
|
|
|
+ background: #ffffff;
|
|
|
+ box-shadow: 0 4px 12px 0px rgba(232, 232, 235, 1);
|
|
|
+ z-index: 999;
|
|
|
+}
|
|
|
+
|
|
|
+.customer-back {
|
|
|
+ cursor: pointer;
|
|
|
+ line-height: 62px;
|
|
|
+ font-size: 16px;
|
|
|
+ color: #323233;
|
|
|
+ font-weight: 400;
|
|
|
+}
|
|
|
+
|
|
|
+.back-icon {
|
|
|
+ line-height: 64px;
|
|
|
+ font-size: 20px;
|
|
|
+ margin-right: 8px;
|
|
|
+}
|
|
|
+
|
|
|
+.copy-customer-btn {
|
|
|
+ position: fixed;
|
|
|
+ right: 140px;
|
|
|
+ top: 115px;
|
|
|
+}
|
|
|
+
|
|
|
+.add-customer-btn {
|
|
|
+ position: fixed;
|
|
|
+ right: 36px;
|
|
|
+ top: 115px;
|
|
|
+}
|
|
|
+::v-deep .el-form-item {
|
|
|
+ margin-bottom: 8px;
|
|
|
+}
|
|
|
+::v-deep .el-form-item__error {
|
|
|
+ display: none;
|
|
|
+}
|
|
|
+::v-deep .select-component {
|
|
|
+ display: flex;
|
|
|
+}
|
|
|
+.tags ul {
|
|
|
+ margin: 0;
|
|
|
+ padding: 0 10px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-start;
|
|
|
+ li {
|
|
|
+ list-style: none;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #999;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ position: relative;
|
|
|
+ cursor: pointer;
|
|
|
+ margin-left: 30px;
|
|
|
+ .orderNum {
|
|
|
+ display: inline-block;
|
|
|
+ font-size: 14px;
|
|
|
+ margin-left: 5px;
|
|
|
+ padding: 0 5px;
|
|
|
+ background-color: #ff6a6c;
|
|
|
+ line-height: 15px;
|
|
|
+ text-align: center;
|
|
|
+ border-radius: 10px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+.active {
|
|
|
+ font-size: 17px;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #000;
|
|
|
+ position: relative;
|
|
|
+}
|
|
|
+.active_bot {
|
|
|
+ position: absolute;
|
|
|
+ //background-color: #a4da89;
|
|
|
+ opacity: 0.7;
|
|
|
+ width: 100%;
|
|
|
+ height: 12px;
|
|
|
+ bottom: -4px;
|
|
|
+}
|
|
|
+</style>
|