Commit bb5c0856 authored by jingnan's avatar jingnan 👀

退库入库流程表单配置

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