|
@@ -51,7 +51,7 @@
|
|
|
import SupplierDetail from '../sale/supplier-detail'
|
|
|
import OutsourceDetail from '../sale/outsource-detail'
|
|
|
import ExpenseDetail from '../finance/expense-detail'
|
|
|
- import damageDetail from '../production/damage-details'
|
|
|
+ import damageDetails from '../production/damage-details'
|
|
|
export default {
|
|
|
name: 'approve-add-or-update',
|
|
|
components: {
|
|
@@ -66,7 +66,7 @@ export default {
|
|
|
SupplierDetail,
|
|
|
OutsourceDetail,
|
|
|
ExpenseDetail,
|
|
|
- damageDetail
|
|
|
+ damageDetails
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
@@ -105,7 +105,10 @@ export default {
|
|
|
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 {
|
|
|
+ } else if (this.businessType === 'work_damage_flow') {
|
|
|
+ this.display ? this.$refs.damageDetail.init(this.businessId) : this.$refs.damageDetail.init(this.businessId, businessType)
|
|
|
+ }
|
|
|
+ else {
|
|
|
this.$message.error('流程类别不支持,请联系管理员!')
|
|
|
}
|
|
|
},
|