Commit 85dbf603 by 李伟康

Merge branch 'SAAS+V5.8.0' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into SAAS+V5.8.0
2 parents 409c45c8 c9d4db90
...@@ -377,7 +377,6 @@ export default { ...@@ -377,7 +377,6 @@ export default {
}, },
mounted() { mounted() {
// console.log(this.scene)
this.$EventBus.$on("changeFieldIds", (obj) => { this.$EventBus.$on("changeFieldIds", (obj) => {
console.log(obj, "obj---"); console.log(obj, "obj---");
this.tmplSelectList = obj?.fieldIds || []; this.tmplSelectList = obj?.fieldIds || [];
...@@ -386,7 +385,7 @@ export default { ...@@ -386,7 +385,7 @@ export default {
}); });
this.getTmplList(); this.getTmplList();
if (this.scene == "2" || this.scene == "3" || this.scene == "4") { if (this.scene == "2" || this.scene == "3" || this.scene == "4") {
/** 新改逻辑:园区店选项只对精品升级/会员权益可见 */ /** 新改逻辑:园区店选项只对精品升级/会s员权益可见 */
this.yqCheckVisible = false; this.yqCheckVisible = false;
} }
// this.selectMerchant() // this.selectMerchant()
...@@ -453,7 +452,6 @@ export default { ...@@ -453,7 +452,6 @@ export default {
}, },
handleChangeMerchant(e) { handleChangeMerchant(e) {
console.log(e);
this.infoForm.shopMerchantId = ""; this.infoForm.shopMerchantId = "";
const params = { const params = {
currentPage: 1, currentPage: 1,
...@@ -470,7 +468,6 @@ export default { ...@@ -470,7 +468,6 @@ export default {
e === this.infoForm.merchantType e === this.infoForm.merchantType
? (this.infoForm.merchantType = "") ? (this.infoForm.merchantType = "")
: (this.infoForm.merchantType = e); : (this.infoForm.merchantType = e);
// console.log(this.infoForm.merchantType)
}, },
changeType(e) { changeType(e) {
...@@ -591,7 +588,6 @@ export default { ...@@ -591,7 +588,6 @@ export default {
}, },
dealFieldsJson(list, isFindTxt = false) { dealFieldsJson(list, isFindTxt = false) {
// console.log(list, 'list---')
this.tmplList = []; this.tmplList = [];
this.moduleSubList = []; this.moduleSubList = [];
this.selectedList = []; this.selectedList = [];
...@@ -626,7 +622,6 @@ export default { ...@@ -626,7 +622,6 @@ export default {
getParams() { getParams() {
let infoForm = deepClone(this.infoForm); let infoForm = deepClone(this.infoForm);
// console.log(infoForm)
let params = {}; let params = {};
let merchantList = []; let merchantList = [];
let obj; let obj;
...@@ -675,7 +670,6 @@ export default { ...@@ -675,7 +670,6 @@ export default {
let params = this.getParams(); let params = this.getParams();
params.orderCurrentPage = 1; params.orderCurrentPage = 1;
params.orderPageSize = 10; params.orderPageSize = 10;
console.log("params", params);
getBillTmplAdapter(params).then((res) => { getBillTmplAdapter(params).then((res) => {
console.log(res, "res"); console.log(res, "res");
this.$emit("handleBill", { billTmplInfo: res }); this.$emit("handleBill", { billTmplInfo: res });
......
...@@ -200,16 +200,14 @@ ...@@ -200,16 +200,14 @@
<td class="lb"> <td class="lb">
支付金额 支付金额
</td> </td>
<td <td :colspan="userInfo.beSuper ? (!isSubOrder ? 1 : 6) : ((detail.partnerDeductChargeFlag === 'Y') ? 1 : 6)">
:colspan="userInfo.beSuper ? (!isSubOrder ? 1 : 6) : ((detail.partnerDeductChargeFlag === 'Y') ? 1 : 6)">
{{ detail.paidMoney }} {{ detail.paidMoney }}
</td> </td>
<td v-show="((userInfo.beSuper && !isSubOrder) || (!userInfo.beSuper && (detail.partnerDeductChargeFlag === 'Y')))" <td v-show="((userInfo.beSuper && !isSubOrder) || (!userInfo.beSuper && (detail.partnerDeductChargeFlag === 'Y')))"
class="lb"> class="lb">
{{ ((userInfo.beSuper && !isSubOrder) || (!userInfo.beSuper && (detail.partnerDeductChargeFlag === 'Y'))) ? '入账手续费' : '' }} {{ ((userInfo.beSuper && !isSubOrder) || (!userInfo.beSuper && (detail.partnerDeductChargeFlag === 'Y'))) ? '入账手续费' : '' }}
</td> </td>
<td <td v-show="((userInfo.beSuper && !isSubOrder) || (!userInfo.beSuper && (detail.partnerDeductChargeFlag === 'Y')))">
v-show="((userInfo.beSuper && !isSubOrder) || (!userInfo.beSuper && (detail.partnerDeductChargeFlag === 'Y')))">
{{ ((userInfo.beSuper && !isSubOrder) || (!userInfo.beSuper && (detail.partnerDeductChargeFlag === 'Y'))) ? (detail.serviceCharge === '¥0' ? '-' : detail.serviceCharge) : '' }} {{ ((userInfo.beSuper && !isSubOrder) || (!userInfo.beSuper && (detail.partnerDeductChargeFlag === 'Y'))) ? (detail.serviceCharge === '¥0' ? '-' : detail.serviceCharge) : '' }}
</td> </td>
<td v-show="(userInfo.beSuper && !isSubOrder)" <td v-show="(userInfo.beSuper && !isSubOrder)"
...@@ -256,7 +254,7 @@ ...@@ -256,7 +254,7 @@
<td>导流方:{{ detail.shopMerchantName }}</td> <td>导流方:{{ detail.shopMerchantName }}</td>
<td>{{ detail.shopMerchantId }}</td> <td>{{ detail.shopMerchantId }}</td>
<td class="blue"> <td class="blue">
{{ detail.shopProfitPer ? (detail.shopProfitPer + '%') : '-' }} {{ detail.shopProfitPer ? (`${detail.shopProfitPer}%`) : '-' }}
</td> </td>
<td class="blue"> <td class="blue">
{{ detail.shopProfitMoney }} {{ detail.shopProfitMoney }}
...@@ -266,7 +264,7 @@ ...@@ -266,7 +264,7 @@
<td>园区店:{{ detail.yqMerchantName }}</td> <td>园区店:{{ detail.yqMerchantName }}</td>
<td>{{ detail.yqMerchantId }}</td> <td>{{ detail.yqMerchantId }}</td>
<td class="blue"> <td class="blue">
{{ detail.yqProfitPer ? (detail.yqProfitPer + '%') : '-' }} {{ detail.yqProfitPer ? (`${detail.yqProfitPer}%`) : '-' }}
</td> </td>
<td class="blue"> <td class="blue">
{{ detail.yqProfitMoney }} {{ detail.yqProfitMoney }}
...@@ -312,7 +310,7 @@ ...@@ -312,7 +310,7 @@
{{ detail.platformMerchantId && detail.platformMerchantId != '-1' ? detail.platformMerchantId : '-' }} {{ detail.platformMerchantId && detail.platformMerchantId != '-1' ? detail.platformMerchantId : '-' }}
</td> </td>
<td class="grey blue"> <td class="grey blue">
{{ detail.glProfitPer ? (detail.glProfitPer + '%') : '-' }} {{ detail.glProfitPer ? (`${detail.glProfitPer}%`) : '-' }}
</td> </td>
<td class="grey blue"> <td class="grey blue">
{{ detail.glProfitMoneyForAudit }} {{ detail.glProfitMoneyForAudit }}
...@@ -328,7 +326,7 @@ ...@@ -328,7 +326,7 @@
- -
</td> </td>
<td class="grey blue"> <td class="grey blue">
{{ detail.franchiseeProfitPer ? (detail.franchiseeProfitPer + '%') : '-' }} {{ detail.franchiseeProfitPer ? (`${detail.franchiseeProfitPer}%`) : '-' }}
</td> </td>
<td class="grey blue"> <td class="grey blue">
{{ detail.franchiseeProfitMoneyForAudit ? detail.franchiseeProfitMoneyForAudit : '-' }} {{ detail.franchiseeProfitMoneyForAudit ? detail.franchiseeProfitMoneyForAudit : '-' }}
...@@ -380,7 +378,7 @@ ...@@ -380,7 +378,7 @@
{{ detail.platformMerchantId && detail.platformMerchantId != '-1' ? detail.platformMerchantId : '-' }} {{ detail.platformMerchantId && detail.platformMerchantId != '-1' ? detail.platformMerchantId : '-' }}
</td> </td>
<td class="grey blue"> <td class="grey blue">
{{ detail.glProfitPer ? (detail.glProfitPer + '%') : '-' }} {{ detail.glProfitPer ? (`${detail.glProfitPer}%`) : '-' }}
</td> </td>
<td class="grey blue"> <td class="grey blue">
{{ detail.glProfitMoneyForAudit }} {{ detail.glProfitMoneyForAudit }}
...@@ -464,22 +462,23 @@ ...@@ -464,22 +462,23 @@
</template> </template>
<script> <script>
import { mapActions } from 'vuex' import { mapActions } from "vuex";
import { deepClone } from '@/common/util' import { partnerDeductChargeFlagObj, payType, shop4sDeductChargeFlagObj } from "@/common/constants";
import { shop4sDeductChargeFlagObj, partnerDeductChargeFlagObj, payType } from '@/common/constants' import { deepClone } from "@/common/util";
export default { export default {
name: 'FinanceDetail', name: "FinanceDetail",
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
isSubOrder: false, isSubOrder: false,
customerSexOpts: { customerSexOpts: {
1: '男', 1: "男",
2: '女' 2: "女",
}, },
sceneTypeOpts: { sceneTypeOpts: {
1: '预录升级', 1: "预录升级",
2: '现场升级' 2: "现场升级",
}, },
payTypeOpts: deepClone(payType), payTypeOpts: deepClone(payType),
...@@ -489,36 +488,36 @@ export default { ...@@ -489,36 +488,36 @@ export default {
// '3': 'POS机收款' // '3': 'POS机收款'
// }, // },
customerTypeOpts: { customerTypeOpts: {
1: '价格敏感型', 1: "价格敏感型",
2: '价格不敏感型' 2: "价格不敏感型",
}, },
detail: {}, detail: {},
shopProfitTypeOpts: { shopProfitTypeOpts: {
1: '毛利', 1: "毛利",
2: '收入' 2: "收入",
}, },
// deductChargeFlagObj: deductChargeFlagObj // deductChargeFlagObj: deductChargeFlagObj
shop4sDeductChargeFlagObj: shop4sDeductChargeFlagObj, shop4sDeductChargeFlagObj,
partnerDeductChargeFlagObj: partnerDeductChargeFlagObj partnerDeductChargeFlagObj,
} };
}, },
mounted() { mounted() {
this.detail = this.$route.params.detail this.detail = this.$route.params.detail;
this.isSubOrder = !this.detail.hasOwnProperty('subOrderProfitAllocations') this.isSubOrder = !this.detail.hasOwnProperty("subOrderProfitAllocations");
}, },
methods: { methods: {
...mapActions({ close: 'd2admin/page/close' }), ...mapActions({ close: "d2admin/page/close" }),
handleClose() { handleClose() {
this.close({ tagName: '/financeList' }) this.close({ tagName: "/financeList" });
this.$router.push({ name: 'financeList' }) this.$router.push({ name: "financeList" });
this.close({ tagName: '/financeDetail' }) this.close({ tagName: "/financeDetail" });
} },
} },
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.finnance_detail { .finnance_detail {
padding: 20px; padding: 20px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!