diff --git a/src/components/DialogCarPayload.vue b/src/components/DialogCarPayload.vue
index 2dc955a..1309419 100644
--- a/src/components/DialogCarPayload.vue
+++ b/src/components/DialogCarPayload.vue
@@ -8,9 +8,11 @@
:width="configs.dialogWidth ?? '50%'"
>
-
-
装载详情
-
添加记录
+
+ 装载详情
+ 添加记录
@@ -59,8 +61,8 @@ export default {
},
updateKey: {
type: Number,
- default: 1
- }
+ default: 1,
+ },
// extraParams: {
// type: Object,
// default: () => ({})
@@ -83,9 +85,9 @@ export default {
watch: {
updateKey(val, oldVal) {
if (val !== oldVal) {
- this.getList()
+ this.getList();
}
- }
+ },
},
activated() {
this.refreshLayoutKey = Math.random();
@@ -120,7 +122,7 @@ export default {
};
this.$http
- .get(this.urls.base + `/${this.id}`, {
+ .get((this.urls.payload ? this.urls.payload : this.urls.base) + `/${this.id}`, {
params,
})
.then(({ data: res }) => {
diff --git a/src/components/DialogJustForm.vue b/src/components/DialogJustForm.vue
index 4856dd0..efd523a 100644
--- a/src/components/DialogJustForm.vue
+++ b/src/components/DialogJustForm.vue
@@ -23,7 +23,9 @@
-
{{ col.label }}
+
{{
+ col.label
+ }}
this.$http.get("/pms/car/page", { params: { page: 1, limit: 999 } }),
rules: { required: true, message: "必填项不能为空", trigger: "blur" },
elparams: {
- fliterable: true
+ disabled: true,
}
},
{
@@ -94,16 +94,17 @@ export default function () {
prop: "pos",
// options: getDictDataList(),
rules: { required: true, message: "必填项不能为空", trigger: "blur" },
- // elparams: {
- // fliterable: true
- // }
+ elparams: {
+ // fliterable: true
+
+ }
},
{
label: "查看载砖详情",
button: true,
- onClick: (id) => {
+ onClick: function (id) { // 必须用 function 形式
console.log(`查看载砖详情`, id)
- this.$emit({ type: 'to-car-payload', data: id })
+ this.$emit('emit-data', { type: 'to-car-payload', data: id })
}
},
],
diff --git a/src/views/modules/pms/pallet/index.vue b/src/views/modules/pms/pallet/index.vue
index 4b31b75..ac9e422 100644
--- a/src/views/modules/pms/pallet/index.vue
+++ b/src/views/modules/pms/pallet/index.vue
@@ -3,6 +3,7 @@
:table-config="tableConfig"
:head-config="headFormConfigs"
:dialog-configs="dialogConfigs"
+ :car-payload-dialog-configs="carPayloadDialogConfigs"
:list-query-extra="[
/** { pos: [] } **/
]"
@@ -24,9 +25,10 @@ export default {
};
},
data() {
- const { tableConfig, headFormConfigs, urls, dialogConfigs } = initConfig.call(this);
+ const { tableConfig, headFormConfigs, urls, carPayloadDialogConfigs, dialogConfigs } = initConfig.call(this);
return {
tableConfig,
+ carPayloadDialogConfigs,
headFormConfigs,
allUrls: urls,
dialogConfigs,