update carPayloadDialogConfigs

This commit is contained in:
lb
2023-03-23 15:04:59 +08:00
parent b05d7bc52b
commit b6a50cd1ef
7 changed files with 70 additions and 16 deletions

View File

@@ -64,7 +64,9 @@ export default function () {
// },
];
const dialogJustFormConfigs = {
const dialogJustFormConfigs = {}
const carPayloadDialogConfigs = {
carPayloadDialog: true,
clickModalToClose: true,
tableConfig: {
@@ -88,6 +90,7 @@ export default function () {
return {
carPayloadDialogConfigs,
dialogConfigs: dialogJustFormConfigs,
tableConfig: {
table: null, // 此处可省略el-table 上的配置项

View File

@@ -3,6 +3,7 @@
:table-config="tableConfig"
:head-config="headFormConfigs"
:dialog-configs="dialogConfigs"
:car-payload-dialog-configs="carPayloadDialogConfigs"
:listQueryExtra="[{ code }]"
attach-list-query-data="code"
:trigger-update="triggerUpdateKey"
@@ -27,8 +28,9 @@ export default {
},
},
data() {
const { tableConfig, headFormConfigs, urls, dialogConfigs } = initConfig.call(this);
const { tableConfig, headFormConfigs, carPayloadDialogConfigs, urls, dialogConfigs } = initConfig.call(this);
return {
carPayloadDialogConfigs,
tableConfig,
headFormConfigs,
allUrls: urls,

View File

@@ -57,6 +57,11 @@ export default function () {
];
const dialogJustFormConfigs = {
};
const carPayloadDialogConfigs = {
carPayloadDialog: true,
clickModalToClose: true,
tableConfig: {
@@ -78,7 +83,9 @@ export default function () {
},
};
return {
carPayloadDialogConfigs,
dialogConfigs: dialogJustFormConfigs,
tableConfig: {
table: null, // 此处可省略el-table 上的配置项

View File

@@ -7,6 +7,7 @@
/** { pos: [] } **/
]"
:trigger-update="triggerUpdateKey"
:car-payload-dialog-configs="carPayloadDialogConfigs"
/>
</template>
@@ -23,8 +24,9 @@ export default {
};
},
data() {
const { tableConfig, headFormConfigs, urls, dialogConfigs } = initConfig.call(this);
const { tableConfig, headFormConfigs, urls, carPayloadDialogConfigs, dialogConfigs } = initConfig.call(this);
return {
carPayloadDialogConfigs,
tableConfig,
headFormConfigs,
allUrls: urls,

View File

@@ -20,7 +20,8 @@ export default function () {
width: 90,
subcomponent: TableOperaionComponent,
options: [
{ name: "to-car-payload", label: "装载详情", icon: 'document' }
{ name: "to-car-payload", label: "装载详情", icon: 'document' },
{ name: "edit-payload", label: "输入载砖详情", icon: 'edit' },
],
},
];
@@ -65,6 +66,41 @@ export default function () {
];
const dialogJustFormConfigs = {
clickModalToClose: true,
form: {
rows: [
[
{
input: true,
label: "窑车号",
prop: "code",
rules: { required: true, message: "必填项不能为空", trigger: "blur" },
elparams: { placeholder: "请输入窑车号" },
},
// {
// input: true,
// label: "编码",
// prop: "code",
// rules: { required: true, message: "必填项不能为空", trigger: "blur" },
// elparams: { placeholder: "请输入料仓编码" },
// },
],
// [{ component: QuillRichInput, label: "描述信息", prop: "description" }],
[{
richInput: true, label: "描述信息", prop: "description"
}],
[{ input: true, label: "备注", prop: "remark", elparams: { placeholder: "备注" } }],
],
operations: [
{ name: "add", label: "保存", type: "primary", permission: "pms:car:save", showOnEdit: false },
{ name: "update", label: "更新", type: "primary", permission: "pms:car:update", showOnEdit: true },
{ name: "reset", label: "重置", type: "warning", showAlways: true },
// { name: 'cancel', label: '取消', showAlways: true },
],
},
};
const carPayloadDialogConfigs = {
carPayloadDialog: true,
clickModalToClose: true,
tableConfig: {
@@ -88,6 +124,7 @@ export default function () {
return {
carPayloadDialogConfigs,
dialogConfigs: dialogJustFormConfigs,
tableConfig: {
table: null, // 此处可省略el-table 上的配置项

View File

@@ -3,6 +3,7 @@
:table-config="tableConfig"
:head-config="headFormConfigs"
:dialog-configs="dialogConfigs"
:car-payload-dialog-configs="carPayloadDialogConfigs"
:listQueryExtra="[{ pos: [1, 7] }]"
:trigger-update="triggerUpdateKey"
key="pallet"
@@ -22,14 +23,10 @@ export default {
urls: this.allUrls,
};
},
computed: {
code() {
return this.$route.query.code || "";
},
},
data() {
const { tableConfig, headFormConfigs, urls, dialogConfigs } = initConfig.call(this);
const { tableConfig, headFormConfigs, carPayloadDialogConfigs, urls, dialogConfigs } = initConfig.call(this);
return {
carPayloadDialogConfigs,
tableConfig,
headFormConfigs,
allUrls: urls,