Commit 7fbb3daf authored by jingnan's avatar jingnan 👀

退库入库流程表单配置

parent cb41e392
...@@ -71,7 +71,8 @@ export default { ...@@ -71,7 +71,8 @@ export default {
handler(val) { handler(val) {
this.$set(this.cmpOptions, 'layKey', `outStorageUseMaterial_Add_${val}`) this.$set(this.cmpOptions, 'layKey', `outStorageUseMaterial_Add_${val}`)
switch (val) { switch (val) {
case 'useAO' || 'noAO': case 'useAO' :
case 'noAO':
this.amountItemLabel = '申领数量' this.amountItemLabel = '申领数量'
break break
case 'swapUse': case 'swapUse':
......
<!-- <!--
* @Author: gjn * @Author: gjn
* @Date: 2023-09-08 16:22:41 * @Date: 2023-09-08 16:22:41
* @Description:领用出库签审对象 * @Description:签审对象— 审批中间环节(只读)
--> -->
<template> <template>
<div class="OutStorageUseApprovedObject"> <div class="OutStorageUseApprovedObject">
...@@ -33,7 +33,34 @@ export default { ...@@ -33,7 +33,34 @@ export default {
} }
}, },
computed: {}, 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() {}, created() {},
mounted() {}, mounted() {},
// 组件方法 // 组件方法
......
<!-- <!--
* @Author: gjn * @Author: gjn
* @Date: 2023-09-08 16:22:41 * @Date: 2023-09-13 16:22:41
* @Description:领用出库签审对象_申请环节 * @Description:签审对象_申请环节(可编辑)
--> -->
<template> <template>
<div class="OutStorageUseApprovedObjectApply"> <div class="OutStorageUseApprovedObjectApply">
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
ref="itemTable" ref="itemTable"
style="border:none;" style="border:none;"
model-name="OutStorageUse" model-name="OutStorageUse"
:lay-config="cmpOptionsItem" :lay-config="cmpOptions"
:basic-data="basicData" :basic-data="basicData"
/> />
</div> </div>
...@@ -28,7 +28,7 @@ export default { ...@@ -28,7 +28,7 @@ export default {
}, },
data() { data() {
return { return {
cmpOptionsItem: { cmpOptions: {
typeName: 'OutStorageUseItem', typeName: 'OutStorageUseItem',
layKey: 'OutStorageUseApprovedObject_apply' layKey: 'OutStorageUseApprovedObject_apply'
}, },
...@@ -36,7 +36,34 @@ export default { ...@@ -36,7 +36,34 @@ export default {
} }
}, },
computed: {}, 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() { created() {
this.$bus.$on('cancelAndRefresh', (data) => { this.$bus.$on('cancelAndRefresh', (data) => {
this.refreshKey += 1 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