@agile-team/wl-skills-kit 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +328 -0
  3. package/bin/wl-skills.js +104 -0
  4. package/files/.github/copilot-instructions.md +211 -0
  5. package/files/.github/docs/SYS_MENU_INFO.md +247 -0
  6. package/files/.github/docs/menu-sync-design.md +265 -0
  7. package/files/.github/docs/use-skill.md +379 -0
  8. package/files/.github/docs/wl-skills-kit.md +266 -0
  9. package/files/.github/skills/api-contract/SKILL.md +247 -0
  10. package/files/.github/skills/convention-extract/SKILL.md +355 -0
  11. package/files/.github/skills/menu-sync/SKILL.md +255 -0
  12. package/files/.github/skills/menu-sync/env/guide.md +73 -0
  13. package/files/.github/skills/page-codegen/SKILL.md +825 -0
  14. package/files/.github/skills/page-codegen/TPL-CHANGE-HISTORY.md +281 -0
  15. package/files/.github/skills/page-codegen/TPL-DETAIL-TABS.md +1112 -0
  16. package/files/.github/skills/page-codegen/TPL-DRIVEN.md +124 -0
  17. package/files/.github/skills/page-codegen/TPL-FORM-ROUTE.md +441 -0
  18. package/files/.github/skills/page-codegen/TPL-LIST.md +196 -0
  19. package/files/.github/skills/page-codegen/TPL-MASTER-DETAIL.md +153 -0
  20. package/files/.github/skills/page-codegen/TPL-OPERATION-STATION.md +442 -0
  21. package/files/.github/skills/page-codegen/TPL-RECORD-FORM.md +376 -0
  22. package/files/.github/skills/page-codegen/TPL-TREE-LIST.md +191 -0
  23. package/files/.github/skills/prototype-scan/SKILL.md +414 -0
  24. package/files/demo/README.md +44 -0
  25. package/files/demo/produce/aiflow/mmwr-customer-apply-add/api.md +54 -0
  26. package/files/demo/produce/aiflow/mmwr-customer-apply-add/data.ts +346 -0
  27. package/files/demo/produce/aiflow/mmwr-customer-apply-add/index.scss +1 -0
  28. package/files/demo/produce/aiflow/mmwr-customer-apply-add/index.vue +28 -0
  29. package/files/demo/produce/aiflow/mmwr-customer-apply-add-form/data.ts +115 -0
  30. package/files/demo/produce/aiflow/mmwr-customer-apply-add-form/index.scss +44 -0
  31. package/files/demo/produce/aiflow/mmwr-customer-apply-add-form/index.vue +43 -0
  32. package/files/demo/produce/aiflow/mmwr-customer-apply-change/data.ts +338 -0
  33. package/files/demo/produce/aiflow/mmwr-customer-apply-change/index.scss +1 -0
  34. package/files/demo/produce/aiflow/mmwr-customer-apply-change/index.vue +28 -0
  35. package/files/demo/produce/aiflow/mmwr-customer-apply-change-form/data.ts +115 -0
  36. package/files/demo/produce/aiflow/mmwr-customer-apply-change-form/index.scss +44 -0
  37. package/files/demo/produce/aiflow/mmwr-customer-apply-change-form/index.vue +43 -0
  38. package/files/demo/produce/aiflow/mmwr-customer-apply-change-history/data.ts +196 -0
  39. package/files/demo/produce/aiflow/mmwr-customer-apply-change-history/index.scss +150 -0
  40. package/files/demo/produce/aiflow/mmwr-customer-apply-change-history/index.vue +79 -0
  41. package/files/demo/produce/aiflow/mmwr-customer-archive/api.md +88 -0
  42. package/files/demo/produce/aiflow/mmwr-customer-archive/data.ts +601 -0
  43. package/files/demo/produce/aiflow/mmwr-customer-archive/index.scss +1 -0
  44. package/files/demo/produce/aiflow/mmwr-customer-archive/index.vue +64 -0
  45. package/files/demo/produce/aiflow/mmwr-customer-detail/api.md +67 -0
  46. package/files/demo/produce/aiflow/mmwr-customer-detail/data.ts +286 -0
  47. package/files/demo/produce/aiflow/mmwr-customer-detail/index.scss +139 -0
  48. package/files/demo/produce/aiflow/mmwr-customer-detail/index.vue +318 -0
  49. package/files/demo/produce/aiflow/mmwr-temp-customer-archive/api.md +98 -0
  50. package/files/demo/produce/aiflow/mmwr-temp-customer-archive/data.ts +543 -0
  51. package/files/demo/produce/aiflow/mmwr-temp-customer-archive/index.scss +1 -0
  52. package/files/demo/produce/aiflow/mmwr-temp-customer-archive/index.vue +52 -0
  53. package/files/demo/sale/demo/add-demo/data.ts +518 -0
  54. package/files/demo/sale/demo/add-demo/index.scss +207 -0
  55. package/files/demo/sale/demo/add-demo/index.vue +167 -0
  56. package/files/demo/sale/demo/billet-flame-cut-plan/data.ts +524 -0
  57. package/files/demo/sale/demo/billet-flame-cut-plan/index.scss +155 -0
  58. package/files/demo/sale/demo/billet-flame-cut-plan/index.vue +117 -0
  59. package/files/demo/sale/demo/domestic-trade-order/data.ts +308 -0
  60. package/files/demo/sale/demo/domestic-trade-order/index.scss +99 -0
  61. package/files/demo/sale/demo/domestic-trade-order/index.vue +77 -0
  62. package/files/demo/sale/demo/heat-batch-return/data.ts +367 -0
  63. package/files/demo/sale/demo/heat-batch-return/index.scss +100 -0
  64. package/files/demo/sale/demo/heat-batch-return/index.vue +170 -0
  65. package/files/demo/sale/demo/heat-batch-return/meltDialog.vue +320 -0
  66. package/files/demo/sale/demo/metallurgical-spec/data.ts +825 -0
  67. package/files/demo/sale/demo/metallurgical-spec/index.scss +264 -0
  68. package/files/demo/sale/demo/metallurgical-spec/index.vue +309 -0
  69. package/files/docs/jh-date-range.md +257 -0
  70. package/files/docs/jh-date.md +222 -0
  71. package/files/docs/jh-dept-picker.md +190 -0
  72. package/files/docs/jh-drag-row.md +590 -0
  73. package/files/docs/jh-file-upload.md +216 -0
  74. package/files/docs/jh-pagination.md +505 -0
  75. package/files/docs/jh-picker.md +218 -0
  76. package/files/docs/jh-select.md +148 -0
  77. package/files/docs/jh-text.md +248 -0
  78. package/files/docs/jh-user-picker.md +197 -0
  79. package/files/docs/page-query-hook-best-practices.md +362 -0
  80. package/files/docs/request.md +925 -0
  81. package/files/src/components/global/C_ParentView/index.vue +3 -0
  82. package/files/src/components/global/C_RightToolbar/index.vue +459 -0
  83. package/files/src/components/global/C_Splitter/index.vue +195 -0
  84. package/files/src/components/global/C_SvgIcon/index.vue +61 -0
  85. package/files/src/components/global/C_SvgIcon/svgicon.js +10 -0
  86. package/files/src/components/global/C_TagStatus/README.md +264 -0
  87. package/files/src/components/global/C_TagStatus/config.ts +192 -0
  88. package/files/src/components/global/C_TagStatus/index.vue +127 -0
  89. package/files/src/components/global/C_TagStatus/types.ts +64 -0
  90. package/files/src/components/global/C_Tree/README.md +153 -0
  91. package/files/src/components/global/C_Tree/index.scss +42 -0
  92. package/files/src/components/global/C_Tree/index.vue +119 -0
  93. package/files/src/components/global/C_Tree/types.ts +59 -0
  94. package/files/src/components/local/c_formModal/README.md +235 -0
  95. package/files/src/components/local/c_formModal/data.ts +95 -0
  96. package/files/src/components/local/c_formModal/index.scss +8 -0
  97. package/files/src/components/local/c_formModal/index.vue +107 -0
  98. package/files/src/components/local/c_formSections/README.md +496 -0
  99. package/files/src/components/local/c_formSections/data.ts +175 -0
  100. package/files/src/components/local/c_formSections/index.scss +280 -0
  101. package/files/src/components/local/c_formSections/index.vue +429 -0
  102. package/files/src/components/local/c_listModal/data.ts +41 -0
  103. package/files/src/components/local/c_listModal/index.vue +136 -0
  104. package/files/src/components/local/c_spliterTitle/index.scss +25 -0
  105. package/files/src/components/local/c_spliterTitle/index.vue +21 -0
  106. package/files/src/components/remote/AGGrid/README.md +530 -0
  107. package/files/src/components/remote/BaseForm/README.md +508 -0
  108. package/files/src/components/remote/BaseQuery/README.md +865 -0
  109. package/files/src/components/remote/BaseTable/README.md +941 -0
  110. package/files/src/components/remote/BaseToolbar/README.md +496 -0
  111. package/files/src/types/page.ts +24 -0
  112. package/package.json +31 -0
@@ -0,0 +1,155 @@
1
+ .billet-flame-cut-plan {
2
+ padding: 8px;
3
+ background-color: #f5f5f5;
4
+ box-sizing: border-box;
5
+ display: flex;
6
+ flex-direction: column;
7
+ margin-bottom: 8px;
8
+
9
+ .main-tabs {
10
+ background: #fff;
11
+ padding: 10px 10px;
12
+ }
13
+
14
+ .search-form {
15
+ .search-row {
16
+ margin-bottom: 8px;
17
+
18
+ :deep(.el-col) {
19
+ width: 20%;
20
+ flex: unset;
21
+ }
22
+
23
+ &:last-child {
24
+ margin-bottom: 0;
25
+ }
26
+
27
+ :deep(.el-form-item) {
28
+ margin-bottom: 0;
29
+ width: 100%;
30
+
31
+ .el-form-item__content {
32
+ flex: 1;
33
+ margin-left: 0 !important;
34
+ }
35
+ }
36
+ }
37
+ }
38
+
39
+ .el-divider--horizontal {
40
+ margin: 16px 0;
41
+ }
42
+
43
+ .cut-info-divider {
44
+ margin: 8px 0 16px 0 !important;
45
+ }
46
+ .action-buttons {
47
+ display: flex;
48
+ flex-wrap: wrap;
49
+ gap: 8px;
50
+
51
+ .el-button + .el-button {
52
+ margin-left: 0;
53
+ }
54
+ }
55
+
56
+ .el-button--small {
57
+ font-size: 14px;
58
+ }
59
+
60
+ .page-container {
61
+ margin-top: 16px;
62
+ display: flex;
63
+ justify-content: flex-end;
64
+ }
65
+
66
+ .table-section {
67
+ margin-top: 16px;
68
+ }
69
+ }
70
+
71
+ // 子标题线条样式调整
72
+ :deep(.el-divider__text.is-left) {
73
+ left: 0px;
74
+ }
75
+
76
+ :deep(.el-divider__text.is-left:after) {
77
+ content: "";
78
+ width: 4px;
79
+ height: 16px;
80
+ position: absolute;
81
+ left: 6px;
82
+ top: 4px;
83
+ background-color: rgba(85.8, 119.1, 255, 1);
84
+ }
85
+
86
+ // 覆盖tabs的样式
87
+ .main-tab {
88
+ :deep(.el-tabs__header) {
89
+ margin-bottom: 0;
90
+ }
91
+
92
+ :deep(.el-tabs__nav) {
93
+ .el-tabs__active-bar {
94
+ background-color: transparent;
95
+ }
96
+
97
+ .el-tabs__item {
98
+ padding: 0 10px;
99
+ color: #666;
100
+ box-shadow: 0px -4px 5px 0px rgba(0, 0, 0, 0.05);
101
+ border-top-left-radius: 4px;
102
+ border-top-right-radius: 4px;
103
+
104
+ &:last-child {
105
+ padding-right: 10px;
106
+ }
107
+
108
+ &:nth-child(2) {
109
+ padding-left: 10px;
110
+ }
111
+ }
112
+
113
+ .is-active {
114
+ background-color: #fff;
115
+ color: #000;
116
+ }
117
+ }
118
+ }
119
+
120
+ // 主内容区域 - 左右布局
121
+ .main-content {
122
+ display: flex;
123
+ gap: 16px;
124
+ height: calc(100vh - 280px);
125
+ align-items: flex-start; // 确保顶部对齐
126
+
127
+ .left-panel,
128
+ .right-panel {
129
+ flex: 1;
130
+ display: flex;
131
+ flex-direction: column;
132
+ min-width: 0; // 防止内容溢出
133
+ }
134
+
135
+ .left-panel {
136
+ .pagination-wrapper {
137
+ margin-top: 16px;
138
+ display: flex;
139
+ justify-content: flex-end;
140
+ }
141
+ }
142
+
143
+ // 确保两个表格的divider和表头对齐
144
+ :deep(.el-divider) {
145
+ margin: 16px 0 !important;
146
+ }
147
+
148
+ :deep(.el-table) {
149
+ flex: 1;
150
+
151
+ .el-table__header-wrapper {
152
+ background-color: #fafafa;
153
+ }
154
+ }
155
+ }
@@ -0,0 +1,117 @@
1
+ <!--
2
+ * @Author: ChenYu ycyplus@gmail.com
3
+ * @Date: 2025-06-13 18:38:58
4
+ * @LastEditors: ChenYu ycyplus@gmail.com
5
+ * @LastEditTime: 2026-01-04 00:29:09
6
+ * @FilePath: \cx-ui-sale\src\views\sale\demo\billet-flame-cut-plan\index.vue
7
+ * @Description: 钢坯火切计划 - 视图层
8
+ * Copyright (c) 2025 by CHENY, All Rights Reserved 😎.
9
+ -->
10
+ <template>
11
+ <div class="app-container app-page-container">
12
+ <el-tabs v-model="activeTab" class="main-tab">
13
+ <el-tab-pane label="火切计划" name="plan">
14
+ <!-- 搜索栏 -->
15
+ <BaseQuery
16
+ :form="queryParam"
17
+ :items="queryItems"
18
+ :columns="5"
19
+ @select="select"
20
+ @reset="select"
21
+ />
22
+ <!-- 工具栏 -->
23
+ <BaseToolbar :items="toolbars" />
24
+ <!-- 主内容区域 - 左右布局 -->
25
+ <div class="main-content">
26
+ <!-- 左侧:计划信息 -->
27
+ <div class="left-panel">
28
+ <el-divider content-position="left">计划信息</el-divider>
29
+ <BaseTable
30
+ ref="tableRef"
31
+ :data="list"
32
+ :columns="columns"
33
+ :render-type="renderType"
34
+ :loading="loading"
35
+ />
36
+ <!-- 分页 -->
37
+ <jh-pagination
38
+ v-show="page.total > 0"
39
+ :total="page.total"
40
+ v-model:currentPage="page.current"
41
+ v-model:pageSize="page.size"
42
+ @current-change="select"
43
+ @size-change="select"
44
+ class="pagination-wrapper"
45
+ />
46
+ </div>
47
+ <!-- 右侧:切割信息 -->
48
+ <div class="right-panel">
49
+ <el-divider content-position="left" class="cut-info-divider">切割信息</el-divider>
50
+ <BaseTable
51
+ :data="cutList"
52
+ :columns="cutColumns"
53
+ :render-type="renderType"
54
+ :loading="loading"
55
+ />
56
+ </div>
57
+ </div>
58
+ </el-tab-pane>
59
+ <el-tab-pane label="火切实绩" name="result">
60
+ <!-- 预留火切实绩内容 -->
61
+ </el-tab-pane>
62
+ </el-tabs>
63
+ </div>
64
+ <!-- 表单弹窗 -->
65
+ <c_formModal
66
+ ref="modalRef"
67
+ :form-items="modalConfig.formItems"
68
+ :api="modalConfig.api"
69
+ :width="modalConfig.width"
70
+ :columns="modalConfig.columns"
71
+ :label-width="modalConfig.labelWidth"
72
+ :title-prefix="modalConfig.titlePrefix"
73
+ @ok="select"
74
+ />
75
+ </template>
76
+
77
+ <script setup lang="ts">
78
+ import c_formModal from "@/components/local/c_formModal/index.vue";
79
+ import { createPageHook, renderType } from "./data";
80
+ import "./index.scss";
81
+
82
+ // 弹窗引用
83
+ const modalRef = ref();
84
+
85
+ // 创建页面Hook实例
86
+ const Page = createPageHook(modalRef);
87
+
88
+ // 解构使用
89
+ const {
90
+ activeTab,
91
+ queryParam,
92
+ page,
93
+ tableRef,
94
+ list,
95
+ cutList,
96
+ loading,
97
+ queryItems,
98
+ toolbars,
99
+ columns,
100
+ cutColumns,
101
+ modalConfig
102
+ } = Page;
103
+
104
+ // 查询数据
105
+ const select = async () => {
106
+ await Page.select();
107
+ };
108
+
109
+ // 初始化
110
+ onMounted(() => {
111
+ select();
112
+ });
113
+ </script>
114
+
115
+ <style scoped lang="scss">
116
+ @import "./index.scss";
117
+ </style>
@@ -0,0 +1,308 @@
1
+ /*
2
+ * @Author: ChenYu ycyplus@gmail.com
3
+ * @Date: 2025-06-13 18:38:58
4
+ * @LastEditors: ChenYu ycyplus@gmail.com
5
+ * @LastEditTime: 2026-01-04 09:20:35
6
+ * @FilePath: \cx-ui-sale\src\views\sale\demo\domestic-trade-order\data.ts
7
+ * @Description: 内贸订单 - 数据逻辑层(配置和业务逻辑)
8
+ * Copyright (c) 2025 by CHENY, All Rights Reserved 😎.
9
+ */
10
+ import type { Ref } from "vue";
11
+ import {
12
+ AbstractPageQueryHook,
13
+ BaseQueryItemDesc,
14
+ ActionButtonDesc,
15
+ TableColumnDesc,
16
+ BusLogicDataType
17
+ } from "@/types/page";
18
+
19
+ import type { BaseFormItemDesc } from "@jhlc/common-core/src/components/form/common/type";
20
+ import { useTableDelete } from "@/composables/useTableDelete";
21
+
22
+ // 表格渲染类型
23
+ export const renderType = ref<"dataTable" | "agGrid">("dataTable");
24
+
25
+ /**
26
+ * API 配置 - 统一管理所有接口地址
27
+ */
28
+ export const API_CONFIG = {
29
+ list: "/api/domestic-trade-order/list",
30
+ remove: "/api/domestic-trade-order/remove",
31
+ getById: "/api/domestic-trade-order/getOneById",
32
+ save: "/api/domestic-trade-order/save",
33
+ update: "/api/domestic-trade-order/update"
34
+ } as const;
35
+
36
+ /**
37
+ * 查询项配置
38
+ */
39
+ export const queryItemsConfig: BaseQueryItemDesc<any>[] = [
40
+ {
41
+ name: "companyName",
42
+ label: "公司名称",
43
+ placeholder: "请选择"
44
+ },
45
+ {
46
+ name: "groupOrderNo",
47
+ label: "集团订单号",
48
+ placeholder: "请输入"
49
+ },
50
+ {
51
+ name: "productionOrderNo",
52
+ label: "产销订单号",
53
+ placeholder: "请输入"
54
+ },
55
+ {
56
+ name: "orderStatus",
57
+ label: "订单状态",
58
+ placeholder: "请选择",
59
+ logicType: BusLogicDataType.dict,
60
+ logicValue: "ORDER_STATUS"
61
+ },
62
+ {
63
+ name: "dateRange",
64
+ type: "range",
65
+ startName: "startDate",
66
+ endName: "endDate",
67
+ label: "日期录入",
68
+ logicType: BusLogicDataType.date,
69
+ rangeSeparator: "至",
70
+ placeholder: "开始"
71
+ },
72
+ {
73
+ name: "salesCompany",
74
+ label: "销售公司",
75
+ placeholder: "请选择",
76
+ logicType: BusLogicDataType.dict,
77
+ logicValue: "SALES_COMPANY"
78
+ },
79
+ {
80
+ name: "salesOrg",
81
+ label: "销售机构",
82
+ placeholder: "请选择",
83
+ logicType: BusLogicDataType.dict,
84
+ logicValue: "SALES_ORG"
85
+ },
86
+ {
87
+ name: "salesEmployeeId",
88
+ label: "销售员工号",
89
+ placeholder: "请选择",
90
+ logicType: BusLogicDataType.dict,
91
+ logicValue: "SALES_EMPLOYEE"
92
+ },
93
+ {
94
+ name: "productSegment",
95
+ label: "产品板块",
96
+ placeholder: "请选择",
97
+ logicType: BusLogicDataType.dict,
98
+ logicValue: "PRODUCT_SEGMENT"
99
+ }
100
+ ];
101
+
102
+ /**
103
+ * Modal 弹窗配置
104
+ */
105
+ export const modalConfig = {
106
+ titlePrefix: "内贸订单",
107
+ width: "850px",
108
+ columns: 2,
109
+ labelWidth: "110px",
110
+ formItems: [
111
+ {
112
+ name: "foreignTradeOrderNo",
113
+ label: "外贸订单号",
114
+ required: true,
115
+ placeholder: "请输入外贸订单号"
116
+ },
117
+ {
118
+ name: "period",
119
+ label: "周期",
120
+ required: true,
121
+ placeholder: "请选择"
122
+ },
123
+ {
124
+ name: "salesOrg",
125
+ label: "销售机构",
126
+ required: true,
127
+ placeholder: "请选择"
128
+ },
129
+ {
130
+ name: "manufacturingBase",
131
+ label: "制造基地",
132
+ required: true,
133
+ placeholder: "请选择"
134
+ },
135
+ {
136
+ name: "orderWeight",
137
+ label: "订单重量",
138
+ required: true,
139
+ placeholder: "请输入订单重量"
140
+ },
141
+ {
142
+ name: "weightedAverage",
143
+ label: "加权平均",
144
+ placeholder: "请输入加权平均"
145
+ },
146
+ {
147
+ name: "settlementUser",
148
+ label: "结算用户",
149
+ required: true,
150
+ placeholder: "请输入结算用户"
151
+ },
152
+ {
153
+ name: "finalUser",
154
+ label: "最终用户",
155
+ placeholder: "请输入最终用户"
156
+ },
157
+ {
158
+ name: "orderStatus",
159
+ label: "订单状态",
160
+ required: true,
161
+ placeholder: "请选择"
162
+ },
163
+ {
164
+ name: "merchandiser",
165
+ label: "跟单员",
166
+ placeholder: "请输入跟单员"
167
+ },
168
+ {
169
+ name: "salesperson",
170
+ label: "销售员",
171
+ placeholder: "请输入销售员"
172
+ },
173
+ {
174
+ name: "productionOrder",
175
+ label: "产销订单",
176
+ placeholder: "请输入产销订单"
177
+ }
178
+ ] as BaseFormItemDesc<any>[],
179
+ api: {
180
+ getById: API_CONFIG.getById,
181
+ save: API_CONFIG.save,
182
+ update: API_CONFIG.update
183
+ }
184
+ };
185
+
186
+ /**
187
+ * 创建页面Hook实例
188
+ * @param modalRef 弹窗引用
189
+ */
190
+ export function createPage(modalRef: Ref<any>) {
191
+ let Page = new (class extends AbstractPageQueryHook {
192
+ constructor() {
193
+ super({
194
+ url: {
195
+ list: API_CONFIG.list,
196
+ remove: API_CONFIG.remove
197
+ }
198
+ });
199
+ }
200
+
201
+ // 查询项配置
202
+ queryDef(): BaseQueryItemDesc<any>[] {
203
+ return queryItemsConfig;
204
+ }
205
+
206
+ // 工具栏配置
207
+ toolbarDef(): ActionButtonDesc[] {
208
+ return [
209
+ {
210
+ name: "add",
211
+ label: "新增",
212
+ type: "primary",
213
+ onClick: () => modalRef.value?.open()
214
+ },
215
+ { label: "整单复制", plain: true, onClick: () => {} },
216
+ { label: "审核", type: "success", onClick: () => {} },
217
+ { label: "价格审核", type: "success", onClick: () => {} },
218
+ { label: "生效", type: "success", onClick: () => {} },
219
+ { label: "绿通放行", type: "success", onClick: () => {} },
220
+ { label: "生成采购计划", plain: true, onClick: () => {} },
221
+ { label: "一键生成采购合同", plain: true, onClick: () => {} },
222
+ { label: "天管订货产品确认函", plain: true, onClick: () => {} },
223
+ { label: "同步产销订单", plain: true, onClick: () => {} },
224
+ { label: "下发预处理", plain: true, onClick: () => {} },
225
+ { label: "下发校验", plain: true, onClick: () => {} },
226
+ { label: "技术、交期评审", plain: true, onClick: () => {} },
227
+ { label: "合同分款", plain: true, onClick: () => {} },
228
+ { label: "查看合同", plain: true, onClick: () => {} },
229
+ { label: "退回", type: "danger", onClick: () => {} }
230
+ ];
231
+ }
232
+
233
+ // 表格列配置
234
+ columnsDef(): TableColumnDesc<any>[] {
235
+ const self = this;
236
+ const handleDelete = useTableDelete(API_CONFIG.remove, () =>
237
+ self.select()
238
+ );
239
+
240
+ return [
241
+ { type: "selection", width: 55 },
242
+ { label: "外贸订单号", name: "foreignTradeOrderNo", minWidth: 150 },
243
+ {
244
+ label: "周期",
245
+ name: "period",
246
+ minWidth: 80,
247
+ align: "center",
248
+ defaultSlot: ({ row }: any) => {
249
+ return h(
250
+ resolveComponent("ElTag") as any,
251
+ { type: "danger", effect: "light", size: "small" },
252
+ () => row.period
253
+ );
254
+ }
255
+ },
256
+ { label: "销售机构", name: "salesOrg", minWidth: 120 },
257
+ { label: "制造基地", name: "manufacturingBase", minWidth: 120 },
258
+ {
259
+ label: "订单重量",
260
+ name: "orderWeight",
261
+ minWidth: 100,
262
+ align: "right"
263
+ },
264
+ {
265
+ label: "加权平均",
266
+ name: "weightedAverage",
267
+ minWidth: 100,
268
+ align: "right"
269
+ },
270
+ {
271
+ label: "结算用户",
272
+ name: "settlementUser",
273
+ minWidth: 200,
274
+ showOverflowTooltip: true
275
+ },
276
+ {
277
+ label: "最终目的地",
278
+ name: "finalUser",
279
+ minWidth: 120,
280
+ showOverflowTooltip: true
281
+ },
282
+ { label: "订单状态", name: "orderStatus", minWidth: 120 },
283
+ { label: "跟单员", name: "merchandiser", minWidth: 90 },
284
+ { label: "销售员", name: "salesperson", minWidth: 90 },
285
+ { label: "产销订单", name: "productionOrder", minWidth: 120 },
286
+ {
287
+ label: "操作",
288
+ width: 150,
289
+ fixed: "right",
290
+ operations: [
291
+ {
292
+ name: "edit",
293
+ label: "编辑",
294
+ onClick: (row: any) => modalRef.value?.edit(row.id)
295
+ },
296
+ {
297
+ name: "remove",
298
+ label: "删除",
299
+ onClick: (row: any) => handleDelete({ id: row.id })
300
+ }
301
+ ]
302
+ }
303
+ ];
304
+ }
305
+ })();
306
+
307
+ return Page.create() as any;
308
+ }
@@ -0,0 +1,99 @@
1
+ /**
2
+ * 内贸订单 - 样式层
3
+ */
4
+
5
+ .app-container {
6
+ margin: 8px;
7
+ &.app-page-container {
8
+ padding: 16px;
9
+ background-color: #fff;
10
+ }
11
+ }
12
+
13
+ .base-toolbar-content {
14
+ flex-wrap: wrap;
15
+ }
16
+
17
+ // 查询区域下拉框宽度统一
18
+ :deep(.base-query) {
19
+ .el-select {
20
+ width: 100%;
21
+ }
22
+ }
23
+
24
+ // 工具栏按钮样式
25
+ :deep(.base-toolbar) {
26
+ .el-button.is-plain {
27
+ font-size: 12px;
28
+ }
29
+ }
30
+
31
+ // 玻璃风格按钮 - 淡蓝色高级玻璃质感
32
+ :deep(.glass-button) {
33
+ position: relative;
34
+ background: linear-gradient(
35
+ 135deg,
36
+ rgba(135, 206, 250, 0.25) 0%,
37
+ rgba(173, 216, 230, 0.15) 50%,
38
+ rgba(135, 206, 250, 0.2) 100%
39
+ ) !important;
40
+ backdrop-filter: blur(16px) !important;
41
+ -webkit-backdrop-filter: blur(16px) !important;
42
+ border: 1px solid rgba(135, 206, 250, 0.4) !important;
43
+ box-shadow: 0 4px 16px rgba(135, 206, 250, 0.15),
44
+ inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
45
+ color: #2c5f8a !important;
46
+ font-weight: 500;
47
+ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
48
+
49
+ // 添加光泽效果
50
+ &::before {
51
+ content: "";
52
+ position: absolute;
53
+ top: 0;
54
+ left: 0;
55
+ right: 0;
56
+ height: 50%;
57
+ background: linear-gradient(
58
+ 180deg,
59
+ rgba(255, 255, 255, 0.2) 0%,
60
+ rgba(255, 255, 255, 0) 100%
61
+ );
62
+ border-radius: inherit;
63
+ pointer-events: none;
64
+ }
65
+
66
+ &:hover {
67
+ background: linear-gradient(
68
+ 135deg,
69
+ rgba(135, 206, 250, 0.35) 0%,
70
+ rgba(173, 216, 230, 0.25) 50%,
71
+ rgba(135, 206, 250, 0.3) 100%
72
+ ) !important;
73
+ border-color: rgba(64, 158, 255, 0.6) !important;
74
+ box-shadow: 0 8px 24px rgba(135, 206, 250, 0.25),
75
+ inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
76
+ color: #1a4a75 !important;
77
+ transform: translateY(-1px);
78
+ }
79
+
80
+ &:active {
81
+ transform: translateY(0);
82
+ box-shadow: 0 2px 8px rgba(135, 206, 250, 0.2),
83
+ inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
84
+ }
85
+ }
86
+ // 表格区域
87
+ :deep(.el-table) {
88
+ .el-table__header {
89
+ th {
90
+ background-color: #f5f7fa;
91
+ }
92
+ }
93
+ }
94
+
95
+ // 分页区域
96
+ :deep(.jh-pagination) {
97
+ margin-top: 16px;
98
+ justify-content: flex-end;
99
+ }