Commit 3569815a authored by xioln's avatar xioln

入库程修改

parent eefb8389
...@@ -7,17 +7,19 @@ ...@@ -7,17 +7,19 @@
<template> <template>
<div class="Chemical-test-process"> <div class="Chemical-test-process">
<dee-as-com <dee-as-com
v-if="basicData" v-if="data"
refs="outerCasing" refs="outerCasing"
:lay-config="{ :lay-config="{
typeName: 'InStorageRequestItem', typeName: 'InStorageRequestItem',
layKey: '1c4983a2-6f51-49e4-95ee-2f5506b8e217' layKey: '1c4983a2-6f51-49e4-95ee-2f5506b8e217'
}" }"
:basic-data="basicData" :basic-data="data"
/> />
</div> </div>
</template> </template>
<script> <script>
import { post } from '@/utils/http'
export default { export default {
componentName: '理化检验流程', componentName: '理化检验流程',
name: 'ChemicalTestProcess', name: 'ChemicalTestProcess',
...@@ -30,16 +32,71 @@ export default { ...@@ -30,16 +32,71 @@ export default {
}, },
data() { data() {
return { return {
// data: { 'reportNo': bindForm.reportNo, 'isPass': bindForm.isPass, 'isDestroy': bindForm.isDestroy, 'experimentAmount':bindForm.experimentAmount, 'jobOrder': { 'purchaseUnit': { 'unitName': bindForm.jobOrder.purchaseUnit.purchaseUnit } }, 'dxType': 'JobResponseInStorage', 'operator': 'ADD' }
data: null
} }
}, },
computed: {}, computed: {},
created() { created() {
// 初始化数据 // 初始化数据
console.log('理化检验流程', this.basicData) console.log('理化检验流程', this.basicData)
console.log('理化检验流程1', this.form)
this.getFrom(this.basicData.id)
}, },
methods: { methods: {
getFrom(id) {
const param = {
'pageFrom': 1,
'pageSize': 10,
'searchItems': {
'children': [
{
'items': [
{
'fieldName': 'jobOrderId',
'operator': 'EQ',
'value': id
},
{
'fieldName': 'subTypeName',
'operator': 'EQ',
'value': 'JobResponseInExperment'
}
],
'operator': 'AND'
}
],
'items': [],
'operator': 'AND'
},
'openProps': [
{
'name': 'objFileLinks',
'openProps': [
{ 'name': 'target' }
]
},
{
'name': 'jobOrder',
'openProps': [
{ 'name': 'purchaseUnit' }
]
}
],
'sortItem': [
{
'fieldName': 'modifyTime',
'sortOrder': 'desc'
}
]
}
post('JobResponseInStorage/search', param).then(res => {
this.data = res.items.content[0]
}).catch((err) => {
console.log(err)
})
}
} }
} }
</script> </script>
<style lang='scss'> <style lang='scss'></style>
</style>
...@@ -443,11 +443,13 @@ export default { ...@@ -443,11 +443,13 @@ export default {
}, },
methods: { methods: {
back() { back() {
this.$store.dispatch('tagsView/delView', this.$route) setTimeout(() => {
this.$router.replace({ this.$store.dispatch('tagsView/delView', this.$route)
path: '/page/86a5fa19-e245-4732-aff6-c48b18e2b5c7', this.$router.replace({
query: { title: '采购入库', menuRootAppId: '1626781924331' } path: '/page/86a5fa19-e245-4732-aff6-c48b18e2b5c7',
}) query: { title: '采购入库', menuRootAppId: '1626781924331' }
})
}, 2000)
}, },
initData() { initData() {
this.getInventoryRequest() this.getInventoryRequest()
......
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