Merge branch 'main' of http://106.15.139.36:30000/bestunion/Otsuka-APP
This commit is contained in:
commit
9c257f0363
11
api/AccountPriceFinallReview.js
Normal file
11
api/AccountPriceFinallReview.js
Normal file
@ -0,0 +1,11 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询账期价格复审主列表
|
||||
export const getPriceFinallReviewList = (data, query) => {
|
||||
return request({
|
||||
method: 'post',
|
||||
url: '/bussiness/baseusercredithistory/credit-period-repeatedly-review-list',
|
||||
data,
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
76
api/AccountPricePreliminaryRreview.js
Normal file
76
api/AccountPricePreliminaryRreview.js
Normal file
@ -0,0 +1,76 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获取账期价格初审列表
|
||||
export const getPricePreliminaryReviewList = (data, query) => {
|
||||
return request({
|
||||
method: 'post',
|
||||
url: '/bussiness/baseusercredithistory/credit-period-initial-review-list',
|
||||
data,
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 根据 ID 获取账期价格初审详情
|
||||
export const getPricePreliminaryReviewDetail = (query) => {
|
||||
return request({
|
||||
method: 'get',
|
||||
url: '/bussiness/baseusercredithistory/get-creditline-creditperiod',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获取账期审核/额度审核列表(两个列表一个接口)
|
||||
export const getLastPaymentAndQuotaList = (data, query) => {
|
||||
return request({
|
||||
method: 'post',
|
||||
url: '/bussiness/baseusercredithistory/goods-credit-period-initial-review-list',
|
||||
params: query,
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 账期终审/额度终审的回退(两个列表一个接口)
|
||||
export const putBackDataLastPaymentOrQuota = (data) => {
|
||||
return request({
|
||||
method: 'put',
|
||||
url: '/bussiness/baseusercredithistory/goods-credit-period-repeatedly-review-back',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
// 额度终审 (副总监初审)
|
||||
export const directorLastReviewQuota = (query) => {
|
||||
return request({
|
||||
method: 'put',
|
||||
url: '/bussiness/baseusercredithistory/goods-credit-limit-repeatedly-review',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
// 价格审核列表
|
||||
export const getPriceChangeReviewList = (data, query) => {
|
||||
return request({
|
||||
method: 'post',
|
||||
url: '/bussiness/baseusercredithistory/goods-credit-line-initial-review-list',
|
||||
params: query,
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 价格审核 的回退
|
||||
export const putBackDataPrice = (data) => {
|
||||
return request({
|
||||
method: 'put',
|
||||
url: '/bussiness/businessgoods/goods-credit-line-initial-review-back',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
||||
// 价格审核(副总监初审)
|
||||
export const directorReviewPrice = (query) => {
|
||||
return request({
|
||||
method: 'put',
|
||||
url: 'bussiness/businessgoods/goods-credit-line-initial-review',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
9
api/area.js
Normal file
9
api/area.js
Normal file
@ -0,0 +1,9 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获取地域列表
|
||||
export const getAreaList = () => {
|
||||
return request({
|
||||
method: 'get',
|
||||
url: '/system/dept/regionals',
|
||||
})
|
||||
}
|
||||
11
api/order.js
Normal file
11
api/order.js
Normal file
@ -0,0 +1,11 @@
|
||||
import request from "../utils/request";
|
||||
|
||||
// 订单综合查询列表内部用户
|
||||
export const getReportOrderQuery = (data, query) => {
|
||||
return request({
|
||||
method: 'post',
|
||||
url: '/report/stock/ReportOrderQuery',
|
||||
data: data,
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
@ -1,13 +1,13 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
|
||||
export function listsalemain(data,query) {
|
||||
export function listsalemain(data, query) {
|
||||
return request({
|
||||
url: '/bussiness/salemain/list',
|
||||
method: 'post',
|
||||
data: data,
|
||||
params: query,
|
||||
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
@ -21,24 +21,26 @@ export function productListWithUserId() {
|
||||
}
|
||||
|
||||
// 查询s生产单位列表
|
||||
export function listproductList(data,query) {
|
||||
return request({
|
||||
url: '/system/dept/productList',
|
||||
method: 'get',
|
||||
data:data,
|
||||
params: query
|
||||
})
|
||||
export function listproductList(data, query) {
|
||||
return request({
|
||||
url: '/system/dept/productList',
|
||||
method: 'get',
|
||||
data: data,
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 新建销售订单时候的商品列表
|
||||
export function listsaleBusGoodsList(data,query) {
|
||||
export function listsaleBusGoodsList(data, query) {
|
||||
return request({
|
||||
url: '/bussiness/businessgoods/saleBusGoodsList',
|
||||
method: 'post',
|
||||
data: data,
|
||||
params: query,
|
||||
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
// 查询剩余额度
|
||||
export function getsalemaincheckAmount(queryParams) {
|
||||
return request({
|
||||
@ -47,6 +49,7 @@ export function getsalemaincheckAmount(queryParams) {
|
||||
// isEncrypt: false
|
||||
})
|
||||
}
|
||||
|
||||
// 获取当前商业用户票扣列表
|
||||
// 相当于补差
|
||||
export function salemainpiAoKouList(data) {
|
||||
@ -57,6 +60,7 @@ export function salemainpiAoKouList(data) {
|
||||
isEncrypt: false
|
||||
})
|
||||
}
|
||||
|
||||
// 新增
|
||||
export function addsalemain(data) {
|
||||
return request({
|
||||
@ -85,6 +89,7 @@ export function salemainDetail(salemainId) {
|
||||
// isEncrypt: false
|
||||
})
|
||||
}
|
||||
|
||||
// 商务经理审批时获取详情,下面的商品列表
|
||||
export function businessManagerReviewGoodsList(salemainId) {
|
||||
return request({
|
||||
@ -98,14 +103,13 @@ export function businessManagerReviewGoodsList(salemainId) {
|
||||
// 删除
|
||||
export function delsalemain(id) {
|
||||
return request({
|
||||
url: '/bussiness/salemain/remove?ids=' +id,
|
||||
url: '/bussiness/salemain/remove?ids=' + id,
|
||||
method: 'post',
|
||||
// isEncrypt: false
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 订单详情中,查询商业用户详细--收货地址
|
||||
export function BaseuserBusinessUserDetail(BaseuserBusinessUserId) {
|
||||
return request({
|
||||
@ -125,11 +129,11 @@ export function getSaleDisDetail(saleid) {
|
||||
}
|
||||
|
||||
// 销售订单操作日志
|
||||
export function salemainlogList(data,query) {
|
||||
export function salemainlogList(data, query) {
|
||||
return request({
|
||||
url: '/bussiness/salemainlog/list',
|
||||
method: 'post',
|
||||
data:data,
|
||||
data: data,
|
||||
params: query,
|
||||
isEncrypt: false
|
||||
})
|
||||
@ -144,15 +148,11 @@ export function getInvoiceList(saleid) {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 获取商业公司列表
|
||||
export function getBusinessList(data) {
|
||||
export const getBusinessCompanyList = (data) => {
|
||||
return request({
|
||||
url: '/system/user/list_business',
|
||||
method: 'post',
|
||||
data:data,
|
||||
isEncrypt: false
|
||||
url: '/system/user/list_business',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
36
components/Area.vue
Normal file
36
components/Area.vue
Normal file
@ -0,0 +1,36 @@
|
||||
<template>
|
||||
<uni-data-select
|
||||
v-model="modelValue"
|
||||
:localdata="options"
|
||||
v-bind="omit($attrs,['change'])"
|
||||
placeholder="请选择地域"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {defineModel, defineOptions, defineProps, getCurrentInstance, onMounted, ref} from 'vue'
|
||||
import {omit} from "radash";
|
||||
import UniDataSelect from "../uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue";
|
||||
import {getAreaList} from "../api/area";
|
||||
|
||||
defineOptions({
|
||||
name: "Area",
|
||||
inheritAttrs: false
|
||||
})
|
||||
|
||||
const modelValue = defineModel()
|
||||
const props = defineProps([])
|
||||
const {proxy} = getCurrentInstance()
|
||||
|
||||
const options = ref([])
|
||||
|
||||
onMounted(async () => {
|
||||
const {data} = await getAreaList()
|
||||
options.value = data.sort((a, b) => {
|
||||
return a.deptName.localeCompare(b.deptName, 'zh-CN');
|
||||
}).map(i => ({
|
||||
value: i.deptId,
|
||||
text: i.deptName
|
||||
}))
|
||||
})
|
||||
</script>
|
||||
66
components/BusinessCompany.vue
Normal file
66
components/BusinessCompany.vue
Normal file
@ -0,0 +1,66 @@
|
||||
<template>
|
||||
<uni-data-select
|
||||
v-model="modelValue"
|
||||
:localdata="options"
|
||||
placeholder="请选择商业公司"
|
||||
v-bind="omit($attrs,['change'])"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {defineModel, defineOptions, defineProps, getCurrentInstance, nextTick, onMounted, ref, watch} from 'vue'
|
||||
import {omit} from "radash";
|
||||
import {getBusinessCompanyList} from "../api/orderManager";
|
||||
|
||||
defineOptions({
|
||||
name: "BusinessCompany",
|
||||
inheritAttrs: false
|
||||
})
|
||||
|
||||
const modelValue = defineModel()
|
||||
// default: type = all_name
|
||||
/**
|
||||
* type:
|
||||
* all_name = 显示所有名称
|
||||
* id = value 值是 ID
|
||||
*/
|
||||
const props = defineProps({
|
||||
type: {
|
||||
type: String,
|
||||
default: 'all_name'
|
||||
},
|
||||
areaId: {
|
||||
type: Number,
|
||||
default: 0
|
||||
}
|
||||
})
|
||||
const {proxy} = getCurrentInstance()
|
||||
|
||||
const options = ref([])
|
||||
|
||||
const handleQuery = async () => {
|
||||
const {data} = await getBusinessCompanyList({
|
||||
isUnit: 0,
|
||||
queryParam: {
|
||||
areaId: props.areaId
|
||||
}
|
||||
})
|
||||
options.value = data.map(item => {
|
||||
return {
|
||||
value: props.type === 'id' ? item.userid : item.businessname,
|
||||
text: item.businessname
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
await nextTick()
|
||||
await handleQuery()
|
||||
})
|
||||
|
||||
watch(() => props.areaId, async (newValue) => {
|
||||
if (newValue) {
|
||||
await handleQuery()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
21
pages.json
21
pages.json
@ -156,6 +156,27 @@
|
||||
"props": true
|
||||
// 开启 props 传参
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/work/OrderSearchQuery/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "订单综合查询",
|
||||
"props": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/work/AccountPricePreliminaryRreview/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "账期价格初审",
|
||||
"props": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/work/AccountPriceFinallReview/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "账期价格复审",
|
||||
"props": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"tabBar": {
|
||||
|
||||
308
pages/login.vue
308
pages/login.vue
@ -1,231 +1,197 @@
|
||||
<template>
|
||||
<view class="normal-login-container">
|
||||
<view class="logo-content align-center justify-center flex">
|
||||
<image style="width: 100rpx;height: 100rpx;" :src="globalConfig.appInfo.logo" mode="widthFix">
|
||||
</image>
|
||||
<text class="title">大冢APS Ultra管理平台</text>
|
||||
</view>
|
||||
<view class="login-form-content">
|
||||
<view class="input-item flex align-center">
|
||||
<view class="iconfont icon-user icon"></view>
|
||||
<input v-model="loginForm.username" class="input" type="text" placeholder="请输入账号" maxlength="30" />
|
||||
</view>
|
||||
<view class="input-item flex align-center">
|
||||
<view class="iconfont icon-password icon"></view>
|
||||
<input v-model="loginForm.password" :type="passwordVisible ? 'text' : 'password'" class="input" placeholder="请输入密码" maxlength="20" />
|
||||
<view class="password-eye" @click="togglePasswordVisible">
|
||||
<uni-icons :type="passwordVisible ? 'eye-slash' : 'eye'" size="20" color="#999"></uni-icons>
|
||||
<view class="normal-login-container">
|
||||
<view class="logo-content align-center justify-center flex">
|
||||
<image :src="globalConfig.appInfo.logo" mode="widthFix" style="width: 100rpx;height: 100rpx;">
|
||||
</image>
|
||||
<text class="title">大冢APS Ultra管理平台</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="input-item flex align-center" style="width: 60%;margin: 0px;" v-if="captchaEnabled">
|
||||
<view class="iconfont icon-code icon"></view>
|
||||
<input v-model="loginForm.code" type="number" class="input" placeholder="请输入验证码" maxlength="4" />
|
||||
<view class="login-code">
|
||||
<image :src="codeUrl" @click="getCode" class="login-code-img"></image>
|
||||
<view class="login-form-content">
|
||||
<view class="input-item flex align-center">
|
||||
<view class="iconfont icon-user icon"></view>
|
||||
<input v-model="loginForm.username" class="input" maxlength="30" placeholder="请输入账号" type="text"/>
|
||||
</view>
|
||||
<view class="input-item flex align-center">
|
||||
<view class="iconfont icon-password icon"></view>
|
||||
<input v-model="loginForm.password" class="input" maxlength="20" placeholder="请输入密码"
|
||||
type="password"/>
|
||||
</view>
|
||||
<view v-if="captchaEnabled" class="input-item flex align-center" style="width: 60%;margin: 0px;">
|
||||
<view class="iconfont icon-code icon"></view>
|
||||
<input v-model="loginForm.code" class="input" maxlength="4" placeholder="请输入验证码" type="number"/>
|
||||
<view class="login-code">
|
||||
<image :src="codeUrl" class="login-code-img" @click="getCode"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="action-btn">
|
||||
<button class="login-btn cu-btn block bg-blue lg round" @click="handleLogin">登录</button>
|
||||
</view>
|
||||
<view v-if="register" class="reg text-center">
|
||||
<text class="text-grey1">没有账号?</text>
|
||||
<text class="text-blue" @click="handleUserRegister">立即注册</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="action-btn">
|
||||
<button @click="handleLogin" class="login-btn cu-btn block bg-blue lg round">登录</button>
|
||||
</view>
|
||||
<view class="reg text-center" v-if="register">
|
||||
<text class="text-grey1">没有账号?</text>
|
||||
<text @click="handleUserRegister" class="text-blue">立即注册</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, getCurrentInstance } from "vue"
|
||||
import { onLoad } from "@dcloudio/uni-app"
|
||||
import { getToken } from '@/utils/auth'
|
||||
import { getCodeImg } from '@/api/login'
|
||||
import { useConfigStore, useUserStore } from '@/store'
|
||||
import {getCurrentInstance, ref} from "vue"
|
||||
import {onLoad} from "@dcloudio/uni-app"
|
||||
import {getToken} from '@/utils/auth'
|
||||
import {getCodeImg} from '@/api/login'
|
||||
import {useConfigStore, useUserStore} from '@/store'
|
||||
|
||||
const { proxy } = getCurrentInstance()
|
||||
const globalConfig = useConfigStore().config
|
||||
const codeUrl = ref("")
|
||||
// 验证码开关
|
||||
const captchaEnabled = ref(true)
|
||||
// 用户注册开关
|
||||
const register = ref(false)
|
||||
// 密码可见性
|
||||
const passwordVisible = ref(false)
|
||||
|
||||
const loginForm = ref({
|
||||
const {proxy} = getCurrentInstance()
|
||||
const globalConfig = useConfigStore().config
|
||||
const codeUrl = ref("")
|
||||
// 验证码开关
|
||||
const captchaEnabled = ref(true)
|
||||
// 用户注册开关
|
||||
const register = ref(false)
|
||||
const loginForm = ref({
|
||||
username: "admin",
|
||||
password: "admin123",
|
||||
code: "",
|
||||
uuid: ""
|
||||
})
|
||||
})
|
||||
|
||||
// 切换密码可见性
|
||||
function togglePasswordVisible() {
|
||||
passwordVisible.value = !passwordVisible.value
|
||||
}
|
||||
|
||||
// 用户注册
|
||||
function handleUserRegister() {
|
||||
// 用户注册
|
||||
function handleUserRegister() {
|
||||
proxy.$tab.redirectTo(`/pages/register`)
|
||||
}
|
||||
}
|
||||
|
||||
// 获取图形验证码
|
||||
function getCode() {
|
||||
// 获取图形验证码
|
||||
function getCode() {
|
||||
getCodeImg().then(res => {
|
||||
captchaEnabled.value = res.captchaEnabled === undefined ? true : res.captchaEnabled
|
||||
captchaEnabled.value = res.captchaEnabled === undefined ? true : res.captchaEnabled
|
||||
if (captchaEnabled.value) {
|
||||
codeUrl.value = 'data:image/gif;base64,' + res.img
|
||||
loginForm.value.uuid = res.uuid
|
||||
codeUrl.value = 'data:image/gif;base64,' + res.img
|
||||
loginForm.value.uuid = res.uuid
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// 登录方法
|
||||
async function handleLogin() {
|
||||
// 登录方法
|
||||
async function handleLogin() {
|
||||
if (loginForm.value.username === "") {
|
||||
proxy.$modal.msgError("请输入账号")
|
||||
proxy.$modal.msgError("请输入账号")
|
||||
} else if (loginForm.value.password === "") {
|
||||
proxy.$modal.msgError("请输入密码")
|
||||
proxy.$modal.msgError("请输入密码")
|
||||
} else if (loginForm.value.code === "" && captchaEnabled.value) {
|
||||
proxy.$modal.msgError("请输入验证码")
|
||||
proxy.$modal.msgError("请输入验证码")
|
||||
} else {
|
||||
proxy.$modal.loading("登录中,请耐心等待...")
|
||||
pwdLogin()
|
||||
proxy.$modal.loading("登录中,请耐心等待...")
|
||||
pwdLogin()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 密码登录
|
||||
async function pwdLogin() {
|
||||
// 密码登录
|
||||
async function pwdLogin() {
|
||||
useUserStore().login(loginForm.value).then(() => {
|
||||
proxy.$modal.closeLoading()
|
||||
loginSuccess()
|
||||
proxy.$modal.closeLoading()
|
||||
loginSuccess()
|
||||
}).catch(() => {
|
||||
if (captchaEnabled.value) {
|
||||
getCode()
|
||||
}
|
||||
if (captchaEnabled.value) {
|
||||
getCode()
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// 登录成功后,处理函数
|
||||
function loginSuccess(result) {
|
||||
// 登录成功后,处理函数
|
||||
function loginSuccess(result) {
|
||||
// 设置用户信息
|
||||
useUserStore().getInfo().then(res => {
|
||||
proxy.$tab.reLaunch('/pages/work/index')
|
||||
proxy.$tab.reLaunch('/pages/index')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
onLoad(() => {
|
||||
onLoad(() => {
|
||||
//#ifdef H5
|
||||
if (getToken()) {
|
||||
proxy.$tab.reLaunch('/pages/index')
|
||||
proxy.$tab.reLaunch('/pages/index')
|
||||
}
|
||||
//#endif
|
||||
})
|
||||
})
|
||||
|
||||
getCode()
|
||||
getCode()
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
page {
|
||||
page {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
}
|
||||
|
||||
.normal-login-container {
|
||||
.normal-login-container {
|
||||
width: 100%;
|
||||
|
||||
.logo-content {
|
||||
width: 100%;
|
||||
font-size: 21px;
|
||||
text-align: center;
|
||||
padding-top: 15%;
|
||||
width: 100%;
|
||||
font-size: 21px;
|
||||
text-align: center;
|
||||
padding-top: 15%;
|
||||
|
||||
image {
|
||||
border-radius: 4px;
|
||||
}
|
||||
image {
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.title {
|
||||
margin-left: 10px;
|
||||
}
|
||||
.title {
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.login-form-content {
|
||||
text-align: center;
|
||||
margin: 20px auto;
|
||||
margin-top: 15%;
|
||||
width: 80%;
|
||||
|
||||
.input-item {
|
||||
text-align: center;
|
||||
margin: 20px auto;
|
||||
background-color: #f5f6f7;
|
||||
height: 45px;
|
||||
border-radius: 20px;
|
||||
position: relative;
|
||||
margin-top: 15%;
|
||||
width: 80%;
|
||||
|
||||
.input-item {
|
||||
margin: 20px auto;
|
||||
background-color: #f5f6f7;
|
||||
height: 45px;
|
||||
border-radius: 20px;
|
||||
|
||||
.icon {
|
||||
font-size: 38rpx;
|
||||
margin-left: 10px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.input {
|
||||
width: 100%;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
text-align: left;
|
||||
padding-left: 15px;
|
||||
}
|
||||
|
||||
.icon {
|
||||
font-size: 38rpx;
|
||||
margin-left: 10px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.input {
|
||||
width: 100%;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
text-align: left;
|
||||
padding-left: 15px;
|
||||
padding-right: 45px; /* 为眼睛图标留出更多空间 */
|
||||
.login-btn {
|
||||
margin-top: 40px;
|
||||
height: 45px;
|
||||
}
|
||||
|
||||
.password-eye {
|
||||
position: absolute;
|
||||
right: 15px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
z-index: 10;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
|
||||
/* 增加点击区域 */
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: -10px;
|
||||
left: -10px;
|
||||
right: -10px;
|
||||
bottom: -10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.login-btn {
|
||||
margin-top: 40px;
|
||||
height: 45px;
|
||||
}
|
||||
|
||||
.reg {
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.xieyi {
|
||||
color: #333;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.login-code {
|
||||
height: 38px;
|
||||
float: right;
|
||||
|
||||
.login-code-img {
|
||||
height: 38px;
|
||||
position: absolute;
|
||||
margin-left: 10px;
|
||||
width: 200rpx;
|
||||
.reg {
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.xieyi {
|
||||
color: #333;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.login-code {
|
||||
height: 38px;
|
||||
float: right;
|
||||
|
||||
.login-code-img {
|
||||
height: 38px;
|
||||
position: absolute;
|
||||
margin-left: 10px;
|
||||
width: 200rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -1,191 +1,192 @@
|
||||
<template>
|
||||
<view class="mine-container" :style="{height: `${windowHeight}px`}">
|
||||
<!--顶部个人信息栏-->
|
||||
<view class="header-section">
|
||||
<view class="flex padding justify-between">
|
||||
<view class="flex align-center">
|
||||
<view v-if="!avatar" class="cu-avatar xl round bg-white">
|
||||
<view class="iconfont icon-people text-gray icon"></view>
|
||||
</view>
|
||||
<image v-if="avatar" @click="handleToAvatar" :src="avatar" class="cu-avatar xl round" mode="widthFix">
|
||||
</image>
|
||||
<view v-if="!name" @click="handleToLogin" class="login-tip">
|
||||
点击登录
|
||||
</view>
|
||||
<view v-if="name" @click="handleToInfo" class="user-info">
|
||||
<view class="u_title">
|
||||
用户名:{{ name }}
|
||||
<view :style="{height: `${windowHeight}px`}" class="mine-container">
|
||||
<!--顶部个人信息栏-->
|
||||
<view class="header-section">
|
||||
<view class="flex padding justify-between">
|
||||
<view class="flex align-center">
|
||||
<view v-if="!avatar" class="cu-avatar xl round bg-white">
|
||||
<view class="iconfont icon-people text-gray icon"></view>
|
||||
</view>
|
||||
<image v-if="avatar" :src="avatar" class="cu-avatar xl round" mode="widthFix"
|
||||
@click="handleToAvatar">
|
||||
</image>
|
||||
<view v-if="!name" class="login-tip" @click="handleToLogin">
|
||||
点击登录
|
||||
</view>
|
||||
<view v-if="name" class="user-info" @click="handleToInfo">
|
||||
<view class="u_title">
|
||||
用户名:{{ name }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex align-center" @click="handleToInfo">
|
||||
<text>个人信息</text>
|
||||
<view class="iconfont icon-right"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view @click="handleToInfo" class="flex align-center">
|
||||
<text>个人信息</text>
|
||||
<view class="iconfont icon-right"></view>
|
||||
|
||||
<view class="content-section">
|
||||
<view class="mine-actions grid col-4 text-center">
|
||||
<view class="action-item" @click="handleJiaoLiuQun">
|
||||
<view class="iconfont icon-friendfill text-pink icon"></view>
|
||||
<text class="text">交流群</text>
|
||||
</view>
|
||||
<view class="action-item" @click="handleBuilding">
|
||||
<view class="iconfont icon-service text-blue icon"></view>
|
||||
<text class="text">在线客服</text>
|
||||
</view>
|
||||
<view class="action-item" @click="handleBuilding">
|
||||
<view class="iconfont icon-community text-mauve icon"></view>
|
||||
<text class="text">反馈社区</text>
|
||||
</view>
|
||||
<view class="action-item" @click="handleBuilding">
|
||||
<view class="iconfont icon-dianzan text-green icon"></view>
|
||||
<text class="text">点赞我们</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="menu-list">
|
||||
<view class="list-cell list-cell-arrow" @click="handleToEditInfo">
|
||||
<view class="menu-item-box">
|
||||
<view class="iconfont icon-user menu-icon"></view>
|
||||
<view>编辑资料</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="list-cell list-cell-arrow" @click="handleHelp">
|
||||
<view class="menu-item-box">
|
||||
<view class="iconfont icon-help menu-icon"></view>
|
||||
<view>常见问题</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="list-cell list-cell-arrow" @click="handleAbout">
|
||||
<view class="menu-item-box">
|
||||
<view class="iconfont icon-aixin menu-icon"></view>
|
||||
<view>关于我们</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="list-cell list-cell-arrow" @click="handleToSetting">
|
||||
<view class="menu-item-box">
|
||||
<view class="iconfont icon-setting menu-icon"></view>
|
||||
<view>应用设置</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="content-section">
|
||||
<!-- <view class="mine-actions grid col-4 text-center">
|
||||
<view class="action-item" @click="handleJiaoLiuQun">
|
||||
<view class="iconfont icon-friendfill text-pink icon"></view>
|
||||
<text class="text">交流群</text>
|
||||
</view>
|
||||
<view class="action-item" @click="handleBuilding">
|
||||
<view class="iconfont icon-service text-blue icon"></view>
|
||||
<text class="text">在线客服</text>
|
||||
</view>
|
||||
<view class="action-item" @click="handleBuilding">
|
||||
<view class="iconfont icon-community text-mauve icon"></view>
|
||||
<text class="text">反馈社区</text>
|
||||
</view>
|
||||
<view class="action-item" @click="handleBuilding">
|
||||
<view class="iconfont icon-dianzan text-green icon"></view>
|
||||
<text class="text">点赞我们</text>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<view class="menu-list">
|
||||
<view class="list-cell list-cell-arrow" @click="handleToEditInfo">
|
||||
<view class="menu-item-box">
|
||||
<view class="iconfont icon-user menu-icon"></view>
|
||||
<view>编辑资料</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="list-cell list-cell-arrow" @click="handleHelp">
|
||||
<view class="menu-item-box">
|
||||
<view class="iconfont icon-help menu-icon"></view>
|
||||
<view>常见问题</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="list-cell list-cell-arrow" @click="handleAbout">
|
||||
<view class="menu-item-box">
|
||||
<view class="iconfont icon-aixin menu-icon"></view>
|
||||
<view>关于我们</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="list-cell list-cell-arrow" @click="handleToSetting">
|
||||
<view class="menu-item-box">
|
||||
<view class="iconfont icon-setting menu-icon"></view>
|
||||
<view>应用设置</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { useUserStore } from '@/store'
|
||||
import { computed , getCurrentInstance } from "vue"
|
||||
import {useUserStore} from '@/store'
|
||||
import {computed, getCurrentInstance} from "vue"
|
||||
|
||||
const { proxy } = getCurrentInstance()
|
||||
const name = useUserStore().name
|
||||
const avatar = computed(() => useUserStore().avatar)
|
||||
const windowHeight = computed(() => uni.getSystemInfoSync().windowHeight - 50)
|
||||
const {proxy} = getCurrentInstance()
|
||||
const name = useUserStore().name
|
||||
const avatar = computed(() => useUserStore().avatar)
|
||||
const windowHeight = computed(() => uni.getSystemInfoSync().windowHeight - 50)
|
||||
|
||||
function handleToInfo() {
|
||||
function handleToInfo() {
|
||||
proxy.$tab.navigateTo('/pages/mine/info/index')
|
||||
}
|
||||
}
|
||||
|
||||
function handleToEditInfo() {
|
||||
function handleToEditInfo() {
|
||||
proxy.$tab.navigateTo('/pages/mine/info/edit')
|
||||
}
|
||||
}
|
||||
|
||||
function handleToSetting() {
|
||||
function handleToSetting() {
|
||||
proxy.$tab.navigateTo('/pages/mine/setting/index')
|
||||
}
|
||||
}
|
||||
|
||||
function handleToLogin() {
|
||||
function handleToLogin() {
|
||||
proxy.$tab.reLaunch('/pages/login')
|
||||
}
|
||||
}
|
||||
|
||||
function handleToAvatar() {
|
||||
proxy.$modal.showToast('模块建设中~')
|
||||
// proxy.$tab.navigateTo('/pages/mine/avatar/index')
|
||||
}
|
||||
|
||||
function handleHelp() {
|
||||
proxy.$modal.showToast('模块建设中~')
|
||||
// proxy.$tab.navigateTo('/pages/mine/help/index')
|
||||
}
|
||||
|
||||
function handleAbout() {
|
||||
proxy.$modal.showToast('模块建设中~')
|
||||
// proxy.$tab.navigateTo('/pages/mine/about/index')
|
||||
}
|
||||
|
||||
function handleJiaoLiuQun() {
|
||||
proxy.$modal.showToast('模块建设中~')
|
||||
// proxy.$modal.showToast('QQ群:①133713780(满)、②146013835(满)、③189091635')
|
||||
}
|
||||
|
||||
function handleBuilding() {
|
||||
function handleToAvatar() {
|
||||
proxy.$modal.showToast('模块建设中~')
|
||||
}
|
||||
// proxy.$tab.navigateTo('/pages/mine/avatar/index')
|
||||
}
|
||||
|
||||
function handleHelp() {
|
||||
proxy.$modal.showToast('模块建设中~')
|
||||
// proxy.$tab.navigateTo('/pages/mine/help/index')
|
||||
}
|
||||
|
||||
function handleAbout() {
|
||||
proxy.$modal.showToast('模块建设中~')
|
||||
// proxy.$tab.navigateTo('/pages/mine/about/index')
|
||||
}
|
||||
|
||||
function handleJiaoLiuQun() {
|
||||
proxy.$modal.showToast('模块建设中~')
|
||||
// proxy.$modal.showToast('QQ群:①133713780(满)、②146013835(满)、③189091635')
|
||||
}
|
||||
|
||||
function handleBuilding() {
|
||||
proxy.$modal.showToast('模块建设中~')
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
page {
|
||||
page {
|
||||
background-color: #f5f6f7;
|
||||
}
|
||||
}
|
||||
|
||||
.mine-container {
|
||||
.mine-container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
|
||||
.header-section {
|
||||
padding: 15px 15px 45px 15px;
|
||||
background-color: #3c96f3;
|
||||
color: white;
|
||||
padding: 15px 15px 45px 15px;
|
||||
background-color: #3c96f3;
|
||||
color: white;
|
||||
|
||||
.login-tip {
|
||||
font-size: 18px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.cu-avatar {
|
||||
border: 2px solid #eaeaea;
|
||||
|
||||
.icon {
|
||||
font-size: 40px;
|
||||
.login-tip {
|
||||
font-size: 18px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.user-info {
|
||||
margin-left: 15px;
|
||||
.cu-avatar {
|
||||
border: 2px solid #eaeaea;
|
||||
|
||||
.u_title {
|
||||
font-size: 18px;
|
||||
line-height: 30px;
|
||||
.icon {
|
||||
font-size: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
.user-info {
|
||||
margin-left: 15px;
|
||||
|
||||
.u_title {
|
||||
font-size: 18px;
|
||||
line-height: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.content-section {
|
||||
position: relative;
|
||||
top: -50px;
|
||||
position: relative;
|
||||
top: -50px;
|
||||
|
||||
.mine-actions {
|
||||
margin: 15px 15px;
|
||||
padding: 20px 0px;
|
||||
border-radius: 8px;
|
||||
background-color: white;
|
||||
.mine-actions {
|
||||
margin: 15px 15px;
|
||||
padding: 20px 0px;
|
||||
border-radius: 8px;
|
||||
background-color: white;
|
||||
|
||||
.action-item {
|
||||
.icon {
|
||||
font-size: 28px;
|
||||
}
|
||||
.action-item {
|
||||
.icon {
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.text {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
margin: 8px 0px;
|
||||
}
|
||||
.text {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
margin: 8px 0px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<uni-list>
|
||||
<uni-list-item showExtraIcon="true" :extraIcon="{type: 'person-filled'}" title="昵称" :rightText="user.nickName" />
|
||||
<uni-list-item showExtraIcon="true" :extraIcon="{type: 'person-filled'}" title="昵称" :rightText="user.userName" />
|
||||
<uni-list-item showExtraIcon="true" :extraIcon="{type: 'phone-filled'}" title="手机号码" :rightText="user.phonenumber" />
|
||||
<uni-list-item showExtraIcon="true" :extraIcon="{type: 'email-filled'}" title="邮箱" :rightText="user.email" />
|
||||
<uni-list-item showExtraIcon="true" :extraIcon="{type: 'auth-filled'}" title="岗位" :rightText="postGroup" />
|
||||
|
||||
88
pages/work/AccountPriceFinallReview/index.vue
Normal file
88
pages/work/AccountPriceFinallReview/index.vue
Normal file
@ -0,0 +1,88 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<MBCard>
|
||||
<uni-forms ref="baseForm" :modelValue="queryParams">
|
||||
<uni-forms-item label="大区">
|
||||
<LargeArea v-model="queryParams.bigAreaId" @change="handleQuery"/>
|
||||
</uni-forms-item>
|
||||
<uni-forms-item label="地域">
|
||||
<Area v-model="queryParams.deptId" @change="handleQuery"/>
|
||||
</uni-forms-item>
|
||||
<uni-forms-item label="商业公司">
|
||||
<BusinessCompany
|
||||
v-model="queryParams.businessName"
|
||||
@change="handleQuery"
|
||||
/>
|
||||
</uni-forms-item>
|
||||
</uni-forms>
|
||||
</MBCard>
|
||||
|
||||
<uni-table ref="table" :loading="loading" emptyText="暂无更多数据" stripe>
|
||||
<uni-tr>
|
||||
<uni-th align="center" width="50">序号</uni-th>
|
||||
<uni-th align="left" width="200">公司名称</uni-th>
|
||||
<uni-th align="left" width="50">地域</uni-th>
|
||||
<uni-th width="100">账期终审</uni-th>
|
||||
<uni-th width="100">额度终审</uni-th>
|
||||
<uni-th width="100">价格终审</uni-th>
|
||||
</uni-tr>
|
||||
<uni-tr v-for="(item, index) in tableData" :key="index">
|
||||
<uni-td align="center">{{ index + 1 }}</uni-td>
|
||||
<uni-td>{{ item.userName }}</uni-td>
|
||||
<uni-td>{{ item.areaName }}</uni-td>
|
||||
<uni-td>
|
||||
<view v-if="item.creditPeriod > 0">
|
||||
<button class="uni-button" size="mini" type="submit">编辑</button>
|
||||
</view>
|
||||
</uni-td>
|
||||
<uni-td>
|
||||
<view v-if="item.creditLimit > 0">
|
||||
<button class="uni-button" size="mini" type="submit">编辑</button>
|
||||
</view>
|
||||
</uni-td>
|
||||
<uni-td>
|
||||
<view v-if="item.price > 0">
|
||||
<button class="uni-button" size="mini" type="submit">编辑</button>
|
||||
</view>
|
||||
</uni-td>
|
||||
</uni-tr>
|
||||
</uni-table>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {defineOptions, onMounted, ref} from "vue"
|
||||
import Area from "../../../components/Area.vue";
|
||||
import MBCard from "../../../components/MB/MBCard.vue";
|
||||
import UniFormsItem from "../../../uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue";
|
||||
import BusinessCompany from "../../../components/BusinessCompany.vue";
|
||||
import UniForms from "../../../uni_modules/uni-forms/components/uni-forms/uni-forms.vue";
|
||||
import LargeArea from "../../../components/LargeArea/LargeArea.vue";
|
||||
import {getPriceFinallReviewList} from "../../../api/AccountPriceFinallReview";
|
||||
|
||||
defineOptions({
|
||||
name: "AccountPriceFinallReview"
|
||||
})
|
||||
|
||||
|
||||
const loading = ref(true)
|
||||
const queryParams = ref({})
|
||||
const tableData = ref([])
|
||||
const total = ref(0)
|
||||
const paging = ref({
|
||||
pageNum: 1,
|
||||
pageSize: 100,
|
||||
})
|
||||
|
||||
const handleQuery = async () => {
|
||||
const data = await getPriceFinallReviewList(queryParams.value, paging.value)
|
||||
tableData.value = data.rows
|
||||
total.value = data.total
|
||||
loading.value = false
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
await handleQuery()
|
||||
})
|
||||
</script>
|
||||
@ -0,0 +1,107 @@
|
||||
<template>
|
||||
<uni-drawer ref="drawerContainerRef" :width="width" mode="right">
|
||||
|
||||
<uni-nav-bar
|
||||
:border="false"
|
||||
:fixed="true"
|
||||
left-icon="left"
|
||||
status-bar
|
||||
title="账期审核"
|
||||
@clickLeft="hideDrawer"
|
||||
/>
|
||||
|
||||
<uni-collapse ref="collapse">
|
||||
<uni-collapse-item
|
||||
v-for="row in tableData"
|
||||
:key="row.creditHistId"
|
||||
:title="row.shortName"
|
||||
open
|
||||
>
|
||||
<view class="padding">
|
||||
<view class="context">
|
||||
<view class="label">
|
||||
<text>货主:</text>
|
||||
<text>{{ row.companyName }}</text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text>状态:</text>
|
||||
<text>{{ row.state }}</text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text>老账期:</text>
|
||||
<text>{{ row.oldCreditPeriod }}</text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text>新账期:</text>
|
||||
<text>{{ row.creditPeriod }}</text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text>申请日期:</text>
|
||||
<text>{{ row.addDate }}</text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text></text>
|
||||
<button class="mini-btn" size="mini" type="primary" @click="handleReview(row)">查看</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</uni-collapse-item>
|
||||
</uni-collapse>
|
||||
</uni-drawer>
|
||||
<AccountPeriodReview ref="AccountPeriodReviewRef" @refresh="handleQuery"/>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {defineExpose, ref} from 'vue'
|
||||
import {getLastPaymentAndQuotaList} from "../../../../api/AccountPricePreliminaryRreview.js";
|
||||
import AccountPeriodReview from "./components/AccountPeriodReview.vue";
|
||||
|
||||
// 账期审核
|
||||
|
||||
defineOptions({
|
||||
name: 'AccountPeriod'
|
||||
})
|
||||
|
||||
const width = ref(document.documentElement.clientWidth || document.body.clientWidth)
|
||||
const id = ref('')
|
||||
const queryParams = ref({})
|
||||
const drawerContainerRef = ref()
|
||||
const AccountPeriodReviewRef = ref()
|
||||
|
||||
const tableData = ref([])
|
||||
const total = ref()
|
||||
const paging = ref({
|
||||
pageNum: 1,
|
||||
pageSize: 100,
|
||||
})
|
||||
|
||||
const handleQuery = async () => {
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
});
|
||||
const {rows, total:count} = await getLastPaymentAndQuotaList(queryParams.value, paging.value)
|
||||
tableData.value = rows
|
||||
total.value = count
|
||||
uni.hideLoading()
|
||||
}
|
||||
|
||||
const openDrawer = async (item) => {
|
||||
drawerContainerRef.value.open()
|
||||
queryParams.value = {
|
||||
userId: item.userId,
|
||||
type: 0
|
||||
}
|
||||
await handleQuery()
|
||||
}
|
||||
|
||||
defineExpose({openDrawer})
|
||||
|
||||
const hideDrawer = () => {
|
||||
drawerContainerRef.value.close()
|
||||
}
|
||||
|
||||
const handleReview = (data) => {
|
||||
AccountPeriodReviewRef.value.openDrawer(data)
|
||||
}
|
||||
|
||||
</script>
|
||||
@ -0,0 +1,106 @@
|
||||
<template>
|
||||
<uni-drawer ref="drawerContainerRef" :width="width" mode="right">
|
||||
|
||||
<uni-nav-bar
|
||||
:border="false"
|
||||
:fixed="true"
|
||||
left-icon="left"
|
||||
status-bar
|
||||
title="额度审核"
|
||||
@clickLeft="hideDrawer"
|
||||
/>
|
||||
|
||||
<uni-collapse ref="collapse">
|
||||
<uni-collapse-item
|
||||
v-for="row in tableData"
|
||||
:key="row.creditHistId"
|
||||
:title="row.shortName"
|
||||
open
|
||||
>
|
||||
<view class="padding">
|
||||
<view class="context">
|
||||
<view class="label">
|
||||
<text>货主:</text>
|
||||
<text>{{ row.companyName }}</text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text>状态:</text>
|
||||
<text>{{ row.state }}</text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text>老额度(万元) :</text>
|
||||
<text>{{ row.oldCreditLine }}</text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text>新额度(万元):</text>
|
||||
<text>{{ row.creditLine }}</text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text>申请日期:</text>
|
||||
<text>{{ row.addDate }}</text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text></text>
|
||||
<button class="mini-btn" size="mini" type="primary" @click="handleReview(row)">查看</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</uni-collapse-item>
|
||||
</uni-collapse>
|
||||
</uni-drawer>
|
||||
<CreditLimitReview ref="CreditLimitReviewRef" @refresh="handleQuery"/>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {defineExpose, defineOptions, ref} from 'vue'
|
||||
import {getLastPaymentAndQuotaList} from "../../../../api/AccountPricePreliminaryRreview.js";
|
||||
import CreditLimitReview from "./components/CreditLimitReview.vue";
|
||||
|
||||
// 额度审核
|
||||
|
||||
|
||||
defineOptions({
|
||||
name: "CreditLimit"
|
||||
})
|
||||
|
||||
const width = ref(document.documentElement.clientWidth || document.body.clientWidth)
|
||||
const queryParams = ref({})
|
||||
const tableData = ref([])
|
||||
const total = ref()
|
||||
const paging = ref({
|
||||
pageNum: 1,
|
||||
pageSize: 100,
|
||||
})
|
||||
|
||||
const drawerContainerRef = ref()
|
||||
const CreditLimitReviewRef = ref()
|
||||
|
||||
const handleQuery = async () => {
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
});
|
||||
const {rows, total: count} = await getLastPaymentAndQuotaList(queryParams.value, paging.value)
|
||||
tableData.value = rows
|
||||
total.value = count
|
||||
uni.hideLoading()
|
||||
}
|
||||
|
||||
const openDrawer = async (item) => {
|
||||
drawerContainerRef.value.open()
|
||||
queryParams.value = {
|
||||
userId: item.userId,
|
||||
type: 1
|
||||
}
|
||||
await handleQuery()
|
||||
}
|
||||
|
||||
defineExpose({openDrawer})
|
||||
|
||||
const hideDrawer = () => {
|
||||
drawerContainerRef.value.close()
|
||||
}
|
||||
|
||||
const handleReview = (data) => {
|
||||
CreditLimitReviewRef.value.openDrawer(data)
|
||||
}
|
||||
</script>
|
||||
115
pages/work/AccountPricePreliminaryRreview/children/Price.vue
Normal file
115
pages/work/AccountPricePreliminaryRreview/children/Price.vue
Normal file
@ -0,0 +1,115 @@
|
||||
<template>
|
||||
<uni-drawer ref="drawerContainerRef" :width="width" mode="right">
|
||||
|
||||
<uni-nav-bar
|
||||
:border="false"
|
||||
:fixed="true"
|
||||
left-icon="left"
|
||||
status-bar
|
||||
title="价格审核"
|
||||
@clickLeft="hideDrawer"
|
||||
/>
|
||||
|
||||
<uni-collapse ref="collapse">
|
||||
<uni-collapse-item
|
||||
v-for="row in tableData"
|
||||
:key="row.creditHistId"
|
||||
:title="`商品名称: ${row.shortName}`"
|
||||
open
|
||||
>
|
||||
<view class="padding">
|
||||
<view class="context">
|
||||
<view class="label">
|
||||
<text>发货仓库:</text>
|
||||
<text>{{ row.warehouseName }}</text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text>新考核价(元,含税):</text>
|
||||
<text>{{ row.checkPrice }}</text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text>新开票价(元,含税):</text>
|
||||
<text>{{ row.invoicePrice }}</text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text>原考核价(元,无税):</text>
|
||||
<text>{{ row.oldCheckPrice }}</text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text>原开票价(元,无税):</text>
|
||||
<text>{{ row.oldInvoicePrice }}</text>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="label">
|
||||
<text>状态:</text>
|
||||
<text>{{ row.state }}</text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text>更新日期:</text>
|
||||
<text>{{ row.updateTime }}</text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text></text>
|
||||
<button class="mini-btn" size="mini" type="primary" @click="handleReview(row)">查看</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</uni-collapse-item>
|
||||
</uni-collapse>
|
||||
</uni-drawer>
|
||||
<PriceReview ref="PriceReviewRef" @refresh="handleQuery"/>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {defineExpose, defineOptions, ref} from 'vue'
|
||||
import {getPriceChangeReviewList} from '../../../../api/AccountPricePreliminaryRreview.js'
|
||||
import PriceReview from "./components/PriceReview.vue";
|
||||
|
||||
// 价格审核
|
||||
|
||||
defineOptions({
|
||||
name: "Price"
|
||||
})
|
||||
|
||||
const width = ref(document.documentElement.clientWidth || document.body.clientWidth)
|
||||
const queryParams = ref({})
|
||||
const tableData = ref([])
|
||||
const total = ref()
|
||||
const paging = ref({
|
||||
pageNum: 1,
|
||||
pageSize: 100,
|
||||
})
|
||||
|
||||
const drawerContainerRef = ref()
|
||||
const PriceReviewRef = ref()
|
||||
|
||||
const handleQuery = async () => {
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
});
|
||||
const {rows, total: count} = await getPriceChangeReviewList(queryParams.value, paging.value)
|
||||
tableData.value = rows
|
||||
total.value = count
|
||||
uni.hideLoading()
|
||||
}
|
||||
|
||||
const openDrawer = async (item) => {
|
||||
drawerContainerRef.value.open()
|
||||
queryParams.value = {
|
||||
userId: item.userId,
|
||||
type: 1
|
||||
}
|
||||
await handleQuery()
|
||||
}
|
||||
|
||||
defineExpose({openDrawer})
|
||||
|
||||
const hideDrawer = () => {
|
||||
drawerContainerRef.value.close()
|
||||
}
|
||||
|
||||
const handleReview = (data) => {
|
||||
PriceReviewRef.value.openDrawer(data)
|
||||
}
|
||||
</script>
|
||||
@ -0,0 +1,154 @@
|
||||
<template>
|
||||
<uni-drawer ref="drawerContainerRef" :width="width" mode="right">
|
||||
|
||||
<uni-nav-bar
|
||||
:border="false"
|
||||
:fixed="true"
|
||||
left-icon="left"
|
||||
status-bar
|
||||
title="账期审核"
|
||||
@clickLeft="hideDrawer"
|
||||
/>
|
||||
|
||||
<view class="padding">
|
||||
<uni-section :subTitle="queryParams.userName" title="商业公司名称:" type="line"/>
|
||||
<uni-section :subTitle="queryParams.companyName" title="货主:" type="line"/>
|
||||
<uni-section
|
||||
:subTitle="`${queryParams.creditPeriod} - 现有信用账期:${queryParams.oldCreditPeriod}`"
|
||||
:title="`${onCompanySelect(queryParams.companyId)}:`"
|
||||
type="line"
|
||||
/>
|
||||
<uni-section :subTitle="queryParams.remark" title="备注:" type="line"/>
|
||||
<uni-section class="margin-bottom" title="回退原因:" type="line">
|
||||
<uni-easyinput v-model="queryParams.backReasonCredit" placeholder="请输入回退内容"/>
|
||||
</uni-section>
|
||||
|
||||
<view class="flex">
|
||||
<button class="mini-btn" size="mini" type="primary" @click="handleBack">回退</button>
|
||||
<button class="mini-btn" size="mini" type="default" @click="handleSubmit">初审通过</button>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
</uni-drawer>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {defineEmits, defineExpose, ref} from 'vue'
|
||||
import {putBackDataLastPaymentOrQuota} from "../../../../../api/AccountPricePreliminaryRreview";
|
||||
|
||||
// 账期审核
|
||||
|
||||
defineOptions({
|
||||
name: 'AccountPeriodReview'
|
||||
})
|
||||
|
||||
const emit = defineEmits(['refresh'])
|
||||
|
||||
const width = ref(document.documentElement.clientWidth || document.body.clientWidth)
|
||||
const queryParams = ref({})
|
||||
const drawerContainerRef = ref()
|
||||
|
||||
const tableData = ref([])
|
||||
const total = ref(0)
|
||||
const paging = ref({
|
||||
pageNum: 1,
|
||||
pageSize: 100,
|
||||
})
|
||||
|
||||
|
||||
// 选择公司后 获取该公司的标题进行显示
|
||||
const onCompanySelect = (type) => {
|
||||
switch (type) {
|
||||
case '1':
|
||||
return 'ZOP信用期限(天)'
|
||||
case '2':
|
||||
return 'GOP信用期限(天)'
|
||||
case '3':
|
||||
return 'LOP信用期限(天)'
|
||||
case '4':
|
||||
return 'HOP信用期限(天)'
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
const openDrawer = async (data) => {
|
||||
drawerContainerRef.value.open()
|
||||
queryParams.value = data
|
||||
}
|
||||
|
||||
defineExpose({openDrawer})
|
||||
|
||||
const hideDrawer = () => {
|
||||
drawerContainerRef.value.close()
|
||||
}
|
||||
|
||||
const handleBack = () => {
|
||||
if (!queryParams.value.backReasonCredit) {
|
||||
return uni.showToast({
|
||||
title: '请填写回退内容',
|
||||
icon: 'none',
|
||||
})
|
||||
}
|
||||
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '您确定是否要回退记录?',
|
||||
success: async function (res) {
|
||||
if (res.confirm) {
|
||||
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
});
|
||||
|
||||
await putBackDataLastPaymentOrQuota({
|
||||
creditHistId: queryParams.value.creditHistId,
|
||||
});
|
||||
|
||||
uni.showToast({
|
||||
title: '操作成功',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
|
||||
uni.hideLoading()
|
||||
|
||||
hideDrawer()
|
||||
emit('refresh')
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const handleSubmit = () => {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '您确认要进行审核通过吗?',
|
||||
success: async function (res) {
|
||||
if (res.confirm) {
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
});
|
||||
|
||||
await directorLastReviewPayment({
|
||||
creditHistId: queryParams.value.creditHistId
|
||||
})
|
||||
|
||||
uni.showToast({
|
||||
title: '操作成功',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
|
||||
uni.hideLoading()
|
||||
|
||||
hideDrawer()
|
||||
emit('refresh')
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
@ -0,0 +1,156 @@
|
||||
<template>
|
||||
<uni-drawer ref="drawerContainerRef" :width="width" mode="right">
|
||||
|
||||
<uni-nav-bar
|
||||
:border="false"
|
||||
:fixed="true"
|
||||
left-icon="left"
|
||||
status-bar
|
||||
title="额度审核"
|
||||
@clickLeft="hideDrawer"
|
||||
/>
|
||||
|
||||
<view class="padding">
|
||||
<uni-section :subTitle="queryParams.userName" title="商业公司名称:" type="line"/>
|
||||
<uni-section :subTitle="queryParams.companyName" title="货主:" type="line"/>
|
||||
<uni-section
|
||||
:subTitle="`${queryParams.creditLine} - 现有信用账期:${queryParams.oldCreditLine || 0}`"
|
||||
:title="`${onCompanySelect(queryParams.companyId)}:`"
|
||||
type="line"
|
||||
/>
|
||||
<uni-section :subTitle="queryParams.remark" title="备注:" type="line"/>
|
||||
<uni-section class="margin-bottom" title="回退原因:" type="line">
|
||||
<uni-easyinput v-model="queryParams.backReasonCredit" placeholder="请输入回退内容"/>
|
||||
</uni-section>
|
||||
|
||||
<view class="flex">
|
||||
<button class="mini-btn" size="mini" type="primary" @click="handleBack">回退</button>
|
||||
<button class="mini-btn" size="mini" type="default" @click="handleSubmit">额度终审</button>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
</uni-drawer>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {defineEmits, defineExpose, defineOptions, ref} from 'vue'
|
||||
import {
|
||||
directorLastReviewQuota,
|
||||
putBackDataLastPaymentOrQuota
|
||||
} from "../../../../../api/AccountPricePreliminaryRreview";
|
||||
|
||||
// 额度审核
|
||||
|
||||
defineOptions({
|
||||
name: 'CreditLimitReview'
|
||||
})
|
||||
|
||||
|
||||
const emit = defineEmits(['refresh'])
|
||||
|
||||
const width = ref(document.documentElement.clientWidth || document.body.clientWidth)
|
||||
const queryParams = ref({})
|
||||
const drawerContainerRef = ref()
|
||||
|
||||
const tableData = ref([])
|
||||
const total = ref(0)
|
||||
const paging = ref({
|
||||
pageNum: 1,
|
||||
pageSize: 100,
|
||||
})
|
||||
|
||||
// 选择公司后 获取该公司的标题进行显示
|
||||
const onCompanySelect = (type) => {
|
||||
switch (type) {
|
||||
case '1':
|
||||
return 'ZOP信用期限(万元)'
|
||||
case '2':
|
||||
return 'GOP信用期限(万元)'
|
||||
case '3':
|
||||
return 'LOP信用期限(万元)'
|
||||
case '4':
|
||||
return 'HOP信用期限(万元)'
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
const openDrawer = (data) => {
|
||||
drawerContainerRef.value.open()
|
||||
queryParams.value = data
|
||||
}
|
||||
defineExpose({openDrawer})
|
||||
|
||||
const hideDrawer = () => {
|
||||
drawerContainerRef.value.close()
|
||||
}
|
||||
|
||||
const handleBack = () => {
|
||||
if (!queryParams.value.backReasonCredit) {
|
||||
return uni.showToast({
|
||||
title: '请填写回退内容',
|
||||
icon: 'none',
|
||||
})
|
||||
}
|
||||
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '您确定是否要回退记录?',
|
||||
success: async function (res) {
|
||||
if (res.confirm) {
|
||||
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
});
|
||||
|
||||
await putBackDataLastPaymentOrQuota({
|
||||
creditHistId: queryParams.value.creditHistId,
|
||||
});
|
||||
|
||||
uni.showToast({
|
||||
title: '操作成功',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
|
||||
uni.hideLoading()
|
||||
|
||||
hideDrawer()
|
||||
emit('refresh')
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const handleSubmit = () => {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '您确认要进行审核通过吗?',
|
||||
success: async function (res) {
|
||||
if (res.confirm) {
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
});
|
||||
|
||||
await directorLastReviewQuota({
|
||||
creditHistId: queryParams.value.creditHistId
|
||||
})
|
||||
|
||||
uni.showToast({
|
||||
title: '操作成功',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
|
||||
uni.hideLoading()
|
||||
|
||||
hideDrawer()
|
||||
emit('refresh')
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
@ -0,0 +1,169 @@
|
||||
<template>
|
||||
<uni-drawer ref="drawerContainerRef" :width="width" mode="right">
|
||||
|
||||
<uni-nav-bar
|
||||
:border="false"
|
||||
:fixed="true"
|
||||
left-icon="left"
|
||||
status-bar
|
||||
title="价格审核"
|
||||
@clickLeft="hideDrawer"
|
||||
/>
|
||||
|
||||
<view class="padding">
|
||||
<uni-section :subTitle="queryParams.cbusinessname" title="商业公司名称:" type="line"/>
|
||||
<uni-section :subTitle="queryParams.goodsName" title="商品:" type="line"/>
|
||||
<uni-section :subTitle="queryParams.warehouseName" title="发货仓库:" type="line"/>
|
||||
<uni-section :subTitle="queryParams.execDate" title="新价格执行日期:" type="line"/>
|
||||
<uni-section :subTitle="`${queryParams.checkPrice} - 原考核价(元,含税):${queryParams.oldCheckPrice ?? 0}`"
|
||||
title="考核价(元,含税):" type="line"/>
|
||||
<uni-section :subTitle="`${queryParams.invoicePrice} - 原销售价(元,含税):${queryParams.oldInvoicePrice ?? 0}`"
|
||||
title="销售价(元,含税):" type="line"/>
|
||||
<uni-section :subTitle="`${queryParams.middlePrice} - 原中标价(元,含税):${queryParams.oldMiddlePrice ?? 0}`"
|
||||
title="中标价(元,含税):" type="line"/>
|
||||
<uni-section :subTitle="queryParams.taxRate" title="税率:" type="line"/>
|
||||
<uni-section :subTitle="queryParams.taxLessPrice" title="销售价(元,无税):" type="line"/>
|
||||
<uni-section :subTitle="queryParams.remark" title="备注:" type="line"/>
|
||||
|
||||
<uni-section class="margin-bottom" title="回退原因:" type="line">
|
||||
<uni-easyinput v-model="queryParams.backReasonCredit" placeholder="请输入回退内容"/>
|
||||
</uni-section>
|
||||
|
||||
<view class="flex">
|
||||
<button class="mini-btn" size="mini" type="primary" @click="handleBack">回退</button>
|
||||
<button class="mini-btn" size="mini" type="default" @click="handleSubmit">额度终审</button>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
</uni-drawer>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {defineEmits, defineExpose, defineOptions, ref} from 'vue'
|
||||
import {
|
||||
directorLastReviewQuota,
|
||||
directorReviewPrice,
|
||||
putBackDataLastPaymentOrQuota,
|
||||
putBackDataPrice
|
||||
} from "../../../../../api/AccountPricePreliminaryRreview";
|
||||
|
||||
// 价格审核
|
||||
|
||||
defineOptions({
|
||||
name: 'PriceReview'
|
||||
})
|
||||
|
||||
|
||||
const emit = defineEmits(['refresh'])
|
||||
|
||||
const width = ref(document.documentElement.clientWidth || document.body.clientWidth)
|
||||
const queryParams = ref({})
|
||||
const drawerContainerRef = ref()
|
||||
|
||||
const tableData = ref([])
|
||||
const total = ref(0)
|
||||
const paging = ref({
|
||||
pageNum: 1,
|
||||
pageSize: 100,
|
||||
})
|
||||
|
||||
// 选择公司后 获取该公司的标题进行显示
|
||||
const onCompanySelect = (type) => {
|
||||
switch (type) {
|
||||
case '1':
|
||||
return 'ZOP信用期限(万元)'
|
||||
case '2':
|
||||
return 'GOP信用期限(万元)'
|
||||
case '3':
|
||||
return 'LOP信用期限(万元)'
|
||||
case '4':
|
||||
return 'HOP信用期限(万元)'
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
const openDrawer = (data) => {
|
||||
drawerContainerRef.value.open()
|
||||
queryParams.value = {
|
||||
...data,
|
||||
cbusinessname: data.userName
|
||||
}
|
||||
}
|
||||
defineExpose({openDrawer})
|
||||
|
||||
const hideDrawer = () => {
|
||||
drawerContainerRef.value.close()
|
||||
}
|
||||
|
||||
const handleBack = () => {
|
||||
if (!queryParams.value.backReasonCredit) {
|
||||
return uni.showToast({
|
||||
title: '请填写回退内容',
|
||||
icon: 'none',
|
||||
})
|
||||
}
|
||||
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '您确定是否要回退记录?',
|
||||
success: async function (res) {
|
||||
if (res.confirm) {
|
||||
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
});
|
||||
|
||||
await putBackDataPrice({
|
||||
backReasonCredit: queryParams.value.backReasonCredit,
|
||||
businessGoodsHistId: queryParams.value.businessGoodsHistId,
|
||||
});
|
||||
|
||||
uni.showToast({
|
||||
title: '操作成功',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
|
||||
uni.hideLoading()
|
||||
|
||||
hideDrawer()
|
||||
emit('refresh')
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
const handleSubmit = () => {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '您确认要进行审核通过吗?',
|
||||
success: async function (res) {
|
||||
if (res.confirm) {
|
||||
uni.showLoading({
|
||||
title: '加载中'
|
||||
});
|
||||
|
||||
await directorReviewPrice({
|
||||
businessGoodsHistId: queryParams.value.businessGoodsHistId
|
||||
})
|
||||
|
||||
uni.showToast({
|
||||
title: '操作成功',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
|
||||
uni.hideLoading()
|
||||
|
||||
hideDrawer()
|
||||
emit('refresh')
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
129
pages/work/AccountPricePreliminaryRreview/index.vue
Normal file
129
pages/work/AccountPricePreliminaryRreview/index.vue
Normal file
@ -0,0 +1,129 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<MBCard>
|
||||
<uni-forms ref="baseForm" :modelValue="queryParams">
|
||||
<uni-forms-item label="地域">
|
||||
<Area v-model="queryParams.deptId" @change="handleQuery"/>
|
||||
</uni-forms-item>
|
||||
<uni-forms-item label="商业公司">
|
||||
<BusinessCompany
|
||||
v-model="queryParams.businessName"
|
||||
@change="handleQuery"
|
||||
/>
|
||||
</uni-forms-item>
|
||||
</uni-forms>
|
||||
</MBCard>
|
||||
|
||||
<uni-table ref="table" :loading="loading" emptyText="暂无更多数据" stripe>
|
||||
<uni-tr>
|
||||
<uni-th align="center" width="50">序号</uni-th>
|
||||
<uni-th align="left" width="180">公司名称</uni-th>
|
||||
<uni-th align="left" width="50">地域</uni-th>
|
||||
<uni-th width="100">账期审核</uni-th>
|
||||
<uni-th width="100">额度审核</uni-th>
|
||||
<uni-th width="100">价格审核</uni-th>
|
||||
</uni-tr>
|
||||
<uni-tr v-for="(item, index) in tableData" :key="index">
|
||||
<uni-td>{{ index + 1 }}</uni-td>
|
||||
<uni-td>{{ item.userName }}</uni-td>
|
||||
<uni-td>{{ item.areaName }}</uni-td>
|
||||
<uni-td>
|
||||
<view v-if="item.zhangqi > 0">
|
||||
<button
|
||||
class="uni-button"
|
||||
size="mini"
|
||||
type="submit"
|
||||
@click="handleShowAccountPeriod(item)"
|
||||
>编辑
|
||||
</button>
|
||||
</view>
|
||||
</uni-td>
|
||||
<uni-td>
|
||||
<view v-if="item.edu > 0">
|
||||
<button
|
||||
class="uni-button"
|
||||
size="mini"
|
||||
type="submit"
|
||||
@click="handleShowCreditLimit(item)"
|
||||
>编辑
|
||||
</button>
|
||||
</view>
|
||||
</uni-td>
|
||||
<uni-td>
|
||||
<view v-if="item.bg > 0">
|
||||
<button
|
||||
class="uni-button"
|
||||
size="mini"
|
||||
type="submit"
|
||||
@click="handleShowPrice(item)"
|
||||
>编辑
|
||||
</button>
|
||||
</view>
|
||||
</uni-td>
|
||||
</uni-tr>
|
||||
</uni-table>
|
||||
|
||||
|
||||
|
||||
<!-- 账期审核 -->
|
||||
<AccountPeriod ref="AccountPeriodRef"/>
|
||||
<!-- 额度审核 -->
|
||||
<CreditLimit ref="CreditLimitRef"/>
|
||||
<!-- 价格审核 -->
|
||||
<Price ref="PriceRef"/>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {defineOptions, onMounted, ref} from "vue"
|
||||
import Area from "../../../components/Area.vue";
|
||||
import MBCard from "../../../components/MB/MBCard.vue";
|
||||
import UniFormsItem from "../../../uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue";
|
||||
import BusinessCompany from "../../../components/BusinessCompany.vue";
|
||||
import UniForms from "../../../uni_modules/uni-forms/components/uni-forms/uni-forms.vue";
|
||||
import {getPricePreliminaryReviewList} from "../../../api/AccountPricePreliminaryRreview";
|
||||
import AccountPeriod from "./children/AccountPeriod.vue";
|
||||
import CreditLimit from "./children/CreditLimit.vue";
|
||||
import Price from "./children/Price.vue";
|
||||
|
||||
defineOptions({
|
||||
name: "AccountPricePreliminaryRreview"
|
||||
})
|
||||
|
||||
const loading = ref(true)
|
||||
const queryParams = ref({})
|
||||
const tableData = ref([])
|
||||
const total = ref(0)
|
||||
const paging = ref({
|
||||
pageNum: 1,
|
||||
pageSize: 100,
|
||||
})
|
||||
|
||||
const AccountPeriodRef = ref()
|
||||
const CreditLimitRef = ref()
|
||||
const PriceRef = ref()
|
||||
|
||||
const handleQuery = async () => {
|
||||
const data = await getPricePreliminaryReviewList(queryParams.value, paging.value)
|
||||
tableData.value = data.rows
|
||||
total.value = data.total
|
||||
loading.value = false
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
await handleQuery()
|
||||
})
|
||||
|
||||
const handleShowAccountPeriod = (item) => {
|
||||
AccountPeriodRef.value.openDrawer(item)
|
||||
}
|
||||
|
||||
const handleShowCreditLimit = (item) => {
|
||||
CreditLimitRef.value.openDrawer(item)
|
||||
}
|
||||
|
||||
const handleShowPrice = (item) => {
|
||||
PriceRef.value.openDrawer(item)
|
||||
}
|
||||
</script>
|
||||
@ -28,15 +28,12 @@
|
||||
@confirm="getTableData"/>
|
||||
</uni-forms-item>
|
||||
<uni-forms-item label="商业公司" v-if="userType === '00'" >
|
||||
<uni-data-select
|
||||
v-model="queryParams.userid"
|
||||
placeholder="请输入商业公司"
|
||||
:clear="true"
|
||||
:localdata="businessCompanyList"
|
||||
text-field="value"
|
||||
value-field="label"
|
||||
@change="getTableData"
|
||||
></uni-data-select>
|
||||
<!-- <input-->
|
||||
<!-- v-model="queryParams.businessCompany"-->
|
||||
<!-- class="uni-input custom-input"-->
|
||||
<!-- placeholder="请输入商业公司"-->
|
||||
<!-- @confirm="getTableData"/>-->
|
||||
<BusinessCompany v-model="queryParams.businessCompany" @change="getTableData"/>
|
||||
</uni-forms-item>
|
||||
</uni-forms>
|
||||
<button
|
||||
@ -50,7 +47,7 @@
|
||||
|
||||
<MBLoading v-if="loading"/>
|
||||
<view v-else>
|
||||
<ListItem :items="tableData" @refresh="getTableData" :order-type-list="orderTypeList" :user-type="userType" />
|
||||
<ListItem :items="tableData" @refresh="getTableData" />
|
||||
<MBPagination
|
||||
v-if="total > 0"
|
||||
v-model:limit="paging.pageSize"
|
||||
@ -63,7 +60,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {listproductList, listsalemain,getBusinessList} from "../../../api/orderManager/index.js"
|
||||
import {listproductList, listsalemain} from "../../../api/orderManager/index.js"
|
||||
import {computed, getCurrentInstance, onMounted, ref} from "vue"
|
||||
import {getDicts} from "../../../api/system/dict/data.js"
|
||||
import {useOrderManagerStore} from "../../../store/modules/orderManager.js"
|
||||
@ -73,6 +70,7 @@ import MBPagination from "../../../components/MB/MBPagination.vue";
|
||||
import MBLoading from "../../../components/MB/MBLoading.vue";
|
||||
import ListItem from "./ListItem.vue";
|
||||
import { getUserProfile } from "@/api/system/user"
|
||||
import BusinessCompany from "../../../components/BusinessCompany.vue";
|
||||
|
||||
|
||||
const userType = ref()
|
||||
@ -104,7 +102,7 @@ const queryParams = ref({
|
||||
|
||||
const stateList = ref([])
|
||||
const companyOptions = ref([])
|
||||
const businessCompanyList = ref([])
|
||||
|
||||
// 合同数据
|
||||
const tableData = ref([])
|
||||
|
||||
@ -114,7 +112,6 @@ onMounted(async () => {
|
||||
loading.value = true
|
||||
await getDictData()
|
||||
await getDeptLists()
|
||||
await getBussinessLists()
|
||||
await getUser()
|
||||
await getTableData()
|
||||
} finally {
|
||||
@ -166,7 +163,7 @@ const getTableData = async () => {
|
||||
loading.value = false
|
||||
}
|
||||
}
|
||||
// 获取货主
|
||||
|
||||
const getDeptLists = async () => {
|
||||
try {
|
||||
const res = await listproductList()
|
||||
@ -180,38 +177,7 @@ const getDeptLists = async () => {
|
||||
console.error('获取部门列表失败:', error)
|
||||
}
|
||||
}
|
||||
// 获取所有商业公司
|
||||
const getBussinessLists = async () => {
|
||||
try {
|
||||
const res = await getBusinessList({
|
||||
isUnit: 0,
|
||||
queryParam:{
|
||||
areaId: 0,
|
||||
}
|
||||
})
|
||||
businessCompanyList.value = res.data.map(item => {
|
||||
return {
|
||||
value: item.userid,
|
||||
text: item.businessname
|
||||
}
|
||||
})
|
||||
} catch (error) {
|
||||
console.error('获取商业公司列表失败:', error)
|
||||
}
|
||||
}
|
||||
// 添加一个新变量来存储选中的文本
|
||||
const selectedCompanyText = ref('')
|
||||
|
||||
// 处理公司选择
|
||||
const handleCompanySelect = (text) => {
|
||||
selectedCompanyText.value = text
|
||||
|
||||
// 找到对应的公司ID
|
||||
const company = businessCompanyList.value.find(item => item.text === text)
|
||||
queryParams.value.userid = company ? company.value : ''
|
||||
|
||||
getTableData()
|
||||
}
|
||||
// 筛选合同
|
||||
function filtertableData(e) {
|
||||
console.log("筛选条件变化:", e)
|
||||
|
||||
63
pages/work/OrderSearchQuery/ListItem.vue
Normal file
63
pages/work/OrderSearchQuery/ListItem.vue
Normal file
@ -0,0 +1,63 @@
|
||||
<template>
|
||||
<uni-card
|
||||
v-for="(item,index) in items"
|
||||
:key="item.saleid"
|
||||
:class="index % 2 === 0 ? 'card-even' : 'card-odd'"
|
||||
:extra="item.contractcode"
|
||||
:title="item.user_name"
|
||||
style="margin: 0;margin-bottom: 20px"
|
||||
@click="handleDetail(item)"
|
||||
>
|
||||
<view class="context">
|
||||
<view class="label">
|
||||
<text>货主:</text>
|
||||
<text>{{ item.companyname }}</text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text>发货仓库:</text>
|
||||
<text>{{ item.warehousename }}</text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text>订单金额:</text>
|
||||
<text>{{ formatPrice(item.contractmoney) }}</text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text>补差金额:</text>
|
||||
<text>{{ formatPrice(item.piaokou) }}</text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text>制单日期:</text>
|
||||
<text>{{ item.addDate }}</text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text>执行日期:</text>
|
||||
<text>{{ item.execDate }}</text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text>支付方式:</text>
|
||||
<text>{{ item.ispaynow }}</text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text>状态:</text>
|
||||
<text>{{ item.stateText }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</uni-card>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {defineOptions, defineProps, getCurrentInstance} from 'vue'
|
||||
import UniCard from "../../../uni_modules/uni-card/components/uni-card/uni-card.vue";
|
||||
import {formatPrice} from "../../../utils/utils";
|
||||
|
||||
defineOptions({
|
||||
name: "ListItem"
|
||||
})
|
||||
|
||||
const {proxy} = getCurrentInstance()
|
||||
const props = defineProps(['items'])
|
||||
const handleDetail = (raw) => {
|
||||
// proxy.$tab.navigateTo(`/pages/work/FinancialApproval/OrderDetail?id=${raw.saleid}`)
|
||||
}
|
||||
</script>
|
||||
81
pages/work/OrderSearchQuery/index.vue
Normal file
81
pages/work/OrderSearchQuery/index.vue
Normal file
@ -0,0 +1,81 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<MBCard>
|
||||
<uni-forms ref="baseForm" :modelValue="queryParams">
|
||||
<uni-forms-item label="合同编号">
|
||||
<uni-easyinput
|
||||
v-model="queryParams.contractCode"
|
||||
errorMessage
|
||||
placeholder="请输入合同编号"
|
||||
trim="all"
|
||||
@input="handleQuery"
|
||||
/>
|
||||
</uni-forms-item>
|
||||
<uni-forms-item label="地域">
|
||||
<Area v-model="queryParams.areaId" @change="handleQuery"/>
|
||||
</uni-forms-item>
|
||||
<uni-forms-item label="商业公司">
|
||||
<BusinessCompany v-model="queryParams.params.userId" :areaId="queryParams.areaId"
|
||||
@change="handleQuery"/>
|
||||
</uni-forms-item>
|
||||
<uni-forms-item label="货主">
|
||||
<ProductionUnit v-model="queryParams.companyId" @change="handleQuery"/>
|
||||
</uni-forms-item>
|
||||
</uni-forms>
|
||||
</MBCard>
|
||||
|
||||
|
||||
<MBLoading v-if="loading"/>
|
||||
<view v-else>
|
||||
<ListItem v-if="tableData.length > 0" :items="tableData"/>
|
||||
<MBPagination
|
||||
v-if="total > 0"
|
||||
v-model:limit="paging.pageSize"
|
||||
v-model:page="paging.pageNum"
|
||||
:total="total"
|
||||
@pagination="handleQuery"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import MBCard from "../../../components/MB/MBCard.vue";
|
||||
import ProductionUnit from "../../../components/ProductionUnit/ProductionUnit.vue";
|
||||
import UniForms from "../../../uni_modules/uni-forms/components/uni-forms/uni-forms.vue";
|
||||
import UniFormsItem from "../../../uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue";
|
||||
import {onMounted, ref} from 'vue'
|
||||
import BusinessCompany from "../../../components/BusinessCompany.vue";
|
||||
import Area from "../../../components/Area.vue";
|
||||
import MBLoading from "../../../components/MB/MBLoading.vue";
|
||||
import MBPagination from "../../../components/MB/MBPagination.vue";
|
||||
import ListItem from "./ListItem.vue";
|
||||
import {getReportOrderQuery} from "../../../api/order";
|
||||
|
||||
const queryParams = ref({
|
||||
params: {}
|
||||
})
|
||||
|
||||
const loading = ref(true)
|
||||
const total = ref(0)
|
||||
const paging = ref({
|
||||
pageNum: 1,
|
||||
pageSize: 20,
|
||||
isAsc: 'descending',
|
||||
orderByColumn: 'adddate'
|
||||
})
|
||||
const tableData = ref([])
|
||||
|
||||
const handleQuery = async () => {
|
||||
loading.value = true
|
||||
const data = await getReportOrderQuery(queryParams.value, paging.value)
|
||||
total.value = data.total
|
||||
tableData.value = data.rows
|
||||
loading.value = false
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
await handleQuery()
|
||||
})
|
||||
|
||||
</script>
|
||||
@ -39,6 +39,29 @@
|
||||
<text class="text">商务审批</text>
|
||||
</view>
|
||||
</uni-grid-item>
|
||||
<uni-grid-item @click="gotoOrderSearchQuery">
|
||||
<view class="grid-item-box">
|
||||
<uni-icons size="30" type="person-filled"></uni-icons>
|
||||
<text class="text">订单综合查询</text>
|
||||
</view>
|
||||
</uni-grid-item>
|
||||
</uni-grid>
|
||||
</view>
|
||||
<uni-section title="开户管理" type="line" />
|
||||
<view class="grid-body">
|
||||
<uni-grid :column="4" :showBorder="false" @change="changeGrid">
|
||||
<uni-grid-item @click="navigateTo('/pages/work/AccountPricePreliminaryRreview/index')">
|
||||
<view class="grid-item-box">
|
||||
<uni-icons size="30" type="person-filled"></uni-icons>
|
||||
<text class="text">账期价格初审</text>
|
||||
</view>
|
||||
</uni-grid-item>
|
||||
<uni-grid-item @click="navigateTo('/pages/work/AccountPriceFinallReview/index')">
|
||||
<view class="grid-item-box">
|
||||
<uni-icons size="30" type="person-filled"></uni-icons>
|
||||
<text class="text">账期价格复审</text>
|
||||
</view>
|
||||
</uni-grid-item>
|
||||
</uni-grid>
|
||||
</view>
|
||||
|
||||
@ -100,6 +123,7 @@
|
||||
|
||||
<script setup>
|
||||
import {getCurrentInstance, ref} from "vue"
|
||||
import {navigateTo} from "../../utils/utils";
|
||||
|
||||
const {proxy} = getCurrentInstance()
|
||||
const current = ref(0)
|
||||
@ -143,6 +167,12 @@ const gotoOrderManager = () => {
|
||||
})
|
||||
}
|
||||
|
||||
const gotoOrderSearchQuery = () => {
|
||||
uni.navigateTo({
|
||||
url: '/pages/work/OrderSearchQuery/index'
|
||||
})
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 79 KiB |
BIN
static/images/profile.png
Normal file
BIN
static/images/profile.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 52 KiB |
@ -1,117 +1,125 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { ref } from 'vue'
|
||||
import {defineStore} from 'pinia'
|
||||
import {ref} from 'vue'
|
||||
import config from '@/config'
|
||||
import storage from '@/utils/storage'
|
||||
import constant from '@/utils/constant'
|
||||
import { isHttp, isEmpty } from "@/utils/validate"
|
||||
import { getInfo, login, logout } from '@/api/login'
|
||||
import { getToken, removeToken, setToken } from '@/utils/auth'
|
||||
import defAva from '@/static/images/profile.jpg'
|
||||
import {isEmpty, isHttp} from "@/utils/validate"
|
||||
import {getInfo, login, logout} from '@/api/login'
|
||||
import {getToken, removeToken, setToken} from '@/utils/auth'
|
||||
import defAva from '@/static/images/profile.png'
|
||||
|
||||
const baseUrl = config.baseUrl
|
||||
|
||||
export const useUserStore = defineStore('user', () => {
|
||||
const token = ref(getToken())
|
||||
const id = ref(storage.get(constant.id))
|
||||
const name = ref(storage.get(constant.name))
|
||||
const avatar = ref(storage.get(constant.avatar))
|
||||
const roles = ref(storage.get(constant.roles))
|
||||
const permissions = ref(storage.get(constant.permissions))
|
||||
const token = ref(getToken())
|
||||
const id = ref(storage.get(constant.id))
|
||||
const name = ref(storage.get(constant.name))
|
||||
const avatar = ref(storage.get(constant.avatar))
|
||||
const roles = ref(storage.get(constant.roles))
|
||||
const permissions = ref(storage.get(constant.permissions))
|
||||
const userInfo = ref(storage.get(constant.userInfo))
|
||||
|
||||
const SET_TOKEN = (val) => {
|
||||
token.value = val
|
||||
}
|
||||
const SET_ID = (val) => {
|
||||
id.value = val
|
||||
storage.set(constant.id, val)
|
||||
}
|
||||
const SET_NAME = (val) => {
|
||||
name.value = val
|
||||
storage.set(constant.name, val)
|
||||
}
|
||||
const SET_AVATAR = (val) => {
|
||||
avatar.value = val
|
||||
storage.set(constant.avatar, val)
|
||||
}
|
||||
const SET_ROLES = (val) => {
|
||||
roles.value = val
|
||||
storage.set(constant.roles, val)
|
||||
}
|
||||
const SET_PERMISSIONS = (val) => {
|
||||
permissions.value = val
|
||||
storage.set(constant.permissions, val)
|
||||
}
|
||||
const SET_TOKEN = (val) => {
|
||||
token.value = val
|
||||
}
|
||||
const SET_ID = (val) => {
|
||||
id.value = val
|
||||
storage.set(constant.id, val)
|
||||
}
|
||||
const SET_NAME = (val) => {
|
||||
name.value = val
|
||||
storage.set(constant.name, val)
|
||||
}
|
||||
const SET_AVATAR = (val) => {
|
||||
avatar.value = val
|
||||
storage.set(constant.avatar, val)
|
||||
}
|
||||
const SET_ROLES = (val) => {
|
||||
roles.value = val
|
||||
storage.set(constant.roles, val)
|
||||
}
|
||||
const SET_PERMISSIONS = (val) => {
|
||||
permissions.value = val
|
||||
storage.set(constant.permissions, val)
|
||||
}
|
||||
|
||||
// 登录
|
||||
const loginAction = (userInfo) => {
|
||||
const username = userInfo.username.trim()
|
||||
const password = userInfo.password
|
||||
const code = userInfo.code
|
||||
const uuid = userInfo.uuid
|
||||
return new Promise((resolve, reject) => {
|
||||
login(username, password, code, uuid).then(res => {
|
||||
setToken(res.token)
|
||||
SET_TOKEN(res.token)
|
||||
resolve()
|
||||
}).catch(error => {
|
||||
reject(error)
|
||||
})
|
||||
})
|
||||
}
|
||||
const SET_USER_INFO = (val) => {
|
||||
userInfo.value = val
|
||||
storage.set(constant.userInfo, val)
|
||||
}
|
||||
|
||||
// 获取用户信息
|
||||
const getInfoAction = () => {
|
||||
return new Promise((resolve, reject) => {
|
||||
getInfo().then(res => {
|
||||
const user = res.user
|
||||
let avatar = user.avatar || ""
|
||||
if (!isHttp(avatar)) {
|
||||
avatar = (isEmpty(avatar)) ? defAva : baseUrl + avatar
|
||||
}
|
||||
const userid = (isEmpty(user) || isEmpty(user.userId)) ? "" : user.userId
|
||||
const username = (isEmpty(user) || isEmpty(user.userName)) ? "" : user.userName
|
||||
if (res.roles && res.roles.length > 0) {
|
||||
SET_ROLES(res.roles)
|
||||
SET_PERMISSIONS(res.permissions)
|
||||
} else {
|
||||
SET_ROLES(['ROLE_DEFAULT'])
|
||||
}
|
||||
SET_ID(userid)
|
||||
SET_NAME(username)
|
||||
SET_AVATAR(avatar)
|
||||
resolve(res)
|
||||
}).catch(error => {
|
||||
reject(error)
|
||||
})
|
||||
})
|
||||
}
|
||||
// 登录
|
||||
const loginAction = (userInfo) => {
|
||||
const username = userInfo.username.trim()
|
||||
const password = userInfo.password
|
||||
const code = userInfo.code
|
||||
const uuid = userInfo.uuid
|
||||
return new Promise((resolve, reject) => {
|
||||
login(username, password, code, uuid).then(res => {
|
||||
setToken(res.token)
|
||||
SET_TOKEN(res.token)
|
||||
resolve()
|
||||
}).catch(error => {
|
||||
reject(error)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
// 退出系统
|
||||
const logOutAction = () => {
|
||||
return new Promise((resolve, reject) => {
|
||||
logout(token.value).then(() => {
|
||||
SET_TOKEN('')
|
||||
SET_ROLES([])
|
||||
SET_PERMISSIONS([])
|
||||
removeToken()
|
||||
storage.clean()
|
||||
resolve()
|
||||
}).catch(error => {
|
||||
reject(error)
|
||||
})
|
||||
})
|
||||
}
|
||||
// 获取用户信息
|
||||
const getInfoAction = () => {
|
||||
return new Promise((resolve, reject) => {
|
||||
getInfo().then(res => {
|
||||
const user = res.user
|
||||
let avatar = user.avatar || ""
|
||||
if (!isHttp(avatar)) {
|
||||
avatar = (isEmpty(avatar)) ? defAva : baseUrl + avatar
|
||||
}
|
||||
const userid = (isEmpty(user) || isEmpty(user.userId)) ? "" : user.userId
|
||||
const username = (isEmpty(user) || isEmpty(user.userName)) ? "" : user.userName
|
||||
if (res.roles && res.roles.length > 0) {
|
||||
SET_ROLES(res.roles)
|
||||
SET_PERMISSIONS(res.permissions)
|
||||
} else {
|
||||
SET_ROLES(['ROLE_DEFAULT'])
|
||||
}
|
||||
SET_ID(userid)
|
||||
SET_NAME(username)
|
||||
SET_AVATAR(avatar)
|
||||
SET_USER_INFO(user)
|
||||
resolve(res)
|
||||
}).catch(error => {
|
||||
reject(error)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
return {
|
||||
token,
|
||||
id,
|
||||
name,
|
||||
avatar,
|
||||
roles,
|
||||
permissions,
|
||||
SET_AVATAR,
|
||||
login: loginAction,
|
||||
getInfo: getInfoAction,
|
||||
logOut: logOutAction
|
||||
}
|
||||
// 退出系统
|
||||
const logOutAction = () => {
|
||||
return new Promise((resolve, reject) => {
|
||||
logout(token.value).then(() => {
|
||||
SET_TOKEN('')
|
||||
SET_ROLES([])
|
||||
SET_PERMISSIONS([])
|
||||
removeToken()
|
||||
storage.clean()
|
||||
resolve()
|
||||
}).catch(error => {
|
||||
reject(error)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
return {
|
||||
token,
|
||||
id,
|
||||
name,
|
||||
avatar,
|
||||
roles,
|
||||
permissions,
|
||||
userInfo,
|
||||
SET_AVATAR,
|
||||
login: loginAction,
|
||||
getInfo: getInfoAction,
|
||||
logOut: logOutAction
|
||||
}
|
||||
})
|
||||
|
||||
@ -1,9 +1,10 @@
|
||||
const constant = {
|
||||
avatar: 'user_avatar',
|
||||
id: 'user_id',
|
||||
name: 'user_name',
|
||||
roles: 'user_roles',
|
||||
permissions: 'user_permissions'
|
||||
}
|
||||
avatar: 'user_avatar',
|
||||
id: 'user_id',
|
||||
name: 'user_name',
|
||||
roles: 'user_roles',
|
||||
permissions: 'user_permissions',
|
||||
userInfo: 'userInfo'
|
||||
}
|
||||
|
||||
export default constant
|
||||
export default constant
|
||||
|
||||
1212
utils/utils.js
1212
utils/utils.js
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user