Commit 657c9e4c authored by jingnan's avatar jingnan 👀

验收入库bug修改

parent c10d130b
...@@ -455,6 +455,9 @@ export default { ...@@ -455,6 +455,9 @@ export default {
} }
} }
}, },
// { title: '是否虚拟件', key: 'isVirtual', width: '100', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
// return cellValue ? '是' : '否'
// } },
{ title: '创建时间', key: 'createTime', headerAlign: 'center' } { title: '创建时间', key: 'createTime', headerAlign: 'center' }
], ],
tableData: [], tableData: [],
...@@ -840,6 +843,7 @@ export default { ...@@ -840,6 +843,7 @@ export default {
if (item.children) { if (item.children) {
item.children.forEach((child, j) => { item.children.forEach((child, j) => {
child.parentIndex = item.parentIndex + '.' + (j + 1) child.parentIndex = item.parentIndex + '.' + (j + 1)
child.state = ''
}) })
} }
}) })
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<template> <template>
<div :key="refreshKey" class="purchasingwarehousing-process"> <div :key="refreshKey" class="purchasingwarehousing-process">
<dee-as-com <dee-as-com
:lay-config="{ typeName: 'InStoragePurchase', layKey: 'flowView_view' }" :lay-config="topLayConfig"
:basic-data="{ id: basicData.inventoryReqId }" :basic-data="{ id: basicData.inventoryReqId }"
/> />
<div class="sub-title"> <div class="sub-title">
...@@ -121,6 +121,9 @@ export default { ...@@ -121,6 +121,9 @@ export default {
} }
} }
}, },
// { title: '是否虚拟件', key: 'isVirtual', width: '100', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
// return cellValue ? '是' : '否'
// } },
{ {
title: '创建时间', key: 'createTime', align: 'center', headerAlign: 'center', width: '120', formatter: (row, column, cellValue, index) => { title: '创建时间', key: 'createTime', align: 'center', headerAlign: 'center', width: '120', formatter: (row, column, cellValue, index) => {
return row.createTime && row.createTime.split(' ')[0] return row.createTime && row.createTime.split(' ')[0]
...@@ -137,11 +140,22 @@ export default { ...@@ -137,11 +140,22 @@ export default {
pageSize: 20, pageSize: 20,
total: 0, total: 0,
pageSizes: [10, 20, 50, 100] pageSizes: [10, 20, 50, 100]
} },
topLayConfig: { typeName: 'InStoragePurchase', layKey: 'flowView_view' }
} }
}, },
computed: {}, computed: {},
watch: { watch: {
'basicData.state': {
immediate: true,
handler(val) {
if (val === 'Apply') {
this.$set(this.topLayConfig, 'layKey', 'flowtable_edit')
} else {
this.$set(this.topLayConfig, 'layKey', 'flowView_view')
}
}
}
}, },
created() { created() {
// 初始化数据 // 初始化数据
...@@ -240,6 +254,7 @@ export default { ...@@ -240,6 +254,7 @@ export default {
if (item.children) { if (item.children) {
item.children.forEach((child, j) => { item.children.forEach((child, j) => {
child.parentIndex = item.parentIndex + '.' + (j + 1) child.parentIndex = item.parentIndex + '.' + (j + 1)
child.state = ''
}) })
} }
}) })
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<template> <template>
<div class="purchasingwarehousing-process"> <div class="purchasingwarehousing-process">
<dee-as-com <dee-as-com
:lay-config="{ typeName: 'InStoragePurchase', layKey: 'flowView_view' }" :lay-config="topLayConfig"
:basic-data="{ id: basicData.inventoryReqId }" :basic-data="{ id: basicData.inventoryReqId }"
/> />
<div class="sub-title"> <div class="sub-title">
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
@pagination-size-change="changePageSize" @pagination-size-change="changePageSize"
@pagination-current-change="changePageNum" @pagination-current-change="changePageNum"
> >
<dee-tools slot="header" :tools="tools" mode="normal" :collapse="false" /></dee-up-table> <dee-tools v-if="basicData.state === 'In_Confirm'" slot="header" :tools="tools" mode="normal" :collapse="false" /></dee-up-table>
<EditDrawer ref="editDrawer" :basic-data="basicData" /> <EditDrawer ref="editDrawer" :basic-data="basicData" />
<!-- 打印标签 --> <!-- 打印标签 -->
<PrintTag ref="print" :config="printConfig" /> <PrintTag ref="print" :config="printConfig" />
...@@ -47,6 +47,7 @@ export default { ...@@ -47,6 +47,7 @@ export default {
} }
}, },
data() { data() {
const _that = this
return { return {
tableData: [], tableData: [],
optionsTree: { optionsTree: {
...@@ -77,10 +78,11 @@ export default { ...@@ -77,10 +78,11 @@ export default {
}, },
selections: [], selections: [],
selectable: (row, index) => { selectable: (row, index) => {
if (row.isRoot && row.state === 'In_Confirm') { if (row.isRoot && row.state === 'In_Confirm' && _that.basicData.state === 'In_Confirm') {
return true return true
} }
} },
topLayConfig: { typeName: 'InStoragePurchase', layKey: 'flowView_view' }
} }
}, },
...@@ -223,6 +225,9 @@ export default { ...@@ -223,6 +225,9 @@ export default {
} }
} }
}, },
// { title: '是否虚拟件', key: 'isVirtual', width: '100', headerAlign: 'center', formatter: (row, column, cellValue, index) => {
// return cellValue ? '是' : '否'
// } },
{ {
title: '创建时间', key: 'createTime', align: 'center', headerAlign: 'center', width: '120', formatter: (row, column, cellValue, index) => { title: '创建时间', key: 'createTime', align: 'center', headerAlign: 'center', width: '120', formatter: (row, column, cellValue, index) => {
return row.createTime && row.createTime.split(' ')[0] return row.createTime && row.createTime.split(' ')[0]
...@@ -237,6 +242,16 @@ export default { ...@@ -237,6 +242,16 @@ export default {
} }
}, },
watch: { watch: {
'basicData.state': {
immediate: true,
handler(val) {
if (val === 'Apply') {
this.$set(this.topLayConfig, 'layKey', 'flowtable_edit')
} else {
this.$set(this.topLayConfig, 'layKey', 'flowView_view')
}
}
}
}, },
created() { created() {
// 初始化数据 // 初始化数据
...@@ -374,6 +389,7 @@ export default { ...@@ -374,6 +389,7 @@ export default {
if (item.children) { if (item.children) {
item.children.forEach((child, j) => { item.children.forEach((child, j) => {
child.parentIndex = item.parentIndex + '.' + (j + 1) child.parentIndex = item.parentIndex + '.' + (j + 1)
child.state = ''
const targetInventory = this.$utils.getTargetJobResponses(child, 'JobResponseInEntry') const targetInventory = this.$utils.getTargetJobResponses(child, 'JobResponseInEntry')
if (targetInventory) { if (targetInventory) {
child.exWorkUnitName = targetInventory.extWorkUnit && targetInventory.extWorkUnit.extcode || '' child.exWorkUnitName = targetInventory.extWorkUnit && targetInventory.extWorkUnit.extcode || ''
......
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