|
@@ -18,6 +18,9 @@
|
|
<div v-show="businessType === 'pro_product_flow'">
|
|
<div v-show="businessType === 'pro_product_flow'">
|
|
<product-detail ref="productDetail" @approveFinished="approveFinished"/>
|
|
<product-detail ref="productDetail" @approveFinished="approveFinished"/>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div v-show="businessType === 'pro_technology_flow'">
|
|
|
|
+ <craft-detail ref="craftDetail" @approveFinished="approveFinished"/>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -28,10 +31,11 @@
|
|
import purchaseDetail from '../sale/purchase-detail'
|
|
import purchaseDetail from '../sale/purchase-detail'
|
|
import templateOutDetail from '../warehouse/template-delivery-detail'
|
|
import templateOutDetail from '../warehouse/template-delivery-detail'
|
|
import productDetail from '../tech/product-detail'
|
|
import productDetail from '../tech/product-detail'
|
|
|
|
+ import craftDetail from '../tech/crafts-detail'
|
|
export default {
|
|
export default {
|
|
name: 'approve-add-or-update',
|
|
name: 'approve-add-or-update',
|
|
components: {
|
|
components: {
|
|
- stockOrderDetail, contractDetail, orderDetail, purchaseDetail, templateOutDetail, productDetail
|
|
|
|
|
|
+ stockOrderDetail, contractDetail, orderDetail, purchaseDetail, templateOutDetail, productDetail, craftDetail
|
|
},
|
|
},
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
@@ -57,6 +61,8 @@
|
|
this.display ? this.$refs.templateOutDetail.init(this.businessId) : this.$refs.templateOutDetail.init(this.businessId, businessType)
|
|
this.display ? this.$refs.templateOutDetail.init(this.businessId) : this.$refs.templateOutDetail.init(this.businessId, businessType)
|
|
} else if (this.businessType === 'pro_product_flow') {
|
|
} else if (this.businessType === 'pro_product_flow') {
|
|
this.display ? this.$refs.productDetail.init(this.businessId) : this.$refs.productDetail.init(this.businessId, businessType)
|
|
this.display ? this.$refs.productDetail.init(this.businessId) : this.$refs.productDetail.init(this.businessId, businessType)
|
|
|
|
+ } else if (this.businessType === 'pro_technology_flow') {
|
|
|
|
+ this.display ? this.$refs.craftDetail.init(this.businessId) : this.$refs.craftDetail.init(this.businessId, businessType)
|
|
} else {
|
|
} else {
|
|
this.$message.error('流程类别不支持,请联系管理员!')
|
|
this.$message.error('流程类别不支持,请联系管理员!')
|
|
}
|
|
}
|