Commit b68ecd63 by 李伟康

Merge branch 'SAAS+V5.5.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V5.5.0

2 parents 09791589 8a1363aa
...@@ -2,7 +2,7 @@ import http from '../request/http' ...@@ -2,7 +2,7 @@ import http from '../request/http'
module.exports = { module.exports = {
/**新建车损报价单 */ /**新建车损报价单 */
quotationAdd (data) { quotationAdd(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add',
projectName: 'boutique', projectName: 'boutique',
...@@ -10,7 +10,7 @@ module.exports = { ...@@ -10,7 +10,7 @@ module.exports = {
}) })
}, },
/** 报价单支付订单生成(带上签名)返回订单号(商户地址) */ /** 报价单支付订单生成(带上签名)返回订单号(商户地址) */
quotationUpgrade (data) { quotationUpgrade(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.pay.order.generate', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.pay.order.generate',
projectName: 'boutique', projectName: 'boutique',
...@@ -18,7 +18,7 @@ module.exports = { ...@@ -18,7 +18,7 @@ module.exports = {
}) })
}, },
// 校验订单是否需要上传合同协议 // 校验订单是否需要上传合同协议
checkZyPayFlag (data) { checkZyPayFlag(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.zyPayUrl.check', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.zyPayUrl.check',
projectName: 'boutique', projectName: 'boutique',
...@@ -27,7 +27,7 @@ module.exports = { ...@@ -27,7 +27,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',
...@@ -36,7 +36,7 @@ module.exports = { ...@@ -36,7 +36,7 @@ module.exports = {
}, },
/** 查询报价单信息 */ /** 查询报价单信息 */
getQuotationInfoById (data) { getQuotationInfoById(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.find.by.id', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.find.by.id',
projectName: 'boutique', projectName: 'boutique',
...@@ -46,7 +46,7 @@ module.exports = { ...@@ -46,7 +46,7 @@ module.exports = {
/** /**
* 订单详情 * 订单详情
*/ */
getOrderDetail (data) { getOrderDetail(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.order.detail', method: 'dj.api.smartcarlife.order.detail',
projectName: 'boutique', projectName: 'boutique',
...@@ -54,7 +54,7 @@ module.exports = { ...@@ -54,7 +54,7 @@ module.exports = {
}) })
}, },
/**pos支付 */ /**pos支付 */
getPosQr (data) { getPosQr(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.payOrder.create', method: 'dj.api.smartcarlife.payOrder.create',
projectName: 'boutique', projectName: 'boutique',
...@@ -65,7 +65,7 @@ module.exports = { ...@@ -65,7 +65,7 @@ module.exports = {
* 查询门店录单设置 * 查询门店录单设置
}, },
*/ */
orderSettingList (data) { orderSettingList(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.order.field.setting.list', method: 'dj.api.smartcarlife.order.field.setting.list',
projectName: 'boutique', projectName: 'boutique',
...@@ -74,7 +74,7 @@ module.exports = { ...@@ -74,7 +74,7 @@ module.exports = {
}, },
/** 报价单分页列表 */ /** 报价单分页列表 */
quotationPage (data) { quotationPage(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',
...@@ -82,7 +82,7 @@ module.exports = { ...@@ -82,7 +82,7 @@ module.exports = {
}) })
}, },
/** 根据id查询报价单数据 */ /** 根据id查询报价单数据 */
getQuotationInfo (data) { getQuotationInfo(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.generate', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.generate',
projectName: 'boutique', projectName: 'boutique',
...@@ -90,7 +90,7 @@ module.exports = { ...@@ -90,7 +90,7 @@ module.exports = {
}) })
}, },
/** 修改车损报价单客户基本信息信息 */ /** 修改车损报价单客户基本信息信息 */
updateCustomerInfo (data) { updateCustomerInfo(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.base.info.update', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.base.info.update',
projectName: 'boutique', projectName: 'boutique',
...@@ -99,7 +99,7 @@ module.exports = { ...@@ -99,7 +99,7 @@ module.exports = {
}, },
/** 报价单订单分状态统计信息 */ /** 报价单订单分状态统计信息 */
orderStatistics (data) { orderStatistics(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.order.status.statistics', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.order.status.statistics',
projectName: 'boutique', projectName: 'boutique',
...@@ -107,7 +107,7 @@ module.exports = { ...@@ -107,7 +107,7 @@ module.exports = {
}) })
}, },
// 查询订单是否支持状态变更 // 查询订单是否支持状态变更
getOrderRefundStep (data) { getOrderRefundStep(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.refundApplyRecord.isExist', method: 'dj.api.smartcarlife.refundApplyRecord.isExist',
projectName: 'boutique', projectName: 'boutique',
...@@ -115,7 +115,7 @@ module.exports = { ...@@ -115,7 +115,7 @@ module.exports = {
}) })
}, },
/**报价单-撤销工单 */ /**报价单-撤销工单 */
cancelOrderById (data) { cancelOrderById(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.quotation.cancel', method: 'dj.api.smartcarlife.quotation.cancel',
projectName: 'boutique', projectName: 'boutique',
...@@ -123,7 +123,7 @@ module.exports = { ...@@ -123,7 +123,7 @@ module.exports = {
}) })
}, },
// 车损报价单战败订单创建 // 车损报价单战败订单创建
defeatOrderCreate (data) { defeatOrderCreate(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add.defeat.order', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add.defeat.order',
projectName: 'boutique', projectName: 'boutique',
...@@ -131,21 +131,46 @@ module.exports = { ...@@ -131,21 +131,46 @@ module.exports = {
}) })
}, },
// 更新合同协议内容 // 更新合同协议内容
updateZyInfo (data) { updateZyInfo(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.zyPayUrl.update', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.zyPayUrl.update',
projectName: 'boutique', projectName: 'boutique',
...data ...data
}) })
}, },
/** 根据商户号商品id获取可选升级商品列表 */
quotationGoodsList(data) {
return http.post({
method: 'dj.api.smartcarlife.quotationGoods.list',
projectName: 'boutique',
...data
})
},
/** /**
* /** 修改车损报价单信息 */ * /** 修改车损报价单信息 */
updateQuotation (data) { updateQuotation(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.update', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.update',
projectName: 'boutique', projectName: 'boutique',
...data ...data
}) })
}, },
getCheckEmployeeList(data) {
// 0->2.0 1->1.1 2->1.2 3->1.3 场景对应
// data.sceneList = [1]
return http.post({
method: 'dj.api.smartcarlife.employee.onTheJob.getByMerchantId',
projectName: 'boutique',
...data
})
// return api.post("dj.api.smartcarlife.employee.getByMerchantId", data);
},
/** 更新报价单状态 */
updateOrderStatus(data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.status.update',
projectName: 'boutique',
...data
})
}
} }
...@@ -249,6 +249,8 @@ ...@@ -249,6 +249,8 @@
background-position: calc(100vmin * (1173 / 768) * -0.4761295822676897) calc(100vmin * (1173 / 768) * -0.19138959931798807);} background-position: calc(100vmin * (1173 / 768) * -0.4761295822676897) calc(100vmin * (1173 / 768) * -0.19138959931798807);}
.icon-pbjd-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-pbjd-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.340153452685422) calc(100vmin * (1173 / 768) * -0.15601023017902813);} background-position: calc(100vmin * (1173 / 768) * -0.340153452685422) calc(100vmin * (1173 / 768) * -0.15601023017902813);}
.icon-pdf-xl { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04774083546462063);
background-position: calc(100vmin * (1173 / 768) * -0.1658141517476556) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-pdf { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-pdf { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.5336743393009378) calc(100vmin * (1173 / 768) * -0.38064791133844844);} background-position: calc(100vmin * (1173 / 768) * -0.5336743393009378) calc(100vmin * (1173 / 768) * -0.38064791133844844);}
.icon-pen-active { width: calc(100vmin * (1173 / 768) * 0.05115089514066496); height: calc(100vmin * (1173 / 768) * 0.05115089514066496); .icon-pen-active { width: calc(100vmin * (1173 / 768) * 0.05115089514066496); height: calc(100vmin * (1173 / 768) * 0.05115089514066496);
...@@ -260,7 +262,7 @@ ...@@ -260,7 +262,7 @@
.icon-point-active { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04859335038363171); .icon-point-active { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04859335038363171);
background-position: calc(100vmin * (1173 / 768) * -0.05754475703324808) calc(100vmin * (1173 / 768) * -0.4825234441602728);} background-position: calc(100vmin * (1173 / 768) * -0.05754475703324808) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-point { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04774083546462063); .icon-point { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04774083546462063);
background-position: calc(100vmin * (1173 / 768) * -0.1658141517476556) calc(100vmin * (1173 / 768) * -0.4825234441602728);} background-position: calc(100vmin * (1173 / 768) * -0.21994884910485935) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-points { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646); .icon-points { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.027280477408354646);
background-position: calc(100vmin * (1173 / 768) * -0.4514066496163683) calc(100vmin * (1173 / 768) * -0.6381074168797954);} background-position: calc(100vmin * (1173 / 768) * -0.4514066496163683) calc(100vmin * (1173 / 768) * -0.6381074168797954);}
.icon-promotion { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986); .icon-promotion { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
...@@ -300,7 +302,7 @@ ...@@ -300,7 +302,7 @@
.icon-reception-share { width: calc(100vmin * (1173 / 768) * 0.02216538789428815); height: calc(100vmin * (1173 / 768) * 0.02216538789428815); .icon-reception-share { width: calc(100vmin * (1173 / 768) * 0.02216538789428815); height: calc(100vmin * (1173 / 768) * 0.02216538789428815);
background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.05711849957374254);} background-position: calc(100vmin * (1173 / 768) * -0.7020460358056266) calc(100vmin * (1173 / 768) * -0.05711849957374254);}
.icon-record-active { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04774083546462063); .icon-record-active { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04774083546462063);
background-position: calc(100vmin * (1173 / 768) * -0.21994884910485935) calc(100vmin * (1173 / 768) * -0.4825234441602728);} background-position: calc(100vmin * (1173 / 768) * -0.27408354646206307) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-record { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763); .icon-record { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.050724637681159424) calc(100vmin * (1173 / 768) * -0.5400682011935208);} background-position: calc(100vmin * (1173 / 768) * -0.050724637681159424) calc(100vmin * (1173 / 768) * -0.5400682011935208);}
.icon-revoke { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197); .icon-revoke { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
...@@ -405,11 +407,8 @@ ...@@ -405,11 +407,8 @@
background-position: calc(100vmin * (1173 / 768) * -0.08013640238704177) calc(100vmin * (1173 / 768) * -0.6986359761295823);} background-position: calc(100vmin * (1173 / 768) * -0.08013640238704177) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-two-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.010230179028132993); .icon-two-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.010230179028132993);
background-position: calc(100vmin * (1173 / 768) * -0.2885763000852515) calc(100vmin * (1173 / 768) * -0.6986359761295823);} background-position: calc(100vmin * (1173 / 768) * -0.2885763000852515) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
<<<<<<< HEAD
=======
.icon-up-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157); .icon-up-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.27024722932651324) calc(100vmin * (1173 / 768) * -0.6986359761295823);} background-position: calc(100vmin * (1173 / 768) * -0.27024722932651324) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
>>>>>>> 34c2de92db21e1379e36b7dc81196e3b65332eee
.icon-upload-play { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655); .icon-upload-play { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.07033248081841433) calc(100vmin * (1173 / 768) * -0.6751918158567775);} background-position: calc(100vmin * (1173 / 768) * -0.07033248081841433) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-uploadAdd { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986); .icon-uploadAdd { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.020460358056265986);
...@@ -425,17 +424,4 @@ ...@@ -425,17 +424,4 @@
.icon-yw-icon { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489); .icon-yw-icon { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
background-position: calc(100vmin * (1173 / 768) * -0.18414322250639387) calc(100vmin * (1173 / 768) * -0.6751918158567775);} background-position: calc(100vmin * (1173 / 768) * -0.18414322250639387) calc(100vmin * (1173 / 768) * -0.6751918158567775);}
.icon-zj-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .icon-zj-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.1402387041773231) calc(100vmin * (1173 / 768) * -0.6986359761295823);} background-position: calc(100vmin * (1173 / 768) * -0.1402387041773231) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
<<<<<<< HEAD
.icon-green-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.23358908780903667) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-normal { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.25191815856777494) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-pdf-xl { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04774083546462063);
background-position: calc(100vmin * (1173 / 768) * -0.27408354646206307) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-up-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.27024722932651324) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
=======
.icon-pdf-xl { width: calc(100vmin * (1173 / 768) * 0.04774083546462063); height: calc(100vmin * (1173 / 768) * 0.04774083546462063);
background-position: calc(100vmin * (1173 / 768) * -0.27408354646206307) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
>>>>>>> 34c2de92db21e1379e36b7dc81196e3b65332eee
\ No newline at end of file \ No newline at end of file

2.92 MB | W: | H:

2.92 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
<template> <template>
<view class="employee-list"> <view class="employee-list">
<template v-for="(i, index) in list"> <template v-for="(i, index) in list">
<view <view :key="index" @click="choose(i)" :class="['item flex', { active: checkActive(i) }]">
:key="index"
@click="choose(i)"
:class="['item flex', { active: checkActive(i) }]"
>
<view class="sprite-icon icon-tag-checked"></view> <view class="sprite-icon icon-tag-checked"></view>
{{ i.staffName }} {{ i.staffName }}
</view> </view>
......
const target = ['ip', 'dev', 'uat', 'prod', 'beta'] const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 1 const index = 2
/** /**
* *
0本地 0本地
......
...@@ -87,7 +87,18 @@ export default { ...@@ -87,7 +87,18 @@ export default {
methods: { methods: {
open(data) { open(data) {
this.currentId = '' this.currentId = ''
this.data = data console.log('data', data)
if (data && data.zyPayUrl) {
const urls = data.zyPayUrl.split(',').filter(url => url.trim())
this.$set(this.contractData, this.uploadField.key, urls.map(url => ({
url: url.trim(),
type: this.getFileTypeFromUrl(url.trim()),
name: this.getFileNameFromUrl(url.trim()),
size: 0 // 从字符串无法获取文件大小
})))
console.log('this.contractData', this.contractData)
}
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.popup.open() this.$refs.popup.open()
}) })
...@@ -270,7 +281,7 @@ export default { ...@@ -270,7 +281,7 @@ export default {
// 获取合同文件数组 // 获取合同文件数组
getContractFiles() { getContractFiles() {
const files = this.contractData[this.uploadField.key] const files = this.contractData[this.uploadField.key]
return Array.isArray(files) ? files : [] return Array.isArray(files) ? files : []
}, },
// 检查是否是PDF文件 // 检查是否是PDF文件
...@@ -367,10 +378,19 @@ export default { ...@@ -367,10 +378,19 @@ export default {
} }
return true return true
}, },
confirm () { confirm() {
if (this.validate){ if (this.validate) {
this.$emit('onConfirm',this.contractData) this.$emit('onConfirm', this.contractData)
} }
},
getFileTypeFromUrl(url) {
const ext = url.split('.').pop().toLowerCase()
return ext === 'pdf' ? 'pdf' : 'image'
},
// 从URL获取文件名
getFileNameFromUrl(url) {
return url.split('/').pop().split('?')[0] || '未知文件'
}, },
} }
} }
......
...@@ -118,13 +118,24 @@ ...@@ -118,13 +118,24 @@
</view> </view>
<NoticePopup ref="notice" title="提示" text="是否撤销该笔客户工单,撤销后客户工单为「已撤销」状态,不再统计订单数和订单金额。" type="warning"></NoticePopup> <NoticePopup ref="notice" title="提示" text="是否撤销该笔客户工单,撤销后客户工单为「已撤销」状态,不再统计订单数和订单金额。" type="warning"></NoticePopup>
<ContractPopup ref="contractPopupRef" @onConfirm="onConfirm"></ContractPopup> <ContractPopup ref="contractPopupRef" @onConfirm="onConfirm"></ContractPopup>
<PublishPopup ref="defeatOrderPopup" popupClass="defeatOrderPopup" type="center" :showClose="true" :isMaskClick="false" title="战败原因">
<template #content>
<view class="defeat-order-box modatcontent">
<textarea class="defeat-textarea" placeholder="请填写战败原因" maxlength="15" v-model="textareaValue" />
</view>
</template>
<template #footer>
<view class="footer-box flex justify-center">
<view class="cancle-btn btn" @click.stop="cancelSelection">取消</view>
<view class="sure-btn btn" @click.stop="confirmSelection">确认</view>
</view>
</template>
</PublishPopup>
</view> </view>
</template> </template>
<script> <script>
import order_mixins from '../../order_mixins.js' import order_mixins from '../../order_mixins.js'
import { interceptionMixin } from '@/mixin/index' import { interceptionMixin } from '@/mixin/index'
import utils from '@/utils/utils'
import { checkDailyReport, showNextModal } from '@/utils/modalUtils'
import PublishPopup from '@/components/PublishPopup.vue' import PublishPopup from '@/components/PublishPopup.vue'
import NoticePopup from '@/components/NoticePopup.vue' import NoticePopup from '@/components/NoticePopup.vue'
import ContractPopup from './ContractPopup.vue' import ContractPopup from './ContractPopup.vue'
...@@ -380,7 +391,8 @@ export default { ...@@ -380,7 +391,8 @@ export default {
3: '去处理', 3: '去处理',
'-1': '去报价', '-1': '去报价',
5: '去处理' 5: '去处理'
} },
textareaValue: ''
} }
}, },
mounted() { mounted() {
...@@ -419,6 +431,7 @@ export default { ...@@ -419,6 +431,7 @@ export default {
break break
case 'defeat': case 'defeat':
// 处理战败 // 处理战败
this.defeatOrder()
break break
case 'revoke': case 'revoke':
// 处理撤销 // 处理撤销
...@@ -468,7 +481,11 @@ export default { ...@@ -468,7 +481,11 @@ export default {
}, },
//上传协议 //上传协议
uploadContract() { uploadContract() {
this.$refs.contractPopupRef.open({}) this.$refs.contractPopupRef.open(this.orderCardDetail)
},
//战败
defeatOrder() {
this.$refs.defeatOrderPopup.open(this.orderCardDetail)
}, },
showRefundAlert(type) { showRefundAlert(type) {
const text = type == 'error' ? '订单已发起退款,禁止标记为错误工单!如需标记错误请联系总部运营。' : '订单已发起退款,禁止撤销!如需撤销请联系总部运营。' const text = type == 'error' ? '订单已发起退款,禁止标记为错误工单!如需标记错误请联系总部运营。' : '订单已发起退款,禁止撤销!如需撤销请联系总部运营。'
...@@ -508,6 +525,31 @@ export default { ...@@ -508,6 +525,31 @@ export default {
} }
}) })
}, },
confirmSelection() {
if (this.textareaValue) {
uni.$api.equityApi
.updateOrderStatus({
id: this.orderCardDetail.id,
orderStatus: -1,
remark: this.textareaValue
})
.then(res => {
uni.showToast({
title: '提交成功',
icon: 'none'
})
setTimeout(() => {
this.$emit('refresh')
// _this.getList();
}, 500)
})
} else {
uni.showToast({
title: '内容不能为空',
icon: 'none'
})
}
},
onConfirm(val) { onConfirm(val) {
console.log(val) console.log(val)
let urls = [] let urls = []
...@@ -568,16 +610,19 @@ export default { ...@@ -568,16 +610,19 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
// Popup样式 // Popup样式
::v-deep .recordOrderPopup .uni-popup__wrapper { ::v-deep .defeatOrderPopup .uni-popup__wrapper {
position: relative; position: relative;
border-radius: toRpx(32); border-radius: toRpx(32);
opacity: 1; opacity: 1;
width: toRpx(848); width: toRpx(848);
height: toRpx(968); height: toRpx(968);
background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%); background-color: #fff !important;
.popup-top-box { .popup-top-box {
text-align: left; text-align: left;
padding: toRpx(48) toRpx(64); padding: toRpx(48) toRpx(64);
border-radius: toRpx(32) toRpx(32) 0 0;
background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%);
&-title { &-title {
color: #1a1a1a; color: #1a1a1a;
font-size: toRpx(40); font-size: toRpx(40);
...@@ -644,6 +689,17 @@ export default { ...@@ -644,6 +689,17 @@ export default {
margin-left: toRpx(32); margin-left: toRpx(32);
} }
} }
.defeat-textarea {
height: toRpx(568);
border-radius: toRpx(16);
background: #f5f7fa;
width: 100%;
padding: toRpx(24);
box-sizing: border-box;
.uni-input-wrapper {
background: #f5f7fa;
}
}
} }
.order-card { .order-card {
padding: toRpx(36) toRpx(32); padding: toRpx(36) toRpx(32);
......
...@@ -119,6 +119,9 @@ export default { ...@@ -119,6 +119,9 @@ export default {
mounted() { mounted() {
uni.$track.add({ eventCode: 'app_order_management' }) uni.$track.add({ eventCode: 'app_order_management' })
this.localUserInfo = uni.$storage.get('userInfo') || {} this.localUserInfo = uni.$storage.get('userInfo') || {}
if (!this.localUserInfo.isSuper && this.localUserInfo.loginRole != 3 && this.localUserInfo?.loginRole != 6) {
this.searchObj.transferIds = [this.localUserInfo.uuid]
}
this.search() this.search()
}, },
methods: { methods: {
...@@ -177,15 +180,12 @@ export default { ...@@ -177,15 +180,12 @@ export default {
}, },
getStatByStatus() { getStatByStatus() {
const localUserInfo = uni.$storage.get('userInfo') const localUserInfo = uni.$storage.get('userInfo')
console.log(this.searchObj) console.log(this.searchObj, 'this.searchObj')
let params = { let params = {
customerName: this.customerName, customerName: this.customerName,
merchantIds: [localUserInfo.shopMerchantId], merchantIds: [localUserInfo.shopMerchantId],
...this.searchObj ...this.searchObj
} }
if (!localUserInfo.isSuper && localUserInfo.loginRole != 3 && localUserInfo?.loginRole != 6) {
params.transferIds = [localUserInfo.uuid]
}
if (params?.zyPayStatus == '1') params.orderStatus = 7 if (params?.zyPayStatus == '1') params.orderStatus = 7
uni.$api.equityApi uni.$api.equityApi
.orderStatistics(params) .orderStatistics(params)
...@@ -252,9 +252,7 @@ export default { ...@@ -252,9 +252,7 @@ export default {
merchantIds: [localUserInfo.shopMerchantId], merchantIds: [localUserInfo.shopMerchantId],
...this.searchObj ...this.searchObj
} }
if (!localUserInfo.isSuper && localUserInfo.loginRole != 3 && localUserInfo?.loginRole != 6) { if (params?.zyPayStatus == '1') params.orderStatus = 7
params.transferIds = [localUserInfo.uuid]
}
// if (staffUuid) { // if (staffUuid) {
// params.transferIds = [staffUuid] // params.transferIds = [staffUuid]
// } else { // } else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!