Commit 09d88318 by 张立顺

fix bug修复

1 parent 73db2068
......@@ -75,7 +75,7 @@ Page({
async navigator(e) {
// 校验是否填写昨日日报
let staffCheck = await checkDailyReport(true);
if (staffCheck) return true;
if (staffCheck) return false;;
console.log(e);
let { outTradeNo } = e.detail;
let { mode } = this.data;
......@@ -293,7 +293,7 @@ Page({
if (!userInfo.isSuper && userInfo.loginRole != 3) {
this.get4SStoreList();
} else {
this.setData({showPage: true})
this.setData({ showPage: true })
}
this.getIsBusinessSchoolEnableCurrentUser();
// this.test()
......
......@@ -239,7 +239,7 @@ Component({
async handleRecordOrder(e) {
// 校验是否填写昨日日报
let staffCheck = await checkDailyReport(true);
if (staffCheck) return true;
if (staffCheck) return false;;
let {
target
} = e.currentTarget.dataset
......
......@@ -265,7 +265,7 @@ Page({
// debugger
let { orderInfo, outTradeNo, confirmStatus, userInfo } = this.data;
let staffCheck = await this.staffDailyReportMerchantValid(userInfo);
if (staffCheck) return true;
if (staffCheck) return false;;
// 先校验
let status = this.selectComponent(`#FirstStep`).handleConfirm();
......
......@@ -219,7 +219,7 @@ Component({
async handleClickOrderBtn(e) {
// 校验是否填写昨日日报
let staffCheck = await checkDailyReport(true);
if (staffCheck) return true;
if (staffCheck) return false;;
// console.log(e)
// let { target } = e.target.dataset
let { mode, merchantBrand } = this.data;
......@@ -451,7 +451,7 @@ Component({
// schemeConfirmation
case "0":
let staffCheck = await checkDailyReport(true);
if (staffCheck) return true;
if (staffCheck) return false;;
wx.$router.go(
target.mode != 0
? "createOrderCarQuotationSimple"
......@@ -468,7 +468,7 @@ Component({
break;
case "2":
staffCheck = await checkDailyReport(true);
if (staffCheck) return true;
if (staffCheck) return false;;
if (type == "pay") {
// 去支付
wx.$router.go("CarQuotationPay", {
......@@ -489,7 +489,7 @@ Component({
// apiName: 'handler'
// })
staffCheck = await checkDailyReport(true);
if (staffCheck) return true;
if (staffCheck) return false;;
if (type == "handle") {
// 去处理
wx.$router.go("serviceInfo", {
......@@ -509,7 +509,7 @@ Component({
// id: target.id
// })
staffCheck = await checkDailyReport(true);
if (staffCheck) return true;
if (staffCheck) return false;;
wx.$router.go(
target.mode != 0
? "createOrderCarQuotationSimple"
......@@ -521,7 +521,7 @@ Component({
break;
case "5":
staffCheck = await checkDailyReport(true);
if (staffCheck) return true;
if (staffCheck) return false;;
wx.$router.go("serviceInfo", {
orderId: target.orderId,
apiName: "handler",
......@@ -626,7 +626,7 @@ Component({
async touchstart(e) {
// 校验是否填写昨日日报
let staffCheck = await checkDailyReport(true);
if (staffCheck) return true;
if (staffCheck) return false;;
let { ind } = e.currentTarget.dataset;
//开始触摸时 重置所有删除
this.data.list[ind].forEach((v) => {
......
......@@ -96,7 +96,7 @@ Component({
async jump() {
// 校验是否填写昨日日报
let staffCheck = await checkDailyReport();
if (staffCheck) return true;
if (staffCheck) return false;;
const { data } = this.data;
let params = {};
if (data.boutiqueOrders && data.boutiqueOrders.length)
......
......@@ -53,7 +53,7 @@ Component({
async jump() {
// 校验是否填写昨日日报
let staffCheck = await checkDailyReport(true);
if (staffCheck) return true;
if (staffCheck) return false;;
const {
data
} = this.data
......
......@@ -952,7 +952,7 @@ Component({
async checkDaily() {
// 校验是否填写昨日日报
let staffCheck = await checkDailyReport(true);
if (staffCheck) return true;
if (staffCheck) return false;;
},
// Set the desired delay (in milliseconds)
// navGo(e) {
......
......@@ -180,7 +180,7 @@ Page({
if (userInfo.merchantType && !userInfo.isSuper && isMake) {
// 校验是否填写昨日日报
let staffCheck = await checkDailyReport();
if (staffCheck) return true;
if (staffCheck) return false;;
// 是微信支付直接跳转确认页面
if (userType == 2 && item?.selectPayType == 1) {
wx.$router.go("tabWorkOrder.confirmOrder", item);
......@@ -204,7 +204,7 @@ Page({
async scan() {
// 校验是否填写昨日日报
let staffCheck = await checkDailyReport();
if (staffCheck) return true;
if (staffCheck) return false;;
wx.scanCode({
success(res) {
let { result } = res;
......@@ -318,7 +318,7 @@ Page({
async touchstart(e) {
// 校验是否填写昨日日报
let staffCheck = await checkDailyReport();
if (staffCheck) return true;
if (staffCheck) return false;;
// console.log(e)
// 权限控制 员工不能删除 和没选具体门店的管理员也不能
......
......@@ -356,7 +356,7 @@ Page({
async orderSubmit() {
// 校验是否填写昨日日报
let staffCheck = await checkDailyReport();
if (staffCheck) return true;
if (staffCheck) return false;;
let {
detail
} = this.data
......
......@@ -91,7 +91,7 @@ Component({
// 复制单号
copyOutTradeNo(e) {
let { item } = e.currentTarget.dataset
wx.$util.setCopyData(`${item?.outTradeNo}`)
wx.$util.setCopyData(`${item?.tradeNo}`)
},
restPageNum() {
this.setData({
......@@ -142,8 +142,8 @@ Component({
thisPage.setData({
showOrderpop: false
})
let { accountDate, outTradeNo, totalFee, filmOrder,tradeNo } = arr[0]
arr?.length && this.triggerEvent('success', { accountDate, outTradeNo, totalFee,tradeNo, filmOrder })
let { accountDate, outTradeNo, totalFee, filmOrder, tradeNo } = arr[0]
arr?.length && this.triggerEvent('success', { accountDate, outTradeNo, totalFee, tradeNo, filmOrder })
},
cancel() {
let thisPage = wx.$router.getPageInstance()
......
......@@ -224,7 +224,7 @@ Page({
async navigator(e) {
// 校验是否填写昨日日报
let staffCheck = await checkDailyReport();
if (staffCheck) return true;
if (staffCheck) return false;;
let { outTradeNo } = e.detail;
this.closeSwitchPopup();
wx.$storage.set("outTradeNo", outTradeNo);
......@@ -452,7 +452,7 @@ Page({
if (item.type == "scanCode") {
// 校验是否填写昨日日报
let staffCheck = await checkDailyReport();
if (staffCheck) return true;
if (staffCheck) return false;;
wx.scanCode({
success(res) {
let { result } = res;
......@@ -472,9 +472,13 @@ Page({
});
} else {
console.log(item);
// 校验是否填写昨日日报
let staffCheck = await checkDailyReport();
if (staffCheck) return true;
// 客户线索和培训资料无需校验
if (!item.noCheckdailyReport) {
// 校验是否填写昨日日报
let staffCheck = await checkDailyReport();
if (staffCheck) return false;;
}
console.log(item.url, 'item.url');
wx.$router.go(item.url);
}
......@@ -970,6 +974,7 @@ Page({
recordId: 11,
icon: "customer_clue",
tipsNum: 0,
noCheckdailyReport: true
});
this.getCustomerClueRemind();
}
......@@ -1155,6 +1160,7 @@ Page({
url: "packageEquity.trainingMaterials",
recordId: 14,
icon: "peixun_icon",
noCheckdailyReport: true
});
}
if (userInfo?.isSuper && menu.every((item) => item.name != "工资绩效")) {
......
......@@ -499,7 +499,7 @@ Page({
let userInfo = wx.$util.getUserInfo()
// 校验是否填写昨日日报
let staffCheck = await this.staffDailyReportMerchantValid(userInfo)
if (staffCheck) return true
if (staffCheck) return false;
// console.log(wx.$storage.get('outTradeNo'))
// wx.$storage.rm('outTradeNo')
// 判断手机号是否用配置的默认值
......
......@@ -193,7 +193,7 @@ Page({
async againOrder() {
// 校验是否填写昨日日报
let staffCheck = await checkDailyReport();
if (staffCheck) return true;
if (staffCheck) return false;;
// 新增订单
this.keepGoing(4);
},
......
......@@ -360,7 +360,7 @@ Page({
let userInfo = wx.$util.getUserInfo()
// 校验是否填写昨日日报
let staffCheck = await this.staffDailyReportMerchantValid(userInfo)
if (staffCheck) return true
if (staffCheck) return false;
this.checkPhoneUseConfig()
let { type } = i.currentTarget.dataset
let { orderObj, notUpgradeOrderList, dateObj } = this.data
......
......@@ -119,7 +119,7 @@ Page({
async navigator(e) {
// 校验是否填写昨日日报
// let staffCheck = await checkDailyReport();
// if (staffCheck) return true;
// if (staffCheck) return false;;
let { outTradeNo } = e.detail;
this.closeSwitchPopup();
wx.$storage.set("outTradeNo", outTradeNo);
......@@ -498,7 +498,7 @@ Page({
async submit(i) {
// 校验是否填写昨日日报
let staffCheck = await checkDailyReport();
if (staffCheck) return true;
if (staffCheck) return false;;
// 判断手机号是否用配置的默认值
this.checkPhoneUseConfig();
let { save } = i.currentTarget.dataset;
......@@ -1036,7 +1036,7 @@ Page({
})
.then((res) => {
let { code, data, message } = res;
console.log(subOrderList,'subOrderList')
console.log(subOrderList, 'subOrderList')
if (code == 0) {
wx.hideLoading();
data?.forEach((val) => {
......@@ -1145,7 +1145,7 @@ Page({
// debugger
// console.log(goodsData)
let chooseList = [];
if (subOrderList&&subOrderList.length) {
if (subOrderList && subOrderList.length) {
// if (subOrderList.length < 1) return;
subOrderList.map((e) => {
if (!e.price)
......
{
"navigationBarTitleText": "车膜升级",
"navigationBarTitleText": "新增工单",
"usingComponents": {
"car-brands": "/components/CarBrands/CarBrands",
"merchant-seles": "/components/Merchant-Seles/Merchant-Seles",
......
......@@ -351,7 +351,7 @@
<view class="waitOrderCon {{showTips? 'showTips':''}}" wx:if="{{ waitInputCount && !associateOrderType && !isErrorOrder }}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
</view>
<recording-order-popup wx:if="{{showOrderpop && !(isErrorOrder || isAlreadyExistOrder)}}" show="{{showOrderpop}}" bind:success="navigator" title="请选择交易参考号" />
<recording-order-popup wx:if="{{showOrderpop && !(isErrorOrder)}}" show="{{showOrderpop}}" bind:success="navigator" title="请选择交易参考号" />
<merchant-seles show="{{ salesmanBox }}" isDefault="{{ isDefault }}" title="选择园区店" sub-title="选择转化人员" userInfo="{{ userInfo }}" type="2" />
<merchant-seles show="{{ selesBox }}" title="选择合作门店" orderObj="{{ orderObj }}" sub-title="选择销售顾问" userInfo="{{ userInfo }}" singleSeller="{{ true }}" type="1" />
<sub-shop-merchant show="{{ subShopMerchantBox }}" title="选择二级流量方" selectedSelesMerchantId="{{ orderObj.merchantId }}" selectedCustomerInfo="{{ orderObj.customer.customerId }}" selectedSubShopMerchantId="{{ orderObj.subShopMerchantId }}" />
......
......@@ -553,7 +553,7 @@ Page({
let userInfo = wx.$util.getUserInfo();
// 校验是否填写昨日日报
let staffCheck = await this.staffDailyReportMerchantValid(userInfo);
if (staffCheck) return true;
if (staffCheck) return false;;
this.checkPhoneUseConfig();
let {
orderObj,
......
......@@ -352,7 +352,7 @@ Page({
let userInfo = wx.$util.getUserInfo();
// 校验是否填写昨日日报
let staffCheck = await this.staffDailyReportMerchantValid(userInfo);
if (staffCheck) return true;
if (staffCheck) return false;;
// 判断手机号是否用配置的默认值
this.checkPhoneUseConfig();
let { save } = i.currentTarget.dataset;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!