Commit a3ec0160 authored by jingnan's avatar jingnan 👀

物料检验流程增加批量签审

parent 942a6e9f
/**
* @Description:检验界面履历本信息
* @author gjn
* @date 2023/11/10
*/
<template>
<div class="biographicDataForInTest">
<dee-as-com
style="display:block"
:lay-config="config"
:basic-data="rowData"
/>
</div>
</template>
<script>
export default {
name: 'BiographicDataForInTest',
components: {},
props: {
basicData: {
type: Object,
default: () => null
}
},
data() {
return {
config: {},
rowData: {}
}
},
computed: {},
watch: {
basicData: {
immediate: true,
deep: true,
handler(row) {
// 查看履历单之前需完成检验单的填写
const responseInTest = this.$utils.getTargetJobResponses(row, 'JobResponseInTest')
if (!responseInTest || !responseInTest.testNo) return this.$utils.showMessageWarning('检验单号不能为空!')
this.getBiographicData(responseInTest, row) // 查询履历本信息 如有则查看没有则新建
if (responseInTest && responseInTest.biographicDataVOS && responseInTest.biographicDataVOS.length) {
this.rowData = responseInTest.biographicDataVOS[0]
} else {
this.rowData = row
}
}
}
},
created() {},
mounted() {
},
methods: {
getBiographicData(responseInTest, row) {
const params = {
searchItems: {
items: [{ 'fieldName': 'responseInTestId', operator: 'EQ', value: responseInTest.id }],
operator: 'AND'
}
}
this.$api.searchApi('BiographicData', params).then(res => {
if (res.items && res.items.content && res.items.content.length) {
this.config = { typeName: 'BiographicData', layKey: 'defaultInfo' }
} else {
this.config = { typeName: 'BiographicData', layKey: 'addBiographicData' }
}
}).catch(err => {
console.log(err)
})
}
}
}
</script>
<style lang="scss">
.biographicDataForInTest{
height: 100%;
}
</style>
......@@ -11,7 +11,8 @@ export default {
components: {
WarehouseApply: () => import('./warehouseApply'), // 验收入库申请
WarehouseExamine: () => import('./warehouseExamine'), // 验收入库审核
JobResponseInExperiment: () => import('./jobResponseInExperiment'), // 理化试验验入库响应
JobResponseInExperiment: () => import('./jobResponseInExperiment'), // 理化试验入库响应
WarehouseInTest: () => import('./warehouseInTest'), // 检验入库响应
OutStorageExpireApply: () => import('./outStorageExpireApply'), // 三期出库申请
OutStorageRecallApply: () => import('./outStorageRecallApply'), // 返厂出库申请
WarehouseConfirm: () => import('./warehouseConfirm'), // 验收入库确认
......
<!--
* @Author: gjn
* @Date: 2023-11-10 10:29:39
* @Description:批量签审_检验入库响应
-->
<template>
<div class="warehouseInTest">
<dee-as-com
ref="applyTable"
class="list-table"
:basic-data=" { selectData,selectionRows }"
:lay-config="{ typeName: 'JobResponseInStorage', layKey: 'batchSign_jobResponseInTest'}"
@selectionChange="selectionChange"
/>
</div>
</template>
<script>
export default {
name: 'WarehouseInTest',
components: {},
props: {
selectData: {
type: Object,
default: () => {}
}
},
data() {
return {
selectionRows: []
}
},
computed: {},
watch: {},
created() {},
mounted() {
this.$bus.$on('refreshBackItem', () => {
this.$nextTick(() => {
this.$bus.$emit('reloadModuleList')
})
})
},
// 组件方法
methods: {
selectionChange(val) {
this.selectionRows = val
}
}
}
</script>
<style lang='scss'>
.warehouseInTest{
width: 100%;
height: 100%;
box-sizing: border-box;
padding:0 4px;
}
</style>
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