Commit 121041ff authored by 李苏's avatar 李苏 💬

库存调整单新增 调整查询条件

parent c7cdb0db
<template>
<BasePage :handleSourceData='handleSourceData' fePage :toolButtonConfig="{
<BasePage :changeQueryParams='changeQueryParams' :handleSourceData='handleSourceData' fePage :toolButtonConfig="{
showExcel:false,
showPrint:false,
showField:true
}" :setFirstCurrent='false' ref="basePage" :power='power' @getRow='getRow' class="min_full" style="height: 100%;"
}" :setFirstCurrent='false' ref="basePage" :power='power' @getRow='getRow' class="min_full" style="height: 100%;"
:config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
......@@ -13,15 +13,15 @@
</template>
<template slot="tabCustom2">
<el-table-column label="查看" width="90" header-align="center" fixed="right">
<template slot-scope="scope">
<el-button style="text-align: center;color: cornflowerblue;width: 100%;"
@click.native.prevent="ckxq(scope.row)" type="text" size="small">
查看详情
</el-button>
</template>
</el-table-column>
</template>
<el-table-column label="查看" width="90" header-align="center" fixed="right">
<template slot-scope="scope">
<el-button style="text-align: center;color: cornflowerblue;width: 100%;"
@click.native.prevent="ckxq(scope.row)" type="text" size="small">
查看详情
</el-button>
</template>
</el-table-column>
</template>
</BasePage>
</template>
......@@ -95,11 +95,11 @@
],
queryParams: [
[{
label: "检验日期",
prop: "start",
span: 6,
type: "date",
value: "",
label: '剩余天数',
prop: 'jyts',
span: 6,
type: 'inputNumber',
value: 1
},
{
label: '物料批号',
......@@ -110,8 +110,8 @@
},
{
label: '物料编码',
prop: 'wlxxInfo',
span: 6,
prop: 'wlxxInfos',
span: 12,
type: 'input',
value: ''
}
......@@ -130,12 +130,19 @@
},
methods: {
handleSourceData(list){
list.forEach((item,index)=>{
item.id=index
changeQueryParams(queryParams) {
let str = queryParams.wlxxInfos
let trimmedStr = str.replace(/\s/g, ''); // 使用正则表达式去除空格
trimmedStr = trimmedStr.replace(/,/s, ',')
let arr = trimmedStr.split(",");
queryParams.wlxxInfos = arr
},
handleSourceData(list) {
list.forEach((item, index) => {
item.id = index
})
},
ckxq(row){
ckxq(row) {
this.$emit('getRow', row)
},
getRow(val) {
......
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