+
- {{ detailMode ? "查看详情" : dataForm.id ? "编辑" : "新增" }}
+ {{ detailMode ? "查看详情" : dataForm.id ? "修改订单" : "新增订单" }}
-
+
@@ -66,7 +67,7 @@
:is="col.component"
:key="'component_' + col.prop"
@update:modelValue="handleComponentModelUpdate(col.prop, $event)"
- :modelValue="dataForm[col.prop]"
+ :modelValue="dataForm[col.prop] ?? ''"
:mode="detailMode ? 'detail' : dataForm.id ? 'edit' : 'create'"
/>
@@ -108,8 +109,8 @@ export default {
},
fullscreen: {
type: Boolean,
- default: false
- }
+ default: false,
+ },
},
inject: ["urls"],
data() {
@@ -124,7 +125,10 @@ export default {
this.$set(
col,
"options",
- res.data.list.map((i) => ({ label: i.name, value: i.id }))
+ res.data.list.map((i) => ({
+ label: i.name,
+ value: col.optionValueProp && `${col.optionValueProp}` in i ? i[col.optionValueProp] : i.id,
+ }))
);
} else {
col.options.splice(0);
@@ -175,6 +179,7 @@ export default {
/** init **/
init(parentId, detailMode) {
+ console.log("herer........", this.fullscreen);
if (this.$refs.dataForm) {
this.$refs.dataForm.clearValidate();
}
diff --git a/src/views/modules/pms/order/components/ListSectionWithHead.vue b/src/views/modules/pms/order/components/ListSectionWithHead.vue
index 4ab5bfc..81d88f7 100644
--- a/src/views/modules/pms/order/components/ListSectionWithHead.vue
+++ b/src/views/modules/pms/order/components/ListSectionWithHead.vue
@@ -27,7 +27,7 @@
layout="total, sizes, prev, pager, next, jumper"
>
-