Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hg-smart
Commits
8e2514c7
Commit
8e2514c7
authored
Aug 02, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-08-02 合同管理 1、付款方式增加:有预付款、提货付清 2、税点改成税率、增值税改成“税额“
parent
b367533d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
180 additions
and
6 deletions
+180
-6
HGCW002A.js
src/main/webapp/HG/CW/HGCW002A.js
+87
-0
HGCW002A.jsp
src/main/webapp/HG/CW/HGCW002A.jsp
+2
-2
HGCW002B.js
src/main/webapp/HG/CW/HGCW002B.js
+87
-0
HGCW002B.jsp
src/main/webapp/HG/CW/HGCW002B.jsp
+2
-2
HGCW002C.jsp
src/main/webapp/HG/CW/HGCW002C.jsp
+2
-2
No files found.
src/main/webapp/HG/CW/HGCW002A.js
View file @
8e2514c7
...
@@ -406,6 +406,93 @@ $(function() {
...
@@ -406,6 +406,93 @@ $(function() {
grid
.
closeCell
();
grid
.
closeCell
();
}
}
})
})
$
(
"#IMPORT"
).
on
(
"click"
,
function
(
e
)
{
let
status
=
$
(
"#inqu_status-0-status"
).
val
();
if
(
status
==
2
){
IPLAT
.
alert
({
message
:
'<b>物料清单全部提交,无法导入!</b>'
,
okFn
:
function
(
e
)
{
},
title
:
'提示'
});
return
false
;
}
var
logic
=
IPLATUI
.
EFTree
.
materialTree
.
selectTreeNode
.
nodeId
?
false
:
true
;
if
(
logic
)
{
// 通过业务逻辑判断, 控制是否进行新增
IPLAT
.
alert
({
message
:
'<b>请选择项目列表</b>'
,
okFn
:
function
(
e
)
{
},
title
:
'提示'
});
return
false
;
}
var
logicLv
=
IPLATUI
.
EFTree
.
materialTree
.
selectTreeNode
.
lv
===
'1'
;
if
(
logicLv
)
{
// 通过业务逻辑判断, 控制是否进行新增
IPLAT
.
alert
({
message
:
'<b>请选择项目或产品层级</b>'
,
okFn
:
function
(
e
)
{
},
title
:
'提示'
});
return
false
;
}
openFileWindow
.
open
();
});
//grush.openImportBox();
IPLATUI
.
EFUpload
=
{
fileUpload
:
{
showFileList
:
false
,
upload
:
function
(
e
)
{
openFileWindow
.
close
();
IPLAT
.
progress
(
$
(
"body"
),
true
);
},
success
:
function
(
e
)
{
var
src
=
e
.
response
.
docUrl
;
let
selectTreeNode
=
IPLATUI
.
EFTree
.
materialTree
.
selectTreeNode
;
var
eiInfo
=
new
EiInfo
();
let
notIsExcelFile
=
isExcelFile
(
src
);
eiInfo
.
set
(
"fileName"
,
src
);
eiInfo
.
set
(
"projCode"
,
selectTreeNode
.
projCode
);
eiInfo
.
set
(
"projName"
,
selectTreeNode
.
projName
);
eiInfo
.
set
(
"parentProdCode"
,
selectTreeNode
.
nodeId
);
eiInfo
.
set
(
"parentProdName"
,
selectTreeNode
.
pName
);
eiInfo
.
set
(
"lv"
,
selectTreeNode
.
lv
);
eiInfo
.
set
(
"materialId"
,
$
(
"#inqu_status-0-materialId"
).
val
())
EiCommunicator
.
send
(
"HGSC004A"
,
"importDate"
,
eiInfo
,
{
onSuccess
(
ei
)
{
if
(
notIsExcelFile
)
{
NotificationUtil
(
"请导入xls或xlsx文件"
,
"error"
);
return
;
}
if
(
ei
.
status
==
"-1"
)
{
NotificationUtil
(
{
msg
:
ei
.
msg
,
detailMsg
:
ei
.
detailMsg
},
"error"
);
}
else
{
NotificationUtil
(
ei
.
msg
);
refreshTree
();
query
();
}
},
onFail
(
ei
)
{
NotificationUtil
(
"调用失败,原因["
+
ei
+
"]"
,
"error"
);
}
},
{
async
:
false
});
IPLAT
.
progress
(
$
(
"body"
),
false
);
},
fail
(
e
)
{
IPLAT
.
NotificationUtil
(
'导入失败!'
,
"error"
);
}
}
}
grush
.
downloadFile
(
`
${
ctx
}
\\common\\template\\SC\\HGSC004A_物料清单.xls`
);
});
});
function
saveResult1Func
()
{
function
saveResult1Func
()
{
...
...
src/main/webapp/HG/CW/HGCW002A.jsp
View file @
8e2514c7
...
@@ -105,14 +105,14 @@
...
@@ -105,14 +105,14 @@
<EF:EFOption
label=
"-- 请选择 --"
value=
""
/>
<EF:EFOption
label=
"-- 请选择 --"
value=
""
/>
<EF:EFCodeOption
codeName=
"hggp.cw.pricingMethod"
/>
<EF:EFCodeOption
codeName=
"hggp.cw.pricingMethod"
/>
</EF:EFSelect>
</EF:EFSelect>
<EF:EFSelect
cname=
"税
点
"
ename=
"result-0-taxPoints"
colWidth=
"4"
filter=
"contains"
>
<EF:EFSelect
cname=
"税
率
"
ename=
"result-0-taxPoints"
colWidth=
"4"
filter=
"contains"
>
<EF:EFOption
label=
"-- 请选择 --"
value=
""
/>
<EF:EFOption
label=
"-- 请选择 --"
value=
""
/>
<EF:EFCodeOption
codeName=
"hggp.cw.taxPoints"
/>
<EF:EFCodeOption
codeName=
"hggp.cw.taxPoints"
/>
</EF:EFSelect>
</EF:EFSelect>
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<EF:EFInput
ename=
"result-0-totalContractPriceExcluding"
cname=
"合同总价(不含税)"
colWidth=
"4"
readonly=
"true"
/>
<EF:EFInput
ename=
"result-0-totalContractPriceExcluding"
cname=
"合同总价(不含税)"
colWidth=
"4"
readonly=
"true"
/>
<EF:EFInput
ename=
"result-0-valueAddedTax"
cname=
"
增值税
"
colWidth=
"4"
readonly=
"true"
/>
<EF:EFInput
ename=
"result-0-valueAddedTax"
cname=
"
税额
"
colWidth=
"4"
readonly=
"true"
/>
<EF:EFInput
ename=
"result-0-totalContractPriceIncluding"
cname=
"合同总价(含税)"
colWidth=
"4"
readonly=
"true"
/>
<EF:EFInput
ename=
"result-0-totalContractPriceIncluding"
cname=
"合同总价(含税)"
colWidth=
"4"
readonly=
"true"
/>
<EF:EFInput
ename=
"result-0-remainingAmount"
cname=
"剩余开票/收票金额"
colWidth=
"4"
type=
"hidden"
/>
<EF:EFInput
ename=
"result-0-remainingAmount"
cname=
"剩余开票/收票金额"
colWidth=
"4"
type=
"hidden"
/>
</div>
</div>
...
...
src/main/webapp/HG/CW/HGCW002B.js
View file @
8e2514c7
...
@@ -352,6 +352,93 @@ $(function() {
...
@@ -352,6 +352,93 @@ $(function() {
grid
.
closeCell
();
grid
.
closeCell
();
}
}
})
})
$
(
"#IMPORT"
).
on
(
"click"
,
function
(
e
)
{
let
status
=
$
(
"#inqu_status-0-status"
).
val
();
if
(
status
==
2
){
IPLAT
.
alert
({
message
:
'<b>物料清单全部提交,无法导入!</b>'
,
okFn
:
function
(
e
)
{
},
title
:
'提示'
});
return
false
;
}
var
logic
=
IPLATUI
.
EFTree
.
materialTree
.
selectTreeNode
.
nodeId
?
false
:
true
;
if
(
logic
)
{
// 通过业务逻辑判断, 控制是否进行新增
IPLAT
.
alert
({
message
:
'<b>请选择项目列表</b>'
,
okFn
:
function
(
e
)
{
},
title
:
'提示'
});
return
false
;
}
var
logicLv
=
IPLATUI
.
EFTree
.
materialTree
.
selectTreeNode
.
lv
===
'1'
;
if
(
logicLv
)
{
// 通过业务逻辑判断, 控制是否进行新增
IPLAT
.
alert
({
message
:
'<b>请选择项目或产品层级</b>'
,
okFn
:
function
(
e
)
{
},
title
:
'提示'
});
return
false
;
}
openFileWindow
.
open
();
});
//grush.openImportBox();
IPLATUI
.
EFUpload
=
{
fileUpload
:
{
showFileList
:
false
,
upload
:
function
(
e
)
{
openFileWindow
.
close
();
IPLAT
.
progress
(
$
(
"body"
),
true
);
},
success
:
function
(
e
)
{
var
src
=
e
.
response
.
docUrl
;
let
selectTreeNode
=
IPLATUI
.
EFTree
.
materialTree
.
selectTreeNode
;
var
eiInfo
=
new
EiInfo
();
let
notIsExcelFile
=
isExcelFile
(
src
);
eiInfo
.
set
(
"fileName"
,
src
);
eiInfo
.
set
(
"projCode"
,
selectTreeNode
.
projCode
);
eiInfo
.
set
(
"projName"
,
selectTreeNode
.
projName
);
eiInfo
.
set
(
"parentProdCode"
,
selectTreeNode
.
nodeId
);
eiInfo
.
set
(
"parentProdName"
,
selectTreeNode
.
pName
);
eiInfo
.
set
(
"lv"
,
selectTreeNode
.
lv
);
eiInfo
.
set
(
"materialId"
,
$
(
"#inqu_status-0-materialId"
).
val
())
EiCommunicator
.
send
(
"HGSC004A"
,
"importDate"
,
eiInfo
,
{
onSuccess
(
ei
)
{
if
(
notIsExcelFile
)
{
NotificationUtil
(
"请导入xls或xlsx文件"
,
"error"
);
return
;
}
if
(
ei
.
status
==
"-1"
)
{
NotificationUtil
(
{
msg
:
ei
.
msg
,
detailMsg
:
ei
.
detailMsg
},
"error"
);
}
else
{
NotificationUtil
(
ei
.
msg
);
refreshTree
();
query
();
}
},
onFail
(
ei
)
{
NotificationUtil
(
"调用失败,原因["
+
ei
+
"]"
,
"error"
);
}
},
{
async
:
false
});
IPLAT
.
progress
(
$
(
"body"
),
false
);
},
fail
(
e
)
{
IPLAT
.
NotificationUtil
(
'导入失败!'
,
"error"
);
}
}
}
grush
.
downloadFile
(
`
${
ctx
}
\\common\\template\\SC\\HGSC004A_物料清单.xls`
);
});
});
function
initDate
()
{
function
initDate
()
{
...
...
src/main/webapp/HG/CW/HGCW002B.jsp
View file @
8e2514c7
...
@@ -108,14 +108,14 @@
...
@@ -108,14 +108,14 @@
<EF:EFOption
label=
"-- 请选择 --"
value=
""
/>
<EF:EFOption
label=
"-- 请选择 --"
value=
""
/>
<EF:EFCodeOption
codeName=
"hggp.cw.pricingMethod"
/>
<EF:EFCodeOption
codeName=
"hggp.cw.pricingMethod"
/>
</EF:EFSelect>
</EF:EFSelect>
<EF:EFSelect
cname=
"税
点
"
ename=
"result-0-taxPoints"
colWidth=
"4"
filter=
"contains"
>
<EF:EFSelect
cname=
"税
率
"
ename=
"result-0-taxPoints"
colWidth=
"4"
filter=
"contains"
>
<EF:EFOption
label=
"-- 请选择 --"
value=
""
/>
<EF:EFOption
label=
"-- 请选择 --"
value=
""
/>
<EF:EFCodeOption
codeName=
"hggp.cw.taxPoints"
/>
<EF:EFCodeOption
codeName=
"hggp.cw.taxPoints"
/>
</EF:EFSelect>
</EF:EFSelect>
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<EF:EFInput
ename=
"result-0-totalContractPriceExcluding"
cname=
"合同总价(不含税)"
colWidth=
"4"
readonly=
"true"
/>
<EF:EFInput
ename=
"result-0-totalContractPriceExcluding"
cname=
"合同总价(不含税)"
colWidth=
"4"
readonly=
"true"
/>
<EF:EFInput
ename=
"result-0-valueAddedTax"
cname=
"
增值税
"
colWidth=
"4"
readonly=
"true"
/>
<EF:EFInput
ename=
"result-0-valueAddedTax"
cname=
"
税额
"
colWidth=
"4"
readonly=
"true"
/>
<EF:EFInput
ename=
"result-0-totalContractPriceIncluding"
cname=
"合同总价(含税)"
colWidth=
"4"
readonly=
"true"
/>
<EF:EFInput
ename=
"result-0-totalContractPriceIncluding"
cname=
"合同总价(含税)"
colWidth=
"4"
readonly=
"true"
/>
<EF:EFInput
ename=
"result-0-remainingAmount"
cname=
"剩余开票/收票金额"
colWidth=
"4"
type=
"hidden"
/>
<EF:EFInput
ename=
"result-0-remainingAmount"
cname=
"剩余开票/收票金额"
colWidth=
"4"
type=
"hidden"
/>
</div>
</div>
...
...
src/main/webapp/HG/CW/HGCW002C.jsp
View file @
8e2514c7
...
@@ -68,12 +68,12 @@
...
@@ -68,12 +68,12 @@
</EF:EFSelect>
</EF:EFSelect>
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<EF:EFSelect
cname=
"税
点
"
ename=
"result-0-taxPoints"
colWidth=
"4"
filter=
"contains"
readonly=
"true"
enable=
"false"
>
<EF:EFSelect
cname=
"税
率
"
ename=
"result-0-taxPoints"
colWidth=
"4"
filter=
"contains"
readonly=
"true"
enable=
"false"
>
<EF:EFOption
label=
"-- 请选择 --"
value=
""
/>
<EF:EFOption
label=
"-- 请选择 --"
value=
""
/>
<EF:EFCodeOption
codeName=
"hggp.cw.taxPoints"
/>
<EF:EFCodeOption
codeName=
"hggp.cw.taxPoints"
/>
</EF:EFSelect>
</EF:EFSelect>
<EF:EFInput
ename=
"result-0-totalContractPriceExcluding"
cname=
"合同总价(不含税)"
colWidth=
"4"
readonly=
"true"
enable=
"false"
/>
<EF:EFInput
ename=
"result-0-totalContractPriceExcluding"
cname=
"合同总价(不含税)"
colWidth=
"4"
readonly=
"true"
enable=
"false"
/>
<EF:EFInput
ename=
"result-0-valueAddedTax"
cname=
"
增值税
"
colWidth=
"4"
readonly=
"true"
enable=
"false"
/>
<EF:EFInput
ename=
"result-0-valueAddedTax"
cname=
"
税额
"
colWidth=
"4"
readonly=
"true"
enable=
"false"
/>
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<EF:EFInput
ename=
"result-0-totalContractPriceIncluding"
cname=
"合同总价(含税)"
colWidth=
"4"
readonly=
"true"
enable=
"false"
/>
<EF:EFInput
ename=
"result-0-totalContractPriceIncluding"
cname=
"合同总价(含税)"
colWidth=
"4"
readonly=
"true"
enable=
"false"
/>
...
...
Write
Preview
Markdown
is supported
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