| | |
| | | |
| | | .search-bg { |
| | | background-color: #FFF; |
| | | padding: 16rpx; |
| | | position: sticky; |
| | | top: 88rpx; |
| | | /* #ifdef APP-PLUS */ |
| | | top: 148rpx; |
| | | /* #endif */ |
| | | |
| | | } |
| | | |
| | | @font-face { |
| | |
| | | "style": { |
| | | "navigationStyle": "custom", |
| | | "navigationBarTitleText": "信息公海" |
| | | |
| | | } |
| | | }, |
| | | { |
| | |
| | | "navigationBarTextStyle": "black", |
| | | // "navigationBarTitleText": "CRM", |
| | | "navigationBarBackgroundColor": "#FFFFFF", |
| | | "backgroundColor": "#fff" |
| | | "backgroundColor": "#fff", |
| | | "app-plus": { |
| | | "bounce": "none" |
| | | } |
| | | |
| | | }, |
| | | "uniIdRouter": {}, |
| | | "tabBar": { |
| | |
| | | }, 1000); |
| | | }, |
| | | back(it) { |
| | | console.log(it); |
| | | uni.$emit('isRefresh', it) |
| | | uni.navigateBack({ |
| | | |
| | |
| | | <view class="status_bar"> |
| | | <!-- 这里是状态栏 --> |
| | | </view> |
| | | <uni-nav-bar left-icon="left" title="甲方单位" @clickLeft="back" @clickRight="scan" :fixed="true" |
| | | <uni-nav-bar left-icon="left" title="信息公海" @clickLeft="back" @clickRight="scan" :fixed="true" |
| | | :border="false" rightWidth="160rpx" leftWidth="160rpx" |
| | | > |
| | | <block slot="right"> |
| | |
| | | </uni-nav-bar> |
| | | <!-- 搜索框 --> |
| | | <view class="search-bg"> |
| | | <uni-search-bar placeholder="客户代号/名称" bgColor="#f4f4f4" @confirm="search" /> |
| | | <!-- <uni-search-bar placeholder="客户代号/名称" bgColor="#f4f4f4" @confirm="search" /> --> |
| | | <u-search placeholder="客户代号/名称" v-model="keyword" :clearabled="true" @custom="search()"></u-search> |
| | | </view> |
| | | |
| | | |
| | | <view> |
| | | <!-- 客户列表 --> |
| | | <view class="c-list" @click="getDetails(item.id)" v-for="(item,index) in csmtrList" :key="index"> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | keyword: '', |
| | | csmtrList: [], |
| | | last_id: '', |
| | | user: { |
| | | username: '', |
| | | id: 0, |
| | | type: '' |
| | | type: 'user_id' |
| | | }, |
| | | userid: 0, |
| | | reload: false, |
| | |
| | | } |
| | | }, |
| | | onShow() { |
| | | |
| | | let that = this |
| | | uni.$on('isRefresh',function(data){ |
| | | console.log(data); |
| | | that.user.username = data.title |
| | | that.user.id = data.id |
| | | that.user.type = data.key |
| | | that.falg = false |
| | | }) |
| | | |
| | | setTimeout(()=> { |
| | | this.getCsmtr1() |
| | | },50) |
| | | if (this.falg) { |
| | | this.getDetail() |
| | | } |
| | | setTimeout(()=> { |
| | | this.getCsmtr1() |
| | | },50) |
| | | }, |
| | | onReachBottom() { |
| | | this.status = 'more'; |
| | |
| | | async getDetail() { |
| | | let res = await user.getDetail() |
| | | if (res.code === 200) { |
| | | console.log(res); |
| | | this.user.username = res.data.username |
| | | this.user.id = res.data.id |
| | | this.type = res.data.type |
| | | |
| | | } else if (res.code === 403) { |
| | | this.backLogin(res) |
| | | } |
| | |
| | | }, |
| | | open() { |
| | | this.show = true |
| | | console.log(this.columns); |
| | | }, |
| | | getUserTree() { |
| | | let _this = this |
| | |
| | | getCsmtr1(e) { |
| | | let that = this |
| | | that.csmtrList = [] |
| | | uni.showLoading({}) |
| | | let param = {curr:1,limit:4,dept_id: 0,user_id: 67} |
| | | if (this.user.type == 'user_id') { |
| | | param = {curr:1,limit:4,user_id: that.user.id} |
| | |
| | | data: param, |
| | | method:'GET', |
| | | success(result) { |
| | | console.log(result); |
| | | if (result.statusCode === 404) { |
| | | uni.showToast({title: '请重新登录', icon: "none", position: 'top'}) |
| | | return |
| | |
| | | }); |
| | | }, 1000); |
| | | }, |
| | | complete() { |
| | | uni.hideLoading() |
| | | } |
| | | }) |
| | | }, |
| | | getCsmtr() { |
| | | let that = this |
| | | uni.showLoading({}) |
| | | let param = {curr:that.curr,limit:4,dept_id: 0,user_id: 67} |
| | | if (this.user.type == 'user_id') { |
| | | param = {curr:1,limit:4,user_id: that.user.id} |
| | | param = {curr:that.curr,limit:4,user_id: that.user.id} |
| | | } else if(this.user.type == 'dept_id') { |
| | | param = {curr:1,limit:4,dept_id: that.user.id} |
| | | param = {curr:that.curr,limit:4,dept_id: that.user.id} |
| | | } else { |
| | | param = {curr:1,limit:4} |
| | | param = {curr:that.curr,limit:4} |
| | | } |
| | | uni.request({ |
| | | url: that.baseUrl + '/cstmr/page/auth', |
| | |
| | | }); |
| | | }, 1000); |
| | | }, |
| | | complete() { |
| | | uni.hideLoading() |
| | | } |
| | | }) |
| | | }, |
| | | getDetails(id) { |
| | |
| | | }, |
| | | // --- |
| | | search() { |
| | | |
| | | let _this = this |
| | | let param = {curr:1,limit:100,conditionName: 'name'} |
| | | if (this.user.type == 'user_id') { |
| | | param['user_id'] = _this.user.id |
| | | param['condition'] = _this.keyword |
| | | } else if(this.user.type == 'dept_id') { |
| | | param['dept_id'] = _this.user.id |
| | | param['condition'] = _this.keyword |
| | | } else { |
| | | param['condition'] = _this.keyword |
| | | } |
| | | uni.request({ |
| | | url: `${_this.baseUrl}/cstmr/page/auth`, |
| | | header: {'token' : uni.getStorageSync('token'),}, |
| | | data: param, |
| | | success(res) { |
| | | res = res.data |
| | | console.log(res); |
| | | _this.csmtrList = res.data.records |
| | | } |
| | | }) |
| | | }, |
| | | backLogin(res) { |
| | | uni.showToast({title: res.msg, icon: "none", position: 'top'}) |
| | |
| | | height: var(--status-bar-height); |
| | | width: 100%; |
| | | background-color: #FFF; |
| | | position: sticky; |
| | | top: 0; |
| | | } |
| | | |
| | | .uni-nav-bar-text { |
| | |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | eventChannel.on('saleManage', function(data) { |
| | | _this.id = data.data |
| | | console.log(data.data); |
| | | _this.init() |
| | | }) |
| | | this.init() |
| | | |
| | | this.autoLoad('follower','') |
| | | setTimeout(()=>{ |
| | | this.getFollowers() |
| | |
| | | _this.list = [] |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | eventChannel.on('priOnlineDetl', function(data) { |
| | | console.log(data.data); |
| | | _this.list.push(data.data) |
| | | _this.settle = data.data.settle |
| | | if (data.data.settle == 1) { |
| | |
| | | } |
| | | }, |
| | | onLoad(option) { |
| | | |
| | | if (option == '') { |
| | | console.log(option); |
| | | console.log('开始'); |
| | | if (JSON.stringify(option) != "{}") { |
| | | console.log('pd1'); |
| | | this.id = option.id |
| | | this.init() |
| | | this.autoLoad('follower','') |
| | |
| | | this.getFollowers() |
| | | },500) |
| | | } else { |
| | | console.log('cd2'); |
| | | let _this = this |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | eventChannel.on('cstmr', function(data) { |
| | | _this.id = data.data |
| | | console.log(data.data); |
| | | _this.init() |
| | | }) |
| | | this.init() |
| | | |
| | | this.autoLoad('follower','') |
| | | setTimeout(()=>{ |
| | | |
| | | this.getFollowers() |
| | | },500) |
| | | } |
| | |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | eventChannel.on('saleManage', function(data) { |
| | | _this.id = data.data |
| | | _this.init() |
| | | console.log(data.data); |
| | | }) |
| | | this.init() |
| | | this.autoLoad('follower','') |
| | | setTimeout(()=>{ |
| | | this.getFollowers() |
| | |
| | | |
| | | var isReady=false;var onReadyCallbacks=[]; |
| | | var isServiceReady=false;var onServiceReadyCallbacks=[]; |
| | | var __uniConfig = {"pages":["pages/login/login","pages/index/index","pages/home/home","pages/business/business","pages/user/user","pages/user/user_detail/userDetail","pages/business/cstmr/csmtr","pages/business/cstmr/addCsmtr","pages/business/cstmr/cstmrDetails","pages/business/saleManage/saleManage","pages/business/saleManage/addSaleManage","pages/business/saleManage/modiSaleManage","pages/business/saleManage/saleManageDetails","pages/business/saleManage/cstmrDetls","pages/business/plan/plan","pages/business/plan/addPlan","pages/business/plan/addPlan2","pages/business/plan/addPlan3","pages/business/plan/addPlan4","pages/business/plan/addPlan5","pages/business/plan/addPlan6","pages/business/plan/planDetails","pages/authority/authority","pages/business/cstmrInfo/cstmrInfo","pages/business/cstmr/modiCsmter","pages/business/goBusiness/goBusiness","pages/business/goBusiness/addgoBusiness","pages/business/goBusiness/goBusinessDetil","pages/business/goBusiness/reimburseOnline","pages/business/goBusiness/reimburseOnlineDetl","pages/business/goBusiness/test","pages/business/goBusiness/modiReimburseOnlineDetl","pages/business/pricing/priOnline","pages/business/pricing/priQuote","pages/business/pricing/contract","pages/business/goBusiness/businessTripOther","pages/business/pricing/priOnlineDetl","pages/business/pricing/priQuoteDetl","pages/business/pricing/contractDetl"],"window":{"navigationBarTextStyle":"black","navigationBarBackgroundColor":"#FFFFFF","backgroundColor":"#fff"},"tabBar":{"color":"#7A7E83","selectedColor":"#67C23A","borderStyle":"black","backgroundColor":"#ffffff","list":[{"pagePath":"pages/index/index","iconPath":"static/image/home.png","selectedIconPath":"static/image/home (1).png","text":"主页"},{"pagePath":"pages/business/business","iconPath":"static/image/desk.png","selectedIconPath":"static/image/desk (1).png","text":"业务"},{"pagePath":"pages/user/user","iconPath":"static/image/kehufuwu (2).png","selectedIconPath":"static/image/kehufuwu.png","text":"个人中心"}]},"darkmode":false,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"crm_app","compilerVersion":"3.96","entryPagePath":"pages/login/login","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}}; |
| | | var __uniConfig = {"pages":["pages/login/login","pages/index/index","pages/home/home","pages/business/business","pages/user/user","pages/user/user_detail/userDetail","pages/business/cstmr/csmtr","pages/business/cstmr/addCsmtr","pages/business/cstmr/cstmrDetails","pages/business/saleManage/saleManage","pages/business/saleManage/addSaleManage","pages/business/saleManage/modiSaleManage","pages/business/saleManage/saleManageDetails","pages/business/saleManage/cstmrDetls","pages/business/plan/plan","pages/business/plan/addPlan","pages/business/plan/addPlan2","pages/business/plan/addPlan3","pages/business/plan/addPlan4","pages/business/plan/addPlan5","pages/business/plan/addPlan6","pages/business/plan/planDetails","pages/authority/authority","pages/business/cstmrInfo/cstmrInfo","pages/business/cstmr/modiCsmter","pages/business/goBusiness/goBusiness","pages/business/goBusiness/addgoBusiness","pages/business/goBusiness/goBusinessDetil","pages/business/goBusiness/reimburseOnline","pages/business/goBusiness/reimburseOnlineDetl","pages/business/goBusiness/test","pages/business/goBusiness/modiReimburseOnlineDetl","pages/business/pricing/priOnline","pages/business/pricing/priQuote","pages/business/pricing/contract","pages/business/goBusiness/businessTripOther","pages/business/pricing/priOnlineDetl","pages/business/pricing/priQuoteDetl","pages/business/pricing/contractDetl"],"window":{"navigationBarTextStyle":"black","navigationBarBackgroundColor":"#FFFFFF","backgroundColor":"#fff","bounce":"none"},"tabBar":{"color":"#7A7E83","selectedColor":"#67C23A","borderStyle":"black","backgroundColor":"#ffffff","list":[{"pagePath":"pages/index/index","iconPath":"static/image/home.png","selectedIconPath":"static/image/home (1).png","text":"主页"},{"pagePath":"pages/business/business","iconPath":"static/image/desk.png","selectedIconPath":"static/image/desk (1).png","text":"业务"},{"pagePath":"pages/user/user","iconPath":"static/image/kehufuwu (2).png","selectedIconPath":"static/image/kehufuwu.png","text":"个人中心"}]},"darkmode":false,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"crm_app","compilerVersion":"3.96","entryPagePath":"pages/login/login","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}}; |
| | | var __uniRoutes = [{"path":"/pages/login/login","meta":{"isQuit":true},"window":{"navigationBarTitleText":"登录"}},{"path":"/pages/index/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"中扬CRM"}},{"path":"/pages/home/home","meta":{},"window":{"navigationBarTitleText":"主页"}},{"path":"/pages/business/business","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"业务"}},{"path":"/pages/user/user","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"个人中心"}},{"path":"/pages/user/user_detail/userDetail","meta":{},"window":{"navigationBarTitleText":"个人信息"}},{"path":"/pages/business/cstmr/csmtr","meta":{},"window":{"navigationStyle":"custom","navigationBarTitleText":"信息公海"}},{"path":"/pages/business/cstmr/addCsmtr","meta":{},"window":{"navigationBarTitleText":"添加甲方单位"}},{"path":"/pages/business/cstmr/cstmrDetails","meta":{},"window":{"navigationBarTitleText":"资料详情"}},{"path":"/pages/business/saleManage/saleManage","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/business/saleManage/addSaleManage","meta":{},"window":{"navigationBarTitleText":"添加跟踪项目"}},{"path":"/pages/business/saleManage/modiSaleManage","meta":{},"window":{"navigationBarTitleText":"修改跟踪项目"}},{"path":"/pages/business/saleManage/saleManageDetails","meta":{},"window":{"navigationBarTitleText":"资料详情"}},{"path":"/pages/business/saleManage/cstmrDetls","meta":{},"window":{"navigationBarTitleText":"资料详情"}},{"path":"/pages/business/plan/plan","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/business/plan/addPlan","meta":{},"window":{"navigationBarTitleText":"添加规划申请单-立体库(货架)"}},{"path":"/pages/business/plan/addPlan2","meta":{},"window":{"navigationBarTitleText":"添加规划申请单-立体库(集成)"}},{"path":"/pages/business/plan/addPlan3","meta":{},"window":{"navigationBarTitleText":"四向穿梭库/两向穿梭库"}},{"path":"/pages/business/plan/addPlan4","meta":{},"window":{"navigationBarTitleText":"阁楼货架/钢平台"}},{"path":"/pages/business/plan/addPlan5","meta":{},"window":{"navigationBarTitleText":"周转容器"}},{"path":"/pages/business/plan/addPlan6","meta":{},"window":{"navigationBarTitleText":"平库"}},{"path":"/pages/business/plan/planDetails","meta":{},"window":{"navigationBarTitleText":"资料详情"}},{"path":"/pages/authority/authority","meta":{},"window":{"navigationBarTitleText":"账号"}},{"path":"/pages/business/cstmrInfo/cstmrInfo","meta":{},"window":{"navigationBarTitleText":"客户信息","navigationStyle":"custom","enablePullDownRefresh":false}},{"path":"/pages/business/cstmr/modiCsmter","meta":{},"window":{"navigationBarTitleText":"修改详情","enablePullDownRefresh":false}},{"path":"/pages/business/goBusiness/goBusiness","meta":{},"window":{"navigationBarTitleText":"出差","enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/business/goBusiness/addgoBusiness","meta":{},"window":{"navigationBarTitleText":"出差申请","enablePullDownRefresh":false}},{"path":"/pages/business/goBusiness/goBusinessDetil","meta":{},"window":{"navigationBarTitleText":"详情","enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/business/goBusiness/reimburseOnline","meta":{},"window":{"navigationBarTitleText":"报销申请","enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/business/goBusiness/reimburseOnlineDetl","meta":{},"window":{"navigationBarTitleText":"详情","enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/business/goBusiness/test","meta":{},"window":{"navigationBarTitleText":"测试","enablePullDownRefresh":false}},{"path":"/pages/business/goBusiness/modiReimburseOnlineDetl","meta":{},"window":{"navigationBarTitleText":"修改报销审批","enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/business/pricing/priOnline","meta":{},"window":{"navigationBarTitleText":"核价管理","enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/business/pricing/priQuote","meta":{},"window":{"navigationBarTitleText":"报价管理","enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/business/pricing/contract","meta":{},"window":{"navigationBarTitleText":"合同管理","enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/business/goBusiness/businessTripOther","meta":{},"window":{"navigationBarTitleText":"其他出差","enablePullDownRefresh":false,"navigationStyle":"custom"}},{"path":"/pages/business/pricing/priOnlineDetl","meta":{},"window":{"navigationBarTitleText":"详情","enablePullDownRefresh":false}},{"path":"/pages/business/pricing/priQuoteDetl","meta":{},"window":{"navigationBarTitleText":"详情","enablePullDownRefresh":false}},{"path":"/pages/business/pricing/contractDetl","meta":{},"window":{"navigationBarTitleText":"详情","enablePullDownRefresh":false}}]; |
| | | __uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); |
| | | __uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); |