diff --git a/src/App.vue b/src/App.vue
index 81a09cb..ee0e346 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -30,7 +30,7 @@ import { Push } from '@/common/push'
var connection = new Push({
- url: 'ws://192.168.1.22:3131/', // websocket地址
+ url: 'ws://192.168.1.10:3131', // websocket地址
app_key: 'aaea61749929eb53a4bd75a1474c1d27',
});
// 假设用户uid为1
diff --git a/src/common/EventBus.js b/src/common/EventBus.js
index 67d51ee..69f267a 100644
--- a/src/common/EventBus.js
+++ b/src/common/EventBus.js
@@ -1,11 +1,2 @@
import mitt from 'mitt'
-
-
-
-
-
-
-
-
-
export const globalEventBus = mitt()
diff --git a/src/components/areaList.vue b/src/components/areaList.vue
index d3d9ea4..bf32c45 100644
--- a/src/components/areaList.vue
+++ b/src/components/areaList.vue
@@ -31,15 +31,12 @@ const choseTownFn = (id, name) => {
areaStore.changeArea({
areaCode: areaStore.area.areaCode,
streetCode: id,
- name:areaStore.area.name
+ name:name
})
props.choseArea = false
emit('offAreaList', name)
-
- // router.go(0)
-
router.replace('/townDetail?code=' + id)
}
diff --git a/src/components/header.vue b/src/components/header.vue
index 7119065..6eaee29 100644
--- a/src/components/header.vue
+++ b/src/components/header.vue
@@ -54,7 +54,7 @@
{{ area }}
+ src="/static/index/DW.png" alt=""> {{ areaStore.area.name||"泸县" }}
@@ -146,7 +146,7 @@ const changeArea = (name, code) => {
// router.go(0)
router.replace('/')
- console.log(areaStore.area)
+ console.log(areaStore.area.name)
}
@@ -206,7 +206,12 @@ const choseArea = ref(false)
// 关闭
const offAreaList = (name) => {
choseArea.value = false
- area.value = name
+
+
+
+
+
+ // area.value = name
}
const out = () => {
localStorage.removeItem('TRADE_USER')
@@ -248,18 +253,24 @@ onMounted(() => {
globalEventBus.on('compheader1', data => {
+ showFn(0, '/')
+
+
if (SCREEN_TYPE.type == 'r') {
showFn(0, '/')
}
})
globalEventBus.on('compheader2', data => {
+ showFn(1, '/commodity')
+
if (SCREEN_TYPE.type == 'r'){
showFn(1, '/commodity')
}
})
globalEventBus.on('compheader3', data => {
+ showFn(2, '/Businesses')
if (SCREEN_TYPE.type == 'r'){
showFn(2, '/Businesses')
@@ -269,6 +280,9 @@ globalEventBus.on('compheader3', data => {
})
globalEventBus.on('compheader4', data => {
+ showFn(3, '/order')
+
+
if (SCREEN_TYPE.type == 'r'){
showFn(3, '/order')
}
@@ -277,6 +291,9 @@ globalEventBus.on('compheader4', data => {
globalEventBus.on('compheader5', data => {
+ showFn(4, '/finance')
+
+
if (SCREEN_TYPE.type == 'r'){
showFn(4, '/finance')
}
@@ -287,6 +304,9 @@ globalEventBus.on('compheader5', data => {
globalEventBus.on('choserArea', data => {
changeArea(data.name, data.code)
+
+
+
})
diff --git a/src/view/finance.vue b/src/view/finance.vue
index 2cbefa6..d570df8 100644
--- a/src/view/finance.vue
+++ b/src/view/finance.vue
@@ -218,17 +218,7 @@ const billList = reactive([
num: 1245
},
])
-const testList = [
- {
- uid: "sadsa",
- nickname: "sdasd",
- number: 44212,
- title: "asasa",
- mark: "assdfjhdsjh",
- create_time: '2020-12-10'
- }
-]
financial_record_titleApi(
{
@@ -488,6 +478,7 @@ const detailData = reactive({})
const hdClick3 = (e) => {
if (e.columnIndex == 5) {
+
if (billType.value == 1) {
financial_record_detailApi(
{ ...areaStore.area, date: billData[e.rowIndex].time }
@@ -545,7 +536,34 @@ globalEventBus.on('header5-3-2', data => {
changeBill(2)
})
globalEventBus.on('header5-3-3', data => {
- hdClick(2)
+ if (billType.value == 1) {
+ financial_record_detailApi(
+ { ...areaStore.area, date: data.time }
+ ).then(res => {
+
+ for (let key in res.data) {
+ detailData[key] = res.data[key]
+ }
+
+ })
+ }
+ if (billType.value == 2) {
+ financial_record_detailApi2(
+ { ...areaStore.area, date:data.time }
+ ).then(res => {
+
+ for (let key in res.data) {
+ detailData[key] = res.data[key]
+ }
+
+ })
+ }
+
+
+ showPop.value = true
+})
+globalEventBus.on('header5-3-4', data => {
+ showPop.value = false
})
diff --git a/src/view/index.vue b/src/view/index.vue
index 7c7e4b4..3f44291 100644
--- a/src/view/index.vue
+++ b/src/view/index.vue
@@ -6,24 +6,24 @@
@@ -53,6 +53,9 @@ console.log(areaCodes,'areacodes')
setTimeout(() => {
showLoading.value = false
}, 1000);
+
+
+