Commit dde6c3a9 authored by 李苏's avatar 李苏 💬

重写auxput改为动态传递的库存组件

parent d6a1ad70
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
</RelDialog> </RelDialog>
</template> </template>
<script> <script>
import ph from './ph'
import { import {
toFixed, toFixed,
doRkdChange doRkdChange
...@@ -39,9 +40,9 @@ ...@@ -39,9 +40,9 @@
mixins: [editMixin, editMixin_expand], mixins: [editMixin, editMixin_expand],
methods: { methods: {
add() { add() {
if(!this.form.wlph){ if (!this.form.wlph) {
this.$warning('请先选择物料批号') this.$warning('请先选择物料批号')
}else{ } else {
this.showDialog = true this.showDialog = true
} }
...@@ -93,7 +94,10 @@ ...@@ -93,7 +94,10 @@
span: 12, span: 12,
type: 'AuxInput', type: 'AuxInput',
typeConfig: { typeConfig: {
code: 'LXYLKCPH', isRequest: false,
code: true,
dynamic: true,
component: ph,
label: 'wlph', label: 'wlph',
transform: { transform: {
value: 'wlph', value: 'wlph',
......
<template>
<BasePage :power='{
add: false,
copy: false,
/* 手动控制删除 */
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
}' ref="basePage" class="min_full" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
</template>
</BasePage>
</template>
<script>
export default {
data() {
return {
config: {
/* 基本配置*/
url: 'lxyl/zlgl/uLothold/queryWlphForHold',
queryUrl:'lxyl/zlgl/uLothold/queryWlphForHold',
// queryUrl:'kc/wlph',
tableTitle: [
{
title: "物料编码",
field: "wlxxCode",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 140
},
{
title: "物料名称",
field: "wlxxName",
width: 140
},
{
title: "物料规格",
field: "wlxxGg",
width: 140
},
{
title: "数量",
field: "kcsl",
width: 140
}
],
queryParams: [
[{
label: '物料信息',
prop: 'wlxxInfo',
span: 8,
type: 'input',
},
{
label: '物料批号',
prop: 'wlph',
span: 8,
type: 'input',
}
]
],
/* 默认启停用 */
showqt:false,
}
}
},
methods: {
},
components: {
}
}
</script>
<style>
.font-success{
color: green;
}
.font-fail{
color: red;
}
</style>
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