李志伟 преди 2 години
родител
ревизия
3280707d46
променени са 5 файла, в които са добавени 24 реда и са изтрити 19 реда
  1. 1
    1
      src/components/PersonPicker/index.vue
  2. 2
    2
      src/pages/index.vue
  3. 19
    15
      src/pages/invoice/components/ItemTpl.vue
  4. 1
    1
      src/pages/invoice/components/PersonInfo.vue
  5. 1
    0
      vite.config.js

+ 1
- 1
src/components/PersonPicker/index.vue Целия файл

@@ -33,7 +33,7 @@
33 33
 </template>
34 34
 
35 35
 <script setup>
36
-import { computed, watch, ref, onMounted } from 'vue'
36
+import { computed, watch, ref } from 'vue'
37 37
 import { getPersonList } from '@/services/person'
38 38
 
39 39
 

+ 2
- 2
src/pages/index.vue Целия файл

@@ -36,7 +36,7 @@
36 36
 </template>
37 37
 
38 38
 <script setup>
39
-import { computed, onMounted, reactive, ref } from 'vue';
39
+import { computed, onMounted, reactive } from 'vue';
40 40
 import { useRouter, useRoute } from 'vue-router'
41 41
 import dayjs from 'dayjs'
42 42
 import { getInvoiceFill } from '@/services/invoice'
@@ -50,7 +50,7 @@ const formData = reactive({})
50 50
 const tipText = computed(() => {
51 51
   if (!invoiceId) return '请扫码访问此页面';
52 52
   const finished = formData.status === 2 || (formData.endDate ? dayjs().isAfter(dayjs(formData.endDate)) : false)
53
-  return finished ? '该班次信息收集已截止如有问题请联系报销助理' : `该班次信息收集将于 ${dayjs(formData.endDate).format('YYYY年MM月DD日')} 截止`
53
+  return finished ? '该班次信息收集已截止如有问题请联系报销助理' : `该班次信息收集将于${dayjs(formData.endDate).format('YYYY年MM月DD日 hh时mm分')}截止`
54 54
 })
55 55
 
56 56
 const goForm = () => {

+ 19
- 15
src/pages/invoice/components/ItemTpl.vue Целия файл

@@ -1,19 +1,23 @@
1 1
 <template>
2
-<van-cell-group v-if="props.itemList.length != 0" title="类目信息">
3
-      <div class="itembox" v-for="item in props.itemList" :key="item.invoiceItemId">
4
-        <van-cell title="开票项目">
5
-          <template #value>
6
-            <span style="color: #000">{{ item.name }}</span>
7
-          </template>
8
-        </van-cell>
9
-        <van-cell title="开票金额">
10
-          <template #value>
11
-            <span style="color: #000">{{ item.charge }}</span>
12
-          </template>
13
-        </van-cell>
14
-        <div class="lastLine" />
15
-      </div>
16
-    </van-cell-group>
2
+  <van-cell-group v-if="props.itemList.length != 0" title="类目信息">
3
+    <div
4
+      class="itembox"
5
+      v-for="item in props.itemList"
6
+      :key="item.invoiceItemId"
7
+    >
8
+      <van-cell title="开票项目">
9
+        <template #value>
10
+          <span style="color: #000">{{ item.name }}</span>
11
+        </template>
12
+      </van-cell>
13
+      <van-cell title="开票金额">
14
+        <template #value>
15
+          <span style="color: #000">{{ item.charge }}</span>
16
+        </template>
17
+      </van-cell>
18
+      <div class="lastLine" />
19
+    </div>
20
+  </van-cell-group>
17 21
 </template>
18 22
 <script setup>
19 23
 const props = defineProps({

+ 1
- 1
src/pages/invoice/components/PersonInfo.vue Целия файл

@@ -56,7 +56,7 @@ const props = defineProps({
56 56
     default: () => ({})
57 57
   }
58 58
 })
59
-const emit = defineEmits(['changeOrgValue','changePersonValue'])
59
+const emit = defineEmits(['changeOrgValue', 'changePersonValue'])
60 60
 watch(() => props.pdata, (val) => {
61 61
   Object.assign(value, val)
62 62
 },

+ 1
- 0
vite.config.js Целия файл

@@ -7,6 +7,7 @@ import { VantResolver } from 'unplugin-vue-components/resolvers';
7 7
 // https://vitejs.dev/config/
8 8
 export default defineConfig({
9 9
   server: {
10
+    //让局域网其他同事可以通过ip地址访问项目
10 11
     host:'0.0.0.0',
11 12
     proxy: {
12 13
       '/api': {