Commit 18f60968 by Jaxon

fix:解决合并分支造成的问题

1 parent 68e245c1
...@@ -23,30 +23,10 @@ let timeoutId; ...@@ -23,30 +23,10 @@ let timeoutId;
const IMG_URL2 = "https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/"; const IMG_URL2 = "https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/";
import carLifeApi from "../../../carEquityApi"; import carLifeApi from "../../../carEquityApi";
import commonApi from "~/api/api"; import commonApi from "~/api/api";
getMoreBtnAPI
} from '../../../api'
import {
checkDailyReport,
checkStudyTask,
checkAbnormalOrder
} from '~/store/ModalToQueueControl'
import data from '../constant/data'
import constantData from '../constant/data'
import api from '~/api/api'
import { ImgUrl as IMG_URL } from '~/config'
let timeoutId
const IMG_URL2 =
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
import carLifeApi from '../../../carEquityApi'
import commonApi from '~/api/api'
function getSceneNameForQuotationItem(item) { function getSceneNameForQuotationItem(item) {
if (!item) return '' if (!item) return "";
return ( return item.baseSceneName || item.sceneName || "";
item.baseSceneName ||
item.sceneName ||
''
)
} }
Component({ Component({
/** /**
...@@ -324,17 +304,17 @@ Component({ ...@@ -324,17 +304,17 @@ Component({
console.log(merchantBrand); console.log(merchantBrand);
// wx.$router.go(mode ? 'createOrderCarQuotationSimple' : 'createOrderCarQuotation') // wx.$router.go(mode ? 'createOrderCarQuotationSimple' : 'createOrderCarQuotation')
// if (merchantBrand?.findIndex((i) => ["鸿蒙智行"].includes(i.name)) != -1) { // if (merchantBrand?.findIndex((i) => ["鸿蒙智行"].includes(i.name)) != -1) {
// wx.$router.go("beforeCreate", { // wx.$router.go("beforeCreate", {
// mode, // mode,
// }); // });
// } else { // } else {
// this.setData({ // this.setData({
// showPromptDialog: true // showPromptDialog: true
// }) // })
// } // }
this.setData({ this.setData({
showPromptDialog: true showPromptDialog: true,
}) });
}, },
promptHandleConfirm(e) { promptHandleConfirm(e) {
let { payFlag, payType } = e.detail; let { payFlag, payType } = e.detail;
...@@ -445,13 +425,13 @@ Component({ ...@@ -445,13 +425,13 @@ Component({
console.log(tempList); console.log(tempList);
tempList = tempList.map((item) => { tempList = tempList.map((item) => {
const orderTypeMap = { const orderTypeMap = {
1: '正常订单', 1: "正常订单",
2: '打折策略', 2: "打折策略",
3: '买赠策略', 3: "买赠策略",
4: '冲量活动', 4: "冲量活动",
5: '组合付款', 5: "组合付款",
6: '内部结算' 6: "内部结算",
} };
// 1: '审批中', // 1: '审批中',
// 2: '审批中', // 2: '审批中',
// 3: '审核通过', // 3: '审核通过',
...@@ -480,8 +460,8 @@ Component({ ...@@ -480,8 +460,8 @@ Component({
// ); // );
item.payTime = item.payTime?.replace(/-/g, "/"); item.payTime = item.payTime?.replace(/-/g, "/");
} }
item.isTouchMove = false item.isTouchMove = false;
item.sceneNameForList = getSceneNameForQuotationItem(item) item.sceneNameForList = getSceneNameForQuotationItem(item);
// onlyRepeal 战败且为超管,或者是待报价、待支付的非融合都可撤销 // onlyRepeal 战败且为超管,或者是待报价、待支付的非融合都可撤销
item.onlyRepeal = (item.orderStatus == 2 || item.orderStatus == 0 || (item.orderStatus == -1 && wx.$hasPermission?.isSuper?.(this.data.userInfo))) && item.mode != 0; item.onlyRepeal = (item.orderStatus == 2 || item.orderStatus == 0 || (item.orderStatus == -1 && wx.$hasPermission?.isSuper?.(this.data.userInfo))) && item.mode != 0;
// 待上传的支持可撤销 // 待上传的支持可撤销
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!