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

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

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