huangbin 4 anos atrás
pai
commit
18b49bda64

+ 34 - 87
generate-code/cli.js

@@ -53,97 +53,44 @@ function getModalEnum(arr, callback) {
 }
 
 getModalEnum(list, () => {
-	const temp =
-		name +
-		`
+const temp =
+	name +
+	`
 }`;
-	// fs.unlink(enumPath, (err) => {
-	// 	// !err && console.log('文件删除成功!');
-	// });
-
 	fs.writeFileSync(enumPath, temp, { flag: 'w+' }, (err) => {
 		// !err && console.log('写入文件成功!');
 	});
 });
 
-//检查某个目录是否存在
-function hasFile(url, code) {
-	const temp = path.join(url, `/${code}`);
-	try {
-		//检查某个目录是否存在
-		fs.statSync(temp);
-		return true;
-	} catch (error) {
-		console.log(temp);
-		console.log(error);
-		return false;
-	}
-}
-
-// 模板目录
-const tempDir = path.join(__dirname, 'templates');
-
-function writeFile(url, code) {
-	if (!hasFile(url, code)) {
-		const temp = path.join(url, `/${code}`);
-		console.log(temp);
-		return fs.promises.mkdir(temp);
-	}
-	return Promise.resolve(false);
+/*** ===================== 生成单据组件名枚举 ==================== ****/
+const enumOrderPath = path.join(destDir, '/common/constants/enumOrderComponents.ts');
+let orderName = `// 组件名枚举
+export enum enumOrderComponents {`;
+function getOrderName(arr, callback) {
+	arr.forEach((el) => {
+		const { code, title, children, type } = el;
+		if (type === 4) {
+			// 单据类型
+			fs.promises.readFile(enumOrderPath).then((res) => {
+				if (!orderName.includes(code)) {
+					orderName += `
+					${code} = '${code}', // ${title}
+					`;
+					callback();
+				}
+				getOrderName(children, callback);
+			});
+		} else {
+			getOrderName(children, callback);
+		}
+	});
 }
-
-// list.forEach((el) => {
-// 	const { code, children } = el;
-// 	writeFile(destDir, code).then(() => {
-// 		if (children) {
-// 			children.forEach((item) => {
-// 				writeFile(path.join(destDir, `/${code}`), item.code).then(() => {
-// 					if (item.children) {
-// 						item.children.forEach((e) => {
-// 							const path1 = `/${code}/${item.code}`;
-// 							writeFile(path.join(destDir, path1), e.code).then(() => {
-// 								const path2 = `${path1}/${e.code}`;
-// 								// index.vue
-// 								if (!hasFile(path.join(destDir, path2), 'index.vue')) {
-// 									const template = `
-
-// 									`;
-// 									fs.writeFileSync(path.join(destDir, `${path2}/index.vue`), template);
-// 								}
-// 								// components
-// 								writeFile(path.join(destDir, `${path2}`), 'components').then(() => {
-// 									if (e.children) {
-// 										const path3 = `${path2}/components`;
-// 										e.children.forEach((ele) => {
-// 											writeFile(path.join(destDir, path3), ele.code).then((res) => {
-// 												if (res) {
-// 													if (
-// 														!hasFile(
-// 															path.join(destDir, `${path3}/${ele.code}`),
-// 															'index.vue'
-// 														)
-// 													) {
-// 														const template = `
-// 														`;
-// 														fs.writeFileSync(
-// 															path.join(destDir, `${path3}${ele.code}/index.vue`),
-// 															template
-// 														).then(res => {
-// 															if (res) {
-
-// 															}
-// 														}
-// 													}
-// 												}
-// 											});
-// 										});
-// 									}
-// 								});
-// 							});
-// 						});
-// 					}
-// 				});
-// 			});
-// 		}
-// 	});
-// });
+getOrderName(list, () => {
+	const temp =
+	orderName +
+		`
+}`;
+	fs.writeFileSync(enumOrderPath, temp, { flag: 'w+' }, (err) => {
+		// !err && console.log('写入文件成功!');
+	});
+});

Diferenças do arquivo suprimidas por serem muito extensas
+ 942 - 90
generate-code/pc_menu_企业风管.json


+ 2 - 1
package.json

@@ -5,7 +5,8 @@
     "scripts": {
         "serve": "vue-cli-service serve",
         "build": "vue-cli-service build",
-        "lint": "vue-cli-service lint"
+        "lint": "vue-cli-service lint",
+        "enum": "node ./generate-code/cli.js "
     },
     "dependencies": {
         "@vue/runtime-dom": "^3.1.4",

+ 45 - 0
src/common/constants/enumOrderComponents.ts

@@ -0,0 +1,45 @@
+// 组件名枚举
+export enum enumOrderComponents {
+    bottom = 'bottom', // 底部单据菜单
+
+    spot_warrant = 'spot_warrant', // 现货仓单
+
+    pre_sale_warehouse_receipt = 'pre_sale_warehouse_receipt', // 预售仓单
+
+    performance_information = 'performance_information', // 履约信息
+
+    funding_information = 'funding_information', // 资金信息
+
+    spot_warrant_spot_summary = 'spot_warrant_spot_summary', // 现货汇总
+
+    spot_warrant_inventory_summary = 'spot_warrant_inventory_summary', // 库存汇总
+
+    spot_warrant_spot_details = 'spot_warrant_spot_details', // 现货明细
+
+    spot_warrant_pending_order = 'spot_warrant_pending_order', // 挂单
+
+    spot_warrant_deal = 'spot_warrant_deal', // 成交
+
+    spot_warrant_in_and_out_warehouse = 'spot_warrant_in_and_out_warehouse', // 出入库
+
+    pre_sale_warehouse_receipt_order_summary = 'pre_sale_warehouse_receipt_order_summary', // 订单汇总
+
+    spot_warrant_designated_deal = 'spot_warrant_designated_deal', // 指定成交
+
+    pre_sale_warehouse_receipt_designated_deal = 'pre_sale_warehouse_receipt_designated_deal', // 指定成交
+
+    performance_information_buy_performance = 'performance_information_buy_performance', // 买履约
+
+    pre_sale_warehouse_receipt_pending_order = 'pre_sale_warehouse_receipt_pending_order', // 挂单
+
+    pre_sale_warehouse_receipt_deal = 'pre_sale_warehouse_receipt_deal', // 成交
+
+    performance_information_sell_performance = 'performance_information_sell_performance', // 卖履约
+
+    funding_information_funding_summary = 'funding_information_funding_summary', // 资金汇总
+
+    funding_information_funding_log = 'funding_information_funding_log', // 资金流水
+
+    pre_sale_warehouse_receipt_designated_deal_resell = 'pre_sale_warehouse_receipt_designated_deal_resell', // 撤销出售
+
+}

+ 172 - 96
src/common/constants/modalNameEnum.ts

@@ -4,211 +4,287 @@ export enum ModalEnum {
     commomOrder = 'commom-order', // 下单通用界面
 
     detail = 'detail', // 详情
+					spot_warrant_inventory_summary_detail = 'spot_warrant_inventory_summary_detail', // 仓单明细
+					
+					spot_warrant_spot_details_listed = 'spot_warrant_spot_details_listed', // 挂牌
+					
+					spot_warrant_deal_detail = 'spot_warrant_deal_detail', // 详情
+					
+					spot_warrant_pending_order_cancel_order = 'spot_warrant_pending_order_cancel_order', // 撤单
+					
+					spot_warrant_designated_deal_ignore = 'spot_warrant_designated_deal_ignore', // 忽略
+					
+					spot_warrant_designated_deal_confirm_purchase = 'spot_warrant_designated_deal_confirm_purchase', // 确定购买
+					
+					spot_warrant_in_and_out_warehouse_logistics_information = 'spot_warrant_in_and_out_warehouse_logistics_information', // 物流信息
+					
+					spot_warrant_spot_summary_check = 'spot_warrant_spot_summary_check', // 查看库存
+					
+					spot_warrant_spot_details_pick_up = 'spot_warrant_spot_details_pick_up', // 提货
+					
+					spot_warrant_in_and_out_warehouse_revoke = 'spot_warrant_in_and_out_warehouse_revoke', // 撤销
+					
+					pre_sale_warehouse_receipt_pending_order_cancel_order = 'pre_sale_warehouse_receipt_pending_order_cancel_order', // 撤单
+					
+					spot_warrant_designated_deal_resell = 'spot_warrant_designated_deal_resell', // 撤销出售
+					
+					pre_sale_warehouse_receipt_designated_deal_confirm_purchase = 'pre_sale_warehouse_receipt_designated_deal_confirm_purchase', // 确定购买
+					
+					pre_sale_warehouse_receipt_designated_deal_ignore = 'pre_sale_warehouse_receipt_designated_deal_ignore', // 忽略
+					
+					performance_information_buy_performance_pay = 'performance_information_buy_performance_pay', // 付款
+					
+					performance_information_buy_performance_breach_contract = 'performance_information_buy_performance_breach_contract', // 违约
+					
+					performance_information_buy_performance_detail = 'performance_information_buy_performance_detail', // 详情
+					
+					pre_sale_warehouse_receipt_order_summary_listed = 'pre_sale_warehouse_receipt_order_summary_listed', // 挂牌
+					
+					performance_information_sell_performance_extension = 'performance_information_sell_performance_extension', // 延期
+					
+					pre_sale_warehouse_receipt_deal_detail = 'pre_sale_warehouse_receipt_deal_detail', // 详情
+					
+					performance_information_buy_performance_extension = 'performance_information_buy_performance_extension', // 延期
+					
+					performance_information_sell_performance_pay = 'performance_information_sell_performance_pay', // 付款
+					
+					funding_information_funding_summary_recharge = 'funding_information_funding_summary_recharge', // 充值
+					
+					performance_information_sell_performance_breach_contract = 'performance_information_sell_performance_breach_contract', // 违约
+					
+					performance_information_sell_performance_detail = 'performance_information_sell_performance_detail', // 详情
+					
+					warehouse_receipt_trade_price_post_buying = 'warehouse_receipt_trade_price_post_buying', // 发布求购
+					
+					funding_information_funding_summary_withdraw = 'funding_information_funding_summary_withdraw', // 提现
+					
+					warehouse_receipt_trade_price_delisting = 'warehouse_receipt_trade_price_delisting', // 摘牌
+					
+					warehouse_receipt_trade_price_detail = 'warehouse_receipt_trade_price_detail', // 详情
+					
+					warehouse_receipt_trade_floating_price_post_buying = 'warehouse_receipt_trade_floating_price_post_buying', // 发布求购
+					
+					warehouse_receipt_trade_floating_price_delisting = 'warehouse_receipt_trade_floating_price_delisting', // 摘牌
+					
+					capacity_pre_sale_detail = 'capacity_pre_sale_detail', // 详情
+					
+					capacity_pre_sale_purchase = 'capacity_pre_sale_purchase', // 发布求购
+					
+					capacity_pre_sale_delisting = 'capacity_pre_sale_delisting', // 摘牌
+					
 					open = 'open', // 开仓
 					
+					custom_info_btn_modify = 'custom_info_btn_modify', // 修改
+					
 					custom_info_btn_delete = 'custom_info_btn_delete', // 删除
 					
-					custom_info_btn_check = 'custom_info_btn_check', // 审核
+					custom_info_btn_cancel = 'custom_info_btn_cancel', // 撤销
+					
+					warehouse_receipt_trade_floating_price_detail = 'warehouse_receipt_trade_floating_price_detail', // 详情
+					
+					close = 'close', // 平仓
+					
+					custom_info_btn_add = 'custom_info_btn_add', // 新增
+					
+					custom_info_btn_disable = 'custom_info_btn_disable', // 停用
+					
+					goods_info_spot_normal_add = 'goods_info_spot_normal_add', // 新增
 					
 					goods_info_spot_normal_modify = 'goods_info_spot_normal_modify', // 修改
 					
-					custom_info_btn_modify = 'custom_info_btn_modify', // 修改
+					custom_info_btn_check = 'custom_info_btn_check', // 审核
 					
 					goods_info_hedge_normal_modify = 'goods_info_hedge_normal_modify', // 修改
 					
-					warehouse_info_btn_disable = 'warehouse_info_btn_disable', // 停用
+					goods_info_spot_normal_disable = 'goods_info_spot_normal_disable', // 停用
+					
+					spot_contract_btn_add = 'spot_contract_btn_add', // 新增
+					
+					custom_info_btn_recover = 'custom_info_btn_recover', // 恢复
+					
+					none_btn = 'none_btn', // 按钮
 					
 					warehouse_info_btn_add = 'warehouse_info_btn_add', // 新增
 					
-					spot_contract_btn_finish = 'spot_contract_btn_finish', // 正常完结
+					warehouse_info_btn_modify = 'warehouse_info_btn_modify', // 修改
 					
-					custom_info_btn_cancel = 'custom_info_btn_cancel', // 撤销
+					warehouse_info_btn_disable = 'warehouse_info_btn_disable', // 停用
 					
-					goods_info_spot_normal_add = 'goods_info_spot_normal_add', // 新增
+					warehouse_info_btn_recover = 'warehouse_info_btn_recover', // 恢复
 					
-					spot_contract_btn_add = 'spot_contract_btn_add', // 新增
+					account_info_business_btn_add = 'account_info_business_btn_add', // 新增
 					
-					account_info_manager_btn_setting = 'account_info_manager_btn_setting', // 权限设置
+					account_info_trade_btn_add = 'account_info_trade_btn_add', // 新增
 					
-					purchase_pending_funds = 'purchase_pending_funds', // 款项登记
+					account_info_manager_btn_add = 'account_info_manager_btn_add', // 新增权限模板
 					
-					purchase_pending_settlement = 'purchase_pending_settlement', // 交收登记
+					account_info_manager_btn_setting = 'account_info_manager_btn_setting', // 权限设置
 					
 					account_info_futures_btn_add = 'account_info_futures_btn_add', // 新增
 					
-					plan_uncommitted_delete = 'plan_uncommitted_delete', // 删除
+					plan_btn_add = 'plan_btn_add', // 新增
 					
 					business_review_someprice_audit = 'business_review_someprice_audit', // 审核
 					
-					custom_info_btn_disable = 'custom_info_btn_disable', // 停用
+					business_review_someprice_cancel = 'business_review_someprice_cancel', // 撤销
 					
-					custom_info_btn_add = 'custom_info_btn_add', // 新增
+					business_review_settlement_audit = 'business_review_settlement_audit', // 审核
 					
-					spot_contract_btn_modify = 'spot_contract_btn_modify', // 重新提交
+					business_review_settlement_cancel = 'business_review_settlement_cancel', // 撤销
 					
-					spot_contract_btn_check = 'spot_contract_btn_check', // 审核
+					finance_review_funds_audit = 'finance_review_funds_audit', // 审核
 					
-					purchase_pending_storage = 'purchase_pending_storage', // 入库登记
+					finance_review_funds_cancel = 'finance_review_funds_cancel', // 撤销
 					
-					plan_audit_audit = 'plan_audit_audit', // 审核
+					finance_review_invoice_audit = 'finance_review_invoice_audit', // 审核
 					
-					spot_contract_btn_delete = 'spot_contract_btn_delete', // 删除
+					finance_review_invoice_cancel = 'finance_review_invoice_cancel', // 撤销
 					
-					purchase_pending_someprice = 'purchase_pending_someprice', // 点价登记
+					inventory_review_checkin_audit = 'inventory_review_checkin_audit', // 审核
 					
-					purchase_pending_invoice = 'purchase_pending_invoice', // 发票登记
+					inventory_review_checkin_cancel = 'inventory_review_checkin_cancel', // 撤销
 					
-					sell_pending_someprice = 'sell_pending_someprice', // 点价登记
+					inventory_review_checkout_audit = 'inventory_review_checkout_audit', // 审核
 					
-					plan_btn_add = 'plan_btn_add', // 新增
+					inventory_review_checkout_cancel = 'inventory_review_checkout_cancel', // 撤销
 					
-					platinum_custom_info_add = 'platinum_custom_info_add', // 新增
+					inventory_current_add = 'inventory_current_add', // 新增
 					
-					finance_review_invoice_cancel = 'finance_review_invoice_cancel', // 撤销
+					platinum_custom_info_add = 'platinum_custom_info_add', // 新增
 					
 					platinum_pick_goods_management_add = 'platinum_pick_goods_management_add', // 新增
 					
-					platinum_withdrawal_review_refuse = 'platinum_withdrawal_review_refuse', // 审核拒绝
-					
-					inventory_review_checkin_cancel = 'inventory_review_checkin_cancel', // 撤销
-					
-					business_review_settlement_audit = 'business_review_settlement_audit', // 审核
+					platinum_pick_query_complete_stocking = 'platinum_pick_query_complete_stocking', // 完成备货
 					
-					account_info_trade_btn_add = 'account_info_trade_btn_add', // 新增
+					platinum_pick_query_upload_logistics = 'platinum_pick_query_upload_logistics', // 上传物流
 					
-					sell_pending_invoice = 'sell_pending_invoice', // 发票登记
+					platinum_pick_query_receipt = 'platinum_pick_query_receipt', // 确认收货
 					
 					platinum_pick_query_confirm_pickup = 'platinum_pick_query_confirm_pickup', // 确认取货
 					
 					platinum_recharge_review_confirm_payment = 'platinum_recharge_review_confirm_payment', // 确认收款
 					
-					platinum_pick_query_upload_logistics = 'platinum_pick_query_upload_logistics', // 上传物流
+					platinum_recharge_review_refuse = 'platinum_recharge_review_refuse', // 审核拒绝
 					
-					warehouse_info_btn_recover = 'warehouse_info_btn_recover', // 恢复
+					platinum_withdrawal_review_confirm_withdrawal = 'platinum_withdrawal_review_confirm_withdrawal', // 确认提现
 					
-					close = 'close', // 平仓
+					platinum_withdrawal_review_refuse = 'platinum_withdrawal_review_refuse', // 审核拒绝
 					
-					business_review_settlement_cancel = 'business_review_settlement_cancel', // 撤销
+					platinum_financing_information_detail = 'platinum_financing_information_detail', // 融资明细
 					
-					platinum_agents_and_stores_logout = 'platinum_agents_and_stores_logout', // 注销
+					platinum_contract_goods_add = 'platinum_contract_goods_add', // 新增
 					
 					platinum_contract_commodity_suspension_add = 'platinum_contract_commodity_suspension_add', // 新增
 					
 					platinum_agents_and_stores_add = 'platinum_agents_and_stores_add', // 新增
 					
-					platinum_capital_flow = 'platinum_capital_flow', // 资金流水
+					platinum_agents_and_stores_modify = 'platinum_agents_and_stores_modify', // 修改
 					
-					account_info_manager_btn_add = 'account_info_manager_btn_add', // 新增权限模板
+					platinum_agents_and_stores_logout = 'platinum_agents_and_stores_logout', // 注销
 					
-					platinum_promotion_report = 'platinum_promotion_report', // 推广报表
+					platinum_spot_and_price_modify = 'platinum_spot_and_price_modify', // 修改
 					
-					account_info_business_btn_add = 'account_info_business_btn_add', // 新增
+					platinum_agreement_add = 'platinum_agreement_add', // 新增
 					
-					platinum_financing_information_detail = 'platinum_financing_information_detail', // 融资明细
+					platinum_capital_flow = 'platinum_capital_flow', // 积分流水
 					
-					platinum_agents_and_stores_modify = 'platinum_agents_and_stores_modify', // 修改
+					platinum_promotion_report = 'platinum_promotion_report', // 推广报表
 					
 					platinum_broker_management = 'platinum_broker_management', // 经纪人管理
 					
+					spot_contract_btn_modify = 'spot_contract_btn_modify', // 重新提交
+					
+					spot_contract_btn_delete = 'spot_contract_btn_delete', // 删除
+					
+					spot_contract_btn_check = 'spot_contract_btn_check', // 审核
+					
+					spot_contract_btn_finish = 'spot_contract_btn_finish', // 正常完结
+					
 					spot_contract_btn_cancel = 'spot_contract_btn_cancel', // 撤销
 					
-					sell_pending_funds = 'sell_pending_funds', // 款项登记
+					account_info_business_btn_modify = 'account_info_business_btn_modify', // 修改
 					
-					platinum_spot_and_price_modify = 'platinum_spot_and_price_modify', // 修改
+					account_info_business_btn_reset = 'account_info_business_btn_reset', // 重置密码
 					
-					warehouse_info_btn_modify = 'warehouse_info_btn_modify', // 修改
+					account_info_business_btn_locked = 'account_info_business_btn_locked', // 锁定
 					
-					goods_info_spot_normal_disable = 'goods_info_spot_normal_disable', // 停用
+					account_info_business_btn_unlocked = 'account_info_business_btn_unlocked', // 解锁
 					
-					platinum_withdrawal_review_confirm_withdrawal = 'platinum_withdrawal_review_confirm_withdrawal', // 确认提现
+					account_info_business_btn_cancel = 'account_info_business_btn_cancel', // 注销
 					
-					plan_uncommitted_modify = 'plan_uncommitted_modify', // 修改
+					account_info_trade_btn_modify = 'account_info_trade_btn_modify', // 修改
 					
-					custom_info_btn_recover = 'custom_info_btn_recover', // 恢复
+					account_info_trade_child_btn_add = 'account_info_trade_child_btn_add', // 新增
 					
-					finance_review_funds_cancel = 'finance_review_funds_cancel', // 撤销
+					account_info_manager_btn_child_add = 'account_info_manager_btn_child_add', // 新增
 					
-					plan_audit_cancel = 'plan_audit_cancel', // 撤销
+					account_info_futures_btn_child_add = 'account_info_futures_btn_child_add', // 新增
 					
-					business_review_someprice_cancel = 'business_review_someprice_cancel', // 撤销
+					purchase_pending_settlement = 'purchase_pending_settlement', // 交收登记
 					
-					platinum_contract_goods_add = 'platinum_contract_goods_add', // 新增
+					purchase_pending_someprice = 'purchase_pending_someprice', // 点价登记
 					
-					inventory_review_checkout_cancel = 'inventory_review_checkout_cancel', // 撤销
+					purchase_pending_funds = 'purchase_pending_funds', // 款项登记
 					
-					platinum_pick_query_receipt = 'platinum_pick_query_receipt', // 确认收货
+					purchase_pending_invoice = 'purchase_pending_invoice', // 发票登记
 					
-					inventory_current_add = 'inventory_current_add', // 新增
+					purchase_pending_storage = 'purchase_pending_storage', // 入库登记
 					
 					sell_pending_settlement = 'sell_pending_settlement', // 交收登记
 					
-					finance_review_funds_audit = 'finance_review_funds_audit', // 审核
+					sell_pending_funds = 'sell_pending_funds', // 款项登记
+					
+					sell_pending_invoice = 'sell_pending_invoice', // 发票登记
 					
 					sell_pending_storage = 'sell_pending_storage', // 出库登记
 					
-					finance_review_invoice_audit = 'finance_review_invoice_audit', // 审核
+					plan_uncommitted_modify = 'plan_uncommitted_modify', // 修改
 					
-					platinum_agreement_add = 'platinum_agreement_add', // 新增
+					plan_uncommitted_delete = 'plan_uncommitted_delete', // 删除
 					
-					platinum_pick_query_complete_stocking = 'platinum_pick_query_complete_stocking', // 完成备货
+					plan_audit_audit = 'plan_audit_audit', // 审核
 					
-					inventory_review_checkout_audit = 'inventory_review_checkout_audit', // 审核
+					plan_audit_cancel = 'plan_audit_cancel', // 撤销
 					
-					inventory_review_checkin_audit = 'inventory_review_checkin_audit', // 审核
+					account_info_futures_btn_modify = 'account_info_futures_btn_modify', // 修改
 					
-					platinum_recharge_review_refuse = 'platinum_recharge_review_refuse', // 审核拒绝
+					sell_pending_someprice = 'sell_pending_someprice', // 点价登记
 					
-					account_info_futures_btn_child_add = 'account_info_futures_btn_child_add', // 新增
+					inventory_current_detail_storehouse = 'inventory_current_detail_storehouse', // 仓库明细
 					
-					account_info_futures_btn_modify = 'account_info_futures_btn_modify', // 修改
+					inventory_current_detail_storesave = 'inventory_current_detail_storesave', // 库存明细
 					
 					platinum_custom_info_normal_modify = 'platinum_custom_info_normal_modify', // 修改
 					
 					platinum_custom_info_normal_stop = 'platinum_custom_info_normal_stop', // 停用
 					
+					platinum_customer_info_unsubmit_check = 'platinum_customer_info_unsubmit_check', // 审核
+					
+					platinum_customer_info_stop_resume = 'platinum_customer_info_stop_resume', // 恢复
+					
 					platinum_pick_goods_management_modify = 'platinum_pick_goods_management_modify', // 修改
 					
 					platinum_pick_goods_management_logout = 'platinum_pick_goods_management_logout', // 注销
 					
+					platinum_customer_info_stop_delete = 'platinum_customer_info_stop_delete', // 删除
+					
 					platinum_contract_goods_modify = 'platinum_contract_goods_modify', // 修改
 					
 					platinum_contract_goods_logout = 'platinum_contract_goods_logout', // 注销
 					
-					inventory_current_detail_storesave = 'inventory_current_detail_storesave', // 库存明细
-					
-					inventory_current_detail_storehouse = 'inventory_current_detail_storehouse', // 仓库明细
-					
-					account_info_trade_child_btn_add = 'account_info_trade_child_btn_add', // 新增
-					
-					account_info_trade_btn_modify = 'account_info_trade_btn_modify', // 修改
+					platinum_contract_commodity_suspension_modify = 'platinum_contract_commodity_suspension_modify', // 修改
 					
 					platinum_agreement_modify = 'platinum_agreement_modify', // 修改
 					
-					platinum_agreement_stop = 'platinum_agreement_stop', // 停用
-					
 					platinum_agreement_resume = 'platinum_agreement_resume', // 恢复
 					
-					platinum_agreement_delete = 'platinum_agreement_delete', // 注销
-					
-					platinum_customer_info_unsubmit_check = 'platinum_customer_info_unsubmit_check', // 审核
-					
-					platinum_contract_commodity_suspension_modify = 'platinum_contract_commodity_suspension_modify', // 修改
-					
-					account_info_manager_btn_child_add = 'account_info_manager_btn_child_add', // 新增
-					
-					account_info_business_btn_modify = 'account_info_business_btn_modify', // 修改
-					
-					account_info_business_btn_reset = 'account_info_business_btn_reset', // 重置密码
-					
-					account_info_business_btn_locked = 'account_info_business_btn_locked', // 锁定
-					
-					account_info_business_btn_unlocked = 'account_info_business_btn_unlocked', // 解锁
+					platinum_agreement_stop = 'platinum_agreement_stop', // 停用
 					
-					account_info_business_btn_cancel = 'account_info_business_btn_cancel', // 注销
+					platinum_agreement_delete = 'platinum_agreement_delete', // 注销
 					
-					platinum_customer_info_stop_resume = 'platinum_customer_info_stop_resume', // 恢复
+					platinum_broker_management_check = 'platinum_broker_management_check', // 审核
 					
-					platinum_customer_info_stop_delete = 'platinum_customer_info_stop_delete', // 删除
+					platinum_broker_management_resume = 'platinum_broker_management_resume', // 恢复
 					
 					account_info_trade_btn_child_modify = 'account_info_trade_btn_child_modify', // 修改
 					
@@ -222,18 +298,18 @@ export enum ModalEnum {
 					
 					account_info_manager_btn_modify = 'account_info_manager_btn_modify', // 修改
 					
-					account_info_manager_btn_reset = 'account_info_manager_btn_reset', // 重置密码
-					
 					account_info_manager_btn_locked = 'account_info_manager_btn_locked', // 锁定
 					
 					account_info_manager_btn_unlocked = 'account_info_manager_btn_unlocked', // 解锁
 					
 					account_info_manager_btn_logout = 'account_info_manager_btn_logout', // 注销
 					
-					account_info_futures_btn_child_credit = 'account_info_futures_btn_child_credit', // 授信
+					account_info_manager_btn_reset = 'account_info_manager_btn_reset', // 重置密码
 					
-					account_info_futures_btn_child_modify = 'account_info_futures_btn_child_modify', // 修改
+					account_info_futures_btn_child_credit = 'account_info_futures_btn_child_credit', // 授信
 					
 					account_info_futures_btn_child_cancel = 'account_info_futures_btn_child_cancel', // 注销
 					
+					account_info_futures_btn_child_modify = 'account_info_futures_btn_child_modify', // 修改
+					
 }

+ 20 - 0
src/common/setup/order/orderData.ts

@@ -0,0 +1,20 @@
+import { initData } from '@/common/methods';
+import APP from '@/services';
+import { OperationTabMenu } from '@/services/go/commonService/interface';
+import { ref } from 'vue';
+// 处理页面下半部分数据
+export function handleOrderData() {
+    // 单据菜单数据
+    const orderList = ref<OperationTabMenu[]>([])
+    const isBottom = ref<boolean>(false)
+    initData(() => {
+        const menuList = APP.getRef('menus');
+        const findResult = menuList.value.find((e: OperationTabMenu) => e.code === 'bottom' && e.type === 4);
+        if (findResult) {
+            isBottom.value = true
+            orderList.value = findResult.children
+        }
+    });
+
+    return { isBottom, orderList }
+}

+ 9 - 13
src/layout/components/bottom.vue

@@ -2,8 +2,8 @@
   <section :class="['layout-bottom', isShowBottom ? 'layout-bottom-all' : 'layout-bottom-hidden']">
     <CapitalInfo class="capital-info-container"></CapitalInfo>
     <main>
-      <firstMenu :list="list"
-                 :value="'value'"
+      <firstMenu :list="orderList"
+                 :value="'title'"
                  @selectMenu="selectMenu">
         <div class="conditionIcon icon iconfont icon-shouqi"
              @click="openOrCloseBottom"></div>
@@ -23,6 +23,10 @@ import firstMenu from '@/common/components/firstMenu/index.vue';
 import thirdMenu from '@/common/components/thirdMenu/index.vue';
 import quoteTable from '@/common/components/quoteTable/index.vue';
 import { MenuItem } from '@/common/components/contextMenu/interface';
+import APP from '@/services';
+import { initData } from '@/common/methods';
+import { OperationTabMenu } from '@/services/go/commonService/interface';
+import { handleOrderData } from '@/common/setup/order/orderData';
 
 const columns = [
     { title: '序号', width: 100, dataIndex: 'name', key: 'name', fixed: 'left', align: 'center' },
@@ -61,14 +65,6 @@ for (let i = 0; i < 100; i++) {
     });
 }
 
-function handleMenu() {
-    const list = [
-        { key: '1', value: '仓单贸易' },
-        { key: '2', value: '拍卖' },
-    ];
-    function selectMenu(item: any) {}
-    return { list, selectMenu };
-}
 // 控制底部打开与关闭
 function handleBottom() {
     const isShowBottom = ref<boolean>(true);
@@ -87,13 +83,13 @@ export default defineComponent({
         thirdMenu,
     },
     setup() {
-        const { list, selectMenu } = handleMenu();
+        // 控制底部展开逻辑
         const { isShowBottom, openOrCloseBottom } = handleBottom();
+        const { orderList } = handleOrderData();
         return {
             columns,
             data,
-            list,
-            selectMenu,
+            orderList,
             isShowBottom,
             openOrCloseBottom,
         };

+ 6 - 17
src/layout/index.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="layout">
-    <LayoutTop @chooseMenu="chooseMenu" />
-    <template v-if="true">
+    <LayoutTop />
+    <template v-if="isBottom">
       <div class="sliderLayout">
         <div class="shortLine"></div>
       </div>
@@ -13,13 +13,11 @@
 import LayoutTop from './components/top.vue';
 import LayoutBottom from './components/bottom.vue';
 import { defineComponent, ref } from 'vue';
-import APP from '@/services';
-import { OperationTabMenu } from '@/services/go/commonService/interface';
-import { initData } from '@/common/methods';
+import { handleOrderData } from '@/common/setup/order/orderData';
 
 // 控制下半部分是否显示
 function submitBottomIsShow() {
-    const isShowBottomPart = ref<boolean>(true);
+    const isShowBottomPart = ref<boolean>(false);
     function chooseMenu(value: boolean) {
         isShowBottomPart.value = value;
     }
@@ -33,17 +31,8 @@ export default defineComponent({
         LayoutBottom,
     },
     setup() {
-        const menuList = APP.getRef('menus');
-        const { isShowBottomPart, chooseMenu } = submitBottomIsShow();
-        initData(() => {
-            // 判断是否有单据
-            if (menuList.value.find((e: OperationTabMenu) => e.code === 'bottom' && e.type === 4)) {
-                isShowBottomPart.value = true;
-            }
-            isShowBottomPart.value = true;
-        });
-
-        return { isShowBottomPart, chooseMenu };
+        const { isBottom } = handleOrderData();
+        return { isBottom };
     },
 });
 </script>

+ 5 - 5
src/services/request/serviceURL.ts

@@ -80,10 +80,10 @@ export const setServiceURL = (config: URL): void => {
     // console.log('URL', config);
     //外网环境(175),外包同事使用
     serviceURL = config;
-    if (process.env.NODE_ENV === 'development') {
-        serviceURL.goCommonSearchUrl = 'http://218.17.158.45:21001/api';
-        serviceURL.quoteUrl = 'ws://218.17.158.45:21004';
-        serviceURL.tradeUrl = 'ws://218.17.158.45:21005';
-    }
+    // if (process.env.NODE_ENV === 'development') {
+    //     serviceURL.goCommonSearchUrl = 'http://218.17.158.45:21001/api';
+    //     serviceURL.quoteUrl = 'ws://218.17.158.45:21004';
+    //     serviceURL.tradeUrl = 'ws://218.17.158.45:21005';
+    // }
     console.log(serviceURL);
 };

+ 21 - 0
src/views/business/order/funding_information/index.vue

@@ -0,0 +1,21 @@
+<template>
+  <!-- 资金信息 -->
+  <section class="funding_information">
+    资金信息
+  </section>
+</template>
+
+<script lang="ts">
+import { defineComponent } from 'vue';
+import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
+export default defineComponent({
+    name: enumOrderComponents.funding_information,
+    components: {},
+    setup() {
+        return {};
+    },
+});
+</script>
+
+<style lang="less">
+</style>;

+ 21 - 0
src/views/business/order/performance_information/index.vue

@@ -0,0 +1,21 @@
+<template>
+  <!-- 履约信息 -->
+  <section class="performance_information">
+    履约信息
+  </section>
+</template>
+
+<script lang="ts">
+import { defineComponent } from 'vue';
+import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
+export default defineComponent({
+    name: enumOrderComponents.performance_information,
+    components: {},
+    setup() {
+        return {};
+    },
+});
+</script>
+
+<style lang="less">
+</style>;

+ 21 - 0
src/views/business/order/pre_sale_warehouse_receipt/index.vue

@@ -0,0 +1,21 @@
+<template>
+  <!-- 预售仓单 -->
+  <section class="pre_sale_warehouse_receipt">
+    预售仓单
+  </section>
+</template>
+
+<script lang="ts">
+import { defineComponent } from 'vue';
+import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
+export default defineComponent({
+    name: enumOrderComponents.pre_sale_warehouse_receipt,
+    components: {},
+    setup() {
+        return {};
+    },
+});
+</script>
+
+<style lang="less">
+</style>;

+ 21 - 0
src/views/business/order/spot_warran/index.vue

@@ -0,0 +1,21 @@
+<template>
+  <!-- 现货仓单 -->
+  <section class="spot_warran">
+    现货仓单
+  </section>
+</template>
+
+<script lang="ts">
+import { defineComponent } from 'vue';
+import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
+export default defineComponent({
+    name: enumOrderComponents.spot_warrant,
+    components: {},
+    setup() {
+        return {};
+    },
+});
+</script>
+
+<style lang="less">
+</style>;

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff