5 files added
25 files modified
New file |
| | |
| | | alter table t_goods |
| | | add column `m_type` int(11) NOT NULL DEFAULT 4000; |
| | | |
| | | alter table t_goods_category |
| | | add column `m_type` int(11) NOT NULL DEFAULT -1; |
| | | |
| | | |
| | | |
| | | alter table t_pw_bill_detail |
| | | add column `rej_goods_count` decimal(19,8) DEFAULT 0, |
| | | add column `real_goods_count` decimal(19,8) DEFAULT NULL; |
| | | |
| | | |
| | | alter table t_ws_bill_detail |
| | | add column `rej_goods_count` decimal(19,8) NOT NULL DEFAULT 0, |
| | | add column `real_goods_count` decimal(19,8) DEFAULT NULL; |
| | | |
| | | |
| | | alter table t_po_bill_detail |
| | | add column `real_count` decimal(19,8) DEFAULT NULL, |
| | | add column `rej_count` decimal(19,8) DEFAULT 0; |
| | | |
| | | DROP TABLE IF EXISTS `t_sysdict_org_type`; |
| | | CREATE TABLE IF NOT EXISTS `t_sysdict_org_type` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `code_int` int(11) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `py` varchar(255) NOT NULL, |
| | | `memo` varchar(255) NOT NULL, |
| | | `show_order` int(11) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | INSERT INTO `t_dict_table_md` (`id`, `code`, `name`, `table_name`, `category_id`, `memo`, `py`) VALUES |
| | | ('1002', '1002', '组织机构性质', 't_sysdict_org_type', '10', '', 'ZZJGXZ'); |
| | | |
| | | |
| | | TRUNCATE TABLE `t_sysdict_org_type`; |
| | | INSERT INTO `t_sysdict_org_type` (`id`, `code`, `code_int`, `name`, `py`, `memo`, `show_order`) VALUES |
| | | ('C91F7A42-DD09-11EA-A9A2-E86A641ED142', '400', 400, '事业部', 'SYB', '', 1), |
| | | ('DB073620-DD09-11EA-A9A2-E86A641ED142', '500', 500, '门店', 'MD', '', 2), |
| | | ('EBBAA708-DD09-11EA-A9A2-E86A641ED142', '600', 600, '内部物流组织机构', 'NBWLZZJG', '', 3), |
| | | ('F936FAF8-DD09-11EA-A9A2-E86A641ED142', '700', 700, '办事处', 'BSC', '', 4), |
| | | ('04A8060B-DD0A-11EA-A9A2-E86A641ED142', '2000', 2000, '客户', 'KH', '', 5), |
| | | ('0EB8EB09-DD0A-11EA-A9A2-E86A641ED142', '3000', 3000, '供应商', 'GYS', '', 6), |
| | | ('1896898C-DD0A-11EA-A9A2-E86A641ED142', '4000', 4000, '外协工厂', 'WXGC', '', 7), |
| | | ('23710854-DD0A-11EA-A9A2-E86A641ED142', '5000', 5000, '外部物流商', 'WBWLS', '', 8); |
| | | |
| | | TRUNCATE TABLE `t_psi_db_version`; |
| | | INSERT INTO `t_psi_db_version` (`db_version`, `update_dt`) VALUES |
| | | ('20200818-02', now()); |
New file |
| | |
| | | /* |
| | | Navicat MySQL Data Transfer |
| | | |
| | | Source Server : 114.115.154.62 |
| | | Source Server Version : 50725 |
| | | Source Host : 114.115.154.62:3306 |
| | | Source Database : tietou_scm |
| | | |
| | | Target Server Type : MYSQL |
| | | Target Server Version : 50725 |
| | | File Encoding : 65001 |
| | | |
| | | Date: 2020-07-10 12:22:11 |
| | | */ |
| | | |
| | | SET FOREIGN_KEY_CHECKS=0; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for think_session |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `think_session`; |
| | | CREATE TABLE `think_session` ( |
| | | `session_id` varchar(255) NOT NULL, |
| | | `session_expire` int(11) NOT NULL, |
| | | `session_data` blob, |
| | | UNIQUE KEY `session_id` (`session_id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of think_session |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_acc_fmt |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_acc_fmt`; |
| | | CREATE TABLE `t_acc_fmt` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `acc_number` varchar(255) NOT NULL, |
| | | `subject_code` varchar(255) NOT NULL, |
| | | `memo` varchar(255) DEFAULT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) NOT NULL, |
| | | `in_use` int(11) DEFAULT '1', |
| | | `db_table_name_prefix` varchar(255) NOT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_acc_fmt |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_acc_fmt_cols |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_acc_fmt_cols`; |
| | | CREATE TABLE `t_acc_fmt_cols` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `fmt_id` varchar(255) NOT NULL, |
| | | `db_field_name` varchar(255) NOT NULL, |
| | | `db_field_type` varchar(255) DEFAULT NULL, |
| | | `db_field_length` int(11) NOT NULL, |
| | | `db_field_decimal` int(11) NOT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | `caption` varchar(255) NOT NULL, |
| | | `sys_col` int(11) DEFAULT NULL, |
| | | `use_code_table` int(11) NOT NULL DEFAULT '0', |
| | | `code_table_name` varchar(255) DEFAULT NULL, |
| | | `code_table_field_name` varchar(255) DEFAULT NULL, |
| | | `code_table_field_name_fk` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_acc_fmt_cols |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_acc_period |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_acc_period`; |
| | | CREATE TABLE `t_acc_period` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `acc_year` int(11) NOT NULL, |
| | | `acc_month` int(11) NOT NULL, |
| | | `company_id` varchar(255) NOT NULL, |
| | | `acc_gl_kept` int(11) NOT NULL, |
| | | `acc_gl_closed` int(11) NOT NULL, |
| | | `acc_detail_kept` int(11) NOT NULL, |
| | | `acc_detail_closed` int(11) NOT NULL, |
| | | `period_closed` int(11) NOT NULL, |
| | | `year_forward` int(11) NOT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_acc_period |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_bank_account |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_bank_account`; |
| | | CREATE TABLE `t_bank_account` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `bank_name` varchar(255) NOT NULL, |
| | | `bank_number` varchar(255) NOT NULL, |
| | | `memo` varchar(255) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `data_org` varchar(255) NOT NULL, |
| | | `company_id` varchar(255) NOT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_bank_account |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_biz_log |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_biz_log`; |
| | | CREATE TABLE `t_biz_log` ( |
| | | `id` bigint(20) NOT NULL AUTO_INCREMENT, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `info` varchar(1000) NOT NULL, |
| | | `ip` varchar(255) NOT NULL, |
| | | `user_id` varchar(255) NOT NULL, |
| | | `log_category` varchar(50) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `ip_from` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_biz_log |
| | | -- ---------------------------- |
| | | INSERT INTO `t_biz_log` VALUES ('1', '2020-07-10 12:19:53', '登录系统', '112.42.78.108', '6C2A09CD-A129-11E4-9B6A-782BCBD7746B', '系统', '01010001', '中国辽宁省大连市 移动', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_biz_log` VALUES ('2', '2020-07-10 12:19:59', '通过主菜单进入模块:业务设置', '112.42.78.108', '6C2A09CD-A129-11E4-9B6A-782BCBD7746B', '系统', '01010001', '中国辽宁省大连市 移动', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_biz_log` VALUES ('3', '2020-07-10 12:20:39', '[公司], 把[公司名称]设置为[铁岭铁投供应链管理有限公司]', '112.42.78.108', '6C2A09CD-A129-11E4-9B6A-782BCBD7746B', '业务设置', '01010001', '中国辽宁省大连市 移动', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_biz_log` VALUES ('4', '2020-07-10 12:20:39', '[公司], 把[采购订单默认付款方式]设置为[记应付账款]', '112.42.78.108', '6C2A09CD-A129-11E4-9B6A-782BCBD7746B', '业务设置', '01010001', '中国辽宁省大连市 移动', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_biz_log` VALUES ('5', '2020-07-10 12:20:39', '[公司], 把[采购入库单默认付款方式]设置为[记应付账款]', '112.42.78.108', '6C2A09CD-A129-11E4-9B6A-782BCBD7746B', '业务设置', '01010001', '中国辽宁省大连市 移动', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_biz_log` VALUES ('6', '2020-07-10 12:20:39', '[公司], 把[采购入库数量控制]设置为[不能超过采购订单未入库量]', '112.42.78.108', '6C2A09CD-A129-11E4-9B6A-782BCBD7746B', '业务设置', '01010001', '中国辽宁省大连市 移动', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_biz_log` VALUES ('7', '2020-07-10 12:20:39', '[公司], 把[销售出库单默认收款方式]设置为[记应收账款]', '112.42.78.108', '6C2A09CD-A129-11E4-9B6A-782BCBD7746B', '业务设置', '01010001', '中国辽宁省大连市 移动', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_biz_log` VALUES ('8', '2020-07-10 12:20:39', '[公司], 把[销售订单默认收款方式]设置为[记应收账款]', '112.42.78.108', '6C2A09CD-A129-11E4-9B6A-782BCBD7746B', '业务设置', '01010001', '中国辽宁省大连市 移动', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_biz_log` VALUES ('9', '2020-07-10 12:20:39', '[公司], 把[销售出库数量控制]设置为[不做限制]', '112.42.78.108', '6C2A09CD-A129-11E4-9B6A-782BCBD7746B', '业务设置', '01010001', '中国辽宁省大连市 移动', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_biz_log` VALUES ('10', '2020-07-10 12:20:39', '[公司], 把[产品名称]设置为[铁岭铁投供应链管理有限公司]', '112.42.78.108', '6C2A09CD-A129-11E4-9B6A-782BCBD7746B', '业务设置', '01010001', '中国辽宁省大连市 移动', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_biz_log` VALUES ('11', '2020-07-10 12:20:39', '[公司], 把[模块打开方式]设置为[原窗口打开]', '112.42.78.108', '6C2A09CD-A129-11E4-9B6A-782BCBD7746B', '业务设置', '01010001', '中国辽宁省大连市 移动', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_biz_log` VALUES ('12', '2020-07-10 12:20:39', '[公司], 把[商品数量小数位数]设置为[0]', '112.42.78.108', '6C2A09CD-A129-11E4-9B6A-782BCBD7746B', '业务设置', '01010001', '中国辽宁省大连市 移动', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_biz_log` VALUES ('13', '2020-07-10 12:20:39', '[公司], 把[销售合同号前缀]设置为[SC]', '112.42.78.108', '6C2A09CD-A129-11E4-9B6A-782BCBD7746B', '业务设置', '01010001', '中国辽宁省大连市 移动', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_biz_log` VALUES ('14', '2020-07-10 12:20:39', '[公司], 把[拆分单单号前缀]设置为[WSP]', '112.42.78.108', '6C2A09CD-A129-11E4-9B6A-782BCBD7746B', '业务设置', '01010001', '中国辽宁省大连市 移动', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_biz_log` VALUES ('15', '2020-07-10 12:20:39', '[公司], 把[成品委托生产订单号前缀]设置为[DMO]', '112.42.78.108', '6C2A09CD-A129-11E4-9B6A-782BCBD7746B', '业务设置', '01010001', '中国辽宁省大连市 移动', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_biz_log` VALUES ('16', '2020-07-10 12:20:39', '[公司], 把[成品委托生产入库单号前缀]设置为[DMW]', '112.42.78.108', '6C2A09CD-A129-11E4-9B6A-782BCBD7746B', '业务设置', '01010001', '中国辽宁省大连市 移动', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_biz_log` VALUES ('17', '2020-07-10 12:20:52', '通过主菜单进入模块:采购订单', '112.42.78.108', '6C2A09CD-A129-11E4-9B6A-782BCBD7746B', '系统', '01010001', '中国辽宁省大连市 移动', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_biz_log` VALUES ('18', '2020-07-10 12:20:55', '通过主菜单进入模块:用户管理', '112.42.78.108', '6C2A09CD-A129-11E4-9B6A-782BCBD7746B', '系统', '01010001', '中国辽宁省大连市 移动', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_cash |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_cash`; |
| | | CREATE TABLE `t_cash` ( |
| | | `id` bigint(20) NOT NULL AUTO_INCREMENT, |
| | | `biz_date` datetime NOT NULL, |
| | | `in_money` decimal(19,2) DEFAULT NULL, |
| | | `out_money` decimal(19,2) DEFAULT NULL, |
| | | `balance_money` decimal(19,2) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_cash |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_cash_detail |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_cash_detail`; |
| | | CREATE TABLE `t_cash_detail` ( |
| | | `id` bigint(20) NOT NULL AUTO_INCREMENT, |
| | | `biz_date` datetime NOT NULL, |
| | | `in_money` decimal(19,2) DEFAULT NULL, |
| | | `out_money` decimal(19,2) DEFAULT NULL, |
| | | `balance_money` decimal(19,2) NOT NULL, |
| | | `ref_number` varchar(255) NOT NULL, |
| | | `ref_type` varchar(255) NOT NULL, |
| | | `date_created` datetime NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_cash_detail |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_code_table_buttons |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_code_table_buttons`; |
| | | CREATE TABLE `t_code_table_buttons` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `table_id` varchar(255) NOT NULL, |
| | | `caption` varchar(255) NOT NULL, |
| | | `fid` varchar(255) NOT NULL, |
| | | `on_click_frontend` varchar(255) DEFAULT NULL, |
| | | `on_click_backend` varchar(255) DEFAULT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_code_table_buttons |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_code_table_category |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_code_table_category`; |
| | | CREATE TABLE `t_code_table_category` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `parent_id` varchar(255) DEFAULT NULL, |
| | | `is_system` int(11) NOT NULL DEFAULT '2', |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_code_table_category |
| | | -- ---------------------------- |
| | | INSERT INTO `t_code_table_category` VALUES ('05717096-851A-11EA-B071-E86A641ED142', 'PSI-0003', '仓库', null, '1'); |
| | | INSERT INTO `t_code_table_category` VALUES ('0F8C175C-851A-11EA-B071-E86A641ED142', 'PSI-0004', '供应商', null, '1'); |
| | | INSERT INTO `t_code_table_category` VALUES ('19DFD9E7-851A-11EA-B071-E86A641ED142', 'PSI-0005', '客户', null, '1'); |
| | | INSERT INTO `t_code_table_category` VALUES ('2FCB8D75-851A-11EA-B071-E86A641ED142', 'PSI-0006', '工厂', null, '1'); |
| | | INSERT INTO `t_code_table_category` VALUES ('58BF84A3-8517-11EA-B071-E86A641ED142', 'PSI-0002', '商品', null, '1'); |
| | | INSERT INTO `t_code_table_category` VALUES ('F9D80BD6-8519-11EA-B071-E86A641ED142', 'PSI-0001', '用户', null, '1'); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_code_table_cols_md |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_code_table_cols_md`; |
| | | CREATE TABLE `t_code_table_cols_md` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `table_id` varchar(255) NOT NULL, |
| | | `caption` varchar(255) NOT NULL, |
| | | `db_field_name` varchar(255) NOT NULL, |
| | | `db_field_type` varchar(255) NOT NULL, |
| | | `db_field_length` int(11) NOT NULL, |
| | | `db_field_decimal` int(11) NOT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | `value_from` int(11) DEFAULT NULL, |
| | | `value_from_table_name` varchar(255) DEFAULT NULL, |
| | | `value_from_col_name` varchar(255) DEFAULT NULL, |
| | | `value_from_col_name_display` varchar(255) DEFAULT NULL, |
| | | `must_input` int(11) DEFAULT '1', |
| | | `sys_col` int(11) DEFAULT '1', |
| | | `is_visible` int(11) DEFAULT '1', |
| | | `width_in_view` int(11) DEFAULT NULL, |
| | | `note` varchar(1000) DEFAULT NULL, |
| | | `show_order_in_view` int(11) NOT NULL DEFAULT '-1', |
| | | `editor_xtype` varchar(255) NOT NULL DEFAULT 'textfield', |
| | | `col_span` int(11) NOT NULL DEFAULT '1', |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_code_table_cols_md |
| | | -- ---------------------------- |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('1C7B14AE-85CC-11EA-A819-E86A641ED142', '1C7AE1C9-85CC-11EA-A819-E86A641ED142', 'id', 'id', 'varchar', '255', '0', '-1000', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('1C7B3E91-85CC-11EA-A819-E86A641ED142', '1C7AE1C9-85CC-11EA-A819-E86A641ED142', '编码', 'code', 'varchar', '255', '0', '0', '1', '', '', '', '2', '1', '1', '120', null, '0', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('1C7B5BB4-85CC-11EA-A819-E86A641ED142', '1C7AE1C9-85CC-11EA-A819-E86A641ED142', '名称', 'name', 'varchar', '255', '0', '1', '1', '', '', '', '2', '1', '1', '200', null, '1', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('1C7B791B-85CC-11EA-A819-E86A641ED142', '1C7AE1C9-85CC-11EA-A819-E86A641ED142', '拼音字头', 'py', 'varchar', '255', '0', '-900', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('1C7BA8A5-85CC-11EA-A819-E86A641ED142', '1C7AE1C9-85CC-11EA-A819-E86A641ED142', '数据域', 'data_org', 'varchar', '255', '0', '-800', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('1C7BC667-85CC-11EA-A819-E86A641ED142', '1C7AE1C9-85CC-11EA-A819-E86A641ED142', '公司id', 'company_id', 'varchar', '255', '0', '-700', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('1C7BDDD5-85CC-11EA-A819-E86A641ED142', '1C7AE1C9-85CC-11EA-A819-E86A641ED142', '记录创建时间', 'date_created', 'datetime', '0', '0', '-699', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('1C7BF3A3-85CC-11EA-A819-E86A641ED142', '1C7AE1C9-85CC-11EA-A819-E86A641ED142', '记录创建人id', 'create_user_id', 'varchar', '255', '0', '-698', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('1C7C092C-85CC-11EA-A819-E86A641ED142', '1C7AE1C9-85CC-11EA-A819-E86A641ED142', '最后一次编辑时间', 'update_dt', 'datetime', '0', '0', '-697', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('1C7C1E35-85CC-11EA-A819-E86A641ED142', '1C7AE1C9-85CC-11EA-A819-E86A641ED142', '最后一次编辑人id', 'update_user_id', 'varchar', '255', '0', '-696', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('1C7C3324-85CC-11EA-A819-E86A641ED142', '1C7AE1C9-85CC-11EA-A819-E86A641ED142', '状态', 'record_status', 'int', '11', '0', '2', '2', 't_sysdict_record_status', 'code_int', 'name', '2', '1', '1', '80', null, '2', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('49F42B5E-8607-11EA-A0E2-E86A641ED142', '49F3F27F-8607-11EA-A0E2-E86A641ED142', 'id', 'id', 'varchar', '255', '0', '-1000', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('49F43F2A-8607-11EA-A0E2-E86A641ED142', '49F3F27F-8607-11EA-A0E2-E86A641ED142', '编码', 'code', 'varchar', '255', '0', '0', '1', '', '', '', '2', '1', '1', '120', null, '0', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('49F44FFE-8607-11EA-A0E2-E86A641ED142', '49F3F27F-8607-11EA-A0E2-E86A641ED142', '名称', 'name', 'varchar', '255', '0', '1', '1', '', '', '', '2', '1', '1', '200', null, '1', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('49F45D67-8607-11EA-A0E2-E86A641ED142', '49F3F27F-8607-11EA-A0E2-E86A641ED142', '拼音字头', 'py', 'varchar', '255', '0', '-900', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('49F46C4D-8607-11EA-A0E2-E86A641ED142', '49F3F27F-8607-11EA-A0E2-E86A641ED142', '数据域', 'data_org', 'varchar', '255', '0', '-800', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('49F47EF1-8607-11EA-A0E2-E86A641ED142', '49F3F27F-8607-11EA-A0E2-E86A641ED142', '公司id', 'company_id', 'varchar', '255', '0', '-700', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('49F48D39-8607-11EA-A0E2-E86A641ED142', '49F3F27F-8607-11EA-A0E2-E86A641ED142', '记录创建时间', 'date_created', 'datetime', '0', '0', '-699', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('49F49D88-8607-11EA-A0E2-E86A641ED142', '49F3F27F-8607-11EA-A0E2-E86A641ED142', '记录创建人id', 'create_user_id', 'varchar', '255', '0', '-698', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('49F4AB83-8607-11EA-A0E2-E86A641ED142', '49F3F27F-8607-11EA-A0E2-E86A641ED142', '最后一次编辑时间', 'update_dt', 'datetime', '0', '0', '-697', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('49F4B946-8607-11EA-A0E2-E86A641ED142', '49F3F27F-8607-11EA-A0E2-E86A641ED142', '最后一次编辑人id', 'update_user_id', 'varchar', '255', '0', '-696', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('49F4C69A-8607-11EA-A0E2-E86A641ED142', '49F3F27F-8607-11EA-A0E2-E86A641ED142', '状态', 'record_status', 'int', '11', '0', '2', '2', 't_sysdict_record_status', 'code_int', 'name', '2', '1', '1', '80', null, '2', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('8BD477BD-8623-11EA-B463-E86A641ED142', '8BD2B19E-8623-11EA-B463-E86A641ED142', 'id', 'id', 'varchar', '255', '0', '-1000', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('8BD49349-8623-11EA-B463-E86A641ED142', '8BD2B19E-8623-11EA-B463-E86A641ED142', '编码', 'code', 'varchar', '255', '0', '0', '1', '', '', '', '2', '1', '1', '120', null, '0', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('8BD4A5B2-8623-11EA-B463-E86A641ED142', '8BD2B19E-8623-11EA-B463-E86A641ED142', '名称', 'name', 'varchar', '255', '0', '1', '1', '', '', '', '2', '1', '1', '200', null, '1', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('8BD4B6D7-8623-11EA-B463-E86A641ED142', '8BD2B19E-8623-11EA-B463-E86A641ED142', '拼音字头', 'py', 'varchar', '255', '0', '-900', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('8BD4C711-8623-11EA-B463-E86A641ED142', '8BD2B19E-8623-11EA-B463-E86A641ED142', '数据域', 'data_org', 'varchar', '255', '0', '-800', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('8BD4D4AF-8623-11EA-B463-E86A641ED142', '8BD2B19E-8623-11EA-B463-E86A641ED142', '公司id', 'company_id', 'varchar', '255', '0', '-700', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('8BD4E2A3-8623-11EA-B463-E86A641ED142', '8BD2B19E-8623-11EA-B463-E86A641ED142', '记录创建时间', 'date_created', 'datetime', '0', '0', '-699', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('8BD4EFF4-8623-11EA-B463-E86A641ED142', '8BD2B19E-8623-11EA-B463-E86A641ED142', '记录创建人id', 'create_user_id', 'varchar', '255', '0', '-698', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('8BD4FEA4-8623-11EA-B463-E86A641ED142', '8BD2B19E-8623-11EA-B463-E86A641ED142', '最后一次编辑时间', 'update_dt', 'datetime', '0', '0', '-697', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('8BD50B33-8623-11EA-B463-E86A641ED142', '8BD2B19E-8623-11EA-B463-E86A641ED142', '最后一次编辑人id', 'update_user_id', 'varchar', '255', '0', '-696', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('8BD5173E-8623-11EA-B463-E86A641ED142', '8BD2B19E-8623-11EA-B463-E86A641ED142', '状态', 'record_status', 'int', '11', '0', '2', '2', 't_sysdict_record_status', 'code_int', 'name', '2', '1', '1', '80', null, '2', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('AFB552D4-851E-11EA-B071-E86A641ED142', 'AFB52688-851E-11EA-B071-E86A641ED142', 'id', 'id', 'varchar', '255', '0', '-1000', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('AFB57C6D-851E-11EA-B071-E86A641ED142', 'AFB52688-851E-11EA-B071-E86A641ED142', '编码', 'code', 'varchar', '255', '0', '0', '1', '', '', '', '2', '1', '1', '120', null, '0', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('AFB58EDB-851E-11EA-B071-E86A641ED142', 'AFB52688-851E-11EA-B071-E86A641ED142', '名称', 'name', 'varchar', '255', '0', '1', '1', '', '', '', '2', '1', '1', '200', null, '1', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('AFB5A12F-851E-11EA-B071-E86A641ED142', 'AFB52688-851E-11EA-B071-E86A641ED142', '拼音字头', 'py', 'varchar', '255', '0', '-900', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('AFB5B1D0-851E-11EA-B071-E86A641ED142', 'AFB52688-851E-11EA-B071-E86A641ED142', '数据域', 'data_org', 'varchar', '255', '0', '-800', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('AFB5C1E8-851E-11EA-B071-E86A641ED142', 'AFB52688-851E-11EA-B071-E86A641ED142', '公司id', 'company_id', 'varchar', '255', '0', '-700', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('AFB5D22F-851E-11EA-B071-E86A641ED142', 'AFB52688-851E-11EA-B071-E86A641ED142', '记录创建时间', 'date_created', 'datetime', '0', '0', '-699', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('AFB5E0A0-851E-11EA-B071-E86A641ED142', 'AFB52688-851E-11EA-B071-E86A641ED142', '记录创建人id', 'create_user_id', 'varchar', '255', '0', '-698', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('AFB5EEA3-851E-11EA-B071-E86A641ED142', 'AFB52688-851E-11EA-B071-E86A641ED142', '最后一次编辑时间', 'update_dt', 'datetime', '0', '0', '-697', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('AFB5FCDA-851E-11EA-B071-E86A641ED142', 'AFB52688-851E-11EA-B071-E86A641ED142', '最后一次编辑人id', 'update_user_id', 'varchar', '255', '0', '-696', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('AFB60A25-851E-11EA-B071-E86A641ED142', 'AFB52688-851E-11EA-B071-E86A641ED142', '状态', 'record_status', 'int', '11', '0', '2', '2', 't_sysdict_record_status', 'code_int', 'name', '2', '1', '1', '80', null, '2', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('AFB617D7-851E-11EA-B071-E86A641ED142', 'AFB52688-851E-11EA-B071-E86A641ED142', '上级', 'parent_id', 'varchar', '255', '0', '4', '4', 't_org', 'id', 'full_name', '0', '1', '1', '0', null, '-1000', 'psi_codetable_parentidfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('AFB625A6-851E-11EA-B071-E86A641ED142', 'AFB52688-851E-11EA-B071-E86A641ED142', '全名', 'full_name', 'varchar', '1000', '0', '-1000', '5', '', '', '', '0', '1', '2', '300', null, '3', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('C68F8441-860B-11EA-A0E2-E86A641ED142', 'C68DBABE-860B-11EA-A0E2-E86A641ED142', 'id', 'id', 'varchar', '255', '0', '-1000', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('C68F9A48-860B-11EA-A0E2-E86A641ED142', 'C68DBABE-860B-11EA-A0E2-E86A641ED142', '编码', 'code', 'varchar', '255', '0', '0', '1', '', '', '', '2', '1', '1', '120', null, '0', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('C68FAABB-860B-11EA-A0E2-E86A641ED142', 'C68DBABE-860B-11EA-A0E2-E86A641ED142', '名称', 'name', 'varchar', '255', '0', '1', '1', '', '', '', '2', '1', '1', '200', null, '1', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('C68FB980-860B-11EA-A0E2-E86A641ED142', 'C68DBABE-860B-11EA-A0E2-E86A641ED142', '拼音字头', 'py', 'varchar', '255', '0', '-900', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('C68FC83A-860B-11EA-A0E2-E86A641ED142', 'C68DBABE-860B-11EA-A0E2-E86A641ED142', '数据域', 'data_org', 'varchar', '255', '0', '-800', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('C68FD533-860B-11EA-A0E2-E86A641ED142', 'C68DBABE-860B-11EA-A0E2-E86A641ED142', '公司id', 'company_id', 'varchar', '255', '0', '-700', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('C68FE37E-860B-11EA-A0E2-E86A641ED142', 'C68DBABE-860B-11EA-A0E2-E86A641ED142', '记录创建时间', 'date_created', 'datetime', '0', '0', '-699', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('C68FF17F-860B-11EA-A0E2-E86A641ED142', 'C68DBABE-860B-11EA-A0E2-E86A641ED142', '记录创建人id', 'create_user_id', 'varchar', '255', '0', '-698', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('C68FFCCA-860B-11EA-A0E2-E86A641ED142', 'C68DBABE-860B-11EA-A0E2-E86A641ED142', '最后一次编辑时间', 'update_dt', 'datetime', '0', '0', '-697', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('C69009F3-860B-11EA-A0E2-E86A641ED142', 'C68DBABE-860B-11EA-A0E2-E86A641ED142', '最后一次编辑人id', 'update_user_id', 'varchar', '255', '0', '-696', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('C6901758-860B-11EA-A0E2-E86A641ED142', 'C68DBABE-860B-11EA-A0E2-E86A641ED142', '状态', 'record_status', 'int', '11', '0', '2', '2', 't_sysdict_record_status', 'code_int', 'name', '2', '1', '1', '80', null, '2', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('C69022E3-860B-11EA-A0E2-E86A641ED142', 'C68DBABE-860B-11EA-A0E2-E86A641ED142', '上级', 'parent_id', 'varchar', '255', '0', '4', '4', 't_goods_category', 'id', 'full_name', '0', '1', '1', '0', null, '-1000', 'psi_codetable_parentidfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('C6902FD8-860B-11EA-A0E2-E86A641ED142', 'C68DBABE-860B-11EA-A0E2-E86A641ED142', '全名', 'full_name', 'varchar', '1000', '0', '-1000', '5', '', '', '', '0', '1', '2', '300', null, '3', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('D7DA0F07-8834-11EA-8C36-E86A641ED142', 'D7D9D328-8834-11EA-8C36-E86A641ED142', 'id', 'id', 'varchar', '255', '0', '-1000', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('D7DA2831-8834-11EA-8C36-E86A641ED142', 'D7D9D328-8834-11EA-8C36-E86A641ED142', '编码', 'code', 'varchar', '255', '0', '0', '1', '', '', '', '2', '1', '1', '120', null, '0', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('D7DA38C1-8834-11EA-8C36-E86A641ED142', 'D7D9D328-8834-11EA-8C36-E86A641ED142', '名称', 'name', 'varchar', '255', '0', '1', '1', '', '', '', '2', '1', '1', '200', null, '1', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('D7DA46DE-8834-11EA-8C36-E86A641ED142', 'D7D9D328-8834-11EA-8C36-E86A641ED142', '拼音字头', 'py', 'varchar', '255', '0', '-900', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('D7DA5596-8834-11EA-8C36-E86A641ED142', 'D7D9D328-8834-11EA-8C36-E86A641ED142', '数据域', 'data_org', 'varchar', '255', '0', '-800', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('D7DA6187-8834-11EA-8C36-E86A641ED142', 'D7D9D328-8834-11EA-8C36-E86A641ED142', '公司id', 'company_id', 'varchar', '255', '0', '-700', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('D7DA6ED9-8834-11EA-8C36-E86A641ED142', 'D7D9D328-8834-11EA-8C36-E86A641ED142', '记录创建时间', 'date_created', 'datetime', '0', '0', '-699', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('D7DA7DA5-8834-11EA-8C36-E86A641ED142', 'D7D9D328-8834-11EA-8C36-E86A641ED142', '记录创建人id', 'create_user_id', 'varchar', '255', '0', '-698', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('D7DA8BEF-8834-11EA-8C36-E86A641ED142', 'D7D9D328-8834-11EA-8C36-E86A641ED142', '最后一次编辑时间', 'update_dt', 'datetime', '0', '0', '-697', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('D7DA9B13-8834-11EA-8C36-E86A641ED142', 'D7D9D328-8834-11EA-8C36-E86A641ED142', '最后一次编辑人id', 'update_user_id', 'varchar', '255', '0', '-696', '1', '', '', '', '1', '1', '2', '0', null, '-1000', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('D7DAA800-8834-11EA-8C36-E86A641ED142', 'D7D9D328-8834-11EA-8C36-E86A641ED142', '状态', 'record_status', 'int', '11', '0', '2', '2', 't_sysdict_record_status', 'code_int', 'name', '2', '1', '1', '80', null, '2', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('D7DAB56C-8834-11EA-8C36-E86A641ED142', 'D7D9D328-8834-11EA-8C36-E86A641ED142', '上级', 'parent_id', 'varchar', '255', '0', '4', '4', 't_goods_brand', 'id', 'full_name', '0', '1', '1', '0', null, '-1000', 'psi_codetable_parentidfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('D7DAC2CD-8834-11EA-8C36-E86A641ED142', 'D7D9D328-8834-11EA-8C36-E86A641ED142', '全名', 'full_name', 'varchar', '1000', '0', '-1000', '5', '', '', '', '0', '1', '2', '300', null, '3', 'textfield', '1'); |
| | | INSERT INTO `t_code_table_cols_md` VALUES ('F04C6359-860B-11EA-A0E2-E86A641ED142', 'C68DBABE-860B-11EA-A0E2-E86A641ED142', '税率', 'tax_rate', 'decimal', '19', '2', '8', '1', '', '', '', '1', '1', '1', '120', '', '8', 'numberfield', '1'); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_code_table_md |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_code_table_md`; |
| | | CREATE TABLE `t_code_table_md` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `table_name` varchar(255) NOT NULL, |
| | | `category_id` varchar(255) NOT NULL, |
| | | `memo` varchar(1000) DEFAULT NULL, |
| | | `py` varchar(255) DEFAULT NULL, |
| | | `fid` varchar(255) DEFAULT NULL, |
| | | `md_version` int(11) NOT NULL DEFAULT '1', |
| | | `is_fixed` int(11) NOT NULL DEFAULT '2', |
| | | `enable_parent_id` int(11) NOT NULL DEFAULT '0', |
| | | `handler_class_name` varchar(255) DEFAULT NULL, |
| | | `module_name` varchar(255) DEFAULT NULL, |
| | | `edit_col_cnt` int(11) NOT NULL DEFAULT '1', |
| | | `view_paging` int(11) NOT NULL DEFAULT '2', |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_code_table_md |
| | | -- ---------------------------- |
| | | INSERT INTO `t_code_table_md` VALUES ('1C7AE1C9-85CC-11EA-A819-E86A641ED142', 'PSI-0001-02', '用户', 't_user', 'F9D80BD6-8519-11EA-B071-E86A641ED142', '', '', '', '1', '1', '0', '', null, '1', '2'); |
| | | INSERT INTO `t_code_table_md` VALUES ('49F3F27F-8607-11EA-A0E2-E86A641ED142', 'PSI-0003-01', '仓库', 't_warehouse', '05717096-851A-11EA-B071-E86A641ED142', '', '', '', '1', '1', '0', '', null, '1', '2'); |
| | | INSERT INTO `t_code_table_md` VALUES ('8BD2B19E-8623-11EA-B463-E86A641ED142', 'PSI-0002-02', '商品计量单位', 't_goods_unit', '58BF84A3-8517-11EA-B071-E86A641ED142', '', '', '', '1', '1', '0', '', null, '1', '2'); |
| | | INSERT INTO `t_code_table_md` VALUES ('AFB52688-851E-11EA-B071-E86A641ED142', 'PSI-0001-01', '组织机构', 't_org', 'F9D80BD6-8519-11EA-B071-E86A641ED142', '', '', '', '1', '1', '1', '', null, '1', '2'); |
| | | INSERT INTO `t_code_table_md` VALUES ('C68DBABE-860B-11EA-A0E2-E86A641ED142', 'PSI-0002-01', '商品分类', 't_goods_category', '58BF84A3-8517-11EA-B071-E86A641ED142', '', '', '', '1', '1', '1', '', null, '1', '2'); |
| | | INSERT INTO `t_code_table_md` VALUES ('D7D9D328-8834-11EA-8C36-E86A641ED142', 'PSI-0002-03', '商品品牌', 't_goods_brand', '58BF84A3-8517-11EA-B071-E86A641ED142', '', '', '', '1', '1', '1', '', null, '1', '2'); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_config |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_config`; |
| | | CREATE TABLE `t_config` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `value` varchar(255) NOT NULL, |
| | | `note` varchar(255) NOT NULL, |
| | | `show_order` int(11) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_config |
| | | -- ---------------------------- |
| | | INSERT INTO `t_config` VALUES ('9000-01', '公司名称', '铁岭铁投供应链管理有限公司', '', '100', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('9000-02', '公司地址', '', '', '101', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('9000-03', '公司电话', '', '', '102', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('9000-04', '公司传真', '', '', '103', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('9000-05', '公司邮编', '', '', '104', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('2001-01', '采购入库默认仓库', '', '', '200', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('2002-02', '销售出库默认仓库', '', '', '300', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('2002-01', '销售出库单允许编辑销售单价', '0', '当允许编辑的时候,还需要给用户赋予权限[销售出库单允许编辑销售单价]', '301', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('1003-02', '存货计价方法', '0', '', '401', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('9001-01', '增值税税率', '17', '', '501', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('9002-01', '产品名称', '铁岭铁投供应链管理有限公司', '', '0', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('9003-01', '采购订单单号前缀', 'PO', '', '601', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('9003-02', '采购入库单单号前缀', 'PW', '', '602', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('9003-03', '采购退货出库单单号前缀', 'PR', '', '603', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('9003-04', '销售出库单单号前缀', 'WS', '', '604', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('9003-05', '销售退货入库单单号前缀', 'SR', '', '605', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('9003-06', '调拨单单号前缀', 'IT', '', '606', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('9003-07', '盘点单单号前缀', 'IC', '', '607', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('9003-08', '销售订单单号前缀', 'SO', '', '608', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('2001-02', '采购订单默认付款方式', '0', '', '201', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('2001-03', '采购入库单默认付款方式', '0', '', '202', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('2001-04', '采购入库数量控制', '1', '', '203', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('2002-03', '销售出库单默认收款方式', '0', '', '302', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('2002-04', '销售订单默认收款方式', '0', '', '303', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('2002-05', '销售出库数量控制', '0', '', '304', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('9002-02', '模块打开方式', '0', '', '1', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('9002-03', '商品数量小数位数', '0', '', '2', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('9003-09', '销售合同号前缀', 'SC', '', '609', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('9003-10', '拆分单单号前缀', 'WSP', '', '610', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('9003-11', '成品委托生产订单号前缀', 'DMO', '', '611', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | INSERT INTO `t_config` VALUES ('9003-12', '成品委托生产入库单号前缀', 'DMW', '', '612', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B'); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_customer |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_customer`; |
| | | CREATE TABLE `t_customer` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `category_id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `contact01` varchar(255) DEFAULT NULL, |
| | | `qq01` varchar(255) DEFAULT NULL, |
| | | `tel01` varchar(255) DEFAULT NULL, |
| | | `mobile01` varchar(255) DEFAULT NULL, |
| | | `contact02` varchar(255) DEFAULT NULL, |
| | | `qq02` varchar(255) DEFAULT NULL, |
| | | `tel02` varchar(255) DEFAULT NULL, |
| | | `mobile02` varchar(255) DEFAULT NULL, |
| | | `address` varchar(255) DEFAULT NULL, |
| | | `address_shipping` varchar(255) DEFAULT NULL, |
| | | `address_receipt` varchar(255) DEFAULT NULL, |
| | | `py` varchar(255) DEFAULT NULL, |
| | | `init_receivables` decimal(19,2) DEFAULT NULL, |
| | | `init_receivables_dt` datetime DEFAULT NULL, |
| | | `init_payables` decimal(19,2) DEFAULT NULL, |
| | | `init_payables_dt` datetime DEFAULT NULL, |
| | | `bank_name` varchar(255) DEFAULT NULL, |
| | | `bank_account` varchar(255) DEFAULT NULL, |
| | | `tax_number` varchar(255) DEFAULT NULL, |
| | | `fax` varchar(255) DEFAULT NULL, |
| | | `note` varchar(255) DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `sales_warehouse_id` varchar(255) DEFAULT NULL, |
| | | `record_status` int(11) DEFAULT '1000', |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_customer |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_customer_category |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_customer_category`; |
| | | CREATE TABLE `t_customer_category` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `parent_id` varchar(255) DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `ps_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_customer_category |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_dict_table_category |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_dict_table_category`; |
| | | CREATE TABLE `t_dict_table_category` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `parent_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_dict_table_category |
| | | -- ---------------------------- |
| | | INSERT INTO `t_dict_table_category` VALUES ('01', '01', '码表', null); |
| | | INSERT INTO `t_dict_table_category` VALUES ('02', '02', '自定义表单', null); |
| | | INSERT INTO `t_dict_table_category` VALUES ('03', '03', '视图', null); |
| | | INSERT INTO `t_dict_table_category` VALUES ('10', '10', '基础数据', null); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_dict_table_md |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_dict_table_md`; |
| | | CREATE TABLE `t_dict_table_md` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `table_name` varchar(255) NOT NULL, |
| | | `category_id` varchar(255) NOT NULL, |
| | | `memo` varchar(1000) DEFAULT NULL, |
| | | `py` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_dict_table_md |
| | | -- ---------------------------- |
| | | INSERT INTO `t_dict_table_md` VALUES ('0101', '0101', '码表记录状态', 't_sysdict_record_status', '01', '码表记录的状态', 'MBJLZT'); |
| | | INSERT INTO `t_dict_table_md` VALUES ('0102', '0102', '码表字段编辑器类型', 't_sysdict_editor_xtype', '01', '码表字段编辑器的类型', 'MBZDBJQLX'); |
| | | INSERT INTO `t_dict_table_md` VALUES ('0201', '0201', '表单字段编辑器类型', 't_sysdict_form_editor_xtype', '02', '表单字段编辑器的类型', 'BDZDBJQLX'); |
| | | INSERT INTO `t_dict_table_md` VALUES ('0301', '0301', '视图xtype', 't_sysdict_fv_xtype', '03', '视图的组件类型(xtype)', 'STXTYPE'); |
| | | INSERT INTO `t_dict_table_md` VALUES ('1001', '1001', '税率', 't_sysdict_tax_rate', '10', '', 'SL'); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_dmo_bill |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_dmo_bill`; |
| | | CREATE TABLE `t_dmo_bill` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `ref` varchar(255) NOT NULL, |
| | | `factory_id` varchar(255) NOT NULL, |
| | | `contact` varchar(255) NOT NULL, |
| | | `tel` varchar(255) DEFAULT NULL, |
| | | `fax` varchar(255) DEFAULT NULL, |
| | | `org_id` varchar(255) NOT NULL, |
| | | `biz_user_id` varchar(255) NOT NULL, |
| | | `biz_dt` datetime NOT NULL, |
| | | `input_user_id` varchar(255) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `bill_status` int(11) NOT NULL, |
| | | `goods_money` decimal(19,2) NOT NULL, |
| | | `tax` decimal(19,2) NOT NULL, |
| | | `money_with_tax` decimal(19,2) NOT NULL, |
| | | `payment_type` int(11) NOT NULL DEFAULT '0', |
| | | `deal_date` datetime NOT NULL, |
| | | `deal_address` varchar(255) DEFAULT NULL, |
| | | `confirm_user_id` varchar(255) DEFAULT NULL, |
| | | `confirm_date` datetime DEFAULT NULL, |
| | | `bill_memo` varchar(255) DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_dmo_bill |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_dmo_bill_detail |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_dmo_bill_detail`; |
| | | CREATE TABLE `t_dmo_bill_detail` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `dmobill_id` varchar(255) NOT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | `goods_id` varchar(255) NOT NULL, |
| | | `goods_count` decimal(19,8) NOT NULL, |
| | | `goods_money` decimal(19,2) NOT NULL, |
| | | `goods_price` decimal(19,2) NOT NULL, |
| | | `tax_rate` decimal(19,2) NOT NULL, |
| | | `tax` decimal(19,2) NOT NULL, |
| | | `money_with_tax` decimal(19,2) NOT NULL, |
| | | `dmw_count` decimal(19,8) NOT NULL, |
| | | `left_count` decimal(19,8) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `memo` varchar(255) DEFAULT NULL, |
| | | `goods_price_with_tax` decimal(19,2) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_dmo_bill_detail |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_dmo_dmw |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_dmo_dmw`; |
| | | CREATE TABLE `t_dmo_dmw` ( |
| | | `dmo_id` varchar(255) NOT NULL, |
| | | `dmw_id` varchar(255) NOT NULL |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_dmo_dmw |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_dmw_bill |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_dmw_bill`; |
| | | CREATE TABLE `t_dmw_bill` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `ref` varchar(255) NOT NULL, |
| | | `factory_id` varchar(255) NOT NULL, |
| | | `warehouse_id` varchar(255) NOT NULL, |
| | | `biz_user_id` varchar(255) NOT NULL, |
| | | `biz_dt` datetime NOT NULL, |
| | | `input_user_id` varchar(255) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `bill_status` int(11) NOT NULL, |
| | | `goods_money` decimal(19,2) NOT NULL, |
| | | `payment_type` int(11) NOT NULL DEFAULT '0', |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `bill_memo` varchar(255) DEFAULT NULL, |
| | | `tax` decimal(19,2) DEFAULT NULL, |
| | | `money_with_tax` decimal(19,2) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_dmw_bill |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_dmw_bill_detail |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_dmw_bill_detail`; |
| | | CREATE TABLE `t_dmw_bill_detail` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `dmwbill_id` varchar(255) NOT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | `goods_id` varchar(255) NOT NULL, |
| | | `goods_count` decimal(19,8) NOT NULL, |
| | | `goods_money` decimal(19,2) NOT NULL, |
| | | `goods_price` decimal(19,2) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `memo` varchar(1000) DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `dmobilldetail_id` varchar(255) DEFAULT NULL, |
| | | `tax_rate` decimal(19,2) DEFAULT NULL, |
| | | `tax` decimal(19,2) DEFAULT NULL, |
| | | `money_with_tax` decimal(19,2) DEFAULT NULL, |
| | | `goods_price_with_tax` decimal(19,2) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_dmw_bill_detail |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_factory |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_factory`; |
| | | CREATE TABLE `t_factory` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `category_id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `contact01` varchar(255) DEFAULT NULL, |
| | | `tel01` varchar(255) DEFAULT NULL, |
| | | `mobile01` varchar(255) DEFAULT NULL, |
| | | `contact02` varchar(255) DEFAULT NULL, |
| | | `tel02` varchar(255) DEFAULT NULL, |
| | | `mobile02` varchar(255) DEFAULT NULL, |
| | | `address` varchar(255) DEFAULT NULL, |
| | | `py` varchar(255) DEFAULT NULL, |
| | | `init_receivables` decimal(19,2) DEFAULT NULL, |
| | | `init_receivables_dt` datetime DEFAULT NULL, |
| | | `init_payables` decimal(19,2) DEFAULT NULL, |
| | | `init_payables_dt` datetime DEFAULT NULL, |
| | | `bank_name` varchar(255) DEFAULT NULL, |
| | | `bank_account` varchar(255) DEFAULT NULL, |
| | | `tax_number` varchar(255) DEFAULT NULL, |
| | | `fax` varchar(255) DEFAULT NULL, |
| | | `note` varchar(255) DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `record_status` int(11) DEFAULT '1000', |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_factory |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_factory_category |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_factory_category`; |
| | | CREATE TABLE `t_factory_category` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `parent_id` varchar(255) DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `full_name` varchar(1000) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_factory_category |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_fid |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_fid`; |
| | | CREATE TABLE `t_fid` ( |
| | | `fid` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `py` varchar(255) DEFAULT NULL, |
| | | `memo` varchar(255) DEFAULT NULL |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_fid |
| | | -- ---------------------------- |
| | | INSERT INTO `t_fid` VALUES ('-7999', '自定义表单', 'ZDYBD', ''); |
| | | INSERT INTO `t_fid` VALUES ('-7994', '系统数据字典', 'XTSJZD', ''); |
| | | INSERT INTO `t_fid` VALUES ('-7995', '主菜单维护', 'ZCDWH', ''); |
| | | INSERT INTO `t_fid` VALUES ('-7996', '码表设置', 'MBSZ', ''); |
| | | INSERT INTO `t_fid` VALUES ('-7997', '视图开发助手', 'STKFZS', ''); |
| | | INSERT INTO `t_fid` VALUES ('-9999', '重新登录', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('-9997', '首页', 'SY', ''); |
| | | INSERT INTO `t_fid` VALUES ('-9996', '修改我的密码', 'XGWDMM', ''); |
| | | INSERT INTO `t_fid` VALUES ('-9995', '帮助', 'BZ', ''); |
| | | INSERT INTO `t_fid` VALUES ('-9994', '关于', 'GY', ''); |
| | | INSERT INTO `t_fid` VALUES ('-9993', '购买商业服务', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('-8999', '用户管理', 'YHGL', ''); |
| | | INSERT INTO `t_fid` VALUES ('-8999-01', '组织机构在业务单据中的使用权限', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('-8999-02', '业务员在业务单据中的使用权限', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('-8997', '业务日志', 'YWRZ', ''); |
| | | INSERT INTO `t_fid` VALUES ('-8996', '权限管理', 'QXGL', ''); |
| | | INSERT INTO `t_fid` VALUES ('1001', '商品', 'SP', ''); |
| | | INSERT INTO `t_fid` VALUES ('1001-01', '商品在业务单据中的使用权限', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('1001-02', '商品分类', 'SPFL', ''); |
| | | INSERT INTO `t_fid` VALUES ('1002', '商品计量单位', 'SPJLDW', ''); |
| | | INSERT INTO `t_fid` VALUES ('1003', '仓库', 'CK', ''); |
| | | INSERT INTO `t_fid` VALUES ('1003-01', '仓库在业务单据中的使用权限', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('1004', '供应商档案', 'GYSDA', ''); |
| | | INSERT INTO `t_fid` VALUES ('1004-01', '供应商档案在业务单据中的使用权限', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('1004-02', '供应商分类', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('1007', '客户资料', 'KHZL', ''); |
| | | INSERT INTO `t_fid` VALUES ('1007-01', '客户资料在业务单据中的使用权限', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('1007-02', '客户分类', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2000', '库存建账', 'KCJZ', ''); |
| | | INSERT INTO `t_fid` VALUES ('2001', '采购入库', 'CGRK', ''); |
| | | INSERT INTO `t_fid` VALUES ('2001-01', '采购入库-新建采购入库单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2001-02', '采购入库-编辑采购入库单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2001-03', '采购入库-删除采购入库单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2001-04', '采购入库-提交入库', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2001-05', '采购入库-单据生成PDF', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2001-06', '采购入库-采购单价和金额可见', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2001-07', '采购入库-打印', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2002', '销售出库', 'XSCK', ''); |
| | | INSERT INTO `t_fid` VALUES ('2002-01', '销售出库-销售出库单允许编辑销售单价', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2002-02', '销售出库-新建销售出库单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2002-03', '销售出库-编辑销售出库单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2002-04', '销售出库-删除销售出库单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2002-05', '销售出库-提交出库', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2002-06', '销售出库-单据生成PDF', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2002-07', '销售出库-打印', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2003', '库存账查询', 'KCZCX', ''); |
| | | INSERT INTO `t_fid` VALUES ('2003-01', '库存账查询-总账导出Excel', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2004', '应收账款管理', 'YSZKGL', ''); |
| | | INSERT INTO `t_fid` VALUES ('2005', '应付账款管理', 'YFZKGL', ''); |
| | | INSERT INTO `t_fid` VALUES ('2006', '销售退货入库', 'XSTHRK', ''); |
| | | INSERT INTO `t_fid` VALUES ('2006-01', '销售退货入库-新建销售退货入库单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2006-02', '销售退货入库-编辑销售退货入库单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2006-03', '销售退货入库-删除销售退货入库单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2006-04', '销售退货入库-提交入库', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2006-05', '销售退货入库-单据生成PDF', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2006-06', '销售退货入库-打印', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2007', '采购退货出库', 'CGTHCK', ''); |
| | | INSERT INTO `t_fid` VALUES ('2007-01', '采购退货出库-新建采购退货出库单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2007-02', '采购退货出库-编辑采购退货出库单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2007-03', '采购退货出库-删除采购退货出库单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2007-04', '采购退货出库-提交采购退货出库单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2007-05', '采购退货出库-单据生成PDF', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2007-06', '采购退货出库-打印', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2008', '业务设置', 'YWSZ', ''); |
| | | INSERT INTO `t_fid` VALUES ('2009', '库间调拨', 'KJDB', ''); |
| | | INSERT INTO `t_fid` VALUES ('2009-01', '库间调拨-新建调拨单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2009-02', '库间调拨-编辑调拨单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2009-03', '库间调拨-删除调拨单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2009-04', '库间调拨-提交调拨单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2009-05', '库间调拨-单据生成PDF', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2009-06', '库间调拨-打印', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2010', '库存盘点', 'KCPD', ''); |
| | | INSERT INTO `t_fid` VALUES ('2010-01', '库存盘点-新建盘点单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2010-02', '库存盘点-编辑盘点单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2010-03', '库存盘点-删除盘点单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2010-04', '库存盘点-提交盘点单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2010-05', '库存盘点-单据生成PDF', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2010-06', '库存盘点-打印', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2011-01', '首页-销售看板', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2011-02', '首页-库存看板', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2011-03', '首页-采购看板', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2011-04', '首页-资金看板', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2012', '报表-销售日报表(按商品汇总)', 'BBXSRBBASPHZ', ''); |
| | | INSERT INTO `t_fid` VALUES ('2013', '报表-销售日报表(按客户汇总)', 'BBXSRBBAKHHZ', ''); |
| | | INSERT INTO `t_fid` VALUES ('2014', '报表-销售日报表(按仓库汇总)', 'BBXSRBBACKHZ', ''); |
| | | INSERT INTO `t_fid` VALUES ('2015', '报表-销售日报表(按业务员汇总)', 'BBXSRBBAYWYHZ', ''); |
| | | INSERT INTO `t_fid` VALUES ('2016', '报表-销售月报表(按商品汇总)', 'BBXSYBBASPHZ', ''); |
| | | INSERT INTO `t_fid` VALUES ('2017', '报表-销售月报表(按客户汇总)', 'BBXSYBBAKHHZ', ''); |
| | | INSERT INTO `t_fid` VALUES ('2018', '报表-销售月报表(按仓库汇总)', 'BBXSYBBACKHZ', ''); |
| | | INSERT INTO `t_fid` VALUES ('2019', '报表-销售月报表(按业务员汇总)', 'BBXSYBBAYWYHZ', ''); |
| | | INSERT INTO `t_fid` VALUES ('2020', '报表-安全库存明细表', 'BBAQKCMXB', ''); |
| | | INSERT INTO `t_fid` VALUES ('2021', '报表-应收账款账龄分析表', 'BBYSZKZLFXB', ''); |
| | | INSERT INTO `t_fid` VALUES ('2022', '报表-应付账款账龄分析表', 'BBYFZKZLFXB', ''); |
| | | INSERT INTO `t_fid` VALUES ('2023', '报表-库存超上限明细表', 'BBKCCSXMXB', ''); |
| | | INSERT INTO `t_fid` VALUES ('2024', '现金收支查询', 'XJSZCX', ''); |
| | | INSERT INTO `t_fid` VALUES ('2025', '预收款管理', 'YSKGL', ''); |
| | | INSERT INTO `t_fid` VALUES ('2026', '预付款管理', 'YFKGL', ''); |
| | | INSERT INTO `t_fid` VALUES ('2027', '采购订单', 'CGDD', ''); |
| | | INSERT INTO `t_fid` VALUES ('2027-01', '采购订单-审核/取消审核', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2027-02', '采购订单-生成采购入库单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2027-03', '采购订单-新建采购订单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2027-04', '采购订单-编辑采购订单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2027-05', '采购订单-删除采购订单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2027-06', '采购订单-关闭订单/取消关闭订单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2027-07', '采购订单-单据生成PDF', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2027-08', '采购订单-打印', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2028', '销售订单', 'XSDD', ''); |
| | | INSERT INTO `t_fid` VALUES ('2028-01', '销售订单-审核/取消审核', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2028-02', '销售订单-生成销售出库单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2028-03', '销售订单-新建销售订单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2028-04', '销售订单-编辑销售订单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2028-05', '销售订单-删除销售订单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2028-06', '销售订单-单据生成PDF', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2028-07', '销售订单-打印', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2028-08', '销售订单-生成采购订单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2028-09', '销售订单-关闭订单/取消关闭订单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2029', '商品品牌', 'SPPP', ''); |
| | | INSERT INTO `t_fid` VALUES ('2030-01', '商品构成-新增子商品', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2030-02', '商品构成-编辑子商品', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2030-03', '商品构成-删除子商品', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2031', '价格体系', 'JGTX', ''); |
| | | INSERT INTO `t_fid` VALUES ('2031-01', '商品-设置商品价格体系', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2032', '销售合同', 'XSHT', ''); |
| | | INSERT INTO `t_fid` VALUES ('2032-01', '销售合同-新建销售合同', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2032-02', '销售合同-编辑销售合同', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2032-03', '销售合同-删除销售合同', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2032-04', '销售合同-审核/取消审核', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2032-05', '销售合同-生成销售订单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2032-06', '销售合同-单据生成PDF', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2032-07', '销售合同-打印', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2033', '存货拆分', 'CHCF', ''); |
| | | INSERT INTO `t_fid` VALUES ('2033-01', '存货拆分-新建拆分单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2033-02', '存货拆分-编辑拆分单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2033-03', '存货拆分-删除拆分单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2033-04', '存货拆分-提交拆分单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2033-05', '存货拆分-单据生成PDF', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2033-06', '存货拆分-打印', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2034', '工厂', 'GC', ''); |
| | | INSERT INTO `t_fid` VALUES ('2034-01', '工厂在业务单据中的使用权限', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2034-02', '工厂分类', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2034-03', '工厂-新增工厂分类', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2034-04', '工厂-编辑工厂分类', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2034-05', '工厂-删除工厂分类', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2034-06', '工厂-新增工厂', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2034-07', '工厂-编辑工厂', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2034-08', '工厂-删除工厂', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2035', '成品委托生产订单', 'CPWTSCDD', ''); |
| | | INSERT INTO `t_fid` VALUES ('2035-01', '成品委托生产订单-新建成品委托生产订单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2035-02', '成品委托生产订单-编辑成品委托生产订单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2035-03', '成品委托生产订单-删除成品委托生产订单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2035-04', '成品委托生产订单-提交成品委托生产订单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2035-05', '成品委托生产订单-审核/取消审核成品委托生产入库单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2035-06', '成品委托生产订单-关闭/取消关闭成品委托生产订单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2035-07', '成品委托生产订单-单据生成PDF', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2035-08', '成品委托生产订单-打印', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2036', '成品委托生产入库', 'CPWTSCRK', ''); |
| | | INSERT INTO `t_fid` VALUES ('2036-01', '成品委托生产入库-新建成品委托生产入库单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2036-02', '成品委托生产入库-编辑成品委托生产入库单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2036-03', '成品委托生产入库-删除成品委托生产入库单', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2036-04', '成品委托生产入库-提交入库', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2036-05', '成品委托生产入库-单据生成PDF', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2036-06', '成品委托生产入库-打印', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2037', '报表-采购入库明细表', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2038', '报表-销售出库明细表', '', ''); |
| | | INSERT INTO `t_fid` VALUES ('2101', '会计科目', 'KJKM', ''); |
| | | INSERT INTO `t_fid` VALUES ('2102', '银行账户', 'YHZH', ''); |
| | | INSERT INTO `t_fid` VALUES ('2103', '会计期间', 'KJQJ', ''); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_fid_plus |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_fid_plus`; |
| | | CREATE TABLE `t_fid_plus` ( |
| | | `fid` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `py` varchar(255) DEFAULT NULL, |
| | | `memo` varchar(255) DEFAULT NULL |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_fid_plus |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_form |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_form`; |
| | | CREATE TABLE `t_form` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `name` varchar(1000) NOT NULL, |
| | | `category_id` varchar(255) NOT NULL, |
| | | `sys_form` int(11) NOT NULL DEFAULT '0', |
| | | `md_version` int(11) NOT NULL DEFAULT '1', |
| | | `memo` varchar(1000) DEFAULT NULL, |
| | | `table_name` varchar(255) NOT NULL, |
| | | `fid` varchar(255) DEFAULT NULL, |
| | | `module_name` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_form |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_form_category |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_form_category`; |
| | | CREATE TABLE `t_form_category` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `parent_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_form_category |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_form_cols |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_form_cols`; |
| | | CREATE TABLE `t_form_cols` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `form_id` varchar(255) NOT NULL, |
| | | `caption` varchar(255) NOT NULL, |
| | | `db_field_name` varchar(255) NOT NULL, |
| | | `db_field_type` varchar(255) NOT NULL, |
| | | `db_field_length` int(11) NOT NULL, |
| | | `db_field_decimal` int(11) NOT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | `col_span` int(11) NOT NULL, |
| | | `value_from` int(11) DEFAULT NULL, |
| | | `value_from_table_name` varchar(255) DEFAULT NULL, |
| | | `value_from_col_name` varchar(255) DEFAULT NULL, |
| | | `value_from_col_name_display` varchar(255) DEFAULT NULL, |
| | | `must_input` int(11) DEFAULT '1', |
| | | `sys_col` int(11) DEFAULT '1', |
| | | `is_visible` int(11) DEFAULT '1', |
| | | `note` varchar(1000) DEFAULT NULL, |
| | | `editor_xtype` varchar(255) NOT NULL DEFAULT 'textfield', |
| | | `data_index` varchar(255) DEFAULT NULL, |
| | | `width_in_view` int(11) NOT NULL DEFAULT '120', |
| | | `show_order_in_view` int(11) NOT NULL DEFAULT '-1', |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_form_cols |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_form_detail |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_form_detail`; |
| | | CREATE TABLE `t_form_detail` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `form_id` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `table_name` varchar(255) NOT NULL, |
| | | `fk_name` varchar(255) NOT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_form_detail |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_form_detail_cols |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_form_detail_cols`; |
| | | CREATE TABLE `t_form_detail_cols` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `detail_id` varchar(255) NOT NULL, |
| | | `caption` varchar(255) NOT NULL, |
| | | `db_field_name` varchar(255) NOT NULL, |
| | | `db_field_type` varchar(255) NOT NULL, |
| | | `db_field_length` int(11) NOT NULL, |
| | | `db_field_decimal` int(11) NOT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | `width_in_view` int(11) NOT NULL, |
| | | `value_from` int(11) DEFAULT NULL, |
| | | `value_from_table_name` varchar(255) DEFAULT NULL, |
| | | `value_from_col_name` varchar(255) DEFAULT NULL, |
| | | `value_from_col_name_display` varchar(255) DEFAULT NULL, |
| | | `must_input` int(11) DEFAULT '1', |
| | | `sys_col` int(11) DEFAULT '1', |
| | | `is_visible` int(11) DEFAULT '1', |
| | | `note` varchar(1000) DEFAULT NULL, |
| | | `editor_xtype` varchar(255) NOT NULL DEFAULT 'textfield', |
| | | `data_index` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_form_detail_cols |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_form_md |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_form_md`; |
| | | CREATE TABLE `t_form_md` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `parent_id` varchar(255) DEFAULT NULL, |
| | | `prop_name` varchar(255) NOT NULL, |
| | | `prop_value` varchar(1000) NOT NULL, |
| | | `show_order` int(11) NOT NULL DEFAULT '0', |
| | | `form_id` varchar(255) NOT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_form_md |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_fv |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_fv`; |
| | | CREATE TABLE `t_fv` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `category_id` varchar(255) NOT NULL, |
| | | `memo` varchar(1000) DEFAULT NULL, |
| | | `py` varchar(255) DEFAULT NULL, |
| | | `fid` varchar(255) DEFAULT NULL, |
| | | `md_version` int(11) NOT NULL DEFAULT '1', |
| | | `is_fixed` int(11) NOT NULL DEFAULT '2', |
| | | `parent_id` varchar(255) DEFAULT NULL, |
| | | `module_name` varchar(255) DEFAULT NULL, |
| | | `xtype` varchar(255) NOT NULL, |
| | | `region` varchar(255) DEFAULT NULL, |
| | | `width_or_height` varchar(255) DEFAULT NULL, |
| | | `layout_type` int(11) NOT NULL DEFAULT '1', |
| | | `data_source_type` int(11) NOT NULL DEFAULT '1', |
| | | `data_source_table_name` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_fv |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_fv_category |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_fv_category`; |
| | | CREATE TABLE `t_fv_category` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `parent_id` varchar(255) DEFAULT NULL, |
| | | `is_system` int(11) NOT NULL DEFAULT '2', |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_fv_category |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_fv_cols |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_fv_cols`; |
| | | CREATE TABLE `t_fv_cols` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `fv_id` varchar(255) NOT NULL, |
| | | `caption` varchar(255) NOT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | `width` int(11) NOT NULL, |
| | | `value_from_table_name` varchar(255) DEFAULT NULL, |
| | | `value_from_col_name` varchar(255) DEFAULT NULL, |
| | | `value_type` int(11) NOT NULL DEFAULT '1', |
| | | `value_sql` varchar(255) DEFAULT NULL, |
| | | `value_php_class_name` varchar(255) DEFAULT NULL, |
| | | `display_format` int(11) NOT NULL DEFAULT '1', |
| | | `display_format_ext` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_fv_cols |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_fv_md |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_fv_md`; |
| | | CREATE TABLE `t_fv_md` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `parent_id` varchar(255) DEFAULT NULL, |
| | | `prop_name` varchar(255) NOT NULL, |
| | | `prop_value` varchar(1000) NOT NULL, |
| | | `show_order` int(11) NOT NULL DEFAULT '0', |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_fv_md |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_fv_qc |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_fv_qc`; |
| | | CREATE TABLE `t_fv_qc` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `fv_id` varchar(255) NOT NULL, |
| | | `caption` varchar(255) NOT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | `qc_type` int(11) NOT NULL, |
| | | `value_from_fv_id` varchar(255) DEFAULT NULL, |
| | | `value_from_col_name` varchar(255) DEFAULT NULL, |
| | | `xtype` varchar(255) DEFAULT NULL, |
| | | `qc_php_class_name` varchar(255) DEFAULT NULL, |
| | | `op` int(11) NOT NULL DEFAULT '1', |
| | | `op_group` int(11) NOT NULL DEFAULT '1', |
| | | `parent_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_fv_qc |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_goods |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_goods`; |
| | | CREATE TABLE `t_goods` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `category_id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `sale_price` decimal(19,2) NOT NULL, |
| | | `spec` varchar(255) NOT NULL, |
| | | `unit_id` varchar(255) NOT NULL, |
| | | `purchase_price` decimal(19,2) DEFAULT NULL, |
| | | `py` varchar(255) DEFAULT NULL, |
| | | `spec_py` varchar(255) DEFAULT NULL, |
| | | `bar_code` varchar(255) DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `memo` varchar(500) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `brand_id` varchar(255) DEFAULT NULL, |
| | | `record_status` int(11) DEFAULT '1000', |
| | | `tax_rate` decimal(19,2) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_goods |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_goods_bom |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_goods_bom`; |
| | | CREATE TABLE `t_goods_bom` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `goods_id` varchar(255) NOT NULL, |
| | | `sub_goods_id` varchar(255) NOT NULL, |
| | | `parent_id` varchar(255) DEFAULT NULL, |
| | | `sub_goods_count` decimal(19,8) NOT NULL, |
| | | `cost_weight` int(11) DEFAULT '1', |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_goods_bom |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_goods_brand |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_goods_brand`; |
| | | CREATE TABLE `t_goods_brand` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `parent_id` varchar(255) DEFAULT NULL, |
| | | `full_name` varchar(1000) DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `py` varchar(255) DEFAULT NULL, |
| | | `record_status` int(11) DEFAULT '1', |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_goods_brand |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_goods_category |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_goods_category`; |
| | | CREATE TABLE `t_goods_category` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `parent_id` varchar(255) DEFAULT NULL, |
| | | `full_name` varchar(1000) DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `tax_rate` decimal(19,2) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_goods_category |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_goods_price |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_goods_price`; |
| | | CREATE TABLE `t_goods_price` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `goods_id` varchar(255) NOT NULL, |
| | | `ps_id` varchar(255) NOT NULL, |
| | | `price` decimal(19,2) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_goods_price |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_goods_si |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_goods_si`; |
| | | CREATE TABLE `t_goods_si` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `goods_id` varchar(255) NOT NULL, |
| | | `warehouse_id` varchar(255) NOT NULL, |
| | | `safety_inventory` decimal(19,2) NOT NULL, |
| | | `inventory_upper` decimal(19,2) DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_goods_si |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_goods_unit |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_goods_unit`; |
| | | CREATE TABLE `t_goods_unit` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `code` varchar(255) DEFAULT NULL, |
| | | `record_status` int(11) DEFAULT '1', |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_goods_unit |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_ic_bill |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_ic_bill`; |
| | | CREATE TABLE `t_ic_bill` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `bill_status` int(11) NOT NULL, |
| | | `bizdt` datetime NOT NULL, |
| | | `biz_user_id` varchar(255) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `input_user_id` varchar(255) NOT NULL, |
| | | `ref` varchar(255) NOT NULL, |
| | | `warehouse_id` varchar(255) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `bill_memo` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_ic_bill |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_ic_bill_detail |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_ic_bill_detail`; |
| | | CREATE TABLE `t_ic_bill_detail` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `goods_id` varchar(255) NOT NULL, |
| | | `goods_count` decimal(19,8) NOT NULL, |
| | | `goods_money` decimal(19,2) NOT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | `icbill_id` varchar(255) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `memo` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_ic_bill_detail |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_inventory |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_inventory`; |
| | | CREATE TABLE `t_inventory` ( |
| | | `id` bigint(20) NOT NULL AUTO_INCREMENT, |
| | | `balance_count` decimal(19,8) NOT NULL, |
| | | `balance_money` decimal(19,2) NOT NULL, |
| | | `balance_price` decimal(19,2) NOT NULL, |
| | | `goods_id` varchar(255) NOT NULL, |
| | | `in_count` decimal(19,8) DEFAULT NULL, |
| | | `in_money` decimal(19,2) DEFAULT NULL, |
| | | `in_price` decimal(19,2) DEFAULT NULL, |
| | | `out_count` decimal(19,8) DEFAULT NULL, |
| | | `out_money` decimal(19,2) DEFAULT NULL, |
| | | `out_price` decimal(19,2) DEFAULT NULL, |
| | | `afloat_count` decimal(19,8) DEFAULT NULL, |
| | | `afloat_money` decimal(19,2) DEFAULT NULL, |
| | | `afloat_price` decimal(19,2) DEFAULT NULL, |
| | | `warehouse_id` varchar(255) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_inventory |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_inventory_detail |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_inventory_detail`; |
| | | CREATE TABLE `t_inventory_detail` ( |
| | | `id` bigint(20) NOT NULL AUTO_INCREMENT, |
| | | `balance_count` decimal(19,8) NOT NULL, |
| | | `balance_money` decimal(19,2) NOT NULL, |
| | | `balance_price` decimal(19,2) NOT NULL, |
| | | `biz_date` datetime NOT NULL, |
| | | `biz_user_id` varchar(255) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `goods_id` varchar(255) NOT NULL, |
| | | `in_count` decimal(19,8) DEFAULT NULL, |
| | | `in_money` decimal(19,2) DEFAULT NULL, |
| | | `in_price` decimal(19,2) DEFAULT NULL, |
| | | `out_count` decimal(19,8) DEFAULT NULL, |
| | | `out_money` decimal(19,2) DEFAULT NULL, |
| | | `out_price` decimal(19,2) DEFAULT NULL, |
| | | `ref_number` varchar(255) DEFAULT NULL, |
| | | `ref_type` varchar(255) NOT NULL, |
| | | `warehouse_id` varchar(255) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_inventory_detail |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_inventory_fifo |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_inventory_fifo`; |
| | | CREATE TABLE `t_inventory_fifo` ( |
| | | `id` bigint(20) NOT NULL AUTO_INCREMENT, |
| | | `balance_count` decimal(19,8) NOT NULL, |
| | | `balance_money` decimal(19,2) NOT NULL, |
| | | `balance_price` decimal(19,2) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `goods_id` varchar(255) NOT NULL, |
| | | `in_count` decimal(19,8) DEFAULT NULL, |
| | | `in_money` decimal(19,2) DEFAULT NULL, |
| | | `in_price` decimal(19,2) DEFAULT NULL, |
| | | `out_count` decimal(19,8) DEFAULT NULL, |
| | | `out_money` decimal(19,2) DEFAULT NULL, |
| | | `out_price` decimal(19,2) DEFAULT NULL, |
| | | `in_ref` varchar(255) DEFAULT NULL, |
| | | `in_ref_type` varchar(255) NOT NULL, |
| | | `warehouse_id` varchar(255) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `pwbilldetail_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_inventory_fifo |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_inventory_fifo_detail |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_inventory_fifo_detail`; |
| | | CREATE TABLE `t_inventory_fifo_detail` ( |
| | | `id` bigint(20) NOT NULL AUTO_INCREMENT, |
| | | `balance_count` decimal(19,8) NOT NULL, |
| | | `balance_money` decimal(19,2) NOT NULL, |
| | | `balance_price` decimal(19,2) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `goods_id` varchar(255) NOT NULL, |
| | | `in_count` decimal(19,8) DEFAULT NULL, |
| | | `in_money` decimal(19,2) DEFAULT NULL, |
| | | `in_price` decimal(19,2) DEFAULT NULL, |
| | | `out_count` decimal(19,8) DEFAULT NULL, |
| | | `out_money` decimal(19,2) DEFAULT NULL, |
| | | `out_price` decimal(19,2) DEFAULT NULL, |
| | | `warehouse_id` varchar(255) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `pwbilldetail_id` varchar(255) DEFAULT NULL, |
| | | `wsbilldetail_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_inventory_fifo_detail |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_it_bill |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_it_bill`; |
| | | CREATE TABLE `t_it_bill` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `bill_status` int(11) NOT NULL, |
| | | `bizdt` datetime NOT NULL, |
| | | `biz_user_id` varchar(255) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `input_user_id` varchar(255) NOT NULL, |
| | | `ref` varchar(255) NOT NULL, |
| | | `from_warehouse_id` varchar(255) NOT NULL, |
| | | `to_warehouse_id` varchar(255) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `bill_memo` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_it_bill |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_it_bill_detail |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_it_bill_detail`; |
| | | CREATE TABLE `t_it_bill_detail` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `goods_id` varchar(255) NOT NULL, |
| | | `goods_count` decimal(19,8) NOT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | `itbill_id` varchar(255) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `memo` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_it_bill_detail |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_material_unit |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_material_unit`; |
| | | CREATE TABLE `t_material_unit` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `code` varchar(255) DEFAULT NULL, |
| | | `record_status` int(11) DEFAULT '1', |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_material_unit |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_menu_item |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_menu_item`; |
| | | CREATE TABLE `t_menu_item` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `caption` varchar(255) NOT NULL, |
| | | `fid` varchar(255) DEFAULT NULL, |
| | | `parent_id` varchar(255) DEFAULT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | `py` varchar(255) DEFAULT NULL, |
| | | `memo` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_menu_item |
| | | -- ---------------------------- |
| | | INSERT INTO `t_menu_item` VALUES ('01', '个人中心', null, null, '1', '', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0101', '回到首页', '-9997', '01', '1', 'SY', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0102', '重新登录', '-9999', '01', '2', '', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0103', '修改我的密码', '-9996', '01', '3', 'XGWDMM', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('02', '采购管理', null, null, '2', '', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0200', '采购订单', '2027', '02', '0', 'CGDD', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0201', '采购入库', '2001', '02', '1', 'CGRK', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0202', '采购退货出库', '2007', '02', '2', 'CGTHCK', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('03', '库存管理', null, null, '3', '', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0301', '库存账查询', '2003', '03', '1', 'KCZCX', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0302', '库存建账', '2000', '03', '2', 'KCJZ', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0303', '库间调拨', '2009', '03', '3', 'KJDB', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0304', '库存盘点', '2010', '03', '4', 'KCPD', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('04', '销售管理', null, null, '5', '', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0401', '销售合同', '2032', '04', '1', 'XSHT', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0402', '销售订单', '2028', '04', '2', 'XSDD', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0403', '销售出库', '2002', '04', '3', 'XSCK', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0404', '销售退货入库', '2006', '04', '4', 'XSTHRK', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0405', '销售订单跟踪', 'C001', '04', '5', 'XSDDGZ', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('05', '客户管理', null, null, '6', '', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0501', '客户资料', '1007', '05', '1', 'KHZL', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('06', '资金管理', null, null, '7', '', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0601', '应收账款管理', '2004', '06', '1', 'YSZKGL', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0602', '应付账款管理', '2005', '06', '2', 'YFZKGL', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0603', '现金收支查询', '2024', '06', '3', 'XJSZCX', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0604', '预收款管理', '2025', '06', '4', 'YSKGL', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0605', '预付款管理', '2026', '06', '5', 'YFKGL', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('07', '报表中心', null, null, '8', '', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0700', '采购报表', null, '07', '-1', '', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('070001', '采购入库明细表', '2037', '0700', '1', 'CGRKMXB', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0701', '销售日报表', null, '07', '1', '', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('070101', '销售日报表(按商品汇总)', '2012', '0701', '1', 'XSRBBASPHZ', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('070102', '销售日报表(按客户汇总)', '2013', '0701', '2', 'XSRBBAKHHZ', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('070103', '销售日报表(按仓库汇总)', '2014', '0701', '3', 'XSRBBACKHZ', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('070104', '销售日报表(按业务员汇总)', '2015', '0701', '4', 'XSRBBAYWYHZ', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0702', '销售月报表', null, '07', '2', '', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('070201', '销售月报表(按商品汇总)', '2016', '0702', '1', 'XSYBBASPHZ', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('070202', '销售月报表(按客户汇总)', '2017', '0702', '2', 'XSYBBAKHHZ', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('070203', '销售月报表(按仓库汇总)', '2018', '0702', '3', 'XSYBBACKHZ', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('070204', '销售月报表(按业务员汇总)', '2019', '0702', '4', 'XSYBBAYWYHZ', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0703', '库存报表', null, '07', '3', '', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('070301', '安全库存明细表', '2020', '0703', '1', 'AQKCMXB', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('070302', '库存超上限明细表', '2023', '0703', '2', 'KCCSXMXB', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0706', '资金报表', null, '07', '6', '', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('070601', '应收账款账龄分析表', '2021', '0706', '1', 'YSZKZLFXB', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('070602', '应付账款账龄分析表', '2022', '0706', '2', 'YFZKZLFXB', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0710', '销售报表', null, '07', '0', '', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('071001', '销售出库明细表', '2038', '0710', '1', 'XSCKMXB', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('08', '基础数据', null, null, '10', '', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0801', '商品', null, '08', '1', '', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('080101', '商品', '1001', '0801', '1', 'SP', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('080102', '商品计量单位', '1002', '0801', '2', 'SPJLDW', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('080103', '商品品牌', '2029', '0801', '3', '', 'SPPP'); |
| | | INSERT INTO `t_menu_item` VALUES ('080104', '价格体系', '2031', '0801', '4', '', 'JGTX'); |
| | | INSERT INTO `t_menu_item` VALUES ('0803', '仓库', '1003', '08', '3', 'CK', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0804', '供应商档案', '1004', '08', '4', 'GYSDA', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0805', '工厂', '2034', '08', '5', 'GC', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('09', '系统管理', null, null, '11', '', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0901', '用户管理', '-8999', '09', '1', 'YHGL', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0902', '权限管理', '-8996', '09', '2', 'QXGL', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0903', '业务日志', '-8997', '09', '3', 'YWRZ', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('0904', '业务设置', '2008', '09', '4', '', 'YWSZ'); |
| | | INSERT INTO `t_menu_item` VALUES ('0905', '二次开发', null, '99', '5', '', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('090501', '码表设置', '-7996', '0905', '1', 'MBSZ', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('090502', '自定义表单', '-7999', '0905', '2', 'ZDYBD', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('090503', '视图开发助手', '-7997', '0905', '3', 'STKFZS', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('090504', '主菜单维护', '-7995', '0905', '4', 'ZCDWH', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('090505', '系统数据字典', '-7994', '0905', '5', 'XTSJZD', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('10', '帮助', null, null, '12', '', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('1001', '使用帮助', '-9995', '10', '1', 'SYBZ', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('1003', '关于', '-9994', '10', '3', 'GY', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('11', '财务总账', null, null, '9', '', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('1101', '基础数据', null, '11', '1', '', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('110101', '会计科目', '2101', '1101', '1', 'KJKM', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('110102', '银行账户', '2102', '1101', '2', 'YHZH', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('110103', '会计期间', '2103', '1101', '3', 'KJQJ', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('12', '委托加工', null, null, '4', '', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('1201', '存货拆分', '2033', '12', '1', 'CHCF', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('1202', '成品委托生产', null, '12', '2', '', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('120201', '成品委托生产订单', '2035', '1202', '1', 'CPWTSCDD', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('120202', '成品委托生产入库', '2036', '1202', '2', 'CPWTSCRK', ''); |
| | | INSERT INTO `t_menu_item` VALUES ('13', 'LowCode演示', null, null, '13', '', ''); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_menu_item_h5 |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_menu_item_h5`; |
| | | CREATE TABLE `t_menu_item_h5` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `caption` varchar(255) NOT NULL, |
| | | `fid` varchar(255) DEFAULT NULL, |
| | | `parent_id` varchar(255) DEFAULT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_menu_item_h5 |
| | | -- ---------------------------- |
| | | INSERT INTO `t_menu_item_h5` VALUES ('01', '销售', null, null, '1'); |
| | | INSERT INTO `t_menu_item_h5` VALUES ('0101', '销售订单', '2028', '01', '1'); |
| | | INSERT INTO `t_menu_item_h5` VALUES ('02', '客户关系', null, null, '2'); |
| | | INSERT INTO `t_menu_item_h5` VALUES ('0201', '客户资料', '1007', '02', '1'); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_menu_item_plus |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_menu_item_plus`; |
| | | CREATE TABLE `t_menu_item_plus` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `caption` varchar(255) NOT NULL, |
| | | `fid` varchar(255) DEFAULT NULL, |
| | | `parent_id` varchar(255) DEFAULT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | `py` varchar(255) DEFAULT NULL, |
| | | `memo` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_menu_item_plus |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_org |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_org`; |
| | | CREATE TABLE `t_org` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `full_name` varchar(1000) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `org_code` varchar(255) NOT NULL, |
| | | `parent_id` varchar(255) DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `org_type` int(11) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_org |
| | | -- ---------------------------- |
| | | INSERT INTO `t_org` VALUES ('4D74E1E4-A129-11E4-9B6A-782BCBD7746B', '公司', '公司', '01', null, '01', null); |
| | | INSERT INTO `t_org` VALUES ('5EBDBE11-A129-11E4-9B6A-782BCBD7746B', '公司\\信息部', '信息部', '0199', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B', '0101', null); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_payables |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_payables`; |
| | | CREATE TABLE `t_payables` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `act_money` decimal(19,2) NOT NULL, |
| | | `balance_money` decimal(19,2) NOT NULL, |
| | | `ca_id` varchar(255) NOT NULL, |
| | | `ca_type` varchar(255) NOT NULL, |
| | | `pay_money` decimal(19,2) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_payables |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_payables_detail |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_payables_detail`; |
| | | CREATE TABLE `t_payables_detail` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `act_money` decimal(19,2) NOT NULL, |
| | | `balance_money` decimal(19,2) NOT NULL, |
| | | `ca_id` varchar(255) NOT NULL, |
| | | `ca_type` varchar(255) NOT NULL, |
| | | `biz_date` datetime DEFAULT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `pay_money` decimal(19,2) NOT NULL, |
| | | `ref_number` varchar(255) NOT NULL, |
| | | `ref_type` varchar(255) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_payables_detail |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_payment |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_payment`; |
| | | CREATE TABLE `t_payment` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `act_money` decimal(19,2) NOT NULL, |
| | | `biz_date` datetime NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `input_user_id` varchar(255) NOT NULL, |
| | | `pay_user_id` varchar(255) NOT NULL, |
| | | `bill_id` varchar(255) NOT NULL, |
| | | `ref_type` varchar(255) NOT NULL, |
| | | `ref_number` varchar(255) NOT NULL, |
| | | `remark` varchar(255) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_payment |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_permission |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_permission`; |
| | | CREATE TABLE `t_permission` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `fid` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `note` varchar(255) DEFAULT NULL, |
| | | `category` varchar(255) DEFAULT NULL, |
| | | `py` varchar(255) DEFAULT NULL, |
| | | `show_order` int(11) DEFAULT NULL, |
| | | `parent_fid` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_permission |
| | | -- ---------------------------- |
| | | INSERT INTO `t_permission` VALUES ('-7994', '-7994', '系统数据字典', '模块权限:通过菜单进入系统数据字典模块的权限', '系统数据字典', 'XTSJZD', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('-7995', '-7995', '主菜单维护', '模块权限:通过菜单进入主菜单维护模块的权限', '主菜单维护', 'ZCDWH', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('-7996', '-7996', '码表设置', '模块权限:通过菜单进入码表设置模块的权限', '码表设置', 'MBSZ', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('-7997', '-7997', '视图开发助手', '模块权限:通过菜单进入视图开发助手模块的权限', '视图开发助手', 'STKFZS', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('-7999', '-7999', '自定义表单', '模块权限:通过菜单进入自定义表单模块的权限', '自定义表单', 'ZDYBD', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('-8996', '-8996', '权限管理', '模块权限:通过菜单进入权限管理模块的权限', '权限管理', 'QXGL', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('-8996-01', '-8996-01', '权限管理-新增角色', '按钮权限:权限管理模块[新增角色]按钮权限', '权限管理', 'QXGL_XZJS', '201', null); |
| | | INSERT INTO `t_permission` VALUES ('-8996-02', '-8996-02', '权限管理-编辑角色', '按钮权限:权限管理模块[编辑角色]按钮权限', '权限管理', 'QXGL_BJJS', '202', null); |
| | | INSERT INTO `t_permission` VALUES ('-8996-03', '-8996-03', '权限管理-删除角色', '按钮权限:权限管理模块[删除角色]按钮权限', '权限管理', 'QXGL_SCJS', '203', null); |
| | | INSERT INTO `t_permission` VALUES ('-8997', '-8997', '业务日志', '模块权限:通过菜单进入业务日志模块的权限', '系统管理', 'YWRZ', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('-8999', '-8999', '用户管理', '模块权限:通过菜单进入用户管理模块的权限', '用户管理', 'YHGL', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('-8999-01', '-8999-01', '组织机构在业务单据中的使用权限', '数据域权限:组织机构在业务单据中的使用权限', '用户管理', 'ZZJGZYWDJZDSYQX', '300', null); |
| | | INSERT INTO `t_permission` VALUES ('-8999-02', '-8999-02', '业务员在业务单据中的使用权限', '数据域权限:业务员在业务单据中的使用权限', '用户管理', 'YWYZYWDJZDSYQX', '301', null); |
| | | INSERT INTO `t_permission` VALUES ('-8999-03', '-8999-03', '用户管理-新增组织机构', '按钮权限:用户管理模块[新增组织机构]按钮权限', '用户管理', 'YHGL_XZZZJG', '201', null); |
| | | INSERT INTO `t_permission` VALUES ('-8999-04', '-8999-04', '用户管理-编辑组织机构', '按钮权限:用户管理模块[编辑组织机构]按钮权限', '用户管理', 'YHGL_BJZZJG', '202', null); |
| | | INSERT INTO `t_permission` VALUES ('-8999-05', '-8999-05', '用户管理-删除组织机构', '按钮权限:用户管理模块[删除组织机构]按钮权限', '用户管理', 'YHGL_SCZZJG', '203', null); |
| | | INSERT INTO `t_permission` VALUES ('-8999-06', '-8999-06', '用户管理-新增用户', '按钮权限:用户管理模块[新增用户]按钮权限', '用户管理', 'YHGL_XZYH', '204', null); |
| | | INSERT INTO `t_permission` VALUES ('-8999-07', '-8999-07', '用户管理-编辑用户', '按钮权限:用户管理模块[编辑用户]按钮权限', '用户管理', 'YHGL_BJYH', '205', null); |
| | | INSERT INTO `t_permission` VALUES ('-8999-08', '-8999-08', '用户管理-删除用户', '按钮权限:用户管理模块[删除用户]按钮权限', '用户管理', 'YHGL_SCYH', '206', null); |
| | | INSERT INTO `t_permission` VALUES ('-8999-09', '-8999-09', '用户管理-修改用户密码', '按钮权限:用户管理模块[修改用户密码]按钮权限', '用户管理', 'YHGL_XGYHMM', '207', null); |
| | | INSERT INTO `t_permission` VALUES ('1001', '1001', '商品', '模块权限:通过菜单进入商品模块的权限', '商品', 'SP', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('1001-01', '1001-01', '商品在业务单据中的使用权限', '数据域权限:商品在业务单据中的使用权限', '商品', 'SPZYWDJZDSYQX', '300', null); |
| | | INSERT INTO `t_permission` VALUES ('1001-02', '1001-02', '商品分类', '数据域权限:商品模块中商品分类的数据权限', '商品', 'SPFL', '301', null); |
| | | INSERT INTO `t_permission` VALUES ('1001-03', '1001-03', '新增商品分类', '按钮权限:商品模块[新增商品分类]按钮权限', '商品', 'XZSPFL', '201', null); |
| | | INSERT INTO `t_permission` VALUES ('1001-04', '1001-04', '编辑商品分类', '按钮权限:商品模块[编辑商品分类]按钮权限', '商品', 'BJSPFL', '202', null); |
| | | INSERT INTO `t_permission` VALUES ('1001-05', '1001-05', '删除商品分类', '按钮权限:商品模块[删除商品分类]按钮权限', '商品', 'SCSPFL', '203', null); |
| | | INSERT INTO `t_permission` VALUES ('1001-06', '1001-06', '新增商品', '按钮权限:商品模块[新增商品]按钮权限', '商品', 'XZSP', '204', null); |
| | | INSERT INTO `t_permission` VALUES ('1001-07', '1001-07', '编辑商品', '按钮权限:商品模块[编辑商品]按钮权限', '商品', 'BJSP', '205', null); |
| | | INSERT INTO `t_permission` VALUES ('1001-08', '1001-08', '删除商品', '按钮权限:商品模块[删除商品]按钮权限', '商品', 'SCSP', '206', null); |
| | | INSERT INTO `t_permission` VALUES ('1001-09', '1001-09', '导入商品', '按钮权限:商品模块[导入商品]按钮权限', '商品', 'DRSP', '207', null); |
| | | INSERT INTO `t_permission` VALUES ('1001-10', '1001-10', '设置商品安全库存', '按钮权限:商品模块[设置安全库存]按钮权限', '商品', 'SZSPAQKC', '208', null); |
| | | INSERT INTO `t_permission` VALUES ('1001-11', '1001-11', '导出Excel', '按钮权限:商品模块[导出Excel]按钮权限', '商品', 'DCEXCEL', '209', null); |
| | | INSERT INTO `t_permission` VALUES ('1002', '1002', '商品计量单位', '模块权限:通过菜单进入商品计量单位模块的权限', '商品', 'SPJLDW', '500', null); |
| | | INSERT INTO `t_permission` VALUES ('1003', '1003', '仓库', '模块权限:通过菜单进入仓库的权限', '仓库', 'CK', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('1003-01', '1003-01', '仓库在业务单据中的使用权限', '数据域权限:仓库在业务单据中的使用权限', '仓库', 'CKZYWDJZDSYQX', '300', null); |
| | | INSERT INTO `t_permission` VALUES ('1003-02', '1003-02', '新增仓库', '按钮权限:仓库模块[新增仓库]按钮权限', '仓库', 'XZCK', '201', null); |
| | | INSERT INTO `t_permission` VALUES ('1003-03', '1003-03', '编辑仓库', '按钮权限:仓库模块[编辑仓库]按钮权限', '仓库', 'BJCK', '202', null); |
| | | INSERT INTO `t_permission` VALUES ('1003-04', '1003-04', '删除仓库', '按钮权限:仓库模块[删除仓库]按钮权限', '仓库', 'SCCK', '203', null); |
| | | INSERT INTO `t_permission` VALUES ('1003-05', '1003-05', '修改仓库数据域', '按钮权限:仓库模块[修改数据域]按钮权限', '仓库', 'XGCKSJY', '204', null); |
| | | INSERT INTO `t_permission` VALUES ('1004', '1004', '供应商档案', '模块权限:通过菜单进入供应商档案的权限', '供应商管理', 'GYSDA', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('1004-01', '1004-01', '供应商档案在业务单据中的使用权限', '数据域权限:供应商档案在业务单据中的使用权限', '供应商管理', 'GYSDAZYWDJZDSYQX', '301', null); |
| | | INSERT INTO `t_permission` VALUES ('1004-02', '1004-02', '供应商分类', '数据域权限:供应商档案模块中供应商分类的数据权限', '供应商管理', 'GYSFL', '300', null); |
| | | INSERT INTO `t_permission` VALUES ('1004-03', '1004-03', '新增供应商分类', '按钮权限:供应商档案模块[新增供应商分类]按钮权限', '供应商管理', 'XZGYSFL', '201', null); |
| | | INSERT INTO `t_permission` VALUES ('1004-04', '1004-04', '编辑供应商分类', '按钮权限:供应商档案模块[编辑供应商分类]按钮权限', '供应商管理', 'BJGYSFL', '202', null); |
| | | INSERT INTO `t_permission` VALUES ('1004-05', '1004-05', '删除供应商分类', '按钮权限:供应商档案模块[删除供应商分类]按钮权限', '供应商管理', 'SCGYSFL', '203', null); |
| | | INSERT INTO `t_permission` VALUES ('1004-06', '1004-06', '新增供应商', '按钮权限:供应商档案模块[新增供应商]按钮权限', '供应商管理', 'XZGYS', '204', null); |
| | | INSERT INTO `t_permission` VALUES ('1004-07', '1004-07', '编辑供应商', '按钮权限:供应商档案模块[编辑供应商]按钮权限', '供应商管理', 'BJGYS', '205', null); |
| | | INSERT INTO `t_permission` VALUES ('1004-08', '1004-08', '删除供应商', '按钮权限:供应商档案模块[删除供应商]按钮权限', '供应商管理', 'SCGYS', '206', null); |
| | | INSERT INTO `t_permission` VALUES ('1007', '1007', '客户资料', '模块权限:通过菜单进入客户资料模块的权限', '客户管理', 'KHZL', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('1007-01', '1007-01', '客户资料在业务单据中的使用权限', '数据域权限:客户资料在业务单据中的使用权限', '客户管理', 'KHZLZYWDJZDSYQX', '300', null); |
| | | INSERT INTO `t_permission` VALUES ('1007-02', '1007-02', '客户分类', '数据域权限:客户档案模块中客户分类的数据权限', '客户管理', 'KHFL', '301', null); |
| | | INSERT INTO `t_permission` VALUES ('1007-03', '1007-03', '新增客户分类', '按钮权限:客户资料模块[新增客户分类]按钮权限', '客户管理', 'XZKHFL', '201', null); |
| | | INSERT INTO `t_permission` VALUES ('1007-04', '1007-04', '编辑客户分类', '按钮权限:客户资料模块[编辑客户分类]按钮权限', '客户管理', 'BJKHFL', '202', null); |
| | | INSERT INTO `t_permission` VALUES ('1007-05', '1007-05', '删除客户分类', '按钮权限:客户资料模块[删除客户分类]按钮权限', '客户管理', 'SCKHFL', '203', null); |
| | | INSERT INTO `t_permission` VALUES ('1007-06', '1007-06', '新增客户', '按钮权限:客户资料模块[新增客户]按钮权限', '客户管理', 'XZKH', '204', null); |
| | | INSERT INTO `t_permission` VALUES ('1007-07', '1007-07', '编辑客户', '按钮权限:客户资料模块[编辑客户]按钮权限', '客户管理', 'BJKH', '205', null); |
| | | INSERT INTO `t_permission` VALUES ('1007-08', '1007-08', '删除客户', '按钮权限:客户资料模块[删除客户]按钮权限', '客户管理', 'SCKH', '206', null); |
| | | INSERT INTO `t_permission` VALUES ('1007-09', '1007-09', '导入客户', '按钮权限:客户资料模块[导入客户]按钮权限', '客户管理', 'DRKH', '207', null); |
| | | INSERT INTO `t_permission` VALUES ('2000', '2000', '库存建账', '模块权限:通过菜单进入库存建账模块的权限', '库存建账', 'KCJZ', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2001', '2001', '采购入库', '模块权限:通过菜单进入采购入库模块的权限', '采购入库', 'CGRK', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2001-01', '2001-01', '采购入库-新建采购入库单', '按钮权限:采购入库模块[新建采购入库单]按钮权限', '采购入库', 'CGRK_XJCGRKD', '201', null); |
| | | INSERT INTO `t_permission` VALUES ('2001-02', '2001-02', '采购入库-编辑采购入库单', '按钮权限:采购入库模块[编辑采购入库单]按钮权限', '采购入库', 'CGRK_BJCGRKD', '202', null); |
| | | INSERT INTO `t_permission` VALUES ('2001-03', '2001-03', '采购入库-删除采购入库单', '按钮权限:采购入库模块[删除采购入库单]按钮权限', '采购入库', 'CGRK_SCCGRKD', '203', null); |
| | | INSERT INTO `t_permission` VALUES ('2001-04', '2001-04', '采购入库-提交入库', '按钮权限:采购入库模块[提交入库]按钮权限', '采购入库', 'CGRK_TJRK', '204', null); |
| | | INSERT INTO `t_permission` VALUES ('2001-05', '2001-05', '采购入库-单据生成PDF', '按钮权限:采购入库模块[单据生成PDF]按钮权限', '采购入库', 'CGRK_DJSCPDF', '205', null); |
| | | INSERT INTO `t_permission` VALUES ('2001-06', '2001-06', '采购入库-采购单价和金额可见', '字段权限:采购入库单的采购单价和金额可以被用户查看', '采购入库', 'CGRK_CGDJHJEKJ', '206', null); |
| | | INSERT INTO `t_permission` VALUES ('2001-07', '2001-07', '采购入库-打印', '按钮权限:采购入库模块[打印预览]和[直接打印]按钮权限', '采购入库', 'CGRK_DY', '207', null); |
| | | INSERT INTO `t_permission` VALUES ('2002', '2002', '销售出库', '模块权限:通过菜单进入销售出库模块的权限', '销售出库', 'XSCK', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2002-01', '2002-01', '销售出库-销售出库单允许编辑销售单价', '功能权限:销售出库单允许编辑销售单价', '销售出库', 'XSCKDYXBJXSDJ', '101', null); |
| | | INSERT INTO `t_permission` VALUES ('2002-02', '2002-02', '销售出库-新建销售出库单', '按钮权限:销售出库模块[新建销售出库单]按钮权限', '销售出库', 'XSCK_XJXSCKD', '201', null); |
| | | INSERT INTO `t_permission` VALUES ('2002-03', '2002-03', '销售出库-编辑销售出库单', '按钮权限:销售出库模块[编辑销售出库单]按钮权限', '销售出库', 'XSCK_BJXSCKD', '202', null); |
| | | INSERT INTO `t_permission` VALUES ('2002-04', '2002-04', '销售出库-删除销售出库单', '按钮权限:销售出库模块[删除销售出库单]按钮权限', '销售出库', 'XSCK_SCXSCKD', '203', null); |
| | | INSERT INTO `t_permission` VALUES ('2002-05', '2002-05', '销售出库-提交出库', '按钮权限:销售出库模块[提交出库]按钮权限', '销售出库', 'XSCK_TJCK', '204', null); |
| | | INSERT INTO `t_permission` VALUES ('2002-06', '2002-06', '销售出库-单据生成PDF', '按钮权限:销售出库模块[单据生成PDF]按钮权限', '销售出库', 'XSCK_DJSCPDF', '205', null); |
| | | INSERT INTO `t_permission` VALUES ('2002-07', '2002-07', '销售出库-打印', '按钮权限:销售出库模块[打印预览]和[直接打印]按钮权限', '销售出库', 'XSCK_DY', '207', null); |
| | | INSERT INTO `t_permission` VALUES ('2003', '2003', '库存账查询', '模块权限:通过菜单进入库存账查询模块的权限', '库存账查询', 'KCZCX', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2003-01', '2003-01', '总账导出Excel', '按钮权限:库存账查询模块[总账导出Excel]按钮权限', '库存账查询', '', '201', null); |
| | | INSERT INTO `t_permission` VALUES ('2004', '2004', '应收账款管理', '模块权限:通过菜单进入应收账款管理模块的权限', '应收账款管理', 'YSZKGL', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2005', '2005', '应付账款管理', '模块权限:通过菜单进入应付账款管理模块的权限', '应付账款管理', 'YFZKGL', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2006', '2006', '销售退货入库', '模块权限:通过菜单进入销售退货入库模块的权限', '销售退货入库', 'XSTHRK', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2006-01', '2006-01', '销售退货入库-新建销售退货入库单', '按钮权限:销售退货入库模块[新建销售退货入库单]按钮权限', '销售退货入库', 'XSTHRK_XJXSTHRKD', '201', null); |
| | | INSERT INTO `t_permission` VALUES ('2006-02', '2006-02', '销售退货入库-编辑销售退货入库单', '按钮权限:销售退货入库模块[编辑销售退货入库单]按钮权限', '销售退货入库', 'XSTHRK_BJXSTHRKD', '202', null); |
| | | INSERT INTO `t_permission` VALUES ('2006-03', '2006-03', '销售退货入库-删除销售退货入库单', '按钮权限:销售退货入库模块[删除销售退货入库单]按钮权限', '销售退货入库', 'XSTHRK_SCXSTHRKD', '203', null); |
| | | INSERT INTO `t_permission` VALUES ('2006-04', '2006-04', '销售退货入库-提交入库', '按钮权限:销售退货入库模块[提交入库]按钮权限', '销售退货入库', 'XSTHRK_TJRK', '204', null); |
| | | INSERT INTO `t_permission` VALUES ('2006-05', '2006-05', '销售退货入库-单据生成PDF', '按钮权限:销售退货入库模块[单据生成PDF]按钮权限', '销售退货入库', 'XSTHRK_DJSCPDF', '205', null); |
| | | INSERT INTO `t_permission` VALUES ('2006-06', '2006-06', '销售退货入库-打印', '按钮权限:销售退货入库模块[打印预览]和[直接打印]按钮权限', '销售退货入库', 'XSTHRK_DY', '206', null); |
| | | INSERT INTO `t_permission` VALUES ('2007', '2007', '采购退货出库', '模块权限:通过菜单进入采购退货出库模块的权限', '采购退货出库', 'CGTHCK', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2007-01', '2007-01', '采购退货出库-新建采购退货出库单', '按钮权限:采购退货出库模块[新建采购退货出库单]按钮权限', '采购退货出库', 'CGTHCK_XJCGTHCKD', '201', null); |
| | | INSERT INTO `t_permission` VALUES ('2007-02', '2007-02', '采购退货出库-编辑采购退货出库单', '按钮权限:采购退货出库模块[编辑采购退货出库单]按钮权限', '采购退货出库', 'CGTHCK_BJCGTHCKD', '202', null); |
| | | INSERT INTO `t_permission` VALUES ('2007-03', '2007-03', '采购退货出库-删除采购退货出库单', '按钮权限:采购退货出库模块[删除采购退货出库单]按钮权限', '采购退货出库', 'CGTHCK_SCCGTHCKD', '203', null); |
| | | INSERT INTO `t_permission` VALUES ('2007-04', '2007-04', '采购退货出库-提交采购退货出库单', '按钮权限:采购退货出库模块[提交采购退货出库单]按钮权限', '采购退货出库', 'CGTHCK_TJCGTHCKD', '204', null); |
| | | INSERT INTO `t_permission` VALUES ('2007-05', '2007-05', '采购退货出库-单据生成PDF', '按钮权限:采购退货出库模块[单据生成PDF]按钮权限', '采购退货出库', 'CGTHCK_DJSCPDF', '205', null); |
| | | INSERT INTO `t_permission` VALUES ('2007-06', '2007-06', '采购退货出库-打印', '按钮权限:采购退货出库模块[打印预览]和[直接打印]按钮权限', '采购退货出库', 'CGTHCK_DY', '206', null); |
| | | INSERT INTO `t_permission` VALUES ('2008', '2008', '业务设置', '模块权限:通过菜单进入业务设置模块的权限', '系统管理', 'YWSZ', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2009', '2009', '库间调拨', '模块权限:通过菜单进入库间调拨模块的权限', '库间调拨', 'KJDB', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2009-01', '2009-01', '库间调拨-新建调拨单', '按钮权限:库间调拨模块[新建调拨单]按钮权限', '库间调拨', 'KJDB_XJDBD', '201', null); |
| | | INSERT INTO `t_permission` VALUES ('2009-02', '2009-02', '库间调拨-编辑调拨单', '按钮权限:库间调拨模块[编辑调拨单]按钮权限', '库间调拨', 'KJDB_BJDBD', '202', null); |
| | | INSERT INTO `t_permission` VALUES ('2009-03', '2009-03', '库间调拨-删除调拨单', '按钮权限:库间调拨模块[删除调拨单]按钮权限', '库间调拨', 'KJDB_SCDBD', '203', null); |
| | | INSERT INTO `t_permission` VALUES ('2009-04', '2009-04', '库间调拨-提交调拨单', '按钮权限:库间调拨模块[提交调拨单]按钮权限', '库间调拨', 'KJDB_TJDBD', '204', null); |
| | | INSERT INTO `t_permission` VALUES ('2009-05', '2009-05', '库间调拨-单据生成PDF', '按钮权限:库间调拨模块[单据生成PDF]按钮权限', '库间调拨', 'KJDB_DJSCPDF', '205', null); |
| | | INSERT INTO `t_permission` VALUES ('2009-06', '2009-06', '库间调拨-打印', '按钮权限:库间调拨模块[打印预览]和[直接打印]按钮权限', '库间调拨', 'KJDB_DY', '206', null); |
| | | INSERT INTO `t_permission` VALUES ('2010', '2010', '库存盘点', '模块权限:通过菜单进入库存盘点模块的权限', '库存盘点', 'KCPD', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2010-01', '2010-01', '库存盘点-新建盘点单', '按钮权限:库存盘点模块[新建盘点单]按钮权限', '库存盘点', 'KCPD_XJPDD', '201', null); |
| | | INSERT INTO `t_permission` VALUES ('2010-02', '2010-02', '库存盘点-编辑盘点单', '按钮权限:库存盘点模块[编辑盘点单]按钮权限', '库存盘点', 'KCPD_BJPDD', '202', null); |
| | | INSERT INTO `t_permission` VALUES ('2010-03', '2010-03', '库存盘点-删除盘点单', '按钮权限:库存盘点模块[删除盘点单]按钮权限', '库存盘点', 'KCPD_SCPDD', '203', null); |
| | | INSERT INTO `t_permission` VALUES ('2010-04', '2010-04', '库存盘点-提交盘点单', '按钮权限:库存盘点模块[提交盘点单]按钮权限', '库存盘点', 'KCPD_TJPDD', '204', null); |
| | | INSERT INTO `t_permission` VALUES ('2010-05', '2010-05', '库存盘点-单据生成PDF', '按钮权限:库存盘点模块[单据生成PDF]按钮权限', '库存盘点', 'KCPD_DJSCPDF', '205', null); |
| | | INSERT INTO `t_permission` VALUES ('2010-06', '2010-06', '库存盘点-打印', '按钮权限:库存盘点模块[打印预览]和[直接打印]按钮权限', '库存盘点', 'KCPD_DY', '206', null); |
| | | INSERT INTO `t_permission` VALUES ('2011-01', '2011-01', '首页-销售看板', '功能权限:在首页显示销售看板', '首页看板', 'SY_XSKB', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2011-02', '2011-02', '首页-库存看板', '功能权限:在首页显示库存看板', '首页看板', 'SY_KCKB', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2011-03', '2011-03', '首页-采购看板', '功能权限:在首页显示采购看板', '首页看板', 'SY_CGKB', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2011-04', '2011-04', '首页-资金看板', '功能权限:在首页显示资金看板', '首页看板', 'SY_ZJKB', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2012', '2012', '报表-销售日报表(按商品汇总)', '模块权限:通过菜单进入销售日报表(按商品汇总)模块的权限', '销售日报表', 'BB_XSRBB_ASPHZ_', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2013', '2013', '报表-销售日报表(按客户汇总)', '模块权限:通过菜单进入销售日报表(按客户汇总)模块的权限', '销售日报表', 'BB_XSRBB_AKHHZ_', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2014', '2014', '报表-销售日报表(按仓库汇总)', '模块权限:通过菜单进入销售日报表(按仓库汇总)模块的权限', '销售日报表', 'BB_XSRBB_ACKHZ_', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2015', '2015', '报表-销售日报表(按业务员汇总)', '模块权限:通过菜单进入销售日报表(按业务员汇总)模块的权限', '销售日报表', 'BB_XSRBB_AYWYHZ_', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2016', '2016', '报表-销售月报表(按商品汇总)', '模块权限:通过菜单进入销售月报表(按商品汇总)模块的权限', '销售月报表', 'BB_XSYBB_ASPHZ_', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2017', '2017', '报表-销售月报表(按客户汇总)', '模块权限:通过菜单进入销售月报表(按客户汇总)模块的权限', '销售月报表', 'BB_XSYBB_AKHHZ_', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2018', '2018', '报表-销售月报表(按仓库汇总)', '模块权限:通过菜单进入销售月报表(按仓库汇总)模块的权限', '销售月报表', 'BB_XSYBB_ACKHZ_', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2019', '2019', '报表-销售月报表(按业务员汇总)', '模块权限:通过菜单进入销售月报表(按业务员汇总)模块的权限', '销售月报表', 'BB_XSYBB_AYWYHZ_', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2020', '2020', '报表-安全库存明细表', '模块权限:通过菜单进入安全库存明细表模块的权限', '库存报表', 'BB_AQKCMXB', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2021', '2021', '报表-应收账款账龄分析表', '模块权限:通过菜单进入应收账款账龄分析表模块的权限', '资金报表', 'BB_YSZKZLFXB', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2022', '2022', '报表-应付账款账龄分析表', '模块权限:通过菜单进入应付账款账龄分析表模块的权限', '资金报表', 'BB_YFZKZLFXB', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2023', '2023', '报表-库存超上限明细表', '模块权限:通过菜单进入库存超上限明细表模块的权限', '库存报表', 'BB_KCCSXMXB', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2024', '2024', '现金收支查询', '模块权限:通过菜单进入现金收支查询模块的权限', '现金管理', 'XJSZCX', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2025', '2025', '预收款管理', '模块权限:通过菜单进入预收款管理模块的权限', '预收款管理', 'YSKGL', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2026', '2026', '预付款管理', '模块权限:通过菜单进入预付款管理模块的权限', '预付款管理', 'YFKGL', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2027', '2027', '采购订单', '模块权限:通过菜单进入采购订单模块的权限', '采购订单', 'CGDD', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2027-01', '2027-01', '采购订单-审核/取消审核', '按钮权限:采购订单模块[审核]按钮和[取消审核]按钮的权限', '采购订单', 'CGDD _ SH_QXSH', '204', null); |
| | | INSERT INTO `t_permission` VALUES ('2027-02', '2027-02', '采购订单-生成采购入库单', '按钮权限:采购订单模块[生成采购入库单]按钮权限', '采购订单', 'CGDD _ SCCGRKD', '205', null); |
| | | INSERT INTO `t_permission` VALUES ('2027-03', '2027-03', '采购订单-新建采购订单', '按钮权限:采购订单模块[新建采购订单]按钮权限', '采购订单', 'CGDD _ XJCGDD', '201', null); |
| | | INSERT INTO `t_permission` VALUES ('2027-04', '2027-04', '采购订单-编辑采购订单', '按钮权限:采购订单模块[编辑采购订单]按钮权限', '采购订单', 'CGDD _ BJCGDD', '202', null); |
| | | INSERT INTO `t_permission` VALUES ('2027-05', '2027-05', '采购订单-删除采购订单', '按钮权限:采购订单模块[删除采购订单]按钮权限', '采购订单', 'CGDD _ SCCGDD', '203', null); |
| | | INSERT INTO `t_permission` VALUES ('2027-06', '2027-06', '采购订单-关闭订单/取消关闭订单', '按钮权限:采购订单模块[关闭采购订单]和[取消采购订单关闭状态]按钮权限', '采购订单', 'CGDD _ GBDD_QXGBDD', '206', null); |
| | | INSERT INTO `t_permission` VALUES ('2027-07', '2027-07', '采购订单-单据生成PDF', '按钮权限:采购订单模块[单据生成PDF]按钮权限', '采购订单', 'CGDD _ DJSCPDF', '207', null); |
| | | INSERT INTO `t_permission` VALUES ('2027-08', '2027-08', '采购订单-打印', '按钮权限:采购订单模块[打印预览]和[直接打印]按钮权限', '采购订单', 'CGDD_DY', '208', null); |
| | | INSERT INTO `t_permission` VALUES ('2028', '2028', '销售订单', '模块权限:通过菜单进入销售订单模块的权限', '销售订单', 'XSDD', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2028-01', '2028-01', '销售订单-审核/取消审核', '按钮权限:销售订单模块[审核]按钮和[取消审核]按钮的权限', '销售订单', 'XSDD_SH_QXSH', '204', null); |
| | | INSERT INTO `t_permission` VALUES ('2028-02', '2028-02', '销售订单-生成销售出库单', '按钮权限:销售订单模块[生成销售出库单]按钮的权限', '销售订单', 'XSDD_SCXSCKD', '206', null); |
| | | INSERT INTO `t_permission` VALUES ('2028-03', '2028-03', '销售订单-新建销售订单', '按钮权限:销售订单模块[新建销售订单]按钮的权限', '销售订单', 'XSDD_XJXSDD', '201', null); |
| | | INSERT INTO `t_permission` VALUES ('2028-04', '2028-04', '销售订单-编辑销售订单', '按钮权限:销售订单模块[编辑销售订单]按钮的权限', '销售订单', 'XSDD_BJXSDD', '202', null); |
| | | INSERT INTO `t_permission` VALUES ('2028-05', '2028-05', '销售订单-删除销售订单', '按钮权限:销售订单模块[删除销售订单]按钮的权限', '销售订单', 'XSDD_SCXSDD', '203', null); |
| | | INSERT INTO `t_permission` VALUES ('2028-06', '2028-06', '销售订单-单据生成PDF', '按钮权限:销售订单模块[单据生成PDF]按钮的权限', '销售订单', 'XSDD_DJSCPDF', '207', null); |
| | | INSERT INTO `t_permission` VALUES ('2028-07', '2028-07', '销售订单-打印', '按钮权限:销售订单模块[打印预览]和[直接打印]按钮的权限', '销售订单', 'XSDD_DY', '208', null); |
| | | INSERT INTO `t_permission` VALUES ('2028-08', '2028-08', '销售订单-生成采购订单', '按钮权限:销售订单模块[生成采购订单]按钮的权限', '销售订单', 'XSDD_SCCGDD', '205', null); |
| | | INSERT INTO `t_permission` VALUES ('2028-09', '2028-09', '销售订单-关闭订单/取消关闭订单', '按钮权限:销售订单模块[关闭销售订单]和[取消销售订单关闭状态]按钮的权限', '销售订单', 'XSDD_GBDD', '209', null); |
| | | INSERT INTO `t_permission` VALUES ('2029', '2029', '商品品牌', '模块权限:通过菜单进入商品品牌模块的权限', '商品', 'SPPP', '600', null); |
| | | INSERT INTO `t_permission` VALUES ('2030-01', '2030-01', '商品构成-新增子商品', '按钮权限:商品模块[新增子商品]按钮权限', '商品', 'SPGC_XZZSP', '209', null); |
| | | INSERT INTO `t_permission` VALUES ('2030-02', '2030-02', '商品构成-编辑子商品', '按钮权限:商品模块[编辑子商品]按钮权限', '商品', 'SPGC_BJZSP', '210', null); |
| | | INSERT INTO `t_permission` VALUES ('2030-03', '2030-03', '商品构成-删除子商品', '按钮权限:商品模块[删除子商品]按钮权限', '商品', 'SPGC_SCZSP', '211', null); |
| | | INSERT INTO `t_permission` VALUES ('2031', '2031', '价格体系', '模块权限:通过菜单进入价格体系模块的权限', '商品', 'JGTX', '700', null); |
| | | INSERT INTO `t_permission` VALUES ('2031-01', '2031-01', '商品-设置商品价格体系', '按钮权限:商品模块[设置商品价格体系]按钮权限', '商品', 'JGTX', '701', null); |
| | | INSERT INTO `t_permission` VALUES ('2032', '2032', '销售合同', '模块权限:通过菜单进入销售合同模块的权限', '销售合同', 'XSHT', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2032-01', '2032-01', '销售合同-新建销售合同', '按钮权限:销售合同模块[新建销售合同]按钮的权限', '销售合同', 'XSHT_XJXSHT', '201', null); |
| | | INSERT INTO `t_permission` VALUES ('2032-02', '2032-02', '销售合同-编辑销售合同', '按钮权限:销售合同模块[编辑销售合同]按钮的权限', '销售合同', 'XSHT_BJXSHT', '202', null); |
| | | INSERT INTO `t_permission` VALUES ('2032-03', '2032-03', '销售合同-删除销售合同', '按钮权限:销售合同模块[删除销售合同]按钮的权限', '销售合同', 'XSHT_SCXSHT', '203', null); |
| | | INSERT INTO `t_permission` VALUES ('2032-04', '2032-04', '销售合同-审核/取消审核', '按钮权限:销售合同模块[审核]按钮和[取消审核]按钮的权限', '销售合同', 'XSHT_SH_QXSH', '204', null); |
| | | INSERT INTO `t_permission` VALUES ('2032-05', '2032-05', '销售合同-生成销售订单', '按钮权限:销售合同模块[生成销售订单]按钮的权限', '销售合同', 'XSHT_SCXSDD', '205', null); |
| | | INSERT INTO `t_permission` VALUES ('2032-06', '2032-06', '销售合同-单据生成PDF', '按钮权限:销售合同模块[单据生成PDF]按钮的权限', '销售合同', 'XSHT_DJSCPDF', '206', null); |
| | | INSERT INTO `t_permission` VALUES ('2032-07', '2032-07', '销售合同-打印', '按钮权限:销售合同模块[打印预览]和[直接打印]按钮的权限', '销售合同', 'XSHT_DY', '207', null); |
| | | INSERT INTO `t_permission` VALUES ('2033', '2033', '存货拆分', '模块权限:通过菜单进入存货拆分模块的权限', '存货拆分', 'CHCF', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2033-01', '2033-01', '存货拆分-新建拆分单', '按钮权限:存货拆分模块[新建拆分单]按钮的权限', '存货拆分', 'CHCFXJCFD', '201', null); |
| | | INSERT INTO `t_permission` VALUES ('2033-02', '2033-02', '存货拆分-编辑拆分单', '按钮权限:存货拆分模块[编辑拆分单]按钮的权限', '存货拆分', 'CHCFBJCFD', '202', null); |
| | | INSERT INTO `t_permission` VALUES ('2033-03', '2033-03', '存货拆分-删除拆分单', '按钮权限:存货拆分模块[删除拆分单]按钮的权限', '存货拆分', 'CHCFSCCFD', '203', null); |
| | | INSERT INTO `t_permission` VALUES ('2033-04', '2033-04', '存货拆分-提交拆分单', '按钮权限:存货拆分模块[提交拆分单]按钮的权限', '存货拆分', 'CHCFTJCFD', '204', null); |
| | | INSERT INTO `t_permission` VALUES ('2033-05', '2033-05', '存货拆分-单据生成PDF', '按钮权限:存货拆分模块[单据生成PDF]按钮的权限', '存货拆分', 'CHCFDJSCPDF', '205', null); |
| | | INSERT INTO `t_permission` VALUES ('2033-06', '2033-06', '存货拆分-打印', '按钮权限:存货拆分模块[打印预览]和[直接打印]按钮的权限', '存货拆分', 'CHCFDY', '206', null); |
| | | INSERT INTO `t_permission` VALUES ('2034', '2034', '工厂', '模块权限:通过菜单进入工厂模块的权限', '工厂', 'GC', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2034-01', '2034-01', '工厂在业务单据中的使用权限', '数据域权限:工厂在业务单据中的使用权限', '工厂', 'GCCYWDJZDSYQX', '301', null); |
| | | INSERT INTO `t_permission` VALUES ('2034-02', '2034-02', '工厂分类', '数据域权限:工厂模块中工厂分类的数据权限', '工厂', 'GCFL', '300', null); |
| | | INSERT INTO `t_permission` VALUES ('2034-03', '2034-03', '新增工厂分类', '按钮权限:工厂模块[新增工厂分类]按钮权限', '工厂', 'XZGYSFL', '201', null); |
| | | INSERT INTO `t_permission` VALUES ('2034-04', '2034-04', '编辑工厂分类', '按钮权限:工厂模块[编辑工厂分类]按钮权限', '工厂', 'BJGYSFL', '202', null); |
| | | INSERT INTO `t_permission` VALUES ('2034-05', '2034-05', '删除工厂分类', '按钮权限:工厂模块[删除工厂分类]按钮权限', '工厂', 'SCGYSFL', '203', null); |
| | | INSERT INTO `t_permission` VALUES ('2034-06', '2034-06', '新增工厂', '按钮权限:工厂模块[新增工厂]按钮权限', '工厂', 'XZGYS', '204', null); |
| | | INSERT INTO `t_permission` VALUES ('2034-07', '2034-07', '编辑工厂', '按钮权限:工厂模块[编辑工厂]按钮权限', '工厂', 'BJGYS', '205', null); |
| | | INSERT INTO `t_permission` VALUES ('2034-08', '2034-08', '删除工厂', '按钮权限:工厂模块[删除工厂]按钮权限', '工厂', 'SCGYS', '206', null); |
| | | INSERT INTO `t_permission` VALUES ('2035', '2035', '成品委托生产订单', '模块权限:通过菜单进入成品委托生产订单模块的权限', '成品委托生产订单', 'CPWTSCDD', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2035-01', '2035-01', '成品委托生产订单-新建成品委托生产订单', '按钮权限:成品委托生产订单模块[新建成品委托生产订单]按钮的权限', '成品委托生产订单', 'CPWTSCDDXJCPWTSCDD', '201', null); |
| | | INSERT INTO `t_permission` VALUES ('2035-02', '2035-02', '成品委托生产订单-编辑成品委托生产订单', '按钮权限:成品委托生产订单模块[编辑成品委托生产订单]按钮的权限', '成品委托生产订单', 'CPWTSCDDBJCPWTSCDD', '202', null); |
| | | INSERT INTO `t_permission` VALUES ('2035-03', '2035-03', '成品委托生产订单-删除成品委托生产订单', '按钮权限:成品委托生产订单模块[删除成品委托生产订单]按钮的权限', '成品委托生产订单', 'CPWTSCDDSCCPWTSCDD', '203', null); |
| | | INSERT INTO `t_permission` VALUES ('2035-04', '2035-04', '成品委托生产订单-审核/取消审核', '按钮权限:成品委托生产订单模块[审核]和[取消审核]按钮的权限', '成品委托生产订单', 'CPWTSCDDSHQXSH', '204', null); |
| | | INSERT INTO `t_permission` VALUES ('2035-05', '2035-05', '成品委托生产订单-生成成品委托生产入库单', '按钮权限:成品委托生产订单模块[生成成品委托生产入库单]按钮的权限', '成品委托生产订单', 'CPWTSCDDSCCPWTSCRKD', '205', null); |
| | | INSERT INTO `t_permission` VALUES ('2035-06', '2035-06', '成品委托生产订单-关闭/取消关闭成品委托生产订单', '按钮权限:成品委托生产订单模块[关闭成品委托生产订单]和[取消关闭成品委托生产订单]按钮的权限', '成品委托生产订单', 'CPWTSCDGBJCPWTSCDD', '206', null); |
| | | INSERT INTO `t_permission` VALUES ('2035-07', '2035-07', '成品委托生产订单-单据生成PDF', '按钮权限:成品委托生产订单模块[单据生成PDF]按钮的权限', '成品委托生产订单', 'CPWTSCDDDJSCPDF', '207', null); |
| | | INSERT INTO `t_permission` VALUES ('2035-08', '2035-08', '成品委托生产订单-打印', '按钮权限:成品委托生产订单模块[打印预览]和[直接打印]按钮的权限', '成品委托生产订单', 'CPWTSCDDDY', '208', null); |
| | | INSERT INTO `t_permission` VALUES ('2036', '2036', '成品委托生产入库', '模块权限:通过菜单进入成品委托生产入库模块的权限', '成品委托生产入库', 'CPWTSCRK', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2036-01', '2036-01', '成品委托生产入库-新建成品委托生产入库单', '按钮权限:成品委托生产入库模块[新建成品委托生产入库单]按钮的权限', '成品委托生产入库', 'CPWTSCRKXJCPWTSCRKD', '201', null); |
| | | INSERT INTO `t_permission` VALUES ('2036-02', '2036-02', '成品委托生产入库-编辑成品委托生产入库单', '按钮权限:成品委托生产入库模块[编辑成品委托生产入库单]按钮的权限', '成品委托生产入库', 'CPWTSCRKBJCPWTSCRKD', '202', null); |
| | | INSERT INTO `t_permission` VALUES ('2036-03', '2036-03', '成品委托生产入库-删除成品委托生产入库单', '按钮权限:成品委托生产入库模块[删除成品委托生产入库单]按钮的权限', '成品委托生产入库', 'CPWTSCRKSCCPWTSCRKD', '203', null); |
| | | INSERT INTO `t_permission` VALUES ('2036-04', '2036-04', '成品委托生产入库-提交入库', '按钮权限:成品委托生产入库模块[提交入库]按钮的权限', '成品委托生产入库', 'CPWTSCRKTJRK', '204', null); |
| | | INSERT INTO `t_permission` VALUES ('2036-05', '2036-05', '成品委托生产入库-单据生成PDF', '按钮权限:成品委托生产入库模块[单据生成PDF]按钮的权限', '成品委托生产入库', 'CPWTSCRKDJSCPDF', '205', null); |
| | | INSERT INTO `t_permission` VALUES ('2036-06', '2036-06', '成品委托生产入库-打印', '按钮权限:成品委托生产入库模块[打印预览]和[直接打印]按钮的权限', '成品委托生产入库', 'CPWTSCRKDY', '206', null); |
| | | INSERT INTO `t_permission` VALUES ('2037', '2037', '采购入库明细表', '模块权限:通过菜单进入采购入库明细表模块的权限', '采购报表', 'CGRKMXB', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2038', '2038', '销售出库明细表', '模块权限:通过菜单进入销售出库明细表模块的权限', '销售报表', 'ZSCKMXB', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2101', '2101', '会计科目', '模块权限:通过菜单进入会计科目模块的权限', '会计科目', 'KJKM', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2102', '2102', '银行账户', '模块权限:通过菜单进入银行账户模块的权限', '银行账户', 'YHZH', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('2103', '2103', '会计期间', '模块权限:通过菜单进入会计期间模块的权限', '会计期间', 'KJQJ', '100', null); |
| | | INSERT INTO `t_permission` VALUES ('C001', 'C001', '销售订单跟踪', '模块权限:通过菜单进入销售订单跟踪模块的权限', '销售订单跟踪', 'XSDDGZ', '100', ''); |
| | | INSERT INTO `t_permission` VALUES ('C001-01', 'C001-01', '销售订单跟踪-报关', '模块权限:通过菜单进入销售订单跟踪模块[报关]按钮的权限', '销售订单跟踪', 'XSDDGZBG', '101', ''); |
| | | INSERT INTO `t_permission` VALUES ('C001-02', 'C001-02', '销售订单跟踪-检疫', '模块权限:通过菜单进入销售订单跟踪模块[检疫]按钮的权限', '销售订单跟踪', 'XSDDGZJY', '102', ''); |
| | | INSERT INTO `t_permission` VALUES ('C001-03', 'C001-03', '销售订单跟踪-查验', '模块权限:通过菜单进入销售订单跟踪模块[查验]按钮的权限', '销售订单跟踪', 'XSDDGZCY', '103', ''); |
| | | INSERT INTO `t_permission` VALUES ('C001-04', 'C001-04', '销售订单跟踪-放行', '模块权限:通过菜单进入销售订单跟踪模块[放行]按钮的权限', '销售订单跟踪', 'XSDDGZFX', '104', ''); |
| | | INSERT INTO `t_permission` VALUES ('C001-05', 'C001-05', '销售订单跟踪-提货', '模块权限:通过菜单进入销售订单跟踪模块[提货]按钮的权限', '销售订单跟踪', 'XSDDGZTH', '105', ''); |
| | | INSERT INTO `t_permission` VALUES ('C001-06', 'C001-06', '销售订单跟踪-卸货', '模块权限:通过菜单进入销售订单跟踪模块[卸货]按钮的权限', '销售订单跟踪', 'XSDDGZXH', '106', ''); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_permission_plus |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_permission_plus`; |
| | | CREATE TABLE `t_permission_plus` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `fid` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `note` varchar(255) DEFAULT NULL, |
| | | `category` varchar(255) DEFAULT NULL, |
| | | `py` varchar(255) DEFAULT NULL, |
| | | `show_order` int(11) DEFAULT NULL, |
| | | `parent_fid` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_permission_plus |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_po_bill |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_po_bill`; |
| | | CREATE TABLE `t_po_bill` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `bill_status` int(11) NOT NULL, |
| | | `biz_dt` datetime NOT NULL, |
| | | `deal_date` datetime NOT NULL, |
| | | `org_id` varchar(255) NOT NULL, |
| | | `biz_user_id` varchar(255) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `goods_money` decimal(19,2) NOT NULL, |
| | | `tax` decimal(19,2) NOT NULL, |
| | | `money_with_tax` decimal(19,2) NOT NULL, |
| | | `input_user_id` varchar(255) NOT NULL, |
| | | `ref` varchar(255) NOT NULL, |
| | | `supplier_id` varchar(255) NOT NULL, |
| | | `contact` varchar(255) NOT NULL, |
| | | `tel` varchar(255) DEFAULT NULL, |
| | | `fax` varchar(255) DEFAULT NULL, |
| | | `deal_address` varchar(255) DEFAULT NULL, |
| | | `bill_memo` varchar(255) DEFAULT NULL, |
| | | `payment_type` int(11) NOT NULL DEFAULT '0', |
| | | `confirm_user_id` varchar(255) DEFAULT NULL, |
| | | `confirm_date` datetime DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_po_bill |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_po_bill_detail |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_po_bill_detail`; |
| | | CREATE TABLE `t_po_bill_detail` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `goods_id` varchar(255) NOT NULL, |
| | | `goods_count` decimal(19,8) NOT NULL, |
| | | `goods_money` decimal(19,2) NOT NULL, |
| | | `goods_price` decimal(19,2) NOT NULL, |
| | | `pobill_id` varchar(255) NOT NULL, |
| | | `tax_rate` decimal(19,2) NOT NULL, |
| | | `tax` decimal(19,2) NOT NULL, |
| | | `money_with_tax` decimal(19,2) NOT NULL, |
| | | `pw_count` decimal(19,8) NOT NULL, |
| | | `left_count` decimal(19,8) NOT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `memo` varchar(255) DEFAULT NULL, |
| | | `goods_price_with_tax` decimal(19,2) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_po_bill_detail |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_po_pw |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_po_pw`; |
| | | CREATE TABLE `t_po_pw` ( |
| | | `po_id` varchar(255) NOT NULL, |
| | | `pw_id` varchar(255) NOT NULL |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_po_pw |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_pre_payment |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_pre_payment`; |
| | | CREATE TABLE `t_pre_payment` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `supplier_id` varchar(255) NOT NULL, |
| | | `in_money` decimal(19,2) DEFAULT NULL, |
| | | `out_money` decimal(19,2) DEFAULT NULL, |
| | | `balance_money` decimal(19,2) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_pre_payment |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_pre_payment_detail |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_pre_payment_detail`; |
| | | CREATE TABLE `t_pre_payment_detail` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `supplier_id` varchar(255) NOT NULL, |
| | | `in_money` decimal(19,2) DEFAULT NULL, |
| | | `out_money` decimal(19,2) DEFAULT NULL, |
| | | `balance_money` decimal(19,2) NOT NULL, |
| | | `biz_date` datetime DEFAULT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `ref_number` varchar(255) NOT NULL, |
| | | `ref_type` varchar(255) NOT NULL, |
| | | `biz_user_id` varchar(255) NOT NULL, |
| | | `input_user_id` varchar(255) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `memo` varchar(1000) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_pre_payment_detail |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_pre_receiving |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_pre_receiving`; |
| | | CREATE TABLE `t_pre_receiving` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `customer_id` varchar(255) NOT NULL, |
| | | `in_money` decimal(19,2) DEFAULT NULL, |
| | | `out_money` decimal(19,2) DEFAULT NULL, |
| | | `balance_money` decimal(19,2) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_pre_receiving |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_pre_receiving_detail |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_pre_receiving_detail`; |
| | | CREATE TABLE `t_pre_receiving_detail` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `customer_id` varchar(255) NOT NULL, |
| | | `in_money` decimal(19,2) DEFAULT NULL, |
| | | `out_money` decimal(19,2) DEFAULT NULL, |
| | | `balance_money` decimal(19,2) NOT NULL, |
| | | `biz_date` datetime DEFAULT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `ref_number` varchar(255) NOT NULL, |
| | | `ref_type` varchar(255) NOT NULL, |
| | | `biz_user_id` varchar(255) NOT NULL, |
| | | `input_user_id` varchar(255) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `memo` varchar(1000) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_pre_receiving_detail |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_price_system |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_price_system`; |
| | | CREATE TABLE `t_price_system` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `factor` decimal(19,2) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_price_system |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_pr_bill |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_pr_bill`; |
| | | CREATE TABLE `t_pr_bill` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `bill_status` int(11) NOT NULL, |
| | | `bizdt` datetime NOT NULL, |
| | | `biz_user_id` varchar(255) NOT NULL, |
| | | `supplier_id` varchar(255) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `input_user_id` varchar(255) NOT NULL, |
| | | `inventory_money` decimal(19,2) DEFAULT NULL, |
| | | `ref` varchar(255) NOT NULL, |
| | | `rejection_money` decimal(19,2) DEFAULT NULL, |
| | | `warehouse_id` varchar(255) NOT NULL, |
| | | `pw_bill_id` varchar(255) NOT NULL, |
| | | `receiving_type` int(11) NOT NULL DEFAULT '0', |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `bill_memo` varchar(255) DEFAULT NULL, |
| | | `tax` decimal(19,2) DEFAULT NULL, |
| | | `rejection_money_with_tax` decimal(19,2) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_pr_bill |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_pr_bill_detail |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_pr_bill_detail`; |
| | | CREATE TABLE `t_pr_bill_detail` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `goods_id` varchar(255) NOT NULL, |
| | | `goods_count` decimal(19,8) NOT NULL, |
| | | `goods_money` decimal(19,2) NOT NULL, |
| | | `goods_price` decimal(19,2) NOT NULL, |
| | | `inventory_money` decimal(19,2) NOT NULL, |
| | | `inventory_price` decimal(19,2) NOT NULL, |
| | | `rejection_goods_count` decimal(19,8) NOT NULL, |
| | | `rejection_goods_price` decimal(19,2) NOT NULL, |
| | | `rejection_money` decimal(19,2) NOT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | `prbill_id` varchar(255) NOT NULL, |
| | | `pwbilldetail_id` varchar(255) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `memo` varchar(255) DEFAULT NULL, |
| | | `tax_rate` decimal(19,2) DEFAULT NULL, |
| | | `tax` decimal(19,2) DEFAULT NULL, |
| | | `rejection_money_with_tax` decimal(19,2) DEFAULT NULL, |
| | | `rejection_goods_price_with_tax` decimal(19,2) DEFAULT NULL, |
| | | `goods_money_with_tax` decimal(19,2) DEFAULT NULL, |
| | | `goods_price_with_tax` decimal(19,2) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_pr_bill_detail |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_psi_db_version |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_psi_db_version`; |
| | | CREATE TABLE `t_psi_db_version` ( |
| | | `db_version` varchar(255) NOT NULL, |
| | | `update_dt` datetime NOT NULL |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_psi_db_version |
| | | -- ---------------------------- |
| | | INSERT INTO `t_psi_db_version` VALUES ('20200528-01', '2020-07-10 12:18:31'); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_pw_bill |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_pw_bill`; |
| | | CREATE TABLE `t_pw_bill` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `bill_status` int(11) NOT NULL, |
| | | `biz_dt` datetime NOT NULL, |
| | | `biz_user_id` varchar(255) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `goods_money` decimal(19,2) NOT NULL, |
| | | `input_user_id` varchar(255) NOT NULL, |
| | | `ref` varchar(255) NOT NULL, |
| | | `supplier_id` varchar(255) NOT NULL, |
| | | `warehouse_id` varchar(255) NOT NULL, |
| | | `payment_type` int(11) NOT NULL DEFAULT '0', |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `expand_by_bom` int(11) NOT NULL DEFAULT '0', |
| | | `bill_memo` varchar(255) DEFAULT NULL, |
| | | `wspbill_id` varchar(255) DEFAULT NULL, |
| | | `tax` decimal(19,2) DEFAULT NULL, |
| | | `money_with_tax` decimal(19,2) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_pw_bill |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_pw_bill_detail |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_pw_bill_detail`; |
| | | CREATE TABLE `t_pw_bill_detail` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `goods_id` varchar(255) NOT NULL, |
| | | `goods_count` decimal(19,8) NOT NULL, |
| | | `goods_money` decimal(19,2) NOT NULL, |
| | | `goods_price` decimal(19,2) NOT NULL, |
| | | `pwbill_id` varchar(255) NOT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `memo` varchar(1000) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `pobilldetail_id` varchar(255) DEFAULT NULL, |
| | | `tax_rate` decimal(19,2) DEFAULT NULL, |
| | | `tax` decimal(19,2) DEFAULT NULL, |
| | | `money_with_tax` decimal(19,2) DEFAULT NULL, |
| | | `goods_price_with_tax` decimal(19,2) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_pw_bill_detail |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_raw_material |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_raw_material`; |
| | | CREATE TABLE `t_raw_material` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `category_id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `spec` varchar(255) NOT NULL, |
| | | `unit_id` varchar(255) NOT NULL, |
| | | `purchase_price` decimal(19,2) DEFAULT NULL, |
| | | `py` varchar(255) DEFAULT NULL, |
| | | `spec_py` varchar(255) DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `memo` varchar(500) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `record_status` int(11) DEFAULT '1000', |
| | | `tax_rate` decimal(19,2) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_raw_material |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_raw_material_category |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_raw_material_category`; |
| | | CREATE TABLE `t_raw_material_category` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `parent_id` varchar(255) DEFAULT NULL, |
| | | `full_name` varchar(1000) DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `tax_rate` decimal(19,2) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_raw_material_category |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_receivables |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_receivables`; |
| | | CREATE TABLE `t_receivables` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `act_money` decimal(19,2) NOT NULL, |
| | | `balance_money` decimal(19,2) NOT NULL, |
| | | `ca_id` varchar(255) NOT NULL, |
| | | `ca_type` varchar(255) NOT NULL, |
| | | `rv_money` decimal(19,2) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_receivables |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_receivables_detail |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_receivables_detail`; |
| | | CREATE TABLE `t_receivables_detail` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `act_money` decimal(19,2) NOT NULL, |
| | | `balance_money` decimal(19,2) NOT NULL, |
| | | `ca_id` varchar(255) NOT NULL, |
| | | `ca_type` varchar(255) NOT NULL, |
| | | `biz_date` datetime DEFAULT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `ref_number` varchar(255) NOT NULL, |
| | | `ref_type` varchar(255) NOT NULL, |
| | | `rv_money` decimal(19,2) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_receivables_detail |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_receiving |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_receiving`; |
| | | CREATE TABLE `t_receiving` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `act_money` decimal(19,2) NOT NULL, |
| | | `biz_date` datetime NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `input_user_id` varchar(255) NOT NULL, |
| | | `remark` varchar(255) NOT NULL, |
| | | `rv_user_id` varchar(255) NOT NULL, |
| | | `bill_id` varchar(255) NOT NULL, |
| | | `ref_number` varchar(255) NOT NULL, |
| | | `ref_type` varchar(255) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_receiving |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_recent_fid |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_recent_fid`; |
| | | CREATE TABLE `t_recent_fid` ( |
| | | `fid` varchar(255) NOT NULL, |
| | | `user_id` varchar(255) NOT NULL, |
| | | `click_count` int(11) NOT NULL |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_recent_fid |
| | | -- ---------------------------- |
| | | INSERT INTO `t_recent_fid` VALUES ('2008', '6C2A09CD-A129-11E4-9B6A-782BCBD7746B', '1'); |
| | | INSERT INTO `t_recent_fid` VALUES ('2027', '6C2A09CD-A129-11E4-9B6A-782BCBD7746B', '1'); |
| | | INSERT INTO `t_recent_fid` VALUES ('-8999', '6C2A09CD-A129-11E4-9B6A-782BCBD7746B', '1'); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_role |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_role`; |
| | | CREATE TABLE `t_role` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `code` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_role |
| | | -- ---------------------------- |
| | | INSERT INTO `t_role` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '系统管理', '01010001', '4D74E1E4-A129-11E4-9B6A-782BCBD7746B', '01'); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_role_permission |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_role_permission`; |
| | | CREATE TABLE `t_role_permission` ( |
| | | `role_id` varchar(255) DEFAULT NULL, |
| | | `permission_id` varchar(255) DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_role_permission |
| | | -- ---------------------------- |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '-8999', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '-8997', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '-8996', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '1001', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '1002', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '1003', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '1004', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '1007', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2000', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2001', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2002', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2002-01', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2003', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2004', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2005', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2006', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2007', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2008', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2009', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2010', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2011-01', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2011-02', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2011-03', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2011-04', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2012', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2013', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2014', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2015', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2016', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2017', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2018', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2019', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2020', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2021', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2022', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2023', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2024', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2025', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2026', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2027', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2027-01', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2027-02', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2028', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2029', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2030-01', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2030-02', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2030-03', null); |
| | | INSERT INTO `t_role_permission` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '2031', null); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_role_permission_dataorg |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_role_permission_dataorg`; |
| | | CREATE TABLE `t_role_permission_dataorg` ( |
| | | `role_id` varchar(255) DEFAULT NULL, |
| | | `permission_id` varchar(255) DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_role_permission_dataorg |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_role_user |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_role_user`; |
| | | CREATE TABLE `t_role_user` ( |
| | | `role_id` varchar(255) DEFAULT NULL, |
| | | `user_id` varchar(255) DEFAULT NULL |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_role_user |
| | | -- ---------------------------- |
| | | INSERT INTO `t_role_user` VALUES ('A83F617E-A153-11E4-A9B8-782BCBD7746B', '6C2A09CD-A129-11E4-9B6A-782BCBD7746B'); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_sc_bill |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_sc_bill`; |
| | | CREATE TABLE `t_sc_bill` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `ref` varchar(255) NOT NULL, |
| | | `customer_id` varchar(255) NOT NULL, |
| | | `org_id` varchar(255) NOT NULL, |
| | | `biz_user_id` varchar(255) NOT NULL, |
| | | `biz_dt` datetime NOT NULL, |
| | | `input_user_id` varchar(255) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `bill_status` int(11) NOT NULL, |
| | | `goods_money` decimal(19,2) NOT NULL, |
| | | `tax` decimal(19,2) NOT NULL, |
| | | `money_with_tax` decimal(19,2) NOT NULL, |
| | | `deal_date` datetime NOT NULL, |
| | | `deal_address` varchar(255) DEFAULT NULL, |
| | | `confirm_user_id` varchar(255) DEFAULT NULL, |
| | | `confirm_date` datetime DEFAULT NULL, |
| | | `bill_memo` varchar(255) DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `begin_dt` date NOT NULL, |
| | | `end_dt` date NOT NULL, |
| | | `discount` int(11) NOT NULL, |
| | | `quality_clause` varchar(500) DEFAULT NULL, |
| | | `insurance_clause` varchar(500) DEFAULT NULL, |
| | | `transport_clause` varchar(500) DEFAULT NULL, |
| | | `other_clause` varchar(500) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_sc_bill |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_sc_bill_detail |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_sc_bill_detail`; |
| | | CREATE TABLE `t_sc_bill_detail` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `scbill_id` varchar(255) NOT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | `goods_id` varchar(255) NOT NULL, |
| | | `goods_count` decimal(19,8) NOT NULL, |
| | | `goods_money` decimal(19,2) NOT NULL, |
| | | `goods_price` decimal(19,2) NOT NULL, |
| | | `tax_rate` decimal(19,2) NOT NULL, |
| | | `tax` decimal(19,2) NOT NULL, |
| | | `money_with_tax` decimal(19,2) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `memo` varchar(500) DEFAULT NULL, |
| | | `discount` int(11) NOT NULL, |
| | | `so_count` decimal(19,8) NOT NULL, |
| | | `left_count` decimal(19,8) NOT NULL, |
| | | `goods_price_with_tax` decimal(19,2) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_sc_bill_detail |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_sc_so |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_sc_so`; |
| | | CREATE TABLE `t_sc_so` ( |
| | | `sc_id` varchar(255) NOT NULL, |
| | | `so_id` varchar(255) NOT NULL |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_sc_so |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_so_bill |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_so_bill`; |
| | | CREATE TABLE `t_so_bill` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `bill_status` int(11) NOT NULL, |
| | | `biz_dt` datetime NOT NULL, |
| | | `deal_date` datetime NOT NULL, |
| | | `org_id` varchar(255) NOT NULL, |
| | | `biz_user_id` varchar(255) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `goods_money` decimal(19,2) NOT NULL, |
| | | `tax` decimal(19,2) NOT NULL, |
| | | `money_with_tax` decimal(19,2) NOT NULL, |
| | | `input_user_id` varchar(255) NOT NULL, |
| | | `ref` varchar(255) NOT NULL, |
| | | `customer_id` varchar(255) NOT NULL, |
| | | `contact` varchar(255) NOT NULL, |
| | | `tel` varchar(255) DEFAULT NULL, |
| | | `fax` varchar(255) DEFAULT NULL, |
| | | `deal_address` varchar(255) DEFAULT NULL, |
| | | `bill_memo` varchar(255) DEFAULT NULL, |
| | | `receiving_type` int(11) NOT NULL DEFAULT '0', |
| | | `confirm_user_id` varchar(255) DEFAULT NULL, |
| | | `confirm_date` datetime DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_so_bill |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_so_bill_detail |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_so_bill_detail`; |
| | | CREATE TABLE `t_so_bill_detail` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `goods_id` varchar(255) NOT NULL, |
| | | `goods_count` decimal(19,8) NOT NULL, |
| | | `goods_money` decimal(19,2) NOT NULL, |
| | | `goods_price` decimal(19,2) NOT NULL, |
| | | `sobill_id` varchar(255) NOT NULL, |
| | | `tax_rate` decimal(19,2) NOT NULL, |
| | | `tax` decimal(19,2) NOT NULL, |
| | | `money_with_tax` decimal(19,2) NOT NULL, |
| | | `ws_count` decimal(19,8) NOT NULL, |
| | | `left_count` decimal(19,8) NOT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `memo` varchar(500) DEFAULT NULL, |
| | | `scbilldetail_id` varchar(255) DEFAULT NULL, |
| | | `goods_price_with_tax` decimal(19,2) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_so_bill_detail |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_so_bill_tracking |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_so_bill_tracking`; |
| | | CREATE TABLE `t_so_bill_tracking` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `sobill_id` varchar(255) DEFAULT NULL, |
| | | `sobill_detail_id` varchar(255) NOT NULL, |
| | | `wsbill_id` varchar(255) DEFAULT NULL, |
| | | `wsbill_detail_id` varchar(255) DEFAULT NULL, |
| | | `goods_id` varchar(255) DEFAULT NULL, |
| | | `declare_no` varchar(255) DEFAULT NULL, |
| | | `declare_time` datetime DEFAULT NULL, |
| | | `declare_user_id` varchar(255) DEFAULT NULL, |
| | | `quarantine_time` datetime DEFAULT NULL, |
| | | `quarantine_user_id` varchar(255) DEFAULT NULL, |
| | | `check_time` datetime DEFAULT NULL, |
| | | `check_user_id` varchar(255) DEFAULT NULL, |
| | | `release_time` datetime DEFAULT NULL, |
| | | `release_user_id` varchar(255) DEFAULT NULL, |
| | | `pick_up_time` datetime DEFAULT NULL, |
| | | `pick_up_user_id` varchar(255) DEFAULT NULL, |
| | | `unload_time` datetime DEFAULT NULL, |
| | | `unload_user_id` varchar(255) DEFAULT NULL, |
| | | `memo` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`), |
| | | UNIQUE KEY `so_ws_detail_idx` (`sobill_detail_id`,`wsbill_detail_id`) USING BTREE COMMENT '订单明细id和销售出库明细id联合唯一' |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_so_bill_tracking |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_so_po |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_so_po`; |
| | | CREATE TABLE `t_so_po` ( |
| | | `so_id` varchar(255) NOT NULL, |
| | | `po_id` varchar(255) NOT NULL |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_so_po |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_so_ws |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_so_ws`; |
| | | CREATE TABLE `t_so_ws` ( |
| | | `so_id` varchar(255) NOT NULL, |
| | | `ws_id` varchar(255) NOT NULL |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_so_ws |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_sr_bill |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_sr_bill`; |
| | | CREATE TABLE `t_sr_bill` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `bill_status` int(11) NOT NULL, |
| | | `bizdt` datetime NOT NULL, |
| | | `biz_user_id` varchar(255) NOT NULL, |
| | | `customer_id` varchar(255) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `input_user_id` varchar(255) NOT NULL, |
| | | `inventory_money` decimal(19,2) DEFAULT NULL, |
| | | `profit` decimal(19,2) DEFAULT NULL, |
| | | `ref` varchar(255) NOT NULL, |
| | | `rejection_sale_money` decimal(19,2) DEFAULT NULL, |
| | | `warehouse_id` varchar(255) NOT NULL, |
| | | `ws_bill_id` varchar(255) NOT NULL, |
| | | `payment_type` int(11) NOT NULL DEFAULT '0', |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `bill_memo` varchar(255) DEFAULT NULL, |
| | | `tax` decimal(19,2) DEFAULT NULL, |
| | | `rejection_sale_money_with_tax` decimal(19,2) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_sr_bill |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_sr_bill_detail |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_sr_bill_detail`; |
| | | CREATE TABLE `t_sr_bill_detail` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `goods_id` varchar(255) NOT NULL, |
| | | `goods_count` decimal(19,8) NOT NULL, |
| | | `goods_money` decimal(19,2) NOT NULL, |
| | | `goods_price` decimal(19,2) NOT NULL, |
| | | `inventory_money` decimal(19,2) NOT NULL, |
| | | `inventory_price` decimal(19,2) NOT NULL, |
| | | `rejection_goods_count` decimal(19,8) NOT NULL, |
| | | `rejection_goods_price` decimal(19,2) NOT NULL, |
| | | `rejection_sale_money` decimal(19,2) NOT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | `srbill_id` varchar(255) NOT NULL, |
| | | `wsbilldetail_id` varchar(255) NOT NULL, |
| | | `sn_note` varchar(255) DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `memo` varchar(255) DEFAULT NULL, |
| | | `tax_rate` decimal(19,2) DEFAULT NULL, |
| | | `tax` decimal(19,2) DEFAULT NULL, |
| | | `rejection_sale_money_with_tax` decimal(19,2) DEFAULT NULL, |
| | | `rejection_goods_price_with_tax` decimal(19,2) DEFAULT NULL, |
| | | `goods_money_with_tax` decimal(19,2) DEFAULT NULL, |
| | | `goods_price_with_tax` decimal(19,2) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_sr_bill_detail |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_subject |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_subject`; |
| | | CREATE TABLE `t_subject` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `category` int(11) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `is_leaf` int(11) NOT NULL, |
| | | `py` varchar(255) DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `parent_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_subject |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_supplier |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_supplier`; |
| | | CREATE TABLE `t_supplier` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `category_id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `contact01` varchar(255) DEFAULT NULL, |
| | | `qq01` varchar(255) DEFAULT NULL, |
| | | `tel01` varchar(255) DEFAULT NULL, |
| | | `mobile01` varchar(255) DEFAULT NULL, |
| | | `contact02` varchar(255) DEFAULT NULL, |
| | | `qq02` varchar(255) DEFAULT NULL, |
| | | `tel02` varchar(255) DEFAULT NULL, |
| | | `mobile02` varchar(255) DEFAULT NULL, |
| | | `address` varchar(255) DEFAULT NULL, |
| | | `address_shipping` varchar(255) DEFAULT NULL, |
| | | `address_receipt` varchar(255) DEFAULT NULL, |
| | | `py` varchar(255) DEFAULT NULL, |
| | | `init_receivables` decimal(19,2) DEFAULT NULL, |
| | | `init_receivables_dt` datetime DEFAULT NULL, |
| | | `init_payables` decimal(19,2) DEFAULT NULL, |
| | | `init_payables_dt` datetime DEFAULT NULL, |
| | | `bank_name` varchar(255) DEFAULT NULL, |
| | | `bank_account` varchar(255) DEFAULT NULL, |
| | | `tax_number` varchar(255) DEFAULT NULL, |
| | | `fax` varchar(255) DEFAULT NULL, |
| | | `note` varchar(255) DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `tax_rate` int(11) DEFAULT NULL, |
| | | `record_status` int(11) DEFAULT '1000', |
| | | `goods_range` int(11) DEFAULT '1', |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_supplier |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_supplier_category |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_supplier_category`; |
| | | CREATE TABLE `t_supplier_category` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `parent_id` varchar(255) DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `full_name` varchar(1000) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_supplier_category |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_supplier_goods_range |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_supplier_goods_range`; |
| | | CREATE TABLE `t_supplier_goods_range` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `supplier_id` varchar(255) NOT NULL, |
| | | `g_id` varchar(255) NOT NULL, |
| | | `g_id_type` int(11) NOT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_supplier_goods_range |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_sysdict_editor_xtype |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_sysdict_editor_xtype`; |
| | | CREATE TABLE `t_sysdict_editor_xtype` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `code_int` int(11) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `py` varchar(255) NOT NULL, |
| | | `memo` varchar(255) NOT NULL, |
| | | `show_order` int(11) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_sysdict_editor_xtype |
| | | -- ---------------------------- |
| | | INSERT INTO `t_sysdict_editor_xtype` VALUES ('5104A62E-9F97-11E9-9BDF-F0BF9790E21F', '1', '1', 'textfield', 'textfield', '字符串编辑器', '1'); |
| | | INSERT INTO `t_sysdict_editor_xtype` VALUES ('7B795BEF-9F97-11E9-9BDF-F0BF9790E21F', '2', '2', 'numberfield', 'numberfield', '数值编辑器', '2'); |
| | | INSERT INTO `t_sysdict_editor_xtype` VALUES ('9929B6FA-AD1A-11E9-B2D3-F0BF9790E21F', '4', '4', 'psi_codetable_recordreffield', 'psi_codetable_recordreffield', '码表记录引用字段编辑器', '4'); |
| | | INSERT INTO `t_sysdict_editor_xtype` VALUES ('FD1F4CF4-9F97-11E9-9BDF-F0BF9790E21F', '3', '3', 'psi_codetable_parentidfield', 'psi_codetable_parentidfield', '上级记录编辑器', '3'); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_sysdict_form_editor_xtype |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_sysdict_form_editor_xtype`; |
| | | CREATE TABLE `t_sysdict_form_editor_xtype` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `code_int` int(11) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `py` varchar(255) NOT NULL, |
| | | `memo` varchar(255) NOT NULL, |
| | | `show_order` int(11) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_sysdict_form_editor_xtype |
| | | -- ---------------------------- |
| | | INSERT INTO `t_sysdict_form_editor_xtype` VALUES ('133BC834-62A4-11EA-BE39-F0BF9790E21F', '1', '1', 'textfield', 'textfield', '字符字段编辑器', '1'); |
| | | INSERT INTO `t_sysdict_form_editor_xtype` VALUES ('28D248CD-843D-11EA-8C00-E86A641ED142', '3', '3', 'datefield', 'datefield', '日期字段编辑器', '3'); |
| | | INSERT INTO `t_sysdict_form_editor_xtype` VALUES ('2E01A0A4-62A4-11EA-BE39-F0BF9790E21F', '2', '2', 'numberfield', 'numberfield', '数值字段编辑器', '2'); |
| | | INSERT INTO `t_sysdict_form_editor_xtype` VALUES ('BF6F569E-843D-11EA-8C00-E86A641ED142', '4', '4', 'displayfield', 'displayfield', '不使用编辑器', '4'); |
| | | INSERT INTO `t_sysdict_form_editor_xtype` VALUES ('CD0B859B-843D-11EA-8C00-E86A641ED142', '5', '5', 'psi_userfield', 'psi_userfield', '用户字段编辑器', '5'); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_sysdict_fv_xtype |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_sysdict_fv_xtype`; |
| | | CREATE TABLE `t_sysdict_fv_xtype` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `code_int` int(11) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `py` varchar(255) NOT NULL, |
| | | `memo` varchar(255) NOT NULL, |
| | | `show_order` int(11) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_sysdict_fv_xtype |
| | | -- ---------------------------- |
| | | INSERT INTO `t_sysdict_fv_xtype` VALUES ('7E444093-97CF-11EA-8BF1-E86A641ED142', '-1', '-1', 'panel', 'panel', '占位容器', '-1'); |
| | | INSERT INTO `t_sysdict_fv_xtype` VALUES ('882978F6-90CA-11EA-B303-E86A641ED142', '1', '1', 'psi_codetable_view_cmp', 'psi_codetable_view_cmp', '数据来自码表的视图', '1'); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_sysdict_record_status |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_sysdict_record_status`; |
| | | CREATE TABLE `t_sysdict_record_status` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `code_int` int(11) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `py` varchar(255) NOT NULL, |
| | | `memo` varchar(255) NOT NULL, |
| | | `show_order` int(11) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_sysdict_record_status |
| | | -- ---------------------------- |
| | | INSERT INTO `t_sysdict_record_status` VALUES ('9B90C56E-696E-11E9-B2BF-782BCBD7746B', '1000', '1000', '启用', 'QY', '记录处于启用状态', '1'); |
| | | INSERT INTO `t_sysdict_record_status` VALUES ('AC7F3FAB-696E-11E9-B2BF-782BCBD7746B', '0', '0', '停用', 'TY', '记录处于停用状态', '2'); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_sysdict_tax_rate |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_sysdict_tax_rate`; |
| | | CREATE TABLE `t_sysdict_tax_rate` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `code_int` int(11) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `py` varchar(255) NOT NULL, |
| | | `memo` varchar(255) NOT NULL, |
| | | `show_order` int(11) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_sysdict_tax_rate |
| | | -- ---------------------------- |
| | | INSERT INTO `t_sysdict_tax_rate` VALUES ('118BF94A-886A-11EA-B3D2-E86A641ED142', '0', '0', '0%', '', '', '0'); |
| | | INSERT INTO `t_sysdict_tax_rate` VALUES ('1C249830-886A-11EA-B3D2-E86A641ED142', '1', '1', '1%', '', '', '1'); |
| | | INSERT INTO `t_sysdict_tax_rate` VALUES ('24A26BFF-886A-11EA-B3D2-E86A641ED142', '2', '2', '2%', '', '', '2'); |
| | | INSERT INTO `t_sysdict_tax_rate` VALUES ('2D865B3E-886A-11EA-B3D2-E86A641ED142', '3', '3', '3%', '', '', '3'); |
| | | INSERT INTO `t_sysdict_tax_rate` VALUES ('386B7BDB-886A-11EA-B3D2-E86A641ED142', '4', '4', '4%', '', '', '4'); |
| | | INSERT INTO `t_sysdict_tax_rate` VALUES ('43387B7C-886A-11EA-B3D2-E86A641ED142', '5', '5', '5%', '', '', '5'); |
| | | INSERT INTO `t_sysdict_tax_rate` VALUES ('4B158D04-886A-11EA-B3D2-E86A641ED142', '6', '6', '6%', '', '', '6'); |
| | | INSERT INTO `t_sysdict_tax_rate` VALUES ('56D55F4C-886A-11EA-B3D2-E86A641ED142', '7', '7', '7%', '', '', '7'); |
| | | INSERT INTO `t_sysdict_tax_rate` VALUES ('61EA46D7-886A-11EA-B3D2-E86A641ED142', '8', '8', '8%', '', '', '8'); |
| | | INSERT INTO `t_sysdict_tax_rate` VALUES ('6D4CDDB1-886A-11EA-B3D2-E86A641ED142', '9', '9', '9%', '', '', '9'); |
| | | INSERT INTO `t_sysdict_tax_rate` VALUES ('77AA107A-886A-11EA-B3D2-E86A641ED142', '10', '10', '10%', '', '', '10'); |
| | | INSERT INTO `t_sysdict_tax_rate` VALUES ('80D5BB11-886A-11EA-B3D2-E86A641ED142', '11', '11', '11%', '', '', '11'); |
| | | INSERT INTO `t_sysdict_tax_rate` VALUES ('8DFEA286-886A-11EA-B3D2-E86A641ED142', '12', '12', '12%', '', '', '12'); |
| | | INSERT INTO `t_sysdict_tax_rate` VALUES ('9A016A14-886A-11EA-B3D2-E86A641ED142', '13', '13', '13%', '', '', '13'); |
| | | INSERT INTO `t_sysdict_tax_rate` VALUES ('A50DD214-886A-11EA-B3D2-E86A641ED142', '14', '14', '14%', '', '', '14'); |
| | | INSERT INTO `t_sysdict_tax_rate` VALUES ('AF2AFC03-886A-11EA-B3D2-E86A641ED142', '15', '15', '15%', '', '', '15'); |
| | | INSERT INTO `t_sysdict_tax_rate` VALUES ('B8DC0446-886A-11EA-B3D2-E86A641ED142', '16', '16', '16%', '', '', '16'); |
| | | INSERT INTO `t_sysdict_tax_rate` VALUES ('C19955AE-886A-11EA-B3D2-E86A641ED142', '17', '17', '17%', '', '', '17'); |
| | | INSERT INTO `t_sysdict_tax_rate` VALUES ('F2AEB999-8869-11EA-B3D2-E86A641ED142', '-1', '-1', '[不设定]', '', '', '-1'); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_user |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_user`; |
| | | CREATE TABLE `t_user` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `enabled` int(11) NOT NULL, |
| | | `login_name` varchar(255) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `org_id` varchar(255) NOT NULL, |
| | | `org_code` varchar(255) NOT NULL, |
| | | `password` varchar(255) NOT NULL, |
| | | `py` varchar(255) DEFAULT NULL, |
| | | `gender` varchar(255) DEFAULT NULL, |
| | | `birthday` varchar(255) DEFAULT NULL, |
| | | `id_card_number` varchar(255) DEFAULT NULL, |
| | | `tel` varchar(255) DEFAULT NULL, |
| | | `tel02` varchar(255) DEFAULT NULL, |
| | | `address` varchar(255) DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_user |
| | | -- ---------------------------- |
| | | INSERT INTO `t_user` VALUES ('6C2A09CD-A129-11E4-9B6A-782BCBD7746B', '1', 'admin', '系统管理员', '5EBDBE11-A129-11E4-9B6A-782BCBD7746B', '019901', '21232f297a57a5a743894a0e4a801fc3', 'XTGLY', null, null, null, null, null, null, '01010001', null); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_voucher |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_voucher`; |
| | | CREATE TABLE `t_voucher` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `v_dt` datetime NOT NULL, |
| | | `ref` varchar(255) NOT NULL, |
| | | `input_user_id` varchar(255) NOT NULL, |
| | | `input_user_name` varchar(255) NOT NULL, |
| | | `confirm_user_id` varchar(255) DEFAULT NULL, |
| | | `confirm_user_name` varchar(255) DEFAULT NULL, |
| | | `gl_user_id` varchar(255) DEFAULT NULL, |
| | | `gl_user_name` varchar(255) DEFAULT NULL, |
| | | `charge_user_id` varchar(255) DEFAULT NULL, |
| | | `charge_user_name` varchar(255) DEFAULT NULL, |
| | | `cash_user_id` varchar(255) DEFAULT NULL, |
| | | `cash_user_name` varchar(255) DEFAULT NULL, |
| | | `bill_number` int(11) NOT NULL DEFAULT '0', |
| | | `company_id` varchar(255) NOT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_voucher |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_voucher_detail |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_voucher_detail`; |
| | | CREATE TABLE `t_voucher_detail` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `voucher_id` varchar(255) NOT NULL, |
| | | `subject` varchar(255) NOT NULL, |
| | | `summary` varchar(255) DEFAULT NULL, |
| | | `debit` decimal(19,2) DEFAULT NULL, |
| | | `credit` decimal(19,2) DEFAULT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_voucher_detail |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_warehouse |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_warehouse`; |
| | | CREATE TABLE `t_warehouse` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `code` varchar(255) NOT NULL, |
| | | `inited` int(11) NOT NULL, |
| | | `name` varchar(255) NOT NULL, |
| | | `py` varchar(255) DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `enabled` int(11) NOT NULL DEFAULT '1', |
| | | `org_id` varchar(255) DEFAULT NULL, |
| | | `sale_area` decimal(19,2) DEFAULT NULL, |
| | | `usage_type` int(11) NOT NULL DEFAULT '40', |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_warehouse |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_wsp_bill |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_wsp_bill`; |
| | | CREATE TABLE `t_wsp_bill` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `ref` varchar(255) NOT NULL, |
| | | `from_warehouse_id` varchar(255) NOT NULL, |
| | | `to_warehouse_id` varchar(255) NOT NULL, |
| | | `bill_status` int(11) NOT NULL, |
| | | `bizdt` datetime NOT NULL, |
| | | `biz_user_id` varchar(255) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `input_user_id` varchar(255) NOT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `bill_memo` varchar(1000) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_wsp_bill |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_wsp_bill_detail |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_wsp_bill_detail`; |
| | | CREATE TABLE `t_wsp_bill_detail` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `wspbill_id` varchar(255) NOT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | `goods_id` varchar(255) NOT NULL, |
| | | `goods_count` decimal(19,8) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `memo` varchar(1000) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_wsp_bill_detail |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_wsp_bill_detail_bom |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_wsp_bill_detail_bom`; |
| | | CREATE TABLE `t_wsp_bill_detail_bom` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `wspbilldetail_id` varchar(255) NOT NULL, |
| | | `goods_id` varchar(255) NOT NULL, |
| | | `sub_goods_id` varchar(255) NOT NULL, |
| | | `parent_id` varchar(255) DEFAULT NULL, |
| | | `sub_goods_count` decimal(19,8) NOT NULL, |
| | | `cost_weight` int(11) DEFAULT '1', |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_wsp_bill_detail_bom |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_wsp_bill_detail_ex |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_wsp_bill_detail_ex`; |
| | | CREATE TABLE `t_wsp_bill_detail_ex` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `wspbill_id` varchar(255) NOT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | `goods_id` varchar(255) NOT NULL, |
| | | `goods_count` decimal(19,8) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `from_goods_id` varchar(255) NOT NULL, |
| | | `wspbilldetail_id` varchar(255) NOT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_wsp_bill_detail_ex |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_ws_bill |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_ws_bill`; |
| | | CREATE TABLE `t_ws_bill` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `bill_status` int(11) NOT NULL, |
| | | `bizdt` datetime NOT NULL, |
| | | `biz_user_id` varchar(255) NOT NULL, |
| | | `customer_id` varchar(255) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `input_user_id` varchar(255) NOT NULL, |
| | | `inventory_money` decimal(19,2) DEFAULT NULL, |
| | | `profit` decimal(19,2) DEFAULT NULL, |
| | | `ref` varchar(255) NOT NULL, |
| | | `sale_money` decimal(19,2) DEFAULT NULL, |
| | | `warehouse_id` varchar(255) NOT NULL, |
| | | `receiving_type` int(11) NOT NULL DEFAULT '0', |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `memo` varchar(1000) DEFAULT NULL, |
| | | `deal_address` varchar(255) DEFAULT NULL, |
| | | `tax` decimal(19,2) DEFAULT NULL, |
| | | `money_with_tax` decimal(19,2) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_ws_bill |
| | | -- ---------------------------- |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_ws_bill_detail |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_ws_bill_detail`; |
| | | CREATE TABLE `t_ws_bill_detail` ( |
| | | `id` varchar(255) NOT NULL, |
| | | `date_created` datetime DEFAULT NULL, |
| | | `goods_id` varchar(255) NOT NULL, |
| | | `goods_count` decimal(19,8) NOT NULL, |
| | | `goods_money` decimal(19,2) NOT NULL, |
| | | `goods_price` decimal(19,2) NOT NULL, |
| | | `inventory_money` decimal(19,2) DEFAULT NULL, |
| | | `inventory_price` decimal(19,2) DEFAULT NULL, |
| | | `show_order` int(11) NOT NULL, |
| | | `wsbill_id` varchar(255) NOT NULL, |
| | | `sn_note` varchar(255) DEFAULT NULL, |
| | | `data_org` varchar(255) DEFAULT NULL, |
| | | `memo` varchar(1000) DEFAULT NULL, |
| | | `company_id` varchar(255) DEFAULT NULL, |
| | | `sobilldetail_id` varchar(255) DEFAULT NULL, |
| | | `tax_rate` decimal(19,2) DEFAULT NULL, |
| | | `tax` decimal(19,2) DEFAULT NULL, |
| | | `money_with_tax` decimal(19,2) DEFAULT NULL, |
| | | `goods_price_with_tax` decimal(19,2) DEFAULT NULL, |
| | | PRIMARY KEY (`id`) |
| | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| | | |
| | | -- ---------------------------- |
| | | -- Records of t_ws_bill_detail |
| | | -- ---------------------------- |
| | |
| | | "code" => strtoupper(I("post.code")), |
| | | "name" => I("post.name"), |
| | | "parentId" => I("post.parentId"), |
| | | "taxRate" => I("post.taxRate") |
| | | "taxRate" => I("post.taxRate"), |
| | | "mType" => I("post.mType"), |
| | | ); |
| | | $gs = new GoodsService(); |
| | | $this->ajaxReturn($gs->editCategory($params)); |
| | |
| | | if (IS_POST) { |
| | | $queryKey = I("post.queryKey"); |
| | | $customerId = I("post.customerId"); |
| | | $warehouseId = I("post.warehouseId"); |
| | | $gs = new GoodsService(); |
| | | $this->ajaxReturn($gs->queryDataWithSalePrice($queryKey, $customerId)); |
| | | $this->ajaxReturn($gs->queryDataWithSalePrice($queryKey, $customerId, $warehouseId)); |
| | | } |
| | | } |
| | | |
| | |
| | | { |
| | | if (IS_POST) { |
| | | $params = array( |
| | | "jsonStr" => I("post.jsonStr") |
| | | "jsonStr" => I("post.jsonStr"), |
| | | "checkInv" => I("post.checkInv") |
| | | ); |
| | | |
| | | $ws = new WSBillService(); |
| | |
| | | "customerId" => I("post.customerId"), |
| | | "receivingType" => I("post.receivingType"), |
| | | "goodsId" => I("post.goodsId"), |
| | | "userId" => I("post.userId"), |
| | | "start" => I("post.start"), |
| | | "limit" => I("post.limit") |
| | | ); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 根据销售订单单号查询其生成的采购订单 |
| | | * 用于:在销售订单生成采购订单之前,提醒用户 |
| | | */ |
| | | public function getPOBillRefListBySOBillRef() |
| | | { |
| | | if (IS_POST) { |
| | | $us = new UserService(); |
| | | if (!$us->hasPermission(FIdConst::SALE_ORDER_GEN_POBILL)) { |
| | | die("没有权限"); |
| | | } |
| | | |
| | | $params = [ |
| | | "soRef" => I("post.soRef") |
| | | ]; |
| | | |
| | | $service = new SOBillService(); |
| | | $this->ajaxReturn($service->getPOBillRefListBySOBillRef($params)); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 销售出库单明细信息列表 |
| | | * 销售退货入库 - 选择销售出库单 |
| | | */ |
| | |
| | | private function allCategoriesInternal($db, $parentId, $rs, $params) |
| | | { |
| | | $result = array(); |
| | | $sql = "select id, code, name, full_name, tax_rate |
| | | $sql = "select id, code, name, full_name, tax_rate, m_type |
| | | from t_goods_category c |
| | | where (parent_id = '%s') |
| | | "; |
| | |
| | | } |
| | | $result[$i]["fullName"] = $fullName; |
| | | $result[$i]["taxRate"] = $this->toTaxRate($v["tax_rate"]); |
| | | $result[$i]["mType"] = $this->categoryMTypeCodeToName($v["m_type"]); |
| | | |
| | | $children = $this->allCategoriesInternal($db, $id, $rs, $params); // 自身递归调用 |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | private function categoryMTypeCodeToName($code) |
| | | { |
| | | switch ($code) { |
| | | case -1: |
| | | return "不限"; |
| | | case 1000: |
| | | return "原材料"; |
| | | case 2000: |
| | | return "半成品"; |
| | | case 3000: |
| | | return "产成品"; |
| | | case 4000: |
| | | return "商品"; |
| | | default: |
| | | return ""; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 返回所有的商品分类 |
| | | * |
| | |
| | | return $this->emptyResult(); |
| | | } |
| | | |
| | | $sql = "select id, code, name, full_name, tax_rate |
| | | $sql = "select id, code, name, full_name, tax_rate, m_type |
| | | from t_goods_category c |
| | | where (parent_id is null) |
| | | "; |
| | |
| | | } |
| | | $result[$i]["fullName"] = $fullName; |
| | | $result[$i]["taxRate"] = $this->toTaxRate($v["tax_rate"]); |
| | | $result[$i]["mType"] = $this->categoryMTypeCodeToName($v["m_type"]); |
| | | |
| | | $children = $this->allCategoriesInternal($db, $id, $rs, $params); |
| | | |
| | |
| | | $code = trim($params["code"]); |
| | | $name = trim($params["name"]); |
| | | $parentId = $params["parentId"]; |
| | | $mType = $params["mType"]; |
| | | |
| | | $dataOrg = $params["dataOrg"]; |
| | | $companyId = $params["companyId"]; |
| | |
| | | } |
| | | |
| | | $sql = "insert into t_goods_category (id, code, name, data_org, parent_id, |
| | | full_name, company_id) |
| | | values ('%s', '%s', '%s', '%s', '%s', '%s', '%s')"; |
| | | $rc = $db->execute($sql, $id, $code, $name, $dataOrg, $parentId, $fullName, $companyId); |
| | | full_name, company_id, m_type) |
| | | values ('%s', '%s', '%s', '%s', '%s', '%s', '%s', %d)"; |
| | | $rc = $db->execute($sql, $id, $code, $name, $dataOrg, $parentId, $fullName, $companyId, $mType); |
| | | if ($rc === false) { |
| | | return $this->sqlError(__METHOD__, __LINE__); |
| | | } |
| | | } else { |
| | | $sql = "insert into t_goods_category (id, code, name, data_org, full_name, company_id) |
| | | values ('%s', '%s', '%s', '%s', '%s', '%s')"; |
| | | $rc = $db->execute($sql, $id, $code, $name, $dataOrg, $name, $companyId); |
| | | $sql = "insert into t_goods_category (id, code, name, data_org, full_name, company_id, m_type) |
| | | values ('%s', '%s', '%s', '%s', '%s', '%s', %d)"; |
| | | $rc = $db->execute($sql, $id, $code, $name, $dataOrg, $name, $companyId, $mType); |
| | | if ($rc === false) { |
| | | return $this->sqlError(__METHOD__, __LINE__); |
| | | } |
| | |
| | | $name = trim($params["name"]); |
| | | $parentId = $params["parentId"]; |
| | | $taxRate = $params["taxRate"]; |
| | | $mType = $params["mType"]; |
| | | |
| | | if ($this->isEmptyStringAfterTrim($code)) { |
| | | return $this->bad("分类编码不能为空"); |
| | |
| | | } |
| | | |
| | | $sql = "update t_goods_category |
| | | set code = '%s', name = '%s', parent_id = '%s', full_name = '%s' |
| | | set code = '%s', name = '%s', parent_id = '%s', full_name = '%s', |
| | | m_type = %d |
| | | where id = '%s' "; |
| | | $rc = $db->execute($sql, $code, $name, $parentId, $fullName, $id); |
| | | $rc = $db->execute($sql, $code, $name, $parentId, $fullName, $mType, $id); |
| | | if ($rc === false) { |
| | | return $this->sqlError(__METHOD__, __LINE__); |
| | | } |
| | | } else { |
| | | $sql = "update t_goods_category |
| | | set code = '%s', name = '%s', parent_id = null, full_name = '%s' |
| | | set code = '%s', name = '%s', parent_id = null, full_name = '%s', |
| | | m_type = %d |
| | | where id = '%s' "; |
| | | $rc = $db->execute($sql, $code, $name, $name, $id); |
| | | $rc = $db->execute($sql, $code, $name, $name, $mType, $id); |
| | | if ($rc === false) { |
| | | return $this->sqlError(__METHOD__, __LINE__); |
| | | } |
| | |
| | | |
| | | $result = array(); |
| | | |
| | | $sql = "select code, name, parent_id, tax_rate from t_goods_category |
| | | $sql = "select code, name, parent_id, tax_rate, m_type |
| | | from t_goods_category |
| | | where id = '%s' "; |
| | | $data = $db->query($sql, $id); |
| | | if ($data) { |
| | |
| | | } else { |
| | | $result["parentName"] = null; |
| | | } |
| | | $result["mType"] = $v["m_type"]; |
| | | } |
| | | |
| | | return $result; |
| | |
| | | return $this->emptyResult(); |
| | | } |
| | | |
| | | $warehouseId = $params["warehouseId"]; |
| | | $customerId = $params["customerId"]; |
| | | $psId = $this->getPsIdForCustomer($customerId); |
| | | |
| | | $bcDAO = new BizConfigDAO($db); |
| | | $taxRate = $bcDAO->getTaxRate($companyId); |
| | | $dataScale = $bcDAO->getGoodsCountDecNumber($companyId); |
| | | $fmt = "decimal(19, " . $dataScale . ")"; |
| | | |
| | | |
| | | if ($queryKey == null) { |
| | | $queryKey = ""; |
| | |
| | | } |
| | | } |
| | | |
| | | $cnt = ""; |
| | | if ($warehouseId) { |
| | | // 查询当前库存 |
| | | $sql = "select convert(balance_count, $fmt) as balance_count |
| | | from t_inventory |
| | | where warehouse_id = '%s' and goods_id = '%s' "; |
| | | $d = $db->query($sql, $warehouseId, $goodsId); |
| | | if ($d) { |
| | | $cnt = $d[0]["balance_count"]; |
| | | } |
| | | } |
| | | |
| | | $result[] = [ |
| | | "id" => $v["id"], |
| | | "code" => $v["code"], |
| | |
| | | "priceSystem" => $priceSystem, |
| | | "memo" => $v["memo"], |
| | | "taxRate" => $taxRate, |
| | | "taxRateType" => $taxRateType |
| | | "taxRateType" => $taxRateType, |
| | | "invCnt" => $cnt, |
| | | ]; |
| | | } |
| | | |
| | |
| | | return "门店"; |
| | | case 600: |
| | | return "内部物流组织机构"; |
| | | case 700: |
| | | return "办事处"; |
| | | case 2000: |
| | | return "客户"; |
| | | case 3000: |
| | |
| | | convert(p.pw_count, " . $fmt . ") as pw_count, |
| | | convert(p.left_count, " . $fmt . ") as left_count, p.memo, |
| | | p.tax_rate, p.tax, p.money_with_tax, u.name as unit_name, |
| | | p.goods_price_with_tax |
| | | p.goods_price_with_tax, convert(p.real_count, " . $fmt . ") as real_count, |
| | | convert(p.rej_count, " . $fmt . ") as rej_count |
| | | from t_po_bill_detail p, t_goods g, t_goods_unit u |
| | | where p.pobill_id = '%s' and p.goods_id = g.id and g.unit_id = u.id |
| | | order by p.show_order"; |
| | |
| | | "unitName" => $v["unit_name"], |
| | | "pwCount" => $v["pw_count"], |
| | | "leftCount" => $v["left_count"], |
| | | "realCount" => $v["real_count"], |
| | | "rejCount" => $v["rej_count"], |
| | | "memo" => $v["memo"], |
| | | "goodsPriceWithTax" => $goodsPriceWithTax |
| | | ]; |
| | |
| | | |
| | | $sql = "insert into t_po_bill_detail(id, date_created, goods_id, goods_count, goods_money, |
| | | goods_price, pobill_id, tax_rate, tax, money_with_tax, pw_count, left_count, |
| | | show_order, data_org, company_id, memo, goods_price_with_tax) |
| | | show_order, data_org, company_id, memo, goods_price_with_tax, |
| | | real_count, rej_count) |
| | | values ('%s', now(), '%s', convert(%f, $fmt), %f, |
| | | %f, '%s', %d, %f, %f, 0, convert(%f, $fmt), %d, '%s', '%s', '%s', %f)"; |
| | | %f, '%s', %d, %f, %f, 0, convert(%f, $fmt), %d, '%s', '%s', '%s', %f, |
| | | 0, 0)"; |
| | | $rc = $db->execute( |
| | | $sql, |
| | | $this->newId(), |
| | |
| | | |
| | | $sql = "insert into t_po_bill_detail(id, date_created, goods_id, goods_count, goods_money, |
| | | goods_price, pobill_id, tax_rate, tax, money_with_tax, pw_count, left_count, |
| | | show_order, data_org, company_id, memo, goods_price_with_tax) |
| | | show_order, data_org, company_id, memo, goods_price_with_tax, |
| | | real_count, rej_count) |
| | | values ('%s', now(), '%s', convert(%f, $fmt), %f, |
| | | %f, '%s', %d, %f, %f, 0, convert(%f, $fmt), %d, '%s', '%s', '%s', %f)"; |
| | | %f, '%s', %d, %f, %f, 0, convert(%f, $fmt), %d, '%s', '%s', '%s', %f, |
| | | 0, 0)"; |
| | | $rc = $db->execute( |
| | | $sql, |
| | | $this->newId(), |
| | |
| | | } else if ($billStatus == 1000) { |
| | | $bs = "已入库"; |
| | | } else if ($billStatus == 2000) { |
| | | $bs = "已退货"; |
| | | $bs = "部分退货"; |
| | | } else if ($billStatus == 3000) { |
| | | $bs = "全部退货"; |
| | | } else if ($billStatus == 9000) { |
| | | // TODO 9000这个状态似乎并没有使用??? |
| | | $bs = "作废"; |
| | |
| | | and (p.warehouse_id = w.id) |
| | | and (p.biz_user_id = u1.id) |
| | | and (p.input_user_id = u2.id) |
| | | and (p.bill_status = 1000)"; |
| | | and (p.bill_status = 1000 or p.bill_status = 2000)"; |
| | | $queryParamas = []; |
| | | $ds = new DataOrgDAO($db); |
| | | $rs = $ds->buildSQL(FIdConst::PURCHASE_REJECTION, "p", $loginUserId); |
| | |
| | | $goodsPricePurchase = $v["goods_price"]; |
| | | |
| | | $pwbillDetailId = $v["pwbilldetail_id"]; |
| | | // 检查$pwbillDetailId对应的记录在t_pw_bill_detail中是否存在 |
| | | $sql = "select convert(goods_count, $fmt) as goods_count, |
| | | convert(rej_goods_count, $fmt) as rej_goods_count, |
| | | convert(real_goods_count, $fmt) as real_goods_count |
| | | from t_pw_bill_detail |
| | | where id = '%s' "; |
| | | $d = $db->query($sql, $pwbillDetailId); |
| | | if (!$d) { |
| | | $index = $i + 1; |
| | | return $this->bad("第{$index}条记录在t_pw_bill_detail中没有对应记录,本单据数据有错误,不能提交"); |
| | | } |
| | | $pwGoodsCount = $d[0]["goods_count"]; |
| | | $hasRejGoodsCount = $d[0]["rej_goods_count"]; |
| | | $realGoodsCount = $d[0]["real_goods_count"]; |
| | | $sum = $hasRejGoodsCount + $realGoodsCount; |
| | | if ($sum != $pwGoodsCount) { |
| | | // 因为rej_goods_count和real_goods_count是后加的字段,原来的旧数据是为空 |
| | | // 就会有可能执行到这里 |
| | | $index = $i + 1; |
| | | return $this->bad("第{$index}条记录在t_pw_bill_detail中的对应记录中的rej_goods_count和real_goods_count有误,不能提交"); |
| | | } |
| | | |
| | | if ($rejCount == 0) { |
| | | continue; |
| | |
| | | $index = $i + 1; |
| | | return $this->bad("第{$index}条记录的退货数量不能为负数"); |
| | | } |
| | | if ($rejCount > $goodsCount) { |
| | | if ($rejCount > $realGoodsCount) { |
| | | $index = $i + 1; |
| | | return $this->bad("第{$index}条记录的退货数量不能大于采购数量"); |
| | | } |
| | | |
| | | // 调整采购入库单明细记录中的退货数量 |
| | | $hasRejGoodsCount += $rejCount; |
| | | $realGoodsCount -= $rejCount; |
| | | $sql = "update t_pw_bill_detail |
| | | set rej_goods_count = convert(%f, $fmt), |
| | | real_goods_count = convert(%f, $fmt) |
| | | where id = '%s' "; |
| | | $rc = $db->execute($sql, $hasRejGoodsCount, $realGoodsCount, $pwbillDetailId); |
| | | if ($rc === false) { |
| | | return $this->sqlError(__METHOD__, __LINE__); |
| | | } |
| | | |
| | | // 调整采购订单明细记录中的退货数量 |
| | | // 先检查退货对应的入库单是不是由采购订单生成的 |
| | | $sql = "select pod.id, convert(pod.rej_count, $fmt) as rej_count, |
| | | convert(pod.pw_count, $fmt) as pw_count, |
| | | convert(pod.goods_count, $fmt) as goods_count |
| | | from t_po_bill_detail pod, t_pw_bill_detail pwd |
| | | where pod.id = pwd.pobilldetail_id and pwd.id = '%s' "; |
| | | $poDetail = $db->query($sql, $pwbillDetailId); |
| | | if ($poDetail) { |
| | | // 采购入库单是由采购订单生成的 |
| | | // 同步退货数量 |
| | | $poDetailId = $poDetail[0]["id"]; |
| | | $poGoodsCount = $poDetail[0]["goods_count"]; |
| | | $poPWCount = $poDetail[0]["pw_count"]; |
| | | $poRejCount = $poDetail[0]["rej_count"]; |
| | | |
| | | $poRejCount += $rejCount; |
| | | $poLeftCount = $poGoodsCount - $poPWCount + $poRejCount; |
| | | $poRealCount = $poPWCount - $poRejCount; |
| | | $sql = "update t_po_bill_detail |
| | | set rej_count = convert(%f, $fmt), |
| | | left_count = convert(%f, $fmt), |
| | | real_count = convert(%f, $fmt) |
| | | where id = '%s' "; |
| | | $rc = $db->execute($sql, $poRejCount, $poLeftCount, $poRealCount, $poDetailId); |
| | | if ($rc === false) { |
| | | return $this->sqlError(__METHOD__, __LINE__); |
| | | } |
| | | } |
| | | |
| | | if ($fifo) { |
| | |
| | | $outPrice = $goodsPricePurchase; |
| | | |
| | | if ($outMoney > $balanceMoney) { |
| | | // 这种情况情况的出现,是因为采购入库导致存货成本增加之后又发生了出库业务 |
| | | // 再退货的时候,出现数量够,但是金额不够 |
| | | // 这种情况的出现,是因为采购入库导致存货成本增加之后又发生了出库业务 |
| | | // 再退货的时候,出现库存数量够,但是库存金额不够 |
| | | // 这个时候退货成本就不能取原来的采购入库成本了,只能用当前的存货成本 |
| | | $outPrice = $balancePrice; |
| | | $outMoney = $outPrice * $outCount; |
| | |
| | | return $this->sqlError(__METHOD__, __LINE__); |
| | | } |
| | | |
| | | // 修改对应的采购入库单的状态位:已退货 |
| | | // 修改对应的采购入库单的状态位:2000 - 部分退货,3000 - 全部退货 |
| | | $sql = "select count(*) as cnt |
| | | from t_pw_bill_detail |
| | | where pwbill_id = '%s' and convert(real_goods_count, $fmt) > 0"; |
| | | $data = $db->query($sql, $pwBillId); |
| | | $cnt = $data[0]["cnt"]; |
| | | $billStatrus = 2000; |
| | | if ($cnt == 0) { |
| | | $billStatrus = 3000; |
| | | } else { |
| | | $billStatrus = 2000; |
| | | } |
| | | |
| | | $sql = "update t_pw_bill |
| | | set bill_status = 2000 |
| | | set bill_status = %d |
| | | where id = '%s' "; |
| | | $rc = $db->execute($sql, $pwBillId); |
| | | $rc = $db->execute($sql, $billStatrus, $pwBillId); |
| | | if ($rc === false) { |
| | | return $this->sqlError(__METHOD__, __LINE__); |
| | | } |
| | | |
| | | // 同步采购订单的状态 |
| | | $sql = "select po_id |
| | | from t_po_pw |
| | | where pw_id = '%s' "; |
| | | $data = $db->query($sql, $pwBillId); |
| | | if ($data) { |
| | | // 采购入库单是由采购订单生成的 |
| | | $poBillId = $data[0]["po_id"]; |
| | | |
| | | $sql = "select count(*) as cnt |
| | | from t_po_bill_detail |
| | | where pobill_id = '%s' |
| | | and convert(real_count, $fmt) > 0 "; |
| | | $data = $db->query($sql, $poBillId); |
| | | $cnt = $data[0]["cnt"]; |
| | | $billStatus = 1000; |
| | | if ($cnt == 0) { |
| | | // 全部退货的时候,单据状态改为已审核 |
| | | $billStatus = 1000; |
| | | } else { |
| | | // 部分退货的时候,单据状态改为部分入库 |
| | | $billStatus = 2000; |
| | | } |
| | | |
| | | $sql = "update t_po_bill set bill_status = %d where id = '%s' "; |
| | | $rc = $db->execute($sql, $billStatus, $poBillId); |
| | | if ($rc === false) { |
| | | return $this->sqlError(__METHOD__, __LINE__); |
| | | } |
| | | } |
| | | |
| | | $params["ref"] = $ref; |
| | | |
| | | return null; |
| | |
| | | case 1000: |
| | | return "已入库"; |
| | | case 2000: |
| | | return "已退货"; |
| | | return "部分退货"; |
| | | case 3000: |
| | | return "全部退货"; |
| | | default: |
| | | return ""; |
| | | } |
| | |
| | | $sql = "select p.id, g.code, g.name, g.spec, u.name as unit_name, |
| | | convert(p.goods_count, $fmt) as goods_count, p.goods_price, |
| | | p.goods_money, p.memo, p.tax_rate, p.tax, p.money_with_tax, |
| | | p.goods_price_with_tax |
| | | p.goods_price_with_tax, convert(p.rej_goods_count, $fmt) as rej_goods_count, |
| | | convert(p.real_goods_count, $fmt) as real_goods_count |
| | | from t_pw_bill_detail p, t_goods g, t_goods_unit u |
| | | where p.pwbill_id = '%s' and p.goods_id = g.id and g.unit_id = u.id |
| | | order by p.show_order "; |
| | |
| | | "goodsSpec" => $v["spec"], |
| | | "unitName" => $v["unit_name"], |
| | | "goodsCount" => $v["goods_count"], |
| | | "rejGoodsCount" => $v["rej_goods_count"], |
| | | "realGoodsCount" => $v["real_goods_count"], |
| | | "goodsMoney" => $canViewPrice ? $v["goods_money"] : null, |
| | | "goodsPrice" => $canViewPrice ? $v["goods_price"] : null, |
| | | "memo" => $v["memo"], |
| | |
| | | $sql = "insert into t_pw_bill_detail |
| | | (id, date_created, goods_id, goods_count, goods_price, |
| | | goods_money, pwbill_id, show_order, data_org, memo, company_id, |
| | | pobilldetail_id, tax_rate, tax, money_with_tax, goods_price_with_tax) |
| | | pobilldetail_id, tax_rate, tax, money_with_tax, goods_price_with_tax, |
| | | rej_goods_count, real_goods_count) |
| | | values ('%s', now(), '%s', convert(%f, $fmt), %f, %f, '%s', %d, '%s', '%s', '%s', '%s', |
| | | %d, %f, %f, %f)"; |
| | | %d, %f, %f, %f, 0, convert(%f, $fmt))"; |
| | | $rc = $db->execute( |
| | | $sql, |
| | | $this->newId(), |
| | |
| | | $taxRate, |
| | | $tax, |
| | | $moneyWithTax, |
| | | $goodsPriceWithTax |
| | | $goodsPriceWithTax, |
| | | $goodsCount |
| | | ); |
| | | if ($rc === false) { |
| | | return $this->sqlError(__METHOD__, __LINE__); |
| | |
| | | |
| | | $sql = "insert into t_pw_bill_detail (id, date_created, goods_id, goods_count, goods_price, |
| | | goods_money, pwbill_id, show_order, data_org, memo, company_id, pobilldetail_id, |
| | | tax_rate, tax, money_with_tax, goods_price_with_tax) |
| | | tax_rate, tax, money_with_tax, goods_price_with_tax, |
| | | rej_goods_count, real_goods_count) |
| | | values ('%s', now(), '%s', convert(%f, $fmt), %f, %f, '%s', %d, '%s', '%s', '%s', '%s', |
| | | %d, %f, %f, %f)"; |
| | | %d, %f, %f, %f, 0, convert(%f, $fmt))"; |
| | | $rc = $db->execute( |
| | | $sql, |
| | | $this->newId(), |
| | |
| | | $taxRate, |
| | | $tax, |
| | | $moneyWithTax, |
| | | $goodsPriceWithTax |
| | | $goodsPriceWithTax, |
| | | $goodsCount |
| | | ); |
| | | if ($rc === false) { |
| | | return $this->sqlError(__METHOD__, __LINE__); |
| | |
| | | |
| | | // 同步采购订单中的到货情况 |
| | | $sql = "select convert(goods_count, $fmt) as goods_count, |
| | | convert(pw_count, $fmt) as pw_count |
| | | convert(pw_count, $fmt) as pw_count, |
| | | convert(rej_count, $fmt) as rej_count |
| | | from t_po_bill_detail |
| | | where id = '%s' "; |
| | | $poDetail = $db->query($sql, $pobillDetailId); |
| | |
| | | |
| | | $totalGoodsCount = $poDetail[0]["goods_count"]; |
| | | $totalPWCount = $poDetail[0]["pw_count"]; |
| | | $totalRejCount = $poDetail[0]["rej_count"]; |
| | | $totalPWCount += $goodsCount; |
| | | $totalLeftCount = $totalGoodsCount - $totalPWCount; |
| | | $totalLeftCount = $totalGoodsCount - $totalPWCount + $totalRejCount; |
| | | $totalRealCount = $totalPWCount - $totalRejCount; |
| | | |
| | | $sql = "update t_po_bill_detail |
| | | set pw_count = convert(%f, $fmt), left_count = convert(%f, $fmt) |
| | | set pw_count = convert(%f, $fmt), left_count = convert(%f, $fmt), |
| | | real_count = convert(%f, $fmt) |
| | | where id = '%s' "; |
| | | $rc = $db->execute($sql, $totalPWCount, $totalLeftCount, $pobillDetailId); |
| | | $rc = $db->execute($sql, $totalPWCount, $totalLeftCount, $totalRealCount, $pobillDetailId); |
| | | if ($rc === false) { |
| | | return $this->sqlError(__METHOD__, __LINE__); |
| | | } |
| | |
| | | $sql = "select p.id, g.code, g.name, g.spec, u.name as unit_name, |
| | | convert(p.goods_count, $fmt) as goods_count, p.goods_price, |
| | | p.goods_money, p.memo, p.tax, p.tax_rate, p.money_with_tax, |
| | | p.goods_price_with_tax |
| | | p.goods_price_with_tax, convert(p.rej_goods_count, $fmt) as rej_goods_count, |
| | | convert(p.real_goods_count, $fmt) as real_goods_count |
| | | from t_pw_bill_detail p, t_goods g, t_goods_unit u |
| | | where p.pwbill_id = '%s' and p.goods_id = g.id and g.unit_id = u.id |
| | | order by p.show_order "; |
| | |
| | | "goodsSpec" => $v["spec"], |
| | | "unitName" => $v["unit_name"], |
| | | "goodsCount" => $v["goods_count"], |
| | | "rejGoodsCount" => $v["rej_goods_count"], |
| | | "realGoodsCount" => $v["real_goods_count"], |
| | | "goodsMoney" => $canViewPrice ? $v["goods_money"] : null, |
| | | "goodsPrice" => $canViewPrice ? $v["goods_price"] : null, |
| | | "memo" => $v["memo"], |
| | |
| | | $customerId = $params["customerId"]; |
| | | $receivingType = $params["receivingType"]; |
| | | $goodsId = $params["goodsId"]; |
| | | $userId = $params["userId"]; |
| | | |
| | | $queryParams = array(); |
| | | |
| | |
| | | if ($goodsId) { |
| | | $sql .= " and (s.id in (select distinct sobill_id from t_so_bill_detail where goods_id = '%s'))"; |
| | | $queryParams[] = $goodsId; |
| | | } |
| | | if ($userId) { |
| | | $sql .= " and (s.input_user_id = '%s') "; |
| | | $queryParams[] = $userId; |
| | | } |
| | | $sql .= " order by s.deal_date desc, s.ref desc |
| | | limit %d , %d"; |
| | |
| | | if ($goodsId) { |
| | | $sql .= " and (s.id in (select distinct sobill_id from t_so_bill_detail where goods_id = '%s'))"; |
| | | $queryParams[] = $goodsId; |
| | | } |
| | | if ($userId) { |
| | | $sql .= " and (s.input_user_id = '%s') "; |
| | | $queryParams[] = $userId; |
| | | } |
| | | $data = $db->query($sql, $queryParams); |
| | | $cnt = $data[0]["cnt"]; |
| | |
| | | |
| | | return $result; |
| | | } |
| | | |
| | | /** |
| | | * 根据销售订单单号查询其生成的采购订单 |
| | | * 用于:在销售订单生成采购订单之前,提醒用户 |
| | | */ |
| | | public function getPOBillRefListBySOBillRef($params) |
| | | { |
| | | $db = $this->db; |
| | | |
| | | $soRef = $params["soRef"]; |
| | | |
| | | $sql = "select p.ref |
| | | from t_so_bill s, t_so_po sp, t_po_bill p |
| | | where s.ref = '%s' and s.id = sp.so_id and sp.po_id = p.id |
| | | order by p.ref"; |
| | | $data = $db->query($sql, $soRef); |
| | | |
| | | return $data; |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * 检查库存数量是否够出库 |
| | | */ |
| | | public function checkInv(&$bill) |
| | | { |
| | | $db = $this->db; |
| | | $warehouseId = $bill["warehouseId"]; |
| | | $items = $bill["items"]; |
| | | |
| | | $list = []; |
| | | foreach ($items as $v) { |
| | | $goodsId = $v["goodsId"]; |
| | | if (!$goodsId) { |
| | | continue; |
| | | } |
| | | $goodsCount = $v["goodsCount"]; |
| | | |
| | | // 合并多条同一个商品的数量 |
| | | $found = false; |
| | | foreach ($list as $li) { |
| | | if ($li["id"] == $goodsId) { |
| | | $li["cnt"] += $goodsCount; |
| | | $found = true; |
| | | break; |
| | | } |
| | | } |
| | | if (!$found) { |
| | | $list[] = ["id" => $goodsId, "cnt" => $goodsCount]; |
| | | } |
| | | } |
| | | |
| | | foreach ($list as $v) { |
| | | $goodsId = $v["id"]; |
| | | $goodsCount = $v["cnt"]; |
| | | |
| | | $sql = "select balance_count from t_inventory |
| | | where warehouse_id = '%s' and goods_id = '%s' "; |
| | | $data = $db->query($sql, $warehouseId, $goodsId); |
| | | |
| | | $hasInv = true; |
| | | if (!$data) { |
| | | // 没有库存 |
| | | $hasInv = false; |
| | | } else { |
| | | $cnt = $data[0]["balance_count"]; |
| | | if ($cnt < $goodsCount) { |
| | | $hasInv = false; |
| | | } |
| | | } |
| | | if (!$hasInv) { |
| | | $goodsDAO = new GoodsDAO($db); |
| | | $goods = $goodsDAO->getGoodsById($goodsId); |
| | | $code = $goods["code"]; |
| | | $name = $goods["name"]; |
| | | $info = "商品[编码={$code} 名称={$name}]库存不足,是否仍然保存数据?"; |
| | | return [ |
| | | "success" => false, |
| | | "msg" => $info, |
| | | "checkInv" => "1" |
| | | ]; |
| | | } |
| | | } |
| | | |
| | | // 返回null表述库存数量足够 |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * 编辑销售出库单 |
| | | * |
| | | * @param array $bill |
| | |
| | | /** |
| | | * 商品字段,查询数据 |
| | | */ |
| | | public function queryDataWithSalePrice($queryKey, $customerId) |
| | | public function queryDataWithSalePrice($queryKey, $customerId, $warehouseId) |
| | | { |
| | | if ($this->isNotOnline()) { |
| | | return $this->emptyResult(); |
| | |
| | | $params = array( |
| | | "queryKey" => $queryKey, |
| | | "customerId" => $customerId, |
| | | "warehouseId" => $warehouseId, |
| | | "loginUserId" => $this->getLoginUserId(), |
| | | "companyId" => $this->getCompanyId() |
| | | ); |
| | |
| | | /** |
| | | * 当前数据库表结构版本 |
| | | */ |
| | | protected $CURRENT_DB_VERSION = "20200528-01"; |
| | | protected $CURRENT_DB_VERSION = "20200818-02"; |
| | | } |
| | |
| | | |
| | | return $this->ok($id); |
| | | } |
| | | |
| | | /** |
| | | * 根据销售订单单号查询其生成的采购订单 |
| | | * 用于:在销售订单生成采购订单之前,提醒用户 |
| | | */ |
| | | public function getPOBillRefListBySOBillRef($params) |
| | | { |
| | | if ($this->isNotOnline()) { |
| | | return $this->emptyResult(); |
| | | } |
| | | |
| | | $dao = new SOBillDAO($this->db()); |
| | | return $dao->getPOBillRefListBySOBillRef($params); |
| | | } |
| | | } |
| | |
| | | |
| | | $bill["companyId"] = $this->getCompanyId(); |
| | | |
| | | $checkInv = $params["checkInv"] == "1"; |
| | | if ($checkInv) { |
| | | // 检查库存数量是否够出库 |
| | | $rc = $dao->checkInv($bill); |
| | | if ($rc) { |
| | | $db->rollback(); |
| | | return $rc; |
| | | } |
| | | } |
| | | |
| | | if ($id) { |
| | | // 编辑 |
| | | |
| | |
| | | }, |
| | | scope: me |
| | | }, { |
| | | text: entity == null ? "关闭" : "取消", |
| | | handler: function () { |
| | | me.close(); |
| | | }, |
| | | scope: me |
| | | }); |
| | | text: entity == null ? "关闭" : "取消", |
| | | handler: function () { |
| | | me.close(); |
| | | }, |
| | | scope: me |
| | | }); |
| | | |
| | | var t = entity == null ? "新增商品分类" : "编辑商品分类"; |
| | | var f = entity == null |
| | |
| | | height: 40 |
| | | }, |
| | | width: 400, |
| | | height: 310, |
| | | height: 320, |
| | | layout: "border", |
| | | items: [{ |
| | | region: "north", |
| | |
| | | }), |
| | | value: -1, |
| | | name: "taxRate" |
| | | }, { |
| | | id: "PSI_Goods_CategoryEditForm_editMType", |
| | | xtype: "combo", |
| | | queryMode: "local", |
| | | editable: false, |
| | | valueField: "id", |
| | | labelAlign: "right", |
| | | labelSeparator: "", |
| | | fieldLabel: "物料类型", |
| | | store: Ext.create("Ext.data.ArrayStore", { |
| | | fields: ["id", "text"], |
| | | data: [[-1, "[不限]"], |
| | | [1000, "原材料"], |
| | | [2000, "半成品"], |
| | | [3000, "产成品"], |
| | | [4000, "商品"]] |
| | | }), |
| | | value: -1, |
| | | name: "mType" |
| | | }], |
| | | buttons: buttons |
| | | }], |
| | |
| | | me.editParentCategoryId = Ext |
| | | .getCmp("PSI_Goods_CategoryEditForm_editParentCategoryId"); |
| | | me.editTaxRate = Ext.getCmp("PSI_Goods_CategoryEditForm_editTaxRate"); |
| | | me.editMType = Ext.getCmp("PSI_Goods_CategoryEditForm_editMType"); |
| | | }, |
| | | |
| | | onOK: function (thenAdd) { |
| | |
| | | me.editParentCategory.setIdValue(data.parentId); |
| | | me.editParentCategory.setValue(data.parentName); |
| | | if (data.taxRate) { |
| | | me.editTaxRate |
| | | .setValue(parseInt(data.taxRate)); |
| | | me.editTaxRate.setValue(parseInt(data.taxRate)); |
| | | } else { |
| | | me.editTaxRate.setValue(-1); |
| | | } |
| | | |
| | | if (data.mType) { |
| | | me.editMType.setValue(parseInt(data.mType)); |
| | | } else { |
| | | me.editMType.setValue(-1); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | config: { |
| | | parentCmp: null, |
| | | editCustomerName: null, |
| | | editWarehouseName: null, |
| | | showAddButton: false |
| | | }, |
| | | |
| | |
| | | Ext.define(modelName, { |
| | | extend: "Ext.data.Model", |
| | | fields: ["id", "code", "name", "spec", "unitName", |
| | | "salePrice", "memo", "priceSystem", "taxRate"] |
| | | "salePrice", "memo", "priceSystem", "taxRate", "invCnt"] |
| | | }); |
| | | |
| | | var store = Ext.create("Ext.data.Store", { |
| | |
| | | dataIndex: "spec", |
| | | menuDisabled: true, |
| | | flex: 1 |
| | | }, { |
| | | header: "当前库存", |
| | | dataIndex: "invCnt", |
| | | menuDisabled: true, |
| | | align: "right", |
| | | width: 100 |
| | | }, { |
| | | header: "单位", |
| | | dataIndex: "unitName", |
| | |
| | | handler: me.onOK, |
| | | scope: me |
| | | }, { |
| | | text: "取消", |
| | | handler: function () { |
| | | wnd.close(); |
| | | } |
| | | }); |
| | | text: "取消", |
| | | handler: function () { |
| | | wnd.close(); |
| | | } |
| | | }); |
| | | |
| | | var wnd = Ext.create("Ext.window.Window", { |
| | | title: "选择 - 商品", |
| | | header: false, |
| | | border: 0, |
| | | width: 950, |
| | | width: 1050, |
| | | height: 300, |
| | | layout: "border", |
| | | items: [{ |
| | |
| | | customerId = editCustomer.getIdValue(); |
| | | } |
| | | |
| | | var warehouseId = null; |
| | | var editWarehouse = Ext.getCmp(me.getEditWarehouseName()); |
| | | if (editWarehouse) { |
| | | warehouseId = editWarehouse.getIdValue(); |
| | | } |
| | | |
| | | wnd.on("close", function () { |
| | | me.focus(); |
| | | }); |
| | |
| | | + "Home/Goods/queryDataWithSalePrice", |
| | | params: { |
| | | queryKey: editName.getValue(), |
| | | customerId: customerId |
| | | customerId: customerId, |
| | | warehouseId: warehouseId |
| | | }, |
| | | method: "POST", |
| | | callback: function (opt, success, response) { |
| | |
| | | Ext.define(modelName, { |
| | | extend: "Ext.data.Model", |
| | | fields: ["id", "text", "fullName", "code", "cnt", "leaf", |
| | | "children", "taxRate"] |
| | | "children", "taxRate", "mType"] |
| | | }); |
| | | |
| | | var store = Ext.create("Ext.data.TreeStore", { |
| | |
| | | dataIndex: "taxRate", |
| | | align: "center", |
| | | width: 80 |
| | | }, { |
| | | text: "物料类型", |
| | | dataIndex: "mType", |
| | | width: 150 |
| | | }] |
| | | }, |
| | | listeners: { |
| | |
| | | store: Ext.create("Ext.data.ArrayStore", { |
| | | fields: ["id", "text"], |
| | | data: [[-1, "全部"], [0, "待入库"], [1000, "已入库"], |
| | | [2000, "已退货"]] |
| | | [2000, "部分退货"], [3000, "全部退货"]] |
| | | }), |
| | | value: -1 |
| | | }, { |
| | |
| | | }, { |
| | | header: "状态", |
| | | dataIndex: "billStatus", |
| | | width: 60, |
| | | width: 80, |
| | | renderer: function (value) { |
| | | if (value == "待入库") { |
| | | return "<span style='color:red'>" + value |
| | | + "</span>"; |
| | | } else if (value == "已退货") { |
| | | } else if (value == "部分退货") { |
| | | return "<span style='color:blue'>" + value |
| | | + "</span>"; |
| | | } else if (value == "全部退货") { |
| | | return "<span style='color:green'>" + value |
| | | + "</span>"; |
| | | } else { |
| | | return value; |
| | |
| | | fields: ["id", "goodsCode", "goodsName", "goodsSpec", |
| | | "unitName", "goodsCount", "goodsMoney", |
| | | "goodsPrice", "memo", "taxRate", "tax", |
| | | "moneyWithTax", "goodsPriceWithTax"] |
| | | "moneyWithTax", "goodsPriceWithTax", "rejGoodsCount", "realGoodsCount"] |
| | | }); |
| | | var store = Ext.create("Ext.data.Store", { |
| | | autoLoad: false, |
| | |
| | | dataIndex: "goodsCount", |
| | | align: "right" |
| | | }, { |
| | | header: "退货数量", |
| | | width: 120, |
| | | dataIndex: "rejGoodsCount", |
| | | align: "right" |
| | | }, { |
| | | header: "实际入库数量", |
| | | width: 120, |
| | | dataIndex: "realGoodsCount", |
| | | align: "right" |
| | | }, { |
| | | header: "单位", |
| | | dataIndex: "unitName", |
| | | width: 60 |
| | |
| | | fields: ["id", "goodsCode", "goodsName", "goodsSpec", |
| | | "unitName", "goodsCount", "goodsMoney", |
| | | "goodsPrice", "taxRate", "tax", "moneyWithTax", |
| | | "pwCount", "leftCount", "memo", "goodsPriceWithTax"] |
| | | "pwCount", "leftCount", "memo", "goodsPriceWithTax", |
| | | "rejCount", "realCount"] |
| | | }); |
| | | var store = Ext.create("Ext.data.Store", { |
| | | autoLoad: false, |
| | |
| | | }, { |
| | | header: "入库数量", |
| | | dataIndex: "pwCount", |
| | | align: "right" |
| | | }, { |
| | | header: "退货数量", |
| | | dataIndex: "rejCount", |
| | | align: "right" |
| | | }, { |
| | | header: "实际入库数量", |
| | | dataIndex: "realCount", |
| | | align: "right" |
| | | }, { |
| | | header: "未入库数量", |
| | |
| | | }, { |
| | | header: "状态", |
| | | dataIndex: "billStatus", |
| | | width: 60, |
| | | width: 80, |
| | | renderer: function (value) { |
| | | if (value == "待入库") { |
| | | return "<span style='color:red'>" + value |
| | | + "</span>"; |
| | | } else if (value == "已退货") { |
| | | } else if (value == "部分退货") { |
| | | return "<span style='color:blue'>" + value |
| | | + "</span>"; |
| | | } else if (value == "全部退货") { |
| | | return "<span style='color:green'>" + value |
| | | + "</span>"; |
| | | } else { |
| | | return value; |
| | | } |
| | |
| | | extend: "Ext.data.Model", |
| | | fields: ["id", "goodsCode", "goodsName", "goodsSpec", |
| | | "unitName", "goodsCount", "goodsMoney", |
| | | "goodsPrice", "memo", "taxRate", "tax", "priceWithTax", "moneyWithTax"] |
| | | "goodsPrice", "memo", "taxRate", "tax", "priceWithTax", "moneyWithTax", |
| | | "rejGoodsCount", "realGoodsCount"] |
| | | }); |
| | | var store = Ext.create("Ext.data.Store", { |
| | | autoLoad: false, |
| | |
| | | sortable: false, |
| | | align: "right" |
| | | }, { |
| | | header: "退货数量", |
| | | width: 120, |
| | | dataIndex: "rejGoodsCount", |
| | | menuDisabled: true, |
| | | sortable: false, |
| | | align: "right" |
| | | }, { |
| | | header: "实际入库数量", |
| | | width: 120, |
| | | dataIndex: "realGoodsCount", |
| | | menuDisabled: true, |
| | | sortable: false, |
| | | align: "right" |
| | | }, { |
| | | header: "单位", |
| | | dataIndex: "unitName", |
| | | menuDisabled: true, |
| | |
| | | iconCls: "PSI-button-refresh", |
| | | handler: me.onQuery, |
| | | scope: me |
| | | }, "-", /*{ |
| | | }, "-", { |
| | | text: "打印", |
| | | menu: [{ |
| | | text: "打印预览", |
| | |
| | | scope: me, |
| | | handler: me.onPrint |
| | | }] |
| | | }, */{ |
| | | }, { |
| | | text: "导出", |
| | | menu: [{ |
| | | text: "导出PDF", |
| | |
| | | iconCls: "PSI-button-refresh", |
| | | handler: me.onQuery, |
| | | scope: me |
| | | }, "-", /*{ |
| | | }, "-", { |
| | | text: "打印", |
| | | menu: [{ |
| | | text: "打印预览", |
| | |
| | | scope: me, |
| | | handler: me.onPrint |
| | | }] |
| | | },*/ { |
| | | }, { |
| | | text: "导出", |
| | | menu: [{ |
| | | text: "导出PDF", |
| | |
| | | url: PSI.Const.BASE_URL + "Home/Sale/editWSBill", |
| | | method: "POST", |
| | | params: { |
| | | jsonStr: me.getSaveData() |
| | | jsonStr: me.getSaveData(), |
| | | checkInv: 1 |
| | | }, |
| | | callback: function (options, success, response) { |
| | | Ext.getBody().unmask(); |
| | |
| | | } |
| | | }); |
| | | } else { |
| | | PSI.MsgBox.showInfo(data.msg); |
| | | if (data.checkInv == "1") { |
| | | // 检查到库存不足,提醒用户 |
| | | PSI.MsgBox.confirm(data.msg, function () { |
| | | Ext.Ajax.request({ |
| | | url: PSI.Const.BASE_URL + "Home/Sale/editWSBill", |
| | | method: "POST", |
| | | params: { |
| | | jsonStr: me.getSaveData(), |
| | | checkInv: 0 |
| | | }, |
| | | callback: function (options, success, response) { |
| | | Ext.getBody().unmask(); |
| | | |
| | | if (success) { |
| | | PSI.MsgBox.showInfo("成功保存数据", function () { |
| | | me.close(); |
| | | var pf = me.getParentForm(); |
| | | if (pf) { |
| | | pf.refreshMainGrid(data.id); |
| | | } |
| | | }); |
| | | } else { |
| | | PSI.MsgBox.showInfo(data.msg); |
| | | } |
| | | } |
| | | }); |
| | | }) |
| | | } else { |
| | | PSI.MsgBox.showInfo(data.msg); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | editor: { |
| | | xtype: "psi_goods_with_saleprice_field", |
| | | parentCmp: me, |
| | | editCustomerName: "editCustomer" |
| | | editCustomerName: "editCustomer", |
| | | editWarehouseName: "editWarehouse" |
| | | } |
| | | }, { |
| | | header: "商品名称", |
| | |
| | | items: [{ |
| | | id: "panelQueryCmp", |
| | | region: "north", |
| | | height: 65, |
| | | height: 95, |
| | | header: false, |
| | | collapsible: true, |
| | | collapseMode: "mini", |
| | |
| | | }, |
| | | scope: me |
| | | }] |
| | | }, { |
| | | id: "editQueryUser", |
| | | labelWidth: 60, |
| | | labelAlign: "right", |
| | | labelSeparator: "", |
| | | fieldLabel: "制单人", |
| | | margin: "5, 0, 0, 0", |
| | | xtype: "psi_userfield", |
| | | showModal: true |
| | | }]; |
| | | }, |
| | | |
| | |
| | | gridDetail.setTitle("销售订单明细"); |
| | | gridDetail.getStore().removeAll(); |
| | | |
| | | var grid = me.getWSGrid(); |
| | | grid.getStore().removeAll(); |
| | | |
| | | Ext.getCmp("pagingToobar").doRefresh(); |
| | | me.__lastId = id; |
| | | }, |
| | |
| | | Ext.getCmp("editQueryCustomer").clearIdValue(); |
| | | Ext.getCmp("editQueryReceivingType").setValue(-1); |
| | | Ext.getCmp("editQueryGoods").clearIdValue(); |
| | | Ext.getCmp("editQueryUser").clearIdValue(); |
| | | |
| | | me.onQuery(); |
| | | }, |
| | |
| | | result.goodsId = goodsId; |
| | | } |
| | | |
| | | var userId = Ext.getCmp("editQueryUser").getIdValue(); |
| | | if (userId) { |
| | | result.userId = userId; |
| | | } |
| | | |
| | | return result; |
| | | }, |
| | | |
| | |
| | | return; |
| | | } |
| | | |
| | | var form = Ext.create("PSI.PurchaseOrder.POEditForm", { |
| | | parentForm: me, |
| | | sobillRef: bill.get("ref"), |
| | | genBill: true |
| | | }); |
| | | form.show(); |
| | | var funShowForm = function () { |
| | | var form = Ext.create("PSI.PurchaseOrder.POEditForm", { |
| | | parentForm: me, |
| | | sobillRef: bill.get("ref"), |
| | | genBill: true |
| | | }); |
| | | form.show(); |
| | | }; |
| | | |
| | | // 先判断是否已经生成过采购订单了 |
| | | // 如果已经生成过,就提醒用户 |
| | | var el = Ext.getBody(); |
| | | el.mask("正在查询是否已经生成过采购订单..."); |
| | | var r = { |
| | | url: me.URL("Home/Sale/getPOBillRefListBySOBillRef"), |
| | | params: { |
| | | soRef: bill.get("ref") |
| | | }, |
| | | callback: function (options, success, response) { |
| | | el.unmask(); |
| | | |
| | | if (success) { |
| | | var data = me.decodeJSON(response.responseText); |
| | | if (data.length > 0) { |
| | | // 已经生成过采购订单,提醒用户 |
| | | var poRefList = ""; |
| | | for (var i = 0; i < data.length; i++) { |
| | | if (i > 0) { |
| | | poRefList += "、"; |
| | | } |
| | | poRefList += data[i].ref; |
| | | } |
| | | var info = "当前销售订单已经生成过采购订单了,请确认是否继续生成新的采购订单?"; |
| | | info += "<br/><br/>已经生成的采购订单单号是:<br/>"; |
| | | info += poRefList; |
| | | me.confirm(info, funShowForm); |
| | | } else { |
| | | // 没有生成过采购订单,直接显示UI界面 |
| | | funShowForm(); |
| | | } |
| | | } else { |
| | | me.showInfo("网络错误"); |
| | | } |
| | | } |
| | | }; |
| | | me.ajax(r); |
| | | }, |
| | | |
| | | /** |
| | |
| | | fields: ["id", "text"], |
| | | data: [[0, "[无]"], [400, "事业部"], |
| | | [500, "门店"], [600, "内部物流组织机构"], |
| | | [700, "办事处"], |
| | | [2000, "客户"], [3000, "供应商"], |
| | | [4000, "外协工厂"], [5000, "外部物流商"]] |
| | | }), |