Commit 1e564b33 authored by xioln's avatar xioln

物料对照表修改

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