Просмотр исходного кода

refactor: 移除新增发票链接并优化代码逻辑

liujt 5 месяцев назад
Родитель
Сommit
b822f12546

+ 6 - 1
src/views/contractManage/contractBook/components/addDialogNew.vue

@@ -1401,7 +1401,10 @@
           endSettlementDate: '',
           endSettlementDate: '',
           startSettlementDate: ''
           startSettlementDate: ''
         });
         });
-        this.getBusinessUser(this.form.businessDeptId)
+        this.$nextTick(() => {
+          this.getBusinessUser(this.form.businessDeptId)
+        })
+        
         console.log('form~~~', this.form);
         console.log('form~~~', this.form);
         this.getEnterprise();
         this.getEnterprise();
         this.changePersonel();
         this.changePersonel();
@@ -1636,6 +1639,7 @@
       },
       },
 
 
       async open(type, row, create = false, source) {
       async open(type, row, create = false, source) {
+        console.log('row~~~', row)
         this.title = type === 'add' ? '新增' : '修改';
         this.title = type === 'add' ? '新增' : '修改';
         this.activeName = '1';
         this.activeName = '1';
         this.row = row;
         this.row = row;
@@ -1673,6 +1677,7 @@
             })
             })
           });
           });
           if (this.curNodeData?.id) {
           if (this.curNodeData?.id) {
+            console.log('44444444', this.curNodeData)
             this.form.type =
             this.form.type =
               this.curNodeData.parentCode || this.curNodeData.code;
               this.curNodeData.parentCode || this.curNodeData.code;
             this.dictChange(this.form.type);
             this.dictChange(this.form.type);

+ 2 - 2
src/views/purchasingManage/purchaseOrder/accountstatement/index.vue

@@ -109,7 +109,7 @@
               </template>
               </template>
             </el-popconfirm>
             </el-popconfirm>
 
 
-            <el-link
+            <!-- <el-link
               size="small"
               size="small"
               type="primary"
               type="primary"
               :underline="false"
               :underline="false"
@@ -119,7 +119,7 @@
               @click="handleAddInvoice(row)"
               @click="handleAddInvoice(row)"
             >
             >
               新增发票
               新增发票
-            </el-link>
+            </el-link> -->
           </template>
           </template>
         </ele-pro-table>
         </ele-pro-table>
       </div>
       </div>

+ 3 - 3
src/views/purchasingManage/purchaseOrder/components/addDialogNew.vue

@@ -270,7 +270,7 @@
               style="width: 100%"
               style="width: 100%"
             >
             >
               <el-option
               <el-option
-                v-for="item in shippingModeOptions"
+                v-for="item in shippingModePurchaseOp"
                 :key="item.value"
                 :key="item.value"
                 :label="item.label"
                 :label="item.label"
                 :value="item.value"
                 :value="item.value"
@@ -749,7 +749,7 @@
   import returnOrderDealDialog from './returnOrderDealDialog.vue';
   import returnOrderDealDialog from './returnOrderDealDialog.vue';
   import purchaseReturnOrderDialog from '@/views/transportManager/shipManage/dispatchManage/components/purchaseReturnOrderDialog.vue';
   import purchaseReturnOrderDialog from '@/views/transportManager/shipManage/dispatchManage/components/purchaseReturnOrderDialog.vue';
   import PaymentCollectionPlan from '@/BIZComponents/paymentCollectionPlan/Index.vue'
   import PaymentCollectionPlan from '@/BIZComponents/paymentCollectionPlan/Index.vue'
-  import { shippingModeOptions, transactionMethodsOp } from '@/enum/dict.js';
+  import { shippingModePurchaseOp, transactionMethodsOp } from '@/enum/dict.js';
 
 
   export default {
   export default {
     mixins: [dictMixins],
     mixins: [dictMixins],
@@ -890,7 +890,7 @@
         isUpdate: false,
         isUpdate: false,
         businessId: '',
         businessId: '',
         winnerSuppleIds: '',
         winnerSuppleIds: '',
-        shippingModeOptions,
+        shippingModePurchaseOp,
         transactionMethodsOp,
         transactionMethodsOp,
       };
       };
     },
     },

+ 2 - 2
src/views/saleManage/saleOrder/accountstatement/index.vue

@@ -113,7 +113,7 @@
             <!--              v-if="[2].includes(row.reviewStatus)">-->
             <!--              v-if="[2].includes(row.reviewStatus)">-->
             <!--              导出-->
             <!--              导出-->
             <!--            </el-link>-->
             <!--            </el-link>-->
-            <el-link
+            <!-- <el-link
               size="small"
               size="small"
               type="primary"
               type="primary"
               :underline="false"
               :underline="false"
@@ -123,7 +123,7 @@
               @click="handleAddInvoice(row)"
               @click="handleAddInvoice(row)"
             >
             >
               新增发票
               新增发票
-            </el-link>
+            </el-link> -->
           </template>
           </template>
         </ele-pro-table>
         </ele-pro-table>
       </div>
       </div>