优化及修正内容

This commit is contained in:
zxx 2023-11-17 15:44:34 +08:00
parent ca5b4958bf
commit 02c805a655
4 changed files with 100 additions and 65 deletions

View File

@ -49,7 +49,14 @@ export default {
props: { //
readonly: Boolean,
params: Object,
value: [Array, String, Object]
value: [Array, String, Object],
// name
searchFieldNames: {
type: Array,
default: function () {
return ['name'];
}
}
},
data() {
return {
@ -80,7 +87,6 @@ export default {
treeConfig: null,
modalWidth: 800, //
modalHeight: 600, //
searchFieldNames: ['name'], //
tablePage: { //
total: 0, //
currentPage: 1, //
@ -89,6 +95,7 @@ export default {
}
},
created() { //
this.load() //
this.heightInit(); //

View File

@ -23,15 +23,6 @@
</template>
</vxe-form>
<!-- 基础信息 End -->
</a-tab-pane>
<a-tab-pane key="2" tab="料品自定义属性">
<!-- 料品属性 Start -->
<vxe-form :data="options.formOptions2.data" ref="xForm2" :title-width="options.formOptions2.titleWidth"
:title-align="options.formOptions2.titleAlign" :rules="options.formOptions2.rules"
@ -39,6 +30,16 @@
</vxe-form>
<!-- 料品属性 End -->
</a-tab-pane>
<!-- <a-tab-pane key="2" tab="料品自定义属性">-->
<!-- -->
<!-- </a-tab-pane>-->
</a-tabs>
@ -244,11 +245,16 @@ export default {
textField: "name",
listdataFieldName: 'MesEnumValue',
actionParams: {
search_rules: [
search_rules_enum: [
{
column: "code",
column: "type",
mode: "=",
value: "SYS001"
value: "0"
},
{
column: "sys_name",
mode: "=",
value: "color"
}
]
},
@ -287,11 +293,16 @@ export default {
textField: "name",
listdataFieldName: 'MesEnumValue',
actionParams: {
search_rules: [
search_rules_enum: [
{
column: "code",
column: "type",
mode: "=",
value: "SYS006"
value: "0"
},
{
column: "sys_name",
mode: "=",
value: "face"
}
]
},
@ -311,11 +322,16 @@ export default {
textField: "name",
listdataFieldName: 'MesEnumValue',
actionParams: {
search_rules: [
search_rules_enum: [
{
column: "code",
column: "type",
mode: "=",
value: "SYS003"
value: "0"
},
{
column: "sys_name",
mode: "=",
value: "molding"
}
]
},
@ -337,11 +353,16 @@ export default {
textField: "name",
listdataFieldName: 'MesEnumValue',
actionParams: {
search_rules: [
search_rules_enum: [
{
column: "code",
column: "type",
mode: "=",
value: "SYS004"
value: "0"
},
{
column: "sys_name",
mode: "=",
value: "production"
}
]
},
@ -365,11 +386,16 @@ export default {
textField: "name",
listdataFieldName: 'MesEnumValue',
actionParams: {
search_rules: [
search_rules_enum: [
{
column: "code",
column: "type",
mode: "=",
value: "SYS005"
value: "0"
},
{
column: "sys_name",
mode: "=",
value: "soil"
}
]
},

View File

@ -129,7 +129,7 @@ export default {
{
title: '仓库', span: 12,
title: '仓库', span: 16,
field: 'warehouse_detail',
dataRule: {
fromField: "id",
@ -137,6 +137,7 @@ export default {
},
itemRender: {
name: 'MkFormDataSelector', props: {
searchFieldNames: ["warehouse_title", "code"],
params: {
dataType: "object",
valueField: "id",
@ -162,7 +163,7 @@ export default {
},
{
title: '仓位', span: 12,
title: '仓位', span: 16,
field: 'warehouse_pos_detail',
dataRule: {
fromField: "id",
@ -170,6 +171,7 @@ export default {
},
itemRender: {
name: 'MkFormDataSelector', props: {
searchFieldNames: ["warehouse_id", "code"],
params: {
dataType: "object",
valueField: "id",
@ -197,7 +199,7 @@ export default {
},
{
title: '料品', span: 12,
title: '料品', span: 16,
field: 'product_detail',
dataRule: {
fromField: "id",
@ -219,7 +221,7 @@ export default {
{ field: 'stock', dataRule: { type: "number" }, title: '库存数量', span: 12, itemRender: { name: '$input', props: { type: 'number' } } },
// { field: 'stock', dataRule: { type: "number" }, title: '', span: 12, itemRender: { name: '$input', props: { type: 'number' } } },
]
},

View File

@ -1,5 +1,5 @@
<template>
<basic-page-list :desc="desc" :options="pageOptions">
<basic-page-list :desc="desc" :options="pageOptions" ref="List">
<template v-slot:column1="{ row }">
<a-button class="in" type="primary" @click="stockIn(row.id)">入库</a-button>
@ -164,7 +164,7 @@ export default {
dataId: id,
callback: ({ success }) => {
if (success) {
this.$refs.xGrid.commitProxy('query')
this.$refs.List.gridReload()
}
}
@ -188,7 +188,7 @@ export default {
dataId: id,
callback: ({ success }) => {
if (success) {
this.$refs.xGrid.commitProxy('query')
this.$refs.List.gridReload()
}
}