Browse Source

合并

zhangrenyuan/feature-20251104133449-现金管理二期
zhangrenyuan 3 weeks ago
parent
commit
56277f5ef3
  1. 19
      .env.development
  2. 24
      src/views/audit/bean/beanAudit.vue
  3. 23
      src/views/audit/gold/rechargeAudit.vue
  4. 20
      src/views/audit/gold/refundAudit.vue
  5. 17
      src/views/consume/bean/articleVideo.vue
  6. 19
      src/views/consume/bean/dieHardFan.vue
  7. 20
      src/views/consume/bean/liveStream.vue
  8. 19
      src/views/recharge/bean/beanSystemRecharge.vue
  9. 19
      src/views/usergold/bean/userbean.vue

19
.env.development

@ -0,0 +1,19 @@
VITE_API_BASE='https://hwjb.homilychart.com/dev/admin'
# 测试环境
# VITE_API_BASE='http://54.255.212.181:10704/'
# 正式环境
# VITE_API_BASE='http://54.255.212.181:10705/'
VITE_UPLOAD_URL=http://39.101.133.168:8828/hljw/api/aws/upload
# sunjiabei
# VITE_API_BASE='http://192.168.9.28:8081/'
# VITE_API_BASE='http://192.168.5.92:8081/'
# 张勇
# VITE_API_BASE='http://192.168.3.83:8081/'
# 本地
# VITE_API_BASE='http://localhost:8081/'
# 孙加倍
# VITE_API_BASE='http://192.168.40.12:8081'
# Lijianlin
# VITE_API_BASE='http://192.168.9.41:8081/'
# VITE_API_BASE='http://localhost:8081/'

24
src/views/audit/bean/beanAudit.vue

@ -142,7 +142,7 @@
</template>
<script setup>
import { onMounted, ref } from 'vue'
import { onMounted, ref, watch } from 'vue'
import { ElMessage } from 'element-plus'
import API from '@/util/http.js'
import moment from 'moment'
@ -157,7 +157,19 @@ const defaultTime = [
new Date(2000, 2, 1, 23, 59, 59),
]
const adminStore = useAdminStore();
const { adminData, menuTree } = storeToRefs(adminStore);
const { adminData, menuTree,flag } = storeToRefs(adminStore);
// flag
watch(flag, (newFlag, oldFlag) => {
// flag
if (newFlag !== oldFlag) {
// console.log('flag', newFlag)
get()
getStats()
// console.log('flag2',flag)
}
})
import dayjs from "dayjs";
const tableData = ref([])
@ -295,7 +307,8 @@ const get = async function () {
auditStartTime: searchForm.value.auditStartTime,
auditEndTime: searchForm.value.auditEndTime,
sortField: sortField.value,
sortOrder: sortOrder.value
sortOrder: sortOrder.value,
flag: flag.value
}
}
console.log('看看传给后端的参数:', params)
@ -322,7 +335,10 @@ const getStats = async () => {
}
const res = await API({
url: '/beanAudit/statsBean',
data: params
data: {
...params,
flag: flag.value
}
})
stats.value.num = res.data.num

23
src/views/audit/gold/rechargeAudit.vue

@ -201,7 +201,7 @@
<script setup>
import { onMounted, reactive, ref } from 'vue'
import { onMounted, reactive, ref, watch } from 'vue'
import { ElMessage } from 'element-plus'
import request from '@/util/http.js'
import API from '@/util/http.js'
@ -212,10 +212,21 @@ import { storeToRefs } from "pinia";
import ConfirmDialog from '@/components/dialogs/ConfirmDialog.vue'
const adminStore = useAdminStore();
const { adminData, menuTree } = storeToRefs(adminStore);
const { adminData, menuTree, flag } = storeToRefs(adminStore);
import { permissionMapping, hasMenuPermission } from "@/utils/menuTreePermission.js"
import dayjs from "dayjs";
// flag
watch(flag, (newFlag, oldFlag) => {
// flag
if (newFlag !== oldFlag) {
// console.log('flag', newFlag)
getRecharge()
console.log('flag10',flag.value)
getStats()
console.log('flag2',flag)
}
})
//
const hasrechargeThrough = ref(false) //
@ -381,7 +392,8 @@ const getRecharge = async function (val) {
rechargeAudit: {
...rechargeAudit.value,
sortField: sortField.value,
sortOrder: sortOrder.value
sortOrder: sortOrder.value,
flag: flag.value
}
}
})
@ -401,7 +413,10 @@ const getStats = async () => {
const params = {
pageNum: getObj.value.pageNum,
pageSize: getObj.value.pageSize,
rechargeAudit: rechargeAudit.value
rechargeAudit: {
...rechargeAudit.value,
flag: flag.value
}
}
//
if (rechargeAudit.value.jwcode) {

20
src/views/audit/gold/refundAudit.vue

@ -189,7 +189,7 @@
</template>
<script setup>
import { onMounted, reactive, ref } from 'vue'
import { onMounted, reactive, ref, watch } from 'vue'
import { ElMessage } from 'element-plus'
import API from '@/util/http.js'
import moment from 'moment'
@ -200,7 +200,17 @@ import { permissionMapping, hasMenuPermission } from "@/utils/menuTreePermission
import ConfirmDialog from '@/components/dialogs/ConfirmDialog.vue';
const adminStore = useAdminStore();
const { adminData, menuTree } = storeToRefs(adminStore);
const { adminData, menuTree, flag } = storeToRefs(adminStore);
// flag
watch(flag, (newFlag, oldFlag) => {
// flag
if (newFlag !== oldFlag) {
get()
getStats()
}
})
const defaultTime = [
new Date(2000, 1, 1, 0, 0, 0),
new Date(2000, 2, 1, 23, 59, 59),
@ -343,7 +353,8 @@ const get = async function (val) {
refundAudit: {
...searchForm.value,
sortField: sortField.value,
sortOrder: sortOrder.value
sortOrder: sortOrder.value,
flag: flag.value
}
}
console.log('看看传给后端的参数:', params)
@ -472,7 +483,8 @@ const getStats = async () => {
pageNum: pagination.value.pageNum,
pageSize: pagination.value.pageSize,
refundAudit: {
...searchForm.value
...searchForm.value,
flag: flag.value
}
}
if (searchForm.value.jwcode) {

17
src/views/consume/bean/articleVideo.vue

@ -1,10 +1,22 @@
<script setup>
import { computed, onMounted, ref } from 'vue'
import { computed, onMounted, ref, watch } from 'vue'
import { dayjs, ElMessage } from 'element-plus'
import request from '@/util/http.js'
import API from '@/util/http.js'
import moment from 'moment'
import { ar } from 'element-plus/es/locales.mjs'
import { useAdminStore } from "@/store/index.js";
import { storeToRefs } from "pinia";
const adminStore = useAdminStore();
const { flag } = storeToRefs(adminStore);
// flag
watch(flag, (newFlag, oldFlag) => {
// flag
if (newFlag !== oldFlag) {
ConsumeSelectBy()
}
})
//
const defaultTime = [
new Date(2000, 1, 1, 0, 0, 0),
@ -183,6 +195,7 @@ const ConsumeSelectBy = async function (val) {
endTime: beanConsumeArticle.value.endTime,
sortField: beanConsumeArticle.value.sortField,
sortOrder: beanConsumeArticle.value.sortOrder,
flag: flag.value
}
}
})
@ -209,7 +222,7 @@ const ConsumeSelectBy = async function (val) {
payType: 8, // payType 8
beanConsumeArticle: {
...beanConsumeArticle.value,
flag: flag.value
}
};

19
src/views/consume/bean/dieHardFan.vue

@ -1,9 +1,21 @@
<script setup>
import { computed, onMounted, ref } from 'vue'
import { computed, onMounted, ref, watch } from 'vue'
import { dayjs, ElMessage } from 'element-plus'
import request from '@/util/http.js'
import API from '@/util/http.js'
import moment from 'moment'
import { useAdminStore } from "@/store/index.js";
import { storeToRefs } from "pinia";
const adminStore = useAdminStore();
const { flag } = storeToRefs(adminStore);
// flag
watch(flag, (newFlag, oldFlag) => {
// flag
if (newFlag !== oldFlag) {
ConsumeSelectBy()
}
})
//
/*
@ -183,7 +195,8 @@ const ConsumeSelectBy = async function (val) {
startTime: beanConsumeFan.value.startTime || '',
endTime: beanConsumeFan.value.endTime || '',
sortField: beanConsumeFan.value.sortField || 'consumeTime',
sortOrder: beanConsumeFan.value.sortOrder || 'desc'
sortOrder: beanConsumeFan.value.sortOrder || 'desc',
flag: flag.value
}
}
})
@ -201,7 +214,7 @@ const ConsumeSelectBy = async function (val) {
payType: 7, // payType 7
beanConsumeFan: {
...beanConsumeFan.value,
flag: flag.value
}
};
// POST

20
src/views/consume/bean/liveStream.vue

@ -1,9 +1,22 @@
<script setup>
import { computed, onMounted, ref } from 'vue'
import { computed, onMounted, ref, watch } from 'vue'
import { dayjs, ElMessage } from 'element-plus'
import request from '@/util/http.js'
import API from '@/util/http.js'
import moment from 'moment'
import { useAdminStore } from "@/store/index.js";
import { storeToRefs } from "pinia";
const adminStore = useAdminStore();
const { flag } = storeToRefs(adminStore);
// flag
watch(flag, (newFlag, oldFlag) => {
// flag
if (newFlag !== oldFlag) {
selectLiveBy()
}
})
//
/*
@ -223,7 +236,8 @@ const selectLiveBy = async function (val) {
startTime: beanConsumeLive.value.startTime || '',
endTime: beanConsumeLive.value.endTime || '',
sortField: beanConsumeLive.value.sortField || 'consumeTime',
sortOrder: beanConsumeLive.value.sortOrder || 'desc'
sortOrder: beanConsumeLive.value.sortOrder || 'desc',
flag: flag.value
}
}
})
@ -239,7 +253,7 @@ const selectLiveBy = async function (val) {
payType: 1, // payType 1
beanConsumeLive: {
...beanConsumeLive.value,
flag: flag.value
}
};

19
src/views/recharge/bean/beanSystemRecharge.vue

@ -1,11 +1,26 @@
<script setup>
import { ref, onMounted, reactive, computed } from 'vue'
import { ref, onMounted, reactive, computed, watch } from 'vue'
import ElementPlus from 'element-plus'
import { ElMessage, ElMessageBox } from 'element-plus'
import { AiFillRead } from 'vue-icons-plus/ai'
import axios from 'axios'
import moment from 'moment'
import API from '@/util/http.js'
import { useAdminStore } from "@/store/index.js";
import { storeToRefs } from "pinia";
const adminStore = useAdminStore();
const { adminData, menuTree,flag } = storeToRefs(adminStore);
// flag
watch(flag, (newFlag, oldFlag) => {
// flag
if (newFlag !== oldFlag) {
getTotalBeans()
get()
}
})
const selectData = ref({
jwcode: '',
@ -39,6 +54,7 @@ const getTotalBeans = async () => {
url: '/beanRecharge/statsSystemBean',
data: {
...selectData.value,
flag: flag.value
}
})
if (result.code == 200) {
@ -176,6 +192,7 @@ const get = async () => {
...selectData.value,
sortField: sortField.value,
sortOrder: sortOrder.value,
flag: flag.value
},
}
console.log('请求参数:', data);

19
src/views/usergold/bean/userbean.vue

@ -48,15 +48,24 @@
</template>
<script setup>
import { ref, onMounted } from 'vue'
import { ref, onMounted, watch } from 'vue'
import API from '@/util/http.js'
import { useAdminStore } from "@/store/index.js";
import { storeToRefs } from "pinia";
const adminStore = useAdminStore();
const { adminData, menuTree } = storeToRefs(adminStore);
const { adminData, menuTree, flag } = storeToRefs(adminStore);
import { permissionMapping, findMenuById } from "@/utils/menuTreePermission.js"
import { ElMessage } from 'element-plus';
// flag
watch(flag, (newFlag, oldFlag) => {
// flag
if (newFlag !== oldFlag) {
getStats()
get()
}
})
const canLook = ref(findMenuById(menuTree.value, permissionMapping.gold_bean_customer_details))
const tableData = ref([])
const marketOptions = ref([])
@ -96,7 +105,8 @@ const get = async function () {
jwcode: searchObj.value.jwcode, //
dept: searchObj.value.dept, //
sortField: searchObj.value.sortField,//
sortOrder: searchObj.value.sortOrder//
sortOrder: searchObj.value.sortOrder,//
flag: flag.value
},
pageNum: pagination.value.pageNum,
pageSize: pagination.value.pageSize
@ -119,7 +129,8 @@ const getStats = async () => {
const params = {
beanUser: {
jwcode: searchObj.value.jwcode,
dept: searchObj.value.dept
dept: searchObj.value.dept,
flag: flag.value
}
}
const res = await API({

Loading…
Cancel
Save