|
|
@@ -8,118 +8,154 @@
|
|
|
:appendToBody="appendToBody"
|
|
|
:isShowFooter="false"
|
|
|
>
|
|
|
- <div class="head">
|
|
|
- 订单号:<span>{{ detailInfo.orderSn }}</span> 退款状态:<span>{{
|
|
|
- refundStatus(detailInfo.refundStatus)
|
|
|
- }}</span>
|
|
|
- <i
|
|
|
- v-if="detailInfo.orderFrom === 3 || detailInfo.orderFrom === 4"
|
|
|
- style="font-style: normal"
|
|
|
- >审核状态:<span>{{ checkStatus(detailInfo.checkStatus) }}</span></i
|
|
|
- >
|
|
|
- <i
|
|
|
- v-if="
|
|
|
- ShowStatus == 2 &&
|
|
|
- detailInfo.checkStatus === 0 &&
|
|
|
- (detailInfo.orderFrom == 3 || detailInfo.orderFrom == 4)
|
|
|
- "
|
|
|
- style="float: right"
|
|
|
- >
|
|
|
- <el-button type="success" @click="success"
|
|
|
- >订单审核通过</el-button
|
|
|
+ <el-main
|
|
|
+ style="padding: 0px"
|
|
|
+ v-loading="loading"
|
|
|
+ element-loading-text="正在更新审核状态,请稍等"
|
|
|
+ >
|
|
|
+ <div class="head">
|
|
|
+ 订单号:<span>{{ detailInfo.orderSn }}</span>
|
|
|
+ <!-- 退款状态:<span>{{
|
|
|
+ refundStatus(detailInfo.refundStatus)
|
|
|
+ }}</span> -->
|
|
|
+ <i
|
|
|
+ v-if="detailInfo.orderFrom === 3 || detailInfo.orderFrom === 4"
|
|
|
+ style="font-style: normal"
|
|
|
+ >审核状态:<span>{{ checkStatus(detailInfo.checkStatus) }}</span></i
|
|
|
>
|
|
|
- <el-button type="danger" @click="error"
|
|
|
- >订单审核不通过</el-button
|
|
|
+ <i
|
|
|
+ v-if="
|
|
|
+ ShowStatus == 2 &&
|
|
|
+ detailInfo.checkStatus === 0 &&
|
|
|
+ (detailInfo.orderFrom == 3 || detailInfo.orderFrom == 4)
|
|
|
+ "
|
|
|
+ style="float: right"
|
|
|
>
|
|
|
- </i>
|
|
|
- </div>
|
|
|
- <div class="mian">
|
|
|
- <el-descriptions class="margin-top" :column="3" border>
|
|
|
- <el-descriptions-item
|
|
|
- :label="desc.label"
|
|
|
- v-for="(desc, index) in descList"
|
|
|
- :key="index"
|
|
|
- >
|
|
|
- <div v-if="desc.type">
|
|
|
- <el-link
|
|
|
- :underline="false"
|
|
|
- v-if="desc.type === 'dowm'"
|
|
|
- :href="detailInfo['link']"
|
|
|
- target="_blank"
|
|
|
- ><span v-if="detailInfo['link']">资料下载</span></el-link
|
|
|
- >
|
|
|
- <div v-if="desc.type === 'image'">
|
|
|
- <el-image
|
|
|
- v-if="detailInfo[desc.key] && detailInfo[desc.key].length > 0"
|
|
|
- style="width: 40px; height: 20px; margin-right: 10px"
|
|
|
- :src="detailInfo[desc.key][0]"
|
|
|
- :preview-src-list="detailInfo[desc.key]"
|
|
|
+ <el-button type="success" @click="success">审核通过</el-button>
|
|
|
+ <el-button type="danger" @click="error">审核不通过</el-button>
|
|
|
+ </i>
|
|
|
+ </div>
|
|
|
+ <div class="mian">
|
|
|
+ <el-descriptions class="margin-top" :column="3" border>
|
|
|
+ <el-descriptions-item
|
|
|
+ :label="desc.label"
|
|
|
+ v-for="(desc, index) in descList"
|
|
|
+ :key="index"
|
|
|
+ >
|
|
|
+ <div v-if="desc.type">
|
|
|
+ <el-link
|
|
|
+ :underline="false"
|
|
|
+ v-if="desc.type === 'dowm'"
|
|
|
+ :href="detailInfo['link']"
|
|
|
+ target="_blank"
|
|
|
+ ><span v-if="detailInfo['link']">资料下载</span></el-link
|
|
|
>
|
|
|
- </el-image>
|
|
|
- <span>{{
|
|
|
- detailInfo[desc.key] && detailInfo[desc.key].length > 0
|
|
|
- ? "共" + detailInfo[desc.key].length + "张"
|
|
|
- : "暂无转账凭证"
|
|
|
- }}</span>
|
|
|
- </div>
|
|
|
- <div v-if="desc.type === 'pretax'">
|
|
|
- <span style="margin-right: 20px"
|
|
|
- >税前佣金:{{
|
|
|
- $methodsTools.decimalPoint(detailInfo["pretaxBrokerage"])
|
|
|
- }}</span
|
|
|
- ><span>税占比:{{ detailInfo["pretaxStr"] }}</span>
|
|
|
- </div>
|
|
|
- <div v-if="desc.type === 'time'">
|
|
|
- {{ $methodsTools.onlyForma(detailInfo[desc.key]) }}
|
|
|
- </div>
|
|
|
- <div v-if="desc.type === 'options'">
|
|
|
- <template v-for="(i, k) in desc.options">
|
|
|
- <span v-if="i.value === detailInfo[desc.key]">
|
|
|
- {{ i.label }}
|
|
|
+ <span v-if="desc.type === 'Model'">
|
|
|
+ <span v-if="detailInfo['divideModel'] == 1"
|
|
|
+ >{{ detailInfo["divideCompanyMoney"] | formatPrice }}
|
|
|
</span>
|
|
|
- </template>
|
|
|
- </div>
|
|
|
- <div v-if="desc.type === 'money'">
|
|
|
- {{ $methodsTools.decimalPoint(detailInfo[desc.key]) }}
|
|
|
- <span
|
|
|
- v-if="desc.key === 'orderProfit'"
|
|
|
- :style="{
|
|
|
- color: detailInfo[desc.key] > 0 ? '#409eff' : '#f56c6c',
|
|
|
- }"
|
|
|
- >【{{ detailInfo[desc.key] > 0 ? "盈" : "亏" }}】</span
|
|
|
- >
|
|
|
- <span
|
|
|
- v-if="desc.key === 'orderUncollected'"
|
|
|
- :style="{
|
|
|
- color: detailInfo[desc.key] > 0 ? '#f56c6c' : '#409eff',
|
|
|
- }"
|
|
|
- >({{
|
|
|
- detailInfo[desc.key] > 0 ? "未结清" : "已结清"
|
|
|
- }})</span
|
|
|
+ <span v-else-if="detailInfo['divideModel'] == 2"
|
|
|
+ >{{ detailInfo["divideSellerMoney"] | formatPrice }}
|
|
|
+ </span></span
|
|
|
>
|
|
|
+ <div v-if="desc.type === 'image'">
|
|
|
+ <el-image
|
|
|
+ v-if="
|
|
|
+ detailInfo[desc.key] && detailInfo[desc.key].length > 0
|
|
|
+ "
|
|
|
+ style="width: 40px; height: 20px; margin-right: 10px"
|
|
|
+ :src="detailInfo[desc.key][0]"
|
|
|
+ :preview-src-list="detailInfo[desc.key]"
|
|
|
+ >
|
|
|
+ </el-image>
|
|
|
+ <span>{{
|
|
|
+ detailInfo[desc.key] && detailInfo[desc.key].length > 0
|
|
|
+ ? "共" + detailInfo[desc.key].length + "张"
|
|
|
+ : "暂无转账凭证"
|
|
|
+ }}</span>
|
|
|
+ </div>
|
|
|
+ <div v-if="desc.type == 'brokerageType'">
|
|
|
+ <div v-if="detailInfo['brokerageType'] == 1">
|
|
|
+ <span v-if="!detailInfo['brokerageStr']">微信</span>
|
|
|
+ <el-image
|
|
|
+ v-else
|
|
|
+ style="width: 40px; height: 20px; margin-right: 10px"
|
|
|
+ :src="detailInfo['brokerageStr']"
|
|
|
+ :preview-src-list="[detailInfo['brokerageStr']]"
|
|
|
+ >
|
|
|
+ </el-image>
|
|
|
+ </div>
|
|
|
+ <span v-if="detailInfo['brokerageType'] == 4">现金</span>
|
|
|
+ <span v-if="detailInfo['brokerageType'] == 5">{{
|
|
|
+ detailInfo["brokerageStr"]
|
|
|
+ }}</span>
|
|
|
+ </div>
|
|
|
+ <div v-if="desc.type === 'pretax'">
|
|
|
+ <span style="margin-right: 20px"
|
|
|
+ >税前奖金:{{
|
|
|
+ detailInfo["pretaxBrokerage"] | formatPrice
|
|
|
+ }}</span
|
|
|
+ ><span>税占比:{{ detailInfo["pretaxStr"] }}</span>
|
|
|
+ </div>
|
|
|
+ <div v-if="desc.type === 'time'">
|
|
|
+ {{ $methodsTools.onlyForma(detailInfo[desc.key]) }}
|
|
|
+ </div>
|
|
|
+ <div v-if="desc.type === 'options'">
|
|
|
+ <template v-for="(i, k) in desc.options">
|
|
|
+ <span :key="k" v-if="i.value === detailInfo[desc.key]">
|
|
|
+ {{ i.label }}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ <div v-if="desc.type == 'busOptions'">
|
|
|
+ <div
|
|
|
+ v-for="(items, indexs) in detailInfo[desc.key]"
|
|
|
+ :key="indexs"
|
|
|
+ >
|
|
|
+ {{ items }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div v-if="desc.type === 'money'">
|
|
|
+ {{ detailInfo[desc.key] | formatPrice }}
|
|
|
+ <span
|
|
|
+ v-if="desc.key === 'orderProfit'"
|
|
|
+ :style="{
|
|
|
+ color: detailInfo[desc.key] > 0 ? '#409eff' : '#f56c6c',
|
|
|
+ }"
|
|
|
+ >【{{ detailInfo[desc.key] > 0 ? "盈" : "亏" }}】</span
|
|
|
+ >
|
|
|
+ <span
|
|
|
+ v-if="desc.key === 'orderUncollected'"
|
|
|
+ :style="{
|
|
|
+ color: detailInfo[desc.key] > 0 ? '#f56c6c' : '#409eff',
|
|
|
+ }"
|
|
|
+ >({{
|
|
|
+ detailInfo[desc.key] > 0 ? "未结清" : "已结清"
|
|
|
+ }})</span
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <div v-if="desc.type === 'reduce'">
|
|
|
+ {{
|
|
|
+ (detailInfo.orderPrice - detailInfo.pretaxBrokerage)
|
|
|
+ | formatPrice
|
|
|
+ }}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div v-if="desc.type === 'reduce'">
|
|
|
- {{
|
|
|
- $methodsTools.decimalPoint(
|
|
|
- detailInfo.orderPrice - detailInfo.pretaxBrokerage
|
|
|
- )
|
|
|
- }}
|
|
|
+ <div v-else>
|
|
|
+ {{ detailInfo[desc.key] }}
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div v-else>
|
|
|
- {{ detailInfo[desc.key] }}
|
|
|
- </div>
|
|
|
- </el-descriptions-item>
|
|
|
- </el-descriptions>
|
|
|
- </div>
|
|
|
- <student-details
|
|
|
- v-if="isShow && detailInfo.orderFrom"
|
|
|
- :orderSn="orderSn"
|
|
|
- :orderFrom="detailInfo.orderFrom"
|
|
|
- :ShowStatus="ShowStatus"
|
|
|
- :checkStatus="detailInfo.checkStatus"
|
|
|
- @parentsSearch="parentsSearch"
|
|
|
- ></student-details>
|
|
|
+ </el-descriptions-item>
|
|
|
+ </el-descriptions>
|
|
|
+ </div>
|
|
|
+ <student-details
|
|
|
+ v-if="detailInfo.orderFrom"
|
|
|
+ :orderSn="orderSn"
|
|
|
+ :orderFrom="detailInfo.orderFrom"
|
|
|
+ :ShowStatus="ShowStatus"
|
|
|
+ :checkStatus="detailInfo.checkStatus"
|
|
|
+ @parentsSearch="parentsSearch"
|
|
|
+ ></student-details>
|
|
|
+ </el-main>
|
|
|
</BaseDialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -147,6 +183,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ loading: true,
|
|
|
descList: [
|
|
|
{ label: "机构名称", key: "tenantName" },
|
|
|
{ label: "业务员", key: "createUsername" },
|
|
|
@@ -154,14 +191,14 @@ export default {
|
|
|
{ label: "下单客户", key: "purchaseOrg" },
|
|
|
{ label: "订单来源", key: "orderOrg" },
|
|
|
{ label: "业务归属", key: "schemeName" },
|
|
|
- { label: "业务类型", key: "businessNames" },
|
|
|
+ { label: "业务类型", key: "businessNames", type: "busOptions" },
|
|
|
{ label: "订单日期", key: "buyTime", type: "time" },
|
|
|
{ label: "订单金额", key: "orderPrice", type: "money" },
|
|
|
{ label: "已收账款", key: "orderReceived", type: "money" },
|
|
|
{ label: "未收账款", key: "orderUncollected", type: "money" },
|
|
|
{ label: "申请退款", key: "orderRefund", type: "money" },
|
|
|
{ label: "已退账款", key: "orderRefunded", type: "money" },
|
|
|
- { label: "修改补款", key: "", type: "money" },
|
|
|
+ { label: "修改补款", key: "repairMoneyTotal", type: "money" },
|
|
|
{ label: "实际账款", key: "orderPractical", type: "money" },
|
|
|
{ label: "成本", key: "orderCost", type: "money" },
|
|
|
{ label: "盈亏", key: "orderProfit", type: "money" },
|
|
|
@@ -174,13 +211,54 @@ export default {
|
|
|
{ label: "未完单", value: 0 },
|
|
|
],
|
|
|
},
|
|
|
- { label: "佣金", key: "pretax", type: "pretax" },
|
|
|
- { label: "收佣方式", key: "", type: "" },
|
|
|
- { label: "佣金状态", key: "", type: "" },
|
|
|
- { label: "分成金额", key: "", type: "" },
|
|
|
- { label: "分成审核", key: "", type: "" },
|
|
|
- { label: "发票金额", key: "", type: "money" },
|
|
|
- { label: "发票申请时间", key: "", type: "time" },
|
|
|
+ { label: "奖金", key: "pretax", type: "pretax" },
|
|
|
+ {
|
|
|
+ label: "收奖方式",
|
|
|
+ key: "brokerageType",
|
|
|
+ type: "brokerageType",
|
|
|
+ options: [
|
|
|
+ { label: "微信", value: 1 },
|
|
|
+ { label: "现金", value: 4 },
|
|
|
+ { label: "网银", value: 5 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "奖金状态",
|
|
|
+ key: "brokerageCheck",
|
|
|
+ type: "options",
|
|
|
+ options: [
|
|
|
+ { label: "待审核", value: 0 },
|
|
|
+ { label: "已通过", value: 1 },
|
|
|
+ { label: "未通过", value: -1 },
|
|
|
+ { label: "待支付", value: 2 },
|
|
|
+ { label: "已支付", value: 3 },
|
|
|
+ { label: "审核中", value: 4 },
|
|
|
+ { label: "支付失败", value: 5 },
|
|
|
+ { label: "支付中", value: 6 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "分成金额",
|
|
|
+ key: "divideModel",
|
|
|
+ type: "Model",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "分成审核",
|
|
|
+ key: "divideStatus",
|
|
|
+ type: "options",
|
|
|
+ options: [
|
|
|
+ { label: "正常", value: 1 },
|
|
|
+ { label: "待审核", value: 2 },
|
|
|
+ { label: "审核中", value: 3 },
|
|
|
+ { label: "审核不通过", value: 4 },
|
|
|
+ { label: "审核通过待支付", value: 5 },
|
|
|
+ { label: "支付中", value: 6 },
|
|
|
+ { label: "已支付", value: 7 },
|
|
|
+ { label: "支付失败", value: 8 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ { label: "发票金额", key: "invoiceMoney", type: "money" },
|
|
|
+ { label: "发票申请时间", key: "invoiceDate" },
|
|
|
{
|
|
|
label: "发票状态",
|
|
|
key: "invoiceStatus",
|
|
|
@@ -194,7 +272,7 @@ export default {
|
|
|
label: "已开票",
|
|
|
value: 1,
|
|
|
},
|
|
|
- ],
|
|
|
+ ],
|
|
|
},
|
|
|
{ label: "转账凭证", key: "attachmentList", type: "image" },
|
|
|
{ label: "附件", type: "dowm" },
|
|
|
@@ -263,6 +341,11 @@ export default {
|
|
|
return str;
|
|
|
},
|
|
|
init() {
|
|
|
+ this.detailInfo = {
|
|
|
+ orderFrom: null,
|
|
|
+ attachmentList: [],
|
|
|
+ };
|
|
|
+ this.loading = false;
|
|
|
this.getOrderDetail();
|
|
|
},
|
|
|
getOrderDetail() {
|
|
|
@@ -301,6 +384,7 @@ export default {
|
|
|
type: "warning",
|
|
|
})
|
|
|
.then(() => {
|
|
|
+ this.loading = true;
|
|
|
this.$api
|
|
|
.systemtopordercheck({
|
|
|
checkStatus: 1,
|
|
|
@@ -309,6 +393,9 @@ export default {
|
|
|
.then((res) => {
|
|
|
this.$message.success("操作成功");
|
|
|
this.submitForm();
|
|
|
+ })
|
|
|
+ .finally((e) => {
|
|
|
+ this.loading = false;
|
|
|
});
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
@@ -320,6 +407,7 @@ export default {
|
|
|
inputPlaceholder: "输入不通过原因",
|
|
|
})
|
|
|
.then(({ value }) => {
|
|
|
+ this.loading = true;
|
|
|
this.$api
|
|
|
.systemtopordercheck({
|
|
|
checkReason: value || "",
|
|
|
@@ -329,6 +417,9 @@ export default {
|
|
|
.then((res) => {
|
|
|
this.$message.success("操作成功");
|
|
|
this.submitForm();
|
|
|
+ })
|
|
|
+ .finally((e) => {
|
|
|
+ this.loading = false;
|
|
|
});
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
@@ -356,12 +447,12 @@ export default {
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
// .orderDetail {
|
|
|
- .head {
|
|
|
- margin-bottom: 20px;
|
|
|
- span {
|
|
|
- padding-right: 20px;
|
|
|
- color: #409eff;
|
|
|
- }
|
|
|
+.head {
|
|
|
+ margin-bottom: 20px;
|
|
|
+ span {
|
|
|
+ padding-right: 20px;
|
|
|
+ color: #409eff;
|
|
|
}
|
|
|
+}
|
|
|
// }
|
|
|
</style>
|