Commit b942e565 authored by xioln's avatar xioln

采购入库申请创建编辑

parent 5e406f18
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
*/ */
<template> <template>
<div class="className"> <div class="className">
<dee-tools :tools="topTools" mode="normal" style="justify-content: end;" /> <!-- <dee-tools :tools="topTools" mode="normal" style="justify-content: end;" /> -->
<dee-form <dee-form
ref="form" ref="form"
label-width="120" label-width="120"
...@@ -254,7 +254,7 @@ export default { ...@@ -254,7 +254,7 @@ export default {
icon: '/icons/components/new/add.png', icon: '/icons/components/new/add.png',
showFun: (row) => { showFun: (row) => {
const value = row.extMaterial ? row.extMaterial.resType2.typeName : '' const value = row.extMaterial ? row.extMaterial.resType2.typeName : ''
if (!row.isRoot || row.parentId || value !== '外购成品') { if (!row.isRoot || row.parentId || value === '外购成品') {
return false return false
} }
return true return true
...@@ -414,7 +414,8 @@ export default { ...@@ -414,7 +414,8 @@ export default {
}, },
methods: { methods: {
back() { back() {
this.$router.push({ this.$store.dispatch('tagsView/delView', this.$route)
this.$router.replace({
path: '/page/86a5fa19-e245-4732-aff6-c48b18e2b5c7', path: '/page/86a5fa19-e245-4732-aff6-c48b18e2b5c7',
query: { title: '采购入库', menuRootAppId: '1626781924331' } query: { title: '采购入库', menuRootAppId: '1626781924331' }
}) })
...@@ -560,12 +561,23 @@ export default { ...@@ -560,12 +561,23 @@ export default {
'fieldName': 'isRoot', 'fieldName': 'isRoot',
'operator': 'EQ', 'operator': 'EQ',
'value': 'true' 'value': 'true'
},
{
'fieldName': 'parentId',
'operator': 'ISNULL'
},
{
'fieldName': 'state',
'operator': 'EQ',
'value': 'Apply'
} }
], ],
'operator': 'AND' 'operator': 'AND'
} }
], ],
'items': [] 'items': [
]
}, },
'openProps': [{ 'name': 'extMaterial', 'openProps': [{ 'name': 'resType2' }, { 'name': 'extUnit' }] }, { 'name': 'extDxSipplier' }, { 'name': 'storageZone' }], 'openProps': [{ 'name': 'extMaterial', 'openProps': [{ 'name': 'resType2' }, { 'name': 'extUnit' }] }, { 'name': 'extDxSipplier' }, { 'name': 'storageZone' }],
'sortItem': [ 'sortItem': [
...@@ -576,7 +588,7 @@ export default { ...@@ -576,7 +588,7 @@ export default {
] ]
} }
post('InStorageRequestItem/search', param).then(res => { post('InStorageRequestItem/treeSearch', param).then(res => {
console.log('res.items.content', res.items.content) console.log('res.items.content', res.items.content)
const data = res.items.content.map(item => { const data = res.items.content.map(item => {
return { return {
...@@ -599,7 +611,7 @@ export default { ...@@ -599,7 +611,7 @@ export default {
console.log('formData', formData) console.log('formData', formData)
const tableDataItem = { const tableDataItem = {
...formData, ...formData,
subEquipment: formData.materialTypeName, // subEquipment: formData.materialTypeName,
// extMaterial: { // extMaterial: {
// resType2: { // resType2: {
// typeCode: formData.materialTypeName, // typeCode: formData.materialTypeName,
...@@ -686,6 +698,7 @@ export default { ...@@ -686,6 +698,7 @@ export default {
// }) // })
post('/InventoryRequest/batch/recursionAdd', param).then(res => { post('/InventoryRequest/batch/recursionAdd', param).then(res => {
this.$utils.showMessageSuccess('保存成功') this.$utils.showMessageSuccess('保存成功')
this.back()
}).catch((err) => { }).catch((err) => {
console.log(err) console.log(err)
}) })
......
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