张涛 vor 1 Jahr
Ursprung
Commit
a40cd24fcf
3 geänderte Dateien mit 33 neuen und 10 gelöschten Zeilen
  1. 30
    9
      src/pages/invoice/components/InvoiceInfo.vue
  2. 2
    0
      src/pages/invoice/fill.vue
  3. 1
    1
      vite.config.js

+ 30
- 9
src/pages/invoice/components/InvoiceInfo.vue Datei anzeigen

1
 <template>
1
 <template>
2
-  
3
   <van-cell-group>
2
   <van-cell-group>
4
     <template #title>
3
     <template #title>
5
-      开票信息(<span class='groupTitle'>请务必仔细填写以下信息,必填</span>)
4
+      开票信息(<span class="groupTitle">请务必仔细填写以下信息,必填</span>)
6
     </template>
5
     </template>
7
     <van-field
6
     <van-field
8
       label="开票单位"
7
       label="开票单位"
61
           <van-radio name="否">否</van-radio>
60
           <van-radio name="否">否</van-radio>
62
         </van-radio-group>
61
         </van-radio-group>
63
       </template>
62
       </template>
64
-    </van-field>    
63
+    </van-field>
64
+    <van-field name="isNeedLodging" label="是否需要住宿清单">
65
+      <template #input>
66
+        <van-radio-group
67
+          v-model="props.pdata.isNeedLodging"
68
+          :disabled="props.isFinished"
69
+
70
+          direction="horizontal"
71
+        >
72
+          <van-radio name="1">是</van-radio>
73
+          <van-radio name="0">否</van-radio>
74
+        </van-radio-group>
75
+      </template>
76
+    </van-field>
77
+
78
+    <van-field
79
+      v-if="props.pdata.isNeedLodging==1"
80
+      label="房号"
81
+      v-model="props.pdata.roomCode"
82
+      name="roomCode"
83
+      placeholder="请输入房号"
84
+      :rules="[{ required: true, message: '请输入房号' }]"
85
+    />
65
   </van-cell-group>
86
   </van-cell-group>
66
   <van-cell-group title="发票寄送的收件信息(非必填)">
87
   <van-cell-group title="发票寄送的收件信息(非必填)">
67
-  <van-field
88
+    <van-field
68
       label="收件人姓名"
89
       label="收件人姓名"
69
       v-model="props.pdata.mailUser"
90
       v-model="props.pdata.mailUser"
70
       name="mailUser"
91
       name="mailUser"
85
   </van-cell-group>
106
   </van-cell-group>
86
 </template>
107
 </template>
87
 <script setup>
108
 <script setup>
88
-import { ref, reactive, watch } from 'vue';
109
+import { ref, reactive, watch } from "vue";
89
 const props = defineProps({
110
 const props = defineProps({
90
   isFinished: String,
111
   isFinished: String,
91
   pdata: {
112
   pdata: {
92
     type: Object,
113
     type: Object,
93
-    default: () => ({})
94
-  }
95
-})
114
+    default: () => ({}),
115
+  },
116
+});
96
 </script>
117
 </script>
97
 <style lang="less" scoped>
118
 <style lang="less" scoped>
98
-.groupTitle{
119
+.groupTitle {
99
   color: red;
120
   color: red;
100
 }
121
 }
101
 </style>
122
 </style>

+ 2
- 0
src/pages/invoice/fill.vue Datei anzeigen

98
     let info = res.detail || res.tpl
98
     let info = res.detail || res.tpl
99
     info.mergeRemark = info.mergeRemark || formData.mergeRemark
99
     info.mergeRemark = info.mergeRemark || formData.mergeRemark
100
     Object.assign(formData, info)
100
     Object.assign(formData, info)
101
+    console.log(formData)
102
+
101
     if (!personData.value.invoicePersonId) {
103
     if (!personData.value.invoicePersonId) {
102
       personData.value.invoiceOrgId = info.invoiceOrgId
104
       personData.value.invoiceOrgId = info.invoiceOrgId
103
       personData.value.invoiceOrgName = info.invoiceOrgName
105
       personData.value.invoiceOrgName = info.invoiceOrgName

+ 1
- 1
vite.config.js Datei anzeigen

12
     host:'0.0.0.0',
12
     host:'0.0.0.0',
13
     proxy: {
13
     proxy: {
14
       '/api': {
14
       '/api': {
15
-        target: 'http://192.168.89.147:7081',
15
+        target: 'http://192.168.89.25:7081',
16
         changeOrigin: true,
16
         changeOrigin: true,
17
       },
17
       },
18
     },
18
     },