Commit 7fbb3daf authored by jingnan's avatar jingnan 👀

退库入库流程表单配置

parent cb41e392
......@@ -71,7 +71,8 @@ export default {
handler(val) {
this.$set(this.cmpOptions, 'layKey', `outStorageUseMaterial_Add_${val}`)
switch (val) {
case 'useAO' || 'noAO':
case 'useAO' :
case 'noAO':
this.amountItemLabel = '申领数量'
break
case 'swapUse':
......
<!--
* @Author: gjn
* @Date: 2023-09-08 16:22:41
* @Description:领用出库签审对象
* @Description:签审对象— 审批中间环节(只读)
-->
<template>
<div class="OutStorageUseApprovedObject">
......@@ -33,7 +33,34 @@ export default {
}
},
computed: {},
watch: {},
watch: {
basicData: {
immediate: true,
deep: true,
handler(val) {
if (val && val.subTypeName) {
switch (val.subTypeName) {
case 'OutStorageUse': // 领用出库
this.cmpOptions = {
typeName: 'OutStorageUseItem',
layKey: 'OutStorageUseApprovedObject'
}
break
case 'InStorageUseBackItem': // 领用退库入库
case 'InStorageMatchBackItem': // 配套退库入库
case 'InStorageOutBackItem': // 供外退库入库
this.cmpOptions = {
typeName: 'InStorageBack',
layKey: 'InStorageBackApproved_examine'
}
break
default:
break
}
}
}
}
},
created() {},
mounted() {},
// 组件方法
......
<!--
* @Author: gjn
* @Date: 2023-09-08 16:22:41
* @Description:领用出库签审对象_申请环节
* @Date: 2023-09-13 16:22:41
* @Description:签审对象_申请环节(可编辑)
-->
<template>
<div class="OutStorageUseApprovedObjectApply">
......@@ -10,7 +10,7 @@
ref="itemTable"
style="border:none;"
model-name="OutStorageUse"
:lay-config="cmpOptionsItem"
:lay-config="cmpOptions"
:basic-data="basicData"
/>
</div>
......@@ -28,7 +28,7 @@ export default {
},
data() {
return {
cmpOptionsItem: {
cmpOptions: {
typeName: 'OutStorageUseItem',
layKey: 'OutStorageUseApprovedObject_apply'
},
......@@ -36,7 +36,34 @@ export default {
}
},
computed: {},
watch: {},
watch: {
basicData: {
immediate: true,
deep: true,
handler(val) {
if (val && val.subTypeName) {
switch (val.subTypeName) {
case 'OutStorageUse':
this.cmpOptions = {
typeName: 'OutStorageUseItem', // 领用出库
layKey: 'OutStorageUseApprovedObject_apply'
}
break
case 'InStorageUseBackItem': // 领用退库入库
case 'InStorageMatchBackItem': // 配套退库入库
case 'InStorageOutBackItem': // 供外退库入库
this.cmpOptions = {
typeName: 'InStorageBack',
layKey: 'InStorageBackApproved_examine'
}
break
default:
break
}
}
}
}
},
created() {
this.$bus.$on('cancelAndRefresh', (data) => {
this.refreshKey += 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment