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
a4774016
Commit
a4774016
authored
Jul 21, 2020
by
季圣华
Browse files
优化表结构
parent
70f0dae4
Changes
53
Expand all
Hide whitespace changes
Inline
Side-by-side
docs/jsh_erp.sql
View file @
a4774016
This diff is collapsed.
Click to expand it.
docs/数据库更新记录-方便升级.txt
View file @
a4774016
...
...
@@ -48,7 +48,7 @@ INSERT INTO `jsh_functions`(`Number`, `Name`, `PNumber`, `URL`, `State`, `Sort`,
-- ----------------------------
-- 删除单据主表供应商id字段对应外键约束
-- ----------------------------
ALTER TABLE jsh_depothead DROP FOREIGN KEY jsh_depothead_ibfk_3;
ALTER TABLE jsh_depot
_
head DROP FOREIGN KEY jsh_depot
_
head_ibfk_3;
-- ----------------------------
-- 序列号表添加单据主表id字段,用于跟踪序列号流向
-- ----------------------------
...
...
@@ -66,7 +66,7 @@ alter table jsh_serial_number change delete_Flag delete_Flag varchar(1) DEFAULT
-- ----------------------------
-- 删除单据子表单据主表id字段对应外键约束
-- ----------------------------
ALTER TABLE jsh_depotitem DROP FOREIGN KEY jsh_depotitem_ibfk_1;
ALTER TABLE jsh_depot
_
item DROP FOREIGN KEY jsh_depot
_
item_ibfk_1;
-- ----------------------------
-- 时间:2019年2月1日
-- version:1.0.2
...
...
@@ -309,8 +309,8 @@ where Id = 5;
-- version:1.0.8
-- 改状态字段的类型,增加关联单据字段
-- ----------------------------
alter table jsh_depothead change Status Status varchar(1) DEFAULT '0' COMMENT '状态,0未审核、1已审核、2已转采购|销售';
alter table jsh_depothead add `LinkNumber` varchar(50) DEFAULT null COMMENT '关联订单号';
alter table jsh_depot
_
head change Status Status varchar(1) DEFAULT '0' COMMENT '状态,0未审核、1已审核、2已转采购|销售';
alter table jsh_depot
_
head add `LinkNumber` varchar(50) DEFAULT null COMMENT '关联订单号';
-- ----------------------------
-- 时间:2019年3月12日
-- version:1.0.9
...
...
@@ -430,8 +430,8 @@ alter table jsh_asset add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_assetcategory add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_assetname add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_depot add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_depothead add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_depotitem add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_depot
_
head add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_depot
_
item add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_inoutitem add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_log add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_material add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
...
...
@@ -487,10 +487,10 @@ alter table jsh_asset add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标
alter table jsh_assetcategory add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
-- 资产信息表 jsh_assetname
alter table jsh_assetname add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
-- 单据主表 jsh_depothead
alter table jsh_depothead add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
-- 单据子表 jsh_depotitem
alter table jsh_depotitem add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
-- 单据主表 jsh_depot
_
head
alter table jsh_depot
_
head add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
-- 单据子表 jsh_depot
_
item
alter table jsh_depot
_
item add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
-- 收支项目表 jsh_inoutitem
alter table jsh_inoutitem add delete_Flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
...
...
@@ -529,16 +529,16 @@ ALTER TABLE jsh_assetname DROP FOREIGN KEY FKA4ADCCF866BC8AD3;
-- ----------------------------
-- 删除单据主表对应外键约束
-- ----------------------------
ALTER TABLE jsh_depothead DROP FOREIGN KEY FK2A80F214AAE50527;
ALTER TABLE jsh_depothead DROP FOREIGN KEY jsh_depothead_ibfk_1;
ALTER TABLE jsh_depothead DROP FOREIGN KEY jsh_depothead_ibfk_4;
ALTER TABLE jsh_depothead DROP FOREIGN KEY jsh_depothead_ibfk_5;
ALTER TABLE jsh_depot
_
head DROP FOREIGN KEY FK2A80F214AAE50527;
ALTER TABLE jsh_depot
_
head DROP FOREIGN KEY jsh_depot
_
head_ibfk_1;
ALTER TABLE jsh_depot
_
head DROP FOREIGN KEY jsh_depot
_
head_ibfk_4;
ALTER TABLE jsh_depot
_
head DROP FOREIGN KEY jsh_depot
_
head_ibfk_5;
-- ----------------------------
-- 删除单据子表对应外键约束
-- ----------------------------
ALTER TABLE jsh_depotitem DROP FOREIGN KEY FK2A819F47729F5392;
ALTER TABLE jsh_depotitem DROP FOREIGN KEY FK2A819F479485B3F5;
ALTER TABLE jsh_depotitem DROP FOREIGN KEY jsh_depotitem_ibfk_2;
ALTER TABLE jsh_depot
_
item DROP FOREIGN KEY FK2A819F47729F5392;
ALTER TABLE jsh_depot
_
item DROP FOREIGN KEY FK2A819F479485B3F5;
ALTER TABLE jsh_depot
_
item DROP FOREIGN KEY jsh_depot
_
item_ibfk_2;
-- ----------------------------
-- 删除操作日志表对应外键约束
-- ----------------------------
...
...
@@ -732,15 +732,15 @@ ROW_FORMAT=COMPACT
-- 时间 2020-02-16
-- by jishenghua
-- ----------------------------
alter table jsh_depotitem add material_extend_id bigint(20) DEFAULT NULL COMMENT '商品扩展id' after MaterialId;
alter table jsh_depot
_
item add material_extend_id bigint(20) DEFAULT NULL COMMENT '商品扩展id' after MaterialId;
-- ----------------------------
-- 给单据主表删除字段ProjectId 和 AllocationProjectId
-- 时间 2020-02-18
-- by jishenghua
-- ----------------------------
alter table jsh_depothead drop column ProjectId;
alter table jsh_depothead drop column AllocationProjectId;
alter table jsh_depot
_
head drop column ProjectId;
alter table jsh_depot
_
head drop column AllocationProjectId;
-- ----------------------------
-- 给计量单位表增加基础单位、副单位、比例三个字段
...
...
@@ -902,4 +902,112 @@ alter table jsh_serial_number change is_Sell is_sell varchar(1) DEFAULT '0' COMM
alter table jsh_serial_number change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
alter table jsh_serial_number change create_Time create_time datetime DEFAULT NULL COMMENT '创建时间';
alter table jsh_serial_number change update_Time update_time datetime DEFAULT NULL COMMENT '更新时间';
alter table jsh_serial_number change depothead_Id depot_head_id bigint(20) DEFAULT NULL COMMENT '单据主表id,用于跟踪序列号流向';
\ No newline at end of file
alter table jsh_serial_number change depothead_Id depot_head_id bigint(20) DEFAULT NULL COMMENT '单据主表id,用于跟踪序列号流向';
alter table jsh_supplier change phonenum phone_num varchar(30) DEFAULT NULL COMMENT '联系电话';
alter table jsh_supplier change AdvanceIn advance_in decimal(24,6) DEFAULT '0.000000' COMMENT '预收款';
alter table jsh_supplier change BeginNeedGet begin_need_get decimal(24,6) DEFAULT NULL COMMENT '期初应收';
alter table jsh_supplier change BeginNeedPay begin_need_pay decimal(24,6) DEFAULT NULL COMMENT '期初应付';
alter table jsh_supplier change AllNeedGet all_need_get decimal(24,6) DEFAULT NULL COMMENT '累计应收';
alter table jsh_supplier change AllNeedPay all_need_pay decimal(24,6) DEFAULT NULL COMMENT '累计应付';
alter table jsh_supplier change taxNum tax_num varchar(50) DEFAULT NULL COMMENT '纳税人识别号';
alter table jsh_supplier change bankName bank_name varchar(50) DEFAULT NULL COMMENT '开户行';
alter table jsh_supplier change accountNumber account_number varchar(50) DEFAULT NULL COMMENT '账号';
alter table jsh_supplier change taxRate tax_rate decimal(24,6) DEFAULT NULL COMMENT '税率';
alter table jsh_supplier change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
alter table jsh_accounthead rename to jsh_account_head;
alter table jsh_account_head change Id id bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键';
alter table jsh_account_head change Type type varchar(50) DEFAULT NULL COMMENT '类型(支出/收入/收款/付款/转账)';
alter table jsh_account_head change OrganId organ_id bigint(20) DEFAULT NULL COMMENT '单位Id(收款/付款单位)';
alter table jsh_account_head change HandsPersonId hands_person_id bigint(20) DEFAULT NULL COMMENT '经手人id';
alter table jsh_account_head change ChangeAmount change_amount decimal(24,6) DEFAULT NULL COMMENT '变动金额(优惠/收款/付款/实付)';
alter table jsh_account_head change TotalPrice total_price decimal(24,6) DEFAULT NULL COMMENT '合计金额';
alter table jsh_account_head change AccountId account_id bigint(20) DEFAULT NULL COMMENT '账户(收款/付款)';
alter table jsh_account_head change BillNo bill_no varchar(50) DEFAULT NULL COMMENT '单据编号';
alter table jsh_account_head change BillTime bill_time datetime DEFAULT NULL COMMENT '单据日期';
alter table jsh_account_head change Remark remark varchar(100) DEFAULT NULL COMMENT '备注';
alter table jsh_account_head change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
alter table jsh_accountitem rename to jsh_account_item;
alter table jsh_account_item change Id id bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键';
alter table jsh_account_item change HeaderId header_id bigint(20) NOT NULL COMMENT '表头Id';
alter table jsh_account_item change AccountId account_id bigint(20) DEFAULT NULL COMMENT '账户Id';
alter table jsh_account_item change InOutItemId in_out_item_id bigint(20) DEFAULT NULL COMMENT '收支项目Id';
alter table jsh_account_item change EachAmount each_amount decimal(24,6) DEFAULT NULL COMMENT '单项金额';
alter table jsh_account_item change Remark remark varchar(100) DEFAULT NULL COMMENT '单据备注';
alter table jsh_account_item change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
alter table jsh_material change Id id bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键';
alter table jsh_material change CategoryId category_id bigint(20) DEFAULT NULL COMMENT '产品类型id';
alter table jsh_material change Name name varchar(50) DEFAULT NULL COMMENT '名称';
alter table jsh_material change Mfrs mfrs varchar(50) DEFAULT NULL COMMENT '制造商';
alter table jsh_material change SafetyStock safety_stock decimal(24,6) DEFAULT NULL COMMENT '安全存量(KG)';
alter table jsh_material change Model model varchar(50) DEFAULT NULL COMMENT '型号';
alter table jsh_material change Standard standard varchar(50) DEFAULT NULL COMMENT '规格';
alter table jsh_material change Color color varchar(50) DEFAULT NULL COMMENT '颜色';
alter table jsh_material change Unit unit varchar(50) DEFAULT NULL COMMENT '单位-单个';
alter table jsh_material change Remark remark varchar(100) DEFAULT NULL COMMENT '备注';
alter table jsh_material change UnitId unit_id bigint(20) DEFAULT NULL COMMENT '计量单位Id';
alter table jsh_material change Enabled enabled bit(1) DEFAULT NULL COMMENT '启用 0-禁用 1-启用';
alter table jsh_material change OtherField1 other_field1 varchar(50) DEFAULT NULL COMMENT '自定义1';
alter table jsh_material change OtherField2 other_field2 varchar(50) DEFAULT NULL COMMENT '自定义2';
alter table jsh_material change OtherField3 other_field3 varchar(50) DEFAULT NULL COMMENT '自定义3';
alter table jsh_material change enableSerialNumber enable_serial_number varchar(1) DEFAULT '0' COMMENT '是否开启序列号,0否,1是';
alter table jsh_material change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
alter table jsh_depot_head rename to jsh_depot_head;
alter table jsh_depot_head change Id id bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键';
alter table jsh_depot_head change Type type varchar(50) DEFAULT NULL COMMENT '类型(出库/入库)';
alter table jsh_depot_head change SubType sub_type varchar(50) DEFAULT NULL COMMENT '出入库分类';
alter table jsh_depot_head change DefaultNumber default_number varchar(50) DEFAULT NULL COMMENT '初始票据号';
alter table jsh_depot_head change Number number varchar(50) DEFAULT NULL COMMENT '票据号';
alter table jsh_depot_head change OperPersonName oper_person_name varchar(50) DEFAULT NULL COMMENT '操作员名字';
alter table jsh_depot_head change CreateTime create_time datetime DEFAULT NULL COMMENT '创建时间';
alter table jsh_depot_head change OperTime oper_time datetime DEFAULT NULL COMMENT '出入库时间';
alter table jsh_depot_head change OrganId organ_id bigint(20) DEFAULT NULL COMMENT '供应商id';
alter table jsh_depot_head change HandsPersonId hands_person_id bigint(20) DEFAULT NULL COMMENT '采购/领料-经手人id';
alter table jsh_depot_head change AccountId account_id bigint(20) DEFAULT NULL COMMENT '账户id';
alter table jsh_depot_head change ChangeAmount change_amount decimal(24,6) DEFAULT NULL COMMENT '变动金额(收款/付款)';
alter table jsh_depot_head change TotalPrice total_price decimal(24,6) DEFAULT NULL COMMENT '合计金额';
alter table jsh_depot_head change PayType pay_type varchar(50) DEFAULT NULL COMMENT '付款类型(现金、记账等)';
alter table jsh_depot_head change Remark remark varchar(1000) DEFAULT NULL COMMENT '备注';
alter table jsh_depot_head change Salesman sales_man varchar(50) DEFAULT NULL COMMENT '业务员(可以多个)';
alter table jsh_depot_head change AccountIdList account_id_list varchar(50) DEFAULT NULL COMMENT '多账户ID列表';
alter table jsh_depot_head change AccountMoneyList account_money_list varchar(200) DEFAULT NULL COMMENT '多账户金额列表';
alter table jsh_depot_head change Discount discount decimal(24,6) DEFAULT NULL COMMENT '优惠率';
alter table jsh_depot_head change DiscountMoney discount_money decimal(24,6) DEFAULT NULL COMMENT '优惠金额';
alter table jsh_depot_head change DiscountLastMoney discount_last_money decimal(24,6) DEFAULT NULL COMMENT '优惠后金额';
alter table jsh_depot_head change OtherMoney other_money decimal(24,6) DEFAULT NULL COMMENT '销售或采购费用合计';
alter table jsh_depot_head change OtherMoneyList other_money_list varchar(200) DEFAULT NULL COMMENT '销售或采购费用涉及项目Id数组(包括快递、招待等)';
alter table jsh_depot_head change OtherMoneyItem other_money_item varchar(200) DEFAULT NULL COMMENT '销售或采购费用涉及项目(包括快递、招待等)';
alter table jsh_depot_head change AccountDay account_day int(10) DEFAULT NULL COMMENT '结算天数';
alter table jsh_depot_head change Status status varchar(1) DEFAULT NULL COMMENT '状态,0未审核、1已审核、2已转采购|销售';
alter table jsh_depot_head change LinkNumber link_number varchar(50) DEFAULT NULL COMMENT '关联订单号';
alter table jsh_depot_head change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
alter table jsh_depot_item rename to jsh_depot_item;
alter table jsh_depot_item change Id id bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键';
alter table jsh_depot_item change HeaderId header_id bigint(20) NOT NULL COMMENT '表头Id';
alter table jsh_depot_item change MaterialId material_id bigint(20) NOT NULL COMMENT '商品Id';
alter table jsh_depot_item change MUnit material_unit varchar(20) DEFAULT NULL COMMENT '商品计量单位';
alter table jsh_depot_item change OperNumber oper_number decimal(24,6) DEFAULT NULL COMMENT '数量';
alter table jsh_depot_item change BasicNumber basic_number decimal(24,6) DEFAULT NULL COMMENT '基础数量,如kg、瓶';
alter table jsh_depot_item change UnitPrice unit_price decimal(24,6) DEFAULT NULL COMMENT '单价';
alter table jsh_depot_item change TaxUnitPrice tax_unit_price decimal(24,6) DEFAULT NULL COMMENT '含税单价';
alter table jsh_depot_item change AllPrice all_price decimal(24,6) DEFAULT NULL COMMENT '金额';
alter table jsh_depot_item change Remark remark varchar(200) DEFAULT NULL COMMENT '备注';
alter table jsh_depot_item change Img img varchar(50) DEFAULT NULL COMMENT '图片';
alter table jsh_depot_item change Incidentals incidentals decimal(24,6) DEFAULT NULL COMMENT '运杂费';
alter table jsh_depot_item change DepotId depot_id bigint(20) DEFAULT NULL COMMENT '仓库ID';
alter table jsh_depot_item change AnotherDepotId another_depot_id bigint(20) DEFAULT NULL COMMENT '调拨时,对方仓库Id';
alter table jsh_depot_item change TaxRate tax_rate decimal(24,6) DEFAULT NULL COMMENT '税率';
alter table jsh_depot_item change TaxMoney tax_money decimal(24,6) DEFAULT NULL COMMENT '税额';
alter table jsh_depot_item change TaxLastMoney tax_last_money decimal(24,6) DEFAULT NULL COMMENT '价税合计';
alter table jsh_depot_item change OtherField1 other_field1 varchar(50) DEFAULT NULL COMMENT '自定义字段1-名称';
alter table jsh_depot_item change OtherField2 other_field2 varchar(50) DEFAULT NULL COMMENT '自定义字段2-型号';
alter table jsh_depot_item change OtherField3 other_field3 varchar(50) DEFAULT NULL COMMENT '自定义字段3-制造商';
alter table jsh_depot_item change OtherField4 other_field4 varchar(50) DEFAULT NULL COMMENT '自定义字段4-名称';
alter table jsh_depot_item change OtherField5 other_field5 varchar(50) DEFAULT NULL COMMENT '自定义字段5-名称';
alter table jsh_depot_item change MType material_type varchar(20) DEFAULT NULL COMMENT '商品类型';
alter table jsh_depot_item change delete_Flag delete_flag varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除';
\ No newline at end of file
erp_web/js/pages/financial/financial_base.js
View file @
a4774016
...
...
@@ -234,19 +234,19 @@
{
title
:
'
操作
'
,
field
:
'
op
'
,
align
:
"
center
"
,
width
:
90
,
formatter
:
function
(
value
,
rec
,
index
)
{
var
str
=
''
;
var
orgId
=
rec
.
organ
i
d
?
rec
.
organ
i
d
:
0
;
var
orgId
=
rec
.
organ
I
d
?
rec
.
organ
I
d
:
0
;
str
+=
'
<img title="查看" src="/js/easyui/themes/icons/list.png" style="cursor: pointer;" onclick="showAccountHead(
\'
'
+
index
+
'
\'
);"/>
'
;
str
+=
'
<img title="编辑" src="/js/easyui/themes/icons/pencil.png" style="cursor: pointer;" onclick="editAccountHead(
\'
'
+
index
+
'
\'
);"/>
'
;
str
+=
'
<img title="删除" src="/js/easyui/themes/icons/edit_remove.png" style="cursor: pointer;" onclick="deleteAccountHead(
'
+
rec
.
id
+
'
,
'
+
orgId
+
'
,
'
+
rec
.
totalprice
+
'
);"/>
'
;
return
str
;
}
},
{
field
:
'
organ
i
d
'
,
width
:
5
,
hidden
:
true
},
{
title
:
organNameTitle
,
field
:
'
organ
n
ame
'
,
width
:
140
,
hidden
:
organNameHidden
},
{
title
:
'
单据编号
'
,
field
:
'
bill
n
o
'
,
width
:
160
},
{
title
:
'
经手人
'
,
field
:
'
hands
p
erson
n
ame
'
,
width
:
80
},
{
field
:
'
organ
I
d
'
,
width
:
5
,
hidden
:
true
},
{
title
:
organNameTitle
,
field
:
'
organ
N
ame
'
,
width
:
140
,
hidden
:
organNameHidden
},
{
title
:
'
单据编号
'
,
field
:
'
bill
N
o
'
,
width
:
160
},
{
title
:
'
经手人
'
,
field
:
'
hands
P
erson
N
ame
'
,
width
:
80
},
{
title
:
'
单据时间
'
,
field
:
'
billTimeStr
'
,
width
:
160
},
{
title
:
'
合计
'
,
field
:
'
total
p
rice
'
,
width
:
80
},
{
title
:
'
合计
'
,
field
:
'
total
P
rice
'
,
width
:
80
},
{
title
:
'
备注
'
,
field
:
'
remark
'
,
width
:
100
}
]],
toolbar
:[
...
...
@@ -699,15 +699,15 @@
//编辑信息
function
editAccountHead
(
index
){
var
res
=
$
(
"
#tableData
"
).
datagrid
(
"
getRows
"
)[
index
];
$
(
"
#BillNo
"
).
val
(
res
.
bill
n
o
);
$
(
"
#BillTime
"
).
val
(
res
.
bill
t
ime
);
$
(
"
#BillNo
"
).
val
(
res
.
bill
N
o
);
$
(
"
#BillTime
"
).
val
(
res
.
bill
T
ime
);
$
(
"
#Remark
"
).
val
(
res
.
remark
);
$
(
"
#AccountId
"
).
val
(
res
.
account
i
d
);
$
(
'
#OrganId
'
).
combobox
(
'
setValue
'
,
res
.
organ
i
d
);
$
(
"
#HandsPersonId
"
).
val
(
res
.
hands
p
erson
i
d
);
$
(
"
#ChangeAmount
"
).
val
(
res
.
change
a
mount
);
var
TotalPrice
=
res
.
total
p
rice
;
preTotalPrice
=
res
.
total
p
rice
;
//记录前一次合计金额,用于收预付款
$
(
"
#AccountId
"
).
val
(
res
.
account
I
d
);
$
(
'
#OrganId
'
).
combobox
(
'
setValue
'
,
res
.
organ
I
d
);
$
(
"
#HandsPersonId
"
).
val
(
res
.
hands
P
erson
I
d
);
$
(
"
#ChangeAmount
"
).
val
(
res
.
change
A
mount
);
var
TotalPrice
=
res
.
total
P
rice
;
preTotalPrice
=
res
.
total
P
rice
;
//记录前一次合计金额,用于收预付款
var
editTitle
=
listTitle
.
replace
(
"
列表
"
,
"
信息
"
);
$
(
'
#accountHeadDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="
'
+
'
/js/easyui/themes/icons/pencil.png"/> 编辑
'
+
editTitle
);
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
...
...
@@ -721,14 +721,14 @@
//查看信息
function
showAccountHead
(
index
){
var
res
=
$
(
"
#tableData
"
).
datagrid
(
"
getRows
"
)[
index
];
$
(
"
#BillNoShow
"
).
text
(
res
.
bill
n
o
);
$
(
"
#BillTimeShow
"
).
text
(
res
.
bill
t
ime
);
$
(
"
#BillNoShow
"
).
text
(
res
.
bill
N
o
);
$
(
"
#BillTimeShow
"
).
text
(
res
.
bill
T
ime
);
$
(
"
#RemarkShow
"
).
text
(
res
.
remark
);
$
(
"
#AccountIdShow
"
).
text
(
res
.
account
n
ame
);
$
(
'
#OrganIdShow
'
).
text
(
res
.
organ
n
ame
);
$
(
"
#HandsPersonIdShow
"
).
text
(
res
.
hands
p
erson
n
ame
);
$
(
"
#ChangeAmountShow
"
).
text
(
res
.
change
a
mount
);
var
TotalPrice
=
res
.
total
p
rice
;
$
(
"
#AccountIdShow
"
).
text
(
res
.
account
N
ame
);
$
(
'
#OrganIdShow
'
).
text
(
res
.
organ
N
ame
);
$
(
"
#HandsPersonIdShow
"
).
text
(
res
.
hands
P
erson
N
ame
);
$
(
"
#ChangeAmountShow
"
).
text
(
res
.
change
A
mount
);
var
TotalPrice
=
res
.
total
P
rice
;
var
showTitle
=
listTitle
.
replace
(
"
列表
"
,
"
信息
"
);
$
(
'
#accountHeadDlgShow
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="/js/easyui/themes/icons/list.png"/> 查看
'
+
showTitle
);
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
...
...
@@ -881,7 +881,7 @@
});
}
//保存
单位
信息
//保存信息
$
.
ajax
({
type
:
"
post
"
,
url
:
url
,
...
...
erp_web/js/pages/manage/supplier.js
View file @
a4774016
...
...
@@ -69,14 +69,14 @@
{
title
:
'
联系人
'
,
field
:
'
contacts
'
,
width
:
50
,
align
:
"
center
"
},
{
title
:
'
手机号码
'
,
field
:
'
telephone
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
电子邮箱
'
,
field
:
'
email
'
,
width
:
80
,
align
:
"
center
"
},
{
title
:
'
联系电话
'
,
field
:
'
phone
n
um
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
联系电话
'
,
field
:
'
phone
N
um
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
传真
'
,
field
:
'
fax
'
,
width
:
100
,
align
:
"
center
"
},
{
title
:
'
预付款
'
,
field
:
'
advance
i
n
'
,
width
:
70
,
align
:
"
center
"
},
{
title
:
'
期初应收
'
,
field
:
'
begin
n
eed
g
et
'
,
width
:
70
,
align
:
"
center
"
},
{
title
:
'
期初应付
'
,
field
:
'
begin
n
eed
p
ay
'
,
width
:
70
,
align
:
"
center
"
},
{
title
:
'
期末应收
'
,
field
:
'
all
n
eed
g
et
'
,
width
:
70
,
align
:
"
center
"
},
{
title
:
'
期末应付
'
,
field
:
'
all
n
eed
p
ay
'
,
width
:
70
,
align
:
"
center
"
},
{
title
:
'
税率(%)
'
,
field
:
'
tax
r
ate
'
,
width
:
60
,
align
:
"
center
"
},
{
title
:
'
预付款
'
,
field
:
'
advance
I
n
'
,
width
:
70
,
align
:
"
center
"
},
{
title
:
'
期初应收
'
,
field
:
'
begin
N
eed
G
et
'
,
width
:
70
,
align
:
"
center
"
},
{
title
:
'
期初应付
'
,
field
:
'
begin
N
eed
P
ay
'
,
width
:
70
,
align
:
"
center
"
},
{
title
:
'
期末应收
'
,
field
:
'
all
N
eed
G
et
'
,
width
:
70
,
align
:
"
center
"
},
{
title
:
'
期末应付
'
,
field
:
'
all
N
eed
P
ay
'
,
width
:
70
,
align
:
"
center
"
},
{
title
:
'
税率(%)
'
,
field
:
'
tax
R
ate
'
,
width
:
60
,
align
:
"
center
"
},
{
title
:
'
状态
'
,
field
:
'
enabled
'
,
width
:
70
,
align
:
"
center
"
,
formatter
:
function
(
value
){
return
value
?
"
<span style='color:green'>启用</span>
"
:
"
<span style='color:red'>禁用</span>
"
;
}}
...
...
@@ -558,12 +558,12 @@
function
editSupplier
(
index
)
{
var
res
=
$
(
"
#tableData
"
).
datagrid
(
"
getRows
"
)[
index
];
var
sId
=
res
.
id
;
var
beginNeedGet
=
res
.
begin
n
eed
g
et
;
var
beginNeedPay
=
res
.
begin
n
eed
p
ay
;
var
beginNeedGet
=
res
.
begin
N
eed
G
et
;
var
beginNeedPay
=
res
.
begin
N
eed
P
ay
;
var
row
=
{
supplier
:
res
.
supplier
,
contacts
:
res
.
contacts
,
phonenum
:
res
.
phone
n
um
,
phonenum
:
res
.
phone
N
um
,
email
:
res
.
email
,
BeginNeedGet
:
beginNeedGet
==
"
0
"
?
""
:
beginNeedGet
,
BeginNeedPay
:
beginNeedPay
==
"
0
"
?
""
:
beginNeedPay
,
...
...
@@ -574,10 +574,10 @@
fax
:
res
.
fax
,
telephone
:
res
.
telephone
,
address
:
res
.
address
,
taxNum
:
res
.
tax
n
um
,
bankName
:
res
.
bank
n
ame
,
accountNumber
:
res
.
account
n
umber
,
taxRate
:
res
.
tax
r
ate
taxNum
:
res
.
tax
N
um
,
bankName
:
res
.
bank
N
ame
,
accountNumber
:
res
.
account
N
umber
,
taxRate
:
res
.
tax
R
ate
};
oldSupplier
=
res
.
supplier
;
$
(
'
#supplierDlg
'
).
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="/js/easyui/themes/icons/pencil.png"/> 编辑
'
+
listType
+
"
信息
"
);
...
...
erp_web/js/pages/materials/bill_detail.js
View file @
a4774016
...
...
@@ -219,9 +219,9 @@
if
(
data
.
accountName
){
$
(
"
#bill .AccountIdShow
"
).
text
(
data
.
accountName
);
//结算账户
}
else
if
(
data
.
account
idl
ist
&&
data
.
account
m
oney
l
ist
)
{
var
accountArr
=
data
.
account
idl
ist
.
split
(
"
,
"
);
//账户id列表
var
accountMoneyArr
=
data
.
account
m
oney
l
ist
.
split
(
"
,
"
);
//账户金额列表
else
if
(
data
.
account
IdL
ist
&&
data
.
account
M
oney
L
ist
)
{
var
accountArr
=
data
.
account
IdL
ist
.
split
(
"
,
"
);
//账户id列表
var
accountMoneyArr
=
data
.
account
M
oney
L
ist
.
split
(
"
,
"
);
//账户金额列表
var
accountIdShow
=
""
;
for
(
var
j
=
0
;
j
<
accountArr
.
length
;
j
++
)
{
if
(
accountList
!=
null
)
{
...
...
@@ -241,22 +241,22 @@
$
(
"
#bill .AccountIdShow
"
).
text
(
accountIdShow
);
}
$
(
"
#bill .OrganIdShow
"
).
text
(
data
.
organName
);
$
(
"
#bill .OperTimeShow
"
).
text
(
data
.
oper
t
imeStr
);
$
(
"
#bill .OperTimeShow
"
).
text
(
data
.
oper
T
imeStr
);
$
(
"
#bill .NumberShow
"
).
text
(
data
.
number
);
$
(
"
#bill .LinkNumberShow
"
).
text
(
data
.
link
n
umber
?
data
.
link
n
umber
:
""
);
$
(
"
#bill .LinkNumberShow
"
).
text
(
data
.
link
N
umber
?
data
.
link
N
umber
:
""
);
$
(
"
#bill .RemarkShow
"
).
text
(
data
.
remark
);
$
(
"
#bill .DiscountShow
"
).
text
(
data
.
discount
);
$
(
"
#bill .DiscountMoneyShow
"
).
text
(
data
.
discount
m
oney
);
$
(
"
#bill .DiscountLastMoneyShow
"
).
text
(
data
.
discount
l
ast
m
oney
);
$
(
"
#bill .ChangeAmountShow
"
).
text
(
data
.
change
a
mount
==
null
?
""
:
data
.
change
a
mount
);
$
(
"
#bill .DebtShow
"
).
text
((
data
.
discount
l
ast
m
oney
+
data
.
other
m
oney
-
data
.
change
a
mount
).
toFixed
(
2
));
$
(
"
#bill .OtherMoneyShow
"
).
text
(
data
.
other
m
oney
==
null
?
""
:
data
.
other
m
oney
);
$
(
"
#bill .AccountDayShow
"
).
text
(
data
.
account
d
ay
==
null
?
""
:
data
.
account
d
ay
);
//结算天数
if
(
data
.
other
m
oney
&&
data
.
other
m
oney
l
ist
&&
data
.
other
m
oney
i
tem
)
{
var
itemArr
=
data
.
other
m
oney
l
ist
.
split
(
"
,
"
);
//支出项目id列表
$
(
"
#bill .DiscountMoneyShow
"
).
text
(
data
.
discount
M
oney
);
$
(
"
#bill .DiscountLastMoneyShow
"
).
text
(
data
.
discount
L
ast
M
oney
);
$
(
"
#bill .ChangeAmountShow
"
).
text
(
data
.
change
A
mount
==
null
?
""
:
data
.
change
A
mount
);
$
(
"
#bill .DebtShow
"
).
text
((
data
.
discount
L
ast
M
oney
+
data
.
other
M
oney
-
data
.
change
A
mount
).
toFixed
(
2
));
$
(
"
#bill .OtherMoneyShow
"
).
text
(
data
.
other
M
oney
==
null
?
""
:
data
.
other
M
oney
);
$
(
"
#bill .AccountDayShow
"
).
text
(
data
.
account
D
ay
==
null
?
""
:
data
.
account
D
ay
);
//结算天数
if
(
data
.
other
M
oney
&&
data
.
other
M
oney
L
ist
&&
data
.
other
M
oney
I
tem
)
{
var
itemArr
=
data
.
other
M
oney
L
ist
.
split
(
"
,
"
);
//支出项目id列表
var
itemMoneyArr
=
null
;
if
(
data
.
other
m
oney
i
tem
!=
null
)
{
itemMoneyArr
=
eval
(
"
([
"
+
data
.
other
m
oney
i
tem
+
"
])
"
);
//支出项目金额列表
if
(
data
.
other
M
oney
I
tem
!=
null
)
{
itemMoneyArr
=
eval
(
"
([
"
+
data
.
other
M
oney
I
tem
+
"
])
"
);
//支出项目金额列表
}
var
otherMoneyShow
=
""
;
for
(
var
j
=
0
;
j
<
itemArr
.
length
;
j
++
)
{
...
...
@@ -277,16 +277,16 @@
}
}
}
$
(
"
#bill .OtherMoneyShow:visible
"
).
text
(
otherMoneyShow
+
"
总计:
"
+
data
.
other
m
oney
+
"
元
"
);
//其它费用
$
(
"
#bill .OtherMoneyShow:visible
"
).
text
(
otherMoneyShow
+
"
总计:
"
+
data
.
other
M
oney
+
"
元
"
);
//其它费用
}
$
(
"
#bill .payTypeShow
"
).
text
(
data
.
payType
);
var
TotalPrice
=
data
.
total
p
rice
;
var
TotalPrice
=
data
.
total
P
rice
;
depotHeadID
=
data
.
id
;
initTableData_material_show
(
TotalPrice
,
listSubType
);
//商品列表-查看状态
//零售单据展示数据
if
(
listSubType
==
"
零售出库
"
||
listSubType
==
"
零售退货入库
"
){
$
(
"
#bill .change-amount-show
"
).
text
(
data
.
change
a
mount
);
$
(
"
#bill .change-amount-show
"
).
text
(
data
.
change
A
mount
);
var
changeAccount
=
$
(
"
#bill .change-amount-show:visible
"
).
text
()
-
0
;
if
(
manyAccountMoney
!==
0
){
$
(
"
#bill .get-amount-show
"
).
text
((
manyAccountMoney
).
toFixed
(
2
));
...
...
@@ -298,7 +298,7 @@
}
}
if
(
listSubType
===
"
销售出库
"
||
listSubType
===
"
销售退货
"
){
var
salesManInfo
=
data
.
sales
m
an
;
var
salesManInfo
=
data
.
sales
M
an
;
if
(
salesManInfo
){
var
arr
=
salesManInfo
.
split
(
"
,
"
);
var
salesmanStr
=
""
;
...
...
@@ -344,14 +344,14 @@
success
:
function
(
res
)
{
if
(
res
&&
res
.
code
===
200
){
var
data
=
res
.
data
;
$
(
"
#bill .BillNoShow
"
).
text
(
data
.
bill
n
o
);
$
(
"
#bill .BillTimeShow
"
).
text
(
data
.
bill
t
ime
);
$
(
"
#bill .BillNoShow
"
).
text
(
data
.
bill
N
o
);
$
(
"
#bill .BillTimeShow
"
).
text
(
data
.
bill
T
ime
);
$
(
"
#bill .RemarkShow
"
).
text
(
data
.
remark
);
$
(
"
#bill .AccountIdShow
"
).
text
(
data
.
account
n
ame
);
$
(
'
#bill .OrganIdShow
'
).
text
(
data
.
organ
n
ame
);
$
(
"
#bill .HandsPersonIdShow
"
).
text
(
data
.
hands
p
erson
n
ame
);
$
(
"
#bill .ChangeAmountShow
"
).
text
(
data
.
change
a
mount
==
null
?
""
:
data
.
change
a
mount
);
var
totalprice
=
data
.
total
p
rice
;
$
(
"
#bill .AccountIdShow
"
).
text
(
data
.
account
N
ame
);
$
(
'
#bill .OrganIdShow
'
).
text
(
data
.
organ
N
ame
);
$
(
"
#bill .HandsPersonIdShow
"
).
text
(
data
.
hands
P
erson
N
ame
);
$
(
"
#bill .ChangeAmountShow
"
).
text
(
data
.
change
A
mount
==
null
?
""
:
data
.
change
A
mount
);
var
totalprice
=
data
.
total
P
rice
;
var
accountHeadID
=
data
.
id
;
initTableData_account_show
(
totalprice
,
accountHeadID
);
//明细列表-查看状态
}
...
...
erp_web/js/pages/materials/in_out.js
View file @
a4774016
...
...
@@ -459,15 +459,15 @@
}
}
},
{
title
:
'
单据日期
'
,
field
:
'
oper
t
imeStr
'
,
width
:
145
},
{
title
:
'
操作员
'
,
field
:
'
oper
p
erson
n
ame
'
,
width
:
60
},
{
title
:
'
金额合计
'
,
field
:
'
total
p
rice
'
,
width
:
70
},
{
title
:
'
含税合计
'
,
field
:
'
total
t
ax
l
ast
m
oney
'
,
hidden
:
isShowLastMoneyColumn
,
width
:
70
,
formatter
:
function
(
value
,
rec
){
return
(
rec
.
discount
m
oney
+
rec
.
discount
l
ast
m
oney
).
toFixed
(
2
);
{
title
:
'
单据日期
'
,
field
:
'
oper
T
imeStr
'
,
width
:
145
},
{
title
:
'
操作员
'
,
field
:
'
oper
P
erson
N
ame
'
,
width
:
60
},
{
title
:
'
金额合计
'
,
field
:
'
total
P
rice
'
,
width
:
70
},
{
title
:
'
含税合计
'
,
field
:
'
total
T
ax
L
ast
M
oney
'
,
hidden
:
isShowLastMoneyColumn
,
width
:
70
,
formatter
:
function
(
value
,
rec
){
return
(
rec
.
discount
M
oney
+
rec
.
discount
L
ast
M
oney
).
toFixed
(
2
);
}
},
{
title
:
'
优惠后金额
'
,
field
:
'
discount
l
ast
m
oney
'
,
hidden
:
isShowLastMoneyColumn
,
width
:
80
},
{
title
:
payTypeTitle
,
field
:
'
change
a
mount
'
,
width
:
50
,
hidden
:
hideType
},
{
title
:
'
优惠后金额
'
,
field
:
'
discount
L
ast
M
oney
'
,
hidden
:
isShowLastMoneyColumn
,
width
:
80
},
{
title
:
payTypeTitle
,
field
:
'
change
A
mount
'
,
width
:
50
,
hidden
:
hideType
},
{
title
:
'
状态
'
,
field
:
'
status
'
,
hidden
:
isHiddenStatus
,
width
:
70
,
align
:
"
center
"
,
formatter
:
function
(
value
){
if
(
value
===
"
0
"
)
{
return
"
<span style='color:red;'>未审核</span>
"
;
...
...
@@ -1334,7 +1334,7 @@
$
.
messager
.
alert
(
'
编辑提示
'
,
'
已审核和已转的单据不能编辑!
'
,
'
warning
'
);
return
;
}
var
TotalPrice
=
res
.
total
p
rice
;
//合计金额
var
TotalPrice
=
res
.
total
P
rice
;
//合计金额
if
(
pageType
===
"
skip
"
)
{
//从订单跳转过来
buildNumber
();
//生成单据编号
var
thisDateTime
=
getNowFormatDateTime
();
//当前时间
...
...
@@ -1345,21 +1345,21 @@
$
(
"
#ChangeAmount
"
).
val
(
TotalPrice
).
attr
(
"
data-changeamount
"
,
TotalPrice
);
}
else
{
$
(
"
#Number
"
).
val
(
res
.
number
).
attr
(
"
data-defaultNumber
"
,
res
.
number
);
$
(
"
#OperTime
"
).
val
(
res
.
oper
t
imeStr
);
$
(
"
#LinkNumber
"
).
val
(
res
.
link
n
umber
);
//关联订单号
$
(
"
#AccountId
"
).
val
(
res
.
account
i
d
);
//账户Id
$
(
"
#DiscountLastMoney
"
).
val
(
res
.
discount
l
ast
m
oney
);
//优惠后金额
$
(
"
#ChangeAmount
"
).
val
(
res
.
change
a
mount
).
attr
(
"
data-changeamount
"
,
res
.
change
a
mount
);
$
(
"
#OperTime
"
).
val
(
res
.
oper
T
imeStr
);
$
(
"
#LinkNumber
"
).
val
(
res
.
link
N
umber
);
//关联订单号
$
(
"
#AccountId
"
).
val
(
res
.
account
I
d
);
//账户Id
$
(
"
#DiscountLastMoney
"
).
val
(
res
.
discount
L
ast
M
oney
);
//优惠后金额
$
(
"
#ChangeAmount
"
).
val
(
res
.
change
A
mount
).
attr
(
"
data-changeamount
"
,
res
.
change
A
mount
);
}
$
(
'
#OrganId
'
).
combobox
(
'
setValue
'
,
res
.
organ
i
d
);
$
(
"
#HandsPersonId
"
).
val
(
res
.
hands
p
erson
i
d
);
$
(
'
#OrganId
'
).
combobox
(
'
setValue
'
,
res
.
organ
I
d
);
$
(
"
#HandsPersonId
"
).
val
(
res
.
hands
P
erson
I
d
);
$
(
"
#Remark
"
).
val
(
res
.
remark
);
$
(
"
#Discount
"
).
val
(
res
.
discount
?
res
.
discount
:
0
);
$
(
"
#DiscountMoney
"
).
val
(
res
.
discount
m
oney
?
res
.
discount
m
oney
:
0
);
var
discountlastmoney
=
res
.
discount
l
ast
m
oney
?
res
.
discount
l
ast
m
oney
:
0
;
$
(
"
#Debt
"
).
val
(
discountlastmoney
-
res
.
change
a
mount
);
$
(
"
#AccountDay
"
).
val
(
res
.
account
d
ay
);
//结算天数
preTotalPrice
=
res
.
total
p
rice
;
//记录前一次合计金额,用于扣预付款
$
(
"
#DiscountMoney
"
).
val
(
res
.
discount
M
oney
?
res
.
discount
M
oney
:
0
);
var
discountlastmoney
=
res
.
discount
L
ast
M
oney
?
res
.
discount
L
ast
M
oney
:
0
;
$
(
"
#Debt
"
).
val
(
discountlastmoney
-
res
.
change
A
mount
);
$
(
"
#AccountDay
"
).
val
(
res
.
account
D
ay
);
//结算天数
preTotalPrice
=
res
.
total
P
rice
;
//记录前一次合计金额,用于扣预付款
oldNumber
=
res
.
number
;
//记录编辑前的单据编号
oldId
=
res
.
id
;
//记录单据Id
var
editTitle
=
listTitle
.
replace
(
"
列表
"
,
"
信息
"
);
...
...
@@ -1369,7 +1369,7 @@
if
(
listSubType
==
"
零售
"
){
var
option
=
""
;
if
(
res
.
pay
t
ype
===
"
预付款
"
){
if
(
res
.
pay
T
ype
===
"
预付款
"
){
option
=
'
<option value="预付款">预付款</option>
'
;
option
+=
'
<option value="现付">现付</option>
'
;
}
...
...
@@ -1380,8 +1380,8 @@
}
if
(
listSubType
===
"
销售
"
||
listSubType
===
"
销售退货
"
||
listSubType
===
"
销售订单
"
){
if
(
res
.
sales
m
an
){
var
arr
=
res
.
sales
m
an
.
split
(
"
,
"
);
if
(
res
.
sales
M
an
){
var
arr
=
res
.
sales
M
an
.
split
(
"
,
"
);
var
salesmanArray
=
[];
for
(
var
i
=
0
;
i
<
arr
.
length
;
i
++
){
if
(
arr
[
i
]){
...
...
@@ -1393,10 +1393,10 @@
}
//采购入库、销售出库的多账户加载
if
(
res
.
account
idl
ist
&&
res
.
account
m
oney
l
ist
){
if
(
res
.
account
IdL
ist
&&
res
.
account
M
oney
L
ist
){
$
(
"
#AccountId
"
).
val
(
"
many
"
);
//下拉框选中多账户
var
accountArr
=
res
.
account
idl
ist
.
split
(
"
,
"
);
var
accountMoneyArr
=
res
.
account
m
oney
l
ist
.
split
(
"
,
"
);
var
accountArr
=
res
.
account
IdL
ist
.
split
(
"
,
"
);
var
accountMoneyArr
=
res
.
account
M
oney
L
ist
.
split
(
"
,
"
);
accountMoneyArr
=
changeListFmtPlus
(
accountMoneyArr
)
//将数组单个金额中的数值转为正数
if
(
listSubType
==
"
零售
"
||
listSubType
==
"
零售退货
"
)
{
...
...
@@ -1423,10 +1423,10 @@
}
//采购入库、销售出库的费用数据加载
if
(
res
.
other
m
oney
l
ist
&&
res
.
other
m
oney
i
tem
){
$
(
"
#OtherMoney
"
).
val
(
res
.
other
m
oney
);
//其它费用
var
itemArr
=
res
.
other
m
oney
l
ist
.
split
(
"
,
"
);
var
itemMoneyArr
=
res
.
other
m
oney
i
tem
.
split
(
"
,
"
);
if
(
res
.
other
M
oney
L
ist
&&
res
.
other
M
oney
I
tem
){
$
(
"
#OtherMoney
"
).
val
(
res
.
other
M
oney
);
//其它费用
var
itemArr
=
res
.
other
M
oney
L
ist
.
split
(
"
,
"
);
var
itemMoneyArr
=
res
.
other
M
oney
I
tem
.
split
(
"
,
"
);
$
(
"
#OtherMoney
"
).
attr
(
"
data-itemArr
"
,
JSON
.
stringify
(
itemArr
)).
attr
(
"
data-itemMoneyArr
"
,
itemMoneyArr
);
//json数据存储
}
...
...
@@ -1439,15 +1439,15 @@
var
res
=
$
(
"
#tableData
"
).
datagrid
(
"
getRows
"
)[
index
];
var
manyAccountMoney
=
0
;
//多账户合计-零售
$
(
"
#NumberShow
"
).
text
(
res
.
number
);
$
(
"
#OperTimeShow
"
).
text
(
res
.
oper
t
imeStr
);
$
(
"
#OperTimeShow
"
).
text
(
res
.
oper
T
imeStr
);
$
(
'
#OrganIdShow
'
).
text
(
res
.
organName
);
$
(
"
#HandsPersonIdShow
"
).
text
(
res
.
handsPersonName
);
if
(
res
.
accountName
){
$
(
"
#AccountIdShow
"
).
text
(
res
.
accountName
);
//结算账户
}
else
{
if
(
res
.
account
idl
ist
)
{
var
accountArr
=
res
.
account
idl
ist
.
split
(
"
,
"
);
//账户id列表
var
accountMoneyArr
=
res
.
account
m
oney
l
ist
.
split
(
"
,
"
);
//账户金额列表
if
(
res
.
account
IdL
ist
)
{
var
accountArr
=
res
.
account
IdL
ist
.
split
(
"
,
"
);
//账户id列表
var
accountMoneyArr
=
res
.
account
M
oney
L
ist
.
split
(
"
,
"
);
//账户金额列表
var
accountIdShow
=
""
;
for
(
var
j
=
0
;
j
<
accountArr
.
length
;
j
++
)
{
if
(
accountList
!=
null
)
{
...
...
@@ -1467,26 +1467,26 @@
$
(
"
#AccountIdShow
"
).
text
(
accountIdShow
);
}
}
$
(
"
#ChangeAmountShow
"
).
text
(
res
.
change
a
mount
);
$
(
"
#ChangeAmountShow
"
).
text
(
res
.
change
A
mount
);
$
(
"
#RemarkShow
"
).
text
(
res
.
remark
);
$
(
"
#DiscountShow
"
).
text
(
res
.
discount
);
$
(
"
#DiscountMoneyShow
"
).
text
(
res
.
discount
m
oney
);
$
(
"
#DiscountLastMoneyShow
"
).
text
(
res
.
discount
l
ast
m
oney
);
$
(
"
#DiscountMoneyShow
"
).
text
(
res
.
discount
M
oney
);
$
(
"
#DiscountLastMoneyShow
"
).
text
(
res
.
discount
L
ast
M
oney
);
var
debt
=
0
;
if
(
res
.
other
m
oney
){
debt
=
(
res
.
discount
l
ast
m
oney
+
res
.
other
m
oney
-
res
.
change
a
mount
).
toFixed
(
2
);
if
(
res
.
other
M
oney
){
debt
=
(
res
.
discount
L
ast
M
oney
+
res
.
other
M
oney
-
res
.
change
A
mount
).
toFixed
(
2
);
}
else
{
debt
=
(
res
.
discount
l
ast
m
oney
-
res
.
change
a
mount
).
toFixed
(
2
);
debt
=
(
res
.
discount
L
ast
M
oney
-
res
.
change
A
mount
).
toFixed
(
2
);
}
$
(
"
#DebtShow
"
).
text
(
debt
);
$
(
"
#AccountDayShow
"
).
text
(
res
.
account
d
ay
);
//结算天数
$
(
"
#LinkNumberShow
"
).
text
(
res
.
link
n
umber
);
//关联订单号
var
otherMoney
=
res
.
other
m
oney
?
res
.
other
m
oney
:
0
;
if
(
otherMoney
!=
0
&&
res
.
other
m
oney
l
ist
&&
res
.
other
m
oney
i
tem
){
var
itemArr
=
res
.
other
m
oney
l
ist
.
split
(
"
,
"
);
//支出项目id列表
$
(
"
#AccountDayShow
"
).
text
(
res
.
account
D
ay
);
//结算天数
$
(
"
#LinkNumberShow
"
).
text
(
res
.
link
L
umber
);
//关联订单号
var
otherMoney
=
res
.
other
M
oney
?
res
.
other
M
oney
:
0
;
if
(
otherMoney
!=
0
&&
res
.
other
M
oney
L
ist
&&
res
.
other
M
oney
I
tem
){
var
itemArr
=
res
.
other
M
oney
L
ist
.
split
(
"
,
"
);
//支出项目id列表
var
itemMoneyArr
=
null
;
if
(
res
.
other
m
oney
i
tem
!=
null
)
{
itemMoneyArr
=
eval
(
"
(
"
+
res
.
other
m
oney
i
tem
+
"
)
"
);
//支出项目金额列表
if
(
res
.
other
M
oney
I
tem
!=
null
)
{
itemMoneyArr
=
eval
(
"
(
"
+
res
.
other
M
oney
I
tem
+
"
)
"
);
//支出项目金额列表
}
var
otherMoneyShow
=
""
;
for
(
var
j
=
0
;
j
<
itemArr
.
length
;
j
++
)
{
...
...
@@ -1512,8 +1512,8 @@
else
{
$
(
"
#OtherMoneyShow
"
).
text
(
otherMoney
);
//其它费用
}
$
(
"
#payTypeShow
"
).
text
(
res
.
pay
t
ype
);
var
TotalPrice
=
res
.
total
p
rice
;
$
(
"
#payTypeShow
"
).
text
(
res
.
pay
T
ype
);
var
TotalPrice
=
res
.
total
P
rice
;
var
showTitle
=
listTitle
.
replace
(
"
列表
"
,
"
信息
"
);
$
(
'
#depotHeadDlgShow
'
).
show
().
dialog
(
'
open
'
).
dialog
(
'
setTitle
'
,
'
<img src="/js/easyui/themes/icons/list.png"/> 查看
'
+
showTitle
);
$
(
"
.window-mask
"
).
css
({
width
:
webW
,
height
:
webH
});
...
...
@@ -1535,7 +1535,7 @@
}
if
(
listSubType
===
"
销售
"
||
listSubType
===
"
销售退货
"
||
listSubType
===
"
销售订单
"
){
if
(
res
.
salesman
){
var
arr
=
res
.
sales
m
an
.
split
(
"
,
"
);
var
arr
=
res
.
sales
M
an
.
split
(
"
,
"
);
var
salesmanStr
=
""
;
for
(
var
i
=
0
;
i
<
arr
.
length
;
i
++
){
if
(
arr
[
i
]){
...
...
erp_web/pages/manage/rolePushBtn.html
View file @
a4774016
...
...
@@ -138,7 +138,7 @@
if
(
res
&&
res
.
code
===
200
)
{
var
ubList
=
res
.
data
.
userBusinessList
;
userBusinessId
=
ubList
[
0
].
id
;
roleBtnStr
=
ubList
[
0
].
btn
s
tr
;
roleBtnStr
=
ubList
[
0
].
btn
S
tr
;
var
getValue
=
ubList
[
0
].
value
;
getValue
=
getValue
.
substring
(
1
,
getValue
.
length
-
1
);
if
(
getValue
.
indexOf
(
"
][
"
))
{
...
...
src/main/java/com/jsh/erp/controller/AccountItemController.java
View file @
a4774016
...
...
@@ -86,11 +86,11 @@ public class AccountItemController {
for
(
AccountItemVo4List
ai
:
dataList
)
{
JSONObject
item
=
new
JSONObject
();
item
.
put
(
"Id"
,
ai
.
getId
());
item
.
put
(
"AccountId"
,
ai
.
getAccount
i
d
());
item
.
put
(
"AccountId"
,
ai
.
getAccount
I
d
());
item
.
put
(
"AccountName"
,
ai
.
getAccountName
());
item
.
put
(
"InOutItemId"
,
ai
.
getIn
o
ut
i
tem
i
d
());
item
.
put
(
"InOutItemId"
,
ai
.
getIn
O
ut
I
tem
I
d
());
item
.
put
(
"InOutItemName"
,
ai
.
getInOutItemName
());
BigDecimal
eachAmount
=
ai
.
getEach
a
mount
();
BigDecimal
eachAmount
=
ai
.
getEach
A
mount
();
item
.
put
(
"EachAmount"
,
(
eachAmount
.
compareTo
(
BigDecimal
.
ZERO
))==-
1
?
BigDecimal
.
ZERO
.
subtract
(
eachAmount
):
eachAmount
);
item
.
put
(
"Remark"
,
ai
.
getRemark
());
dataArray
.
add
(
item
);
...
...
src/main/java/com/jsh/erp/controller/DepotItemController.java
View file @
a4774016
...
...
@@ -184,30 +184,30 @@ public class DepotItemController {
String
materialOther
=
getOtherInfo
(
mpArr
,
diEx
);
MaterialName
=
MaterialName
+
materialOther
+
((
diEx
.
getUnitName
()
==
null
||
diEx
.
getUnitName
().
equals
(
""
))
?
""
:
"("
+
diEx
.
getUnitName
()
+
")"
)
+
ratio
;
item
.
put
(
"MaterialName"
,
MaterialName
==
null
?
""
:
MaterialName
);
BigDecimal
stock
=
depotItemService
.
getStockByParam
(
diEx
.
getDepot
i
d
(),
diEx
.
getMaterial
i
d
(),
null
,
null
,
tenantId
);
BigDecimal
stock
=
depotItemService
.
getStockByParam
(
diEx
.
getDepot
I
d
(),
diEx
.
getMaterial
I
d
(),
null
,
null
,
tenantId
);
item
.
put
(
"Stock"
,
stock
);
item
.
put
(
"Unit"
,
diEx
.
getM
u
nit
());
item
.
put
(
"currentStock"
,
diEx
.
getOper
n
umber
().
add
(
stock
));
item
.
put
(
"OperNumber"
,
diEx
.
getOper
n
umber
());
item
.
put
(
"BasicNumber"
,
diEx
.
getBasic
n
umber
());
item
.
put
(
"UnitPrice"
,
diEx
.
getUnit
p
rice
());
item
.
put
(
"TaxUnitPrice"
,
diEx
.
getTax
u
nit
p
rice
());
item
.
put
(
"AllPrice"
,
diEx
.
getAll
p
rice
());
item
.
put
(
"Unit"
,
diEx
.
getM
aterialU
nit
());
item
.
put
(
"currentStock"
,
diEx
.
getOper
N
umber
().
add
(
stock
));
item
.
put
(
"OperNumber"
,
diEx
.
getOper
N
umber
());
item
.
put
(
"BasicNumber"
,
diEx
.
getBasic
N
umber
());
item
.
put
(
"UnitPrice"
,
diEx
.
getUnit
P
rice
());
item
.
put
(
"TaxUnitPrice"
,
diEx
.
getTax
U
nit
P
rice
());
item
.
put
(
"AllPrice"
,
diEx
.
getAll
P
rice
());
item
.
put
(
"Remark"
,
diEx
.
getRemark
());
item
.
put
(
"Img"
,
diEx
.
getImg
());
item
.
put
(
"DepotId"
,
diEx
.
getDepot
i
d
()
==
null
?
""
:
diEx
.
getDepot
i
d
());
item
.
put
(
"DepotName"
,
diEx
.
getDepot
i
d
()
==
null
?
""
:
diEx
.
getDepotName
());
item
.
put
(
"AnotherDepotId"
,
diEx
.
getAnother
d
epot
i
d
()
==
null
?
""
:
diEx
.
getAnother
d
epot
i
d
());
item
.
put
(
"AnotherDepotName"
,
diEx
.
getAnother
d
epot
i
d
()
==
null
?
""
:
diEx
.
getAnotherDepotName
());
item
.
put
(
"TaxRate"
,
diEx
.
getTax
r
ate
());
item
.
put
(
"TaxMoney"
,
diEx
.
getTax
m
oney
());
item
.
put
(
"TaxLastMoney"
,
diEx
.
getTax
l
ast
m
oney
());
item
.
put
(
"OtherField1"
,
diEx
.
getOther
f
ield1
());
item
.
put
(
"OtherField2"
,
diEx
.
getOther
f
ield2
());
item
.
put
(
"OtherField3"
,
diEx
.
getOther
f
ield3
());
item
.
put
(
"OtherField4"
,
diEx
.
getOther
f
ield4
());
item
.
put
(
"OtherField5"
,
diEx
.
getOther
f
ield5
());
item
.
put
(
"MType"
,
diEx
.
getM
t
ype
());
item
.
put
(
"DepotId"
,
diEx
.
getDepot
I
d
()
==
null
?
""
:
diEx
.
getDepot
I
d
());
item
.
put
(
"DepotName"
,
diEx
.
getDepot
I
d
()
==
null
?
""
:
diEx
.
getDepotName
());
item
.
put
(
"AnotherDepotId"
,
diEx
.
getAnother
D
epot
I
d
()
==
null
?
""
:
diEx
.
getAnother
D
epot
I
d
());
item
.
put
(
"AnotherDepotName"
,
diEx
.
getAnother
D
epot
I
d
()
==
null
?
""
:
diEx
.
getAnotherDepotName
());
item
.
put
(
"TaxRate"
,
diEx
.
getTax
R
ate
());
item
.
put
(
"TaxMoney"
,
diEx
.
getTax
M
oney
());
item
.
put
(
"TaxLastMoney"
,
diEx
.
getTax
L
ast
M
oney
());
item
.
put
(
"OtherField1"
,
diEx
.
getOther
F
ield1
());
item
.
put
(
"OtherField2"
,
diEx
.
getOther
F
ield2
());
item
.
put
(
"OtherField3"
,
diEx
.
getOther
F
ield3
());
item
.
put
(
"OtherField4"
,
diEx
.
getOther
F
ield4
());
item
.
put
(
"OtherField5"
,
diEx
.
getOther
F
ield5
());
item
.
put
(
"MType"
,
diEx
.
getM
aterialT
ype
());
item
.
put
(
"op"
,
1
);
dataArray
.
add
(
item
);
}
...
...
@@ -332,10 +332,10 @@ public class DepotItemController {
* 导出excel表格
* @param currentPage
* @param pageSize
* @param
projec
tId
* @param
depo
tId
* @param monthTime
* @param
headIds
* @param m
aterialIds
* @param
name
* @param m
odel
* @param request
* @param response
* @return
...
...
@@ -384,10 +384,10 @@ public class DepotItemController {
/**
* 统计总计金额
* @param
pi
d
* @param
depotI
d
* @param monthTime
* @param
headIds
* @param m
aterialIds
* @param
name
* @param m
odel
* @param request
* @return
*/
...
...
@@ -429,8 +429,8 @@ public class DepotItemController {
* @param currentPage
* @param pageSize
* @param monthTime
* @param
headIds
* @param m
aterialIds
* @param
name
* @param m
odel
* @param mpList
* @param request
* @return
...
...
@@ -492,8 +492,8 @@ public class DepotItemController {
* @param currentPage
* @param pageSize
* @param monthTime
* @param
headIds
* @param m
aterialIds
* @param
name
* @param m
odel
* @param mpList
* @param request
* @return
...
...
@@ -648,7 +648,6 @@ public class DepotItemController {
* @param currentPage
* @param pageSize
* @param projectId
* @param monthTime
* @param request
* @param response
* @return
...
...
src/main/java/com/jsh/erp/controller/MaterialController.java
View file @
a4774016
...
...
@@ -153,7 +153,7 @@ public class MaterialController {
JSONObject
item
=
new
JSONObject
();
item
.
put
(
"Id"
,
material
.
getMeId
());
//商品扩展表的id
String
ratio
;
//比例
if
(
material
.
getUnit
i
d
()
==
null
||
material
.
getUnit
i
d
().
equals
(
""
))
{
if
(
material
.
getUnit
I
d
()
==
null
||
material
.
getUnit
I
d
().
equals
(
""
))
{
ratio
=
""
;
}
else
{
ratio
=
material
.
getUnitName
();
...
...
@@ -178,13 +178,13 @@ public class MaterialController {
expand
=
expand
+
((
material
.
getMfrs
()
==
null
||
material
.
getMfrs
().
equals
(
""
))
?
""
:
"("
+
material
.
getMfrs
()
+
")"
);
}
if
(
mpArr
[
i
].
equals
(
"自定义1"
))
{
expand
=
expand
+
((
material
.
getOther
f
ield1
()
==
null
||
material
.
getOther
f
ield1
().
equals
(
""
))
?
""
:
"("
+
material
.
getOther
f
ield1
()
+
")"
);
expand
=
expand
+
((
material
.
getOther
F
ield1
()
==
null
||
material
.
getOther
F
ield1
().
equals
(
""
))
?
""
:
"("
+
material
.
getOther
F
ield1
()
+
")"
);
}
if
(
mpArr
[
i
].
equals
(
"自定义2"
))
{
expand
=
expand
+
((
material
.
getOther
f
ield2
()
==
null
||
material
.
getOther
f
ield2
().
equals
(
""
))
?
""
:
"("
+
material
.
getOther
f
ield2
()
+
")"
);
expand
=
expand
+
((
material
.
getOther
F
ield2
()
==
null
||
material
.
getOther
F
ield2
().
equals
(
""
))
?
""
:
"("
+
material
.
getOther
F
ield2
()
+
")"
);
}
if
(
mpArr
[
i
].
equals
(
"自定义3"
))
{
expand
=
expand
+
((
material
.
getOther
f
ield3
()
==
null
||
material
.
getOther
f
ield3
().
equals
(
""
))
?
""
:
"("
+
material
.
getOther
f
ield3
()
+
")"
);
expand
=
expand
+
((
material
.
getOther
F
ield3
()
==
null
||
material
.
getOther
F
ield3
().
equals
(
""
))
?
""
:
"("
+
material
.
getOther
F
ield3
()
+
")"
);
}
}
MaterialName
=
MaterialName
+
expand
+
((
material
.
getCommodityUnit
()
==
null
||
material
.
getCommodityUnit
().
equals
(
""
))
?
""
:
"("
+
material
.
getCommodityUnit
()
+
")"
)
+
ratio
;
...
...
@@ -229,7 +229,7 @@ public class MaterialController {
MaterialVo4Unit
material
=
materialList
.
get
(
0
);
item
.
put
(
"Id"
,
material
.
getMeId
());
//商品扩展表的id
String
ratio
;
//比例
if
(
material
.
getUnit
i
d
()
==
null
||
material
.
getUnit
i
d
().
equals
(
""
))
{
if
(
material
.
getUnit
I
d
()
==
null
||
material
.
getUnit
I
d
().
equals
(
""
))
{
ratio
=
""
;
}
else
{
ratio
=
material
.
getUnitName
();
...
...
@@ -248,13 +248,13 @@ public class MaterialController {
expand
=
expand
+
((
material
.
getMfrs
()
==
null
||
material
.
getMfrs
().
equals
(
""
))
?
""
:
"("
+
material
.
getMfrs
()
+
")"
);
}
if
(
mpArr
[
i
].
equals
(
"自定义1"
))
{
expand
=
expand
+
((
material
.
getOther
f
ield1
()
==
null
||
material
.
getOther
f
ield1
().
equals
(
""
))
?
""
:
"("
+
material
.
getOther
f
ield1
()
+
")"
);
expand
=
expand
+
((
material
.
getOther
F
ield1
()
==
null
||
material
.
getOther
F
ield1
().
equals
(
""
))
?
""
:
"("
+
material
.
getOther
F
ield1
()
+
")"
);
}
if
(
mpArr
[
i
].
equals
(
"自定义2"
))
{
expand
=
expand
+
((
material
.
getOther
f
ield2
()
==
null
||
material
.
getOther
f
ield2
().
equals
(
""
))
?
""
:
"("
+
material
.
getOther
f
ield2
()
+
")"
);
expand
=
expand
+
((
material
.
getOther
F
ield2
()
==
null
||
material
.
getOther
F
ield2
().
equals
(
""
))
?
""
:
"("
+
material
.
getOther
F
ield2
()
+
")"
);
}
if
(
mpArr
[
i
].
equals
(
"自定义3"
))
{
expand
=
expand
+
((
material
.
getOther
f
ield3
()
==
null
||
material
.
getOther
f
ield3
().
equals
(
""
))
?
""
:
"("
+
material
.
getOther
f
ield3
()
+
")"
);
expand
=
expand
+
((
material
.
getOther
F
ield3
()
==
null
||
material
.
getOther
F
ield3
().
equals
(
""
))
?
""
:
"("
+
material
.
getOther
F
ield3
()
+
")"
);
}
}
MaterialName
=
MaterialName
+
expand
+
((
material
.
getUnit
()
==
null
||
material
.
getUnit
().
equals
(
""
))
?
""
:
"("
+
material
.
getUnit
()
+
")"
)
+
ratio
;
...
...
@@ -297,7 +297,7 @@ public class MaterialController {
objs
[
0
]
=
m
.
getName
();
objs
[
1
]
=
m
.
getCategoryName
();
objs
[
2
]
=
m
.
getModel
();
objs
[
3
]
=
m
.
getSafety
s
tock
()
==
null
?
""
:
m
.
getSafety
s
tock
().
toString
();
objs
[
3
]
=
m
.
getSafety
S
tock
()
==
null
?
""
:
m
.
getSafety
S
tock
().
toString
();
objs
[
4
]
=
m
.
getCommodityUnit
();
objs
[
5
]
=
m
.
getCommodityDecimal
()
==
null
?
""
:
m
.
getCommodityDecimal
().
toString
();
objs
[
6
]
=
m
.
getLowDecimal
()
==
null
?
""
:
m
.
getLowDecimal
().
toString
();
...
...
src/main/java/com/jsh/erp/controller/SupplierController.java
View file @
a4774016
...
...
@@ -154,7 +154,7 @@ public class SupplierController {
item
.
put
(
"id"
,
supplier
.
getId
());
//客户名称
item
.
put
(
"supplier"
,
supplier
.
getSupplier
());
item
.
put
(
"advanceIn"
,
supplier
.
getAdvance
i
n
());
//预付款金额
item
.
put
(
"advanceIn"
,
supplier
.
getAdvance
I
n
());
//预付款金额
dataArray
.
add
(
item
);
}
}
...
...
@@ -186,11 +186,11 @@ public class SupplierController {
item
.
put
(
"supplier"
,
supplier
.
getSupplier
());
item
.
put
(
"type"
,
supplier
.
getType
());
item
.
put
(
"contacts"
,
supplier
.
getContacts
());
item
.
put
(
"phonenum"
,
supplier
.
getPhone
n
um
());
item
.
put
(
"phonenum"
,
supplier
.
getPhone
N
um
());
item
.
put
(
"email"
,
supplier
.
getEmail
());
item
.
put
(
"AdvanceIn"
,
supplier
.
getAdvance
i
n
());
item
.
put
(
"BeginNeedGet"
,
supplier
.
getBegin
n
eed
g
et
());
item
.
put
(
"BeginNeedPay"
,
supplier
.
getBegin
n
eed
p
ay
());
item
.
put
(
"AdvanceIn"
,
supplier
.
getAdvance
I
n
());
item
.
put
(
"BeginNeedGet"
,
supplier
.
getBegin
N
eed
G
et
());
item
.
put
(
"BeginNeedPay"
,
supplier
.
getBegin
N
eed
P
ay
());
/**
* 2018-01-28这里会有空指针异常
* */
...
...
@@ -201,10 +201,10 @@ public class SupplierController {
item
.
put
(
"fax"
,
supplier
.
getFax
());
item
.
put
(
"telephone"
,
supplier
.
getTelephone
());
item
.
put
(
"address"
,
supplier
.
getAddress
());
item
.
put
(
"taxNum"
,
supplier
.
getTax
n
um
());
item
.
put
(
"bankName"
,
supplier
.
getBank
n
ame
());
item
.
put
(
"accountNumber"
,
supplier
.
getAccount
n
umber
());
item
.
put
(
"taxRate"
,
supplier
.
getTax
r
ate
());
item
.
put
(
"taxNum"
,
supplier
.
getTax
N
um
());
item
.
put
(
"bankName"
,
supplier
.
getBank
N
ame
());
item
.
put
(
"accountNumber"
,
supplier
.
getAccount
N
umber
());
item
.
put
(
"taxRate"
,
supplier
.
getTax
R
ate
());
item
.
put
(
"enabled"
,
supplier
.
getEnabled
());
dataArray
.
add
(
item
);
}
...
...
@@ -315,19 +315,19 @@ public class SupplierController {
objs
[
0
]
=
s
.
getSupplier
();
objs
[
1
]
=
s
.
getType
();
objs
[
2
]
=
s
.
getContacts
();
objs
[
3
]
=
s
.
getPhone
n
um
();
objs
[
3
]
=
s
.
getPhone
N
um
();
objs
[
4
]
=
s
.
getEmail
();
objs
[
5
]
=
s
.
getAdvance
i
n
()
==
null
?
""
:
s
.
getAdvance
i
n
().
toString
();
objs
[
6
]
=
s
.
getBegin
n
eed
g
et
()
==
null
?
""
:
s
.
getBegin
n
eed
g
et
().
toString
();
objs
[
7
]
=
s
.
getBegin
n
eed
p
ay
()
==
null
?
""
:
s
.
getBegin
n
eed
p
ay
().
toString
();
objs
[
5
]
=
s
.
getAdvance
I
n
()
==
null
?
""
:
s
.
getAdvance
I
n
().
toString
();
objs
[
6
]
=
s
.
getBegin
N
eed
G
et
()
==
null
?
""
:
s
.
getBegin
N
eed
G
et
().
toString
();
objs
[
7
]
=
s
.
getBegin
N
eed
P
ay
()
==
null
?
""
:
s
.
getBegin
N
eed
P
ay
().
toString
();
objs
[
8
]
=
s
.
getDescription
();
objs
[
9
]
=
s
.
getFax
();
objs
[
10
]
=
s
.
getTelephone
();
objs
[
11
]
=
s
.
getAddress
();
objs
[
12
]
=
s
.
getTax
n
um
();
objs
[
13
]
=
s
.
getBank
n
ame
();
objs
[
14
]
=
s
.
getAccount
n
umber
();
objs
[
15
]
=
s
.
getTax
r
ate
()
==
null
?
""
:
s
.
getTax
r
ate
().
toString
();
objs
[
12
]
=
s
.
getTax
N
um
();
objs
[
13
]
=
s
.
getBank
N
ame
();
objs
[
14
]
=
s
.
getAccount
N
umber
();
objs
[
15
]
=
s
.
getTax
R
ate
()
==
null
?
""
:
s
.
getTax
R
ate
().
toString
();
objs
[
16
]
=
s
.
getEnabled
()
?
"启用"
:
"禁用"
;
objects
.
add
(
objs
);
}
...
...
@@ -404,19 +404,19 @@ public class SupplierController {
s
.
setSupplier
(
ExcelUtils
.
getContent
(
src
,
i
,
0
));
s
.
setType
(
ExcelUtils
.
getContent
(
src
,
i
,
1
));
s
.
setContacts
(
ExcelUtils
.
getContent
(
src
,
i
,
2
));
s
.
setPhone
n
um
(
ExcelUtils
.
getContent
(
src
,
i
,
3
));
s
.
setPhone
N
um
(
ExcelUtils
.
getContent
(
src
,
i
,
3
));
s
.
setEmail
(
ExcelUtils
.
getContent
(
src
,
i
,
4
));
s
.
setAdvance
i
n
(
parseBigDecimalEx
(
ExcelUtils
.
getContent
(
src
,
i
,
5
)));
s
.
setBegin
n
eed
g
et
(
parseBigDecimalEx
(
ExcelUtils
.
getContent
(
src
,
i
,
6
)));
s
.
setBegin
n
eed
p
ay
(
parseBigDecimalEx
(
ExcelUtils
.
getContent
(
src
,
i
,
7
)));
s
.
setAdvance
I
n
(
parseBigDecimalEx
(
ExcelUtils
.
getContent
(
src
,
i
,
5
)));
s
.
setBegin
N
eed
G
et
(
parseBigDecimalEx
(
ExcelUtils
.
getContent
(
src
,
i
,
6
)));
s
.
setBegin
N
eed
P
ay
(
parseBigDecimalEx
(
ExcelUtils
.
getContent
(
src
,
i
,
7
)));
s
.
setDescription
(
ExcelUtils
.
getContent
(
src
,
i
,
8
));
s
.
setFax
(
ExcelUtils
.
getContent
(
src
,
i
,
9
));
s
.
setTelephone
(
ExcelUtils
.
getContent
(
src
,
i
,
10
));
s
.
setAddress
(
ExcelUtils
.
getContent
(
src
,
i
,
11
));
s
.
setTax
n
um
(
ExcelUtils
.
getContent
(
src
,
i
,
12
));
s
.
setBank
n
ame
(
ExcelUtils
.
getContent
(
src
,
i
,
13
));
s
.
setAccount
n
umber
(
ExcelUtils
.
getContent
(
src
,
i
,
14
));
s
.
setTax
r
ate
(
parseBigDecimalEx
(
ExcelUtils
.
getContent
(
src
,
i
,
15
)));
s
.
setTax
N
um
(
ExcelUtils
.
getContent
(
src
,
i
,
12
));
s
.
setBank
N
ame
(
ExcelUtils
.
getContent
(
src
,
i
,
13
));
s
.
setAccount
N
umber
(
ExcelUtils
.
getContent
(
src
,
i
,
14
));
s
.
setTax
R
ate
(
parseBigDecimalEx
(
ExcelUtils
.
getContent
(
src
,
i
,
15
)));
String
enabled
=
ExcelUtils
.
getContent
(
src
,
i
,
16
);
s
.
setEnabled
(
enabled
.
equals
(
"启用"
)?
true
:
false
);
s
.
setIsystem
(
Byte
.
parseByte
(
"1"
));
...
...
src/main/java/com/jsh/erp/datasource/entities/AccountHead.java
View file @
a4774016
...
...
@@ -4,386 +4,122 @@ import java.math.BigDecimal;
import
java.util.Date
;
public
class
AccountHead
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accounthead.Id
*
* @mbggenerated
*/
private
Long
id
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accounthead.Type
*
* @mbggenerated
*/
private
String
type
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accounthead.OrganId
*
* @mbggenerated
*/
private
Long
organid
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accounthead.HandsPersonId
*
* @mbggenerated
*/
private
Long
handspersonid
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accounthead.ChangeAmount
*
* @mbggenerated
*/
private
BigDecimal
changeamount
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accounthead.TotalPrice
*
* @mbggenerated
*/
private
BigDecimal
totalprice
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accounthead.AccountId
*
* @mbggenerated
*/
private
Long
accountid
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accounthead.BillNo
*
* @mbggenerated
*/
private
String
billno
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accounthead.BillTime
*
* @mbggenerated
*/
private
Date
billtime
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accounthead.Remark
*
* @mbggenerated
*/
private
Long
organId
;
private
Long
handsPersonId
;
private
BigDecimal
changeAmount
;
private
BigDecimal
totalPrice
;
private
Long
accountId
;
private
String
billNo
;
private
Date
billTime
;
private
String
remark
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accounthead.tenant_id
*
* @mbggenerated
*/
private
Long
tenantId
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accounthead.delete_Flag
*
* @mbggenerated
*/
private
String
deleteFlag
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accounthead.Id
*
* @return the value of jsh_accounthead.Id
*
* @mbggenerated
*/
public
Long
getId
()
{
return
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accounthead.Id
*
* @param id the value for jsh_accounthead.Id
*
* @mbggenerated
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accounthead.Type
*
* @return the value of jsh_accounthead.Type
*
* @mbggenerated
*/
public
String
getType
()
{
return
type
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accounthead.Type
*
* @param type the value for jsh_accounthead.Type
*
* @mbggenerated
*/
public
void
setType
(
String
type
)
{
this
.
type
=
type
==
null
?
null
:
type
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accounthead.OrganId
*
* @return the value of jsh_accounthead.OrganId
*
* @mbggenerated
*/
public
Long
getOrganid
()
{
return
organid
;
public
Long
getOrganId
()
{
return
organId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accounthead.OrganId
*
* @param organid the value for jsh_accounthead.OrganId
*
* @mbggenerated
*/
public
void
setOrganid
(
Long
organid
)
{
this
.
organid
=
organid
;
public
void
setOrganId
(
Long
organId
)
{
this
.
organId
=
organId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accounthead.HandsPersonId
*
* @return the value of jsh_accounthead.HandsPersonId
*
* @mbggenerated
*/
public
Long
getHandspersonid
()
{
return
handspersonid
;
public
Long
getHandsPersonId
()
{
return
handsPersonId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accounthead.HandsPersonId
*
* @param handspersonid the value for jsh_accounthead.HandsPersonId
*
* @mbggenerated
*/
public
void
setHandspersonid
(
Long
handspersonid
)
{
this
.
handspersonid
=
handspersonid
;
public
void
setHandsPersonId
(
Long
handsPersonId
)
{
this
.
handsPersonId
=
handsPersonId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accounthead.ChangeAmount
*
* @return the value of jsh_accounthead.ChangeAmount
*
* @mbggenerated
*/
public
BigDecimal
getChangeamount
()
{
return
changeamount
;
public
BigDecimal
getChangeAmount
()
{
return
changeAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accounthead.ChangeAmount
*
* @param changeamount the value for jsh_accounthead.ChangeAmount
*
* @mbggenerated
*/
public
void
setChangeamount
(
BigDecimal
changeamount
)
{
this
.
changeamount
=
changeamount
;
public
void
setChangeAmount
(
BigDecimal
changeAmount
)
{
this
.
changeAmount
=
changeAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accounthead.TotalPrice
*
* @return the value of jsh_accounthead.TotalPrice
*
* @mbggenerated
*/
public
BigDecimal
getTotalprice
()
{
return
totalprice
;
public
BigDecimal
getTotalPrice
()
{
return
totalPrice
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accounthead.TotalPrice
*
* @param totalprice the value for jsh_accounthead.TotalPrice
*
* @mbggenerated
*/
public
void
setTotalprice
(
BigDecimal
totalprice
)
{
this
.
totalprice
=
totalprice
;
public
void
setTotalPrice
(
BigDecimal
totalPrice
)
{
this
.
totalPrice
=
totalPrice
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accounthead.AccountId
*
* @return the value of jsh_accounthead.AccountId
*
* @mbggenerated
*/
public
Long
getAccountid
()
{
return
accountid
;
public
Long
getAccountId
()
{
return
accountId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accounthead.AccountId
*
* @param accountid the value for jsh_accounthead.AccountId
*
* @mbggenerated
*/
public
void
setAccountid
(
Long
accountid
)
{
this
.
accountid
=
accountid
;
public
void
setAccountId
(
Long
accountId
)
{
this
.
accountId
=
accountId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accounthead.BillNo
*
* @return the value of jsh_accounthead.BillNo
*
* @mbggenerated
*/
public
String
getBillno
()
{
return
billno
;
public
String
getBillNo
()
{
return
billNo
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accounthead.BillNo
*
* @param billno the value for jsh_accounthead.BillNo
*
* @mbggenerated
*/
public
void
setBillno
(
String
billno
)
{
this
.
billno
=
billno
==
null
?
null
:
billno
.
trim
();
public
void
setBillNo
(
String
billNo
)
{
this
.
billNo
=
billNo
==
null
?
null
:
billNo
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accounthead.BillTime
*
* @return the value of jsh_accounthead.BillTime
*
* @mbggenerated
*/
public
Date
getBilltime
()
{
return
billtime
;
public
Date
getBillTime
()
{
return
billTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accounthead.BillTime
*
* @param billtime the value for jsh_accounthead.BillTime
*
* @mbggenerated
*/
public
void
setBilltime
(
Date
billtime
)
{
this
.
billtime
=
billtime
;
public
void
setBillTime
(
Date
billTime
)
{
this
.
billTime
=
billTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accounthead.Remark
*
* @return the value of jsh_accounthead.Remark
*
* @mbggenerated
*/
public
String
getRemark
()
{
return
remark
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accounthead.Remark
*
* @param remark the value for jsh_accounthead.Remark
*
* @mbggenerated
*/
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
==
null
?
null
:
remark
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accounthead.tenant_id
*
* @return the value of jsh_accounthead.tenant_id
*
* @mbggenerated
*/
public
Long
getTenantId
()
{
return
tenantId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accounthead.tenant_id
*
* @param tenantId the value for jsh_accounthead.tenant_id
*
* @mbggenerated
*/
public
void
setTenantId
(
Long
tenantId
)
{
this
.
tenantId
=
tenantId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accounthead.delete_Flag
*
* @return the value of jsh_accounthead.delete_Flag
*
* @mbggenerated
*/
public
String
getDeleteFlag
()
{
return
deleteFlag
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accounthead.delete_Flag
*
* @param deleteFlag the value for jsh_accounthead.delete_Flag
*
* @mbggenerated
*/
public
void
setDeleteFlag
(
String
deleteFlag
)
{
this
.
deleteFlag
=
deleteFlag
==
null
?
null
:
deleteFlag
.
trim
();
}
...
...
src/main/java/com/jsh/erp/datasource/entities/AccountHeadExample.java
View file @
a4774016
This diff is collapsed.
Click to expand it.
src/main/java/com/jsh/erp/datasource/entities/AccountHeadVo4ListEx.java
View file @
a4774016
...
...
@@ -9,19 +9,19 @@ public class AccountHeadVo4ListEx {
private
String
type
;
private
Long
organ
i
d
;
private
Long
organ
I
d
;
private
Long
hands
p
erson
i
d
;
private
Long
hands
P
erson
I
d
;
private
BigDecimal
change
a
mount
;
private
BigDecimal
change
A
mount
;
private
BigDecimal
total
p
rice
;
private
BigDecimal
total
P
rice
;
private
Long
account
i
d
;
private
Long
account
I
d
;
private
String
bill
n
o
;
private
String
bill
N
o
;
private
Date
bill
t
ime
;
private
Date
bill
T
ime
;
private
String
remark
;
...
...
@@ -29,11 +29,11 @@ public class AccountHeadVo4ListEx {
private
String
deleteFlag
;
private
String
organ
n
ame
;
private
String
organ
N
ame
;
private
String
hands
p
erson
n
ame
;
private
String
hands
P
erson
N
ame
;
private
String
account
n
ame
;
private
String
account
N
ame
;
private
String
billTimeStr
;
...
...
@@ -53,60 +53,60 @@ public class AccountHeadVo4ListEx {
this
.
type
=
type
;
}
public
Long
getOrgan
i
d
()
{
return
organ
i
d
;
public
Long
getOrgan
I
d
()
{
return
organ
I
d
;
}
public
void
setOrgan
i
d
(
Long
organ
i
d
)
{
this
.
organ
i
d
=
organ
i
d
;
public
void
setOrgan
I
d
(
Long
organ
I
d
)
{
this
.
organ
I
d
=
organ
I
d
;
}
public
Long
getHands
p
erson
i
d
()
{
return
hands
p
erson
i
d
;
public
Long
getHands
P
erson
I
d
()
{
return
hands
P
erson
I
d
;
}
public
void
setHands
p
erson
i
d
(
Long
hands
p
erson
i
d
)
{
this
.
hands
p
erson
i
d
=
hands
p
erson
i
d
;
public
void
setHands
P
erson
I
d
(
Long
hands
P
erson
I
d
)
{
this
.
hands
P
erson
I
d
=
hands
P
erson
I
d
;
}
public
BigDecimal
getChange
a
mount
()
{
return
change
a
mount
;
public
BigDecimal
getChange
A
mount
()
{
return
change
A
mount
;
}
public
void
setChange
a
mount
(
BigDecimal
change
a
mount
)
{
this
.
change
a
mount
=
change
a
mount
;
public
void
setChange
A
mount
(
BigDecimal
change
A
mount
)
{
this
.
change
A
mount
=
change
A
mount
;
}
public
BigDecimal
getTotal
p
rice
()
{
return
total
p
rice
;
public
BigDecimal
getTotal
P
rice
()
{
return
total
P
rice
;
}
public
void
setTotal
p
rice
(
BigDecimal
total
p
rice
)
{
this
.
total
p
rice
=
total
p
rice
;
public
void
setTotal
P
rice
(
BigDecimal
total
P
rice
)
{
this
.
total
P
rice
=
total
P
rice
;
}
public
Long
getAccount
i
d
()
{
return
account
i
d
;
public
Long
getAccount
I
d
()
{
return
account
I
d
;
}
public
void
setAccount
i
d
(
Long
account
i
d
)
{
this
.
account
i
d
=
account
i
d
;
public
void
setAccount
I
d
(
Long
account
I
d
)
{
this
.
account
I
d
=
account
I
d
;
}
public
String
getBill
n
o
()
{
return
bill
n
o
;
public
String
getBill
N
o
()
{
return
bill
N
o
;
}
public
void
setBill
n
o
(
String
bill
n
o
)
{
this
.
bill
n
o
=
bill
n
o
;
public
void
setBill
N
o
(
String
bill
N
o
)
{
this
.
bill
N
o
=
bill
N
o
;
}
public
Date
getBill
t
ime
()
{
return
bill
t
ime
;
public
Date
getBill
T
ime
()
{
return
bill
T
ime
;
}
public
void
setBill
t
ime
(
Date
bill
t
ime
)
{
this
.
bill
t
ime
=
bill
t
ime
;
public
void
setBill
T
ime
(
Date
bill
T
ime
)
{
this
.
bill
T
ime
=
bill
T
ime
;
}
public
String
getRemark
()
{
...
...
@@ -133,28 +133,28 @@ public class AccountHeadVo4ListEx {
this
.
deleteFlag
=
deleteFlag
;
}
public
String
getOrgan
n
ame
()
{
return
organ
n
ame
;
public
String
getOrgan
N
ame
()
{
return
organ
N
ame
;
}
public
void
setOrgan
n
ame
(
String
organ
n
ame
)
{
this
.
organ
n
ame
=
organ
n
ame
;
public
void
setOrgan
N
ame
(
String
organ
N
ame
)
{
this
.
organ
N
ame
=
organ
N
ame
;
}
public
String
getHands
p
erson
n
ame
()
{
return
hands
p
erson
n
ame
;
public
String
getHands
P
erson
N
ame
()
{
return
hands
P
erson
N
ame
;
}
public
void
setHands
p
erson
n
ame
(
String
hands
p
erson
n
ame
)
{
this
.
hands
p
erson
n
ame
=
hands
p
erson
n
ame
;
public
void
setHands
P
erson
N
ame
(
String
hands
P
erson
N
ame
)
{
this
.
hands
P
erson
N
ame
=
hands
P
erson
N
ame
;
}
public
String
getAccount
n
ame
()
{
return
account
n
ame
;
public
String
getAccount
N
ame
()
{
return
account
N
ame
;
}
public
void
setAccount
n
ame
(
String
account
n
ame
)
{
this
.
account
n
ame
=
account
n
ame
;
public
void
setAccount
N
ame
(
String
account
N
ame
)
{
this
.
account
N
ame
=
account
N
ame
;
}
public
String
getBillTimeStr
()
{
...
...
src/main/java/com/jsh/erp/datasource/entities/AccountItem.java
View file @
a4774016
...
...
@@ -3,258 +3,82 @@ package com.jsh.erp.datasource.entities;
import
java.math.BigDecimal
;
public
class
AccountItem
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accountitem.Id
*
* @mbggenerated
*/
private
Long
id
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accountitem.HeaderId
*
* @mbggenerated
*/
private
Long
headerid
;
private
Long
headerId
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accountitem.AccountId
*
* @mbggenerated
*/
private
Long
accountid
;
private
Long
accountId
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accountitem.InOutItemId
*
* @mbggenerated
*/
private
Long
inoutitemid
;
private
Long
inOutItemId
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accountitem.EachAmount
*
* @mbggenerated
*/
private
BigDecimal
eachamount
;
private
BigDecimal
eachAmount
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accountitem.Remark
*
* @mbggenerated
*/
private
String
remark
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accountitem.tenant_id
*
* @mbggenerated
*/
private
Long
tenantId
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accountitem.delete_Flag
*
* @mbggenerated
*/
private
String
deleteFlag
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accountitem.Id
*
* @return the value of jsh_accountitem.Id
*
* @mbggenerated
*/
public
Long
getId
()
{
return
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accountitem.Id
*
* @param id the value for jsh_accountitem.Id
*
* @mbggenerated
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accountitem.HeaderId
*
* @return the value of jsh_accountitem.HeaderId
*
* @mbggenerated
*/
public
Long
getHeaderid
()
{
return
headerid
;
public
Long
getHeaderId
()
{
return
headerId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accountitem.HeaderId
*
* @param headerid the value for jsh_accountitem.HeaderId
*
* @mbggenerated
*/
public
void
setHeaderid
(
Long
headerid
)
{
this
.
headerid
=
headerid
;
public
void
setHeaderId
(
Long
headerId
)
{
this
.
headerId
=
headerId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accountitem.AccountId
*
* @return the value of jsh_accountitem.AccountId
*
* @mbggenerated
*/
public
Long
getAccountid
()
{
return
accountid
;
public
Long
getAccountId
()
{
return
accountId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accountitem.AccountId
*
* @param accountid the value for jsh_accountitem.AccountId
*
* @mbggenerated
*/
public
void
setAccountid
(
Long
accountid
)
{
this
.
accountid
=
accountid
;
public
void
setAccountId
(
Long
accountId
)
{
this
.
accountId
=
accountId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accountitem.InOutItemId
*
* @return the value of jsh_accountitem.InOutItemId
*
* @mbggenerated
*/
public
Long
getInoutitemid
()
{
return
inoutitemid
;
public
Long
getInOutItemId
()
{
return
inOutItemId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accountitem.InOutItemId
*
* @param inoutitemid the value for jsh_accountitem.InOutItemId
*
* @mbggenerated
*/
public
void
setInoutitemid
(
Long
inoutitemid
)
{
this
.
inoutitemid
=
inoutitemid
;
public
void
setInOutItemId
(
Long
inOutItemId
)
{
this
.
inOutItemId
=
inOutItemId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accountitem.EachAmount
*
* @return the value of jsh_accountitem.EachAmount
*
* @mbggenerated
*/
public
BigDecimal
getEachamount
()
{
return
eachamount
;
public
BigDecimal
getEachAmount
()
{
return
eachAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accountitem.EachAmount
*
* @param eachamount the value for jsh_accountitem.EachAmount
*
* @mbggenerated
*/
public
void
setEachamount
(
BigDecimal
eachamount
)
{
this
.
eachamount
=
eachamount
;
public
void
setEachAmount
(
BigDecimal
eachAmount
)
{
this
.
eachAmount
=
eachAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accountitem.Remark
*
* @return the value of jsh_accountitem.Remark
*
* @mbggenerated
*/
public
String
getRemark
()
{
return
remark
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accountitem.Remark
*
* @param remark the value for jsh_accountitem.Remark
*
* @mbggenerated
*/
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
==
null
?
null
:
remark
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accountitem.tenant_id
*
* @return the value of jsh_accountitem.tenant_id
*
* @mbggenerated
*/
public
Long
getTenantId
()
{
return
tenantId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accountitem.tenant_id
*
* @param tenantId the value for jsh_accountitem.tenant_id
*
* @mbggenerated
*/
public
void
setTenantId
(
Long
tenantId
)
{
this
.
tenantId
=
tenantId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accountitem.delete_Flag
*
* @return the value of jsh_accountitem.delete_Flag
*
* @mbggenerated
*/
public
String
getDeleteFlag
()
{
return
deleteFlag
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accountitem.delete_Flag
*
* @param deleteFlag the value for jsh_accountitem.delete_Flag
*
* @mbggenerated
*/
public
void
setDeleteFlag
(
String
deleteFlag
)
{
this
.
deleteFlag
=
deleteFlag
==
null
?
null
:
deleteFlag
.
trim
();
}
...
...
src/main/java/com/jsh/erp/datasource/entities/AccountItemExample.java
View file @
a4774016
This diff is collapsed.
Click to expand it.
src/main/java/com/jsh/erp/datasource/entities/DepotHead.java
View file @
a4774016
...
...
@@ -8,55 +8,55 @@ public class DepotHead {
private
String
type
;
private
String
sub
t
ype
;
private
String
sub
T
ype
;
private
String
default
n
umber
;
private
String
default
N
umber
;
private
String
number
;
private
String
oper
p
erson
n
ame
;
private
String
oper
P
erson
N
ame
;
private
Date
create
t
ime
;
private
Date
create
T
ime
;
private
Date
oper
t
ime
;
private
Date
oper
T
ime
;
private
Long
organ
i
d
;
private
Long
organ
I
d
;
private
Long
hands
p
erson
i
d
;
private
Long
hands
P
erson
I
d
;
private
Long
account
i
d
;
private
Long
account
I
d
;
private
BigDecimal
change
a
mount
;
private
BigDecimal
change
A
mount
;
private
BigDecimal
total
p
rice
;
private
BigDecimal
total
P
rice
;
private
String
pay
t
ype
;
private
String
pay
T
ype
;
private
String
remark
;
private
String
sales
m
an
;
private
String
sales
M
an
;
private
String
account
idl
ist
;
private
String
account
IdL
ist
;
private
String
account
m
oney
l
ist
;
private
String
account
M
oney
L
ist
;
private
BigDecimal
discount
;
private
BigDecimal
discount
m
oney
;
private
BigDecimal
discount
M
oney
;
private
BigDecimal
discount
l
ast
m
oney
;
private
BigDecimal
discount
L
ast
M
oney
;
private
BigDecimal
other
m
oney
;
private
BigDecimal
other
M
oney
;
private
String
other
m
oney
l
ist
;
private
String
other
M
oney
L
ist
;
private
String
other
m
oney
i
tem
;
private
String
other
M
oney
I
tem
;
private
Integer
account
d
ay
;
private
Integer
account
D
ay
;
private
String
status
;
private
String
link
n
umber
;
private
String
link
N
umber
;
private
Long
tenantId
;
...
...
@@ -78,20 +78,20 @@ public class DepotHead {
this
.
type
=
type
==
null
?
null
:
type
.
trim
();
}
public
String
getSub
t
ype
()
{
return
sub
t
ype
;
public
String
getSub
T
ype
()
{
return
sub
T
ype
;
}
public
void
setSub
t
ype
(
String
sub
t
ype
)
{
this
.
sub
t
ype
=
sub
t
ype
==
null
?
null
:
sub
t
ype
.
trim
();
public
void
setSub
T
ype
(
String
sub
T
ype
)
{
this
.
sub
T
ype
=
sub
T
ype
==
null
?
null
:
sub
T
ype
.
trim
();
}
public
String
getDefault
n
umber
()
{
return
default
n
umber
;
public
String
getDefault
N
umber
()
{
return
default
N
umber
;
}
public
void
setDefault
n
umber
(
String
default
n
umber
)
{
this
.
default
n
umber
=
default
n
umber
==
null
?
null
:
default
n
umber
.
trim
();
public
void
setDefault
N
umber
(
String
default
N
umber
)
{
this
.
default
N
umber
=
default
N
umber
==
null
?
null
:
default
N
umber
.
trim
();
}
public
String
getNumber
()
{
...
...
@@ -102,76 +102,76 @@ public class DepotHead {
this
.
number
=
number
==
null
?
null
:
number
.
trim
();
}
public
String
getOper
p
erson
n
ame
()
{
return
oper
p
erson
n
ame
;
public
String
getOper
P
erson
N
ame
()
{
return
oper
P
erson
N
ame
;
}
public
void
setOper
p
erson
n
ame
(
String
oper
p
erson
n
ame
)
{
this
.
oper
p
erson
n
ame
=
oper
p
erson
n
ame
==
null
?
null
:
oper
p
erson
n
ame
.
trim
();
public
void
setOper
P
erson
N
ame
(
String
oper
P
erson
N
ame
)
{
this
.
oper
P
erson
N
ame
=
oper
P
erson
N
ame
==
null
?
null
:
oper
P
erson
N
ame
.
trim
();
}
public
Date
getCreate
t
ime
()
{
return
create
t
ime
;
public
Date
getCreate
T
ime
()
{
return
create
T
ime
;
}
public
void
setCreate
t
ime
(
Date
create
t
ime
)
{
this
.
create
t
ime
=
create
t
ime
;
public
void
setCreate
T
ime
(
Date
create
T
ime
)
{
this
.
create
T
ime
=
create
T
ime
;
}
public
Date
getOper
t
ime
()
{
return
oper
t
ime
;
public
Date
getOper
T
ime
()
{
return
oper
T
ime
;
}
public
void
setOper
t
ime
(
Date
oper
t
ime
)
{
this
.
oper
t
ime
=
oper
t
ime
;
public
void
setOper
T
ime
(
Date
oper
T
ime
)
{
this
.
oper
T
ime
=
oper
T
ime
;
}
public
Long
getOrgan
i
d
()
{
return
organ
i
d
;
public
Long
getOrgan
I
d
()
{
return
organ
I
d
;
}
public
void
setOrgan
i
d
(
Long
organ
i
d
)
{
this
.
organ
i
d
=
organ
i
d
;
public
void
setOrgan
I
d
(
Long
organ
I
d
)
{
this
.
organ
I
d
=
organ
I
d
;
}
public
Long
getHands
p
erson
i
d
()
{
return
hands
p
erson
i
d
;
public
Long
getHands
P
erson
I
d
()
{
return
hands
P
erson
I
d
;
}
public
void
setHands
p
erson
i
d
(
Long
hands
p
erson
i
d
)
{
this
.
hands
p
erson
i
d
=
hands
p
erson
i
d
;
public
void
setHands
P
erson
I
d
(
Long
hands
P
erson
I
d
)
{
this
.
hands
P
erson
I
d
=
hands
P
erson
I
d
;
}
public
Long
getAccount
i
d
()
{
return
account
i
d
;
public
Long
getAccount
I
d
()
{
return
account
I
d
;
}
public
void
setAccount
i
d
(
Long
account
i
d
)
{
this
.
account
i
d
=
account
i
d
;
public
void
setAccount
I
d
(
Long
account
I
d
)
{
this
.
account
I
d
=
account
I
d
;
}
public
BigDecimal
getChange
a
mount
()
{
return
change
a
mount
;
public
BigDecimal
getChange
A
mount
()
{
return
change
A
mount
;
}
public
void
setChange
a
mount
(
BigDecimal
change
a
mount
)
{
this
.
change
a
mount
=
change
a
mount
;
public
void
setChange
A
mount
(
BigDecimal
change
A
mount
)
{
this
.
change
A
mount
=
change
A
mount
;
}
public
BigDecimal
getTotal
p
rice
()
{
return
total
p
rice
;
public
BigDecimal
getTotal
P
rice
()
{
return
total
P
rice
;
}
public
void
setTotal
p
rice
(
BigDecimal
total
p
rice
)
{
this
.
total
p
rice
=
total
p
rice
;
public
void
setTotal
P
rice
(
BigDecimal
total
P
rice
)
{
this
.
total
P
rice
=
total
P
rice
;
}
public
String
getPay
t
ype
()
{
return
pay
t
ype
;
public
String
getPay
T
ype
()
{
return
pay
T
ype
;
}
public
void
setPay
t
ype
(
String
pay
t
ype
)
{
this
.
pay
t
ype
=
pay
t
ype
==
null
?
null
:
pay
t
ype
.
trim
();
public
void
setPay
T
ype
(
String
pay
T
ype
)
{
this
.
pay
T
ype
=
pay
T
ype
==
null
?
null
:
pay
T
ype
.
trim
();
}
public
String
getRemark
()
{
...
...
@@ -182,28 +182,28 @@ public class DepotHead {
this
.
remark
=
remark
==
null
?
null
:
remark
.
trim
();
}
public
String
getSales
m
an
()
{
return
sales
m
an
;
public
String
getSales
M
an
()
{
return
sales
M
an
;
}
public
void
setSales
m
an
(
String
sales
m
an
)
{
this
.
sales
m
an
=
sales
m
an
==
null
?
null
:
sales
m
an
.
trim
();
public
void
setSales
M
an
(
String
sales
M
an
)
{
this
.
sales
M
an
=
sales
M
an
==
null
?
null
:
sales
M
an
.
trim
();
}
public
String
getAccount
idl
ist
()
{
return
account
idl
ist
;
public
String
getAccount
IdL
ist
()
{
return
account
IdL
ist
;
}
public
void
setAccount
idl
ist
(
String
account
idl
ist
)
{
this
.
account
idl
ist
=
account
idl
ist
==
null
?
null
:
account
idl
ist
.
trim
();
public
void
setAccount
IdL
ist
(
String
account
IdL
ist
)
{
this
.
account
IdL
ist
=
account
IdL
ist
==
null
?
null
:
account
IdL
ist
.
trim
();
}
public
String
getAccount
m
oney
l
ist
()
{
return
account
m
oney
l
ist
;
public
String
getAccount
M
oney
L
ist
()
{
return
account
M
oney
L
ist
;
}
public
void
setAccount
m
oney
l
ist
(
String
account
m
oney
l
ist
)
{
this
.
account
m
oney
l
ist
=
account
m
oney
l
ist
==
null
?
null
:
account
m
oney
l
ist
.
trim
();
public
void
setAccount
M
oney
L
ist
(
String
account
M
oney
L
ist
)
{
this
.
account
M
oney
L
ist
=
account
M
oney
L
ist
==
null
?
null
:
account
M
oney
L
ist
.
trim
();
}
public
BigDecimal
getDiscount
()
{
...
...
@@ -214,52 +214,52 @@ public class DepotHead {
this
.
discount
=
discount
;
}
public
BigDecimal
getDiscount
m
oney
()
{
return
discount
m
oney
;
public
BigDecimal
getDiscount
M
oney
()
{
return
discount
M
oney
;
}
public
void
setDiscount
m
oney
(
BigDecimal
discount
m
oney
)
{
this
.
discount
m
oney
=
discount
m
oney
;
public
void
setDiscount
M
oney
(
BigDecimal
discount
M
oney
)
{
this
.
discount
M
oney
=
discount
M
oney
;
}
public
BigDecimal
getDiscount
l
ast
m
oney
()
{
return
discount
l
ast
m
oney
;
public
BigDecimal
getDiscount
L
ast
M
oney
()
{
return
discount
L
ast
M
oney
;
}
public
void
setDiscount
l
ast
m
oney
(
BigDecimal
discount
l
ast
m
oney
)
{
this
.
discount
l
ast
m
oney
=
discount
l
ast
m
oney
;
public
void
setDiscount
L
ast
M
oney
(
BigDecimal
discount
L
ast
M
oney
)
{
this
.
discount
L
ast
M
oney
=
discount
L
ast
M
oney
;
}
public
BigDecimal
getOther
m
oney
()
{
return
other
m
oney
;
public
BigDecimal
getOther
M
oney
()
{
return
other
M
oney
;
}
public
void
setOther
m
oney
(
BigDecimal
other
m
oney
)
{
this
.
other
m
oney
=
other
m
oney
;
public
void
setOther
M
oney
(
BigDecimal
other
M
oney
)
{
this
.
other
M
oney
=
other
M
oney
;
}
public
String
getOther
m
oney
l
ist
()
{
return
other
m
oney
l
ist
;
public
String
getOther
M
oney
L
ist
()
{
return
other
M
oney
L
ist
;
}
public
void
setOther
m
oney
l
ist
(
String
other
m
oney
l
ist
)
{
this
.
other
m
oney
l
ist
=
other
m
oney
l
ist
==
null
?
null
:
other
m
oney
l
ist
.
trim
();
public
void
setOther
M
oney
L
ist
(
String
other
M
oney
L
ist
)
{
this
.
other
M
oney
L
ist
=
other
M
oney
L
ist
==
null
?
null
:
other
M
oney
L
ist
.
trim
();
}
public
String
getOther
m
oney
i
tem
()
{
return
other
m
oney
i
tem
;
public
String
getOther
M
oney
I
tem
()
{
return
other
M
oney
I
tem
;
}
public
void
setOther
m
oney
i
tem
(
String
other
m
oney
i
tem
)
{
this
.
other
m
oney
i
tem
=
other
m
oney
i
tem
==
null
?
null
:
other
m
oney
i
tem
.
trim
();
public
void
setOther
M
oney
I
tem
(
String
other
M
oney
I
tem
)
{
this
.
other
M
oney
I
tem
=
other
M
oney
I
tem
==
null
?
null
:
other
M
oney
I
tem
.
trim
();
}
public
Integer
getAccount
d
ay
()
{
return
account
d
ay
;
public
Integer
getAccount
D
ay
()
{
return
account
D
ay
;
}
public
void
setAccount
d
ay
(
Integer
account
d
ay
)
{
this
.
account
d
ay
=
account
d
ay
;
public
void
setAccount
D
ay
(
Integer
account
D
ay
)
{
this
.
account
D
ay
=
account
D
ay
;
}
public
String
getStatus
()
{
...
...
@@ -270,12 +270,12 @@ public class DepotHead {
this
.
status
=
status
==
null
?
null
:
status
.
trim
();
}
public
String
getLink
n
umber
()
{
return
link
n
umber
;
public
String
getLink
N
umber
()
{
return
link
N
umber
;
}
public
void
setLink
n
umber
(
String
link
n
umber
)
{
this
.
link
n
umber
=
link
n
umber
==
null
?
null
:
link
n
umber
.
trim
();
public
void
setLink
N
umber
(
String
link
N
umber
)
{
this
.
link
N
umber
=
link
N
umber
==
null
?
null
:
link
N
umber
.
trim
();
}
public
Long
getTenantId
()
{
...
...
src/main/java/com/jsh/erp/datasource/entities/DepotHeadExample.java
View file @
a4774016
This diff is collapsed.
Click to expand it.
src/main/java/com/jsh/erp/datasource/entities/DepotItem.java
View file @
a4774016
This diff is collapsed.
Click to expand it.
src/main/java/com/jsh/erp/datasource/entities/DepotItemExample.java
View file @
a4774016
This diff is collapsed.
Click to expand it.
Prev
1
2
3
Next
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