Commit 062b31b9 authored by jingnan's avatar jingnan 👀

采购入库及返厂入库接收仓库接口修改

parent 867cecb8
......@@ -6,7 +6,7 @@
*/
<template>
<div class="storageDetails-create">
<dee-dialog :dialog-visible="dialogVisibleDetails" title="采购入库申请创建" width="90%" @handleClose="handleClose">
<dee-dialog :dialog-visible="dialogVisibleDetails" title="返厂入库明细编辑" width="90%" @handleClose="handleClose">
<dee-form
ref="form"
:form="form"
......@@ -28,7 +28,7 @@
import { post } from '@/utils/http'
export default {
componentName: '采购入库申请创建',
// componentName: '采购入库申请创建',
name: 'StorageDetailsCreate', // name写在组件的最前方,自定义组件为必填
components: {},
props: {
......@@ -230,6 +230,13 @@ export default {
message: '请填写表单信息',
trigger: ['blur', 'change']
}
],
storageZone: [
{
required: true,
message: '请填写表单信息',
trigger: ['blur', 'change']
}
]
// purchaseAmount: [{ required: true, message: '请填写表单信息', trigger: ['blur', 'change'] }],
},
......@@ -1772,45 +1779,41 @@ export default {
},
// 默认带出接收仓库
defaultStorage() {
post(
`/ExtDxProductWorkCenter/search`,
{
'pageFrom': 1,
'pageSize': 9999,
'searchItems': {
'children': [
const params = {
'pageFrom': 1,
'pageSize': 9999,
'searchItems': {
'children': [
{
'items': [{
'fieldName': 'targetId',
'operator': 'EQ',
'value': this.basicData.materialTypeId || ''
},
{
'items': [
{
'fieldName': 'extDxProductArea.id',
'operator': 'EQ',
'value': this.basicData.extDxProductAreaId || ''
}
],
'operator': 'AND'
'fieldName': 'source.extDxProductAreaId',
'operator': 'EQ',
'value': this.basicData.extDxProductAreaId || ''
}
],
'items': []
},
'openProps': [],
'sortItem': [
{
'fieldName': 'modifyTime',
'sortOrder': 'desc'
],
'operator': 'AND'
}
]
],
'items': [],
'operator': 'AND'
},
)
'openProps': [{ 'name': 'source' }]
}
post(`ExtCenterResourceTypeLink/search`, params)
.then((res) => {
this.form.storageZone =
res.items && res.items.content.length ? res.items.content[0].id : ''
const STORAGE = this.formFileds[0].data.find(
(item) => item.key === 'storageZone'
)
STORAGE.component.options = res.items.content.map((item) => {
return {
label: item.extname,
value: item.id
label: item.source && item.source.extname,
value: item.source && item.source.id
}
})
})
......
......@@ -230,6 +230,13 @@ export default {
message: '请填写表单信息',
trigger: ['blur', 'change']
}
],
storageZone: [
{
required: true,
message: '请填写表单信息',
trigger: ['blur', 'change']
}
]
// purchaseAmount: [{ required: true, message: '请填写表单信息', trigger: ['blur', 'change'] }],
},
......@@ -1769,45 +1776,41 @@ export default {
},
// 默认带出接收仓库
defaultStorage() {
post(
`/ExtDxProductWorkCenter/search`,
{
'pageFrom': 1,
'pageSize': 9999,
'searchItems': {
'children': [
const params = {
'pageFrom': 1,
'pageSize': 9999,
'searchItems': {
'children': [
{
'items': [{
'fieldName': 'targetId',
'operator': 'EQ',
'value': this.basicData.materialTypeId || ''
},
{
'items': [
{
'fieldName': 'extDxProductArea.id',
'operator': 'EQ',
'value': this.basicData.extDxProductAreaId || ''
}
],
'operator': 'AND'
'fieldName': 'source.extDxProductAreaId',
'operator': 'EQ',
'value': this.basicData.extDxProductAreaId || ''
}
],
'items': []
},
'openProps': [],
'sortItem': [
{
'fieldName': 'modifyTime',
'sortOrder': 'desc'
],
'operator': 'AND'
}
]
],
'items': [],
'operator': 'AND'
},
)
'openProps': [{ 'name': 'source' }]
}
post(`ExtCenterResourceTypeLink/search`, params)
.then((res) => {
this.form.storageZone =
res.items && res.items.content.length ? res.items.content[0].id : ''
const STORAGE = this.formFileds[0].data.find(
(item) => item.key === 'storageZone'
)
STORAGE.component.options = res.items.content.map((item) => {
return {
label: item.extname,
value: item.id
label: item.source && item.source.extname,
value: item.source && item.source.id
}
})
})
......
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