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
...@@ -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