|
@@ -30,6 +30,9 @@
|
|
|
<div v-show="businessType === 'pur_commission_flow'">
|
|
|
<outsource-detail ref="outsourceDetail" @approveFinished="approveFinished" @onChose="onChose"/>
|
|
|
</div>
|
|
|
+ <div v-show="businessType === 'submit_expense_flow'">
|
|
|
+ <expense-detail ref="expenseDetail" @approveFinished="approveFinished" @onChose="onChose"/>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -44,6 +47,7 @@
|
|
|
import InventoryDetail from '../warehouse/inventory-detail'
|
|
|
import SupplierDetail from '../sale/supplier-detail'
|
|
|
import OutsourceDetail from '../sale/outsource-detail'
|
|
|
+ import ExpenseDetail from '../finance/expense-detail'
|
|
|
export default {
|
|
|
name: 'approve-add-or-update',
|
|
|
components: {
|
|
@@ -56,7 +60,8 @@ export default {
|
|
|
productDetail,
|
|
|
craftDetail,
|
|
|
SupplierDetail,
|
|
|
- OutsourceDetail
|
|
|
+ OutsourceDetail,
|
|
|
+ ExpenseDetail
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
@@ -93,6 +98,8 @@ export default {
|
|
|
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 if (this.businessType === 'submit_expense_flow') {
|
|
|
+ this.display ? this.$refs.expenseDetail.init(this.businessId) : this.$refs.expenseDetail.init(this.businessId, businessType)
|
|
|
} else {
|
|
|
this.$message.error('流程类别不支持,请联系管理员!')
|
|
|
}
|