Commit bb5c0856 authored by jingnan's avatar jingnan 👀

退库入库流程表单配置

parent 865e0541
......@@ -123,7 +123,6 @@
<el-form-item label-width="100px" label="不合格数" prop="noPassAmount">
<el-input-number
v-model="form.noPassAmount"
style="width: 120px"
clearable
:min="0"
placeholder="不合格数"
......@@ -348,6 +347,10 @@ export default {
if (isok) {
this.$api.recursion('JobResponseInTest', params).then(res => {
this.$utils.showMessageSuccess('保存成功!')
const subTypeName = this.basicData && this.basicData.subTypeName || ''
if (subTypeName === 'InStorageUseBackItem' || subTypeName === 'InStorageOutBackItem' || subTypeName === 'InStorageMatchBackItem') {
this.$bus.$emit('refreshBackItem')
}
resolve(true)
}).catch(() => {
resolve(false)
......
......@@ -884,7 +884,7 @@ export default {
}
post('JobResponseInStorage/search', param).then(res => {
const data = res.items.content[0]
if (data.reportNo) {
if (data && data.reportNo) {
this.chemicalDisplay = true
this.form = {
...this.form,
......@@ -932,6 +932,10 @@ export default {
if (isok) {
this.$api.recursion('JobResponseInTest', params).then(res => {
this.$utils.showMessageSuccess('保存成功!')
const subTypeName = this.basicData && this.basicData.subTypeName || ''
if (subTypeName === 'InStorageUseBackItem' || subTypeName === 'InStorageOutBackItem' || subTypeName === 'InStorageMatchBackItem') {
this.$bus.$emit('refreshBackItem')
}
resolve(true)
}).catch(() => {
resolve(false)
......
......@@ -317,6 +317,10 @@ export default {
if (isok) {
this.$api.recursion('JobResponseInTest', params).then(res => {
this.$utils.showMessageSuccess('保存成功!')
const subTypeName = this.basicData && this.basicData.subTypeName || ''
if (subTypeName === 'InStorageUseBackItem' || subTypeName === 'InStorageOutBackItem' || subTypeName === 'InStorageMatchBackItem') {
this.$bus.$emit('refreshBackItem')
}
resolve(true)
}).catch(() => {
resolve(false)
......
......@@ -54,7 +54,7 @@ export default {
case 'InStorageOutBackItem': // 供外退库入库
this.cmpOptions = {
typeName: 'InStorageBack',
layKey: 'InStorageBackApproved_examine'
layKey: 'InStorageBackApproved_apply'
}
break
default:
......
<!--
* @Author: gjn
* @Date: 2023-09-08 16:22:41
* @Description:签审对象— 审批中间环节(只读)
* @Date: 2023-09-15 14:22:41
* @Description:签审对象_检验环节
-->
<template>
<div class="OutStorageUseApprovedObject">
<div class="OutStorageUseApprovedObjectTest">
<dee-as-com
:key="refreshKey"
ref="applyTable"
style="border:none;"
model-name="OutStorageUse"
:lay-config="cmpOptions"
......@@ -16,7 +18,7 @@
<script>
export default {
name: 'OutStorageUseApprovedObject',
name: 'OutStorageUseApprovedObjectTest',
components: {},
props: {
basicData: {
......@@ -27,41 +29,19 @@ export default {
data() {
return {
cmpOptions: {
typeName: 'OutStorageUseItem',
layKey: 'OutStorageUseApprovedObject'
}
typeName: 'InStorageBack',
layKey: 'InStorageBackApproved_test'
},
refreshKey: 1
}
},
computed: {},
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
}
}
}
}
watch: {},
created() {
this.$bus.$on('refreshBackItem', (data) => {
this.refreshKey += 1
})
},
created() {},
mounted() {},
// 组件方法
methods: {}
......
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