Commit 7a637b55 authored by xiangzj's avatar xiangzj

终端直配

parent 29491080
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
// "appid" : "__UNI__EDB6A1F", // "appid" : "__UNI__EDB6A1F",
"appid" : "__UNI__EDB6A1F", "appid" : "__UNI__EDB6A1F",
"description" : "订货系统", "description" : "订货系统",
"versionName" : "1.1.29", "versionName" : "1.1.38",
"versionCode" : "10129", "versionCode" : 10138,
"transformPx" : false, "transformPx" : false,
"app-plus" : { "app-plus" : {
/* 5+App特有相关 */ /* 5+App特有相关 */
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
}, },
"image-tools": { "image-tools": {
"version": "1.4.0", "version": "1.4.0",
"resolved": "https://registry.npmjs.org/image-tools/-/image-tools-1.4.0.tgz", "resolved": "https://registry.npmmirror.com/image-tools/-/image-tools-1.4.0.tgz",
"integrity": "sha512-TKtvJ6iUwM0mfaD4keMnk1ENHFC470QEjBfA3IlvKdEOufzvWbjbaoNcoyYq6HlViF8+d5tOS1ooE6j7CHf1lQ==" "integrity": "sha512-TKtvJ6iUwM0mfaD4keMnk1ENHFC470QEjBfA3IlvKdEOufzvWbjbaoNcoyYq6HlViF8+d5tOS1ooE6j7CHf1lQ=="
}, },
"js-base64": { "js-base64": {
......
...@@ -297,6 +297,24 @@ ...@@ -297,6 +297,24 @@
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
}, },
{
"path": "pages/select-agent/select-agent",
"style": {
"app-plus": {
"titleNView": {
"titleAlign": "left",
"titleColor": "#333",
"titleSize": "17px",
"backgroundColor": "#fff",
"titleText": "经销商选择",
"autoBackButton": true
},
"bounce": "none"
},
"enablePullDownRefresh": true
}
},
{ {
"path": "pages/select-paint-design/select-paint-design", "path": "pages/select-paint-design/select-paint-design",
"style": { "style": {
......
<template> <template>
<view class="order view"> <view class="order view">
<view class="status_bar" :style="navHeight"></view> <view class="status_bar" :style="navHeight"></view>
<view class="listview"> <view class="listview" v-if="!isChildCustomer">
<view class="cell-list"> <view class="cell-list">
<view class="cell-list-block" @click="goOrder('quota')"> <view class="cell-list-block" @click="goOrder('quota')">
<image class="icon-address" src="@/static/image/order_quota@3x.png" mode="aspectFit"></image> <image class="icon-address" src="@/static/image/order_quota@3x.png" mode="aspectFit"></image>
...@@ -29,6 +29,9 @@ ...@@ -29,6 +29,9 @@
</view> </view>
</view> </view>
</view> </view>
<view v-else class="no-list">
暂无功能
</view>
</view> </view>
</template> </template>
...@@ -50,7 +53,7 @@ ...@@ -50,7 +53,7 @@
'height': `${this.sysinfo.safeArea.top + 44}px` 'height': `${this.sysinfo.safeArea.top + 44}px`
} }
}, },
...mapState(['sysinfo']) ...mapState(['sysinfo','isChildCustomer'])
}, },
methods: { methods: {
goOrder(type) { goOrder(type) {
...@@ -137,4 +140,8 @@ ...@@ -137,4 +140,8 @@
padding: 0 36rpx 0 16rpx; padding: 0 36rpx 0 16rpx;
align-items: center; align-items: center;
} }
.no-list{
font-weight: 600;
font-size: 14px;
}
</style> </style>
...@@ -22,28 +22,28 @@ ...@@ -22,28 +22,28 @@
<view class="todo-box block"> <view class="todo-box block">
<text class="title">常用操作</text> <text class="title">常用操作</text>
<view class="amount-block"> <view class="amount-block">
<view class="order-amount" @click="goHandle('go-order')"> <view class="order-amount" @click="goHandle('go-order')" v-if='!isChildCustomer'>
<view class="order-amount--wrapper"> <view class="order-amount--wrapper">
<image class="entry-icon" src="@/static/image/order.png" mode="aspectFit"> <image class="entry-icon" src="@/static/image/order.png" mode="aspectFit">
</image> </image>
<text class="order-amount--num">下单</text> <text class="order-amount--num">下单</text>
</view> </view>
</view> </view>
<view class="order-amount" @click="goHandle('purchase')"> <view class="order-amount" @click="goHandle('purchase')" :style="isChildCustomer?'flex:0':''">
<view class="order-amount--wrapper"> <view class="order-amount--wrapper">
<image class="entry-icon" src="@/static/image/purchase.png" mode="aspectFit"> <image class="entry-icon" src="@/static/image/purchase.png" mode="aspectFit">
</image> </image>
<text class="order-amount--num">要货</text> <text class="order-amount--num">要货</text>
</view> </view>
</view> </view>
<view class="order-amount" @click="entryHandle('purchase-plan')"> <view class="order-amount" @click="entryHandle('purchase-plan')" v-if='!isChildCustomer'>
<view class="order-amount--wrapper"> <view class="order-amount--wrapper">
<image class="entry-icon" src="@/static/image/plan.png" mode="aspectFit"> <image class="entry-icon" src="@/static/image/plan.png" mode="aspectFit">
</image> </image>
<text class="order-amount--num">销售计划</text> <text class="order-amount--num">销售计划</text>
</view> </view>
</view> </view>
<view class="order-amount" @click="entryHandle('my-order')"> <view class="order-amount" @click="entryHandle('my-order')" v-if='!isChildCustomer'>
<view class="order-amount--wrapper"> <view class="order-amount--wrapper">
<image class="entry-icon" src="@/static/image/sale.png" mode="aspectFit"> <image class="entry-icon" src="@/static/image/sale.png" mode="aspectFit">
</image> </image>
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
background="none" /> background="none" />
</view> --> </view> -->
</view> </view>
<view class="check-block"> <view class="check-block" v-if='!isChildCustomer'>
<text class="check-date">选择产品:</text> <text class="check-date">选择产品:</text>
<view class="check-date-des uni-list picker-year"> <view class="check-date-des uni-list picker-year">
<view class="uni-list-cell"> <view class="uni-list-cell">
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
<image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit"></image> <image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit"></image>
</view> </view>
</view> </view>
<view class="uni-margin-wrap"> <view class="uni-margin-wrap" v-if='!isChildCustomer'>
<swiper class="swiper" circular indicator-dots="true" autoplay="true" interval="4000000"> <swiper class="swiper" circular indicator-dots="true" autoplay="true" interval="4000000">
<swiper-item class="swiper-item"> <swiper-item class="swiper-item">
<view class="swiper-title"> <view class="swiper-title">
...@@ -159,19 +159,19 @@ ...@@ -159,19 +159,19 @@
</swiper> </swiper>
</view> </view>
<view class="uni-margin-wrap" style="padding: 20px 10px;"> <view class="uni-margin-wrap" style="padding: 20px 10px;" v-if='!isChildCustomer'>
<view class="swiper-title"> <view class="swiper-title">
<text class="item-block__label">红包活动看板</text> <text class="item-block__label">红包活动看板</text>
<text class="item-block__label item-more" @click="entryHandle('out-web-site')">查看更多 ></text> <text class="item-block__label item-more" @click="entryHandle('out-web-site')">查看更多 ></text>
</view> </view>
</view> </view>
<view class="uni-margin-wrap" style="padding: 20px 10px;"> <view class="uni-margin-wrap" style="padding: 20px 10px;" v-if='!isChildCustomer'>
<view class="swiper-title"> <view class="swiper-title">
<text class="item-block__label">宴会管理</text> <text class="item-block__label">宴会管理</text>
<text class="item-block__label item-more" @click="entryHandle('meeting-manage')">查看更多 ></text> <text class="item-block__label item-more" @click="entryHandle('meeting-manage')">查看更多 ></text>
</view> </view>
</view> </view>
<view class="uni-margin-wrap" style="padding: 20px 10px;"> <view class="uni-margin-wrap" style="padding: 20px 10px;" v-if='!isChildCustomer'>
<view class="swiper-title"> <view class="swiper-title">
<text class="item-block__label">资讯</text> <text class="item-block__label">资讯</text>
<text class="item-block__label item-more" @click="entryHandle('information')">查看更多 ></text> <text class="item-block__label item-more" @click="entryHandle('information')">查看更多 ></text>
...@@ -296,7 +296,7 @@ ...@@ -296,7 +296,7 @@
this.statisticsData.forEach(item => num += item.INFO.PRICE_OD) this.statisticsData.forEach(item => num += item.INFO.PRICE_OD)
return num / 10000 return num / 10000
}, },
...mapState(['sysinfo', 'userInfo']), ...mapState(['sysinfo', 'userInfo','isChildCustomer']),
scrollHeight() { scrollHeight() {
return { return {
'height': `${this.sysinfo.safeArea.height - 15}px` 'height': `${this.sysinfo.safeArea.height - 15}px`
......
...@@ -301,6 +301,11 @@ ...@@ -301,6 +301,11 @@
...res.data.userBpData ...res.data.userBpData
} }
}); });
const isChildCustomer = res.data.userBpData.ROLES.some(user => user.ROLE_ID === 'WLY027');
this.$uStore({
name: 'isChildCustomer',
value: isChildCustomer
});
this.$uStore({ this.$uStore({
name: 'vuex_token', name: 'vuex_token',
value: res.data.token value: res.data.token
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
</template> </template>
<script> <script>
import { mapState } from 'vuex'
import uniList from '@/components/uni-list.vue'; import uniList from '@/components/uni-list.vue';
import uniCell from '@/components/uni-cell.vue'; import uniCell from '@/components/uni-cell.vue';
import uniRefresh from '@/components/uni-refresh.vue'; import uniRefresh from '@/components/uni-refresh.vue';
...@@ -33,7 +34,7 @@ ...@@ -33,7 +34,7 @@
import noData from '@/components/nodata.nvue'; import noData from '@/components/nodata.nvue';
import orderItem from './order-item.nvue'; import orderItem from './order-item.nvue';
import saveItem from './save-item.nvue'; import saveItem from './save-item.nvue';
import { findAppGoodsSingle, findSavedApplyBill, doQuery } from '@/servers/purchaseList.js' import { findAppGoodsSingle, findSavedApplyBill, doQuery, findChildGoodsSingle } from '@/servers/purchaseList.js'
export default { export default {
components: { components: {
uniList, uniList,
...@@ -92,6 +93,9 @@ ...@@ -92,6 +93,9 @@
} }
} }
}, },
computed: {
...mapState(['isChildCustomer']),
},
created() { created() {
this.pullTimer = null; this.pullTimer = null;
this.requestParams = { this.requestParams = {
...@@ -142,7 +146,8 @@ ...@@ -142,7 +146,8 @@
if(this.conditions.status - 4 === 0){ if(this.conditions.status - 4 === 0){
res = await findSavedApplyBill(params) res = await findSavedApplyBill(params)
}else{ }else{
res = await findAppGoodsSingle(params) const api = this.isChildCustomer ? findChildGoodsSingle : findAppGoodsSingle
res = await api(params)
} }
if(res.status - 1 === 0){ if(res.status - 1 === 0){
this.isLoading = false; this.isLoading = false;
......
...@@ -34,7 +34,8 @@ ...@@ -34,7 +34,8 @@
const res = await getClientByApp({code: this.userInfo.code}) const res = await getClientByApp({code: this.userInfo.code})
if(res){ if(res){
// this.src = 'https://yingxiao.wuliangye.com.cn/webroot/login/jxsLogin_test.html?'+res //测试环境 // this.src = 'https://yingxiao.wuliangye.com.cn/webroot/login/jxsLogin_test.html?'+res //测试环境
this.src = 'https://yingxiao.wuliangye.com.cn/webroot/login/jxsLogin.html?'+res //生产环境 // this.src = 'https://yingxiao.wuliangye.com.cn/webroot/login/jxsLogin.html?'+res //生产环境
this.src = 'https://vls.wuliangyegroup.com.cn:8090/webroot/decision?'+res //25.6.23生产环境
}else{ }else{
uni.showToast({ uni.showToast({
title: '权限校验不通过', title: '权限校验不通过',
......
...@@ -167,6 +167,10 @@ ...@@ -167,6 +167,10 @@
<text class="middle-date">传统当年剩余量</text> <text class="middle-date">传统当年剩余量</text>
<text class="middle-date-des">{{ele.annualLeftQty}}</text> <text class="middle-date-des">{{ele.annualLeftQty}}</text>
</view> --> </view> -->
<!-- <view class="text-block">
<text class="middle-date">可放行数量</text>
<text class="middle-date-des">{{releaseNum}}</text>
</view> -->
<view class="text-block text-block-last"> <view class="text-block text-block-last">
<text class="middle-date">本次要货件数</text> <text class="middle-date">本次要货件数</text>
<input class="middle-date-address" type="number" v-model="ele.wantQuantity" placeholder="请输入" /> <input class="middle-date-address" type="number" v-model="ele.wantQuantity" placeholder="请输入" />
...@@ -248,6 +252,10 @@ ...@@ -248,6 +252,10 @@
terminalRobotArrs: { terminalRobotArrs: {
type: Array, type: Array,
default: () => [] default: () => []
},
releaseNum: {
type: Number,
default: 0
} }
}, },
computed: { computed: {
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
<text class="middle-date-add">收货地址</text> <text class="middle-date-add">收货地址</text>
<text class="middle-date-des-add">{{orderItem.receiveAddress}}</text> <text class="middle-date-des-add">{{orderItem.receiveAddress}}</text>
</view> </view>
<!-- <text class="edit-add" @click="handleAdd" v-if="isTerminalType">修改</text> --> <text class="edit-add" @click="handleAdd" v-if="isTerminalType">修改</text>
<view class="text-block text-block-last"> <view class="text-block text-block-last">
<text class="middle-date">备注</text> <text class="middle-date">备注</text>
</view> </view>
...@@ -187,7 +187,8 @@ ...@@ -187,7 +187,8 @@
doQuery, doQuery,
attachmentDownFile, attachmentDownFile,
findShuntAnyByDealer, findShuntAnyByDealer,
findFirstByTerminalId findFirstByTerminalId,
exceedMonthPlan
} from '@/servers/purchaseList.js' } from '@/servers/purchaseList.js'
import { pathToBase64, base64ToPath } from 'image-tools' import { pathToBase64, base64ToPath } from 'image-tools'
export default { export default {
...@@ -328,9 +329,9 @@ ...@@ -328,9 +329,9 @@
if(this.sourceType === 'myPurchase'){ if(this.sourceType === 'myPurchase'){
this.getFiles(this.orderItem.id) this.getFiles(this.orderItem.id)
} }
if(this.isTerminalType){ // if(this.isTerminalType){
this.changeTerminal() // this.changeTerminal()
} // }
}, },
onUnload() { onUnload() {
uni.$off('selectShuntAccountInfo') uni.$off('selectShuntAccountInfo')
...@@ -763,29 +764,36 @@ ...@@ -763,29 +764,36 @@
} }
} }
if (status == 1 || flagStatus) { if (status == 1 || flagStatus) {
if(!params.id){ try{
Object.assign(params, data.bizData) const res = await exceedMonthPlan(JSON.parse(JSON.stringify(obj)))
params.bizId = data.bizId this.flag = false
params.procInstId = data.procInstId const that = this
params.taskId = data.taskId if(res.status == 0){
// 提交 // 弹框确认
params.wantGoodsDetailList = JSON.stringify(params.wantGoodsDetailList) uni.showModal({
} title: '提示',
for(let k in params){ content: '当前申请量超出当月发货计划量,是否确认提交??',
params[k] = params[k] === null ? '' : params[k] confirmText: '确定',
} cancelText: '取消',
const res = await advance(params) success: function (res) {
if (res.status == 1) { if (res.confirm) {
this.objectId = res.data.bizData.wantCode console.log('用户点击确定',params,data);
this.$refs.popup.open('center') // 执行确认操作
// uni.showToast({ that.submit(params,data)
// title: '要货成功', return
// duration: 2000, } else if (res.cancel) {
// icon: 'none' console.log('用户点击取消');
// }); // 执行取消操作
// uni.switchTab({ that.flag = false
// url: '/pages/purchase/purchase' }
// }) }
});
that.flag = false
return
}
this.submit(params,data)
}catch(e){
this.flag = false
} }
}else{ }else{
this.flag = false this.flag = false
...@@ -793,6 +801,25 @@ ...@@ -793,6 +801,25 @@
} catch (e) { } catch (e) {
this.flag = false this.flag = false
} }
},
async submit(params,data){
if(!params.id){
Object.assign(params, data.bizData)
params.bizId = data.bizId
params.procInstId = data.procInstId
params.taskId = data.taskId
// 提交
params.wantGoodsDetailList = JSON.stringify(params.wantGoodsDetailList)
}
for(let k in params){
params[k] = params[k] === null ? '' : params[k]
}
const res = await advance(params)
if (res.status == 1) {
this.objectId = res.data.bizData.wantCode
this.$refs.popup.open('center')
}
this.flag = false
} }
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="apply-history view" :style="winHeight"> <view class="apply-history view" :style="winHeight">
<view class="status_bar" :style="navHeight"></view> <view class="status_bar" :style="navHeight"></view>
<view class="apply-history-wrapper view"> <view class="apply-history-wrapper view">
<component :style="componentHeight" :sourceType='sourceType' :orderItem='detail' :channelTypeArr='channelTypeArr' :is="currentTabComponent" @click="changeComponent" @submit="submit" ></component> <component :style="componentHeight" :sourceType='sourceType' :orderItem='detail' :channelTypeArr='channelTypeArr' :releaseNum='releaseNum' :is="currentTabComponent" @click="changeComponent" @submit="submit" ></component>
</view> </view>
</view> </view>
</template> </template>
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
import { import {
mapState mapState
} from 'vuex' } from 'vuex'
import { initAppWantGoods, getChannelType, findById, generateUUID, queryDirectStore } from '@/servers/purchaseList.js' import { initAppWantGoods, getChannelType, findById, generateUUID, queryDirectStore,queryPledgeQuantity } from '@/servers/purchaseList.js'
import purchaseMain from '../purchase-main/purchase-main' import purchaseMain from '../purchase-main/purchase-main'
import purchaseReceive from '../purchase-receive/purchase-receive' import purchaseReceive from '../purchase-receive/purchase-receive'
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
}, },
data() { data() {
return { return {
releaseNum: 0,
terminalRobotArrs: [], terminalRobotArrs: [],
demandType: '1', demandType: '1',
sourceType: '', sourceType: '',
...@@ -161,6 +162,21 @@ ...@@ -161,6 +162,21 @@
this.getChannelType() this.getChannelType()
// res.data.demandType == 'ZDZG' && this.getTerminalRobot() // res.data.demandType == 'ZDZG' && this.getTerminalRobot()
}, },
async getPledgeQuantity(){
const { customerCode, customerName,wantGoodsDetailList } = this.detail
const params = {
customerCode,
customerName,
productCode: wantGoodsDetailList[0].productCode,
productName: wantGoodsDetailList[0].productDesc,
}
try {
const {data} = await queryPledgeQuantity(params)
this.releaseNum = data.quantity || 0
} catch (error) {
}
},
async getChannelType(){ async getChannelType(){
const res = await getChannelType({'salePlan': this.detail.planType}) const res = await getChannelType({'salePlan': this.detail.planType})
this.channelTypeArr = res.data this.channelTypeArr = res.data
...@@ -205,6 +221,7 @@ ...@@ -205,6 +221,7 @@
receiveUnitName: res.data.demandType == 'ZDZG' ? '' : res.data.receiveUnitName, receiveUnitName: res.data.demandType == 'ZDZG' ? '' : res.data.receiveUnitName,
} }
this.getChannelType() this.getChannelType()
// this.getPledgeQuantity()
this.sourceType === 'purchase' && this.generateUUID() this.sourceType === 'purchase' && this.generateUUID()
// this.demandType == 2 && this.getTerminalRobot() // this.demandType == 2 && this.getTerminalRobot()
}, },
......
<template> <template>
<view class="lists"> <selectAgent v-if="active == 'agent'" @changeActive="changeActive"/>
<view class="lists" v-else>
<view class="status_bar" :style="navHeight"></view> <view class="status_bar" :style="navHeight"></view>
<view class="header-bg"> <view class="header-bg">
<image class="header-bg-img" src="@/static/image/nav_bg@3x.png" mode="scaleToFill"></image> <image class="header-bg-img" src="@/static/image/nav_bg@3x.png" mode="scaleToFill"></image>
...@@ -8,7 +9,6 @@ ...@@ -8,7 +9,6 @@
<list ref="list" class="scroll-area view" loadmoreoffset='100' @loadmore="scrolltolower" <list ref="list" class="scroll-area view" loadmoreoffset='100' @loadmore="scrolltolower"
:show-scrollbar='false'> :show-scrollbar='false'>
<refresh @refresh="refresh" :display="refreshing ? 'show' : 'hide'"> <refresh @refresh="refresh" :display="refreshing ? 'show' : 'hide'">
<!-- <loading-indicator></loading-indicator> -->
</refresh> </refresh>
<cell v-for="(item,index) in lists" :key="item.plan_number"> <cell v-for="(item,index) in lists" :key="item.plan_number">
<view class="scroll-item"> <view class="scroll-item">
...@@ -83,7 +83,6 @@ ...@@ -83,7 +83,6 @@
<text class="empty-text">暂无数据</text> <text class="empty-text">暂无数据</text>
</view> </view>
</cell> </cell>
<!-- <view class="planout-block-item__last"> </view> -->
</list> </list>
<view class="bottom-box" v-if="isWine"> <view class="bottom-box" v-if="isWine">
<button class="btn" type="default" @tap="nextStep"> <button class="btn" type="default" @tap="nextStep">
...@@ -106,8 +105,11 @@ ...@@ -106,8 +105,11 @@
} from '@/servers/purchaseList.js' } from '@/servers/purchaseList.js'
import timeFormat from '@/uview-ui/libs/function/timeFormat.js' import timeFormat from '@/uview-ui/libs/function/timeFormat.js'
import selectAgent from '../select-agent/select-agent'
export default { export default {
components: {
selectAgent
},
data() { data() {
return { return {
cb:'', cb:'',
...@@ -129,11 +131,13 @@ ...@@ -129,11 +131,13 @@
typesIndex: 0, typesIndex: 0,
lists: [], lists: [],
sourceType: 'wine', sourceType: 'wine',
checkedArr: [] checkedArr: [],
active: 'agent',
row: {}
} }
}, },
computed: { computed: {
...mapState(['sysinfo', 'userInfo']), ...mapState(['sysinfo', 'userInfo','isChildCustomer']),
navHeight() { navHeight() {
return { return {
'height': `${this.sysinfo.safeArea.top + 44}px` 'height': `${this.sysinfo.safeArea.top + 44}px`
...@@ -158,20 +162,38 @@ ...@@ -158,20 +162,38 @@
created() { created() {
// this.sourceType = this.$route.query.type // this.sourceType = this.$route.query.type
// this.getSalesPlanTypes(true) // this.getSalesPlanTypes(true)
console.log(this.isChildCustomer,'isChildCustomer')
}, },
onLoad(option) { onLoad(option) {
this.sourceType = option.type this.sourceType = option.type
this.active = this.isChildCustomer ? 'agent' : 'query'
this.lists = [] this.lists = []
if(this.isWine){ if(this.isWine){
this.getWineList() this.active == 'query' && this.getWineList()
this.reset() this.reset()
return return
} }
this.reset() this.reset()
this.getSalesPlan() this.active == 'query' && this.getSalesPlan()
this.active == 'agent' && uni.setNavigationBarTitle({
title: '选择经销商'
})
}, },
methods: { methods: {
changeActive(type, row) {
this.active = type
this.row = row
console.log(this.row,'this.row')
if(this.isWine){
this.getWineList()
return
}
this.getSalesPlan()
// if(type=='query'){
// this.agentInfo = row
// return
// }
},
nextStep(){ nextStep(){
if(this.checkedArr.length === 0){ if(this.checkedArr.length === 0){
uni.showToast({ uni.showToast({
...@@ -259,7 +281,7 @@ ...@@ -259,7 +281,7 @@
// ...this.page, // ...this.page,
// } // }
const demandType = this.sourceType ==='common' ? '1' : '2' const demandType = this.sourceType ==='common' ? '1' : '2'
const params = `?page=${this.page.page}&pagesize=${this.page.pagesize}&demandType=${demandType}` const params = `?page=${this.page.page}&pagesize=${this.page.pagesize}&demandType=${demandType}&childLinkCustomer=${this.row?.customerCode || ''}`
uni.showLoading({ uni.showLoading({
title: '加载中' title: '加载中'
}); });
...@@ -296,7 +318,7 @@ ...@@ -296,7 +318,7 @@
}, },
async getWineList(isRefresh){ async getWineList(isRefresh){
const demandType = this.sourceType ==='wine' ? '1' : '2' const demandType = this.sourceType ==='wine' ? '1' : '2'
const params = `?page=${this.page.page}&pagesize=${this.page.pagesize}&demandType=${demandType}` const params = `?page=${this.page.page}&pagesize=${this.page.pagesize}&demandType=${demandType}&childLinkCustomer=${this.row?.customerCode || ''}`
uni.showLoading({ uni.showLoading({
title: '加载中' title: '加载中'
}); });
......
...@@ -3,14 +3,14 @@ ...@@ -3,14 +3,14 @@
<view class="status_bar" :style="navHeight"></view> <view class="status_bar" :style="navHeight"></view>
<view class="listview"> <view class="listview">
<view class="cell-list"> <view class="cell-list">
<view class="cell-list-block" @click="goOrder('purchase-list','common')"> <view class="cell-list-block" @click="goOrder('purchase-list','common')" v-if='!isChildCustomer'>
<image class="icon-address" src="@/static/image/order_quota@3x.png" mode="aspectFit"></image> <image class="icon-address" src="@/static/image/order_quota@3x.png" mode="aspectFit"></image>
<view class="cell-list-block__content"> <view class="cell-list-block__content">
<text class="cell-list-block__title">普通要货</text> <text class="cell-list-block__title">普通要货</text>
</view> </view>
<image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit"></image> <image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit"></image>
</view> </view>
<view class="cell-list-block" @click="goOrder('purchase-list','wine')"> <view class="cell-list-block" @click="goOrder('purchase-list','wine')" v-if='!isChildCustomer'>
<image class="icon-address" src="@/static/image/order_noquota@3x.png" mode="aspectFit"></image> <image class="icon-address" src="@/static/image/order_noquota@3x.png" mode="aspectFit"></image>
<view class="cell-list-block__content"> <view class="cell-list-block__content">
<text class="cell-list-block__title">以酒促酒要货</text> <text class="cell-list-block__title">以酒促酒要货</text>
...@@ -41,12 +41,13 @@ ...@@ -41,12 +41,13 @@
mapState mapState
} from 'vuex' } from 'vuex'
export default { export default {
data() { data() {
return { return {
} }
},
onLoad() {
}, },
computed: { computed: {
navHeight() { navHeight() {
...@@ -54,7 +55,7 @@ ...@@ -54,7 +55,7 @@
'height': `${this.sysinfo.safeArea.top + 44}px` 'height': `${this.sysinfo.safeArea.top + 44}px`
} }
}, },
...mapState(['sysinfo']) ...mapState(['sysinfo','isChildCustomer'])
}, },
methods: { methods: {
goOrder(type,num) { goOrder(type,num) {
......
...@@ -7,7 +7,11 @@ ...@@ -7,7 +7,11 @@
<view class="main"> <view class="main">
<view class="middle view"> <view class="middle view">
<view class="text-block "> <view class="text-block ">
<text class="middle-date">终端名称</text> <text class="middle-date">经销商编码</text>
<input class="middle-date-des" type="text" v-model="condition.storeName" placeholder="" />
</view>
<view class="text-block ">
<text class="middle-date">经销商名称</text>
<input class="middle-date-des" type="text" v-model="condition.storeName" placeholder="" /> <input class="middle-date-des" type="text" v-model="condition.storeName" placeholder="" />
</view> </view>
</view> </view>
...@@ -23,45 +27,13 @@ ...@@ -23,45 +27,13 @@
<view class="middle view planout-block-item" v-for="(item,index) in lists" :key='index' <view class="middle view planout-block-item" v-for="(item,index) in lists" :key='index'
@click="handleClick($event,item, index)"> @click="handleClick($event,item, index)">
<view class="text-block"> <view class="text-block">
<text class="middle-date middle-date-select">终端名称</text> <text class="middle-date middle-date-select">经销商编码</text>
<text class="middle-date-des middle-date-des-select">{{item.storeName}}</text> <text class="middle-date-des middle-date-des-select">{{item.customerCode}}</text>
</view> </view>
<view class="text-block"> <view class="text-block">
<text class="middle-date middle-date-select">终端ID</text> <text class="middle-date middle-date-select">经销商名称</text>
<text class="middle-date-pro middle-date-des-select">{{item.storeId}}</text> <text class="middle-date-pro middle-date-des-select">{{item.customerName}}</text>
</view>
<!-- <view class="middle-title">
<text class="middle-title__text flex1">终端名称:</text>
<text class="middle-title__text flex6">{{ item.storeName }}</text>
</view> </view>
<view class="middle-title">
<view style="width: 130px;">
<text class="middle-title__text flex1">联系人:</text>
<text class="middle-title__text flex6">{{ item.consignee }}</text>
</view>
<view>
<text class="middle-title__text flex1">联系电话:</text>
<text class="middle-title__text flex6">{{ item.consigneePhone }}</text>
</view>
</view>
<view class="middle-title justify-space">
<view>
<text class="middle-title__text flex1">省:</text>
<text class="middle-title__text flex6">{{ item.provinceName }}</text>
</view>
<view>
<text class="middle-title__text flex1">市:</text>
<text class="middle-title__text flex6">{{ item.cityName }}</text>
</view>
<view>
<text class="middle-title__text flex1">区:</text>
<text class="middle-title__text flex6">{{ item.districtName }}</text>
</view>
</view>
<view class="middle-title">
<text class="middle-title__text flex1">详细地址:</text>
<text class="middle-title__text flex6">{{ item.address }}</text>
</view> -->
</view> </view>
<view class="loading-more" v-if='lists.length>2'> <view class="loading-more" v-if='lists.length>2'>
<text class="loading-more-text">{{loadingText}}</text> <text class="loading-more-text">{{loadingText}}</text>
...@@ -76,7 +48,7 @@ ...@@ -76,7 +48,7 @@
mapState mapState
} from 'vuex' } from 'vuex'
import { queryDirectStore } from '@/servers/purchaseList.js' import { findCustomerByChild } from '@/servers/purchaseList.js'
export default { export default {
data() { data() {
return { return {
...@@ -96,7 +68,7 @@ ...@@ -96,7 +68,7 @@
} }
}, },
computed: { computed: {
...mapState(['sysinfo']), ...mapState(['sysinfo', 'userInfo']),
navHeight() { navHeight() {
return { return {
'height': `${this.sysinfo.safeArea.top + 44}px` 'height': `${this.sysinfo.safeArea.top + 44}px`
...@@ -104,7 +76,7 @@ ...@@ -104,7 +76,7 @@
}, },
scrollHeight() { scrollHeight() {
return { return {
'height': `${this.sysinfo.safeArea.height - 44 - 220}px` 'height': `${this.sysinfo.safeArea.height - 44 - 280}px`
} }
}, },
pagination(){ pagination(){
...@@ -133,27 +105,32 @@ ...@@ -133,27 +105,32 @@
}, },
methods: { methods: {
async getProduct(isRefresh) { async getProduct(isRefresh) {
const params = { page:this.pageOption, ...this.terminalQureyParams, ...this.condition } const params = { page:this.pageOption, ...this.terminalQureyParams, ...this.condition,
code: '8100071',}
// code:this.userInfo.code,}
uni.showLoading({ uni.showLoading({
title: '加载中' title: '加载中'
}); });
setTimeout(function() { setTimeout(function() {
uni.hideLoading(); uni.hideLoading();
}, 2000); }, 2000);
const res = await queryDirectStore(params) console.log(this.userInfo.code,'this.userInfo.code')
const res = await findCustomerByChild(params)
uni.hideLoading(); uni.hideLoading();
const { console.log(res.data)
records, this.lists = res.data
total // const {
} = res.data.data // records,
this.totalCount = total // total
this.totalPage = Math.ceil(total * 1 / this.pageOption.size * 1) // } = res.data.data
// this.totalCount = total
if (isRefresh) { // this.totalPage = Math.ceil(total * 1 / this.pageOption.size * 1)
this.lists = records
} else { // if (isRefresh) {
this.lists = this.lists.concat(records) // this.lists = records
} // } else {
// this.lists = this.lists.concat(records)
// }
}, },
scrolltolower() { scrolltolower() {
console.log('onReachBottom'); console.log('onReachBottom');
...@@ -184,11 +161,8 @@ ...@@ -184,11 +161,8 @@
this.getProduct(true) this.getProduct(true)
}, },
handleClick(e, content, index) { handleClick(e, content, index) {
console.log(e, content, index) this.$emit('changeActive', 'query', content)
uni.$emit('selectTerminal', { // uni.navigateBack()
selectTerminal: content
})
uni.navigateBack()
} }
} }
} }
...@@ -227,7 +201,7 @@ ...@@ -227,7 +201,7 @@
.middle { .middle {
background-color: #fff; background-color: #fff;
border-radius: 16rpx; border-radius: 16rpx;
padding: 32rpx; padding: 16rpx 32rpx;
padding-right: 60rpx; padding-right: 60rpx;
border-radius: 20rpx; border-radius: 20rpx;
} }
...@@ -252,7 +226,7 @@ ...@@ -252,7 +226,7 @@
color: #333; color: #333;
margin-bottom: 8rpx; margin-bottom: 8rpx;
} }
.middle-date-des { .middle-date-des {
flex: 3; flex: 3;
font-size: 28rpx; font-size: 28rpx;
...@@ -309,6 +283,8 @@ ...@@ -309,6 +283,8 @@
.scroll-area { .scroll-area {
overflow-y: scroll; overflow-y: scroll;
display: flex;
flex-direction: column;
} }
.planout-block-lists { .planout-block-lists {
...@@ -351,14 +327,15 @@ ...@@ -351,14 +327,15 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
height: 84rpx; height: 84rpx;
margin-top: 64rpx; margin-top: 48rpx;
margin-bottom: 48rpx; margin-bottom: 48rpx;
padding: 0 24rpx; padding: 0 24rpx;
} }
.planout-block-item { .planout-block-item {
flex: 1; display: flex;
margin-bottom: 26rpx; flex-direction: column;
margin-bottom: 30rpx;
} }
.btn { .btn {
......
...@@ -22,15 +22,15 @@ ...@@ -22,15 +22,15 @@
@scrolltolower='scrolltolower'> @scrolltolower='scrolltolower'>
<view class="middle view planout-block-item" v-for="(item,index) in lists" :key='index' <view class="middle view planout-block-item" v-for="(item,index) in lists" :key='index'
@click="handleClick($event,item, index)"> @click="handleClick($event,item, index)">
<view class="text-block"> <!-- <view class="text-block">
<text class="middle-date middle-date-select">终端名称</text> <text class="middle-date middle-date-select">终端名称</text>
<text class="middle-date-des middle-date-des-select">{{item.storeName}}</text> <text class="middle-date-des middle-date-des-select">{{item.storeName}}</text>
</view> </view>
<view class="text-block"> <view class="text-block">
<text class="middle-date middle-date-select">终端ID</text> <text class="middle-date middle-date-select">终端ID</text>
<text class="middle-date-pro middle-date-des-select">{{item.storeId}}</text> <text class="middle-date-pro middle-date-des-select">{{item.storeId}}</text>
</view> </view> -->
<!-- <view class="middle-title"> <view class="middle-title">
<text class="middle-title__text flex1">终端名称:</text> <text class="middle-title__text flex1">终端名称:</text>
<text class="middle-title__text flex6">{{ item.storeName }}</text> <text class="middle-title__text flex6">{{ item.storeName }}</text>
</view> </view>
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<view class="middle-title"> <view class="middle-title">
<text class="middle-title__text flex1">详细地址:</text> <text class="middle-title__text flex1">详细地址:</text>
<text class="middle-title__text flex6">{{ item.address }}</text> <text class="middle-title__text flex6">{{ item.address }}</text>
</view> --> </view>
</view> </view>
<view class="loading-more" v-if='lists.length>2'> <view class="loading-more" v-if='lists.length>2'>
<text class="loading-more-text">{{loadingText}}</text> <text class="loading-more-text">{{loadingText}}</text>
......
...@@ -22,14 +22,14 @@ ...@@ -22,14 +22,14 @@
</view> </view>
</view> </view>
<view class="middle"> <view class="middle">
<view class="entry-block" @click="goPage('purchase-plan')"> <view class="entry-block" @click="goPage('purchase-plan')" v-if='!isChildCustomer'>
<view class="entry-bill"> <view class="entry-bill">
<image class="entry-bill-icon" src="@/static/image/usercenter_purchaseplan@3x.png" mode=""></image> <image class="entry-bill-icon" src="@/static/image/usercenter_purchaseplan@3x.png" mode=""></image>
<!-- <text class="entry-bill-dot">25</text> --> <!-- <text class="entry-bill-dot">25</text> -->
</view> </view>
<text class="entry-bill-text">销售计划</text> <text class="entry-bill-text">销售计划</text>
</view> </view>
<view class="entry-block" @click="goPage('my-order')"> <view class="entry-block" @click="goPage('my-order')" v-if='!isChildCustomer'>
<view class="entry-bill"> <view class="entry-bill">
<image class="entry-bill-icon" src="@/static/image/uc_company@3x.png" mode=""></image> <image class="entry-bill-icon" src="@/static/image/uc_company@3x.png" mode=""></image>
</view> </view>
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<text class="entry-bill-text">账票管理</text> <text class="entry-bill-text">账票管理</text>
</view> </view>
--> -->
<view class="entry-block" @click="goPage('ticket-order')"> <view class="entry-block" @click="goPage('ticket-order')" v-if='!isChildCustomer'>
<view class="entry-bill"> <view class="entry-bill">
<image class="entry-bill-icon entry-bill-icon_billing" <image class="entry-bill-icon entry-bill-icon_billing"
src="@/static/image/usercenter_ticketorder@3x.png" mode=""></image> src="@/static/image/usercenter_ticketorder@3x.png" mode=""></image>
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
<text class="dot" v-if="num">{{num}}</text> <text class="dot" v-if="num">{{num}}</text>
<text class="entry-bill-text">市场秩序</text> <text class="entry-bill-text">市场秩序</text>
</view> --> </view> -->
<view class="entry-block" @click="goPage('order-trends')"> <view class="entry-block" @click="goPage('order-trends')" v-if='!isChildCustomer'>
<view class="entry-bill"> <view class="entry-bill">
<image class="entry-bill-icon entry-bill-icon_billing" <image class="entry-bill-icon entry-bill-icon_billing"
src="@/static/image/trends.png" mode=""> src="@/static/image/trends.png" mode="">
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
</view> </view>
<text class="entry-bill-text">订单动态</text> <text class="entry-bill-text">订单动态</text>
</view> </view>
<view class="entry-block" @click="goPage('terminal')"> <view class="entry-block" @click="goPage('terminal')" v-if='!isChildCustomer'>
<view class="entry-bill"> <view class="entry-bill">
<image class="entry-bill-icon entry-bill-icon_billing" <image class="entry-bill-icon entry-bill-icon_billing"
src="@/static/image/terminal.png" mode=""> src="@/static/image/terminal.png" mode="">
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
</view> </view>
<text class="entry-bill-text">终端</text> <text class="entry-bill-text">终端</text>
</view> </view>
<view class="entry-block" @click="goPage('loan-query')"> <view class="entry-block" @click="goPage('loan-query')" v-if='!isChildCustomer'>
<view class="entry-bill"> <view class="entry-bill">
<image class="entry-bill-icon entry-bill-icon_billing" <image class="entry-bill-icon entry-bill-icon_billing"
src="@/static/image/salesDiscount.png" mode=""> src="@/static/image/salesDiscount.png" mode="">
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
<text class="dot" v-if="dhkNum - 0 >0">{{dhkNum}}</text> <text class="dot" v-if="dhkNum - 0 >0">{{dhkNum}}</text>
<text class="entry-bill-text">销售折扣</text> <text class="entry-bill-text">销售折扣</text>
</view> </view>
<view class="entry-block" @click="goPage('terminal-list')"> <view class="entry-block" @click="goPage('terminal-list')" v-if='!isChildCustomer'>
<view class="entry-bill"> <view class="entry-bill">
<image class="entry-bill-icon entry-bill-icon_billing" <image class="entry-bill-icon entry-bill-icon_billing"
src="@/static/image/terminalIn.png" mode=""> src="@/static/image/terminalIn.png" mode="">
...@@ -187,7 +187,7 @@ ...@@ -187,7 +187,7 @@
} }
}, },
computed: { computed: {
...mapState(['sysinfo', 'userInfo','userBpData']), ...mapState(['sysinfo', 'userInfo','userBpData','isChildCustomer']),
num() { num() {
return this.agentNum - 0 > 0 ? this.agentNum - 99 > 0 ? '99+' : this.agentNum.toString() : '' return this.agentNum - 0 > 0 ? this.agentNum - 99 > 0 ? '99+' : this.agentNum.toString() : ''
}, },
......
...@@ -140,3 +140,23 @@ export async function findGoodsSingleJoinBoxBarcode(params) { ...@@ -140,3 +140,23 @@ export async function findGoodsSingleJoinBoxBarcode(params) {
const res = await apiHelper.post('/crm-app/wantGoodsDataQuery/findGoodsSingleJoinBoxBarcode', params, ) const res = await apiHelper.post('/crm-app/wantGoodsDataQuery/findGoodsSingleJoinBoxBarcode', params, )
return res return res
} }
// 终端直配查询子账号
export async function findCustomerByChild(params) {
const res = await apiHelper.post('/crm-app/wantgoods/findCustomerByChild?childCode='+ params.code)
return res
}
// 终端直配查询子账号要货单
export async function findChildGoodsSingle(params) {
const res = await apiHelper.post('/crm-app/wantgoods/findAppChildGoodsSingle',params)
return res
}
// 判断要货否超月计划数量
export async function exceedMonthPlan(params) {
const res = await apiHelper.post('/crm-app/wantgoods/exceedMonthPlan',params)
return res
}
// 放行数量
export async function queryPledgeQuantity(params) {
const res = await apiHelper.post('/crm-app/wantGoodsDataQuery/anji/queryPledgeQuantity', params, )
return res
}
\ No newline at end of file
...@@ -68,7 +68,8 @@ const store = new Vuex.Store({ ...@@ -68,7 +68,8 @@ const store = new Vuex.Store({
'ATTACHMENT': [], 'ATTACHMENT': [],
'INFO': {}, 'INFO': {},
'baseinfo': {} 'baseinfo': {}
} },
isChildCustomer: false
}, },
mutations: { mutations: {
$uStore(state, payload) { $uStore(state, payload) {
......
This diff is collapsed.
This diff is collapsed.
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__EDB6A1F","name":"五粮液易商","version":{"name":"1.1.42","code":"10142"},"description":"订货系统","launch_path":"","developer":{"name":"","email":"","url":""},"permissions":{"Barcode":{},"Camera":{},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview","render":"always","uniNView":{"path":"pages/login/login.js"}},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#fff"},"usingComponents":true,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","nvue":{"flex-direction":"row"},"distribute":{"icons":{"android":{"hdpi":"unpackage/res/icons/72x72.png","xhdpi":"unpackage/res/icons/96x96.png","xxhdpi":"unpackage/res/icons/144x144.png","xxxhdpi":"unpackage/res/icons/192x192.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png","proapp@2x":"unpackage/res/icons/167x167.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png"}}},"splashscreen":{"iosStyle":"common"},"google":{"permissions":["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"],"abiFilters":["armeabi-v7a"]},"apple":{"dSYMs":false,"urlschemewhitelist":"uumbs","urltypes":"uusafeportalwly","idfa":false},"plugins":{"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"nativePlugins":{"AndroidLMY-ToastPlus":{"__plugin_info__":{"name":"ToastPlus","description":"原生Toast","platforms":"Android,iOS","url":"","android_package_name":"","ios_bundle_id":"","isCloud":false,"bought":-1,"pid":"","parameters":{}}}},"allowsInlineMediaPlayback":true,"safearea":{"background":"rgba(250,250,250,0.90)","bottom":{"offset":"auto"}},"uni-app":{"compilerVersion":"3.7.11","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"row"},"nvueLaunchMode":"normal"},"tabBar":{"iconWidth":"19px","spacing":"4px","color":"#999999","selectedColor":"#FF1D32","borderStyle":"rgba(250,250,250,0.90)","backgroundColor":"rgba(250,250,250,0.90)","list":[{"pagePath":"pages/home/home","iconPath":"static/image/home@3x.png","selectedIconPath":"static/image/home_red@3x.png","text":"首页"},{"pagePath":"pages/go-order/go-order","iconPath":"static/image/tab_order@3x.png","selectedIconPath":"static/image/tab_order_red@3x.png","text":"下单"},{"pagePath":"pages/purchase/purchase","iconPath":"static/image/tab_purchase@3x.png","selectedIconPath":"static/image/tab_purchase_red@3x.png","text":"要货"},{"pagePath":"pages/message/message","iconPath":"static/image/tab_message@3x.png","selectedIconPath":"static/image/tab_message_red@3x.png","text":"消息"},{"pagePath":"pages/usercenter/usercenter","iconPath":"static/image/tab_my@3x.png","selectedIconPath":"static/image/tab_my_red@3x.png","text":"我的"}],"height":"50px"}}} {"@platforms":["android","iPhone","iPad"],"id":"__UNI__EDB6A1F","name":"五粮液易商","version":{"name":"1.1.38","code":10138},"description":"订货系统","launch_path":"","developer":{"name":"","email":"","url":""},"permissions":{"Barcode":{},"Camera":{},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview","render":"always","uniNView":{"path":"pages/login/login.js"}},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#fff"},"usingComponents":true,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","nvue":{"flex-direction":"row"},"distribute":{"icons":{"android":{"hdpi":"unpackage/res/icons/72x72.png","xhdpi":"unpackage/res/icons/96x96.png","xxhdpi":"unpackage/res/icons/144x144.png","xxxhdpi":"unpackage/res/icons/192x192.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png","proapp@2x":"unpackage/res/icons/167x167.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png"}}},"splashscreen":{"iosStyle":"common"},"google":{"permissions":["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>","<uses-permission android:name=\"com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY\"/>"],"abiFilters":["armeabi-v7a","arm64-v8a","x86"],"targetSdkVersion":""},"apple":{"dSYMs":false,"urlschemewhitelist":"uumbs","urltypes":"uusafeportalwly","idfa":false},"plugins":{"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"nativePlugins":{"AndroidLMY-ToastPlus":{"__plugin_info__":{"name":"ToastPlus","description":"原生Toast","platforms":"Android,iOS","url":"","android_package_name":"","ios_bundle_id":"","isCloud":false,"bought":-1,"pid":"","parameters":{}}}},"allowsInlineMediaPlayback":true,"safearea":{"background":"rgba(250,250,250,0.90)","bottom":{"offset":"auto"}},"uni-app":{"compilerVersion":"3.99","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"row"},"nvueLaunchMode":"normal"},"tabBar":{"iconWidth":"19px","spacing":"4px","color":"#999999","selectedColor":"#FF1D32","borderStyle":"rgba(250,250,250,0.90)","backgroundColor":"rgba(250,250,250,0.90)","list":[{"pagePath":"pages/home/home","iconPath":"static/image/home@3x.png","selectedIconPath":"static/image/home_red@3x.png","text":"首页"},{"pagePath":"pages/go-order/go-order","iconPath":"static/image/tab_order@3x.png","selectedIconPath":"static/image/tab_order_red@3x.png","text":"下单"},{"pagePath":"pages/purchase/purchase","iconPath":"static/image/tab_purchase@3x.png","selectedIconPath":"static/image/tab_purchase_red@3x.png","text":"要货"},{"pagePath":"pages/usercenter/usercenter","iconPath":"static/image/tab_my@3x.png","selectedIconPath":"static/image/tab_my_red@3x.png","text":"我的"}],"height":"50px"}}}
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
...@@ -97,6 +97,12 @@ function sapDownloadFile(file, filename) { ...@@ -97,6 +97,12 @@ function sapDownloadFile(file, filename) {
return blob return blob
} }
// 判断是不是终端子账号
function isChildCustomer(arr) {
return ''
}
export { export {
deepClone, deepClone,
deepMerge, deepMerge,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment