liqianyi před 3 roky
rodič
revize
a0c4ec51d9

+ 8 - 1
src/views/modules/msg-center/approve-add-or-update.vue

@@ -27,6 +27,9 @@
     <div v-show="businessType === 'supplier_review_flow'">
       <supplier-detail ref="supplierDetail" @approveFinished="approveFinished" @onChose="onChose"/>
     </div>
+    <div v-show="businessType === 'pur_commission_flow'">
+      <outsource-detail ref="outsourceDetail" @approveFinished="approveFinished" @onChose="onChose"/>
+    </div>
   </div>
 </template>
 
@@ -40,6 +43,7 @@
   import craftDetail from '../tech/crafts-detail'
   import InventoryDetail from '../warehouse/inventory-detail'
   import SupplierDetail from '../sale/supplier-detail'
+  import OutsourceDetail from '../sale/outsource-detail'
 export default {
     name: 'approve-add-or-update',
     components: {
@@ -51,7 +55,8 @@ export default {
       templateOutDetail,
       productDetail,
       craftDetail,
-      SupplierDetail
+      SupplierDetail,
+      OutsourceDetail
     },
     data () {
       return {
@@ -86,6 +91,8 @@ export default {
           this.display ? this.$refs.inventoryDetail.init(this.businessId) : this.$refs.inventoryDetail.init(this.businessId, businessType)
         } else if (this.businessType === 'supplier_review_flow') {
           this.display ? this.$refs.supplierDetail.init(this.businessId) : this.$refs.supplierDetail.init(this.businessId, businessType)
+        } else if (this.businessType === 'pur_commission_flow') {
+          this.display ? this.$refs.outsourceDetail.init(this.businessId) : this.$refs.outsourceDetail.init(this.businessId, businessType)
         } else {
           this.$message.error('流程类别不支持,请联系管理员!')
         }

+ 9 - 3
src/views/modules/msg-center/approve.vue

@@ -192,14 +192,20 @@
           {
             code: 'pro_technology_flow', value: '工艺评审'
           },
-          // {
-          //   code: 'pro_product_flow', value: '产品'
-          // },
+          {
+            code: 'pro_product_flow', value: '产品评审'
+          },
           {
             code: 'wh_inventory_record_flow', value: '盘点评审'
           },
           {
             code: 'supplier_review_flow', value: '供应商评审'
+          },
+          {
+            code: 'submit_expense_flow', value: '报销审批'
+          },
+          {
+            code: 'pur_commission_flow', value: '委外审批'
           }
         ],
         optionsCustomer: []