Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
Project
Project
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
鲁鑫
topsun-bpm
Commits
8ab202ea
Commit
8ab202ea
authored
Feb 22, 2025
by
1650842865
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决工序外协报价单,没有单价也能保存
parent
d9c5180b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
0 deletions
+47
-0
processQuotedPriceDetail.js
...topsun/sap/processQuotedPrice/processQuotedPriceDetail.js
+36
-0
ProcessQuotedPriceController.java
...sQuotedPrice/controller/ProcessQuotedPriceController.java
+11
-0
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/processQuotedPrice/processQuotedPriceDetail.js
View file @
8ab202ea
...
@@ -388,6 +388,42 @@ function checkConstraints(){
...
@@ -388,6 +388,42 @@ function checkConstraints(){
Public
.
tip
(
"报价单明细必填"
);
Public
.
tip
(
"报价单明细必填"
);
return
false
;
return
false
;
}
}
var
hasItemNumber
=
true
;
var
no
=
0
;
//如果没保存,从datas中取数据判断有没有报价规则
if
(
Public
.
isBlank
(
getId
())){
for
(
let
i
=
0
;
i
<
datas
.
length
;
i
++
)
{
var
row
=
datas
[
i
];
no
=
row
.
itemNo
;
if
(
Public
.
isBlank
(
row
.
numberList
)
||
row
.
numberList
.
length
==
0
){
hasItemNumber
=
false
;
}
}
}
else
{
//保存了,从数据库查询
for
(
let
i
=
0
;
i
<
datas
.
length
;
i
++
)
{
var
row
=
datas
[
i
];
no
=
row
.
itemNo
;
//如果id为空,说明是新增的,从datas中取数据判断有没有报价规则
if
(
Public
.
isBlank
(
row
.
id
)){
if
(
Public
.
isBlank
(
row
.
numberList
)
||
row
.
numberList
.
length
==
0
){
hasItemNumber
=
false
;
}
}
else
{
Public
.
syncAjax
(
web_app
.
name
+
"/processQuotedPrice/queryProcessQuotedPriceItemNumber.ajax"
,{
itemId
:
row
.
id
},
function
(
data
){
if
(
Public
.
isBlank
(
data
.
Total
)
||
data
.
Total
==
0
){
hasItemNumber
=
false
;
}
})
}
}
}
if
(
!
hasItemNumber
){
Public
.
tip
(
"明细项次:"
+
no
+
" 未绑定报价规则"
);
return
false
;
}
}
}
return
true
;
return
true
;
}
}
...
...
topsun/src/main/java/com/huigou/topsun/sap/processQuotedPrice/controller/ProcessQuotedPriceController.java
View file @
8ab202ea
...
@@ -130,6 +130,17 @@ public class ProcessQuotedPriceController extends CommonController {
...
@@ -130,6 +130,17 @@ public class ProcessQuotedPriceController extends CommonController {
return
success
();
return
success
();
}
}
/**
* 查询数量区间报价
* @return
*/
public
String
queryProcessQuotedPriceItemNumber
(){
SDO
sdo
=
this
.
getSDO
();
String
itemId
=
sdo
.
getString
(
"itemId"
);
List
<
ProcessQuotedPriceItemNumber
>
itemNumberList
=
processQuotedPriceItemNumberApplication
.
findByProcessQuotedPriceItemId
(
itemId
);
return
packGridDataAndResult
(
itemNumberList
);
}
/**
/**
* 启用、禁用报价单明细
* 启用、禁用报价单明细
* @return
* @return
...
...
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