Commit 09d88318 by 张立顺

fix bug修复

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