陈少旭 před 1 rokem
rodič
revize
5e89557875

+ 16 - 3
src/xt_pages/outpatientCharges/components/chargeDialog.vue Zobrazit soubor

137
 
137
 
138
       <el-form-item label="发票编码:">
138
       <el-form-item label="发票编码:">
139
         <div style="display:flex;">
139
         <div style="display:flex;">
140
-          <el-input v-model.number="form.fapiao_code"></el-input>
140
+          <el-input v-model="form.fapiao_code"></el-input>
141
         </div>
141
         </div>
142
       </el-form-item>
142
       </el-form-item>
143
 
143
 
144
 
144
 
145
       <el-form-item label="发票号码:">
145
       <el-form-item label="发票号码:">
146
-        <div style="display:flex;">
147
-          <el-input v-model.number="form.fapiao_number"></el-input>
146
+        <div style=" display:flex;">
147
+          <el-input v-model="form.fapiao_number"></el-input>
148
         </div>
148
         </div>
149
       </el-form-item>
149
       </el-form-item>
150
 
150
 
165
     idtobalance
165
     idtobalance
166
   }from "@/api/deposit";
166
   }from "@/api/deposit";
167
 
167
 
168
+  import {
169
+    getfapiaonumber
170
+  }from "@/api/his/his";
171
+
172
+
173
+
168
   export default {
174
   export default {
169
     name: 'chargeDialog',
175
     name: 'chargeDialog',
170
 
176
 
324
           this.tmp_pay = this.form.pay_price
330
           this.tmp_pay = this.form.pay_price
325
           this.form.pay_price = ((parseFloat(this.form.private_price)*10000 - parseFloat(this.form.tmp_decimal)*10000)/10000).toFixed(2)
331
           this.form.pay_price = ((parseFloat(this.form.private_price)*10000 - parseFloat(this.form.tmp_decimal)*10000)/10000).toFixed(2)
326
         }
332
         }
333
+      },getfapiaonumber(){
334
+        getfapiaonumber().then((res) => {
335
+          if (res.data.state == 1) {
336
+            this.form.fapiao_number = res.data.data.fapiao_number;
337
+          }
338
+        })
327
       },
339
       },
328
       //查询用户当前的余额
340
       //查询用户当前的余额
329
       updateconfig(){
341
       updateconfig(){
352
         this.id =id
364
         this.id =id
353
         this.form.dec_way = false
365
         this.form.dec_way = false
354
         this.updateconfig()
366
         this.updateconfig()
367
+        this.getfapiaonumber()
355
         this.form.total = total
368
         this.form.total = total
356
         this.form.private_price = total
369
         this.form.private_price = total
357
         this.form.pay_price = total
370
         this.form.pay_price = total