优化及修正内容
This commit is contained in:
parent
ca5b4958bf
commit
02c805a655
|
|
@ -49,7 +49,14 @@ export default {
|
||||||
props: { // 组件属性
|
props: { // 组件属性
|
||||||
readonly: Boolean,
|
readonly: Boolean,
|
||||||
params: Object,
|
params: Object,
|
||||||
value: [Array, String, Object]
|
value: [Array, String, Object],
|
||||||
|
// 搜索字段 默认为name
|
||||||
|
searchFieldNames: {
|
||||||
|
type: Array,
|
||||||
|
default: function () {
|
||||||
|
return ['name'];
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -80,7 +87,6 @@ export default {
|
||||||
treeConfig: null,
|
treeConfig: null,
|
||||||
modalWidth: 800, // 弹出框宽度
|
modalWidth: 800, // 弹出框宽度
|
||||||
modalHeight: 600, // 弹出框高度
|
modalHeight: 600, // 弹出框高度
|
||||||
searchFieldNames: ['name'], // 搜索字段
|
|
||||||
tablePage: { // 表格分页
|
tablePage: { // 表格分页
|
||||||
total: 0, // 总数
|
total: 0, // 总数
|
||||||
currentPage: 1, // 当前页
|
currentPage: 1, // 当前页
|
||||||
|
|
@ -89,6 +95,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() { // 创建
|
created() { // 创建
|
||||||
|
|
||||||
this.load() // 加载
|
this.load() // 加载
|
||||||
this.heightInit(); // 高度初始化
|
this.heightInit(); // 高度初始化
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,15 +23,6 @@
|
||||||
</template>
|
</template>
|
||||||
</vxe-form>
|
</vxe-form>
|
||||||
<!-- 基础信息 End -->
|
<!-- 基础信息 End -->
|
||||||
</a-tab-pane>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a-tab-pane key="2" tab="料品自定义属性">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- 料品属性 Start -->
|
<!-- 料品属性 Start -->
|
||||||
<vxe-form :data="options.formOptions2.data" ref="xForm2" :title-width="options.formOptions2.titleWidth"
|
<vxe-form :data="options.formOptions2.data" ref="xForm2" :title-width="options.formOptions2.titleWidth"
|
||||||
:title-align="options.formOptions2.titleAlign" :rules="options.formOptions2.rules"
|
:title-align="options.formOptions2.titleAlign" :rules="options.formOptions2.rules"
|
||||||
|
|
@ -39,6 +30,16 @@
|
||||||
</vxe-form>
|
</vxe-form>
|
||||||
<!-- 料品属性 End -->
|
<!-- 料品属性 End -->
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <a-tab-pane key="2" tab="料品自定义属性">-->
|
||||||
|
<!-- -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- </a-tab-pane>-->
|
||||||
</a-tabs>
|
</a-tabs>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -244,11 +245,16 @@ export default {
|
||||||
textField: "name",
|
textField: "name",
|
||||||
listdataFieldName: 'MesEnumValue',
|
listdataFieldName: 'MesEnumValue',
|
||||||
actionParams: {
|
actionParams: {
|
||||||
search_rules: [
|
search_rules_enum: [
|
||||||
{
|
{
|
||||||
column: "code",
|
column: "type",
|
||||||
mode: "=",
|
mode: "=",
|
||||||
value: "SYS001"
|
value: "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
column: "sys_name",
|
||||||
|
mode: "=",
|
||||||
|
value: "color"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
@ -287,11 +293,16 @@ export default {
|
||||||
textField: "name",
|
textField: "name",
|
||||||
listdataFieldName: 'MesEnumValue',
|
listdataFieldName: 'MesEnumValue',
|
||||||
actionParams: {
|
actionParams: {
|
||||||
search_rules: [
|
search_rules_enum: [
|
||||||
{
|
{
|
||||||
column: "code",
|
column: "type",
|
||||||
mode: "=",
|
mode: "=",
|
||||||
value: "SYS006"
|
value: "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
column: "sys_name",
|
||||||
|
mode: "=",
|
||||||
|
value: "face"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
@ -311,11 +322,16 @@ export default {
|
||||||
textField: "name",
|
textField: "name",
|
||||||
listdataFieldName: 'MesEnumValue',
|
listdataFieldName: 'MesEnumValue',
|
||||||
actionParams: {
|
actionParams: {
|
||||||
search_rules: [
|
search_rules_enum: [
|
||||||
{
|
{
|
||||||
column: "code",
|
column: "type",
|
||||||
mode: "=",
|
mode: "=",
|
||||||
value: "SYS003"
|
value: "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
column: "sys_name",
|
||||||
|
mode: "=",
|
||||||
|
value: "molding"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
@ -337,11 +353,16 @@ export default {
|
||||||
textField: "name",
|
textField: "name",
|
||||||
listdataFieldName: 'MesEnumValue',
|
listdataFieldName: 'MesEnumValue',
|
||||||
actionParams: {
|
actionParams: {
|
||||||
search_rules: [
|
search_rules_enum: [
|
||||||
{
|
{
|
||||||
column: "code",
|
column: "type",
|
||||||
mode: "=",
|
mode: "=",
|
||||||
value: "SYS004"
|
value: "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
column: "sys_name",
|
||||||
|
mode: "=",
|
||||||
|
value: "production"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
@ -365,11 +386,16 @@ export default {
|
||||||
textField: "name",
|
textField: "name",
|
||||||
listdataFieldName: 'MesEnumValue',
|
listdataFieldName: 'MesEnumValue',
|
||||||
actionParams: {
|
actionParams: {
|
||||||
search_rules: [
|
search_rules_enum: [
|
||||||
{
|
{
|
||||||
column: "code",
|
column: "type",
|
||||||
mode: "=",
|
mode: "=",
|
||||||
value: "SYS005"
|
value: "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
column: "sys_name",
|
||||||
|
mode: "=",
|
||||||
|
value: "soil"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,7 @@ export default {
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
title: '仓库', span: 12,
|
title: '仓库', span: 16,
|
||||||
field: 'warehouse_detail',
|
field: 'warehouse_detail',
|
||||||
dataRule: {
|
dataRule: {
|
||||||
fromField: "id",
|
fromField: "id",
|
||||||
|
|
@ -137,6 +137,7 @@ export default {
|
||||||
},
|
},
|
||||||
itemRender: {
|
itemRender: {
|
||||||
name: 'MkFormDataSelector', props: {
|
name: 'MkFormDataSelector', props: {
|
||||||
|
searchFieldNames: ["warehouse_title", "code"],
|
||||||
params: {
|
params: {
|
||||||
dataType: "object",
|
dataType: "object",
|
||||||
valueField: "id",
|
valueField: "id",
|
||||||
|
|
@ -162,7 +163,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
title: '仓位', span: 12,
|
title: '仓位', span: 16,
|
||||||
field: 'warehouse_pos_detail',
|
field: 'warehouse_pos_detail',
|
||||||
dataRule: {
|
dataRule: {
|
||||||
fromField: "id",
|
fromField: "id",
|
||||||
|
|
@ -170,6 +171,7 @@ export default {
|
||||||
},
|
},
|
||||||
itemRender: {
|
itemRender: {
|
||||||
name: 'MkFormDataSelector', props: {
|
name: 'MkFormDataSelector', props: {
|
||||||
|
searchFieldNames: ["warehouse_id", "code"],
|
||||||
params: {
|
params: {
|
||||||
dataType: "object",
|
dataType: "object",
|
||||||
valueField: "id",
|
valueField: "id",
|
||||||
|
|
@ -197,7 +199,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
title: '料品', span: 12,
|
title: '料品', span: 16,
|
||||||
field: 'product_detail',
|
field: 'product_detail',
|
||||||
dataRule: {
|
dataRule: {
|
||||||
fromField: "id",
|
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' } } },
|
||||||
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<basic-page-list :desc="desc" :options="pageOptions">
|
<basic-page-list :desc="desc" :options="pageOptions" ref="List">
|
||||||
|
|
||||||
<template v-slot:column1="{ row }">
|
<template v-slot:column1="{ row }">
|
||||||
<a-button class="in" type="primary" @click="stockIn(row.id)">入库</a-button>
|
<a-button class="in" type="primary" @click="stockIn(row.id)">入库</a-button>
|
||||||
|
|
@ -164,7 +164,7 @@ export default {
|
||||||
dataId: id,
|
dataId: id,
|
||||||
callback: ({ success }) => {
|
callback: ({ success }) => {
|
||||||
if (success) {
|
if (success) {
|
||||||
this.$refs.xGrid.commitProxy('query')
|
this.$refs.List.gridReload()
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -188,7 +188,7 @@ export default {
|
||||||
dataId: id,
|
dataId: id,
|
||||||
callback: ({ success }) => {
|
callback: ({ success }) => {
|
||||||
if (success) {
|
if (success) {
|
||||||
this.$refs.xGrid.commitProxy('query')
|
this.$refs.List.gridReload()
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue