Commit 1e564b33 authored by xioln's avatar xioln

物料对照表修改

parent d3bf1864
...@@ -6,13 +6,19 @@ ...@@ -6,13 +6,19 @@
*/ */
<template> <template>
<div class="materialReferenceLink-table"> <div class="materialReferenceLink-table">
<dee-form <dee-as-com
ref="searchForm"
:form="searchForm"
:lay-config="{ typeName: 'MaterialReferenceLink', layKey: 'search' }"
@searchEvent="initData"
/>
<!-- <dee-form
:form="searchForm" :form="searchForm"
:form-data="searchFormData" :form-data="searchFormData"
:form-buttons="formButtons" :form-buttons="formButtons"
:form-btn-position="'center'" :form-btn-position="'center'"
@on-submit="initData(searchForm)" @on-submit="initData(searchForm)"
/> /> -->
<dee-up-table <dee-up-table
:columns="tableColumns" :columns="tableColumns"
:data="tableData" :data="tableData"
...@@ -167,42 +173,15 @@ export default { ...@@ -167,42 +173,15 @@ export default {
}, },
methods: { methods: {
initData(searchForm) { initData(searchForm) {
console.log(searchForm)
// 初始化数据 // 初始化数据
const params = { const params = {
'pageFrom': this.pagination.currentPage, 'pageFrom': this.pagination.currentPage,
'pageSize': this.pagination.pageSize, 'pageSize': this.pagination.pageSize,
'searchItems': { 'searchItems': { }
'children': [],
'items': []
}
} }
if (searchForm && searchForm.rescodeA) { if (searchForm) {
params.searchItems.children = [ params.searchItems = searchForm
{
'items': [
{
'fieldName': 'source.resCode',
'operator': 'LIKE',
'value': searchForm.rescodeA
}
],
'operator': 'OR'
}
]
}
if (searchForm && searchForm.rescodeB) {
params.searchItems.children = [
{
'items': [
{
'fieldName': 'target.resCode',
'operator': 'LIKE',
'value': searchForm.rescodeB
}
],
'operator': 'OR'
}
]
} }
params.openProps = [{ name: 'target' }, { name: 'source' }] params.openProps = [{ name: 'target' }, { name: 'source' }]
this.$api.searchApi('MaterialReferenceLink', params).then(res => { this.$api.searchApi('MaterialReferenceLink', params).then(res => {
......
...@@ -154,6 +154,6 @@ export default { ...@@ -154,6 +154,6 @@ export default {
<style lang='scss'> <style lang='scss'>
#SearchSorties { #SearchSorties {
width:450px; // width:450px;
} }
</style> </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