Selaa lähdekoodia

feat: 修改发票号和发票种类字段,更新数据模型以支持新结构

xieyong 3 päivää sitten
vanhempi
commit
5df73119a4

+ 6 - 5
src/views/bpm/handleTask/components/financialManage/receivableManage/components/detailDialog.vue

@@ -47,17 +47,17 @@
             </el-form-item>
           </el-col>
           <el-col :span="8">
-            <el-form-item prop="invoiceNo" label="发票号">
-              <el-input disabled v-model="dataForm.invoiceNo"></el-input>
+            <el-form-item prop="invoiceNos" label="发票号">
+              <el-input disabled v-model="dataForm.invoiceNos"></el-input>
             </el-form-item>
           </el-col>
           <el-col :span="8">
-            <el-form-item prop="category" label="发票种类">
+            <el-form-item prop="invoiceCategory" label="发票种类">
               <el-select
                 :disabled="true"
                 clearable
                 class="ele-block"
-                v-model="dataForm.category"
+                v-model="dataForm.invoiceCategory"
                 placeholder="请选择"
               >
                 <el-option label="增值税专用发票" :value="1"></el-option>
@@ -90,6 +90,7 @@
                 <el-option label="采购收货单" :value="6" />
                 <el-option label="付款计划单" :value="8" />
                 <el-option label="其他" :value="99" />
+                <el-option label="其他" :value="9" />
               </el-select>
             </el-form-item>
           </el-col>
@@ -235,7 +236,7 @@
       async getInfo(id) {
         await this.getClassifyList(24, 'accountingSubjectList');
         let data = await getFinReceivableInfoAPI(id);
-
+        data.invoiceCategory = Number(data.invoiceCategory);
         this.dataForm = {
           ...this.dataForm,
           ...data