产品hua
This commit is contained in:
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),t={name:"接待中",components:{CommonBeginReception:()=>"./common_begin_reception.js",ServiceListFurniture:()=>"./serviceListFurniture.js",TagManagementPanel:()=>"./tag_management_panel.js"},data:()=>({activeTab:"status",navbarTop:"88rpx",contentTop:"160rpx",receptionForm:{id:"",customerName:"",contact:"",customerSource:"",gender:"女",age:"",dealershipId:"",dealershipName:"",salesId:"",salesName:"",salesPhone:"",recordingCount:0,intendedModel:"",infoCard:"",remark:"",detailedAddress:"",contactCount:0}}),computed:{computedNavbarTop(){const t=e.index.getSystemInfoSync();return((t.statusBarHeight||20)+44)*(750/(t.windowWidth||t.screenWidth||375))+"rpx"},computedContentTop(){const t=e.index.getSystemInfoSync();return((t.statusBarHeight||20)+44)*(750/(t.windowWidth||t.screenWidth||375))+72+"rpx"}},onLoad(e){this.updateNavbarPosition(),this.loadCurrentUserInfo();const t=e&&e.tab;"reception"!==t&&"status"!==t&&"tag"!==t||(this.activeTab=t)},onShow(){this.$nextTick((()=>{this.updateNavbarPosition(),setTimeout((()=>this.updateNavbarPosition()),50),"status"===this.activeTab?this.$nextTick((()=>{const e=this.$refs.serviceListRef;e&&"function"==typeof e.onServiceStatusRefresh&&e.onServiceStatusRefresh()})):"tag"===this.activeTab&&this.$nextTick((()=>{const e=this.$refs.tagPanelRef;e&&"function"==typeof e.refreshTagList&&e.refreshTagList()}))}))},methods:{updateNavbarPosition(){const t=2*(e.index.getSystemInfoSync().statusBarHeight||20)+88;this.$set(this,"navbarTop",t+"rpx"),this.$set(this,"contentTop",t+72+"rpx"),this.$forceUpdate()},loadCurrentUserInfo(){try{const t=e.index.getStorageSync("backend-login-response")||{};t.userName&&(this.receptionForm.salesName=t.userName),t.phone?this.receptionForm.salesPhone=t.phone:t.userName&&(this.receptionForm.salesPhone=t.userName),t.userId&&(this.receptionForm.salesId=String(t.userId))}catch(t){console.error("[ReceptionInProgress] 加载当前登录用户信息失败:",t)}},goBack(){getCurrentPages().length<=1?e.index.switchTab({url:"/pages/workbench/workbench",fail:e=>{console.error("[ReceptionInProgress] 切回工作台失败:",e)}}):e.index.navigateBack({fail:e=>{console.error("[ReceptionInProgress] 返回失败:",e)}})},switchTab(e){"reception"!==e&&"status"!==e&&"tag"!==e||(this.activeTab=e,"reception"===e?this.resetReceptionForm():"tag"===e&&this.$nextTick((()=>{this.$nextTick((()=>{const e=this.$refs.tagPanelRef;e&&"function"==typeof e.refreshTagList&&e.refreshTagList()}))})))},resetReceptionForm(){this.receptionForm={id:"",customerName:"",contact:"",customerSource:"",gender:"女",age:"",dealershipId:"",dealershipName:"",salesId:"",salesName:"",salesPhone:"",recordingCount:0,intendedModel:"",infoCard:"",remark:"",detailedAddress:"",contactCount:0},this.loadCurrentUserInfo()},onReceptionCancel(){this.resetReceptionForm()},onReceptionSaveSuccess({action:e,data:t}){t&&(this.receptionForm={...this.receptionForm,...t}),this.resetReceptionForm(),"start"===e&&(this.activeTab="status",this.$nextTick((()=>{const e=this.$refs.serviceListRef;e&&"function"==typeof e.onServiceStatusRefresh&&e.onServiceStatusRefresh()})))},onReceptionSaveError({action:e,error:t}){console.error("[ReceptionInProgress] 保存失败:",e,t)}}};if(!Array){(e.resolveComponent("uni-nav-bar")+e.resolveComponent("common-begin-reception")+e.resolveComponent("service-list-furniture")+e.resolveComponent("tag-management-panel"))()}Math;const o=e._export_sfc(t,[["render",function(t,o,n,s,r,a){return e.e({a:e.o(a.goBack,"42"),b:e.p({fixed:!0,statusBar:!0,border:!1,title:"接待中",leftIcon:"left",color:"#333",backgroundColor:"#FFFFFF"}),c:"reception"===r.activeTab?1:"",d:e.o((e=>a.switchTab("reception")),"3d"),e:"status"===r.activeTab?1:"",f:e.o((e=>a.switchTab("status")),"30"),g:"tag"===r.activeTab?1:"",h:e.o((e=>a.switchTab("tag")),"70"),i:a.computedNavbarTop||r.navbarTop,j:"reception"===r.activeTab},"reception"===r.activeTab?{k:a.computedContentTop||r.contentTop,l:e.o(a.onReceptionCancel,"c8"),m:e.o(a.onReceptionSaveSuccess,"98"),n:e.o(a.onReceptionSaveError,"09"),o:e.p({"initial-data":r.receptionForm})}:{},{p:"status"===r.activeTab},"status"===r.activeTab?{q:e.sr("serviceListRef","199fff57-2"),r:a.computedContentTop||r.contentTop,s:e.p({"show-record-state-indicator":!1,"empty-list-hint":"暂无接待中记录","show-reception-entry-shortcut":!0})}:{},{t:"tag"===r.activeTab},"tag"===r.activeTab?{v:e.sr("tagPanelRef","199fff57-3"),w:e.p({"content-top":a.computedContentTop||r.contentTop})}:{})}]]);wx.createPage(o);
|
||||
"use strict";const e=require("../../common/vendor.js"),t={name:"接待中",components:{CommonBeginReception:()=>"./common_begin_reception.js",ServiceListFurniture:()=>"./serviceListFurniture.js",TagManagementPanel:()=>"./tag_management_panel.js"},data:()=>({activeTab:"status",navbarTop:"88rpx",contentTop:"160rpx",receptionForm:{id:"",customerName:"",contact:"",customerSource:"",gender:"女",age:"",dealershipId:"",dealershipName:"",salesId:"",salesName:"",salesPhone:"",recordingCount:0,intendedModel:"",infoCard:"",remark:"",detailedAddress:"",contactCount:0}}),computed:{computedNavbarTop(){const t=e.index.getSystemInfoSync();return((t.statusBarHeight||20)+44)*(750/(t.windowWidth||t.screenWidth||375))+"rpx"},computedContentTop(){const t=e.index.getSystemInfoSync();return((t.statusBarHeight||20)+44)*(750/(t.windowWidth||t.screenWidth||375))+72+"rpx"}},onLoad(e){this.updateNavbarPosition(),this.loadCurrentUserInfo();const t=e&&e.tab;"reception"!==t&&"status"!==t&&"tag"!==t||(this.activeTab=t)},onShow(){this.$nextTick((()=>{this.updateNavbarPosition(),setTimeout((()=>this.updateNavbarPosition()),50),"status"===this.activeTab?this.$nextTick((()=>{const e=this.$refs.serviceListRef;e&&"function"==typeof e.onServiceStatusRefresh&&e.onServiceStatusRefresh()})):"tag"===this.activeTab&&this.$nextTick((()=>{const e=this.$refs.tagPanelRef;e&&"function"==typeof e.refreshTagList&&e.refreshTagList()}))}))},methods:{updateNavbarPosition(){const t=2*(e.index.getSystemInfoSync().statusBarHeight||20)+88;this.$set(this,"navbarTop",t+"rpx"),this.$set(this,"contentTop",t+72+"rpx"),this.$forceUpdate()},loadCurrentUserInfo(){try{const t=e.index.getStorageSync("backend-login-response")||{};t.userName&&(this.receptionForm.salesName=t.userName),t.phone?this.receptionForm.salesPhone=t.phone:t.userName&&(this.receptionForm.salesPhone=t.userName),t.userId&&(this.receptionForm.salesId=String(t.userId))}catch(t){console.error("[ReceptionInProgress] 加载当前登录用户信息失败:",t)}},goBack(){getCurrentPages().length<=1?e.index.switchTab({url:"/pages/workbench/workbench",fail:e=>{console.error("[ReceptionInProgress] 切回工作台失败:",e)}}):e.index.navigateBack({fail:e=>{console.error("[ReceptionInProgress] 返回失败:",e)}})},switchTab(e){"reception"!==e&&"status"!==e&&"tag"!==e||(this.activeTab=e,"reception"===e?this.resetReceptionForm():"tag"===e&&this.$nextTick((()=>{this.$nextTick((()=>{const e=this.$refs.tagPanelRef;e&&"function"==typeof e.refreshTagList&&e.refreshTagList()}))})))},resetReceptionForm(){this.receptionForm={id:"",customerName:"",contact:"",customerSource:"",gender:"女",age:"",dealershipId:"",dealershipName:"",salesId:"",salesName:"",salesPhone:"",recordingCount:0,intendedModel:"",infoCard:"",remark:"",detailedAddress:"",contactCount:0},this.loadCurrentUserInfo()},onReceptionCancel(){this.resetReceptionForm()},onReceptionSaveSuccess({action:e,data:t}){t&&(this.receptionForm={...this.receptionForm,...t}),this.resetReceptionForm(),"start"===e&&(this.activeTab="status",this.$nextTick((()=>{const e=this.$refs.serviceListRef;e&&"function"==typeof e.onServiceStatusRefresh&&e.onServiceStatusRefresh()})))},onReceptionSaveError({action:e,error:t}){console.error("[ReceptionInProgress] 保存失败:",e,t)}}};if(!Array){(e.resolveComponent("uni-nav-bar")+e.resolveComponent("common-begin-reception")+e.resolveComponent("service-list-furniture")+e.resolveComponent("tag-management-panel"))()}Math;const o=e._export_sfc(t,[["render",function(t,o,n,s,r,a){return e.e({a:e.o(a.goBack,"c3"),b:e.p({fixed:!0,statusBar:!0,border:!1,title:"接待中",leftIcon:"left",color:"#333",backgroundColor:"#FFFFFF"}),c:"reception"===r.activeTab?1:"",d:e.o((e=>a.switchTab("reception")),"4c"),e:"status"===r.activeTab?1:"",f:e.o((e=>a.switchTab("status")),"91"),g:"tag"===r.activeTab?1:"",h:e.o((e=>a.switchTab("tag")),"42"),i:a.computedNavbarTop||r.navbarTop,j:"reception"===r.activeTab},"reception"===r.activeTab?{k:a.computedContentTop||r.contentTop,l:e.o(a.onReceptionCancel,"91"),m:e.o(a.onReceptionSaveSuccess,"49"),n:e.o(a.onReceptionSaveError,"86"),o:e.p({"initial-data":r.receptionForm})}:{},{p:"status"===r.activeTab},"status"===r.activeTab?{q:e.sr("serviceListRef","199fff57-2"),r:a.computedContentTop||r.contentTop,s:e.p({"show-record-state-indicator":!1,"empty-list-hint":"暂无接待中记录","show-reception-entry-shortcut":!0})}:{},{t:"tag"===r.activeTab},"tag"===r.activeTab?{v:e.sr("tagPanelRef","199fff57-3"),w:e.p({"content-top":a.computedContentTop||r.contentTop})}:{})}]]);wx.createPage(o);
|
||||
|
||||
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../common/vendor.js"),n={name:"SalesScenarioNew",props:{contentTop:{type:String,default:"0rpx"},contentBottom:{type:String,default:"0rpx"}},methods:{goReceptionInProgressPage(n,o){let t="/pages-subpackage/furniture_reception/reception_in_progress";"reception"!==o&&"status"!==o&&"tag"!==o||(t+=`?tab=${encodeURIComponent(o)}`),e.index.navigateTo({url:t,fail:()=>{e.index.showToast({title:n||"页面打开失败",icon:"none"})}})},openReceptionInProgress(){this.goReceptionInProgressPage("跳转接待中失败")},openCustomerTab(n){const o=`/pages-subpackage/furniture_customer/furniture_customer?tab=${n}`;e.index.navigateTo({url:o})},openScriptManagement(){e.index.navigateTo({url:"/pages-subpackage/furniture_reception/script_management_my",fail:()=>{e.index.showToast({title:"跳转话术管理失败",icon:"none"})}})},openSopManagement(){e.index.navigateTo({url:"/pages-subpackage/furniture_reception/sop_management_my",fail:()=>{e.index.showToast({title:"跳转SOP管理失败",icon:"none"})}})}}};const o=e._export_sfc(n,[["render",function(n,o,t,a,r,p){return{a:e.o((e=>p.goReceptionInProgressPage("跳转开始接待失败","reception")),"32"),b:e.o((e=>p.goReceptionInProgressPage("跳转标签管理失败","tag")),"59"),c:e.o(((...e)=>p.openScriptManagement&&p.openScriptManagement(...e)),"c2"),d:e.o(((...e)=>p.openSopManagement&&p.openSopManagement(...e)),"6b"),e:e.o((e=>p.openCustomerTab("service")),"dc"),f:e.o((e=>p.openCustomerTab("customer")),"d4"),g:t.contentTop,h:t.contentBottom}}],["__scopeId","data-v-409095ce"]]);wx.createComponent(o);
|
||||
"use strict";const e=require("../../../common/vendor.js"),n={name:"SalesScenarioNew",props:{contentTop:{type:String,default:"0rpx"},contentBottom:{type:String,default:"0rpx"}},methods:{goReceptionInProgressPage(n,o){let t="/pages-subpackage/furniture_reception/reception_in_progress";"reception"!==o&&"status"!==o&&"tag"!==o||(t+=`?tab=${encodeURIComponent(o)}`),e.index.navigateTo({url:t,fail:()=>{e.index.showToast({title:n||"页面打开失败",icon:"none"})}})},openReceptionInProgress(){this.goReceptionInProgressPage("跳转接待中失败")},openCustomerTab(n){const o=`/pages-subpackage/furniture_customer/furniture_customer?tab=${n}`;e.index.navigateTo({url:o})},openScriptManagement(){e.index.navigateTo({url:"/pages-subpackage/furniture_reception/script_management_my",fail:()=>{e.index.showToast({title:"跳转话术管理失败",icon:"none"})}})},openSopManagement(){e.index.navigateTo({url:"/pages-subpackage/furniture_reception/sop_management_my",fail:()=>{e.index.showToast({title:"跳转SOP管理失败",icon:"none"})}})}}};const o=e._export_sfc(n,[["render",function(n,o,t,a,r,p){return{a:e.o((e=>p.goReceptionInProgressPage("跳转开始接待失败","reception")),"23"),b:e.o((e=>p.goReceptionInProgressPage("跳转标签管理失败","tag")),"c5"),c:e.o(((...e)=>p.openScriptManagement&&p.openScriptManagement(...e)),"c1"),d:e.o(((...e)=>p.openSopManagement&&p.openSopManagement(...e)),"a4"),e:e.o((e=>p.openCustomerTab("service")),"f8"),f:e.o((e=>p.openCustomerTab("customer")),"00"),g:t.contentTop,h:t.contentBottom}}],["__scopeId","data-v-cf5013bb"]]);wx.createComponent(o);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view class="scenario-wrapper data-v-409095ce" style="{{'top:' + g + ';' + ('bottom:' + h)}}"><scroll-view class="content-scroll data-v-409095ce" scroll-y="true"><view class="category-section two-column data-v-409095ce"><view class="category-header data-v-409095ce"><text class="category-icon data-v-409095ce">🏷️</text><text class="category-title data-v-409095ce">接待</text></view><view class="function-grid data-v-409095ce"><view class="function-item data-v-409095ce" bindtap="{{a}}"><view class="function-icon data-v-409095ce">🛎️</view><text class="function-name data-v-409095ce">开始接待</text><text class="function-desc data-v-409095ce"></text></view><view class="function-item data-v-409095ce" bindtap="{{b}}"><view class="function-icon data-v-409095ce">🗂️</view><text class="function-name data-v-409095ce">标签管理</text><text class="function-desc data-v-409095ce"></text></view><view class="function-item data-v-409095ce" bindtap="{{c}}"><view class="function-icon data-v-409095ce">📚</view><text class="function-name data-v-409095ce">话术管理</text><text class="function-desc data-v-409095ce"></text></view><view class="function-item data-v-409095ce" bindtap="{{d}}"><view class="function-icon data-v-409095ce">📘</view><text class="function-name data-v-409095ce">SOP管理</text><text class="function-desc data-v-409095ce"></text></view></view></view><view class="category-section two-column data-v-409095ce"><view class="category-header data-v-409095ce"><text class="category-icon data-v-409095ce">👤</text><text class="category-title data-v-409095ce">客户</text></view><view class="function-grid data-v-409095ce"><view class="function-item data-v-409095ce" bindtap="{{e}}"><view class="function-icon data-v-409095ce">📝</view><text class="function-name data-v-409095ce">服务记录</text><text class="function-desc data-v-409095ce"></text></view><view class="function-item data-v-409095ce" bindtap="{{f}}"><view class="function-icon data-v-409095ce">👥</view><text class="function-name data-v-409095ce">客户</text><text class="function-desc data-v-409095ce"></text></view></view></view></scroll-view></view>
|
||||
<view class="scenario-wrapper data-v-cf5013bb" style="{{'top:' + g + ';' + ('bottom:' + h)}}"><scroll-view class="content-scroll data-v-cf5013bb" scroll-y="true"><view class="category-section two-column data-v-cf5013bb"><view class="category-header data-v-cf5013bb"><text class="category-icon data-v-cf5013bb">🏷️</text><text class="category-title data-v-cf5013bb">接待</text></view><view class="function-grid data-v-cf5013bb"><view class="function-item data-v-cf5013bb" bindtap="{{a}}"><view class="function-icon data-v-cf5013bb">🛎️</view><text class="function-name data-v-cf5013bb">开始接待</text><text class="function-desc data-v-cf5013bb"></text></view><view class="function-item data-v-cf5013bb" bindtap="{{b}}"><view class="function-icon data-v-cf5013bb">🗂️</view><text class="function-name data-v-cf5013bb">标签管理</text><text class="function-desc data-v-cf5013bb"></text></view><view class="function-item data-v-cf5013bb" bindtap="{{c}}"><view class="function-icon data-v-cf5013bb">📚</view><text class="function-name data-v-cf5013bb">话术管理</text><text class="function-desc data-v-cf5013bb"></text></view><view class="function-item data-v-cf5013bb" bindtap="{{d}}"><view class="function-icon data-v-cf5013bb">📘</view><text class="function-name data-v-cf5013bb">SOP管理</text><text class="function-desc data-v-cf5013bb"></text></view></view></view><view class="category-section two-column data-v-cf5013bb"><view class="category-header data-v-cf5013bb"><text class="category-icon data-v-cf5013bb">👤</text><text class="category-title data-v-cf5013bb">客户</text></view><view class="function-grid data-v-cf5013bb"><view class="function-item data-v-cf5013bb" bindtap="{{e}}"><view class="function-icon data-v-cf5013bb">📝</view><text class="function-name data-v-cf5013bb">服务记录</text><text class="function-desc data-v-cf5013bb"></text></view><view class="function-item data-v-cf5013bb" bindtap="{{f}}"><view class="function-icon data-v-cf5013bb">👥</view><text class="function-name data-v-cf5013bb">客户</text><text class="function-desc data-v-cf5013bb"></text></view></view></view></scroll-view></view>
|
||||
@@ -1 +1 @@
|
||||
.scenario-wrapper.data-v-409095ce{position:absolute;left:0;right:0}.content-scroll.data-v-409095ce{height:100%}.category-section.data-v-409095ce{margin:20rpx 30rpx;background:#fff;border-radius:16rpx;overflow:hidden;box-shadow:0 2rpx 8rpx rgba(0,0,0,.04)}.category-section.data-v-409095ce:first-child{margin-top:0}.category-section.data-v-409095ce:last-child{margin-bottom:0}.category-header.data-v-409095ce{display:flex;align-items:center;padding:30rpx;background:#fff;border-bottom:1rpx solid #f0f0f0}.category-icon.data-v-409095ce{font-size:32rpx;margin-right:20rpx}.category-title.data-v-409095ce{font-size:32rpx;font-weight:500;color:#333}.function-grid.data-v-409095ce{display:flex;flex-wrap:wrap;padding:10rpx}.two-column .function-item.data-v-409095ce{flex:1;background:#fff;border-radius:12rpx;padding:24rpx 16rpx;margin:0 5rpx;text-align:center;box-shadow:0 2rpx 4rpx rgba(0,0,0,.04);transition:all .3s ease;border:1rpx solid #f0f0f0}.function-item.data-v-409095ce{min-width:42%}.function-item.data-v-409095ce:active{transform:scale(.95);box-shadow:0 1rpx 2rpx rgba(0,0,0,.1)}.function-icon.data-v-409095ce{font-size:48rpx;margin-bottom:12rpx}.function-name.data-v-409095ce{display:block;font-size:28rpx;font-weight:500;color:#333;margin-bottom:8rpx}.function-desc.data-v-409095ce{display:block;font-size:24rpx;color:#666;line-height:1.4}
|
||||
.scenario-wrapper.data-v-cf5013bb{position:absolute;left:0;right:0}.content-scroll.data-v-cf5013bb{height:100%}.category-section.data-v-cf5013bb{margin:20rpx 30rpx;background:#fff;border-radius:16rpx;overflow:hidden;box-shadow:0 2rpx 8rpx rgba(0,0,0,.04)}.category-section.data-v-cf5013bb:first-child{margin-top:0}.category-section.data-v-cf5013bb:last-child{margin-bottom:0}.category-header.data-v-cf5013bb{display:flex;align-items:center;padding:30rpx;background:#fff;border-bottom:1rpx solid #f0f0f0}.category-icon.data-v-cf5013bb{font-size:32rpx;margin-right:20rpx}.category-title.data-v-cf5013bb{font-size:32rpx;font-weight:500;color:#333}.function-grid.data-v-cf5013bb{display:flex;flex-wrap:wrap;padding:10rpx}.two-column .function-item.data-v-cf5013bb{flex:1;background:#fff;border-radius:12rpx;padding:24rpx 16rpx;margin:0 5rpx;text-align:center;box-shadow:0 2rpx 4rpx rgba(0,0,0,.04);transition:all .3s ease;border:1rpx solid #f0f0f0}.function-item.data-v-cf5013bb{min-width:42%}.function-item.data-v-cf5013bb:active{transform:scale(.95);box-shadow:0 1rpx 2rpx rgba(0,0,0,.1)}.function-icon.data-v-cf5013bb{font-size:48rpx;margin-bottom:12rpx}.function-name.data-v-cf5013bb{display:block;font-size:28rpx;font-weight:500;color:#333;margin-bottom:8rpx}.function-desc.data-v-cf5013bb{display:block;font-size:24rpx;color:#666;line-height:1.4}
|
||||
|
||||
Reference in New Issue
Block a user