Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
0bb674db
Commit
0bb674db
authored
Nov 25, 2020
by
jsh
Browse files
给单据主表增加单据类型字段
parent
0ffe35a4
Changes
9
Hide whitespace changes
Inline
Side-by-side
docs/jsh_erp.sql
View file @
0bb674db
...
...
@@ -10,7 +10,7 @@ Target Server Type : MYSQL
Target Server Version : 50704
File Encoding : 65001
Date: 2020-
09-26 12:06:20
Date: 2020-
11-25 00:40:02
*/
SET
FOREIGN_KEY_CHECKS
=
0
;
...
...
@@ -155,6 +155,7 @@ CREATE TABLE `jsh_depot_head` (
`change_amount`
decimal
(
24
,
6
)
DEFAULT
NULL
COMMENT
'变动金额(收款/付款)'
,
`total_price`
decimal
(
24
,
6
)
DEFAULT
NULL
COMMENT
'合计金额'
,
`pay_type`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'付款类型(现金、记账等)'
,
`bill_type`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'单据类型'
,
`remark`
varchar
(
1000
)
DEFAULT
NULL
COMMENT
'备注'
,
`sales_man`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'业务员(可以多个)'
,
`account_id_list`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'多账户ID列表'
,
...
...
@@ -179,40 +180,40 @@ CREATE TABLE `jsh_depot_head` (
-- ----------------------------
-- Records of jsh_depot_head
-- ----------------------------
INSERT
INTO
`jsh_depot_head`
VALUES
(
'189'
,
'入库'
,
'采购'
,
'CGRK00000000261'
,
'CGRK00000000261'
,
'2019-04-10 22:25:49'
,
'2020-02-20 23:51:03'
,
'57'
,
null
,
null
,
'17'
,
'-120.000000'
,
'-120.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'120.000000'
,
'0.000000'
,
'[
\"
undefined
\"
]'
,
'[
\"
undefined
\"
]'
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'191'
,
'入库'
,
'采购'
,
'CGRK00000000264'
,
'CGRK00000000264'
,
'2019-04-13 19:57:58'
,
'2020-02-20 23:50:55'
,
'57'
,
null
,
null
,
'17'
,
'-10.000000'
,
'-10.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'10.000000'
,
'0.000000'
,
'[
\"
undefined
\"
]'
,
'[
\"
undefined
\"
]'
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'192'
,
'入库'
,
'采购'
,
'CGRK00000000265'
,
'CGRK00000000265'
,
'2019-04-20 00:36:24'
,
'2020-02-20 23:50:47'
,
'57'
,
null
,
null
,
'17'
,
'-220.000000'
,
'-220.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'220.000000'
,
'0.000000'
,
'[
\"
undefined
\"
]'
,
'[
\"
undefined
\"
]'
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'193'
,
'出库'
,
'销售'
,
'XSCK00000000268'
,
'XSCK00000000268'
,
'2019-04-29 23:41:02'
,
'2020-02-20 23:52:17'
,
'58'
,
null
,
null
,
'17'
,
'300.000000'
,
'300.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'300.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'196'
,
'入库'
,
'采购'
,
'CGRK00000000274'
,
'CGRK00000000274'
,
'2019-04-30 22:35:53'
,
'2020-02-20 23:49:07'
,
'57'
,
null
,
null
,
'18'
,
'-1930.000000'
,
'-1930.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'1930.000000'
,
'0.000000'
,
'[
\"
undefined
\"
]'
,
'[
\"
undefined
\"
]'
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'197'
,
'出库'
,
'销售'
,
'XSCK00000000290'
,
'XSCK00000000290'
,
'2019-04-30 23:15:27'
,
'2020-02-20 23:52:01'
,
'58'
,
null
,
null
,
'17'
,
'270.000000'
,
'270.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'270.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'199'
,
'其它'
,
'采购订单'
,
'CGDD00000000305'
,
'CGDD00000000305'
,
'2019-12-28 12:16:36'
,
'2020-02-20 23:47:56'
,
'57'
,
'63'
,
'63'
,
null
,
'0.000000'
,
'-22.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'200'
,
'出库'
,
'采购退货'
,
'CGTH00000000306'
,
'CGTH00000000306'
,
'2019-12-28 12:16:55'
,
'2020-02-20 23:51:28'
,
'57'
,
'63'
,
'63'
,
'17'
,
'11.000000'
,
'11.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'11.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'201'
,
'其它'
,
'销售订单'
,
'XSDD00000000307'
,
'XSDD00000000307'
,
'2019-12-28 12:17:09'
,
'2020-02-20 23:51:37'
,
'58'
,
'63'
,
'63'
,
null
,
'0.000000'
,
'15.000000'
,
'现付'
,
''
,
'<14>'
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'202'
,
'入库'
,
'销售退货'
,
'XSTH00000000308'
,
'XSTH00000000308'
,
'2019-12-28 12:17:22'
,
'2020-02-20 23:52:33'
,
'58'
,
'63'
,
'63'
,
'17'
,
'-15.000000'
,
'-15.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'15.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'203'
,
'入库'
,
'其它'
,
'QTRK00000000309'
,
'QTRK00000000309'
,
'2019-12-28 12:17:40'
,
'2020-02-20 23:52:51'
,
'57'
,
'63'
,
'63'
,
null
,
'0.000000'
,
'42.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'204'
,
'出库'
,
'其它'
,
'QTCK00000000310'
,
'QTCK00000000310'
,
'2019-12-28 12:17:48'
,
'2020-02-20 23:53:04'
,
'58'
,
'63'
,
'63'
,
null
,
'0.000000'
,
'15.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'205'
,
'出库'
,
'调拨'
,
'DBCK00000000311'
,
'DBCK00000000311'
,
'2019-12-28 12:17:58'
,
'2020-02-20 23:53:21'
,
null
,
'63'
,
'63'
,
null
,
'0.000000'
,
'15.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'206'
,
'其它'
,
'组装单'
,
'ZZD00000000312'
,
'ZZD00000000312'
,
'2019-12-28 12:18:09'
,
'2020-02-20 23:54:02'
,
null
,
'63'
,
'63'
,
null
,
'0.000000'
,
'10.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'207'
,
'其它'
,
'拆卸单'
,
'CXD00000000313'
,
'CXD00000000313'
,
'2019-12-28 12:18:47'
,
'2020-02-20 23:54:21'
,
null
,
'63'
,
'63'
,
null
,
'0.000000'
,
'0.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'208'
,
'出库'
,
'零售'
,
'LSCK00000000314'
,
'LSCK00000000314'
,
'2019-12-28 12:20:26'
,
'2019-12-28 12:20:14'
,
'60'
,
'63'
,
'63'
,
'17'
,
'30.000000'
,
'30.000000'
,
'预付款'
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'209'
,
'入库'
,
'零售退货'
,
'LSTH00000000315'
,
'LSTH00000000315'
,
'2019-12-28 12:20:39'
,
'2019-12-28 12:20:29'
,
'60'
,
'63'
,
'63'
,
'17'
,
'-15.000000'
,
'-15.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'210'
,
'入库'
,
'采购'
,
'CGRK00000000318'
,
'CGRK00000000318'
,
'2020-02-20 23:22:38'
,
'2020-02-20 23:22:27'
,
'57'
,
'63'
,
'63'
,
'17'
,
'-110.000000'
,
'-110.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'110.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'211'
,
'入库'
,
'采购'
,
'CGRK00000000319'
,
'CGRK00000000319'
,
'2020-02-20 23:54:48'
,
'2020-02-20 23:54:33'
,
'57'
,
'63'
,
'63'
,
'17'
,
'-2400.000000'
,
'-2400.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'2400.000000'
,
null
,
'[
\"
undefined
\"
]'
,
'[
\"
undefined
\"
]'
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'212'
,
'入库'
,
'采购'
,
'CGRK00000000320'
,
'CGRK00000000320'
,
'2020-07-14 00:28:15'
,
'2020-07-14 00:27:59'
,
'57'
,
'63'
,
'63'
,
'17'
,
'-535.000000'
,
'-535.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'535.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'214'
,
'出库'
,
'销售'
,
'XSCK00000000321'
,
'XSCK00000000321'
,
'2020-07-15 00:38:07'
,
'2020-07-15 00:37:36'
,
'58'
,
'63'
,
'63'
,
'17'
,
'2400.000000'
,
'2500.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'2500.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'215'
,
'入库'
,
'采购'
,
'CGRK00000000329'
,
'CGRK00000000329'
,
'2020-07-21 00:35:16'
,
'2020-07-21 00:35:05'
,
'57'
,
'63'
,
'63'
,
'17'
,
'-800.000000'
,
'-800.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'800.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'216'
,
'出库'
,
'销售'
,
'XSCK00000000330'
,
'XSCK00000000330'
,
'2020-07-21 00:35:37'
,
'2020-07-21 00:35:26'
,
'58'
,
'63'
,
'63'
,
'17'
,
'308.000000'
,
'308.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'308.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'217'
,
'其它'
,
'采购订单'
,
'CGDD00000000333'
,
'CGDD00000000333'
,
'2020-07-21 01:15:15'
,
'2020-07-21 01:15:07'
,
'57'
,
'63'
,
'63'
,
null
,
'0.000000'
,
'-96.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'2'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'218'
,
'入库'
,
'采购'
,
'CGRK00000000334'
,
'CGRK00000000334'
,
'2020-07-21 01:15:32'
,
'2020-07-21 01:15:28'
,
'57'
,
'63'
,
'63'
,
'17'
,
'-270.000000'
,
'-270.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'270.000000'
,
null
,
null
,
null
,
null
,
'0'
,
'CGDD00000000333'
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'219'
,
'出库'
,
'销售'
,
'XSCK00000000336'
,
'XSCK00000000336'
,
'2020-07-21 15:06:02'
,
'2020-07-21 15:05:49'
,
'59'
,
'63'
,
'63'
,
'17'
,
'70.000000'
,
'70.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'70.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'222'
,
'出库'
,
'销售'
,
'XSCK00000000338'
,
'XSCK00000000338'
,
'2020-07-21 23:05:55'
,
'2020-07-21 23:04:05'
,
'58'
,
'63'
,
'63'
,
'17'
,
'110.000000'
,
'110.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'110.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'223'
,
'入库'
,
'采购'
,
'CGRK00000000339'
,
'CGRK00000000339'
,
'2020-07-21 23:06:55'
,
'2020-07-21 23:06:43'
,
'68'
,
'63'
,
'63'
,
'17'
,
'-110.000000'
,
'-110.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'110.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'224'
,
'出库'
,
'销售'
,
'XSCK00000000340'
,
'XSCK00000000340'
,
'2020-07-21 23:07:06'
,
'2020-07-21 23:06:59'
,
'71'
,
'63'
,
'63'
,
'17'
,
'44.000000'
,
'44.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'44.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'225'
,
'其它'
,
'盘点录入'
,
'PDLR00000000342'
,
'PDLR00000000342'
,
'2020-07-22 00:07:13'
,
'2020-07-22 00:06:53'
,
null
,
'63'
,
'63'
,
null
,
'0.000000'
,
'16.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'2'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'226'
,
'其它'
,
'盘点复盘'
,
'PDFP00000000344'
,
'PDFP00000000344'
,
'2020-07-22 00:07:41'
,
'2020-07-22 00:08:06'
,
null
,
'63'
,
'63'
,
null
,
'0.000000'
,
'16.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'1'
,
'PDFP00000000343'
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'227'
,
'其它'
,
'采购订单'
,
'CGDD00000000345'
,
'CGDD00000000345'
,
'2020-07-22 00:41:37'
,
'2020-07-22 00:41:27'
,
'74'
,
'63'
,
'63'
,
null
,
'0.000000'
,
'-110.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'2'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'228'
,
'入库'
,
'采购'
,
'CGRK00000000351'
,
'CGRK00000000351'
,
'2020-07-22 00:48:09'
,
'2020-07-22 00:47:48'
,
'74'
,
'63'
,
'63'
,
'17'
,
'-110.000000'
,
'-110.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'110.000000'
,
null
,
null
,
null
,
null
,
'0'
,
'CGDD00000000345'
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'229'
,
'入库'
,
'采购'
,
'CGRK00000000352'
,
'CGRK00000000352'
,
'2020-09-13 18:43:56'
,
'2020-09-13 18:43:45'
,
'57'
,
null
,
'131'
,
'17'
,
'-90.000000'
,
'-90.000000'
,
'现付'
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'90.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'189'
,
'入库'
,
'采购'
,
'CGRK00000000261'
,
'CGRK00000000261'
,
'2019-04-10 22:25:49'
,
'2020-02-20 23:51:03'
,
'57'
,
null
,
null
,
'17'
,
'-120.000000'
,
'-120.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'120.000000'
,
'0.000000'
,
'[
\"
undefined
\"
]'
,
'[
\"
undefined
\"
]'
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'191'
,
'入库'
,
'采购'
,
'CGRK00000000264'
,
'CGRK00000000264'
,
'2019-04-13 19:57:58'
,
'2020-02-20 23:50:55'
,
'57'
,
null
,
null
,
'17'
,
'-10.000000'
,
'-10.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'10.000000'
,
'0.000000'
,
'[
\"
undefined
\"
]'
,
'[
\"
undefined
\"
]'
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'192'
,
'入库'
,
'采购'
,
'CGRK00000000265'
,
'CGRK00000000265'
,
'2019-04-20 00:36:24'
,
'2020-02-20 23:50:47'
,
'57'
,
null
,
null
,
'17'
,
'-220.000000'
,
'-220.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'220.000000'
,
'0.000000'
,
'[
\"
undefined
\"
]'
,
'[
\"
undefined
\"
]'
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'193'
,
'出库'
,
'销售'
,
'XSCK00000000268'
,
'XSCK00000000268'
,
'2019-04-29 23:41:02'
,
'2020-02-20 23:52:17'
,
'58'
,
null
,
null
,
'17'
,
'300.000000'
,
'300.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'300.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'196'
,
'入库'
,
'采购'
,
'CGRK00000000274'
,
'CGRK00000000274'
,
'2019-04-30 22:35:53'
,
'2020-02-20 23:49:07'
,
'57'
,
null
,
null
,
'18'
,
'-1930.000000'
,
'-1930.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'1930.000000'
,
'0.000000'
,
'[
\"
undefined
\"
]'
,
'[
\"
undefined
\"
]'
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'197'
,
'出库'
,
'销售'
,
'XSCK00000000290'
,
'XSCK00000000290'
,
'2019-04-30 23:15:27'
,
'2020-02-20 23:52:01'
,
'58'
,
null
,
null
,
'17'
,
'270.000000'
,
'270.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'270.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'199'
,
'其它'
,
'采购订单'
,
'CGDD00000000305'
,
'CGDD00000000305'
,
'2019-12-28 12:16:36'
,
'2020-02-20 23:47:56'
,
'57'
,
'63'
,
'63'
,
null
,
'0.000000'
,
'-22.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'200'
,
'出库'
,
'采购退货'
,
'CGTH00000000306'
,
'CGTH00000000306'
,
'2019-12-28 12:16:55'
,
'2020-02-20 23:51:28'
,
'57'
,
'63'
,
'63'
,
'17'
,
'11.000000'
,
'11.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'11.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'201'
,
'其它'
,
'销售订单'
,
'XSDD00000000307'
,
'XSDD00000000307'
,
'2019-12-28 12:17:09'
,
'2020-02-20 23:51:37'
,
'58'
,
'63'
,
'63'
,
null
,
'0.000000'
,
'15.000000'
,
'现付'
,
null
,
''
,
'<14>'
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'202'
,
'入库'
,
'销售退货'
,
'XSTH00000000308'
,
'XSTH00000000308'
,
'2019-12-28 12:17:22'
,
'2020-02-20 23:52:33'
,
'58'
,
'63'
,
'63'
,
'17'
,
'-15.000000'
,
'-15.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'15.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'203'
,
'入库'
,
'其它'
,
'QTRK00000000309'
,
'QTRK00000000309'
,
'2019-12-28 12:17:40'
,
'2020-02-20 23:52:51'
,
'57'
,
'63'
,
'63'
,
null
,
'0.000000'
,
'42.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'204'
,
'出库'
,
'其它'
,
'QTCK00000000310'
,
'QTCK00000000310'
,
'2019-12-28 12:17:48'
,
'2020-02-20 23:53:04'
,
'58'
,
'63'
,
'63'
,
null
,
'0.000000'
,
'15.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'205'
,
'出库'
,
'调拨'
,
'DBCK00000000311'
,
'DBCK00000000311'
,
'2019-12-28 12:17:58'
,
'2020-02-20 23:53:21'
,
null
,
'63'
,
'63'
,
null
,
'0.000000'
,
'15.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'206'
,
'其它'
,
'组装单'
,
'ZZD00000000312'
,
'ZZD00000000312'
,
'2019-12-28 12:18:09'
,
'2020-02-20 23:54:02'
,
null
,
'63'
,
'63'
,
null
,
'0.000000'
,
'10.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'207'
,
'其它'
,
'拆卸单'
,
'CXD00000000313'
,
'CXD00000000313'
,
'2019-12-28 12:18:47'
,
'2020-02-20 23:54:21'
,
null
,
'63'
,
'63'
,
null
,
'0.000000'
,
'0.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'208'
,
'出库'
,
'零售'
,
'LSCK00000000314'
,
'LSCK00000000314'
,
'2019-12-28 12:20:26'
,
'2019-12-28 12:20:14'
,
'60'
,
'63'
,
'63'
,
'17'
,
'30.000000'
,
'30.000000'
,
'预付款'
,
null
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'209'
,
'入库'
,
'零售退货'
,
'LSTH00000000315'
,
'LSTH00000000315'
,
'2019-12-28 12:20:39'
,
'2019-12-28 12:20:29'
,
'60'
,
'63'
,
'63'
,
'17'
,
'-15.000000'
,
'-15.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'210'
,
'入库'
,
'采购'
,
'CGRK00000000318'
,
'CGRK00000000318'
,
'2020-02-20 23:22:38'
,
'2020-02-20 23:22:27'
,
'57'
,
'63'
,
'63'
,
'17'
,
'-110.000000'
,
'-110.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'110.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'211'
,
'入库'
,
'采购'
,
'CGRK00000000319'
,
'CGRK00000000319'
,
'2020-02-20 23:54:48'
,
'2020-02-20 23:54:33'
,
'57'
,
'63'
,
'63'
,
'17'
,
'-2400.000000'
,
'-2400.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'2400.000000'
,
null
,
'[
\"
undefined
\"
]'
,
'[
\"
undefined
\"
]'
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'212'
,
'入库'
,
'采购'
,
'CGRK00000000320'
,
'CGRK00000000320'
,
'2020-07-14 00:28:15'
,
'2020-07-14 00:27:59'
,
'57'
,
'63'
,
'63'
,
'17'
,
'-535.000000'
,
'-535.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'535.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'214'
,
'出库'
,
'销售'
,
'XSCK00000000321'
,
'XSCK00000000321'
,
'2020-07-15 00:38:07'
,
'2020-07-15 00:37:36'
,
'58'
,
'63'
,
'63'
,
'17'
,
'2400.000000'
,
'2500.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'2500.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'215'
,
'入库'
,
'采购'
,
'CGRK00000000329'
,
'CGRK00000000329'
,
'2020-07-21 00:35:16'
,
'2020-07-21 00:35:05'
,
'57'
,
'63'
,
'63'
,
'17'
,
'-800.000000'
,
'-800.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'800.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'216'
,
'出库'
,
'销售'
,
'XSCK00000000330'
,
'XSCK00000000330'
,
'2020-07-21 00:35:37'
,
'2020-07-21 00:35:26'
,
'58'
,
'63'
,
'63'
,
'17'
,
'308.000000'
,
'308.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'308.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'217'
,
'其它'
,
'采购订单'
,
'CGDD00000000333'
,
'CGDD00000000333'
,
'2020-07-21 01:15:15'
,
'2020-07-21 01:15:07'
,
'57'
,
'63'
,
'63'
,
null
,
'0.000000'
,
'-96.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'2'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'218'
,
'入库'
,
'采购'
,
'CGRK00000000334'
,
'CGRK00000000334'
,
'2020-07-21 01:15:32'
,
'2020-07-21 01:15:28'
,
'57'
,
'63'
,
'63'
,
'17'
,
'-270.000000'
,
'-270.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'270.000000'
,
null
,
null
,
null
,
null
,
'0'
,
'CGDD00000000333'
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'219'
,
'出库'
,
'销售'
,
'XSCK00000000336'
,
'XSCK00000000336'
,
'2020-07-21 15:06:02'
,
'2020-07-21 15:05:49'
,
'59'
,
'63'
,
'63'
,
'17'
,
'70.000000'
,
'70.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'70.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'222'
,
'出库'
,
'销售'
,
'XSCK00000000338'
,
'XSCK00000000338'
,
'2020-07-21 23:05:55'
,
'2020-07-21 23:04:05'
,
'58'
,
'63'
,
'63'
,
'17'
,
'110.000000'
,
'110.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'110.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'223'
,
'入库'
,
'采购'
,
'CGRK00000000339'
,
'CGRK00000000339'
,
'2020-07-21 23:06:55'
,
'2020-07-21 23:06:43'
,
'68'
,
'63'
,
'63'
,
'17'
,
'-110.000000'
,
'-110.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'110.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'224'
,
'出库'
,
'销售'
,
'XSCK00000000340'
,
'XSCK00000000340'
,
'2020-07-21 23:07:06'
,
'2020-07-21 23:06:59'
,
'71'
,
'63'
,
'63'
,
'17'
,
'44.000000'
,
'44.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'44.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'225'
,
'其它'
,
'盘点录入'
,
'PDLR00000000342'
,
'PDLR00000000342'
,
'2020-07-22 00:07:13'
,
'2020-07-22 00:06:53'
,
null
,
'63'
,
'63'
,
null
,
'0.000000'
,
'16.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'2'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'226'
,
'其它'
,
'盘点复盘'
,
'PDFP00000000344'
,
'PDFP00000000344'
,
'2020-07-22 00:07:41'
,
'2020-07-22 00:08:06'
,
null
,
'63'
,
'63'
,
null
,
'0.000000'
,
'16.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'1'
,
'PDFP00000000343'
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'227'
,
'其它'
,
'采购订单'
,
'CGDD00000000345'
,
'CGDD00000000345'
,
'2020-07-22 00:41:37'
,
'2020-07-22 00:41:27'
,
'74'
,
'63'
,
'63'
,
null
,
'0.000000'
,
'-110.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
'2'
,
''
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'228'
,
'入库'
,
'采购'
,
'CGRK00000000351'
,
'CGRK00000000351'
,
'2020-07-22 00:48:09'
,
'2020-07-22 00:47:48'
,
'74'
,
'63'
,
'63'
,
'17'
,
'-110.000000'
,
'-110.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'110.000000'
,
null
,
null
,
null
,
null
,
'0'
,
'CGDD00000000345'
,
'63'
,
'0'
);
INSERT
INTO
`jsh_depot_head`
VALUES
(
'229'
,
'入库'
,
'采购'
,
'CGRK00000000352'
,
'CGRK00000000352'
,
'2020-09-13 18:43:56'
,
'2020-09-13 18:43:45'
,
'57'
,
null
,
'131'
,
'17'
,
'-90.000000'
,
'-90.000000'
,
'现付'
,
null
,
''
,
''
,
null
,
''
,
'0.000000'
,
'0.000000'
,
'90.000000'
,
null
,
null
,
null
,
null
,
'0'
,
''
,
'63'
,
'0'
);
-- ----------------------------
-- Table structure for jsh_depot_item
...
...
@@ -695,6 +696,24 @@ INSERT INTO `jsh_person` VALUES ('14', '业务员', '小李', '63', '0');
INSERT
INTO
`jsh_person`
VALUES
(
'15'
,
'仓管员'
,
'小军'
,
'63'
,
'0'
);
INSERT
INTO
`jsh_person`
VALUES
(
'16'
,
'财务员'
,
'小夏'
,
'63'
,
'0'
);
-- ----------------------------
-- Table structure for jsh_platform_config
-- ----------------------------
DROP
TABLE
IF
EXISTS
`jsh_platform_config`
;
CREATE
TABLE
`jsh_platform_config`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
,
`platform_key`
varchar
(
100
)
DEFAULT
NULL
COMMENT
'关键词'
,
`platform_key_info`
varchar
(
100
)
DEFAULT
NULL
COMMENT
'关键词名称'
,
`platform_value`
varchar
(
200
)
DEFAULT
NULL
COMMENT
'值'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
3
DEFAULT
CHARSET
=
utf8
COMMENT
=
'平台参数'
;
-- ----------------------------
-- Records of jsh_platform_config
-- ----------------------------
INSERT
INTO
`jsh_platform_config`
VALUES
(
'1'
,
'platform_name'
,
'平台名称'
,
'华夏ERP'
);
INSERT
INTO
`jsh_platform_config`
VALUES
(
'2'
,
'activation_code'
,
'激活码'
,
null
);
-- ----------------------------
-- Table structure for jsh_role
-- ----------------------------
...
...
@@ -972,21 +991,3 @@ INSERT INTO `jsh_user_business` VALUES ('66', 'UserRole', '130', '[10]', null, '
INSERT
INTO
`jsh_user_business`
VALUES
(
'67'
,
'UserRole'
,
'131'
,
'[17]'
,
null
,
'0'
);
INSERT
INTO
`jsh_user_business`
VALUES
(
'68'
,
'RoleFunctions'
,
'16'
,
'[210]'
,
null
,
'0'
);
INSERT
INTO
`jsh_user_business`
VALUES
(
'69'
,
'RoleFunctions'
,
'17'
,
'[210][211][241][33][199][242][41][200][201][202][40][232][233][197][203][204][205][206][212]'
,
'[{
\"
funId
\"
:
\"
241
\"
,
\"
btnStr
\"
:
\"
1,2
\"
},{
\"
funId
\"
:
\"
33
\"
,
\"
btnStr
\"
:
\"
1,2
\"
},{
\"
funId
\"
:
\"
199
\"
,
\"
btnStr
\"
:
\"
1,2
\"
},{
\"
funId
\"
:
\"
242
\"
,
\"
btnStr
\"
:
\"
1,2
\"
},{
\"
funId
\"
:
\"
41
\"
,
\"
btnStr
\"
:
\"
1,2
\"
},{
\"
funId
\"
:
\"
200
\"
,
\"
btnStr
\"
:
\"
1,2
\"
},{
\"
funId
\"
:
\"
210
\"
,
\"
btnStr
\"
:
\"
1,2
\"
},{
\"
funId
\"
:
\"
211
\"
,
\"
btnStr
\"
:
\"
1,2
\"
},{
\"
funId
\"
:
\"
197
\"
,
\"
btnStr
\"
:
\"
1
\"
},{
\"
funId
\"
:
\"
203
\"
,
\"
btnStr
\"
:
\"
1
\"
},{
\"
funId
\"
:
\"
204
\"
,
\"
btnStr
\"
:
\"
1
\"
},{
\"
funId
\"
:
\"
205
\"
,
\"
btnStr
\"
:
\"
1
\"
},{
\"
funId
\"
:
\"
206
\"
,
\"
btnStr
\"
:
\"
1
\"
},{
\"
funId
\"
:
\"
212
\"
,
\"
btnStr
\"
:
\"
1
\"
},{
\"
funId
\"
:
\"
201
\"
,
\"
btnStr
\"
:
\"
1,2
\"
},{
\"
funId
\"
:
\"
202
\"
,
\"
btnStr
\"
:
\"
1,2
\"
},{
\"
funId
\"
:
\"
40
\"
,
\"
btnStr
\"
:
\"
1,2
\"
},{
\"
funId
\"
:
\"
232
\"
,
\"
btnStr
\"
:
\"
1,2
\"
},{
\"
funId
\"
:
\"
233
\"
,
\"
btnStr
\"
:
\"
1,2
\"
}]'
,
'0'
);
-- ----------------------------
-- Table structure for jsh_platform_config
-- ----------------------------
DROP
TABLE
IF
EXISTS
`jsh_platform_config`
;
CREATE
TABLE
`jsh_platform_config`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
,
`platform_key`
varchar
(
100
)
DEFAULT
NULL
COMMENT
'关键词'
,
`platform_key_info`
varchar
(
100
)
DEFAULT
NULL
COMMENT
'关键词名称'
,
`platform_value`
varchar
(
200
)
DEFAULT
NULL
COMMENT
'值'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
3
DEFAULT
CHARSET
=
utf8
COMMENT
=
'平台参数'
;
-- ----------------------------
-- Records of jsh_platform_config
-- ----------------------------
INSERT
INTO
`jsh_platform_config`
VALUES
(
'1'
,
'platform_name'
,
'平台名称'
,
'华夏ERP'
);
INSERT
INTO
`jsh_platform_config`
VALUES
(
'2'
,
'activation_code'
,
'激活码'
,
null
);
docs/数据库更新记录-方便升级.txt
View file @
0bb674db
...
...
@@ -1038,4 +1038,11 @@ CREATE TABLE `jsh_platform_config` (
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='平台参数';
INSERT INTO `jsh_platform_config` VALUES ('1', 'platform_name', '平台名称', '华夏ERP');
INSERT INTO `jsh_platform_config` VALUES ('2', 'activation_code', '激活码', null);
\ No newline at end of file
INSERT INTO `jsh_platform_config` VALUES ('2', 'activation_code', '激活码', null);
-- --------------------------------------------------------
-- 时间 2020年11月24日
-- by jishenghua
-- 给单据主表增加单据类型字段bill_type
-- --------------------------------------------------------
alter table jsh_depot_head add bill_type varchar(50) DEFAULT NULL COMMENT '单据类型' after pay_type;
\ No newline at end of file
erp_web/js/pages/bill/bill_detail.js
View file @
0bb674db
...
...
@@ -250,7 +250,7 @@
}
$
(
"
#bill .AccountIdShow
"
).
text
(
accountIdShow
);
}
$
(
"
#bill .OrganIdShow
"
).
text
(
data
.
organName
);
$
(
"
#bill .OrganIdShow
"
).
text
(
data
.
organName
==
null
?
""
:
data
.
organName
);
$
(
"
#bill .OperTimeShow
"
).
text
(
data
.
operTimeStr
);
$
(
"
#bill .NumberShow
"
).
text
(
data
.
number
);
$
(
"
#bill .LinkNumberShow
"
).
text
(
data
.
linkNumber
?
data
.
linkNumber
:
""
);
...
...
erp_web/pages/bill/other_in_list.html
View file @
0bb674db
...
...
@@ -121,9 +121,13 @@
<td
style=
"padding:5px;width:140px;"
>
<span
id=
"NumberShow"
></span>
</td>
<td
style=
"width:70px;"
></td>
<td
style=
"padding:5px;width:140px;"
></td>
<td
style=
"width:100px;"
></td>
<td
style=
"width:70px;"
>
关联单号:
</td>
<td
style=
"padding:5px;width:140px;"
>
<span
id=
"LinkNumberShow"
></span>
</td>
<td
style=
"width:100px;"
>
<span
id=
"billTypeShow"
></span>
</td>
</tr>
<tr>
<td
colspan=
"9"
style=
"width: 1130px;"
>
...
...
@@ -423,6 +427,7 @@
$
(
"
#DebtShow
"
).
text
(
debt
);
$
(
"
#AccountDayShow
"
).
text
(
res
.
accountDay
);
//结算天数
$
(
"
#LinkNumberShow
"
).
text
(
res
.
linkNumber
);
//关联订单号
$
(
"
#billTypeShow
"
).
text
(
res
.
billType
);
//单据类型
var
otherMoney
=
res
.
otherMoney
?
res
.
otherMoney
:
0
;
if
(
otherMoney
!=
0
&&
res
.
otherMoneyList
&&
res
.
otherMoneyItem
){
var
itemArr
=
res
.
otherMoneyList
.
split
(
"
,
"
);
//支出项目id列表
...
...
@@ -700,11 +705,6 @@
return
;
}
}
//输入框提示
if
(
!
$
(
'
#OrganId
'
).
combobox
(
'
getValue
'
)){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择往来单位!
'
,
'
warning
'
);
return
;
}
//进行明细的校验
if
(
depotHeadID
==
0
)
{
//新增模式下
...
...
erp_web/pages/bill/other_out_list.html
View file @
0bb674db
...
...
@@ -115,9 +115,13 @@
<td
style=
"padding:5px;width:140px;"
>
<span
id=
"NumberShow"
></span>
</td>
<td
style=
"width:70px;"
></td>
<td
style=
"padding:5px;width:140px;"
></td>
<td
style=
"width:100px;"
></td>
<td
style=
"width:70px;"
>
关联单号:
</td>
<td
style=
"padding:5px;width:140px;"
>
<span
id=
"LinkNumberShow"
></span>
</td>
<td
style=
"width:100px;"
>
<span
id=
"billTypeShow"
></span>
</td>
</tr>
<tr>
<td
colspan=
"9"
style=
"width: 1130px;"
>
...
...
@@ -416,6 +420,7 @@
$
(
"
#DebtShow
"
).
text
(
debt
);
$
(
"
#AccountDayShow
"
).
text
(
res
.
accountDay
);
//结算天数
$
(
"
#LinkNumberShow
"
).
text
(
res
.
linkNumber
);
//关联订单号
$
(
"
#billTypeShow
"
).
text
(
res
.
billType
);
//单据类型
var
otherMoney
=
res
.
otherMoney
?
res
.
otherMoney
:
0
;
if
(
otherMoney
!=
0
&&
res
.
otherMoneyList
&&
res
.
otherMoneyItem
){
var
itemArr
=
res
.
otherMoneyList
.
split
(
"
,
"
);
//支出项目id列表
...
...
@@ -693,11 +698,6 @@
return
;
}
}
//输入框提示
if
(
!
$
(
'
#OrganId
'
).
combobox
(
'
getValue
'
)){
$
.
messager
.
alert
(
'
提示
'
,
'
请选择往来单位!
'
,
'
warning
'
);
return
;
}
//进行明细的校验
if
(
depotHeadID
==
0
)
{
//新增模式下
...
...
src/main/java/com/jsh/erp/datasource/entities/DepotHead.java
View file @
0bb674db
...
...
@@ -32,6 +32,8 @@ public class DepotHead {
private
String
payType
;
private
String
billType
;
private
String
remark
;
private
String
salesMan
;
...
...
@@ -174,6 +176,14 @@ public class DepotHead {
this
.
payType
=
payType
==
null
?
null
:
payType
.
trim
();
}
public
String
getBillType
()
{
return
billType
;
}
public
void
setBillType
(
String
billType
)
{
this
.
billType
=
billType
==
null
?
null
:
billType
.
trim
();
}
public
String
getRemark
()
{
return
remark
;
}
...
...
src/main/java/com/jsh/erp/datasource/entities/DepotHeadExample.java
View file @
0bb674db
...
...
@@ -996,6 +996,76 @@ public class DepotHeadExample {
return
(
Criteria
)
this
;
}
public
Criteria
andBillTypeIsNull
()
{
addCriterion
(
"bill_type is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBillTypeIsNotNull
()
{
addCriterion
(
"bill_type is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBillTypeEqualTo
(
String
value
)
{
addCriterion
(
"bill_type ="
,
value
,
"billType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBillTypeNotEqualTo
(
String
value
)
{
addCriterion
(
"bill_type <>"
,
value
,
"billType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBillTypeGreaterThan
(
String
value
)
{
addCriterion
(
"bill_type >"
,
value
,
"billType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBillTypeGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"bill_type >="
,
value
,
"billType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBillTypeLessThan
(
String
value
)
{
addCriterion
(
"bill_type <"
,
value
,
"billType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBillTypeLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"bill_type <="
,
value
,
"billType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBillTypeLike
(
String
value
)
{
addCriterion
(
"bill_type like"
,
value
,
"billType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBillTypeNotLike
(
String
value
)
{
addCriterion
(
"bill_type not like"
,
value
,
"billType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBillTypeIn
(
List
<
String
>
values
)
{
addCriterion
(
"bill_type in"
,
values
,
"billType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBillTypeNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"bill_type not in"
,
values
,
"billType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBillTypeBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"bill_type between"
,
value1
,
value2
,
"billType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBillTypeNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"bill_type not between"
,
value1
,
value2
,
"billType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andRemarkIsNull
()
{
addCriterion
(
"remark is null"
);
return
(
Criteria
)
this
;
...
...
src/main/resources/mapper_xml/DepotHeadMapper.xml
View file @
0bb674db
...
...
@@ -16,6 +16,7 @@
<result
column=
"change_amount"
jdbcType=
"DECIMAL"
property=
"changeAmount"
/>
<result
column=
"total_price"
jdbcType=
"DECIMAL"
property=
"totalPrice"
/>
<result
column=
"pay_type"
jdbcType=
"VARCHAR"
property=
"payType"
/>
<result
column=
"bill_type"
jdbcType=
"VARCHAR"
property=
"billType"
/>
<result
column=
"remark"
jdbcType=
"VARCHAR"
property=
"remark"
/>
<result
column=
"sales_man"
jdbcType=
"VARCHAR"
property=
"salesMan"
/>
<result
column=
"account_id_list"
jdbcType=
"VARCHAR"
property=
"accountIdList"
/>
...
...
@@ -92,9 +93,10 @@
</sql>
<sql
id=
"Base_Column_List"
>
id, type, sub_type, default_number, number, create_time, oper_time, organ_id, hands_person_id,
creator, account_id, change_amount, total_price, pay_type, remark, sales_man, account_id_list,
account_money_list, discount, discount_money, discount_last_money, other_money, other_money_list,
other_money_item, account_day, status, link_number, tenant_id, delete_flag
creator, account_id, change_amount, total_price, pay_type, bill_type, remark, sales_man,
account_id_list, account_money_list, discount, discount_money, discount_last_money,
other_money, other_money_list, other_money_item, account_day, status, link_number,
tenant_id, delete_flag
</sql>
<select
id=
"selectByExample"
parameterType=
"com.jsh.erp.datasource.entities.DepotHeadExample"
resultMap=
"BaseResultMap"
>
select
...
...
@@ -131,22 +133,24 @@
default_number, number, create_time,
oper_time, organ_id, hands_person_id,
creator, account_id, change_amount,
total_price, pay_type, remark,
sales_man, account_id_list, account_money_list,
discount, discount_money, discount_last_money,
other_money, other_money_list, other_money_item,
account_day, status, link_number,
tenant_id, delete_flag)
total_price, pay_type, bill_type,
remark, sales_man, account_id_list,
account_money_list, discount, discount_money,
discount_last_money, other_money, other_money_list,
other_money_item, account_day, status,
link_number, tenant_id, delete_flag
)
values (#{id,jdbcType=BIGINT}, #{type,jdbcType=VARCHAR}, #{subType,jdbcType=VARCHAR},
#{defaultNumber,jdbcType=VARCHAR}, #{number,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{operTime,jdbcType=TIMESTAMP}, #{organId,jdbcType=BIGINT}, #{handsPersonId,jdbcType=BIGINT},
#{creator,jdbcType=BIGINT}, #{accountId,jdbcType=BIGINT}, #{changeAmount,jdbcType=DECIMAL},
#{totalPrice,jdbcType=DECIMAL}, #{payType,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
#{salesMan,jdbcType=VARCHAR}, #{accountIdList,jdbcType=VARCHAR}, #{accountMoneyList,jdbcType=VARCHAR},
#{discount,jdbcType=DECIMAL}, #{discountMoney,jdbcType=DECIMAL}, #{discountLastMoney,jdbcType=DECIMAL},
#{otherMoney,jdbcType=DECIMAL}, #{otherMoneyList,jdbcType=VARCHAR}, #{otherMoneyItem,jdbcType=VARCHAR},
#{accountDay,jdbcType=INTEGER}, #{status,jdbcType=VARCHAR}, #{linkNumber,jdbcType=VARCHAR},
#{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR})
#{totalPrice,jdbcType=DECIMAL}, #{payType,jdbcType=VARCHAR}, #{billType,jdbcType=VARCHAR},
#{remark,jdbcType=VARCHAR}, #{salesMan,jdbcType=VARCHAR}, #{accountIdList,jdbcType=VARCHAR},
#{accountMoneyList,jdbcType=VARCHAR}, #{discount,jdbcType=DECIMAL}, #{discountMoney,jdbcType=DECIMAL},
#{discountLastMoney,jdbcType=DECIMAL}, #{otherMoney,jdbcType=DECIMAL}, #{otherMoneyList,jdbcType=VARCHAR},
#{otherMoneyItem,jdbcType=VARCHAR}, #{accountDay,jdbcType=INTEGER}, #{status,jdbcType=VARCHAR},
#{linkNumber,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.jsh.erp.datasource.entities.DepotHead"
>
insert into jsh_depot_head
...
...
@@ -193,6 +197,9 @@
<if
test=
"payType != null"
>
pay_type,
</if>
<if
test=
"billType != null"
>
bill_type,
</if>
<if
test=
"remark != null"
>
remark,
</if>
...
...
@@ -282,6 +289,9 @@
<if
test=
"payType != null"
>
#{payType,jdbcType=VARCHAR},
</if>
<if
test=
"billType != null"
>
#{billType,jdbcType=VARCHAR},
</if>
<if
test=
"remark != null"
>
#{remark,jdbcType=VARCHAR},
</if>
...
...
@@ -380,6 +390,9 @@
<if
test=
"record.payType != null"
>
pay_type = #{record.payType,jdbcType=VARCHAR},
</if>
<if
test=
"record.billType != null"
>
bill_type = #{record.billType,jdbcType=VARCHAR},
</if>
<if
test=
"record.remark != null"
>
remark = #{record.remark,jdbcType=VARCHAR},
</if>
...
...
@@ -446,6 +459,7 @@
change_amount = #{record.changeAmount,jdbcType=DECIMAL},
total_price = #{record.totalPrice,jdbcType=DECIMAL},
pay_type = #{record.payType,jdbcType=VARCHAR},
bill_type = #{record.billType,jdbcType=VARCHAR},
remark = #{record.remark,jdbcType=VARCHAR},
sales_man = #{record.salesMan,jdbcType=VARCHAR},
account_id_list = #{record.accountIdList,jdbcType=VARCHAR},
...
...
@@ -507,6 +521,9 @@
<if
test=
"payType != null"
>
pay_type = #{payType,jdbcType=VARCHAR},
</if>
<if
test=
"billType != null"
>
bill_type = #{billType,jdbcType=VARCHAR},
</if>
<if
test=
"remark != null"
>
remark = #{remark,jdbcType=VARCHAR},
</if>
...
...
@@ -570,6 +587,7 @@
change_amount = #{changeAmount,jdbcType=DECIMAL},
total_price = #{totalPrice,jdbcType=DECIMAL},
pay_type = #{payType,jdbcType=VARCHAR},
bill_type = #{billType,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR},
sales_man = #{salesMan,jdbcType=VARCHAR},
account_id_list = #{accountIdList,jdbcType=VARCHAR},
...
...
src/test/resources/generatorConfig.xml
View file @
0bb674db
...
...
@@ -5,7 +5,7 @@
<generatorConfiguration>
<classPathEntry
location=
"E:\maven\maven-repository\mysql\mysql-connector-java\5.1.
47
\mysql-connector-java-5.1.
47
.jar"
/>
location=
"E:\maven\maven-repository\mysql\mysql-connector-java\5.1.
30
\mysql-connector-java-5.1.
30
.jar"
/>
<context
id=
"DB2Tables"
targetRuntime=
"MyBatis3"
defaultModelType=
"flat"
>
<commentGenerator>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment