Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
1cc43eb6
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1423
Star
161
Fork
130
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
1cc43eb6
编写于
8月 11, 2022
作者:
W
weizhiqiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
表格选择插件新增最小数据量参数
上级
2a1ca080
变更
76
隐藏空白更改
内联
并排
Showing
76 changed file
with
210 addition
and
239 deletion
+210
-239
admin-assistant/src/main/resources/template/js/assetArticlesPurchase/assetArticlesPurchaseAdd.js
...late/js/assetArticlesPurchase/assetArticlesPurchaseAdd.js
+1
-1
admin-assistant/src/main/resources/template/js/assetArticlesPurchase/assetArticlesPurchaseEdit.js
...ate/js/assetArticlesPurchase/assetArticlesPurchaseEdit.js
+1
-1
admin-assistant/src/main/resources/template/js/assetArticlesUse/assetArticlesUseAdd.js
...urces/template/js/assetArticlesUse/assetArticlesUseAdd.js
+1
-1
admin-assistant/src/main/resources/template/js/assetArticlesUse/assetArticlesUseEdit.js
...rces/template/js/assetArticlesUse/assetArticlesUseEdit.js
+1
-1
admin-assistant/src/main/resources/template/js/assetManagePurchase/assetManagePurchaseAdd.js
...template/js/assetManagePurchase/assetManagePurchaseAdd.js
+1
-1
admin-assistant/src/main/resources/template/js/assetManagePurchase/assetManagePurchaseEdit.js
...emplate/js/assetManagePurchase/assetManagePurchaseEdit.js
+1
-1
admin-assistant/src/main/resources/template/js/assetManageReturn/assetManageReturnAdd.js
...ces/template/js/assetManageReturn/assetManageReturnAdd.js
+1
-1
admin-assistant/src/main/resources/template/js/assetManageReturn/assetManageReturnEdit.js
...es/template/js/assetManageReturn/assetManageReturnEdit.js
+1
-1
admin-assistant/src/main/resources/template/js/assetManageUse/assetManageUseAdd.js
...resources/template/js/assetManageUse/assetManageUseAdd.js
+1
-1
admin-assistant/src/main/resources/template/js/assetManageUse/assetManageUseEdit.js
...esources/template/js/assetManageUse/assetManageUseEdit.js
+1
-1
admin-assistant/src/main/resources/template/js/conFerenceRoomReserve/conFerenceRoomReserveAdd.js
...late/js/conFerenceRoomReserve/conFerenceRoomReserveAdd.js
+1
-1
admin-assistant/src/main/resources/template/js/conFerenceRoomReserve/conFerenceRoomReserveEdit.js
...ate/js/conFerenceRoomReserve/conFerenceRoomReserveEdit.js
+1
-1
admin-assistant/src/main/resources/template/js/licenceManageBorrow/licenceManageBorrowAdd.js
...template/js/licenceManageBorrow/licenceManageBorrowAdd.js
+1
-1
admin-assistant/src/main/resources/template/js/licenceManageBorrow/licenceManageBorrowEdit.js
...emplate/js/licenceManageBorrow/licenceManageBorrowEdit.js
+1
-1
admin-assistant/src/main/resources/template/js/licenceManageRevert/licenceManageRevertAdd.js
...template/js/licenceManageRevert/licenceManageRevertAdd.js
+1
-1
admin-assistant/src/main/resources/template/js/licenceManageRevert/licenceManageRevertEdit.js
...emplate/js/licenceManageRevert/licenceManageRevertEdit.js
+1
-1
admin-assistant/src/main/resources/template/js/sealManageBorrow/sealManageBorrowAdd.js
...urces/template/js/sealManageBorrow/sealManageBorrowAdd.js
+1
-1
admin-assistant/src/main/resources/template/js/sealManageBorrow/sealManageBorrowEdit.js
...rces/template/js/sealManageBorrow/sealManageBorrowEdit.js
+1
-1
admin-assistant/src/main/resources/template/js/sealManageRevert/sealManageRevertAdd.js
...urces/template/js/sealManageRevert/sealManageRevertAdd.js
+1
-1
admin-assistant/src/main/resources/template/js/sealManageRevert/sealManageRevertEdit.js
...rces/template/js/sealManageRevert/sealManageRevertEdit.js
+1
-1
admin-assistant/src/main/resources/template/js/vehicleManageUse/vehicleManageUseAdd.js
...urces/template/js/vehicleManageUse/vehicleManageUseAdd.js
+1
-1
admin-assistant/src/main/resources/template/js/vehicleManageUse/vehicleManageUseEdit.js
...rces/template/js/vehicleManageUse/vehicleManageUseEdit.js
+1
-1
boss/src/main/resources/template/js/bossInterviewJobTransfer/bossInterviewJobTransferEdit.js
.../bossInterviewJobTransfer/bossInterviewJobTransferEdit.js
+1
-1
boss/src/main/resources/template/js/bossInterviewQuit/bossInterviewQuitAdd.js
...ces/template/js/bossInterviewQuit/bossInterviewQuitAdd.js
+1
-1
boss/src/main/resources/template/js/bossInterviewQuit/bossInterviewQuitEdit.js
...es/template/js/bossInterviewQuit/bossInterviewQuitEdit.js
+1
-1
boss/src/main/resources/template/js/bossInterviewRegularWorker/bossInterviewRegularWorkerAdd.js
...ssInterviewRegularWorker/bossInterviewRegularWorkerAdd.js
+1
-1
boss/src/main/resources/template/js/bossInterviewRegularWorker/bossInterviewRegularWorkerEdit.js
...sInterviewRegularWorker/bossInterviewRegularWorkerEdit.js
+1
-1
boss/src/main/resources/template/js/bossPersonRequire/bossPersonRequireAdd.js
...ces/template/js/bossPersonRequire/bossPersonRequireAdd.js
+1
-1
boss/src/main/resources/template/js/bossPersonRequire/bossPersonRequireEdit.js
...es/template/js/bossPersonRequire/bossPersonRequireEdit.js
+1
-1
checkwork/src/main/resources/template/js/checkWorkBusinessTrip/checkWorkBusinessTripAdd.js
...late/js/checkWorkBusinessTrip/checkWorkBusinessTripAdd.js
+1
-1
checkwork/src/main/resources/template/js/checkWorkBusinessTrip/checkWorkBusinessTripEdit.js
...ate/js/checkWorkBusinessTrip/checkWorkBusinessTripEdit.js
+1
-1
checkwork/src/main/resources/template/js/checkWorkCancelLeave/checkWorkCancelLeaveAdd.js
...mplate/js/checkWorkCancelLeave/checkWorkCancelLeaveAdd.js
+1
-1
checkwork/src/main/resources/template/js/checkWorkCancelLeave/checkWorkCancelLeaveEdit.js
...plate/js/checkWorkCancelLeave/checkWorkCancelLeaveEdit.js
+1
-1
checkwork/src/main/resources/template/js/checkWorkLeave/checkWorkLeaveAdd.js
...resources/template/js/checkWorkLeave/checkWorkLeaveAdd.js
+1
-1
checkwork/src/main/resources/template/js/checkWorkLeave/checkWorkLeaveEdit.js
...esources/template/js/checkWorkLeave/checkWorkLeaveEdit.js
+1
-1
checkwork/src/main/resources/template/js/checkWorkOvertime/checkWorkOvertimeAdd.js
...ces/template/js/checkWorkOvertime/checkWorkOvertimeAdd.js
+1
-1
checkwork/src/main/resources/template/js/checkWorkOvertime/checkWorkOvertimeEdit.js
...es/template/js/checkWorkOvertime/checkWorkOvertimeEdit.js
+1
-1
crm/src/main/resources/template/js/crmOpportunity/crmopportunityadd.js
...resources/template/js/crmOpportunity/crmopportunityadd.js
+1
-1
crm/src/main/resources/template/js/crmOpportunity/crmopportunityedit.js
...esources/template/js/crmOpportunity/crmopportunityedit.js
+1
-1
crm/src/main/resources/template/js/crmcontractmanage/mycrmcontractedit.js
...ources/template/js/crmcontractmanage/mycrmcontractedit.js
+1
-1
erp/src/main/resources/template/js/otheroutlets/otheroutletsadd.js
...ain/resources/template/js/otheroutlets/otheroutletsadd.js
+1
-1
erp/src/main/resources/template/js/otheroutlets/otheroutletsedit.js
...in/resources/template/js/otheroutlets/otheroutletsedit.js
+1
-1
erp/src/main/resources/template/js/otherwarehous/otherwarehousadd.js
...n/resources/template/js/otherwarehous/otherwarehousadd.js
+1
-1
erp/src/main/resources/template/js/otherwarehous/otherwarehousedit.js
.../resources/template/js/otherwarehous/otherwarehousedit.js
+1
-1
erp/src/main/resources/template/js/purchaseorder/purchaseorderadd.js
...n/resources/template/js/purchaseorder/purchaseorderadd.js
+5
-2
erp/src/main/resources/template/js/purchaseorder/purchaseorderedit.js
.../resources/template/js/purchaseorder/purchaseorderedit.js
+115
-157
erp/src/main/resources/template/js/purchaseorder/purchaseorderpurchase.js
...ources/template/js/purchaseorder/purchaseorderpurchase.js
+1
-1
erp/src/main/resources/template/js/purchaseput/purchaseputadd.js
.../main/resources/template/js/purchaseput/purchaseputadd.js
+1
-1
erp/src/main/resources/template/js/purchaseput/purchaseputedit.js
...main/resources/template/js/purchaseput/purchaseputedit.js
+1
-1
erp/src/main/resources/template/js/purchasereturns/purchasereturnsadd.js
...sources/template/js/purchasereturns/purchasereturnsadd.js
+1
-1
erp/src/main/resources/template/js/purchasereturns/purchasereturnsedit.js
...ources/template/js/purchasereturns/purchasereturnsedit.js
+1
-1
erp/src/main/resources/template/js/retailoutlet/retailoutletadd.js
...ain/resources/template/js/retailoutlet/retailoutletadd.js
+1
-1
erp/src/main/resources/template/js/retailoutlet/retailoutletedit.js
...in/resources/template/js/retailoutlet/retailoutletedit.js
+1
-1
erp/src/main/resources/template/js/retailreturns/retailreturnsadd.js
...n/resources/template/js/retailreturns/retailreturnsadd.js
+1
-1
erp/src/main/resources/template/js/retailreturns/retailreturnsedit.js
.../resources/template/js/retailreturns/retailreturnsedit.js
+1
-1
erp/src/main/resources/template/js/salesorder/salesorderadd.js
...rc/main/resources/template/js/salesorder/salesorderadd.js
+1
-1
erp/src/main/resources/template/js/salesorder/salesorderedit.js
...c/main/resources/template/js/salesorder/salesorderedit.js
+1
-1
erp/src/main/resources/template/js/salesorder/salesorderpurchase.js
...in/resources/template/js/salesorder/salesorderpurchase.js
+1
-1
erp/src/main/resources/template/js/salesoutlet/salesoutletadd.js
.../main/resources/template/js/salesoutlet/salesoutletadd.js
+1
-1
erp/src/main/resources/template/js/salesoutlet/salesoutletedit.js
...main/resources/template/js/salesoutlet/salesoutletedit.js
+1
-1
erp/src/main/resources/template/js/salesreturns/salesreturnsadd.js
...ain/resources/template/js/salesreturns/salesreturnsadd.js
+1
-1
erp/src/main/resources/template/js/salesreturns/salesreturnsedit.js
...in/resources/template/js/salesreturns/salesreturnsedit.js
+1
-1
erp/src/main/resources/template/tpl/purchaseorder/purchaseorderedit.html
...sources/template/tpl/purchaseorder/purchaseorderedit.html
+5
-5
ifs/src/main/resources/template/js/income/incomeAdd.js
ifs/src/main/resources/template/js/income/incomeAdd.js
+1
-1
ifs/src/main/resources/template/js/income/incomeEdit.js
ifs/src/main/resources/template/js/income/incomeEdit.js
+1
-1
pro/src/main/resources/template/js/procostexpense/procostexpenseadd.js
...resources/template/js/procostexpense/procostexpenseadd.js
+1
-1
pro/src/main/resources/template/js/procostexpense/procostexpenseedit.js
...esources/template/js/procostexpense/procostexpenseedit.js
+1
-1
pro/src/main/resources/template/js/profile/profileadd.js
pro/src/main/resources/template/js/profile/profileadd.js
+1
-1
pro/src/main/resources/template/js/profile/profileedit.js
pro/src/main/resources/template/js/profile/profileedit.js
+1
-1
pro/src/main/resources/template/js/proproject/proprojectadd.js
...rc/main/resources/template/js/proproject/proprojectadd.js
+1
-1
pro/src/main/resources/template/js/proproject/proprojectedit.js
...c/main/resources/template/js/proproject/proprojectedit.js
+1
-1
pro/src/main/resources/template/js/protask/protaskadd.js
pro/src/main/resources/template/js/protask/protaskadd.js
+1
-1
pro/src/main/resources/template/js/protask/protaskedit.js
pro/src/main/resources/template/js/protask/protaskedit.js
+1
-1
pro/src/main/resources/template/js/proworkload/proworkloadadd.js
.../main/resources/template/js/proworkload/proworkloadadd.js
+1
-1
pro/src/main/resources/template/js/proworkload/proworkloadedit.js
...main/resources/template/js/proworkload/proworkloadedit.js
+1
-1
web/src/main/resources/template/assets/lib/layui/customer/tableUtil/initTableChooseUtil.js
...ssets/lib/layui/customer/tableUtil/initTableChooseUtil.js
+13
-3
未找到文件。
admin-assistant/src/main/resources/template/js/assetArticlesPurchase/assetArticlesPurchaseAdd.js
浏览文件 @
1cc43eb6
...
@@ -96,7 +96,7 @@ layui.config({
...
@@ -96,7 +96,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取已选用品数据
// 获取已选用品数据
var
rowTr
=
$
(
"
#purchaseTable tr
"
);
var
rowTr
=
$
(
"
#purchaseTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
admin-assistant/src/main/resources/template/js/assetArticlesPurchase/assetArticlesPurchaseEdit.js
浏览文件 @
1cc43eb6
...
@@ -122,7 +122,7 @@ layui.config({
...
@@ -122,7 +122,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取已选用品数据
// 获取已选用品数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
admin-assistant/src/main/resources/template/js/assetArticlesUse/assetArticlesUseAdd.js
浏览文件 @
1cc43eb6
...
@@ -98,7 +98,7 @@ layui.config({
...
@@ -98,7 +98,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取已选用品数据
// 获取已选用品数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
admin-assistant/src/main/resources/template/js/assetArticlesUse/assetArticlesUseEdit.js
浏览文件 @
1cc43eb6
...
@@ -122,7 +122,7 @@ layui.config({
...
@@ -122,7 +122,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取已选用品数据
// 获取已选用品数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
admin-assistant/src/main/resources/template/js/assetManagePurchase/assetManagePurchaseAdd.js
浏览文件 @
1cc43eb6
...
@@ -55,7 +55,7 @@ layui.config({
...
@@ -55,7 +55,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取已选资产数据
// 获取已选资产数据
var
rowTr
=
$
(
"
#purchaseTable tr
"
);
var
rowTr
=
$
(
"
#purchaseTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
admin-assistant/src/main/resources/template/js/assetManagePurchase/assetManagePurchaseEdit.js
浏览文件 @
1cc43eb6
...
@@ -81,7 +81,7 @@ layui.config({
...
@@ -81,7 +81,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取已选资产数据
// 获取已选资产数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
admin-assistant/src/main/resources/template/js/assetManageReturn/assetManageReturnAdd.js
浏览文件 @
1cc43eb6
...
@@ -96,7 +96,7 @@ layui.config({
...
@@ -96,7 +96,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取已选资产数据
// 获取已选资产数据
var
rowTr
=
$
(
"
#returnTable tr
"
);
var
rowTr
=
$
(
"
#returnTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
admin-assistant/src/main/resources/template/js/assetManageReturn/assetManageReturnEdit.js
浏览文件 @
1cc43eb6
...
@@ -121,7 +121,7 @@ layui.config({
...
@@ -121,7 +121,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取已选资产数据
// 获取已选资产数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
admin-assistant/src/main/resources/template/js/assetManageUse/assetManageUseAdd.js
浏览文件 @
1cc43eb6
...
@@ -96,7 +96,7 @@ layui.config({
...
@@ -96,7 +96,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取已选资产数据
// 获取已选资产数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
admin-assistant/src/main/resources/template/js/assetManageUse/assetManageUseEdit.js
浏览文件 @
1cc43eb6
...
@@ -120,7 +120,7 @@ layui.config({
...
@@ -120,7 +120,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取已选资产数据
// 获取已选资产数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
admin-assistant/src/main/resources/template/js/conFerenceRoomReserve/conFerenceRoomReserveAdd.js
浏览文件 @
1cc43eb6
...
@@ -55,7 +55,7 @@ layui.config({
...
@@ -55,7 +55,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
var
params
=
{
var
params
=
{
title
:
$
(
"
#title
"
).
html
(),
title
:
$
(
"
#title
"
).
html
(),
startTime
:
$
(
"
#reserveTime
"
).
val
().
split
(
'
-
'
)[
0
].
trim
(),
startTime
:
$
(
"
#reserveTime
"
).
val
().
split
(
'
-
'
)[
0
].
trim
(),
...
...
admin-assistant/src/main/resources/template/js/conFerenceRoomReserve/conFerenceRoomReserveEdit.js
浏览文件 @
1cc43eb6
...
@@ -70,7 +70,7 @@ layui.config({
...
@@ -70,7 +70,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
var
params
=
{
var
params
=
{
rowId
:
parent
.
rowId
,
rowId
:
parent
.
rowId
,
startTime
:
$
(
"
#reserveTime
"
).
val
().
split
(
'
-
'
)[
0
].
trim
(),
startTime
:
$
(
"
#reserveTime
"
).
val
().
split
(
'
-
'
)[
0
].
trim
(),
...
...
admin-assistant/src/main/resources/template/js/licenceManageBorrow/licenceManageBorrowAdd.js
浏览文件 @
1cc43eb6
...
@@ -56,7 +56,7 @@ layui.config({
...
@@ -56,7 +56,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取已选证照数据
// 获取已选证照数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
admin-assistant/src/main/resources/template/js/licenceManageBorrow/licenceManageBorrowEdit.js
浏览文件 @
1cc43eb6
...
@@ -81,7 +81,7 @@ layui.config({
...
@@ -81,7 +81,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取已选证照数据
// 获取已选证照数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
admin-assistant/src/main/resources/template/js/licenceManageRevert/licenceManageRevertAdd.js
浏览文件 @
1cc43eb6
...
@@ -55,7 +55,7 @@ layui.config({
...
@@ -55,7 +55,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取已选证照数据
// 获取已选证照数据
var
rowTr
=
$
(
"
#revertTable tr
"
);
var
rowTr
=
$
(
"
#revertTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
admin-assistant/src/main/resources/template/js/licenceManageRevert/licenceManageRevertEdit.js
浏览文件 @
1cc43eb6
...
@@ -80,7 +80,7 @@ layui.config({
...
@@ -80,7 +80,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取已选证照数据
// 获取已选证照数据
var
rowTr
=
$
(
"
#revertTable tr
"
);
var
rowTr
=
$
(
"
#revertTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
admin-assistant/src/main/resources/template/js/sealManageBorrow/sealManageBorrowAdd.js
浏览文件 @
1cc43eb6
...
@@ -56,7 +56,7 @@ layui.config({
...
@@ -56,7 +56,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取已选印章数据
// 获取已选印章数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
admin-assistant/src/main/resources/template/js/sealManageBorrow/sealManageBorrowEdit.js
浏览文件 @
1cc43eb6
...
@@ -81,7 +81,7 @@ layui.config({
...
@@ -81,7 +81,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取已选印章数据
// 获取已选印章数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
admin-assistant/src/main/resources/template/js/sealManageRevert/sealManageRevertAdd.js
浏览文件 @
1cc43eb6
...
@@ -60,7 +60,7 @@ layui.config({
...
@@ -60,7 +60,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取已选印章数据
// 获取已选印章数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
admin-assistant/src/main/resources/template/js/sealManageRevert/sealManageRevertEdit.js
浏览文件 @
1cc43eb6
...
@@ -85,7 +85,7 @@ layui.config({
...
@@ -85,7 +85,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取已选印章数据
// 获取已选印章数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
admin-assistant/src/main/resources/template/js/vehicleManageUse/vehicleManageUseAdd.js
浏览文件 @
1cc43eb6
...
@@ -90,7 +90,7 @@ layui.config({
...
@@ -90,7 +90,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
var
params
=
{
var
params
=
{
title
:
$
(
"
#useTitle
"
).
html
(),
title
:
$
(
"
#useTitle
"
).
html
(),
passengerNum
:
$
(
"
#passengerNum
"
).
val
(),
passengerNum
:
$
(
"
#passengerNum
"
).
val
(),
...
...
admin-assistant/src/main/resources/template/js/vehicleManageUse/vehicleManageUseEdit.js
浏览文件 @
1cc43eb6
...
@@ -123,7 +123,7 @@ layui.config({
...
@@ -123,7 +123,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
var
params
=
{
var
params
=
{
rowId
:
parent
.
rowId
,
rowId
:
parent
.
rowId
,
passengerNum
:
$
(
"
#passengerNum
"
).
val
(),
passengerNum
:
$
(
"
#passengerNum
"
).
val
(),
...
...
boss/src/main/resources/template/js/bossInterviewJobTransfer/bossInterviewJobTransferEdit.js
浏览文件 @
1cc43eb6
...
@@ -76,7 +76,7 @@ layui.config({
...
@@ -76,7 +76,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
if
(
isNull
(
organizationUtil
.
getCompanyMation
(
dtree
)[
'
nodeId
'
])){
if
(
isNull
(
organizationUtil
.
getCompanyMation
(
dtree
)[
'
nodeId
'
])){
winui
.
window
.
msg
(
'
请选择企业
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
请选择企业
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
return
false
;
...
...
boss/src/main/resources/template/js/bossInterviewQuit/bossInterviewQuitAdd.js
浏览文件 @
1cc43eb6
...
@@ -53,7 +53,7 @@ layui.config({
...
@@ -53,7 +53,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
var
params
=
{
var
params
=
{
leaveTime
:
$
(
"
#leaveTime
"
).
val
(),
leaveTime
:
$
(
"
#leaveTime
"
).
val
(),
leaveType
:
$
(
"
#leaveType
"
).
val
(),
leaveType
:
$
(
"
#leaveType
"
).
val
(),
...
...
boss/src/main/resources/template/js/bossInterviewQuit/bossInterviewQuitEdit.js
浏览文件 @
1cc43eb6
...
@@ -69,7 +69,7 @@ layui.config({
...
@@ -69,7 +69,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
var
params
=
{
var
params
=
{
leaveTime
:
$
(
"
#leaveTime
"
).
val
(),
leaveTime
:
$
(
"
#leaveTime
"
).
val
(),
leaveType
:
$
(
"
#leaveType
"
).
val
(),
leaveType
:
$
(
"
#leaveType
"
).
val
(),
...
...
boss/src/main/resources/template/js/bossInterviewRegularWorker/bossInterviewRegularWorkerAdd.js
浏览文件 @
1cc43eb6
...
@@ -52,7 +52,7 @@ layui.config({
...
@@ -52,7 +52,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
var
params
=
{
var
params
=
{
departmentId
:
$
(
"
#departmentId
"
).
attr
(
"
departmentId
"
),
departmentId
:
$
(
"
#departmentId
"
).
attr
(
"
departmentId
"
),
jobId
:
$
(
"
#jobId
"
).
attr
(
"
jobId
"
),
jobId
:
$
(
"
#jobId
"
).
attr
(
"
jobId
"
),
...
...
boss/src/main/resources/template/js/bossInterviewRegularWorker/bossInterviewRegularWorkerEdit.js
浏览文件 @
1cc43eb6
...
@@ -64,7 +64,7 @@ layui.config({
...
@@ -64,7 +64,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
var
params
=
{
var
params
=
{
departmentId
:
$
(
"
#departmentId
"
).
attr
(
"
departmentId
"
),
departmentId
:
$
(
"
#departmentId
"
).
attr
(
"
departmentId
"
),
jobId
:
$
(
"
#jobId
"
).
attr
(
"
jobId
"
),
jobId
:
$
(
"
#jobId
"
).
attr
(
"
jobId
"
),
...
...
boss/src/main/resources/template/js/bossPersonRequire/bossPersonRequireAdd.js
浏览文件 @
1cc43eb6
...
@@ -46,7 +46,7 @@ layui.config({
...
@@ -46,7 +46,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
var
params
=
{
var
params
=
{
recruitDepartmentId
:
$
(
"
#recruitDepartmentId
"
).
attr
(
"
departmentId
"
),
recruitDepartmentId
:
$
(
"
#recruitDepartmentId
"
).
attr
(
"
departmentId
"
),
recruitJobId
:
$
(
"
#recruitJobId
"
).
val
(),
recruitJobId
:
$
(
"
#recruitJobId
"
).
val
(),
...
...
boss/src/main/resources/template/js/bossPersonRequire/bossPersonRequireEdit.js
浏览文件 @
1cc43eb6
...
@@ -66,7 +66,7 @@ layui.config({
...
@@ -66,7 +66,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
var
params
=
{
var
params
=
{
recruitDepartmentId
:
$
(
"
#recruitDepartmentId
"
).
attr
(
"
departmentId
"
),
recruitDepartmentId
:
$
(
"
#recruitDepartmentId
"
).
attr
(
"
departmentId
"
),
recruitJobId
:
$
(
"
#recruitJobId
"
).
val
(),
recruitJobId
:
$
(
"
#recruitJobId
"
).
val
(),
...
...
checkwork/src/main/resources/template/js/checkWorkBusinessTrip/checkWorkBusinessTripAdd.js
浏览文件 @
1cc43eb6
...
@@ -81,7 +81,7 @@ layui.config({
...
@@ -81,7 +81,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取出差日期数据
// 获取出差日期数据
var
rowTr
=
$
(
"
#beanTable tr
"
);
var
rowTr
=
$
(
"
#beanTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
checkwork/src/main/resources/template/js/checkWorkBusinessTrip/checkWorkBusinessTripEdit.js
浏览文件 @
1cc43eb6
...
@@ -107,7 +107,7 @@ layui.config({
...
@@ -107,7 +107,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取出差日期数据
// 获取出差日期数据
var
rowTr
=
$
(
"
#beanTable tr
"
);
var
rowTr
=
$
(
"
#beanTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
checkwork/src/main/resources/template/js/checkWorkCancelLeave/checkWorkCancelLeaveAdd.js
浏览文件 @
1cc43eb6
...
@@ -104,7 +104,7 @@ layui.config({
...
@@ -104,7 +104,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取销假日期数据
// 获取销假日期数据
var
rowTr
=
$
(
"
#beanTable tr
"
);
var
rowTr
=
$
(
"
#beanTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
checkwork/src/main/resources/template/js/checkWorkCancelLeave/checkWorkCancelLeaveEdit.js
浏览文件 @
1cc43eb6
...
@@ -129,7 +129,7 @@ layui.config({
...
@@ -129,7 +129,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取销假日期数据
// 获取销假日期数据
var
rowTr
=
$
(
"
#beanTable tr
"
);
var
rowTr
=
$
(
"
#beanTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
checkwork/src/main/resources/template/js/checkWorkLeave/checkWorkLeaveAdd.js
浏览文件 @
1cc43eb6
...
@@ -132,7 +132,7 @@ layui.config({
...
@@ -132,7 +132,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取请假日期数据
// 获取请假日期数据
var
rowTr
=
$
(
"
#beanTable tr
"
);
var
rowTr
=
$
(
"
#beanTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
checkwork/src/main/resources/template/js/checkWorkLeave/checkWorkLeaveEdit.js
浏览文件 @
1cc43eb6
...
@@ -158,7 +158,7 @@ layui.config({
...
@@ -158,7 +158,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取请假日期数据
// 获取请假日期数据
var
rowTr
=
$
(
"
#beanTable tr
"
);
var
rowTr
=
$
(
"
#beanTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
checkwork/src/main/resources/template/js/checkWorkOvertime/checkWorkOvertimeAdd.js
浏览文件 @
1cc43eb6
...
@@ -48,7 +48,7 @@ layui.config({
...
@@ -48,7 +48,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取加班日期数据
// 获取加班日期数据
var
rowTr
=
$
(
"
#beanTable tr
"
);
var
rowTr
=
$
(
"
#beanTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
checkwork/src/main/resources/template/js/checkWorkOvertime/checkWorkOvertimeEdit.js
浏览文件 @
1cc43eb6
...
@@ -73,7 +73,7 @@ layui.config({
...
@@ -73,7 +73,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取加班日期数据
// 获取加班日期数据
var
rowTr
=
$
(
"
#beanTable tr
"
);
var
rowTr
=
$
(
"
#beanTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
crm/src/main/resources/template/js/crmOpportunity/crmopportunityadd.js
浏览文件 @
1cc43eb6
...
@@ -56,7 +56,7 @@ layui.config({
...
@@ -56,7 +56,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
if
(
isNull
(
customerMation
.
id
)){
if
(
isNull
(
customerMation
.
id
)){
winui
.
window
.
msg
(
'
请选择客户.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
请选择客户.
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
return
false
;
...
...
crm/src/main/resources/template/js/crmOpportunity/crmopportunityedit.js
浏览文件 @
1cc43eb6
...
@@ -170,7 +170,7 @@ layui.config({
...
@@ -170,7 +170,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
if
(
isNull
(
customerMation
.
id
)){
if
(
isNull
(
customerMation
.
id
)){
winui
.
window
.
msg
(
'
请选择客户.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
请选择客户.
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
return
false
;
...
...
crm/src/main/resources/template/js/crmcontractmanage/mycrmcontractedit.js
浏览文件 @
1cc43eb6
...
@@ -139,7 +139,7 @@ layui.config({
...
@@ -139,7 +139,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
if
(
isNull
(
customerMation
.
id
)){
if
(
isNull
(
customerMation
.
id
)){
winui
.
window
.
msg
(
"
请选择客户
"
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
"
请选择客户
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
return
false
;
...
...
erp/src/main/resources/template/js/otheroutlets/otheroutletsadd.js
浏览文件 @
1cc43eb6
...
@@ -108,7 +108,7 @@ layui.config({
...
@@ -108,7 +108,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
if
(
isNull
(
customerMation
.
id
)){
if
(
isNull
(
customerMation
.
id
)){
winui
.
window
.
msg
(
'
请选择客户.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
请选择客户.
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
return
false
;
...
...
erp/src/main/resources/template/js/otheroutlets/otheroutletsedit.js
浏览文件 @
1cc43eb6
...
@@ -172,7 +172,7 @@ layui.config({
...
@@ -172,7 +172,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
if
(
isNull
(
customerMation
.
id
)){
if
(
isNull
(
customerMation
.
id
)){
winui
.
window
.
msg
(
'
请选择客户.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
请选择客户.
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
return
false
;
...
...
erp/src/main/resources/template/js/otherwarehous/otherwarehousadd.js
浏览文件 @
1cc43eb6
...
@@ -106,7 +106,7 @@ layui.config({
...
@@ -106,7 +106,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
//获取已选商品数据
//获取已选商品数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
erp/src/main/resources/template/js/otherwarehous/otherwarehousedit.js
浏览文件 @
1cc43eb6
...
@@ -169,7 +169,7 @@ layui.config({
...
@@ -169,7 +169,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
//获取已选商品数据
//获取已选商品数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
erp/src/main/resources/template/js/purchaseorder/purchaseorderadd.js
浏览文件 @
1cc43eb6
...
@@ -130,10 +130,13 @@ layui.config({
...
@@ -130,10 +130,13 @@ layui.config({
});
});
function
saveData
(
subType
,
approvalId
)
{
function
saveData
(
subType
,
approvalId
)
{
var
dataList
=
initTableChooseUtil
.
getDataList
(
'
productList
'
);
var
result
=
initTableChooseUtil
.
getDataList
(
'
productList
'
);
if
(
!
result
.
checkResult
)
{
return
false
;
}
var
noError
=
false
;
var
noError
=
false
;
var
tableData
=
[];
var
tableData
=
[];
$
.
each
(
dataList
,
function
(
i
,
item
)
{
$
.
each
(
result
.
dataList
,
function
(
i
,
item
)
{
//获取行编号
//获取行编号
var
thisRowKey
=
item
[
"
trcusid
"
].
replace
(
"
tr
"
,
""
);
var
thisRowKey
=
item
[
"
trcusid
"
].
replace
(
"
tr
"
,
""
);
if
(
parseInt
(
item
.
rkNum
)
==
0
)
{
if
(
parseInt
(
item
.
rkNum
)
==
0
)
{
...
...
erp/src/main/resources/template/js/purchaseorder/purchaseorderedit.js
浏览文件 @
1cc43eb6
//生产订单信息
//
生产订单信息
var
productionMation
=
{};
var
productionMation
=
{};
//根据那一列的值进行变化,默认根据数量
//
根据那一列的值进行变化,默认根据数量
var
showTdByEdit
=
'
rkNum
'
;
var
showTdByEdit
=
'
rkNum
'
;
//表格的序号
var
rowNum
=
1
;
// 兼容动态表单
// 兼容动态表单
var
layedit
,
form
;
var
layedit
,
form
;
...
@@ -26,7 +24,6 @@ layui.config({
...
@@ -26,7 +24,6 @@ layui.config({
layedit
=
layui
.
layedit
,
layedit
=
layui
.
layedit
,
form
=
layui
.
form
;
form
=
layui
.
form
;
var
usetableTemplate
=
$
(
"
#usetableTemplate
"
).
html
();
var
selOption
=
getFileContent
(
'
tpl/template/select-option.tpl
'
);
var
selOption
=
getFileContent
(
'
tpl/template/select-option.tpl
'
);
//已经选择的商品集合key:表格的行trId,value:商品信息
//已经选择的商品集合key:表格的行trId,value:商品信息
var
allChooseProduct
=
{};
var
allChooseProduct
=
{};
...
@@ -79,25 +76,28 @@ layui.config({
...
@@ -79,25 +76,28 @@ layui.config({
$
(
"
#arrears
"
).
html
(
json
.
bean
.
arrears
.
toFixed
(
2
));
$
(
"
#arrears
"
).
html
(
json
.
bean
.
arrears
.
toFixed
(
2
));
$
(
"
#planComplateTime
"
).
val
(
json
.
bean
.
planComplateTime
);
$
(
"
#planComplateTime
"
).
val
(
json
.
bean
.
planComplateTime
);
// 加载子单据
initTable
();
$
.
each
(
json
.
bean
.
norms
,
function
(
i
,
item
){
initTableChooseUtil
.
deleteAllRow
(
'
productList
'
);
addRow
();
$
.
each
(
json
.
bean
.
norms
,
function
(
i
,
item
)
{
var
params
=
{
"
materialId
"
:
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
productModel
+
"
)
"
,
"
mUnitId
"
:
{
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
value
"
:
item
.
mUnitId
},
"
currentTock
"
:
item
.
currentTock
,
"
rkNum
"
:
item
.
operNum
,
"
unitPrice
"
:
item
.
unitPrice
.
toFixed
(
2
),
"
amountOfMoney
"
:
item
.
allPrice
.
toFixed
(
2
),
"
taxRate
"
:
item
.
taxRate
.
toFixed
(
2
),
"
taxMoney
"
:
item
.
taxMoney
.
toFixed
(
2
),
"
taxUnitPrice
"
:
item
.
taxUnitPrice
.
toFixed
(
2
),
"
taxLastMoney
"
:
item
.
taxLastMoney
.
toFixed
(
2
),
"
remark
"
:
item
.
remark
};
var
trcusid
=
initTableChooseUtil
.
resetData
(
'
productList
'
,
params
);
// 将规格所属的商品信息加入到对象中存储
// 将规格所属的商品信息加入到对象中存储
allChooseProduct
[
"
tr
"
+
(
rowNum
-
1
)]
=
item
.
product
;
allChooseProduct
[
trcusid
]
=
item
.
product
;
// 单位回显
$
(
"
#unitId
"
+
(
rowNum
-
1
)).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}));
$
(
"
#unitId
"
+
(
rowNum
-
1
)).
val
(
item
.
mUnitId
);
// 商品回显
$
(
"
#materialId
"
+
(
rowNum
-
1
)).
val
(
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
productModel
+
"
)
"
);
$
(
"
#currentTock
"
+
(
rowNum
-
1
)).
html
(
item
.
currentTock
);
//库存回显
$
(
"
#rkNum
"
+
(
rowNum
-
1
)).
val
(
item
.
operNum
);
$
(
"
#unitPrice
"
+
(
rowNum
-
1
)).
val
(
item
.
unitPrice
.
toFixed
(
2
));
$
(
"
#amountOfMoney
"
+
(
rowNum
-
1
)).
val
(
item
.
allPrice
.
toFixed
(
2
));
$
(
"
#taxRate
"
+
(
rowNum
-
1
)).
val
(
item
.
taxRate
.
toFixed
(
2
));
$
(
"
#taxMoney
"
+
(
rowNum
-
1
)).
val
(
item
.
taxMoney
.
toFixed
(
2
));
$
(
"
#taxUnitPrice
"
+
(
rowNum
-
1
)).
val
(
item
.
taxUnitPrice
.
toFixed
(
2
));
$
(
"
#taxLastMoney
"
+
(
rowNum
-
1
)).
val
(
item
.
taxLastMoney
.
toFixed
(
2
));
$
(
"
#remark
"
+
(
rowNum
-
1
)).
val
(
item
.
remark
);
});
});
textool
.
init
({
eleId
:
'
remark
'
,
maxlength
:
200
});
textool
.
init
({
eleId
:
'
remark
'
,
maxlength
:
200
});
...
@@ -111,30 +111,60 @@ layui.config({
...
@@ -111,30 +111,60 @@ layui.config({
}});
}});
}
}
function
initTable
()
{
initTableChooseUtil
.
initTable
({
id
:
"
productList
"
,
cols
:
[
{
id
:
'
materialId
'
,
title
:
'
商品(型号)
'
,
formType
:
'
chooseInput
'
,
width
:
'
150
'
,
iconClassName
:
'
chooseProductBtn
'
,
verify
:
'
required
'
},
{
id
:
'
mUnitId
'
,
title
:
'
单位
'
,
formType
:
'
select
'
,
width
:
'
50
'
,
verify
:
'
required
'
,
layFilter
:
'
selectUnitProperty
'
},
{
id
:
'
currentTock
'
,
title
:
'
库存
'
,
formType
:
'
detail
'
,
width
:
'
80
'
},
{
id
:
'
rkNum
'
,
title
:
'
数量
'
,
formType
:
'
input
'
,
width
:
'
80
'
,
className
:
'
change-input rkNum
'
,
verify
:
'
required|number
'
,
value
:
'
1
'
},
{
id
:
'
unitPrice
'
,
title
:
'
单价
'
,
formType
:
'
input
'
,
width
:
'
80
'
,
className
:
'
change-input unitPrice
'
,
verify
:
'
required|money
'
},
{
id
:
'
amountOfMoney
'
,
title
:
'
金额
'
,
formType
:
'
input
'
,
width
:
'
80
'
,
className
:
'
change-input amountOfMoney
'
,
verify
:
'
required|money
'
},
{
id
:
'
taxRate
'
,
title
:
'
税率(%)
'
,
formType
:
'
input
'
,
width
:
'
80
'
,
className
:
'
change-input taxRate
'
,
verify
:
'
required|double
'
,
value
:
'
0.00
'
},
{
id
:
'
taxMoney
'
,
title
:
'
税额
'
,
formType
:
'
input
'
,
width
:
'
80
'
,
className
:
'
change-input taxMoney
'
,
verify
:
'
required|money
'
},
{
id
:
'
taxUnitPrice
'
,
title
:
'
含税单价
'
,
formType
:
'
input
'
,
width
:
'
80
'
,
className
:
'
change-input taxUnitPrice
'
,
verify
:
'
required|money
'
},
{
id
:
'
taxLastMoney
'
,
title
:
'
合计价税
'
,
formType
:
'
input
'
,
width
:
'
80
'
,
className
:
'
change-input taxLastMoney
'
,
verify
:
'
required|money
'
},
{
id
:
'
remark
'
,
title
:
'
备注
'
,
formType
:
'
input
'
,
width
:
'
100
'
}
],
deleteRowCallback
:
function
(
trcusid
)
{
delete
allChooseProduct
[
trcusid
];
// 计算价格
calculatedTotalPrice
();
},
addRowCallback
:
function
(
trcusid
)
{
// 设置根据某列变化的颜色
$
(
"
.
"
+
showTdByEdit
).
parent
().
css
({
'
background-color
'
:
'
#e6e6e6
'
});
},
form
:
form
});
}
//商品规格加载变化事件
//商品规格加载变化事件
form
.
on
(
'
select(selectUnitProperty)
'
,
function
(
data
)
{
form
.
on
(
'
select(selectUnitProperty)
'
,
function
(
data
)
{
var
thisRowValue
=
data
.
value
;
var
thisRowValue
=
data
.
value
;
var
thisRow
Num
=
data
.
elem
.
id
.
replace
(
"
unitId
"
,
""
);
//获取当前行
var
thisRow
Key
=
data
.
elem
.
id
.
replace
(
"
mUnitId
"
,
""
).
toString
();
//当前当前行选中的商品信息
//
当前当前行选中的商品信息
if
(
!
isNull
(
thisRowValue
)
&&
thisRowValue
!=
'
请选择
'
)
{
if
(
!
isNull
(
thisRowValue
)
)
{
var
product
=
allChooseProduct
[
"
tr
"
+
thisRow
Num
.
toString
()
];
var
product
=
allChooseProduct
[
"
tr
"
+
thisRow
Key
];
$
.
each
(
product
.
unitList
,
function
(
j
,
bean
)
{
$
.
each
(
product
.
unitList
,
function
(
j
,
bean
)
{
if
(
thisRowValue
==
bean
.
id
){
//获取规格
if
(
thisRowValue
==
bean
.
id
)
{
//获取当前行数量
var
rkNum
=
parseInt
(
$
(
"
#rkNum
"
+
thisRowKey
).
val
());
var
rkNum
=
parseInt
(
$
(
"
#rkNum
"
+
thisRowNum
).
val
());
// 设置单价和金额
$
(
"
#unitPrice
"
+
thisRow
Num
).
val
(
bean
.
estimatePurchasePrice
.
toFixed
(
2
));
//单价
$
(
"
#unitPrice
"
+
thisRow
Key
).
val
(
bean
.
estimatePurchasePrice
.
toFixed
(
2
));
$
(
"
#amountOfMoney
"
+
thisRow
Num
).
val
((
rkNum
*
parseFloat
(
bean
.
estimatePurchasePrice
)).
toFixed
(
2
));
//金额
$
(
"
#amountOfMoney
"
+
thisRow
Key
).
val
((
rkNum
*
parseFloat
(
bean
.
estimatePurchasePrice
)).
toFixed
(
2
));
return
false
;
return
false
;
}
}
});
});
}
else
{
}
else
{
$
(
"
#unitPrice
"
+
thisRowNum
).
val
(
"
0.00
"
);
//重置单价为空
// 重置单价以及金额为空
$
(
"
#amountOfMoney
"
+
thisRowNum
).
val
(
"
0.00
"
);
//重置金额为空
$
(
"
#unitPrice
"
+
thisRowKey
).
val
(
"
0.00
"
);
$
(
"
#amountOfMoney
"
+
thisRowKey
).
val
(
"
0.00
"
);
}
}
//加载库存
//
加载库存
loadTockByDepotAndMUnit
(
thisRow
Num
,
""
);
loadTockByDepotAndMUnit
(
thisRow
Key
,
""
);
//计算价格
//
计算价格
calculatedTotalPrice
();
calculatedTotalPrice
();
});
});
...
@@ -172,48 +202,34 @@ layui.config({
...
@@ -172,48 +202,34 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
//获取已选商品数据
var
result
=
initTableChooseUtil
.
getDataList
(
'
productList
'
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
!
result
.
checkResult
)
{
if
(
rowTr
.
length
==
0
)
{
winui
.
window
.
msg
(
'
请选择商品.
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
return
false
;
}
}
var
tableData
=
new
Array
()
;
var
noError
=
false
;
var
noError
=
false
;
//循环遍历表格数据时,是否有其他错误信息
var
tableData
=
[];
$
.
each
(
r
owTr
,
function
(
i
,
item
)
{
$
.
each
(
r
esult
.
dataList
,
function
(
i
,
item
)
{
//获取行编号
//获取行编号
var
rowNum
=
$
(
item
).
attr
(
"
trcusid
"
).
replace
(
"
tr
"
,
""
);
var
thisRowKey
=
item
[
"
trcusid
"
].
replace
(
"
tr
"
,
""
);
//表格数量对象
if
(
parseInt
(
item
.
rkNum
)
==
0
)
{
var
rkNum
=
$
(
"
#rkNum
"
+
rowNum
);
$
(
"
#rkNum
"
+
thisRowKey
).
addClass
(
"
layui-form-danger
"
);
if
(
parseInt
(
rkNum
.
val
())
==
0
)
{
$
(
"
#rkNum
"
+
thisRowKey
).
focus
();
rkNum
.
addClass
(
"
layui-form-danger
"
);
rkNum
.
focus
();
winui
.
window
.
msg
(
'
数量不能为0
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
数量不能为0
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
//商品对象
//商品对象
var
product
=
allChooseProduct
[
"
tr
"
+
rowNum
.
toString
()
];
var
product
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
product
.
productId
,
$
(
"
#unitId
"
+
rowNum
).
val
()
,
tableData
))
{
if
(
inTableDataArrayByAssetarId
(
product
.
productId
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
noError
=
true
;
return
false
;
return
false
;
}
}
var
row
=
{
item
[
"
materialId
"
]
=
product
.
productId
;
materialId
:
product
.
productId
,
tableData
.
push
(
item
);
mUnitId
:
$
(
"
#unitId
"
+
rowNum
).
val
(),
rkNum
:
rkNum
.
val
(),
unitPrice
:
$
(
"
#unitPrice
"
+
rowNum
).
val
(),
taxRate
:
$
(
"
#taxRate
"
+
rowNum
).
val
(),
taxMoney
:
$
(
"
#taxMoney
"
+
rowNum
).
val
(),
taxUnitPrice
:
$
(
"
#taxUnitPrice
"
+
rowNum
).
val
(),
taxLastMoney
:
$
(
"
#taxLastMoney
"
+
rowNum
).
val
(),
remark
:
$
(
"
#remark
"
+
rowNum
).
val
()
};
tableData
.
push
(
row
);
});
});
if
(
noError
)
{
if
(
noError
)
{
return
false
;
return
false
;
}
}
...
@@ -241,58 +257,6 @@ layui.config({
...
@@ -241,58 +257,6 @@ layui.config({
}});
}});
}
}
//新增行
$
(
"
body
"
).
on
(
"
click
"
,
"
#addRow
"
,
function
()
{
addRow
();
});
//删除行
$
(
"
body
"
).
on
(
"
click
"
,
"
#deleteRow
"
,
function
()
{
deleteRow
();
//计算价格
calculatedTotalPrice
();
});
//新增行
function
addRow
()
{
var
par
=
{
id
:
"
row
"
+
rowNum
.
toString
(),
//checkbox的id
trId
:
"
tr
"
+
rowNum
.
toString
(),
//行的id
materialId
:
"
materialId
"
+
rowNum
.
toString
(),
//商品id
unitId
:
"
unitId
"
+
rowNum
.
toString
(),
//规格id
currentTock
:
"
currentTock
"
+
rowNum
.
toString
(),
//库存id
rkNum
:
"
rkNum
"
+
rowNum
.
toString
(),
//数量id
unitPrice
:
"
unitPrice
"
+
rowNum
.
toString
(),
//单价id
amountOfMoney
:
"
amountOfMoney
"
+
rowNum
.
toString
(),
//金额id
taxRate
:
"
taxRate
"
+
rowNum
.
toString
(),
//税率id
taxMoney
:
"
taxMoney
"
+
rowNum
.
toString
(),
//税额id
taxUnitPrice
:
"
taxUnitPrice
"
+
rowNum
.
toString
(),
//含税单价id
taxLastMoney
:
"
taxLastMoney
"
+
rowNum
.
toString
(),
//含税合计id
remark
:
"
remark
"
+
rowNum
.
toString
()
//备注id
};
$
(
"
#useTable
"
).
append
(
getDataUseHandlebars
(
usetableTemplate
,
par
));
form
.
render
();
rowNum
++
;
//设置根据某列变化的颜色
$
(
"
.
"
+
showTdByEdit
).
parent
().
css
({
'
background-color
'
:
'
#e6e6e6
'
});
}
//删除行
function
deleteRow
()
{
var
checkRow
=
$
(
"
#useTable input[type='checkbox'][name='tableCheckRow']:checked
"
);
if
(
checkRow
.
length
>
0
)
{
$
.
each
(
checkRow
,
function
(
i
,
item
)
{
//删除allChooseProduct已选择的商品信息
var
trId
=
$
(
item
).
parent
().
parent
().
attr
(
"
trcusid
"
);
allChooseProduct
[
trId
]
=
undefined
;
//移除界面上的信息
$
(
item
).
parent
().
parent
().
remove
();
});
}
else
{
winui
.
window
.
msg
(
'
请选择要删除的行
'
,
{
icon
:
2
,
time
:
2000
});
}
}
// 供应商选择
// 供应商选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#supplierNameSel
"
,
function
(
e
)
{
$
(
"
body
"
).
on
(
"
click
"
,
"
#supplierNameSel
"
,
function
(
e
)
{
sysSupplierUtil
.
openSysSupplierChoosePage
(
function
(
supplierMation
){
sysSupplierUtil
.
openSysSupplierChoosePage
(
function
(
supplierMation
){
...
@@ -300,64 +264,58 @@ layui.config({
...
@@ -300,64 +264,58 @@ layui.config({
});
});
});
});
//商品选择
//
商品选择
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
)
{
$
(
"
body
"
).
on
(
"
click
"
,
"
.chooseProductBtn
"
,
function
(
e
)
{
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
var
trId
=
$
(
this
).
parent
().
parent
().
attr
(
"
trcusid
"
);
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
erpOrderUtil
.
openMaterialChooseChoosePage
(
function
(
chooseProductMation
)
{
//获取表格行号
//
获取表格行号
var
thisRow
Num
=
trId
.
replace
(
"
tr
"
,
""
);
var
thisRow
Key
=
trId
.
replace
(
"
tr
"
,
""
);
//商品赋值
//
商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
allChooseProduct
[
trId
]
=
chooseProductMation
;
//表格商品名称赋值
//
表格商品名称赋值
$
(
"
#materialId
"
+
thisRow
Num
.
toString
()).
val
(
allChooseProduct
[
trId
].
productName
+
"
(
"
+
allChooseProduct
[
trId
]
.
productModel
+
"
)
"
);
$
(
"
#materialId
"
+
thisRow
Key
.
toString
()).
val
(
chooseProductMation
.
productName
+
"
(
"
+
chooseProductMation
.
productModel
+
"
)
"
);
//表格单位赋值
//
表格单位赋值
$
(
"
#
unitId
"
+
thisRowNum
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
allChooseProduct
[
trId
]
.
unitList
}));
$
(
"
#
mUnitId
"
+
thisRowKey
.
toString
()).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
chooseProductMation
.
unitList
}));
form
.
render
(
'
select
'
);
form
.
render
(
'
select
'
);
//计算价格
//计算价格
calculatedTotalPrice
();
calculatedTotalPrice
();
});
});
});
});
//生产计划单选择
//
生产计划单选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#productionOrderSel
"
,
function
(
e
)
{
$
(
"
body
"
).
on
(
"
click
"
,
"
#productionOrderSel
"
,
function
(
e
)
{
_openNewWindows
({
_openNewWindows
({
url
:
"
../../tpl/erpProduction/erpProductionNoSuccessChoose.html
"
,
url
:
"
../../tpl/erpProduction/erpProductionNoSuccessChoose.html
"
,
title
:
"
选择生产计划单
"
,
title
:
"
选择生产计划单
"
,
pageId
:
"
erpProductionNoSuccessChoose
"
,
pageId
:
"
erpProductionNoSuccessChoose
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
){
callBack
:
function
(
refreshCode
)
{
$
(
"
#productionOrder
"
).
val
(
productionMation
.
defaultNumber
);
$
(
"
#productionOrder
"
).
val
(
productionMation
.
defaultNumber
);
//移除之前填写的所有行
initTableChooseUtil
.
deleteAllRow
(
'
productList
'
);
var
checkRow
=
$
(
"
#useTable input[type='checkbox'][name='tableCheckRow']
"
);
$
.
each
(
productionMation
.
norms
,
function
(
i
,
item
)
{
$
.
each
(
checkRow
,
function
(
i
,
item
)
{
var
params
=
{
//删除allChooseProduct已选择的商品信息
"
materialId
"
:
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
productModel
+
"
)
"
,
var
trId
=
$
(
item
).
parent
().
parent
().
attr
(
"
trcusid
"
);
"
mUnitId
"
:
{
allChooseProduct
[
trId
]
=
undefined
;
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
//移除界面上的信息
"
value
"
:
item
.
normsId
$
(
item
).
parent
().
parent
().
remove
();
},
});
"
currentTock
"
:
item
.
currentTock
,
$
.
each
(
productionMation
.
norms
,
function
(
i
,
item
){
"
rkNum
"
:
item
.
needNum
,
addRow
();
"
unitPrice
"
:
item
.
unitPrice
.
toFixed
(
2
),
//将规格所属的商品信息加入到对象中存储
"
amountOfMoney
"
:
item
.
allPrice
.
toFixed
(
2
),
allChooseProduct
[
"
tr
"
+
(
rowNum
-
1
)]
=
item
.
product
;
"
taxRate
"
:
item
.
taxRate
.
toFixed
(
2
),
//单位回显
"
taxMoney
"
:
item
.
taxMoney
.
toFixed
(
2
),
$
(
"
#unitId
"
+
(
rowNum
-
1
)).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}));
"
taxUnitPrice
"
:
item
.
taxUnitPrice
.
toFixed
(
2
),
$
(
"
#unitId
"
+
(
rowNum
-
1
)).
val
(
item
.
normsId
);
"
taxLastMoney
"
:
item
.
taxLastMoney
.
toFixed
(
2
)
//商品回显
};
$
(
"
#materialId
"
+
(
rowNum
-
1
)).
val
(
item
.
product
.
productName
+
"
(
"
+
item
.
product
.
productModel
+
"
)
"
);
var
trcusid
=
initTableChooseUtil
.
resetData
(
'
productList
'
,
params
);
$
(
"
#currentTock
"
+
(
rowNum
-
1
)).
html
(
item
.
currentTock
);
//库存回显
// 将规格所属的商品信息加入到对象中存储
$
(
"
#rkNum
"
+
(
rowNum
-
1
)).
val
(
item
.
needNum
);
allChooseProduct
[
trcusid
]
=
item
.
product
;
$
(
"
#unitPrice
"
+
(
rowNum
-
1
)).
val
(
item
.
unitPrice
.
toFixed
(
2
));
$
(
"
#amountOfMoney
"
+
(
rowNum
-
1
)).
val
(
item
.
allPrice
.
toFixed
(
2
));
$
(
"
#taxRate
"
+
(
rowNum
-
1
)).
val
(
item
.
taxRate
.
toFixed
(
2
));
$
(
"
#taxMoney
"
+
(
rowNum
-
1
)).
val
(
item
.
taxMoney
.
toFixed
(
2
));
$
(
"
#taxUnitPrice
"
+
(
rowNum
-
1
)).
val
(
item
.
taxUnitPrice
.
toFixed
(
2
));
$
(
"
#taxLastMoney
"
+
(
rowNum
-
1
)).
val
(
item
.
taxLastMoney
.
toFixed
(
2
));
});
});
//渲染
//
渲染
form
.
render
();
form
.
render
();
//计算价格
//
计算价格
calculatedTotalPrice
();
calculatedTotalPrice
();
}});
}});
});
});
...
...
erp/src/main/resources/template/js/purchaseorder/purchaseorderpurchase.js
浏览文件 @
1cc43eb6
...
@@ -182,7 +182,7 @@ layui.config({
...
@@ -182,7 +182,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
//获取已选商品数据
//获取已选商品数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
erp/src/main/resources/template/js/purchaseput/purchaseputadd.js
浏览文件 @
1cc43eb6
...
@@ -118,7 +118,7 @@ layui.config({
...
@@ -118,7 +118,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
//获取已选商品数据
//获取已选商品数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
erp/src/main/resources/template/js/purchaseput/purchaseputedit.js
浏览文件 @
1cc43eb6
...
@@ -194,7 +194,7 @@ layui.config({
...
@@ -194,7 +194,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
//获取已选商品数据
//获取已选商品数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
erp/src/main/resources/template/js/purchasereturns/purchasereturnsadd.js
浏览文件 @
1cc43eb6
...
@@ -120,7 +120,7 @@ layui.config({
...
@@ -120,7 +120,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
//获取已选商品数据
//获取已选商品数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
erp/src/main/resources/template/js/purchasereturns/purchasereturnsedit.js
浏览文件 @
1cc43eb6
...
@@ -189,7 +189,7 @@ layui.config({
...
@@ -189,7 +189,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
//获取已选商品数据
//获取已选商品数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
erp/src/main/resources/template/js/retailoutlet/retailoutletadd.js
浏览文件 @
1cc43eb6
...
@@ -167,7 +167,7 @@ layui.config({
...
@@ -167,7 +167,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取已选商品数据
// 获取已选商品数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
erp/src/main/resources/template/js/retailoutlet/retailoutletedit.js
浏览文件 @
1cc43eb6
...
@@ -227,7 +227,7 @@ layui.config({
...
@@ -227,7 +227,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
//获取已选商品数据
//获取已选商品数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
erp/src/main/resources/template/js/retailreturns/retailreturnsadd.js
浏览文件 @
1cc43eb6
...
@@ -165,7 +165,7 @@ layui.config({
...
@@ -165,7 +165,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
//获取已选商品数据
//获取已选商品数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
erp/src/main/resources/template/js/retailreturns/retailreturnsedit.js
浏览文件 @
1cc43eb6
...
@@ -225,7 +225,7 @@ layui.config({
...
@@ -225,7 +225,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
//获取已选商品数据
//获取已选商品数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
if
(
rowTr
.
length
==
0
)
{
if
(
rowTr
.
length
==
0
)
{
...
...
erp/src/main/resources/template/js/salesorder/salesorderadd.js
浏览文件 @
1cc43eb6
...
@@ -111,7 +111,7 @@ layui.config({
...
@@ -111,7 +111,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
if
(
isNull
(
customerMation
.
id
)){
if
(
isNull
(
customerMation
.
id
)){
winui
.
window
.
msg
(
'
请选择客户.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
请选择客户.
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
return
false
;
...
...
erp/src/main/resources/template/js/salesorder/salesorderedit.js
浏览文件 @
1cc43eb6
...
@@ -194,7 +194,7 @@ layui.config({
...
@@ -194,7 +194,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
if
(
isNull
(
customerMation
.
id
)){
if
(
isNull
(
customerMation
.
id
)){
winui
.
window
.
msg
(
'
请选择客户.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
请选择客户.
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
return
false
;
...
...
erp/src/main/resources/template/js/salesorder/salesorderpurchase.js
浏览文件 @
1cc43eb6
...
@@ -199,7 +199,7 @@ layui.config({
...
@@ -199,7 +199,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
if
(
isNull
(
customerMation
.
id
)){
if
(
isNull
(
customerMation
.
id
)){
winui
.
window
.
msg
(
'
请选择客户.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
请选择客户.
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
return
false
;
...
...
erp/src/main/resources/template/js/salesoutlet/salesoutletadd.js
浏览文件 @
1cc43eb6
...
@@ -121,7 +121,7 @@ layui.config({
...
@@ -121,7 +121,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
if
(
isNull
(
customerMation
.
id
)){
if
(
isNull
(
customerMation
.
id
)){
winui
.
window
.
msg
(
'
请选择客户.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
请选择客户.
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
return
false
;
...
...
erp/src/main/resources/template/js/salesoutlet/salesoutletedit.js
浏览文件 @
1cc43eb6
...
@@ -206,7 +206,7 @@ layui.config({
...
@@ -206,7 +206,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
if
(
isNull
(
customerMation
.
id
)){
if
(
isNull
(
customerMation
.
id
)){
winui
.
window
.
msg
(
'
请选择客户.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
请选择客户.
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
return
false
;
...
...
erp/src/main/resources/template/js/salesreturns/salesreturnsadd.js
浏览文件 @
1cc43eb6
...
@@ -123,7 +123,7 @@ layui.config({
...
@@ -123,7 +123,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
if
(
isNull
(
customerMation
.
id
)){
if
(
isNull
(
customerMation
.
id
)){
winui
.
window
.
msg
(
'
请选择客户.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
请选择客户.
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
return
false
;
...
...
erp/src/main/resources/template/js/salesreturns/salesreturnsedit.js
浏览文件 @
1cc43eb6
...
@@ -206,7 +206,7 @@ layui.config({
...
@@ -206,7 +206,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
if
(
isNull
(
customerMation
.
id
)){
if
(
isNull
(
customerMation
.
id
)){
winui
.
window
.
msg
(
'
请选择客户.
'
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
'
请选择客户.
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
return
false
;
...
...
erp/src/main/resources/template/tpl/purchaseorder/purchaseorderedit.html
浏览文件 @
1cc43eb6
...
@@ -40,8 +40,8 @@
...
@@ -40,8 +40,8 @@
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
列表项
<i
class=
"red"
>
*
</i></label>
<label
class=
"layui-form-label"
>
列表项
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
id=
"productList"
>
<div
class=
"winui-toolbar"
>
<
!-- todo 待验证删除 <
div class="winui-toolbar">
<div class="winui-tool" style="text-align: left;">
<div class="winui-tool" style="text-align: left;">
<button id="addRow" class="winui-toolbtn" type="button"><i class="fa fa-plus" aria-hidden="true"></i>新增行</button>
<button id="addRow" class="winui-toolbtn" type="button"><i class="fa fa-plus" aria-hidden="true"></i>新增行</button>
<button id="deleteRow" class="winui-toolbtn" type="button"><i class="fa fa-trash-o" aria-hidden="true"></i>删除行</button>
<button id="deleteRow" class="winui-toolbtn" type="button"><i class="fa fa-trash-o" aria-hidden="true"></i>删除行</button>
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
</thead>
</thead>
<tbody id="useTable" class="insurance-table">
<tbody id="useTable" class="insurance-table">
</tbody>
</tbody>
</table>
</table>
-->
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs4"
>
<div
class=
"layui-form-item layui-col-xs4"
>
...
@@ -148,7 +148,7 @@
...
@@ -148,7 +148,7 @@
</form>
</form>
</div>
</div>
<!--
usetableTemplate -->
<!--
todo 待验证删除 usetableTemplate
<script type="text/x-handlebars-template" id="usetableTemplate">
<script type="text/x-handlebars-template" id="usetableTemplate">
<tr trcusid="{{trId}}">
<tr trcusid="{{trId}}">
<td><input type="checkbox" rowId="{{id}}" lay-filter="checkboxProperty" name="tableCheckRow"/></td>
<td><input type="checkbox" rowId="{{id}}" lay-filter="checkboxProperty" name="tableCheckRow"/></td>
...
@@ -167,7 +167,7 @@
...
@@ -167,7 +167,7 @@
<td><input type="text" class="layui-input change-input taxLastMoney" id="{{taxLastMoney}}" win-verify="required|money"/></td>
<td><input type="text" class="layui-input change-input taxLastMoney" id="{{taxLastMoney}}" win-verify="required|money"/></td>
<td><input type="text" class="layui-input" id="{{remark}}"/></td>
<td><input type="text" class="layui-input" id="{{remark}}"/></td>
</tr>
</tr>
</script>
</script>
-->
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
...
...
ifs/src/main/resources/template/js/income/incomeAdd.js
浏览文件 @
1cc43eb6
...
@@ -66,7 +66,7 @@ layui.config({
...
@@ -66,7 +66,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
var
result
=
voucherUtil
.
getData
();
var
result
=
voucherUtil
.
getData
();
if
(
result
.
length
<
2
){
if
(
result
.
length
<
2
){
return
false
;
return
false
;
...
...
ifs/src/main/resources/template/js/income/incomeEdit.js
浏览文件 @
1cc43eb6
...
@@ -135,7 +135,7 @@ layui.config({
...
@@ -135,7 +135,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
var
result
=
voucherUtil
.
getData
();
var
result
=
voucherUtil
.
getData
();
if
(
result
.
length
<
2
){
if
(
result
.
length
<
2
){
return
false
;
return
false
;
...
...
pro/src/main/resources/template/js/procostexpense/procostexpenseadd.js
浏览文件 @
1cc43eb6
...
@@ -85,7 +85,7 @@ layui.config({
...
@@ -85,7 +85,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取数据
// 获取数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
var
tableData
=
new
Array
();
var
tableData
=
new
Array
();
...
...
pro/src/main/resources/template/js/procostexpense/procostexpenseedit.js
浏览文件 @
1cc43eb6
...
@@ -106,7 +106,7 @@ layui.config({
...
@@ -106,7 +106,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
// 获取数据
// 获取数据
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
var
tableData
=
new
Array
();
var
tableData
=
new
Array
();
...
...
pro/src/main/resources/template/js/profile/profileadd.js
浏览文件 @
1cc43eb6
...
@@ -44,7 +44,7 @@ layui.config({
...
@@ -44,7 +44,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
var
params
=
{
var
params
=
{
title
:
$
(
"
#title
"
).
val
(),
title
:
$
(
"
#title
"
).
val
(),
typeId
:
$
(
"
#fileType
"
).
val
(),
typeId
:
$
(
"
#fileType
"
).
val
(),
...
...
pro/src/main/resources/template/js/profile/profileedit.js
浏览文件 @
1cc43eb6
...
@@ -75,7 +75,7 @@ layui.config({
...
@@ -75,7 +75,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
var
params
=
{
var
params
=
{
rowId
:
parent
.
rowId
,
rowId
:
parent
.
rowId
,
title
:
$
(
"
#title
"
).
val
(),
title
:
$
(
"
#title
"
).
val
(),
...
...
pro/src/main/resources/template/js/proproject/proprojectadd.js
浏览文件 @
1cc43eb6
...
@@ -108,7 +108,7 @@ layui.config({
...
@@ -108,7 +108,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
var
params
=
{
var
params
=
{
projectName
:
$
(
"
#projectName
"
).
val
(),
projectName
:
$
(
"
#projectName
"
).
val
(),
projectNumber
:
$
(
"
#projectNumber
"
).
val
(),
projectNumber
:
$
(
"
#projectNumber
"
).
val
(),
...
...
pro/src/main/resources/template/js/proproject/proprojectedit.js
浏览文件 @
1cc43eb6
...
@@ -142,7 +142,7 @@ layui.config({
...
@@ -142,7 +142,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
var
params
=
{
var
params
=
{
rowId
:
parent
.
rowId
,
rowId
:
parent
.
rowId
,
projectName
:
$
(
"
#projectName
"
).
val
(),
projectName
:
$
(
"
#projectName
"
).
val
(),
...
...
pro/src/main/resources/template/js/protask/protaskadd.js
浏览文件 @
1cc43eb6
...
@@ -86,7 +86,7 @@ layui.config({
...
@@ -86,7 +86,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
var
params
=
{
var
params
=
{
taskName
:
$
(
"
#taskName
"
).
val
(),
taskName
:
$
(
"
#taskName
"
).
val
(),
taskType
:
$
(
"
#taskType
"
).
val
(),
taskType
:
$
(
"
#taskType
"
).
val
(),
...
...
pro/src/main/resources/template/js/protask/protaskedit.js
浏览文件 @
1cc43eb6
...
@@ -141,7 +141,7 @@ layui.config({
...
@@ -141,7 +141,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
var
params
=
{
var
params
=
{
rowId
:
parent
.
rowId
,
rowId
:
parent
.
rowId
,
taskName
:
$
(
"
#taskName
"
).
val
(),
taskName
:
$
(
"
#taskName
"
).
val
(),
...
...
pro/src/main/resources/template/js/proworkload/proworkloadadd.js
浏览文件 @
1cc43eb6
...
@@ -158,7 +158,7 @@ layui.config({
...
@@ -158,7 +158,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
var
tableData
=
new
Array
();
var
tableData
=
new
Array
();
$
.
each
(
rowTr
,
function
(
i
,
item
)
{
$
.
each
(
rowTr
,
function
(
i
,
item
)
{
...
...
pro/src/main/resources/template/js/proworkload/proworkloadedit.js
浏览文件 @
1cc43eb6
...
@@ -197,7 +197,7 @@ layui.config({
...
@@ -197,7 +197,7 @@ layui.config({
return
false
;
return
false
;
});
});
function
saveData
(
subType
,
approvalId
){
function
saveData
(
subType
,
approvalId
)
{
var
rowTr
=
$
(
"
#useTable tr
"
);
var
rowTr
=
$
(
"
#useTable tr
"
);
var
tableData
=
new
Array
();
var
tableData
=
new
Array
();
$
.
each
(
rowTr
,
function
(
i
,
item
)
{
$
.
each
(
rowTr
,
function
(
i
,
item
)
{
...
...
web/src/main/resources/template/assets/lib/layui/customer/tableUtil/initTableChooseUtil.js
浏览文件 @
1cc43eb6
...
@@ -20,6 +20,7 @@ var initTableChooseUtil = {
...
@@ -20,6 +20,7 @@ var initTableChooseUtil = {
deleteRowCallback
:
function
()
{
trcusid
},
// 删除行之后的回调函数
deleteRowCallback
:
function
()
{
trcusid
},
// 删除行之后的回调函数
addRowCallback
:
function
(
trcusid
)
{},
// 新增行之后的回调函数
addRowCallback
:
function
(
trcusid
)
{},
// 新增行之后的回调函数
form
:
null
,
// form表单对象
form
:
null
,
// form表单对象
minData
:
0
,
// 允许的最小数据数
},
// 表格参数数据
},
// 表格参数数据
/**
/**
...
@@ -169,7 +170,7 @@ var initTableChooseUtil = {
...
@@ -169,7 +170,7 @@ var initTableChooseUtil = {
getDataList
:
function
(
tableDivId
)
{
getDataList
:
function
(
tableDivId
)
{
// 获取配置
// 获取配置
var
options
=
initTableChooseUtil
.
setting
[
tableDivId
];
var
options
=
initTableChooseUtil
.
setting
[
tableDivId
];
var
resul
t
=
[];
var
dataLis
t
=
[];
var
rowTr
=
$
(
"
#table
"
+
tableDivId
+
"
tr
"
);
var
rowTr
=
$
(
"
#table
"
+
tableDivId
+
"
tr
"
);
$
.
each
(
rowTr
,
function
(
i
,
item
)
{
$
.
each
(
rowTr
,
function
(
i
,
item
)
{
var
trcusid
=
$
(
item
).
attr
(
"
trcusid
"
);
var
trcusid
=
$
(
item
).
attr
(
"
trcusid
"
);
...
@@ -189,9 +190,18 @@ var initTableChooseUtil = {
...
@@ -189,9 +190,18 @@ var initTableChooseUtil = {
}
}
row
[
bean
.
id
]
=
value
;
row
[
bean
.
id
]
=
value
;
});
});
resul
t
.
push
(
row
);
dataLis
t
.
push
(
row
);
});
});
return
result
;
var
checkResult
=
true
;
if
(
dataList
.
length
<
options
.
minData
)
{
checkResult
=
false
;
winui
.
window
.
msg
(
'
请最少填写
'
+
options
.
minData
+
'
条信息
'
,
{
icon
:
2
,
time
:
2000
});
}
return
{
checkResult
:
checkResult
,
dataList
:
dataList
};
},
},
/**
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录