Commit ff3200a7 authored by 周毅's avatar 周毅

调整批号锁定页面

parent 972e7245
<template> <template>
<BasePage ref="basePage" :power='power' class="min_full" :config="config"> <BasePage ref="basePage" :changeQueryParams='changeQueryParams'power='power' class="min_full" :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Ph :app='ctx.basePage' v-if="ctx.basePage.showDialog==true" /> <Ph :app='ctx.basePage' v-if="ctx.basePage.showDialog==true" />
...@@ -16,7 +16,10 @@ ...@@ -16,7 +16,10 @@
<script> <script>
import Edit from './edit.vue' import Edit from './edit.vue'
import Ph from './ph.vue' import Ph from './ph.vue'
import wlsx from 'common/src/mixin/wlsx.js'
import wlphsx from 'common/src/mixin/wlphsx.js'
export default { export default {
mixins:[wlphsx,wlsx],
data() { data() {
return { return {
power: { power: {
...@@ -34,7 +37,8 @@ ...@@ -34,7 +37,8 @@
queryDetail: true, queryDetail: true,
/* 基本配置*/ /* 基本配置*/
url: 'lxyl/zlgl/uLothold', url: 'lxyl/zlgl/uLothold',
tableTitle: [{ tableTitle: [
{
title: "锁定状态", title: "锁定状态",
field: "zt", field: "zt",
width: 80, width: 80,
...@@ -59,6 +63,21 @@ ...@@ -59,6 +63,21 @@
field: "wlph", field: "wlph",
width: 140 width: 140
}, },
{
title: "制令号",
field: "zlh",
width: 140
},
{
title: "物料编码",
field: "wlxxCode",
width: 140
},
{
title: "物料名称",
field: "wlxxName",
width: 140
},
{ {
title: "锁定说明", title: "锁定说明",
field: "sdsm", field: "sdsm",
...@@ -80,20 +99,22 @@ ...@@ -80,20 +99,22 @@
}, },
], ],
queryParams: [ queryParams: [
[{ [
label: '物料',
prop: 'wlxxInfo',
span: 5,
type: 'input',
value: ''
},
{ {
label: '批号', label: '批号',
prop: 'wlph', prop: 'wlph',
span: 5, span: 6,
type: 'input', type: 'input',
value: '' value: ''
}, },
{
label: '制令号',
prop: 'zlhInfos',
span: 18,
type: 'input',
},
],
[
{ {
label: '业务日期', label: '业务日期',
startProp: "start", startProp: "start",
...@@ -151,7 +172,14 @@ ...@@ -151,7 +172,14 @@
}, },
getRow(val) { getRow(val) {
this.$emit('getRow', val) this.$emit('getRow', val)
} },
changeQueryParams(queryParams) {
let str = queryParams.zlhInfos
let trimmedStr = str.replace(/\s/g, ''); // 使用正则表达式去除空格
trimmedStr = trimmedStr.replace(/,/s, ',')
let arr = trimmedStr.split(",");
queryParams.zlhInfos = arr
},
}, },
components: { components: {
Edit, Edit,
......
...@@ -25,10 +25,12 @@ ...@@ -25,10 +25,12 @@
</template> </template>
<script> <script>
import wlsx from 'common/src/mixin/wlsx.js'
import wlphsx from 'common/src/mixin/wlphsx.js'
export default { export default {
mixins:[wlphsx,wlsx],
data() { data() {
return { return {
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'lxyl/zlgl/uLothold/queryWlphForHold', url: 'lxyl/zlgl/uLothold/queryWlphForHold',
...@@ -101,7 +103,6 @@ ...@@ -101,7 +103,6 @@
trimmedStr = trimmedStr.replace(/,/s, ',') trimmedStr = trimmedStr.replace(/,/s, ',')
let arr = trimmedStr.split(","); let arr = trimmedStr.split(",");
queryParams.zlhInfos = arr queryParams.zlhInfos = arr
console.log(queryParams.zlhInfos)
}, },
}, },
......
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