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
ae7d2670
Commit
ae7d2670
authored
Jul 22, 2020
by
季圣华
Browse files
优化表结构
parent
a4774016
Changes
2
Hide whitespace changes
Inline
Side-by-side
docs/数据库更新记录-方便升级.txt
View file @
ae7d2670
...
@@ -956,7 +956,7 @@ alter table jsh_material change OtherField3 other_field3 varchar(50) DEFAULT NUL
...
@@ -956,7 +956,7 @@ alter table jsh_material change OtherField3 other_field3 varchar(50) DEFAULT NUL
alter table jsh_material change enableSerialNumber enable_serial_number varchar(1) DEFAULT '0' COMMENT '是否开启序列号,0否,1是';
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_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_depothead 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 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 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 SubType sub_type varchar(50) DEFAULT NULL COMMENT '出入库分类';
...
@@ -986,7 +986,7 @@ alter table jsh_depot_head change Status status varchar(1) DEFAULT NULL COMMENT
...
@@ -986,7 +986,7 @@ alter table jsh_depot_head change Status status varchar(1) DEFAULT NULL COMMENT
alter table jsh_depot_head change LinkNumber link_number varchar(50) DEFAULT NULL COMMENT '关联订单号';
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_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_depotitem 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 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 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 MaterialId material_id bigint(20) NOT NULL COMMENT '商品Id';
...
...
erp_web/js/pages/materials/in_out.js
View file @
ae7d2670
...
@@ -434,10 +434,10 @@
...
@@ -434,10 +434,10 @@
{
title
:
'
操作
'
,
field
:
'
op
'
,
align
:
"
center
"
,
width
:
opWidth
,
{
title
:
'
操作
'
,
field
:
'
op
'
,
align
:
"
center
"
,
width
:
opWidth
,
formatter
:
function
(
value
,
rec
,
index
)
{
formatter
:
function
(
value
,
rec
,
index
)
{
var
str
=
''
;
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="showDepotHead(
\'
'
+
index
+
'
\'
);"/>
'
;
str
+=
'
<img title="查看" src="/js/easyui/themes/icons/list.png" style="cursor: pointer;" onclick="showDepotHead(
\'
'
+
index
+
'
\'
);"/>
'
;
str
+=
'
<img title="编辑" src="/js/easyui/themes/icons/pencil.png" style="cursor: pointer;" onclick="editDepotHead(
\'
'
+
index
+
'
\'
);"/>
'
;
str
+=
'
<img title="编辑" src="/js/easyui/themes/icons/pencil.png" style="cursor: pointer;" onclick="editDepotHead(
\'
'
+
index
+
'
\'
);"/>
'
;
str
+=
'
<img title="删除" src="/js/easyui/themes/icons/edit_remove.png" style="cursor: pointer;" onclick="deleteDepotHead(
'
+
rec
.
id
+
'
,
'
+
orgId
+
'
,
'
+
rec
.
total
p
rice
+
'
,
'
+
rec
.
status
+
'
);"/>
'
;
str
+=
'
<img title="删除" src="/js/easyui/themes/icons/edit_remove.png" style="cursor: pointer;" onclick="deleteDepotHead(
'
+
rec
.
id
+
'
,
'
+
orgId
+
'
,
'
+
rec
.
total
P
rice
+
'
,
'
+
rec
.
status
+
'
);"/>
'
;
if
(
isShowSkip
)
{
if
(
isShowSkip
)
{
str
+=
'
<img title="
'
+
opTitle
+
'
" src="/js/easyui/themes/icons/redo.png" style="cursor: pointer;" onclick="skipDepotHead(
\'
'
+
index
+
'
\'
);"/>
'
;
str
+=
'
<img title="
'
+
opTitle
+
'
" src="/js/easyui/themes/icons/redo.png" style="cursor: pointer;" onclick="skipDepotHead(
\'
'
+
index
+
'
\'
);"/>
'
;
}
}
...
@@ -1116,8 +1116,8 @@
...
@@ -1116,8 +1116,8 @@
url
:
"
/supplier/updateAdvanceIn
"
,
url
:
"
/supplier/updateAdvanceIn
"
,
dataType
:
"
json
"
,
dataType
:
"
json
"
,
data
:
{
data
:
{
supplierId
:
row
[
i
].
organ
i
d
,
//会员id
supplierId
:
row
[
i
].
organ
I
d
,
//会员id
advanceIn
:
row
[
i
].
total
p
rice
//删除时同时返还用户的预付款
advanceIn
:
row
[
i
].
total
P
rice
//删除时同时返还用户的预付款
},
},
success
:
function
(
res
)
{
success
:
function
(
res
)
{
if
(
res
&&
res
.
code
===
200
)
{
if
(
res
&&
res
.
code
===
200
)
{
...
@@ -1253,12 +1253,12 @@
...
@@ -1253,12 +1253,12 @@
var
res
=
sessionStorage
.
getItem
(
"
rowInfo
"
);
var
res
=
sessionStorage
.
getItem
(
"
rowInfo
"
);
if
(
pageType
==
"
skip
"
&&
res
)
{
//从订单跳转过来
if
(
pageType
==
"
skip
"
&&
res
)
{
//从订单跳转过来
res
=
JSON
.
parse
(
res
);
res
=
JSON
.
parse
(
res
);
$
(
'
#OrganId
'
).
combobox
(
'
setValue
'
,
res
.
organ
i
d
);
$
(
'
#OrganId
'
).
combobox
(
'
setValue
'
,
res
.
organ
I
d
);
$
(
"
#LinkNumber
"
).
val
(
res
.
number
);
//关联订单号
$
(
"
#LinkNumber
"
).
val
(
res
.
number
);
//关联订单号
$
(
"
#DiscountLastMoney
"
).
val
(
res
.
total
p
rice
);
//优惠后金额
$
(
"
#DiscountLastMoney
"
).
val
(
res
.
total
P
rice
);
//优惠后金额
$
(
"
#ChangeAmount
"
).
val
(
res
.
total
p
rice
).
attr
(
"
data-changeamount
"
,
res
.
total
p
rice
);
$
(
"
#ChangeAmount
"
).
val
(
res
.
total
P
rice
).
attr
(
"
data-changeamount
"
,
res
.
total
P
rice
);
depotHeadID
=
res
.
id
;
depotHeadID
=
res
.
id
;
initTableData_material
(
"
edit
"
,
res
.
total
p
rice
);
//商品列表
initTableData_material
(
"
edit
"
,
res
.
total
P
rice
);
//商品列表
}
else
{
}
else
{
initTableData_material
(
"
add
"
);
//商品列表
initTableData_material
(
"
add
"
);
//商品列表
}
}
...
...
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