Commit 7a06363e by 李伟康

Merge branch 'V4.56.0' of http://192.168.3.233:8090/glsx/gl_tape into V4.56.0

2 parents 910125e7 fa21bf06
...@@ -9,7 +9,7 @@ import http from '../request/http' ...@@ -9,7 +9,7 @@ import http from '../request/http'
module.exports = { module.exports = {
/**获取APP更新 */ /**获取APP更新 */
findSoureList (data) { findSoureList(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.recepiton.soure.findSoureList', method: 'dj.api.smartcarlife.recepiton.soure.findSoureList',
projectName: 'boutique', projectName: 'boutique',
...@@ -17,7 +17,7 @@ module.exports = { ...@@ -17,7 +17,7 @@ module.exports = {
}) })
}, },
/** 查询可发放礼券-分页查询商户券列表 */ /** 查询可发放礼券-分页查询商户券列表 */
findCouponList (data) { findCouponList(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.merchantCoupon.pageForZYApp', method: 'dj.api.smartcarlife.merchantCoupon.pageForZYApp',
projectName: 'boutique', projectName: 'boutique',
...@@ -28,7 +28,7 @@ module.exports = { ...@@ -28,7 +28,7 @@ module.exports = {
}) })
}, },
/**查询用户是否领券 */ /**查询用户是否领券 */
findCustomerReceivedStatus (data) { findCustomerReceivedStatus(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.customerCoupon.pageForZYApp', method: 'dj.api.smartcarlife.customerCoupon.pageForZYApp',
projectName: 'boutique', projectName: 'boutique',
...@@ -39,7 +39,7 @@ module.exports = { ...@@ -39,7 +39,7 @@ module.exports = {
}) })
}, },
/**历史成交客户 */ /**历史成交客户 */
historyDealOrderPage (data) { historyDealOrderPage(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.order.historyDealOrder.page', method: 'dj.api.smartcarlife.order.historyDealOrder.page',
projectName: 'boutique', projectName: 'boutique',
...@@ -47,7 +47,7 @@ module.exports = { ...@@ -47,7 +47,7 @@ module.exports = {
}) })
}, },
// 历史订单列表 // 历史订单列表
getQuotationList (data) { getQuotationList(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page',
projectName: 'boutique', projectName: 'boutique',
...@@ -55,7 +55,7 @@ module.exports = { ...@@ -55,7 +55,7 @@ module.exports = {
}) })
}, },
// 历史订单列表 // 历史订单列表
getOrderList (data) { getOrderList(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.for.pad.page', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.for.pad.page',
projectName: 'boutique', projectName: 'boutique',
...@@ -64,7 +64,7 @@ module.exports = { ...@@ -64,7 +64,7 @@ module.exports = {
}, },
/**客户邀约记录 */ /**客户邀约记录 */
customerInviteRecordPage (data) { customerInviteRecordPage(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.customerInviteRecord.page', method: 'dj.api.smartcarlife.customerInviteRecord.page',
projectName: 'boutique', projectName: 'boutique',
...@@ -73,7 +73,7 @@ module.exports = { ...@@ -73,7 +73,7 @@ module.exports = {
}, },
/**轻改素材配置 */ /**轻改素材配置 */
getBoutiqueMaterialConfig (data) { getBoutiqueMaterialConfig(data) {
return http.post({ return http.post({
method: 'dj.api.boutique.recepiton.material.merchant.detail', method: 'dj.api.boutique.recepiton.material.merchant.detail',
projectName: 'boutique', projectName: 'boutique',
...@@ -82,7 +82,7 @@ module.exports = { ...@@ -82,7 +82,7 @@ module.exports = {
}, },
/** 案例视频 */ /** 案例视频 */
getCaseList (data) { getCaseList(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.recepiton.material.case.find', method: 'dj.api.smartcarlife.recepiton.material.case.find',
projectName: 'boutique', projectName: 'boutique',
...@@ -90,7 +90,7 @@ module.exports = { ...@@ -90,7 +90,7 @@ module.exports = {
}) })
}, },
/** 获取类目 */ /** 获取类目 */
getCategory (data) { getCategory(data) {
return http.post({ return http.post({
method: 'dj.api.boutique.recepiton.material.merchant.category', method: 'dj.api.boutique.recepiton.material.merchant.category',
projectName: 'boutique', projectName: 'boutique',
...@@ -100,7 +100,7 @@ module.exports = { ...@@ -100,7 +100,7 @@ module.exports = {
/** /**
* 客户邀约记录-邀约类型数目统计 * 客户邀约记录-邀约类型数目统计
*/ */
getInviteRecordCount (data) { getInviteRecordCount(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.customerInviteRecord.inviteStatus.count', method: 'dj.api.smartcarlife.customerInviteRecord.inviteStatus.count',
projectName: 'boutique', projectName: 'boutique',
...@@ -108,7 +108,7 @@ module.exports = { ...@@ -108,7 +108,7 @@ module.exports = {
}) })
}, },
// 案例视频中心埋点 // 案例视频中心埋点
caseVideoCenter (data) { caseVideoCenter(data) {
return http.post({ return http.post({
method: 'dj.api.boutique.reception.material.point.insert', method: 'dj.api.boutique.reception.material.point.insert',
projectName: 'boutique', projectName: 'boutique',
...@@ -117,7 +117,7 @@ module.exports = { ...@@ -117,7 +117,7 @@ module.exports = {
}, },
// 权益提单相关接口 // 权益提单相关接口
// 查询店铺配置 // 查询店铺配置
getShopMerchantPointConfig (data) { getShopMerchantPointConfig(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.shopMerchantPointConfig.get', method: 'dj.api.smartcarlife.shopMerchantPointConfig.get',
projectName: 'boutique', projectName: 'boutique',
...@@ -125,7 +125,7 @@ module.exports = { ...@@ -125,7 +125,7 @@ module.exports = {
}) })
}, },
/** 根据订单状态统计订单数*/ /** 根据订单状态统计订单数*/
statByStatus (data) { statByStatus(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.order.statByStatus', method: 'dj.api.smartcarlife.order.statByStatus',
projectName: 'boutique', projectName: 'boutique',
...@@ -133,7 +133,7 @@ module.exports = { ...@@ -133,7 +133,7 @@ module.exports = {
}) })
}, },
// 根据4s店商户好获取二级流浪方列表 // 根据4s店商户好获取二级流浪方列表
getSubShopMerchantList (data) { getSubShopMerchantList(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.diversionMerchant.getDiversionMerchantRef', method: 'dj.api.smartcarlife.diversionMerchant.getDiversionMerchantRef',
projectName: 'boutique', projectName: 'boutique',
...@@ -141,7 +141,7 @@ module.exports = { ...@@ -141,7 +141,7 @@ module.exports = {
}) })
}, },
/**搜索订单(含套餐) */ /**搜索订单(含套餐) */
getWorkPackageGoodsList (data) { getWorkPackageGoodsList(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.order.search.containPackageGoods', method: 'dj.api.smartcarlife.order.search.containPackageGoods',
projectName: 'boutique', projectName: 'boutique',
...@@ -149,7 +149,7 @@ module.exports = { ...@@ -149,7 +149,7 @@ module.exports = {
}) })
}, },
// 获取商户订单设置 // 获取商户订单设置
getMerchantRecordingSettings (data) { getMerchantRecordingSettings(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.recordingSettings.getMerchantRecordingSettings', method: 'dj.api.smartcarlife.recordingSettings.getMerchantRecordingSettings',
projectName: 'boutique', projectName: 'boutique',
...@@ -157,7 +157,7 @@ module.exports = { ...@@ -157,7 +157,7 @@ module.exports = {
}) })
}, },
// 获取园区店配置 // 获取园区店配置
getYqStoreConfig (data) { getYqStoreConfig(data) {
return http.post({ return http.post({
method: 'dj.api.smarcarlife.yqMerchantConfig.detail', method: 'dj.api.smarcarlife.yqMerchantConfig.detail',
projectName: 'boutique', projectName: 'boutique',
...@@ -165,7 +165,7 @@ module.exports = { ...@@ -165,7 +165,7 @@ module.exports = {
}) })
}, },
/**补录订单数 */ /**补录订单数 */
waitinputorder (data) { waitinputorder(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.weapp.waitinputorder.count', method: 'dj.api.smartcarlife.weapp.waitinputorder.count',
projectName: 'boutique', projectName: 'boutique',
...@@ -173,7 +173,7 @@ module.exports = { ...@@ -173,7 +173,7 @@ module.exports = {
}) })
}, },
/**交易流水号 */ /**交易流水号 */
transactionSerialNumber (data) { transactionSerialNumber(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.weapp.waitinputorder.page', method: 'dj.api.smartcarlife.weapp.waitinputorder.page',
projectName: 'boutique', projectName: 'boutique',
...@@ -181,7 +181,7 @@ module.exports = { ...@@ -181,7 +181,7 @@ module.exports = {
}) })
}, },
// 根据商户号获取可选商品列表 // 根据商户号获取可选商品列表
getSelectOrderGoodsList (data) { getSelectOrderGoodsList(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.selectOrderGoods.list', method: 'dj.api.smartcarlife.selectOrderGoods.list',
projectName: 'boutique', projectName: 'boutique',
...@@ -189,7 +189,7 @@ module.exports = { ...@@ -189,7 +189,7 @@ module.exports = {
}) })
}, },
/** 选择支付方式下单 */ /** 选择支付方式下单 */
createWithPay (data) { createWithPay(data) {
console.log(data) console.log(data)
return http.post({ return http.post({
method: 'dj.api.smartcarlife.order.createWithPay', method: 'dj.api.smartcarlife.order.createWithPay',
...@@ -198,7 +198,7 @@ module.exports = { ...@@ -198,7 +198,7 @@ module.exports = {
}) })
}, },
/** 订单补录 */ /** 订单补录 */
supplementOrder (data) { supplementOrder(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.order.supplementOrder', method: 'dj.api.smartcarlife.order.supplementOrder',
projectName: 'boutique', projectName: 'boutique',
...@@ -206,7 +206,7 @@ module.exports = { ...@@ -206,7 +206,7 @@ module.exports = {
}) })
}, },
// 获取精品升级场景 太阳膜类商品部位数据 // 获取精品升级场景 太阳膜类商品部位数据
getPositionList (data) { getPositionList(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.goodsPosition.list', method: 'dj.api.smartcarlife.goodsPosition.list',
projectName: 'boutique', projectName: 'boutique',
...@@ -214,22 +214,30 @@ module.exports = { ...@@ -214,22 +214,30 @@ module.exports = {
}) })
}, },
/** 查询该店员工日报是否开启 */ /** 查询该店员工日报是否开启 */
staffDailyReportMerchantValid (data) { staffDailyReportMerchantValid(data) {
// return api.post('dj.api.smartcarlife.staff.daily.report.merchant.valid', data) // return api.post('dj.api.smartcarlife.staff.daily.report.merchant.valid', data)
return http.post({ method: 'dj.api.smartcarlife.staff.daily.report.popup.need', projectName: 'boutique', ...data }) return http.post({ method: 'dj.api.smartcarlife.staff.daily.report.popup.need', projectName: 'boutique', ...data })
}, },
/** 校验手机号是否配置打卡和是否打卡 */ /** 校验手机号是否配置打卡和是否打卡 */
clockInConfigPhone (data) { clockInConfigPhone(data) {
// return api.post('dj.api.smartcarlife.staff.daily.report.merchant.valid', data) // return api.post('dj.api.smartcarlife.staff.daily.report.merchant.valid', data)
return http.post({ method: 'dj.api.smartcarlife.clock.in.config.phone', projectName: 'boutique', ...data }) return http.post({ method: 'dj.api.smartcarlife.clock.in.config.phone', projectName: 'boutique', ...data })
}, },
/** 获取商户基本信息 */ /** 获取商户基本信息 */
getServiceBaseInfo (data) { getServiceBaseInfo(data) {
return http.post({ method: 'dj.api.smartcarlife.serviceMerchant.getServiceBaseInfo', projectName: 'boutique', ...data }) return http.post({ method: 'dj.api.smartcarlife.serviceMerchant.getServiceBaseInfo', projectName: 'boutique', ...data })
}, },
/** 查询园区店是否开启签名配置 */
getSignatureSwitch(data) {
return http.post({ method: 'dj.api.smartcarlife.serviceMerchant.getSignatureSwitch', projectName: 'boutique', ...data })
},
// 获取服务商库存管理模式(是否使用膜卷号)
getServiceFilmRollSetting(data) {
return http.post({ method: 'dj.api.smarcarlife.stock.management.mode', projectName: 'boutique', ...data })
},
/** 获取转化员上一笔订单的销售顾问 */ /** 获取转化员上一笔订单的销售顾问 */
getLastUserOrderInfo (data) { getLastUserOrderInfo(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.order.getLastUser', method: 'dj.api.smartcarlife.order.getLastUser',
projectName: 'boutique', projectName: 'boutique',
...@@ -237,13 +245,13 @@ module.exports = { ...@@ -237,13 +245,13 @@ module.exports = {
}) })
}, },
/**根据订单号获取订单详情(含套餐) */ /**根据订单号获取订单详情(含套餐) */
getPackageGoodsDetail (data) { getPackageGoodsDetail(data) {
return http.post({ method: 'dj.api.smartcarlife.order.packageGoodsDetail', projectName: 'boutique', ...data }) return http.post({ method: 'dj.api.smartcarlife.order.packageGoodsDetail', projectName: 'boutique', ...data })
}, },
/** /**
* 查询日报门店主营品牌 * 查询日报门店主营品牌
*/ */
getDailyReportCarBrand (data) { getDailyReportCarBrand(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.staff.daily.report.car.brand', method: 'dj.api.smartcarlife.staff.daily.report.car.brand',
projectName: 'boutique', projectName: 'boutique',
...@@ -254,7 +262,7 @@ module.exports = { ...@@ -254,7 +262,7 @@ module.exports = {
* 查询员工日报是否填写列表 * 查询员工日报是否填写列表
* *
*/ */
getStaffDailyReportDetailWeeklyList (data) { getStaffDailyReportDetailWeeklyList(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.staff.daily.report.weekly.list', method: 'dj.api.smartcarlife.staff.daily.report.weekly.list',
projectName: 'boutique', projectName: 'boutique',
...@@ -264,13 +272,42 @@ module.exports = { ...@@ -264,13 +272,42 @@ module.exports = {
/** /**
* 查询日报详情 * 查询日报详情
*/ */
getStaffDailyReportDetail (data) { getStaffDailyReportDetail(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.staff.daily.report.detail', method: 'dj.api.smartcarlife.staff.daily.report.detail',
projectName: 'boutique', projectName: 'boutique',
...data ...data
}) })
}, },
/** 修改订单备注 */
updateOrderRemark(data) {
return http.post({ method: 'dj.api.smartcarlife.order.updateRemark', projectName: 'boutique', ...data })
},
/** 修改工单时间 */
updateOrderTime(data) {
return http.post({ method: 'dj.api.smartcarlife.order.updateOrderTime', projectName: 'boutique', ...data })
},
/** 获取企微活码 */
getWorkWechatLiveQRCode(data) {
return http.post({ method: 'dj.api.smartcarlife.order.getWorkWechatLiveQRCode', projectName: 'boutique', ...data })
},
/** 升级商品生成条形码 */
createBarCode(data) {
return http.post({ method: 'dj.api.smartcarlife.common.createBarCode', projectName: 'boutique', ...data })
},
/**撤销工单 */
revokeOrder(data) {
return http.post({ method: 'dj.api.smartcarlife.order.revoke', projectName: 'boutique', ...data })
},
/** 获取园区店配置技师数据 */
getQYTechnicianList(data) {
return http.post({ method: 'dj.api.smartcarlife.roleTechnician.list', projectName: 'boutique', ...data })
},
// 生成生成小程序码
createQrcodeImage(data) {
// dj.api.smartcarlife.serviceMerchant.getByMerchantId
return http.post({ method: 'dj.api.smartcarlife.common.createWeappQrcode', projectName: 'boutique', ...data })
},
/** /**
* 保存日报 * 保存日报
*/ */
......
...@@ -49,6 +49,9 @@ ...@@ -49,6 +49,9 @@
.align-center { .align-center {
align-items: center; align-items: center;
} }
.align-start {
align-items: start !important;
}
.justify-center { .justify-center {
-webkit-box-pack: center; -webkit-box-pack: center;
-ms-flex-pack: center; -ms-flex-pack: center;
...@@ -61,6 +64,11 @@ ...@@ -61,6 +64,11 @@
-webkit-justify-content: flex-end; -webkit-justify-content: flex-end;
justify-content: flex-end; justify-content: flex-end;
} }
.justify-around {
-ms-flex-pack: distribute;
-webkit-justify-content: space-around;
justify-content: space-around;
}
.flex-wrap { .flex-wrap {
-ms-flex-wrap: wrap; -ms-flex-wrap: wrap;
......

2.55 MB | W: | H:

2.61 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -4,15 +4,20 @@ ...@@ -4,15 +4,20 @@
<uni-popup :class="popupClass" ref="publishPopup" :type="type" @change="change" :is-mask-click="isMaskClick" :safe-area="safeArea" :showClose="showClose"> <uni-popup :class="popupClass" ref="publishPopup" :type="type" @change="change" :is-mask-click="isMaskClick" :safe-area="safeArea" :showClose="showClose">
<!-- 顶部标题栏插槽 --> <!-- 顶部标题栏插槽 -->
<slot name="header"> <slot name="header">
<view class="popup-top-box flex align-center"> <view class="popup-top-box flex align-center" v-if="showTitle">
<text class="popup-top-box-title">{{ title }}</text> <text class="popup-top-box-title">{{ title }}</text>
<uni-icons @click="closePopup" class="icon-close" type="closeempty"></uni-icons> <uni-icons @click="closePopup" class="icon-close" type="closeempty"></uni-icons>
</view> </view>
</slot> </slot>
<!-- 主要内容插槽 --> <!-- 主要内容插槽 -->
<slot name="content"></slot> <slot name="content"></slot>
<!-- 底部插槽 --> <!-- 底部插槽 插槽有内容就优先自定义内容-->
<slot name="footer"></slot> <slot name="footer">
<view class="footer-box flex justify-center" v-if="isShowFooter">
<view class="cancle-btn btn" @click.stop="closePopup">{{ cancelText }}</view>
<view class="sure-btn btn" @click.stop="confirm">{{ confirmText }}</view>
</view>
</slot>
</uni-popup> </uni-popup>
</template> </template>
...@@ -43,6 +48,22 @@ export default { ...@@ -43,6 +48,22 @@ export default {
title: { title: {
type: String, type: String,
default: '' default: ''
},
showTitle: {
type: Boolean,
default: true
},
isShowFooter: {
type: Boolean,
default: true
},
cancelText: {
type: String,
default: '取消'
},
confirmText: {
type: String,
default: '确定'
} }
}, },
data() { data() {
...@@ -51,7 +72,7 @@ export default { ...@@ -51,7 +72,7 @@ export default {
} }
}, },
methods: { methods: {
open() { open(callback) {
this.$refs.publishPopup.open() this.$refs.publishPopup.open()
}, },
change(e) { change(e) {
...@@ -60,6 +81,9 @@ export default { ...@@ -60,6 +81,9 @@ export default {
closePopup() { closePopup() {
this.$refs.publishPopup.close() this.$refs.publishPopup.close()
this.$emit('close') this.$emit('close')
},
confirm() {
this.$emit('confirm')
} }
} }
} }
...@@ -70,7 +94,7 @@ export default { ...@@ -70,7 +94,7 @@ export default {
font-size: toRpx(36); font-size: toRpx(36);
font-weight: 500; font-weight: 500;
text-align: center; text-align: center;
padding: toRpx(32);
.popup-top-box-title { .popup-top-box-title {
flex: 1; flex: 1;
} }
...@@ -92,4 +116,31 @@ export default { ...@@ -92,4 +116,31 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 600; font-weight: 600;
} }
.footer-box {
width: 100%;
height: toRpx(164);
background-color: #fff;
position: absolute;
border-radius: 0 0 toRpx(42) toRpx(42);
bottom: 0;
.btn {
width: 40%;
height: toRpx(80);
border-radius: toRpx(48);
opacity: 1;
line-height: toRpx(80);
text-align: center;
color: rgba(26, 26, 26, 0.6);
font-size: toRpx(32);
font-weight: 500;
}
.cancle-btn {
background: #f0f1f5;
}
.sure-btn {
color: #fff;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
margin-left: toRpx(32);
}
}
</style> </style>
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</view> </view>
<view v-if="orderCardDetail.subOrderList.length > 2" class="goods-more"> <view v-if="orderCardDetail.subOrderList.length > 2" class="goods-more">
<text @click="showAllGoodsList"> <text @click.stop="showAllGoodsList">
{{ orderCardDetail.showAllGoodsListFlag ? '收起' : '查看全部' }} {{ orderCardDetail.showAllGoodsListFlag ? '收起' : '查看全部' }}
</text> </text>
(共{{ orderCardDetail.subOrderList.length }}件) (共{{ orderCardDetail.subOrderList.length }}件)
...@@ -219,13 +219,13 @@ export default { ...@@ -219,13 +219,13 @@ export default {
if (name == 'CreateOrder' && (await this.inspectionOfProhibitionBill())) return /**禁止提单 */ if (name == 'CreateOrder' && (await this.inspectionOfProhibitionBill())) return /**禁止提单 */
// 是微信支付直接跳转确认页面 // 是微信支付直接跳转确认页面
if (userType == 2 && item?.selectPayType == 1) { if (userType == 2 && item?.selectPayType == 1) {
this.$emit('jump', 'ConfirmOrder') this.$emit('jump', 'ConfirmOrder', this.orderCardDetail)
} else if (userType == 2) { } else if (userType == 2) {
item item
? this.showSelectType({ ? this.showSelectType({
item item
}) })
: this.$emit('jump', name) : this.$emit('jump', name, this.orderCardDetail)
} else { } else {
utils.showNoAccess() utils.showNoAccess()
} }
...@@ -234,10 +234,9 @@ export default { ...@@ -234,10 +234,9 @@ export default {
} }
// 已支付加已施工 // 已支付加已施工
} else if (item.constructionFlag == 'Y' && item.status != 10) { } else if (item.constructionFlag == 'Y' && item.status != 10) {
// wx.$router.go('tabWorkOrder.constructionOrderDetail', item) this.$emit('jump', name, this.orderCardDetail)
// this.$emit('jump', name, item)
} else { } else {
this.$emit('jump', name) this.$emit('jump', name, this.orderCardDetail)
} }
}, },
// 确定是否要显示 // 确定是否要显示
...@@ -249,30 +248,6 @@ export default { ...@@ -249,30 +248,6 @@ export default {
} }
this.$refs.recordOrderPopup.open() this.$refs.recordOrderPopup.open()
// this.uni.showModal({
// show: true,
// title: '请选择录单入口',
// tabTitleShow: false,
// success: async res => {
// // 跳转新增订单页面 并带特定参数
// console.log(item, 'showSelectType')
// if (this.selectType == 1) {
// if (await this.inspectionOfProhibitionBill()) return
// wx.$router.go('tabWorkOrder.createOrder', {
// scene,
// ...item
// })
// } else {
// wx.$router.go('tabWorkOrder.defeatOrder', {
// scene,
// ...item,
// isExpiredTraffic: this.selectType == 3
// })
// }
// },
// error: () => {}
// })
}, },
// 获取轻改录单配置是否启用流量失效 // 获取轻改录单配置是否启用流量失效
...@@ -294,10 +269,13 @@ export default { ...@@ -294,10 +269,13 @@ export default {
if (this.selectType == 1) { if (this.selectType == 1) {
console.log(await this.inspectionOfProhibitionBill()) console.log(await this.inspectionOfProhibitionBill())
if (await this.inspectionOfProhibitionBill()) return if (await this.inspectionOfProhibitionBill()) return
this.$emit('jump', 'CreateOrder') this.$emit('jump', 'CreateOrder', this.orderCardDetail)
} else { } else {
this.$emit('jump', 'DefeatOrder') this.$emit('jump', 'DefeatOrder')
} }
},
cancelSelection() {
this.$refs.recordOrderPopup.closePopup()
} }
} }
} }
......
...@@ -9,6 +9,10 @@ ...@@ -9,6 +9,10 @@
<text>{{ item.tabName }}</text> <text>{{ item.tabName }}</text>
<text class="num">{{ item.num }}</text> <text class="num">{{ item.num }}</text>
</view> </view>
<view>
筛选
<view class="sprite-icon icon-filter"></view>
</view>
</view> </view>
<view class="px-48"> <view class="px-48">
<view class="tips" v-if="waitInputCount"> <view class="tips" v-if="waitInputCount">
...@@ -119,6 +123,7 @@ ...@@ -119,6 +123,7 @@
</scroll-view> </scroll-view>
</template> </template>
</PublishPopup> </PublishPopup>
<order-screen ref="test" @onConfirm="回调" />
</view> </view>
</template> </template>
...@@ -130,12 +135,14 @@ import OrderCard from '../../components/OrderCard' ...@@ -130,12 +135,14 @@ import OrderCard from '../../components/OrderCard'
import PublishPopup from '@/components/PublishPopup.vue' import PublishPopup from '@/components/PublishPopup.vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import utils from '@/utils/utils' import utils from '@/utils/utils'
import OrderScreen from '@/components/OrderScreen/index.vue'
export default { export default {
name: 'OrderManagement', name: 'OrderManagement',
mixins: [ZPMixin, interceptionMixin], mixins: [ZPMixin, interceptionMixin],
components: { components: {
OrderCard, OrderCard,
PublishPopup PublishPopup,
OrderScreen
}, },
data() { data() {
return { return {
......
<template>
<view class="upload-proof-of-payment">
<view class="common-title">上传付款凭证</view>
<view class="px-48">
<view class="box-shell">
<view class="flex align-center justify-between box-flow">
<view class="box-label">
交易流水号
<text class="required">*</text>
</view>
<input v-model="outTradeNo" class="uni-input" maxlength="100" placeholder="请输入" />
</view>
<view class="payment">
<view class="payment-label">
付款凭证
<text class="required">*</text>
</view>
<view class="upload-box flex flex-wrap">
<view class="upload-item" @click="selectImg"></view>
<view v-for="(item, index) in payVoucherList" :key="index" class="previewImageList">
<image :src="item"></image>
<view class="close-box" @click="deleteImg(index)">
<uni-icons class="icon-close" type="closeempty" color="#ffffff"></uni-icons>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="uploadBtn" @click="confirm">确定提交</view>
</view>
</template>
<script>
import { uploadFile } from '@/utils/ossUploadFile/uploadFile.js'
export default {
name: 'UploadProofOfPayment',
props: {
transmissionOfData: {
type: Object,
default: () => null
}
},
data() {
return {
payVoucherList: [],
outTradeNo: ''
}
},
mounted() {
console.log(this.transmissionOfData, 'console.log(this.transmissionOfData)')
},
methods: {
selectImg() {
let _this = this
uni.chooseImage({
count: 1, //默认9
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
sourceType: ['album'], //从相册选择
success: function (res) {
console.log(res)
_this.upLoad(res)
}
})
},
// 上传付款凭证
async upLoad(event) {
console.log(event)
let _this = this
const { tempFilePaths } = event
let url = await uploadFile(tempFilePaths[0])
this.payVoucherList.push(url)
},
confirm(e) {
console.log(this.transmissionOfData)
let { outTradeNo, payVoucherList } = this
if (payVoucherList.length && outTradeNo) {
this.createPayOrder()
} else {
uni.showToast({ title: '交易流水号或付款凭证不能为空!', icon: 'none' })
}
},
deleteImg(index) {
this.payVoucherList.splice(index, 1)
},
createPayOrder() {
const { orderCode, payType, payeeType } = this.transmissionOfData
let obj = {
orderCode,
payType: payType,
payeeType: payeeType
}
if (this.payVoucherList?.length && this.outTradeNo) {
obj.payVoucherList = this.payVoucherList.map(v => {
return v?.url
})
obj.outTradeNo = this.outTradeNo
}
console.log(obj)
uni.$api.boutiqueApi.createPayOrder(obj).then(data => {
uni.showToast({ title: '提交成功', icon: 'success' })
this.$emit('jump', 'OrderDetail', data)
})
}
}
}
</script>
<style scoped lang="scss">
.px-48 {
padding: 0 toRpx(48);
}
.upload-proof-of-payment {
width: 100%;
height: 100%;
position: relative;
.box-shell {
width: 100%;
border-radius: toRpx(16);
background: #ffffff;
padding: toRpx(24) toRpx(32);
margin-top: toRpx(16);
.box-flow {
border-bottom: toRpx(2) solid #f7f7f6;
padding-bottom: toRpx(28);
.box-label {
font-weight: 400;
font-size: toRpx(28);
color: #333333;
}
.required {
color: #f00;
margin-left: toRpx(8);
}
.uni-input {
text-align: right;
.uni-input-placeholder {
font-size: toRpx(28);
font-weight: 400;
}
}
}
.payment {
.payment-label {
font-weight: 400;
font-size: toRpx(28);
color: #333333;
margin-top: toRpx(32);
margin-bottom: toRpx(24);
.required {
color: #f00;
margin-left: toRpx(8);
}
}
.upload-box {
gap: toRpx(20);
.upload-item {
width: toRpx(320) !important;
height: toRpx(240) !important;
border-radius: toRpx(12);
background: url('@/assets/images/boutique/uploadImage.png') no-repeat;
background-size: 100% 100%;
}
.previewImageList {
position: relative;
image {
width: toRpx(320) !important;
height: toRpx(240) !important;
border-radius: toRpx(12);
}
.close-box {
width: toRpx(36);
height: toRpx(36);
position: absolute;
top: - toRpx(12);
right: - toRpx(12);
background: rgba(0, 0, 0, 0.6);
border-radius: 50%;
text-align: center;
line-height: toRpx(40);
}
.icon-close {
font-size: toRpx(12);
}
}
}
}
}
.uploadBtn {
width: 80%;
height: toRpx(80);
border-radius: toRpx(48);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #ffffff;
font-size: toRpx(28);
font-weight: 500;
position: absolute;
bottom: toRpx(20);
margin: 0 auto;
left: 0;
right: 0;
text-align: center;
line-height: toRpx(80);
}
}
</style>
<template> <template>
<view class="detail-box"> <view class="detail-box">
<view class="nav-bar"> <view class="nav-bar">
<view <view class="back" @click="backPage">
class="back" <uni-icons type="left" :size="20" color="#000"></uni-icons>
@click="backPage"
>
<uni-icons
type="left"
:size="20"
color="#000"
></uni-icons>
</view> </view>
<view class="title">展业工具</view> <view class="title">展业工具</view>
</view> </view>
...@@ -17,45 +10,20 @@ ...@@ -17,45 +10,20 @@
<view class="detail-left"> <view class="detail-left">
<view class="common-title">展业</view> <view class="common-title">展业</view>
<view class="content"> <view class="content">
<image <image class="banner" src="../../../assets/images/common/tool_banner.png" mode="scaleToFill" />
class="banner"
src="../../../assets/images/common/tool_banner.png"
mode="scaleToFill"
/>
<template v-if="toolComponentName !== 'DailyReport'"> <template v-if="toolComponentName !== 'DailyReport'">
<Entrance @entranceClick="entranceClick"></Entrance> <Entrance @entranceClick="entranceClick"></Entrance>
</template> </template>
<template v-else> <template v-else>
<uni-calendar <uni-calendar ref="calendar" :clearDate="false" :endDate="endDate" :showMonth="false" @monthSwitch="currentMonth = `${$event.year}-${$event.month}`" @change="currentDate = $event.fulldate" backgroundColor="transparent" :selected="selectedDays" />
ref="calendar"
:clearDate="false"
:endDate="endDate"
:showMonth="false"
@monthSwitch="currentMonth = `${$event.year}-${$event.month}`"
@change="currentDate = $event.fulldate"
backgroundColor="transparent"
:selected="selectedDays"
/>
</template> </template>
</view> </view>
</view> </view>
<view class="detail-right"> <view class="detail-right">
<component <component :is="toolComponentName" @jump="jump" :transmission-of-data="transmissionOfData" :currentDate="currentDate" :currentMonth="currentMonth" @setCalendarSelected="selectedDays = $event" />
:is="toolComponentName"
@jump="jump"
:transmission-of-data="transmissionOfData"
:currentDate="currentDate"
:currentMonth="currentMonth"
@setCalendarSelected="selectedDays = $event"
/>
</view> </view>
</view> </view>
<NoticePopup <NoticePopup ref="notice" title="重要提示" text="当前页面暂未保存,是否确认退出" type="warning"></NoticePopup>
ref="notice"
title="重要提示"
text="当前页面暂未保存,是否确认退出"
type="warning"
></NoticePopup>
</view> </view>
</template> </template>
...@@ -66,6 +34,8 @@ import DailyReport from './components/DailyReport.vue' ...@@ -66,6 +34,8 @@ import DailyReport from './components/DailyReport.vue'
import DefeatOrder from './components/DefeatOrder.vue' import DefeatOrder from './components/DefeatOrder.vue'
import OrderManagement from './components/OrderManagement.vue' import OrderManagement from './components/OrderManagement.vue'
import ConfirmOrder from './components/ConfirmOrder.vue' import ConfirmOrder from './components/ConfirmOrder.vue'
import OrderDetail from './components/OrderDetail.vue'
import UploadProofOfPayment from './components/UploadProofOfPayment.vue'
import NoticePopup from './components/NoticePopup.vue' import NoticePopup from './components/NoticePopup.vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
export default { export default {
...@@ -76,9 +46,11 @@ export default { ...@@ -76,9 +46,11 @@ export default {
DefeatOrder, DefeatOrder,
OrderManagement, OrderManagement,
ConfirmOrder, ConfirmOrder,
NoticePopup NoticePopup,
UploadProofOfPayment,
OrderDetail
}, },
data () { data() {
return { return {
toolComponentName: '', toolComponentName: '',
transmissionOfData: null, transmissionOfData: null,
...@@ -88,11 +60,11 @@ export default { ...@@ -88,11 +60,11 @@ export default {
selectedDays: [] selectedDays: []
} }
}, },
onLoad (options) { onLoad(options) {
if (options.componentName) this.toolComponentName = options.componentName if (options.componentName) this.toolComponentName = options.componentName
}, },
methods: { methods: {
entranceClick (item) { entranceClick(item) {
console.log(item) console.log(item)
// 保存当前选择的组件信息,但不立即切换 // 保存当前选择的组件信息,但不立即切换
const selectedItem = item const selectedItem = item
...@@ -105,7 +77,8 @@ export default { ...@@ -105,7 +77,8 @@ export default {
} }
// 配置弹窗按钮 // 配置弹窗按钮
this.$refs.notice.buttonsList = [{ this.$refs.notice.buttonsList = [
{
text: '确认退出', text: '确认退出',
type: 'default', type: 'default',
callback: () => { callback: () => {
...@@ -114,30 +87,24 @@ export default { ...@@ -114,30 +87,24 @@ export default {
if (selectedItem.name !== 'CreateOrder') { if (selectedItem.name !== 'CreateOrder') {
this.transmissionOfData = null this.transmissionOfData = null
} }
this.$refs.notice.close()
} }
}, {
text: '继续编辑',
type: 'primary',
callback: () => {
this.$refs.notice.close()
} }
}] ]
// 打开弹窗 // 打开弹窗
this.$refs.notice.open() this.$refs.notice.open()
}, },
backPage () { backPage() {
uni.navigateBack() uni.navigateBack()
}, },
// name:跳转组件名,val:跳转参数 // name:跳转组件名,val:跳转参数
jump (name, val) { jump(name, val) {
this.toolComponentName = name this.toolComponentName = name
console.log(this.toolComponentName) console.log(this.toolComponentName)
if (val) { if (val) {
this.transmissionOfData = val this.transmissionOfData = val
} }
}, }
} }
} }
</script> </script>
......
...@@ -238,6 +238,25 @@ const showNoAccess = () => { ...@@ -238,6 +238,25 @@ const showNoAccess = () => {
icon: 'error' icon: 'error'
}) })
} }
/**设置粘贴板内容 */
const setCopyData = (data, callBack) => {
console.log(data, 'setCopyData')
uni.setClipboardData({
data: data,
success(res) {
console.log(res, 'setCopyData')
if (callBack && typeof callBack === 'function') callBack(res)
}
})
}
/** 刷新工单管理 预约管理数据 */
const refreshPageData = notRefreshOrder => {
if (!notRefreshOrder) getApp().globalData.orderListRefresh = true
getApp().globalData.dateListRefresh = true
getApp().globalDataorderListDateListScreenRefresh = true
}
export default { export default {
compareVersions, compareVersions,
convertDateTimeFormat, convertDateTimeFormat,
...@@ -255,5 +274,7 @@ export default { ...@@ -255,5 +274,7 @@ export default {
getViewInfo, getViewInfo,
setPrice, setPrice,
decimal, decimal,
showNoAccess showNoAccess,
setCopyData,
refreshPageData
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!