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
dfeee517
Commit
dfeee517
authored
Nov 07, 2024
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
供应商控制电话号码
parent
c44552ed
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
suppliersDataDetail.js
...in/webapp/biz/topsun/sap/suppliers/suppliersDataDetail.js
+23
-1
suppliersDataList.js
...main/webapp/biz/topsun/sap/suppliers/suppliersDataList.js
+0
-1
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/suppliers/suppliersDataDetail.js
View file @
dfeee517
...
@@ -82,7 +82,8 @@ function loadSuppliersBuyerListGrid() {
...
@@ -82,7 +82,8 @@ function loadSuppliersBuyerListGrid() {
// 行号加一
// 行号加一
sequence
:
(
sapSuppliersBuyerGridManager
.
getData
().
length
+
1
)
*
10
,
sequence
:
(
sapSuppliersBuyerGridManager
.
getData
().
length
+
1
)
*
10
,
webre
:
"X"
,
webre
:
"X"
,
kalsk
:
"Z1"
kalsk
:
"Z1"
,
telf1
:
$
(
"#buGroup"
).
val
()
==
"Z005"
?
$
(
"#mobNumber"
).
val
():
""
}
}
);
);
...
@@ -119,6 +120,12 @@ function loadSuppliersBuyerListGrid() {
...
@@ -119,6 +120,12 @@ function loadSuppliersBuyerListGrid() {
checkbox
:
true
,
checkbox
:
true
,
fixedCellHeight
:
true
,
fixedCellHeight
:
true
,
selectRowButtonOnly
:
true
,
selectRowButtonOnly
:
true
,
onAfterEdit
:
function
(
editParm
)
{
var
c
=
editParm
.
column
,
data
=
editParm
.
record
;
if
(
c
.
name
==
'telf1'
&&
$
(
"#buGroup"
).
val
()
==
"Z005"
)
{
$
(
"#mobNumber"
).
val
(
data
.
telf1
)
}
},
});
});
UICtrl
.
setSearchAreaToggle
(
sapSuppliersBuyerGridManager
);
UICtrl
.
setSearchAreaToggle
(
sapSuppliersBuyerGridManager
);
}
}
...
@@ -657,6 +664,21 @@ function bindEvent(){
...
@@ -657,6 +664,21 @@ function bindEvent(){
$
(
'#city1Name'
).
val
(
data
.
BEZEI
);
$
(
'#city1Name'
).
val
(
data
.
BEZEI
);
}
}
});
});
$
(
"#buGroup"
).
combox
({
onChange
:
function
(
data
){
//2. 当供应商账户组=Z005时,“销售员”和“销售员电话”这两个字段均成为“必须输入字段
var
columns
=
sapSuppliersBuyerGridManager
.
columns
;
columns
.
some
(
column
=>
{
if
(
column
.
name
==
"verkf"
||
column
.
name
==
"telf1"
){
column
.
editor
.
required
=
data
.
value
==
"Z005"
?
true
:
false
;
}
})
columns
.
splice
(
0
,
1
)
UICtrl
.
setGridColumns
(
sapSuppliersBuyerGridManager
,
columns
);
$
(
"#buGroup"
).
val
(
data
.
value
);
$
(
"#buGroup_text"
).
val
(
data
.
text
);
}
})
}
}
function
reloadGrid
()
{
function
reloadGrid
()
{
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/suppliers/suppliersDataList.js
View file @
dfeee517
...
@@ -90,7 +90,6 @@ function loadSuppliersDataListGrid() {
...
@@ -90,7 +90,6 @@ function loadSuppliersDataListGrid() {
doView
(
data
.
id
,
data
.
applyType
);
doView
(
data
.
id
,
data
.
applyType
);
},
},
onAfterShowData
:
function
(
data
){
onAfterShowData
:
function
(
data
){
console
.
log
(
data
)
}
}
});
});
UICtrl
.
setSearchAreaToggle
(
gridManager
);
UICtrl
.
setSearchAreaToggle
(
gridManager
);
...
...
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