This commit is contained in:
parent
591c91363a
commit
f00bb5f4a4
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
<vxe-form :data="formOptions.data" ref="xForm" :title-width="formOptions.titleWidth"
|
<vxe-form :data="formOptions.data" ref="xForm" :title-width="formOptions.titleWidth"
|
||||||
:title-align="formOptions.titleAlign" :rules="formOptions.rules" :items="formOptions.items" titleColon>
|
:title-align="formOptions.titleAlign" :rules="formOptions.rules" :items="formOptions.items" titleColon>
|
||||||
<template #myregion="{}">
|
<template #myregion="{ }">
|
||||||
<a-input-search placeholder="input search text" enter-button />
|
<a-input-search placeholder="input search text" enter-button />
|
||||||
</template>
|
</template>
|
||||||
</vxe-form>
|
</vxe-form>
|
||||||
|
|
@ -123,7 +123,8 @@ export default {
|
||||||
url: this.actions.get,
|
url: this.actions.get,
|
||||||
loading: "加载中...",
|
loading: "加载中...",
|
||||||
data: {
|
data: {
|
||||||
id: this.dataId
|
id: this.dataId,
|
||||||
|
target_uid: this.dataId
|
||||||
}
|
}
|
||||||
}).then(a => {
|
}).then(a => {
|
||||||
this.formOptions.data = a.data.BaseAdmin;
|
this.formOptions.data = a.data.BaseAdmin;
|
||||||
|
|
@ -144,7 +145,7 @@ export default {
|
||||||
|
|
||||||
let save = () => {
|
let save = () => {
|
||||||
let action = this.pageMode == "add" ? this.actions.create : this.actions.update;
|
let action = this.pageMode == "add" ? this.actions.create : this.actions.update;
|
||||||
let postdata = JSON.parse(JSON.stringify(this.formOptions.data))
|
let postdata = JSON.parse(JSON.stringify(this.formOptions.data))
|
||||||
|
|
||||||
this.$mk.formatFormData({ data: postdata, rules: this.formOptions.items });
|
this.$mk.formatFormData({ data: postdata, rules: this.formOptions.items });
|
||||||
this.$mk.post({
|
this.$mk.post({
|
||||||
|
|
@ -179,6 +180,4 @@ export default {
|
||||||
};
|
};
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style></style>
|
||||||
|
|
||||||
</style>
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<basic-page-list ref="listPage" :desc="desc" :options="pageOptions" @loadData="loadData">
|
<basic-page-list ref="listPage" :desc="desc" :options="pageOptions" @loadData="loadData">
|
||||||
<template v-slot:column1="{ row }">
|
<template v-slot:column1="{ row }">
|
||||||
<a-button @click.stop="pageDetail(row)">查看详情</a-button>
|
<a-button @click.stop="pageDetail(row)">布产单详情</a-button>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-slot:column2="{ row }">
|
<template v-slot:column2="{ row }">
|
||||||
|
|
@ -135,8 +135,6 @@ export default {
|
||||||
//搜索区
|
//搜索区
|
||||||
searchFormItems: [ // 子项
|
searchFormItems: [ // 子项
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
title: '部门', span: 5,
|
title: '部门', span: 5,
|
||||||
field: 'department_id',
|
field: 'department_id',
|
||||||
|
|
@ -201,7 +199,7 @@ export default {
|
||||||
sortConfig: {
|
sortConfig: {
|
||||||
defaultSort: {
|
defaultSort: {
|
||||||
field: 'complete_time',
|
field: 'complete_time',
|
||||||
order: 'asc'
|
order: 'desc'
|
||||||
},
|
},
|
||||||
trigger: 'cell', // 触发排序的方式
|
trigger: 'cell', // 触发排序的方式
|
||||||
remote: true // 是否远程排序
|
remote: true // 是否远程排序
|
||||||
|
|
@ -216,7 +214,7 @@ export default {
|
||||||
|
|
||||||
|
|
||||||
{ slots: { default: 'column1' }, title: '查看详情', width: 120 },
|
{ slots: { default: 'column1' }, title: '查看详情', width: 120 },
|
||||||
{ field: 'department_name', title: '部门', sortable: true, width: 100 },
|
{ field: 'department_name', title: '部门', sortable: true, width: 140 },
|
||||||
{ field: 'process_name', title: '工序名称', sortable: true, width: 100 },
|
{ field: 'process_name', title: '工序名称', sortable: true, width: 100 },
|
||||||
{ title: '模具图片', slots: { default: 'column4' }, width: 90 },
|
{ title: '模具图片', slots: { default: 'column4' }, width: 90 },
|
||||||
{ field: 'production_code', title: '布产单号', sortable: true, width: 100 },
|
{ field: 'production_code', title: '布产单号', sortable: true, width: 100 },
|
||||||
|
|
|
||||||
|
|
@ -224,7 +224,6 @@
|
||||||
</template>
|
</template>
|
||||||
</vxe-column>
|
</vxe-column>
|
||||||
|
|
||||||
<vxe-column field="department_name" title="部门" align="center" width="150"></vxe-column>
|
|
||||||
<vxe-column field="process_name" title="工序名称" align="center" width="110"></vxe-column>
|
<vxe-column field="process_name" title="工序名称" align="center" width="110"></vxe-column>
|
||||||
<vxe-column title="图片" width="75">
|
<vxe-column title="图片" width="75">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue