This commit is contained in:
cclu 2023-08-14 18:34:49 +08:00
parent 7a04d86b0c
commit 31e1289e8e
15 changed files with 1439 additions and 62 deletions

View File

@ -324,6 +324,28 @@
{
"navigationBarTitleText": "商品审批"
}
},
{
"path": "newDetail",
"style":
{
"navigationBarTitleText": "商品审批"
}
},
{
"path": "newApproval",
"style":
{
"enablePullDownRefresh": true,
"navigationBarTitleText": "商品审批"
}
},
{
"path": "transferPage",
"style":
{
"navigationBarTitleText": ""
}
}
]
},

View File

@ -1,10 +1,10 @@
<template>
<view class="content">
<!-- <view style="flex: 1;overflow: hidden;" >
<!-- <view style="flex: 1;overflow: hidden;" >
<scroll-view scroll-y="true" style="height: 100%;width: 100%;" @scrolltolower="loadMore"> -->
<view v-if="pageList.length>0">
<list-unit v-for="(item,index) in pageList" :key="index" :item="item" :i="index" @goDetail="goDetail"></list-unit>
</view>
<view v-else-if="!pageData.isLoading" style="height: 100%;">
<noFound :nodata="pageList.length>0 ? false : true"/>
@ -20,7 +20,7 @@
<script>
import {mapGetters,mapMutations} from 'vuex'
import ListUnit from './components/businessUnit.vue'
export default {
data() {
return {
@ -36,7 +36,7 @@
components:{
ListUnit
},
computed:{
...mapGetters({reloading:'shouldReLoadingList'})
},
@ -44,32 +44,32 @@
...mapMutations(['shouldReLoadingList']),
getList() {
let _this = this
_this.$request.$get("GetCommdityFlowList",{
pageIndex: _this.pageData.pageIndex,
pageSize: _this.pageData.pageSize
}).then(res => {
if(!res.ResultCode ||res.ResultCode!='100'){
_this.pageList = []
}else{
let list = res.Data.List
if (list.length > 0) {
_this.pageList = this.pageData.pageIndex==1 ? list : [..._this.pageList,...list]
}
if (list.length < _this.pageData.pageSize) { //
_this.pageData.isEnd = true
}
_this.$forceUpdate()
}
uni.hideLoading()
setTimeout(function(){
_this.pageData.isLoading = false
},500)
})
@ -83,7 +83,7 @@
goDetail(item) {
let pageName = ''
this.$util.toNextRoute('navigateTo', "/pages/businessApproval/productDetail?id=" + item.HIGHWAYPROINST_ID)
},
},
onPullDownRefresh() {
@ -111,7 +111,7 @@
_this.getList()
this.shouldReLoadingList(false)
}
},
onLoad() {
this.pageData.isLoading= true
@ -124,7 +124,7 @@
this.$util.addUserBehavior()
},
onHide() {
}
}
</script>

View File

@ -13,12 +13,12 @@
{{item.PROINST_NAME}}
</view>
<view class="content-box-cashpay">
<text >{{item.PRODEF_NAME }}</text>
<text >{{item.PRODEF_NAME }}</text>
</view>
<view class="bb1"></view>
<view class="uni-flex align-center jc-between" v-if="item.ACTINST_NAME">
<view class="uni-flex jc-top" >
<i class="B-icon A-icon"></i>
<text class="content-span">{{item.ACTINST_NAME}}</text>
@ -33,7 +33,7 @@
<text class="content-span lh15">{{item.HIGHWAYPROINST_CREATEDATE}}</text>
</view>
<view class="uni-flex jc-end" v-if="!item.ACTINST_NAME && !item.STAFF_NAME">
<text class="content-span">{{item.HIGHWAYPROINST_CREATEDATE}}</text>
</view>
</div>

View File

@ -0,0 +1,88 @@
<template>
<div class="card" :class="item.SORTNUM == 0 ? 'conten-border' : ''" @tap='goDetail' v-if="item">
<div class="uni-flex jc-between" >
<p class="contentName">
{{item.Serverpart_Name}}
<!-- <span v-if="item.HIGHWAYPROINST_NEXTID=='3000'" style="color:#D73535;">退</span>
<span v-else-if="item.HIGHWAYPROINST_NEXTID=='4000'" style="color:#D73535;"></span> -->
</p>
<text class="typeText" :class="item.BusinessProcess_State=='9000' ? 'typeText-color' : ''">{{proStatus[item.BusinessProcess_State]}}</text>
</div>
<div class="content-index">{{i+1}}</div>
<!-- <view style="line-height: 1;" class="content-type-text">-->
<!-- {{item.PROINST_NAME}}1-->
<!-- </view>-->
<view class="content-box-cashpay">
<text >{{item.BusinessProcess_Name}}</text>
</view>
<view class="bb1"></view>
<view class="uni-flex align-center jc-between" v-if="item.ACTINST_NAME">
<view class="uni-flex jc-top" >
<i class="B-icon A-icon"></i>
<text class="content-span">{{item.ACTINST_NAME}}2</text>
</view>
<text class="content-span" v-if="!item.STAFF_NAME">3{{item.HIGHWAYPROINST_CREATEDATE}}</text>
</view>
<view class="uni-flex jc-between" v-if="item.Staff_Name">
<view class="uni-flex align-top" >
<text class="G-icon A-icon" ></text>
<text class="content-span staff-text">{{item.Staff_Name}}</text>
</view>
<!-- <text class="content-span lh15">5{{item.HIGHWAYPROINST_CREATEDATE}}</text>-->
<view class="uni-flex jc-end" v-if="!item.ACTINST_NAME && !item.STAFF_NAME">
<text class="content-span">{{item.BusinessProcess_StartDate}}</text>
</view>
</view>
</div>
</template>
<script>
export default {
props: {
item: {
type: Object,
required: true
},
i: {
type: Number,
required: true
}
},
data () {
return {
proStatus: {
2000: '待我处理',
3000: '待我处理',
9000: '已审结',
9999: '已否决',
}
}
},
computed: {
},
methods: {
goDetail () {
this.$emit('goDetail', this.item)
}
}
}
</script>
<style scoped>
@import url('../../../common/css/listUnit.css');
.content-box-cashpay {
margin-top: 40rpx;
font-size: 24rpx;
text-align: center;
padding-bottom: 16rpx;
}
.content-box-cashpay text {
font-size: 30rpx;
font-weight: 600;
line-height: 1.5;
}
</style>

View File

@ -0,0 +1,147 @@
<template>
<view class="content">
<!-- <view style="flex: 1;overflow: hidden;" >
<scroll-view scroll-y="true" style="height: 100%;width: 100%;" @scrolltolower="loadMore"> -->
<view v-if="pageList.length>0">
<list-unit v-for="(item,index) in pageList" :key="index" :item="item" :i="index" @goDetail="goDetail"></list-unit>
</view>
<view v-else-if="!pageData.isLoading" style="height: 100%;">
<noFound :nodata="pageList.length>0 ? false : true"/>
</view>
<view class="load-more" v-if="pageList.length>0">
<text>{{!pageData.isEnd ? '正在加载,请稍后...':'——— 我是有底线的 ———'}}</text>
</view>
<!-- </scroll-view>
</view> -->
</view>
</template>
<script>
import {mapGetters,mapMutations} from 'vuex'
import ListUnit from './components/newBusinessUnit.vue'
export default {
data() {
return {
pageData: {
pageIndex:1,
pageSize:10,
isEnd: false,
isLoading: true,
list:[]
},
pageList:[]
}
},
components:{
ListUnit
},
computed:{
...mapGetters({reloading:'shouldReLoadingList'})
},
methods: {
...mapMutations(['shouldReLoadingList']),
loadMore(){
if(!this.pageData.isEnd) {
this.pageData.pageIndex += 1
this.getList()
}
},
goDetail(item) {
let pageName = ''
this.$util.toNextRoute('navigateTo', "/pages/businessApproval/newDetail?id=" + item.BusinessProcess_ID)
},
getData() {
let _this = this
this.$request.$webPost('EShangApiMain/BusinessProcess/GetBusinessProcessList', {
QueryType:"0",
SearchParameter:{
Operation_Type: "10",
BusinessProcessState: "2000,3000,9000,9999",
},
ShowWholePower: true,
PageIndex:1,
PageSize: 10,
SortStr:'BUSINESSAPPROVAL_STATE,BUSINESS_STARTDATE desc'
// SortStr: 'BusinessProcess_State,BusinessProcess_StartDate desc'
}).then(res => {
console.log('res',res)
if(!res.Result_Code ||res.Result_Code!='100'){
_this.pageList = []
}else{
let list = res.Result_Data.List
if (list.length > 0) {
_this.pageList = this.pageData.pageIndex==1 ? list : [..._this.pageList,...list]
}
if (list.length < _this.pageData.pageSize) { //
_this.pageData.isEnd = true
}
_this.$forceUpdate()
}
uni.hideLoading()
setTimeout(function(){
_this.pageData.isLoading = false
},500)
})
},
},
onPullDownRefresh() {
this.pageData.pageIndex = 1
this.pageData.isEnd = false
uni.showLoading({
title:'正在加载'
})
this.getList()
setTimeout(function() {
uni.stopPullDownRefresh()
}, 1000)
},
onReachBottom(){
this.loadMore()
},
onShow() {
let _this = this
if(this.reloading) {
uni.showLoading({
title:'正在加载'
})
_this.pageData.pageIndex = 1
_this.pageData.isEnd = false
// _this.getList()
console.log('onShow')
_this.getData()
this.shouldReLoadingList(false)
}else{
console.log('onShow')
_this.getData()
}
},
onLoad() {
this.pageData.isLoading= true
uni.showLoading({
title:'正在加载'
})
// this.getList()
this.getData()
},
onUnload() {
this.$util.addUserBehavior()
},
onHide() {
}
}
</script>
<style scoped>
.content {
display: flex;
flex-direction: column;
justify-content: center;
/* height: 100%; */
}
</style>

File diff suppressed because it is too large Load Diff

View File

@ -278,11 +278,11 @@
getChange() { //
let _this = this
let itemName = Object.keys(json) //
let changeItem = {} //
let changeItem = {} //
let map = {}
let cateArr = []
let cardShowMap = {}
_this.baseData.CommodityList.forEach(item => {
if (!map[item.COMMODITY_TYPE]) {
@ -295,7 +295,7 @@
})
}
map[item.COMMODITY_TYPE].push(item)
itemName.forEach(el => {
let fName = 'F_' + el
@ -439,7 +439,7 @@
.uni-collapse-content .main-card:nth-last-child(1) {
margin-bottom: 40upx;
}
.card-title {
@ -486,6 +486,7 @@
}
.page-title {
padding: 15upx 0 15upx 30upx;
font-size: 26upx;
color: #949494;

View File

@ -0,0 +1,47 @@
<template>
<view>
</view>
</template>
<script>
import {mapState} from "vuex";
export default {
data() {
return {}
},
computed: {
...mapState({
user: (state)=>{
return {
UserId: state.userData.UserId,
UserName: state.userData.UserName,
Membership_Phone: state.userData.Membership_Phone,
Membership_Id: state.userData.Membership_Id,
Membership_Type: state.userData.Membership_Type
}
},
toDoMsg: (state)=>{
return state.toDoMsg
},
menus: (state)=> {
return state.userData.AuthorityInfo
}
}),
},
onLoad(){
if (this.menus['d55da792-5edc-4b73-8635-07246121157f']===1){
this.$util.toNextRoute('redirectTo', "/pages/businessApproval/newApproval")
}else{
this.$util.toNextRoute('redirectTo', "/pages/businessApproval/businessApproval")
}
},
methods:{
}
}
</script>
<style scoped>
</style>

View File

@ -181,7 +181,6 @@
<div class="check-btn no-check" @click="maskFn">取消</div>
<div class="check-btn" @click="examine()">确定</div>
</div>
</div>
<div class="opinion2" v-show="showPopupCheck">
<div v-if="ischeckOut">
@ -299,15 +298,15 @@
<div class="check-btn-box page-btn-box" v-if="isCheck!==0">
<!-- 财务审核 -->
<template v-if="isCheck==2">
<div class="check-btn" @click="openCancel()" v-if="effectiveDetail.TREATMENT_MARKSTATE!==3">
<span>作废</span>
</div>
<div class="check-btn" @click="menuImg(true)">
<span>驳回</span>
</div>
<div class="check-btn" @click="menuImg(false)">
<span>审核</span>
</div>
<div class="check-btn" @click="openCancel()" v-if="effectiveDetail.TREATMENT_MARKSTATE!==3">
<span>作废</span>
</div>
</template>
<!-- 数据校验 -->
<template v-else-if="isCheck==1">

View File

@ -21,14 +21,14 @@
<div class="operation-tab-unit" @tap="selectTab('nowTab',2)" :class="{'active':nowTab==2}">
经营业态</div>
<div class="operation-tab-unit" @tap="selectTab('nowTab',3)"
v-if="areaProgress.length && areaProgress.length>1" :class="{'active':nowTab==3}">区域营收
v-if="areaProgress && areaProgress.length>0" :class="{'active':nowTab==3}">区域营收
</div>
<div class="operation-tab-unit" @tap="selectTab('nowTab',4)"
v-if="theRequest.ProvinceCode == 340000 && theRequest.GroupType == 1000" :class="{'active':nowTab==4}">车流分析
</div>
</div>
<div class="operation-content-box">
<div v-show="nowTab==1" v-if="modelProgress.length>0&& theRequest.ProvinceCode==340000">
<div v-show="nowTab==1" v-if="modelProgress && modelProgress.length>0 && theRequest.ProvinceCode==340000">
<canvas canvas-id="modelCont" id="modelCont" class="operation-content"
@touchstart="touchPie($event,'modelCont')"></canvas>
<div>
@ -44,7 +44,7 @@
</div>
</div>
<div v-show="nowTab==2" v-if="regionProgress.length>0">
<div v-show="nowTab==2" v-if="regionProgress && regionProgress.length>0">
<canvas canvas-id="businessCont" id="businessCont" class="operation-content"
@touchstart="touchPie($event,'businessCont')"></canvas>
<div>
@ -60,7 +60,7 @@
</div>
</div>
<div v-show="nowTab==3" v-if="areaProgress.length>0">
<div v-show="nowTab==3" v-if="areaProgress && areaProgress.length>0">
<canvas canvas-id="areaCont" id="areaCont" class="operation-content"
@touchstart="touchPie($event,'areaCont')"></canvas>
<div>
@ -75,7 +75,7 @@
</div>
</div>
</div>
<div v-show="nowTab==4" v-if="bayonetProgress.length>0">
<div v-show="nowTab==4" v-if="bayonetProgress && bayonetProgress.length>0 ">
<div>
<div class="operation-c-list" v-for="(item,o) in bayonetProgress" :key="o">
<div class="operation-cl-unit">
@ -184,7 +184,7 @@
</template>
<template v-else>
<shopCell v-for="(item,i) in regionList" :key="i" :item='item' @toggleShow="toggleShow" :i='i' />
</template>
</view>
<template v-if="theRequest && theRequest.ProvinceCode==620000">
@ -376,7 +376,6 @@
labelWidth: 16,
border: true,
borderWidth: 1,
borderColor: '#fff'
}
},
@ -499,6 +498,8 @@
const [tprogressList, tpieList] = this.getProgressData(busniessTradePie, totalData.cashPay)
this.regionProgress = tprogressList
console.log('this.regionProgress',this.regionProgress)
console.log('tpieList',tpieList)
//
var colors2 = ['#5E67B4', '#4E5699', '#75B7AD', '#AFB7E6'];
this.showPie({
@ -510,6 +511,7 @@
//
const [aprogressList, apieList] = this.getProgressData(busniessAreaPie, totalData.cashPay)
this.areaProgress = aprogressList
console.log('this.areaProgress',this.areaProgress)
//
var colors3 = ['#FFAC37', '#d8ece9', '#f7f5f6', '#b2b7e3', '#F4B27A', '#F3B1C9', '#e0e3f7', '#FFE886', '#f7f5f6'];
this.showPie({
@ -523,6 +525,7 @@
//
const [bayonetList] = this.getBayonetData(bayonetPie)
this.bayonetProgress = bayonetList
console.log('this.bayonetProgress',this.bayonetProgress)
}
if (reginList.length) {
@ -541,13 +544,13 @@
...n,
textColor: '#999',
formatter: function(arg) {
if (typeof arg === 'number') {
return [n.name, (arg * 100).toFixed(2) + '%']
} else {
return [arg.name, (arg._proportion_ * 100).toFixed(2) + '%']
}
}
});
@ -622,18 +625,18 @@
ProvinceCode,
time
} = this.theRequest
const data = await this.$request.$webGet('CommercialApi/Revenue/GetWechatPushSalesList', {
pushProvinceCode: ProvinceCode,
Statistics_Date: time
})
if (data.Result_Code === 100 && data.Result_Data.TotalCount > 0) {
this.wechatPushSalesList = {}
data.Result_Data.List.forEach(n => {
this.wechatPushSalesList[n.Data_Type]= n.GoodsList
})
} else {
this.wechatPushSalesList = {}
}
@ -648,7 +651,7 @@
this.opacity = (options.scrollTop - 30) / 68
},
onLoad(option) {
console.log('optio1n',option)
uni.showLoading({
title: '正在加载...'
})
@ -676,13 +679,14 @@
}
}
this.nowTab = this.theRequest.ProvinceCode == 340000 ? 1 : 2
console.log('this.nowTab',this.nowTab)
this.todayAmount()
if (this.theRequest.GroupType == 1010) {
this.getDetail(this.theRequest)
}
//
if (this.theRequest.ProvinceCode == 620000) {
this.getRankContent()
}
},

View File

@ -49,7 +49,7 @@
lineStyle:{
color: '#D1D1D1'
},
},
data: [
...this.data[0]
@ -67,18 +67,18 @@
label: {
show:false,
},
color: this.data[1].length> 7 ? ['#FFC3CD','#F4A4B2','#FE6582','#FFE7C0','#FEDA9D','#FEC057','#F9C8A0','#FAB176','#ffa25b','#E1C9F7','#CDA6F1',
'#E0E2F6','#C5CDF9','#9AA6EF','#D8ECEA','#8FE5B2','#70D599','#ADE5EE'] :
['#70D599', '#FFE7C0', '#ADE5EE','#C5CDF9','#e0e3f7', '#AFB7E6', '#F3B1C9' ],
data: [
...this.data[1]
]
}
]
}
}
}
}
@ -88,7 +88,7 @@
let _this =this
// console.log('')
// console.log('chart', this.ec)
chart.on('click',function(params){
if(params.componentIndex==0){
_this.$emit('selectCate',params.dataIndex+1)
@ -96,7 +96,7 @@
// console.log(params)
})
},
},
}
</script>
@ -106,10 +106,10 @@
background-color: #fff;
} */
.uni-ec-canvas{
width: 750rpx;
height: 526rpx;
margin-top: 40rpx;
display:block;
width: 690rpx;
height: 526rpx;
margin-top: 40rpx;
display:block;
}
</style>

View File

@ -711,7 +711,9 @@
['OTHER_REVENUE', '其他营收']
];
var businessData = _this.operationBusniess(SHOWBUSINESSTRADE, data);
console.log('businessData',businessData)
this.regionProgress = businessData[1]
console.log('this.regionProgress',this.regionProgress)
_this.showPie({
id: 'businessCont',
data: businessData[0],
@ -729,7 +731,7 @@
];
var typeData = _this.operationBusniess(type, data);
this.tradeType = typeData[1]
_this.showPie({
id: 'typeCont',
data: typeData[0],
@ -782,7 +784,7 @@
}else{
return [arg.name,(arg._proportion_ * 100).toFixed(2) + '%']
}
}
});
_data2.push({
@ -813,7 +815,7 @@
data: data[n[0]], //+Number(data2[n[0]])
// labelText: '',
formatter: function(arg) {
if(typeof arg==='number'){
return [n[1],(arg * 100).toFixed(2) + '%']
}else{
@ -1186,12 +1188,14 @@
this.opacity = (options.scrollTop - 30) / 68
},
onLoad(option) {
console.log('indexOption',option)
uni.showLoading({
title: '正在加载...'
})
const toSnhuiPageProvinceCode = [340000,520000,451200,510000,620000,630000,330200] //
const toSnhuiPageProvinceCode = [340000,520000,451200,510000,620000,630000,330200,330300] //
if (option.ProvinceCode) { //
console.log('12321312',toSnhuiPageProvinceCode.indexOf(parseInt(option.ProvinceCode)))
if (toSnhuiPageProvinceCode.indexOf(parseInt(option.ProvinceCode))>-1) {
// 451200510000520000620000630000330200
uni.redirectTo({

View File

@ -9,14 +9,14 @@
:doCout="toDoMsg ? toDoMsg[item.id] : 0"
:active="item.id=='d5a9e3ef-3699-448f-abcc-819179df60bd' || menus[item.id]==1 || this.membershipType === 9999"
@handleClick="toPage"
></menuItem>
</view>
</menuModel>
<!-- <view class="home-model">
<div class="model-title">
<text class="text">综合办公</text>
</div>
</div>
<div class="model-content">
<menuItem v-for="item in modelMenu.zhbg"
:key="item.id"
@ -226,7 +226,7 @@
}
},
toPage(item) {
console.log('item',item)
let _this = this
if (!this.user.Membership_Phone) {

View File

@ -4,10 +4,9 @@
<image src="https://eshangtech.com/ShopICO/yxcl-register-pht.png" mode="aspectFit"></image>
<view class="desc" v-if="!user.WeChat_UserId ">
<!-- <view class="desc">申请获取你的公开信息(昵称头像)</view> -->
<button type="primary" class="btn" open-type="getUserInfo" @getuserinfo="bindGetUserInfo">微信授权</button>
<button type="primary" class="btn" open-type="getUserInfo" @getuserinfo="bindGetUserInfo">手机授权</button>
</view>
<view class="desc" v-else>
<button type="primary" class="btn" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">快速登录账号</button>
</view>

Binary file not shown.