yu jie 4 éve
szülő
commit
777ca09c5f

+ 0 - 105
generate-code/cli.js

@@ -1,105 +0,0 @@
-#! /usr/bin/env node
-
-// Node Cli 应用入口文件必须要有这样的文件头
-// 如果是 Linux 或者 macos 系统还需要修改此文件的读写权限为 755
-// 具体是通过 chmod 755 cli.js 实现修改
-
-// console.log('working');
-// 脚手架的工作过程
-// 1.通过命令交互询问用户问题
-// 2.根据用户回答的结果生成文件
-
-const inquirer = require('inquirer');
-const fs = require('fs');
-const path = require('path');
-const ejs = require('ejs');
-
-// 读取json
-const list = JSON.parse(fs.readFileSync('./generate-code/pc_menu_企业风管.json'));
-// 目标目录
-// const destDir = process.cwd();
-const destDir = path.join(process.cwd(), 'src/pages');
-
-//检查某个目录是否存在
-function hasFile(url, code) {
-	const temp = path.join(url, `/${code}`);
-	try {
-		//检查某个目录是否存在
-		fs.statSync(temp);
-		return true;
-	} catch (error) {
-		return false;
-	}
-}
-
-// 模板目录
-const tempDir = path.join(__dirname, 'templates');
-
-function writeFile(url, code) {
-	if (!hasFile(url, code)) {
-		return fs.promises.mkdir(temp);
-	}
-	return Promise.resolve();
-}
-
-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) => {
-							writeFile(path.join(destDir, `/${code}/${item.code}`), e.code).then(() => {
-								if (!hasFile(path.join(destDir, `/${code}/${item.code}`), 'index.vue')) {
-									const obj = { code: e.code };
-									// ejs.renderFile(tempDir, obj, (err, result) => {
-									// 	if (err) throw err;
-									// 	// fs.writeFileSync(path.join(destDir, `/${code}/${item.code}/${e.code}`), result);
-									// });
-									fs.writeFileSync(
-										path.join(destDir, `/${code}/${item.code}/${e.code}/index.vue`),
-										''
-									);
-								}
-								writeFile(path.join(destDir, `/${code}/${item.code}/${e.code}`), 'components');
-							});
-						});
-					}
-				});
-			});
-		}
-	});
-});
-
-// console.log(list);
-// inquirer
-// 	.prompt([
-// 		{
-// 			type: 'input',
-// 			name: 'name',
-// 			message: 'Project name'
-// 		}`
-// 	])
-// 	.then((ansers) => {
-// 		// console.log(ansers);
-// 		// 根据用户回答的结果生成文件
-
-// 		// 模板目录
-// 		const tempDir = path.join(__dirname, 'templates');
-// 		// 目标目录
-// 		const destDir = process.cwd();
-
-// 		// 将模板下的文件全部转换到目标下目录
-// 		fs.readdir(tempDir, (err, files) => {
-// 			if (err) throw err;
-// 			files.forEach((file) => {
-// 				// 通过目标引擎渲染文件
-// 				ejs.renderFile(path.join(tempDir, file), ansers, (err, result) => {
-// 					if (err) throw err;
-// 					// 将结果写入目标文件路径
-// 					// fs.writeFileSync(path.join(destDir, file), result);
-// 				});
-// 			});
-// 		});
-// 	});

+ 0 - 10
generate-code/package.json

@@ -1,10 +0,0 @@
-{
-    "name": "generate-code",
-    "version": "1.0.0",
-    "main": "index.js",
-    "bin": "cli.js",
-    "license": "MIT",
-    "dependencies": {
-      "ejs": "^3.1.6"
-    }
-  }

+ 0 - 2339
generate-code/pc_menu_企业风管.json

@@ -1,2339 +0,0 @@
-[
-  {
-    "code": "market",
-    "title": "市场",
-    "sort": 1,
-    "type": 1,
-    "rulekey": "client_pc_web_market",
-    "isshow": false,
-    "children": [
-      {
-        "code": "futures",
-        "title": "期货",
-        "sort": 1,
-        "type": 1,
-        "rulekey": "",
-        "isshow": false,
-        "children": [
-          {
-            "code": "dominant_contract",
-            "title": "主力",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "",
-            "isshow": false,
-            "children": []
-          },
-          {
-            "code": "night_plate",
-            "title": "夜盘",
-            "sort": 2,
-            "type": 1,
-            "rulekey": "",
-            "isshow": false,
-            "children": []
-          },
-          {
-            "code": "main_contract",
-            "title": "主连",
-            "sort": 3,
-            "type": 1,
-            "rulekey": "",
-            "isshow": false,
-            "children": []
-          },
-          {
-            "code": "position",
-            "title": "持仓",
-            "sort": 21,
-            "type": 1,
-            "rulekey": "",
-            "isshow": false,
-            "children": [
-              {
-                "code": "open",
-                "title": "开仓",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "",
-                "isshow": false,
-                "children": []
-              },
-              {
-                "code": "close",
-                "title": "平仓",
-                "sort": 2,
-                "type": 2,
-                "rulekey": "",
-                "isshow": false,
-                "children": []
-              }
-            ]
-          },
-          {
-            "code": "orderdetail",
-            "title": "委托",
-            "sort": 22,
-            "type": 1,
-            "rulekey": "",
-            "isshow": false,
-            "children": []
-          },
-          {
-            "code": "tradedetail",
-            "title": "成交",
-            "sort": 23,
-            "type": 1,
-            "rulekey": "",
-            "isshow": false,
-            "children": []
-          },
-          {
-            "code": "closedetail",
-            "title": "平仓",
-            "sort": 24,
-            "type": 1,
-            "rulekey": "",
-            "isshow": false,
-            "children": []
-          }
-        ]
-      }
-    ]
-  },
-  {
-    "code": "info",
-    "title": "信息",
-    "sort": 2,
-    "type": 1,
-    "rulekey": "",
-    "isshow": true,
-    "children": [
-      {
-        "code": "custom_info",
-        "title": "客户资料",
-        "sort": 1,
-        "type": 1,
-        "rulekey": "client_customer",
-        "isshow": true,
-        "children": [
-          {
-            "code": "custom_info_unsubmit",
-            "title": "未提交",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "client_customer_unsubmit",
-            "isshow": true,
-            "children": [
-              {
-                "code": "custom_info_btn_delete",
-                "title": "删除",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_customer_delete",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "custom_info_btn_modify",
-                "title": "修改",
-                "sort": 2,
-                "type": 2,
-                "rulekey": "client_customer_update",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          },
-          {
-            "code": "custom_info_checkpending",
-            "title": "待审核",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "client_customer_unaduit",
-            "isshow": true,
-            "children": [
-              {
-                "code": "custom_info_btn_cancel",
-                "title": "撤销",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_customer_cancel",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "custom_info_btn_check",
-                "title": "审核",
-                "sort": 2,
-                "type": 2,
-                "rulekey": "client_customer_check",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          },
-          {
-            "code": "custom_info_normal",
-            "title": "正常",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "client_customer_normal",
-            "isshow": true,
-            "children": [
-              {
-                "code": "custom_info_btn_add",
-                "title": "新增",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_customer_add",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "custom_info_btn_disable",
-                "title": "停用",
-                "sort": 3,
-                "type": 2,
-                "rulekey": "client_customer_disable",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          },
-          {
-            "code": "custom_info_disabled",
-            "title": "停用",
-            "sort": 2,
-            "type": 1,
-            "rulekey": "client_customer_stop",
-            "isshow": true,
-            "children": [
-              {
-                "code": "custom_info_btn_recover",
-                "title": "恢复",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_customer_restore",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          }
-        ]
-      },
-      {
-        "code": "goods_info",
-        "title": "商品信息",
-        "sort": 2,
-        "type": 1,
-        "rulekey": "client_deliverygoods",
-        "isshow": true,
-        "children": [
-          {
-            "code": "goods_info_spot",
-            "title": "现货品种",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "client_deliverygoods_spot",
-            "isshow": true,
-            "children": [
-              {
-                "code": "goods_info_spot_normal",
-                "title": "正常",
-                "sort": 1,
-                "type": 1,
-                "rulekey": "",
-                "isshow": true,
-                "children": [
-                  {
-                    "code": "goods_info_spot_normal_add",
-                    "title": "新增",
-                    "sort": 1,
-                    "type": 2,
-                    "rulekey": "client_deliverygoods_add",
-                    "isshow": true,
-                    "children": []
-                  },
-                  {
-                    "code": "goods_info_spot_normal_modify",
-                    "title": "修改",
-                    "sort": 2,
-                    "type": 2,
-                    "rulekey": "client_deliverygoods_spot_modify",
-                    "isshow": true,
-                    "children": []
-                  },
-                  {
-                    "code": "goods_info_spot_normal_disable",
-                    "title": "停用",
-                    "sort": 3,
-                    "type": 2,
-                    "rulekey": "client_deliverygoods_spot_disable",
-                    "isshow": true,
-                    "children": []
-                  }
-                ]
-              },
-              {
-                "code": "goods_info_spot_disable",
-                "title": "停用",
-                "sort": 2,
-                "type": 1,
-                "rulekey": "",
-                "isshow": true,
-                "children": [
-                ]
-              }
-            ]
-          },
-          {
-            "code": "goods_info_hedge",
-            "title": "套保品种",
-            "sort": 2,
-            "type": 1,
-            "rulekey": "client_deliverygoods_hedge",
-            "isshow": true,
-            "children": [
-              {
-                "code": "goods_info_hedge_normal",
-                "title": "正常",
-                "sort": 1,
-                "type": 1,
-                "rulekey": "",
-                "isshow": true,
-                "children": [
-                  {
-                    "code": "goods_info_hedge_normal_modify",
-                    "title": "修改",
-                    "sort": 2,
-                    "type": 2,
-                    "rulekey": "client_deliverygoods_hedge_modify",
-                    "isshow": true,
-                    "children": []
-                  }
-                ]
-              },
-              {
-                "code": "goods_info_hedge_disable",
-                "title": "停用",
-                "sort": 2,
-                "type": 1,
-                "rulekey": "client_deliverygoods_hedge_disable",
-                "isshow": true,
-                "children": [
-                ]
-              }
-            ]
-          }
-        ]
-      },
-      {
-        "code": "spot_contract",
-        "title": "现货合同",
-        "sort": 3,
-        "type": 1,
-        "rulekey": "client_spotcontract",
-        "isshow": true,
-        "children": [
-          {
-            "code": "spot_contract_unsubmitted",
-            "title": "未提交",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "client_spotcontract_unsubmit",
-            "isshow": true,
-            "children": [
-              {
-                "code": "spot_contract_btn_add",
-                "title": "新增",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_spotcontract_add",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "spot_contract_btn_modify",
-                "title": "重新提交",
-                "sort": 2,
-                "type": 2,
-                "rulekey": "client_spotcontract_recommit",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "spot_contract_btn_delete",
-                "title": "删除",
-                "sort": 3,
-                "type": 2,
-                "rulekey": "",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          },
-          {
-            "code": "spot_contract_checkpending",
-            "title": "待审核",
-            "sort": 2,
-            "type": 1,
-            "rulekey": "client_spotcontract_unaduit",
-            "isshow": true,
-            "children": [
-              {
-                "code": "spot_contract_btn_check",
-                "title": "审核",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_spotcontract_check",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "spot_contract_btn_cancel",
-                "title": "撤销",
-                "sort": 2,
-                "type": 2,
-                "rulekey": "client_spotcontract_cancel",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          },
-          {
-            "code": "spot_contract_performance",
-            "title": "履约中",
-            "sort": 3,
-            "type": 1,
-            "rulekey": "client_spotcontract_agreement",
-            "isshow": true,
-            "children": [
-              {
-                "code": "spot_contract_btn_finish",
-                "title": "正常完结",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_spotcontract_finish",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          },
-          {
-            "code": "spot_contract_finished",
-            "title": "已完成",
-            "sort": 4,
-            "type": 1,
-            "rulekey": "client_spotcontract_completed",
-            "isshow": true,
-            "children": []
-          }
-        ]
-      },
-      {
-        "code": "warehouse_info",
-        "title": "仓库信息",
-        "sort": 4,
-        "type": 1,
-        "rulekey": "client_warehouse",
-        "isshow": true,
-        "children": [
-          {
-            "code": "warehouse_info_normal",
-            "title": "正常",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "client_warehouse_normal",
-            "isshow": true,
-            "children": [
-              {
-                "code": "warehouse_info_btn_add",
-                "title": "新增",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_warehouse_add",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "warehouse_info_btn_modify",
-                "title": "修改",
-                "sort": 2,
-                "type": 2,
-                "rulekey": "client_warehouse_update",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "warehouse_info_btn_disable",
-                "title": "停用",
-                "sort": 3,
-                "type": 2,
-                "rulekey": "client_warehouse_stop",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          },
-          {
-            "code": "warehouse_info_disabled",
-            "title": "停用",
-            "sort": 2,
-            "type": 1,
-            "rulekey": "client_warehouse_stop",
-            "isshow": true,
-            "children": [
-              {
-                "code": "warehouse_info_btn_recover",
-                "title": "恢复",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_warehouse_restore",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          }
-        ]
-      },
-      {
-        "code": "account_info",
-        "title": "账户管理",
-        "sort": 4,
-        "type": 1,
-        "rulekey": "client_accountmanage",
-        "isshow": true,
-        "children": [
-          {
-            "code": "account_info_business",
-            "title": "业务账户",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "client_accountmanage_business",
-            "isshow": true,
-            "children": [
-              {
-                "code": "account_info_business_btn_add",
-                "title": "新增",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_accountmanage_business_add",
-                "isshow": true,
-                "remartk": "新增账户 - 业务员/跟单员",
-                "children": [
-                  {
-                    "code": "account_info_business_btn_modify",
-                    "title": "修改",
-                    "sort": 2,
-                    "type": 2,
-                    "rulekey": "client_accountmanage_business_update",
-                    "isshow": true,
-                    "children": []
-                  },
-                  {
-                    "code": "account_info_business_btn_reset",
-                    "title": "重置密码",
-                    "sort": 3,
-                    "type": 2,
-                    "rulekey": "client_accountmanage_business_resetpwd",
-                    "isshow": true,
-                    "children": []
-                  },
-                  {
-                    "code": "account_info_business_btn_locked",
-                    "title": "锁定",
-                    "sort": 2,
-                    "type": 2,
-                    "rulekey": "client_accountmanage_business_lock",
-                    "isshow": true,
-                    "children": []
-                  },
-                  {
-                    "code": "account_info_business_btn_unlocked",
-                    "title": "解锁",
-                    "sort": 2,
-                    "type": 2,
-                    "rulekey": "client_accountmanage_business_unlock",
-                    "isshow": true,
-                    "children": []
-                  },
-                  {
-                    "code": "account_info_business_btn_cancel",
-                    "title": "注销",
-                    "sort": 2,
-                    "type": 2,
-                    "rulekey": "client_accountmanage_business_close",
-                    "isshow": true,
-                    "children": []
-                  }
-                ]
-              }
-            ]
-          },
-          {
-            "code": "account_info_trade",
-            "title": "交易账户",
-            "sort": 2,
-            "type": 1,
-            "rulekey": "client_accountmanage_trade",
-            "isshow": true,
-            "children": [
-              {
-                "code": "account_info_trade_btn_add",
-                "title": "新增",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "",
-                "isshow": true,
-                "remartk": "新增账户 - 新增交易用户",
-                "children": [
-                  {
-                    "code": "account_info_trade_child_btn_add",
-                    "title": "新增",
-                    "sort": 1,
-                    "type": 2,
-                    "rulekey": "client_accountmanage_trade_add",
-                    "isshow": true,
-                    "remartk": "新增账户 - 新增交易员",
-                    "children": [
-                      {
-                        "code": "account_info_trade_btn_child_modify",
-                        "title": "修改",
-                        "sort": 1,
-                        "type": 2,
-                        "rulekey": "client_accountmanage_trade_update",
-                        "isshow": true,
-                        "children": []
-                      },
-                      {
-                        "code": "account_info_trade_btn_child_reset",
-                        "title": "重置密码",
-                        "sort": 2,
-                        "type": 2,
-                        "rulekey": "client_accountmanage_trade_resetpwd",
-                        "isshow": true,
-                        "children": []
-                      },
-                      {
-                        "code": "account_info_trade_btn_child_locked",
-                        "title": "锁定",
-                        "sort": 2,
-                        "type": 2,
-                        "rulekey": "client_accountmanage_trade_lock",
-                        "isshow": true,
-                        "children": []
-                      },
-                      {
-                        "code": "account_info_trade_btn_child_unlocked",
-                        "title": "解锁",
-                        "sort": 2,
-                        "type": 2,
-                        "rulekey": "client_accountmanage_trade_unlock",
-                        "isshow": true,
-                        "children": []
-                      },
-                      {
-                        "code": "account_info_trade_btn_child_logout",
-                        "title": "注销",
-                        "sort": 2,
-                        "type": 2,
-                        "rulekey": "client_accountmanage_trade_close",
-                        "isshow": true,
-                        "children": []
-                      }
-                    ]
-                  },
-                  {
-                    "code": "account_info_trade_btn_modify",
-                    "title": "修改",
-                    "sort": 2,
-                    "type": 2,
-                    "rulekey": "",
-                    "isshow": true,
-                    "remartk": "修改账户 - 修改交易用户",
-                    "children": []
-                  }
-                ]
-              }
-            ]
-          },
-          {
-            "code": "account_info_manager",
-            "title": "管理账户",
-            "sort": 2,
-            "type": 1,
-            "rulekey": "client_accountmanage_manage",
-            "isshow": true,
-            "children": [
-              {
-                "code": "account_info_manager_btn_add",
-                "title": "新增权限模板",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "",
-                "isshow": true,
-                "remartk": "管理账户 - 新增权限模板",
-                "children": [
-                  {
-                    "code": "account_info_manager_btn_child_add",
-                    "title": "新增",
-                    "sort": 1,
-                    "type": 2,
-                    "rulekey": "",
-                    "isshow": true,
-                    "remartk": "管理账户 - 新增管理员",
-                    "children": [
-                      {
-                        "code": "account_info_manager_btn_modify",
-                        "title": "修改",
-                        "sort": 2,
-                        "type": 2,
-                        "rulekey": "client_accountmanage_update",
-                        "isshow": true,
-                        "children": []
-                      },
-                      {
-                        "code": "account_info_manager_btn_reset",
-                        "title": "重置密码",
-                        "sort": 2,
-                        "type": 2,
-                        "rulekey": "client_accountmanage_resetpwd",
-                        "isshow": true,
-                        "children": []
-                      },
-                      {
-                        "code": "account_info_manager_btn_locked",
-                        "title": "锁定",
-                        "sort": 2,
-                        "type": 2,
-                        "rulekey": "client_accountmanage_lock",
-                        "isshow": true,
-                        "children": []
-                      },
-                      {
-                        "code": "account_info_manager_btn_unlocked",
-                        "title": "解锁",
-                        "sort": 2,
-                        "type": 2,
-                        "rulekey": "client_accountmanage_unlock",
-                        "isshow": true,
-                        "children": []
-                      },
-                      {
-                        "code": "account_info_manager_btn_logout",
-                        "title": "注销",
-                        "sort": 2,
-                        "type": 2,
-                        "rulekey": "client_accountmanage_close",
-                        "isshow": true,
-                        "children": []
-                      }
-                    ]
-                  }
-                ]
-              },
-              {
-                "code": "account_info_manager_btn_setting",
-                "title": "权限设置",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          },
-          {
-            "code": "account_info_futures",
-            "title": "期货账户",
-            "sort": 2,
-            "type": 1,
-            "rulekey": "client_accountmanage_ta",
-            "isshow": true,
-            "children": [
-              {
-                "code": "account_info_futures_btn_add",
-                "title": "新增",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_accountmanage_ta_mainadd",
-                "isshow": true,
-                "remartk": "期货账户 - 新增期货账户",
-                "children": [
-                  {
-                    "code": "account_info_futures_btn_child_add",
-                    "title": "新增",
-                    "sort": 1,
-                    "type": 2,
-                    "rulekey": "client_accountmanage_ta_subadd",
-                    "isshow": true,
-                    "remartk": "期货账户 - 新增期货子账户",
-                    "children": [
-                      {
-                        "code": "account_info_futures_btn_child_credit",
-                        "title": "授信",
-                        "sort": 1,
-                        "type": 2,
-                        "rulekey": "client_accountmanage_ta_subcredit",
-                        "isshow": true,
-                        "children": []
-                      },
-                      {
-                        "code": "account_info_futures_btn_child_modify",
-                        "title": "修改",
-                        "sort": 2,
-                        "type": 2,
-                        "rulekey": "client_accountmanage_ta_subupdate",
-                        "isshow": true,
-                        "children": []
-                      },
-                      {
-                        "code": "account_info_futures_btn_child_cancel",
-                        "title": "注销",
-                        "sort": 2,
-                        "type": 2,
-                        "rulekey": "client_accountmanage_ta_subclose",
-                        "isshow": true,
-                        "children": []
-                      }
-                    ]
-                  },
-                  {
-                    "code": "account_info_futures_btn_modify",
-                    "title": "修改",
-                    "sort": 2,
-                    "type": 2,
-                    "rulekey": "client_accountmanage_ta_mainupdate",
-                    "isshow": true,
-                    "remartk": "期货账户 - 修改期货子账户",
-                    "children": []
-                  }
-                ]
-              }
-            ]
-          }
-        ]
-      }
-    ]
-  },
-  {
-    "code": "business",
-    "title": "业务",
-    "sort": 3,
-    "type": 1,
-    "rulekey": "",
-    "isshow": true,
-    "children": [
-      {
-        "code": "purchase",
-        "title": "采购",
-        "sort": 1,
-        "type": 1,
-        "rulekey": "client_po",
-        "isshow": true,
-        "children": [
-          {
-            "code": "purchase_pending",
-            "title": "待点价",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "client_po_unpoint",
-            "isshow": true,
-            "children": [
-              {
-                "code": "purchase_pending_someprice",
-                "title": "点价登记",
-                "sort": 2,
-                "type": 2,
-                "rulekey": "client_po_point_register",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          },
-          {
-            "code": "purchase_performance",
-            "title": "履约交收",
-            "sort": 2,
-            "type": 1,
-            "rulekey": "client_po_settle",
-            "isshow": true,
-            "children": [
-              {
-                "code": "purchase_pending_settlement",
-                "title": "交收登记",
-                "sort": 2,
-                "type": 2,
-                "rulekey": "client_po_settle_register",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "purchase_pending_funds",
-                "title": "款项登记",
-                "sort": 2,
-                "type": 2,
-                "rulekey": "client_po_fund_register",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "purchase_pending_invoice",
-                "title": "发票登记",
-                "sort": 3,
-                "type": 2,
-                "rulekey": "client_po_invoice_register",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "purchase_pending_storage",
-                "title": "入库登记",
-                "sort": 4,
-                "type": 2,
-                "rulekey": "client_po_instock_register",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          },
-          {
-            "code": "purchase_all",
-            "title": "全部",
-            "sort": 3,
-            "type": 1,
-            "rulekey": "client_po_all",
-            "isshow": true,
-            "children": []
-          }
-        ]
-      },
-      {
-        "code": "sell",
-        "title": "销售",
-        "sort": 2,
-        "type": 1,
-        "rulekey": "client_so",
-        "isshow": true,
-        "children": [
-          {
-            "code": "sell_pending",
-            "title": "待点价",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "client_so_unpoint",
-            "isshow": true,
-            "children": [
-              {
-                "code": "sell_pending_someprice",
-                "title": "点价登记",
-                "sort": 2,
-                "type": 2,
-                "rulekey": "client_so_point_register",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          },
-          {
-            "code": "sell_performance",
-            "title": "履约交收",
-            "sort": 2,
-            "type": 1,
-            "rulekey": "client_so_settle",
-            "isshow": true,
-            "children": [
-              {
-                "code": "sell_pending_settlement",
-                "title": "交收登记",
-                "sort": 2,
-                "type": 2,
-                "rulekey": "client_so_settle_register",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "sell_pending_funds",
-                "title": "款项登记",
-                "sort": 2,
-                "type": 2,
-                "rulekey": "client_so_fund_register",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "sell_pending_invoice",
-                "title": "发票登记",
-                "sort": 3,
-                "type": 2,
-                "rulekey": "client_so_invoice_register",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "sell_pending_storage",
-                "title": "出库登记",
-                "sort": 4,
-                "type": 2,
-                "rulekey": "client_so_outstock_register",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          },
-          {
-            "code": "sell_all",
-            "title": "全部",
-            "sort": 3,
-            "type": 1,
-            "rulekey": "client_so_all",
-            "isshow": true,
-            "children": []
-          }
-        ]
-      },
-      {
-        "code": "exposure",
-        "title": "敞口",
-        "sort": 3,
-        "type": 1,
-        "rulekey": "client_exposure",
-        "isshow": true,
-        "children": [
-          {
-            "code": "exposure_realtime",
-            "title": "实时敞口",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "client_exposure_real",
-            "isshow": true,
-            "children": []
-          },
-          {
-            "code": "exposure_spot",
-            "title": "现货头寸",
-            "sort": 2,
-            "type": 1,
-            "rulekey": "client_exposure_spot",
-            "isshow": true,
-            "children": []
-          },
-          {
-            "code": "exposure_futures",
-            "title": "期货头寸",
-            "sort": 3,
-            "type": 1,
-            "rulekey": "client_exposure_future",
-            "isshow": true,
-            "children": []
-          },
-          {
-            "code": "exposure_history",
-            "title": "历史敞口",
-            "sort": 4,
-            "type": 1,
-            "rulekey": "client_exposure_his",
-            "isshow": true,
-            "children": []
-          }
-        ]
-      },
-      {
-        "code": "plan",
-        "title": "计划",
-        "sort": 4,
-        "type": 1,
-        "rulekey": "client_hedgeplan",
-        "isshow": true,
-        "children": [
-          {
-            "code": "plan_uncommitted",
-            "title": "未提交",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "client_hedgeplan_unsubmit",
-            "isshow": true,
-            "children": [
-              {
-                "code": "plan_btn_add",
-                "title": "新增",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_hedgeplan_add",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "plan_uncommitted_modify",
-                "title": "修改",
-                "sort": 3,
-                "type": 2,
-                "rulekey": "client_hedgeplan_update",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "plan_uncommitted_delete",
-                "title": "删除",
-                "sort": 4,
-                "type": 2,
-                "rulekey": "",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          },
-          {
-            "code": "plan_audit",
-            "title": "待审核",
-            "sort": 2,
-            "type": 1,
-            "rulekey": "client_hedgeplan_unaduit",
-            "isshow": true,
-            "children": [
-              {
-                "code": "plan_audit_audit",
-                "title": "审核",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_hedgeplan_check",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "plan_audit_cancel",
-                "title": "撤销",
-                "sort": 3,
-                "type": 2,
-                "rulekey": "client_hedgeplan_cancel",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          },
-          {
-            "code": "plan_running",
-            "title": "执行中",
-            "sort": 3,
-            "type": 1,
-            "rulekey": "client_hedgeplan_inprogress",
-            "isshow": true,
-            "children": []
-          }
-        ]
-      }
-    ]
-  },
-  {
-    "code": "manage",
-    "title": "管理",
-    "sort": 4,
-    "type": 1,
-    "rulekey": "",
-    "isshow": true,
-    "children": [
-      {
-        "code": "business_review",
-        "title": "业务审核",
-        "sort": 1,
-        "type": 1,
-        "rulekey": "client_business",
-        "isshow": true,
-        "children": [
-          {
-            "code": "business_review_someprice",
-            "title": "点价",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "client_business_point",
-            "isshow": true,
-            "children": [
-              {
-                "code": "business_review_someprice_audit",
-                "title": "审核",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_business_point_check",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "business_review_someprice_cancel",
-                "title": "撤销",
-                "sort": 2,
-                "type": 2,
-                "rulekey": "client_business_point_cancel",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          },
-          {
-            "code": "business_review_settlement",
-            "title": "交收",
-            "sort": 2,
-            "type": 1,
-            "rulekey": "client_business_settle",
-            "isshow": true,
-            "children": [
-              {
-                "code": "business_review_settlement_audit",
-                "title": "审核",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_business_settle_check",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "business_review_settlement_cancel",
-                "title": "撤销",
-                "sort": 2,
-                "type": 2,
-                "rulekey": "client_business_settle_cancel",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          }
-        ]
-      },
-      {
-        "code": "finance_review",
-        "title": "财务审核",
-        "sort": 2,
-        "type": 1,
-        "rulekey": "client_finance",
-        "isshow": true,
-        "children": [
-          {
-            "code": "finance_review_funds",
-            "title": "款项",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "client_finance_fund",
-            "isshow": true,
-            "children": [
-              {
-                "code": "finance_review_funds_audit",
-                "title": "审核",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_finance_fund_check",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "finance_review_funds_cancel",
-                "title": "撤销",
-                "sort": 2,
-                "type": 2,
-                "rulekey": "client_finance_fund_cancel",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          },
-          {
-            "code": "finance_review_invoice",
-            "title": "发票",
-            "sort": 2,
-            "type": 1,
-            "rulekey": "client_finance_invoice",
-            "isshow": true,
-            "children": [
-              {
-                "code": "finance_review_invoice_audit",
-                "title": "审核",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_finance_invoice_check",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "finance_review_invoice_cancel",
-                "title": "撤销",
-                "sort": 2,
-                "type": 2,
-                "rulekey": "client_finance_invoice_cancel",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          }
-        ]
-      },
-      {
-        "code": "inventory_review",
-        "title": "库存审核",
-        "sort": 3,
-        "type": 1,
-        "rulekey": "client_stock_aduit",
-        "isshow": true,
-        "children": [
-          {
-            "code": "inventory_review_checkin",
-            "title": "入库",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "client_stock_in",
-            "isshow": true,
-            "children": [
-              {
-                "code": "inventory_review_checkin_audit",
-                "title": "审核",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_stock_in_aduit",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "inventory_review_checkin_cancel",
-                "title": "撤销",
-                "sort": 2,
-                "type": 2,
-                "rulekey": "client_stock_aduit_cancel",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          },
-          {
-            "code": "inventory_review_checkout",
-            "title": "出库",
-            "sort": 2,
-            "type": 1,
-            "rulekey": "client_stock_out",
-            "isshow": true,
-            "children": [
-              {
-                "code": "inventory_review_checkout_audit",
-                "title": "审核",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_stock_out_aduit",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "inventory_review_checkout_cancel",
-                "title": "撤销",
-                "sort": 2,
-                "type": 2,
-                "rulekey": "",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          }
-        ]
-      }
-    ]
-  },
-  {
-    "code": "search",
-    "title": "查询",
-    "sort": 5,
-    "type": 1,
-    "rulekey": "",
-    "isshow": true,
-    "children": [
-      {
-        "code": "inventory",
-        "title": "库存查询",
-        "sort": 1,
-        "type": 1,
-        "rulekey": "client_stock_manage",
-        "isshow": true,
-        "children": [
-          {
-            "code": "inventory_current",
-            "title": "当前库存",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "client_stock_manage_current",
-            "isshow": true,
-            "children": [
-              {
-                "code": "inventory_current_add",
-                "title": "新增",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_hedgeplan_check",
-                "isshow": true,
-                "children": [
-                  {
-                    "code": "inventory_current_detail_storehouse",
-                    "title": "仓库明细",
-                    "sort": 1,
-                    "type": 2,
-                    "rulekey": "client_hedgeplan_check",
-                    "isshow": true,
-                    "children": []
-                  },
-                  {
-                    "code": "inventory_current_detail_storesave",
-                    "title": "库存明细",
-                    "sort": 1,
-                    "type": 2,
-                    "rulekey": "client_hedgeplan_check",
-                    "isshow": true,
-                    "children": []
-                  }
-                ]
-              }
-            ]
-          },
-          {
-            "code": "inventory_applyrecord",
-            "title": "申请记录",
-            "sort": 2,
-            "type": 1,
-            "rulekey": "client_stock_manage_applylog",
-            "isshow": true,
-            "children": []
-          }
-        ]
-      },
-      {
-        "code": "outaccount_status",
-        "title": "账户状态",
-        "sort": 2,
-        "type": 1,
-        "rulekey": "",
-        "isshow": false,
-        "children": [
-          {
-            "code": "outaccount_status_status",
-            "title": "账户状态",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "",
-            "isshow": true,
-            "children": []
-          }
-        ]
-      }
-    ]
-  },
-  {
-    "code": "report",
-    "title": "报表",
-    "sort": 6,
-    "type": 1,
-    "rulekey": "",
-    "isshow": true,
-    "children": [
-      {
-        "code": "finance_report",
-        "title": "财务报表",
-        "sort": 1,
-        "type": 1,
-        "rulekey": "client_report_finance",
-        "isshow": true,
-        "children": [
-          {
-            "code": "finance_report_finance",
-            "title": "财务报表",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "",
-            "isshow": true,
-            "children": [
-              {
-                "code": "finance_report_finance_category_breakdown",
-                "title": "品类明细",
-                "sort": 1,
-                "type": 3,
-                "rulekey": "",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "finance_report_finance_brand_details",
-                "title": "品牌明细",
-                "sort": 1,
-                "type": 3,
-                "rulekey": "",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          }
-        ]
-      },
-      {
-        "code": "exposure_report",
-        "title": "敞口报表",
-        "sort": 2,
-        "type": 1,
-        "rulekey": "client_report_exposure",
-        "isshow": true,
-        "children": [
-          {
-            "code": "exposure_report_exposure",
-            "title": "敞口报表",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "",
-            "isshow": true,
-            "children": [
-              {
-                "code": "exposure_report_exposure_contract_changes",
-                "title": "现货合同变动量明细",
-                "sort": 1,
-                "type": 3,
-                "rulekey": "",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "exposure_report_exposure_hedging_plan",
-                "title": "套保计划变动量明细",
-                "sort": 1,
-                "type": 3,
-                "rulekey": "",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "exposure_report_exposure_futures_changes",
-                "title": "期货变动量明细",
-                "sort": 1,
-                "type": 3,
-                "rulekey": "",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "exposure_report_exposure_parameter_adjustment_changes",
-                "title": "参数调整变动量明细",
-                "sort": 1,
-                "type": 3,
-                "rulekey": "",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          }
-        ]
-      },
-      {
-        "code": "spot_report",
-        "title": "现货报表",
-        "sort": 3,
-        "type": 1,
-        "rulekey": "client_report_spot",
-        "isshow": true,
-        "children": [
-          {
-            "code": "spot_report_spot",
-            "title": "现货报表",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "",
-            "isshow": true,
-            "children": [
-              {
-                "code": "spot_report_spot_detail",
-                "title": "现货明细",
-                "sort": 1,
-                "type": 3,
-                "rulekey": "",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          }
-        ]
-      },
-      {
-        "code": "inventory_report",
-        "title": "库存报表",
-        "sort": 4,
-        "type": 1,
-        "rulekey": "client_report_stock",
-        "isshow": true,
-        "children": [
-          {
-            "code": "inventory_report_inventory_category",
-            "title": "库存报表(品类)",
-            "sort": 4,
-            "type": 1,
-            "rulekey": "client_report_wrstandstock",
-            "isshow": true,
-            "children": [
-              {
-                "code": "inventory_report_inventory_category_brand_detail",
-                "title": "品牌明细",
-                "sort": 4,
-                "type": 3,
-                "rulekey": "",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "inventory_report_inventory_category_warehouse_detail",
-                "title": "仓库明细",
-                "sort": 4,
-                "type": 3,
-                "rulekey": "",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          },
-          {
-            "code": "inventory_report_warehouse",
-            "title": "库存报表(仓库)",
-            "sort": 4,
-            "type": 1,
-            "rulekey": "client_report_warehousestock",
-            "isshow": true,
-            "children": [
-              {
-                "code": "inventory_report_warehouse_inventory_detail",
-                "title": "库存明细",
-                "sort": 4,
-                "type": 3,
-                "rulekey": "",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          }
-        ]
-      },
-      {
-        "code": "sum_pl_report",
-        "title": "汇总损益报表",
-        "sort": 3,
-        "type": 1,
-        "rulekey": "client_report_sumprofit",
-        "isshow": true,
-        "children": [
-          {
-            "code": "sum_pl_report_sum_pl",
-            "title": "汇总损益报表",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "",
-            "isshow": true,
-            "children": [
-              {
-                "code": "sum_pl_report_profit_and_loss_details",
-                "title": "损益明细",
-                "sort": 4,
-                "type": 3,
-                "rulekey": "",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          }
-        ]
-      },
-      {
-        "code": "future_report",
-        "title": "期货报表",
-        "sort": 3,
-        "type": 1,
-        "rulekey": "client_report_futures",
-        "isshow": true,
-        "children": [
-          {
-            "code": "future_report_future",
-            "title": "期货报表",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "",
-            "isshow": true,
-            "children": [
-              {
-                "code": "future_report_future_detail",
-                "title": "账户明细",
-                "sort": 4,
-                "type": 3,
-                "rulekey": "",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          }
-        ]
-      }
-    ]
-  },
-  {
-    "code": "platinum",
-    "title": "铂金宝",
-    "sort": 6,
-    "type": 1,
-    "rulekey": "",
-    "isshow": true,
-    "children": [
-      {
-        "code": "platinum_customer_info",
-        "title": "客户资料",
-        "sort": 2,
-        "type": 1,
-        "rulekey": "client_pc_web_qhj_khzl",
-        "isshow": true,
-        "children": [
-          {
-            "code": "platinum_custom_info_normal",
-            "title": "正常",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "client_pc_web_qhj_khzl_noraml",
-            "isshow": true,
-            "children": [
-              {
-                "code": "platinum_custom_info_add",
-                "title": "新增",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_pc_web_qhj_khzl_noraml_add",
-                "isshow": true,
-                "children": [
-                  {
-                    "code": "platinum_custom_info_normal_modify",
-                    "title": "修改",
-                    "sort": 2,
-                    "type": 2,
-                    "rulekey": "client_pc_web_qhj_khzl_noraml_modify",
-                    "isshow": false,
-                    "children": []
-                  },
-                  {
-                    "code": "platinum_custom_info_normal_stop",
-                    "title": "停用",
-                    "sort": 3,
-                    "type": 2,
-                    "rulekey": "client_pc_web_qhj_khzl_noraml_stop",
-                    "isshow": true,
-                    "children": []
-                  }
-                ]
-              }
-            ]
-          },
-          {
-            "code": "platinum_customer_info_unsubmit",
-            "title": "待审核",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "client_pc_web_qhj_khzl_waiting",
-            "isshow": true,
-            "children": [
-              {
-                "code": "platinum_custom_info_add",
-                "title": "新增",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_pc_web_qhj_khzl_waiting_add",
-                "isshow": true,
-                "children": [
-                  {
-                    "code": "platinum_customer_info_unsubmit_check",
-                    "title": "审核",
-                    "sort": 2,
-                    "type": 2,
-                    "rulekey": "client_pc_web_qhj_khzl_waiting_check",
-                    "isshow": true,
-                    "children": []
-                  }
-                ]
-              }
-            ]
-          },
-          {
-            "code": "platinum_customer_info_stop",
-            "title": "停用",
-            "sort": 1,
-            "type": 1,
-            "rulekey": "client_pc_web_qhj_khzl_stop",
-            "isshow": true,
-            "children": [
-              {
-                "code": "platinum_custom_info_add",
-                "title": "新增",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_pc_web_qhj_khzl_stop_add",
-                "isshow": true,
-                "children": [
-                  {
-                    "code": "platinum_customer_info_stop_resume",
-                    "title": "恢复",
-                    "sort": 2,
-                    "type": 2,
-                    "rulekey": "client_pc_web_qhj_khzl_stop_resume",
-                    "isshow": true,
-                    "children": []
-                  },
-                  {
-                    "code": "platinum_customer_info_stop_delete",
-                    "title": "删除",
-                    "sort": 3,
-                    "type": 2,
-                    "rulekey": "client_pc_web_qhj_khzl_stop_delete",
-                    "isshow": true,
-                    "children": []
-                  }
-                ]
-              }
-            ]
-          }
-        ]
-      },
-      {
-        "code": "platinum_pick_goods_management",
-        "title": "提货商品管理",
-        "sort": 3,
-        "type": 1,
-        "rulekey": "",
-        "isshow": false,
-        "children": [
-          {
-            "code": "platinum_pick_goods_management_tab",
-            "title": "提货商品管理",
-            "sort": 3,
-            "type": 1,
-            "rulekey": "",
-            "isshow": true,
-            "children": [
-              {
-                "code": "platinum_pick_goods_management_add",
-                "title": "新增",
-                "sort": 3,
-                "type": 2,
-                "rulekey": "",
-                "isshow": true,
-                "children": [
-                  {
-                    "code": "platinum_pick_goods_management_modify",
-                    "title": "修改",
-                    "sort": 1,
-                    "type": 2,
-                    "rulekey": "",
-                    "isshow": true,
-                    "children": []
-                  },
-                  {
-                    "code": "platinum_pick_goods_management_logout",
-                    "title": "注销",
-                    "sort": 1,
-                    "type": 2,
-                    "rulekey": "",
-                    "isshow": true,
-                    "children": []
-                  }
-                ]
-              }
-            ]
-          }
-        ]
-      },
-      {
-        "code": "platinum_pick_query",
-        "title": "提货查询",
-        "sort": 3,
-        "type": 1,
-        "rulekey": "client_pc_web_qhj_thcx",
-        "isshow": true,
-        "children": [
-          {
-            "code": "platinum_pick_query_tab",
-            "title": "提货查询",
-            "sort": 3,
-            "type": 1,
-            "rulekey": "client_pc_web_qhj_thcx",
-            "isshow": true,
-            "children": [
-              {
-                "code": "platinum_pick_query_complete_stocking",
-                "title": "完成备货",
-                "sort": 3,
-                "type": 2,
-                "rulekey": "client_pc_web_qhj_thcx_complete_stocking",
-                "isshow": true,
-                "children": [
-                ]
-              },
-              {
-                "code": "platinum_pick_query_upload_logistics",
-                "title": "上传物流",
-                "sort": 3,
-                "type": 2,
-                "rulekey": "client_pc_web_qhj_thcx_upload_logistics",
-                "isshow": true,
-                "children": [
-                ]
-              },
-              {
-                "code": "platinum_pick_query_receipt",
-                "title": "确认收货",
-                "sort": 3,
-                "type": 2,
-                "rulekey": "client_pc_web_qhj_thcx_receipt",
-                "isshow": true,
-                "children": [
-                ]
-              },
-              {
-                "code": "platinum_pick_query_confirm_pickup",
-                "title": "确认取货",
-                "sort": 3,
-                "type": 2,
-                "rulekey": "client_pc_web_qhj_thcx_pickup",
-                "isshow": true,
-                "children": [
-                ]
-              }
-            ]
-          }
-        ]
-      },
-      {
-        "code": "platinum_recharge_withdrawal_review",
-        "title": "充值和提现审核",
-        "sort": 3,
-        "type": 1,
-        "rulekey": "client_pc_web_qhj_cztx",
-        "isshow": true,
-        "children": [
-          {
-            "code": "platinum_recharge_review_tab",
-            "title": "充值审核",
-            "sort": 3,
-            "type": 1,
-            "rulekey": "client_pc_web_qhj_cztx_recharge_tab",
-            "isshow": true,
-            "children": [
-              {
-                "code": "platinum_recharge_review_confirm_payment",
-                "title": "确认收款",
-                "sort": 3,
-                "type": 2,
-                "rulekey": "client_pc_web_qhj_cztx_recharge_tab_confirm_payment",
-                "isshow": true,
-                "children": [
-                ]
-              },
-              {
-                "code": "platinum_recharge_review_refuse",
-                "title": "审核拒绝",
-                "sort": 3,
-                "type": 2,
-                "rulekey": "client_pc_web_qhj_cztx_recharge_tab_review_refuse",
-                "isshow": true,
-                "children": [
-                ]
-              }
-            ]
-          },
-          {
-            "code": "platinum_withdrawal_review_tab",
-            "title": "提现审核",
-            "sort": 3,
-            "type": 1,
-            "rulekey": "client_pc_web_qhj_cztx_withdrawal_tab",
-            "isshow": true,
-            "children": [
-              {
-                "code": "platinum_withdrawal_review_confirm_withdrawal",
-                "title": "确认提现",
-                "sort": 3,
-                "type": 2,
-                "rulekey": "client_pc_web_qhj_cztx_withdrawal_tab_confirm_withdrawal",
-                "isshow": true,
-                "children": [
-                ]
-              },
-              {
-                "code": "platinum_withdrawal_review_refuse",
-                "title": "审核拒绝",
-                "sort": 3,
-                "type": 2,
-                "rulekey": "client_pc_web_qhj_cztx_withdrawal_tab_review_refuse",
-                "isshow": true,
-                "children": [
-                ]
-              }
-            ]
-          }
-        ]
-      },
-      {
-        "code": "platinum_fixed_investment_price_query",
-        "title": "定投价查询",
-        "sort": 3,
-        "type": 1,
-        "rulekey": "client_pc_web_qhj_dtj",
-        "isshow": true,
-        "children": [
-          {
-            "code": "platinum_fixed_investment_price_query_tab",
-            "title": "定投价查询",
-            "sort": 3,
-            "type": 1,
-            "rulekey": "",
-            "isshow": true,
-            "children": [
-            ]
-          }
-        ]
-      },
-      {
-        "code": "platinum_fixed_investment_query",
-        "title": "定投查询",
-        "sort": 3,
-        "type": 1,
-        "rulekey": "client_pc_web_qhj_dt",
-        "isshow": true,
-        "children": [
-          {
-            "code": "platinum_fixed_investment_plan_query",
-            "title": "定投计划查询",
-            "sort": 3,
-            "type": 1,
-            "rulekey": "client_pc_web_qhj_dt_plan",
-            "isshow": true,
-            "children": [
-            ]
-          },
-          {
-            "code": "platinum_fixed_investment_flow_query",
-            "title": "定投流水查询",
-            "sort": 3,
-            "type": 1,
-            "rulekey": "client_pc_web_qhj_dt_log",
-            "isshow": true,
-            "children": [
-            ]
-          }
-        ]
-      },
-      {
-        "code": "platinum_document_query",
-        "title": "单据查询",
-        "sort": 3,
-        "type": 1,
-        "rulekey": "client_pc_web_qhj_dj",
-        "isshow": true,
-        "children": [
-          {
-            "code": "platinum_document_query_position",
-            "title": "持仓",
-            "sort": 3,
-            "type": 1,
-            "rulekey": "client_pc_web_qhj_dj_position",
-            "isshow": true,
-            "children": [
-            ]
-          },
-          {
-            "code": "platinum_document_query_order",
-            "title": "委托单",
-            "sort": 3,
-            "type": 1,
-            "rulekey": "client_pc_web_qhj_dj_order",
-            "isshow": true,
-            "children": [
-            ]
-          },
-          {
-            "code": "platinum_document_query_waiting",
-            "title": "待付单",
-            "sort": 3,
-            "type": 1,
-            "rulekey": "client_pc_web_qhj_dj_waiting",
-            "isshow": true,
-            "children": [
-            ]
-          },
-          {
-            "code": "platinum_document_query_success",
-            "title": "成交单",
-            "sort": 3,
-            "type": 1,
-            "rulekey": "client_pc_web_qhj_dj_success",
-            "isshow": true,
-            "children": [
-            ]
-          }
-        ]
-      },
-      {
-        "code": "platinum_financing_information",
-        "title": "融资信息",
-        "sort": 3,
-        "type": 1,
-        "rulekey": "client_pc_web_qhj_rz",
-        "isshow": true,
-        "children": [
-          {
-            "code": "platinum_financing_information_tab",
-            "title": "融资信息",
-            "sort": 3,
-            "type": 1,
-            "rulekey": "",
-            "isshow": true,
-            "children": [
-              {
-                "code": "platinum_financing_information_detail",
-                "title": "融资明细",
-                "sort": 3,
-                "type": 2,
-                "rulekey": "client_pc_web_qhj_rz_detail",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          }
-        ]
-      },
-      {
-        "code": "platinum_contract_goods",
-        "title": "合约商品",
-        "sort": 3,
-        "type": 1,
-        "rulekey": "",
-        "isshow": false,
-        "children": [
-          {
-            "code": "platinum_contract_goods_tab",
-            "title": "合约商品",
-            "sort": 3,
-            "type": 1,
-            "rulekey": "",
-            "isshow": true,
-            "children": [
-              {
-                "code": "platinum_contract_goods_add",
-                "title": "新增",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "",
-                "isshow": true,
-                "children": [
-                  {
-                    "code": "platinum_contract_goods_modify",
-                    "title": "修改",
-                    "sort": 2,
-                    "type": 2,
-                    "rulekey": "",
-                    "isshow": true,
-                    "children": []
-                  },
-                  {
-                    "code": "platinum_contract_goods_logout",
-                    "title": "注销",
-                    "sort": 3,
-                    "type": 2,
-                    "rulekey": "",
-                    "isshow": true,
-                    "children": []
-                  }
-                ]
-              }
-            ]
-          }
-        ]
-      },
-      {
-        "code": "platinum_contract_commodity_suspension",
-        "title": "合约商品停牌",
-        "sort": 3,
-        "type": 1,
-        "rulekey": "",
-        "isshow": false,
-        "children": [
-          {
-            "code": "platinum_contract_commodity_suspension_tab",
-            "title": "合约商品停牌",
-            "sort": 3,
-            "type": 1,
-            "rulekey": "",
-            "isshow": true,
-            "children": [
-              {
-                "code": "platinum_contract_commodity_suspension_add",
-                "title": "新增",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "",
-                "isshow": true,
-                "children": [
-                  {
-                    "code": "platinum_contract_commodity_suspension_modify",
-                    "title": "修改",
-                    "sort": 2,
-                    "type": 2,
-                    "rulekey": "",
-                    "isshow": true,
-                    "children": []
-                  }
-                ]
-              }
-            ]
-          }
-        ]
-      },
-      {
-        "code": "platinum_agents_and_stores",
-        "title": "代理和门店",
-        "sort": 2,
-        "type": 1,
-        "rulekey": "",
-        "isshow": false,
-        "children": [
-          {
-            "code": "platinum_agents_and_stores_tab",
-            "title": "代理和门店",
-            "sort": 2,
-            "type": 1,
-            "rulekey": "",
-            "isshow": true,
-            "children": [
-              {
-                "code": "platinum_agents_and_stores_add",
-                "title": "新增",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "platinum_agents_and_stores_modify",
-                "title": "修改",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "",
-                "isshow": true,
-                "children": []
-              },
-              {
-                "code": "platinum_agents_and_stores_logout",
-                "title": "注销",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          }
-        ]
-      },
-      {
-        "code": "platinum_spot_and_price",
-        "title": "现货市价",
-        "sort": 2,
-        "type": 1,
-        "rulekey": "client_spotmarketprice",
-        "isshow": false,
-        "children": [
-          {
-            "code": "platinum_spot_and_price_tab",
-            "title": "现货市价",
-            "sort": 2,
-            "type": 1,
-            "rulekey": "",
-            "isshow": true,
-            "children": [
-              {
-                "code": "platinum_spot_and_price_modify",
-                "title": "修改",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_spotmarketprice_update",
-                "isshow": true,
-                "children": []
-              }
-            ]
-          }
-        ]
-      },
-      {
-        "code": "platinum_agreement",
-        "title": "协议管理",
-        "sort": 2,
-        "type": 1,
-        "rulekey": "client_pc_web_qhj_xygl",
-        "isshow": true,
-        "children": [
-          {
-            "code": "platinum_agreement_tab",
-            "title": "协议管理",
-            "sort": 2,
-            "type": 1,
-            "rulekey": "client_pc_web_qhj_xygl_tab",
-            "isshow": true,
-            "children": [
-              {
-                "code": "platinum_agreement_add",
-                "title": "新增",
-                "sort": 1,
-                "type": 2,
-                "rulekey": "client_pc_web_qhj_xygl_add",
-                "isshow": true,
-                "children": [
-                  {
-                    "code": "platinum_agreement_modify",
-                    "title": "修改",
-                    "sort": 1,
-                    "type": 2,
-                    "rulekey": "client_pc_web_qhj_xygl_modify",
-                    "isshow": true,
-                    "children": []
-                  },
-                  {
-                    "code": "platinum_agreement_stop",
-                    "title": "停用",
-                    "sort": 1,
-                    "type": 2,
-                    "rulekey": "client_pc_web_qhj_xygl_stop",
-                    "isshow": true,
-                    "children": []
-                  },
-                  {
-                    "code": "platinum_agreement_resume",
-                    "title": "恢复",
-                    "sort": 1,
-                    "type": 2,
-                    "rulekey": "client_pc_web_qhj_xygl_resume",
-                    "isshow": true,
-                    "children": []
-                  },
-                  {
-                    "code": "platinum_agreement_delete",
-                    "title": "注销",
-                    "sort": 1,
-                    "type": 2,
-                    "rulekey": "client_pc_web_qhj_xygl_delete",
-                    "isshow": true,
-                    "children": []
-                  }
-                ]
-              }
-            ]
-          }
-        ]
-      },
-      {"code": "platinum_capital_flow",
-        "title": "协议管理",
-        "sort": 2,
-        "type": 1,
-        "rulekey": "",
-        "isshow": true,
-        "children": []
-      }
-    ]
-  }
-]

+ 0 - 127
generate-code/templates/index.vue

@@ -1,127 +0,0 @@
-<template>
-  <!-- 提货查询 -->
-  <div class="<%= code %>">
-    <Filter @search="updateColumn" />
-    <contextMenu :contextMenuList="btnList">
-      <a-table :columns="columns"
-               class="srcollYTable"
-               :scroll="{ x: '100%', y: 'calc(100vh - 163px)' }"
-               :pagination="false"
-               :expandedRowKeys="expandedRowKeys"
-               :customRow="Rowclick"
-               rowKey="key"
-               :data-source="tableList">
-        <!-- 额外的展开行 -->
-        <template #expandedRowRender="{ record }">
-          <BtnList :btnList="handleTableList(firstBtn, record)"
-                   @onClick="btnClick(record)" />
-        </template>
-        <!-- 提货状态 -->
-        <template #takeorderstatus="{ record }">
-          <a>{{ getPickUpStateName(record.takeorderstatus) }}</a>
-        </template>
-        <!-- 提货/ 收货人-->
-        <template #takemode="{ record }">
-          <a>{{ getTakeStateName(record.takemode)}}</a>
-        </template>
-
-        <!-- 物流信息 -->
-        <template #expresscompany="{ record }">
-          <a>{{ record.expresscompany + "-" + record.expressnum}}</a>
-        </template>
-
-        <!-- 商品数量 -->
-        <template #qty="{ record }">
-          <a>{{ record.qty + record.enumdicname}}</a>
-        </template>
-
-        <!-- 地址 -->
-        <template #address="{ record }">
-          <a>{{ record.provincename + record.cityname + record.districtname + record.address}}</a>
-        </template>
-
-        <template #userinfotype="{ record }">
-          <a>{{ record.userinfotype === 1 ? '个人' : '企业' }}</a>
-        </template>
-      </a-table>
-    </contextMenu>
-    <ControlModal :selectedRow="selectedRow"
-                  @refresh="getData" />
-  </div>
-</template>
-
-<script lang="ts">
-import { defineComponent, initData, getTableColumns, getTableEvent, contextMenu, BtnList, _getBtnList, queryTableList } from '@/common/export/table';
-import Filter from '../../compoments/filter/index.vue';
-import { handleTableList } from './setup';
-import ControlModal from './compoments/controlModal/index.vue';
-import { QhjTradeGoodsPickup } from '@/services/go/ermcp/qhj/interface';
-import { getPickUpStateName, getTakeStateName } from '@/common/constants/enumsName';
-import { TableEventCB, BtnList as BtnListType } from '@/common/setup/table/interface';
-import { ref } from 'vue';
-import { queryTradeGoodsPickup } from '@/services/go/ermcp/qhj';
-
-export default defineComponent({
-    name: '<%= code %>',
-    components: { Filter, contextMenu, BtnList, ControlModal },
-    setup() {
-        // 表头数据
-        const { columns, registerColumn, updateColumn } = getTableColumns();
-        // 表格操作按钮列表
-        const [firstBtn] = _getBtnList('platinum_pick_query_tab', true).value;
-        const btnList = ref<BtnListType[]>([]);
-        const event: TableEventCB = {
-            contextmenuCB: (record: QhjTradeGoodsPickup) => {
-                btnList.value = handleTableList(firstBtn, record);
-            },
-        };
-        // 表格事件
-        const { expandedRowKeys, selectedRow, Rowclick, btnClick } = getTableEvent<QhjTradeGoodsPickup>(event);
-
-        // 表格列表数据
-        const { loading, tableList, queryTable } = queryTableList<QhjTradeGoodsPickup>();
-
-        function getData() {
-            // 获取列表数据
-            queryTable(queryTradeGoodsPickup).then((res) => {
-                tableList.value = res.map((el) => {
-                    return { ...el, key: String(el.takeorderid) };
-                });
-            });
-        }
-
-        // 1:备货中  完成备货
-        // 2:待取货(自提) 确认取货
-        // 4:待收货(邮寄) 上传物流信息、确认收货
-        initData(() => {
-            // 获取列表数据
-            getData();
-            // 注册表头信息 过滤
-            registerColumn('table_pcweb_qhj_pickup_query', ['reqtime', 'pickupgoodsname', 'takeorderstatus', 'goodsname']);
-        });
-
-        return {
-            btnList,
-            columns,
-            getData,
-            updateColumn,
-            expandedRowKeys,
-            selectedRow,
-            Rowclick,
-            firstBtn,
-            loading,
-            tableList,
-            queryTable,
-            btnClick,
-            getPickUpStateName,
-            getTakeStateName,
-            handleTableList,
-        };
-    },
-});
-</script>
-
-<style lang="less">
-.<%= code % > {
-}
-</style>;

+ 1 - 0
package.json

@@ -8,6 +8,7 @@
         "lint": "vue-cli-service lint"
     },
     "dependencies": {
+        "@vue/runtime-dom": "^3.1.4",
         "ant-design-vue": "^2.1.3",
         "axios": "^0.21.1",
         "core-js": "^3.6.5",