Commit 0e4db0e8 authored by 李苏's avatar 李苏 💬

调拨出库按库存开 前端分页 外加参数调整

parent 3dc9bc9a
<template> <template>
<DefaultDialog :app='app'> <DefaultDialog :app='app'>
<div slot="form" style="display: flex;height: 70vh;"> <div slot="form" style="display: flex;height: 70vh;">
<BasePage :changeQueryParams='changeQueryParams' :toolButtonConfig="{ <BasePage fePage :changeQueryParams='changeQueryParams' :toolButtonConfig="{
showExcel:false, showExcel:false,
showPrint:false, showPrint:false,
showField:true showField:true
...@@ -139,17 +139,27 @@ ...@@ -139,17 +139,27 @@
], ],
queryParams: [ queryParams: [
[{ [
{
label: '物料信息', label: '物料信息',
prop: 'condition', prop: 'wlxxInfos',
span: 6, span: 12,
type: 'input', type: 'input',
value: '' value: ''
}, },
{
label: "容器",
prop: 'rqInfos',
span: 12,
type: 'input',
value: ''
}
],
[
{ {
"label": "仓库", "label": "仓库",
"prop": "ckid", "prop": "ckid",
"span": 6, "span": 12,
"type": "RelSelect", "type": "RelSelect",
"value": "", "value": "",
"typeConfig": { "typeConfig": {
...@@ -159,13 +169,6 @@ ...@@ -159,13 +169,6 @@
"label": "name" "label": "name"
} }
} }
},
{
label: "容器",
prop: 'rqInfos',
span: 12,
type: 'input',
value: ''
} }
] ]
], ],
...@@ -178,13 +181,20 @@ ...@@ -178,13 +181,20 @@
} }
}, },
methods: { methods: {
changeQueryParams(queryParams){ changeQueryParams(queryParams){
let str=queryParams.rqInfos let str=queryParams.rqInfos
let trimmedStr = str.replace(/\s/g, ''); // 使用正则表达式去除空格 let trimmedStr = str.replace(/\s/g, ''); // 使用正则表达式去除空格
trimmedStr=trimmedStr.replace(/,/s, ',') trimmedStr=trimmedStr.replace(/,/s, ',')
let arr = trimmedStr.split(","); let arr = trimmedStr.split(",");
queryParams.rqInfos=arr queryParams.rqInfos=arr
console.log(queryParams.rqInfos) /* */
let str2=queryParams.wlxxInfos
let trimmedStr2 = str2.replace(/\s/g, ''); // 使用正则表达式去除空格
trimmedStr2=trimmedStr2.replace(/,/s, ',')
let arr2 = trimmedStr2.split(",");
queryParams.wlxxInfos=arr2
}, },
save(){ save(){
let list=this.$refs.basePage.$refs.TablePager.selectedList||[] let list=this.$refs.basePage.$refs.TablePager.selectedList||[]
......
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