Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
f84b6eae
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1416
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看板
提交
f84b6eae
编写于
5月 01, 2023
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
调拨单托管到表单布局完成
上级
2ebf8b3a
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
65 addition
and
851 deletion
+65
-851
common/src/main/resources/template/js/dsFormPage/dataFrom.js
common/src/main/resources/template/js/dsFormPage/dataFrom.js
+1
-1
erp/src/main/resources/template/js/allocation/allocationAdd.js
...rc/main/resources/template/js/allocation/allocationAdd.js
+0
-170
erp/src/main/resources/template/js/allocation/allocationDetails.js
...ain/resources/template/js/allocation/allocationDetails.js
+0
-47
erp/src/main/resources/template/js/allocation/allocationEdit.js
...c/main/resources/template/js/allocation/allocationEdit.js
+0
-223
erp/src/main/resources/template/js/allocation/allocationList.js
...c/main/resources/template/js/allocation/allocationList.js
+47
-98
erp/src/main/resources/template/tpl/allocation/allocationAdd.html
...main/resources/template/tpl/allocation/allocationAdd.html
+0
-68
erp/src/main/resources/template/tpl/allocation/allocationDetails.html
.../resources/template/tpl/allocation/allocationDetails.html
+0
-133
erp/src/main/resources/template/tpl/allocation/allocationEdit.html
...ain/resources/template/tpl/allocation/allocationEdit.html
+0
-75
erp/src/main/resources/template/tpl/allocation/allocationList.html
...ain/resources/template/tpl/allocation/allocationList.html
+17
-36
未找到文件。
common/src/main/resources/template/js/dsFormPage/dataFrom.js
浏览文件 @
f84b6eae
...
@@ -35,7 +35,7 @@ layui.config({
...
@@ -35,7 +35,7 @@ layui.config({
};
};
var
id
=
GetUrlParam
(
'
id
'
);
var
id
=
GetUrlParam
(
'
id
'
);
var
dataFrom
=
parent
.
$
(
`#
${
id
}
`
).
attr
(
'
data
'
);
debugger
var
dataFrom
=
parent
.
$
(
`#
${
id
}
`
).
attr
(
'
data
'
);
dataFrom
=
isNull
(
dataFrom
)
?
{}
:
JSON
.
parse
(
dataFrom
);
dataFrom
=
isNull
(
dataFrom
)
?
{}
:
JSON
.
parse
(
dataFrom
);
var
value
;
var
value
;
...
...
erp/src/main/resources/template/js/allocation/allocationAdd.js
已删除
100644 → 0
浏览文件 @
2ebf8b3a
// 调拨单
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
laydate
'
,
'
textool
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
laydate
=
layui
.
laydate
,
textool
=
layui
.
textool
;
var
selOption
=
getFileContent
(
'
tpl/template/select-option.tpl
'
);
// 已经选择的商品集合key:表格的行trId,value:商品信息
var
allChooseProduct
=
{};
// 单据时间
laydate
.
render
({
elem
:
'
#operTime
'
,
type
:
'
datetime
'
,
value
:
getFormatDate
(),
trigger
:
'
click
'
});
textool
.
init
({
eleId
:
'
remark
'
,
maxlength
:
200
});
// 初始化仓库
erpOrderUtil
.
getDepotList
(
function
(
json
){
// 加载仓库数据
$
(
"
#inDepotId
"
).
html
(
getDataUseHandlebars
(
selOption
,
json
));
$
(
"
#depotId
"
).
html
(
getDataUseHandlebars
(
selOption
,
json
));
});
// 商品
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
:
'
allStock
'
,
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
:
'
remark
'
,
title
:
'
备注
'
,
formType
:
'
input
'
,
width
:
'
100
'
}
],
deleteRowCallback
:
function
(
trcusid
)
{
delete
allChooseProduct
[
trcusid
];
// 计算价格
calculatedTotalPrice
();
},
addRowCallback
:
function
(
trcusid
)
{
// 设置根据某列变化的颜色
$
(
"
.
"
+
showTdByEdit
).
parent
().
css
({
'
background-color
'
:
'
#e6e6e6
'
});
},
form
:
form
,
minData
:
1
});
matchingLanguage
();
// 商品规格加载变化事件
mUnitChangeEvent
(
form
,
allChooseProduct
,
"
estimatePurchasePrice
"
,
calculatedTotalPrice
);
// 调出仓库变化事件
form
.
on
(
'
select(depotId)
'
,
function
(
data
)
{
loadMaterialDepotStockByDepotId
(
data
.
value
);
});
var
showTdByEdit
=
'
rkNum
'
;
//根据那一列的值进行变化,默认根据数量
// 数量变化
$
(
"
body
"
).
on
(
"
input
"
,
"
.rkNum, .unitPrice, .amountOfMoney
"
,
function
()
{
if
(
$
(
this
).
attr
(
"
class
"
).
replace
(
"
layui-input change-input
"
,
""
)
!=
showTdByEdit
){
showTdByEdit
=
$
(
this
).
attr
(
"
class
"
).
replace
(
"
layui-input change-input
"
,
""
);
$
(
"
.change-input
"
).
parent
().
removeAttr
(
"
style
"
);
$
(
"
.
"
+
showTdByEdit
).
parent
().
css
({
'
background-color
'
:
'
#e6e6e6
'
});
}
calculatedTotalPrice
();
});
$
(
"
body
"
).
on
(
"
change
"
,
"
.rkNum, .unitPrice, .amountOfMoney
"
,
function
()
{
if
(
$
(
this
).
attr
(
"
class
"
).
replace
(
"
layui-input change-input
"
,
""
)
!=
showTdByEdit
){
showTdByEdit
=
$
(
this
).
attr
(
"
class
"
).
replace
(
"
layui-input change-input
"
,
""
);
$
(
"
.change-input
"
).
parent
().
removeAttr
(
"
style
"
);
$
(
"
.
"
+
showTdByEdit
).
parent
().
css
({
'
background-color
'
:
'
#e6e6e6
'
});
}
calculatedTotalPrice
();
});
// 计算总价
function
calculatedTotalPrice
()
{
var
allPrice
=
0
;
$
.
each
(
initTableChooseUtil
.
getDataRowIndex
(
'
productList
'
),
function
(
i
,
item
)
{
// 获取行坐标
var
thisRowKey
=
item
;
// 获取数量
var
rkNum
=
parseInt
(
isNull
(
$
(
"
#rkNum
"
+
thisRowKey
).
val
())
?
"
0
"
:
$
(
"
#rkNum
"
+
thisRowKey
).
val
());
// 获取单价
var
unitPrice
=
parseFloat
(
isNull
(
$
(
"
#unitPrice
"
+
thisRowKey
).
val
())
?
"
0
"
:
$
(
"
#unitPrice
"
+
thisRowKey
).
val
());
// 获取金额
var
amountOfMoney
=
parseFloat
(
isNull
(
$
(
"
#amountOfMoney
"
+
thisRowKey
).
val
())
?
"
0
"
:
$
(
"
#amountOfMoney
"
+
thisRowKey
).
val
());
if
(
"
rkNum
"
===
showTdByEdit
)
{
//数量
// 输出金额
$
(
"
#amountOfMoney
"
+
thisRowKey
).
val
((
rkNum
*
unitPrice
).
toFixed
(
2
));
}
else
if
(
"
unitPrice
"
===
showTdByEdit
)
{
//单价
// 输出金额
$
(
"
#amountOfMoney
"
+
thisRowKey
).
val
((
rkNum
*
unitPrice
).
toFixed
(
2
));
}
else
if
(
"
amountOfMoney
"
===
showTdByEdit
)
{
//金额
// 输出单价
$
(
"
#unitPrice
"
+
thisRowKey
).
val
((
amountOfMoney
/
rkNum
).
toFixed
(
2
));
}
allPrice
+=
parseFloat
(
$
(
"
#amountOfMoney
"
+
thisRowKey
).
val
());
});
$
(
"
#allPrice
"
).
html
(
allPrice
.
toFixed
(
2
));
}
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
result
=
initTableChooseUtil
.
getDataList
(
'
productList
'
);
if
(
!
result
.
checkResult
)
{
return
false
;
}
var
noError
=
false
;
var
tableData
=
[];
$
.
each
(
result
.
dataList
,
function
(
i
,
item
)
{
//获取行编号
var
thisRowKey
=
item
[
"
trcusid
"
].
replace
(
"
tr
"
,
""
);
if
(
parseInt
(
item
.
rkNum
)
==
0
)
{
$
(
"
#rkNum
"
+
thisRowKey
).
addClass
(
"
layui-form-danger
"
);
$
(
"
#rkNum
"
+
thisRowKey
).
focus
();
winui
.
window
.
msg
(
'
数量不能为0
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
return
false
;
}
//商品对象
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
material
.
materialId
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
return
false
;
}
item
[
"
materialId
"
]
=
material
.
materialId
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
anotherDepotId
"
]
=
$
(
"
#inDepotId
"
).
val
(),
tableData
.
push
(
item
);
});
if
(
noError
)
{
return
false
;
}
var
params
=
{
operTime
:
$
(
"
#operTime
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
(),
depotheadStr
:
JSON
.
stringify
(
tableData
)
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
allocation002
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
return
false
;
});
// 加载商品选择事件
initChooseProductBtnEnent
(
form
,
function
(
trId
,
chooseProductMation
)
{
// 商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
},
calculatedTotalPrice
);
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
});
\ No newline at end of file
erp/src/main/resources/template/js/allocation/allocationDetails.js
已删除
100644 → 0
浏览文件 @
2ebf8b3a
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
jqprint
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
var
beanTemplate
=
$
(
"
#beanTemplate
"
).
html
();
showGrid
({
id
:
"
showForm
"
,
url
:
flowableBasePath
+
"
erpcommon001
"
,
params
:
{
rowId
:
parent
.
rowId
},
pagination
:
false
,
template
:
beanTemplate
,
ajaxSendAfter
:
function
(
json
)
{
if
(
json
.
bean
.
state
==
0
){
$
(
"
#statusName
"
).
html
(
"
<span class='state-down'>未审核</span>
"
);
}
else
if
(
json
.
bean
.
state
==
1
){
$
(
"
#statusName
"
).
html
(
"
<span class='state-up'>审核中</span>
"
);
}
else
if
(
json
.
bean
.
state
==
2
){
$
(
"
#statusName
"
).
html
(
"
<span class='state-new'>已调拨</span>
"
);
}
else
if
(
json
.
bean
.
state
==
3
){
$
(
"
#statusName
"
).
html
(
"
<span class='state-down'>拒绝通过</span>
"
);
}
else
if
(
json
.
bean
.
state
==
4
){
$
(
"
#statusName
"
).
html
(
"
<span class='state-new'>已调拨</span>
"
);
}
matchingLanguage
();
form
.
render
();
}
});
// 打印
$
(
"
body
"
).
on
(
"
click
"
,
"
#jprint
"
,
function
(
e
)
{
$
(
"
#showForm
"
).
jqprint
({
title
:
sysMainMation
.
mationTitle
,
debug
:
false
,
//如果是true则可以显示iframe查看效果(iframe默认高和宽都很小,可以再源码中调大),默认是false
importCSS
:
true
,
//true表示引进原来的页面的css,默认是true。(如果是true,先会找$("link[media=print]"),若没有会去找$("link")中的css文件)
printContainer
:
true
,
//表示如果原来选择的对象必须被纳入打印(注意:设置为false可能会打破你的CSS规则)。
operaSupport
:
true
//表示如果插件也必须支持歌opera浏览器,在这种情况下,它提供了建立一个临时的打印选项卡。默认是true
});
});
});
});
\ No newline at end of file
erp/src/main/resources/template/js/allocation/allocationEdit.js
已删除
100644 → 0
浏览文件 @
2ebf8b3a
// 调拨单
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
laydate
'
,
'
textool
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
laydate
=
layui
.
laydate
,
textool
=
layui
.
textool
;
var
beanTemplate
=
$
(
"
#beanTemplate
"
).
html
();
var
selOption
=
getFileContent
(
'
tpl/template/select-option.tpl
'
);
// 已经选择的商品集合key:表格的行trId,value:商品信息
var
allChooseProduct
=
{};
// 加载单据数据
var
orderObject
=
[];
showGrid
({
id
:
"
showForm
"
,
url
:
flowableBasePath
+
"
allocation003
"
,
params
:
{
rowId
:
parent
.
rowId
},
pagination
:
false
,
template
:
beanTemplate
,
ajaxSendAfter
:
function
(
json
)
{
// 单据时间
laydate
.
render
({
elem
:
'
#operTime
'
,
type
:
'
datetime
'
,
trigger
:
'
click
'
});
orderObject
=
json
;
initDepotHtml
();
}
});
// 初始化仓库
function
initDepotHtml
()
{
erpOrderUtil
.
getDepotList
(
function
(
json
){
$
(
"
#inDepotId
"
).
html
(
getDataUseHandlebars
(
selOption
,
json
));
$
(
"
#depotId
"
).
html
(
getDataUseHandlebars
(
selOption
,
json
));
});
// 渲染数据到页面
initDataToShow
();
}
// 渲染数据到页面
function
initDataToShow
(){
initTable
();
// 回显商品列表
initTableChooseUtil
.
deleteAllRow
(
'
productList
'
);
$
.
each
(
orderObject
.
bean
.
items
,
function
(
i
,
item
)
{
if
(
i
==
0
)
{
$
(
"
#depotId
"
).
val
(
item
.
depotId
);
$
(
"
#inDepotId
"
).
val
(
item
.
anotherDepotId
);
}
var
params
=
{
"
materialType
"
:
{
"
value
"
:
item
.
mType
},
"
materialId
"
:
item
.
product
.
materialName
+
"
(
"
+
item
.
product
.
materialModel
+
"
)
"
,
"
mUnitId
"
:
{
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
value
"
:
item
.
mUnitId
},
"
allStock
"
:
item
.
allStock
,
"
rkNum
"
:
item
.
operNum
,
"
unitPrice
"
:
item
.
unitPrice
.
toFixed
(
2
),
"
amountOfMoney
"
:
item
.
allPrice
.
toFixed
(
2
),
"
remark
"
:
item
.
remark
};
var
trcusid
=
initTableChooseUtil
.
resetData
(
'
productList
'
,
params
);
// 将规格所属的商品信息加入到对象中存储
allChooseProduct
[
trcusid
]
=
item
.
product
;
});
textool
.
init
({
eleId
:
'
remark
'
,
maxlength
:
200
});
matchingLanguage
();
form
.
render
();
}
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
:
'
allStock
'
,
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
:
'
remark
'
,
title
:
'
备注
'
,
formType
:
'
input
'
,
width
:
'
100
'
}
],
deleteRowCallback
:
function
(
trcusid
)
{
delete
allChooseProduct
[
trcusid
];
// 计算价格
calculatedTotalPrice
();
},
addRowCallback
:
function
(
trcusid
)
{
// 设置根据某列变化的颜色
$
(
"
.
"
+
showTdByEdit
).
parent
().
css
({
'
background-color
'
:
'
#e6e6e6
'
});
},
form
:
form
,
minData
:
1
});
}
// 商品规格加载变化事件
mUnitChangeEvent
(
form
,
allChooseProduct
,
"
estimatePurchasePrice
"
,
calculatedTotalPrice
);
// 调出仓库变化事件
form
.
on
(
'
select(depotId)
'
,
function
(
data
)
{
loadMaterialDepotStockByDepotId
(
data
.
value
);
});
var
showTdByEdit
=
'
rkNum
'
;
//根据那一列的值进行变化,默认根据数量
//数量变化
$
(
"
body
"
).
on
(
"
input
"
,
"
.rkNum, .unitPrice, .amountOfMoney
"
,
function
()
{
if
(
$
(
this
).
attr
(
"
class
"
).
replace
(
"
layui-input change-input
"
,
""
)
!=
showTdByEdit
){
showTdByEdit
=
$
(
this
).
attr
(
"
class
"
).
replace
(
"
layui-input change-input
"
,
""
);
$
(
"
.change-input
"
).
parent
().
removeAttr
(
"
style
"
);
$
(
"
.
"
+
showTdByEdit
).
parent
().
css
({
'
background-color
'
:
'
#e6e6e6
'
});
}
calculatedTotalPrice
();
});
$
(
"
body
"
).
on
(
"
change
"
,
"
.rkNum, .unitPrice, .amountOfMoney
"
,
function
()
{
if
(
$
(
this
).
attr
(
"
class
"
).
replace
(
"
layui-input change-input
"
,
""
)
!=
showTdByEdit
){
showTdByEdit
=
$
(
this
).
attr
(
"
class
"
).
replace
(
"
layui-input change-input
"
,
""
);
$
(
"
.change-input
"
).
parent
().
removeAttr
(
"
style
"
);
$
(
"
.
"
+
showTdByEdit
).
parent
().
css
({
'
background-color
'
:
'
#e6e6e6
'
});
}
calculatedTotalPrice
();
});
// 计算总价
function
calculatedTotalPrice
()
{
var
allPrice
=
0
;
$
.
each
(
initTableChooseUtil
.
getDataRowIndex
(
'
productList
'
),
function
(
i
,
item
)
{
// 获取行坐标
var
thisRowKey
=
item
;
// 获取数量
var
rkNum
=
parseInt
(
isNull
(
$
(
"
#rkNum
"
+
thisRowKey
).
val
())
?
"
0
"
:
$
(
"
#rkNum
"
+
thisRowKey
).
val
());
// 获取单价
var
unitPrice
=
parseFloat
(
isNull
(
$
(
"
#unitPrice
"
+
thisRowKey
).
val
())
?
"
0
"
:
$
(
"
#unitPrice
"
+
thisRowKey
).
val
());
// 获取金额
var
amountOfMoney
=
parseFloat
(
isNull
(
$
(
"
#amountOfMoney
"
+
thisRowKey
).
val
())
?
"
0
"
:
$
(
"
#amountOfMoney
"
+
thisRowKey
).
val
());
if
(
"
rkNum
"
===
showTdByEdit
)
{
//数量
// 输出金额
$
(
"
#amountOfMoney
"
+
thisRowKey
).
val
((
rkNum
*
unitPrice
).
toFixed
(
2
));
}
else
if
(
"
unitPrice
"
===
showTdByEdit
)
{
//单价
// 输出金额
$
(
"
#amountOfMoney
"
+
thisRowKey
).
val
((
rkNum
*
unitPrice
).
toFixed
(
2
));
}
else
if
(
"
amountOfMoney
"
===
showTdByEdit
)
{
//金额
// 输出单价
$
(
"
#unitPrice
"
+
thisRowKey
).
val
((
amountOfMoney
/
rkNum
).
toFixed
(
2
));
}
allPrice
+=
parseFloat
(
$
(
"
#amountOfMoney
"
+
thisRowKey
).
val
());
});
$
(
"
#allPrice
"
).
html
(
allPrice
.
toFixed
(
2
));
}
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
result
=
initTableChooseUtil
.
getDataList
(
'
productList
'
);
if
(
!
result
.
checkResult
)
{
return
false
;
}
var
noError
=
false
;
var
tableData
=
[];
$
.
each
(
result
.
dataList
,
function
(
i
,
item
)
{
//获取行编号
var
thisRowKey
=
item
[
"
trcusid
"
].
replace
(
"
tr
"
,
""
);
if
(
parseInt
(
item
.
rkNum
)
==
0
)
{
$
(
"
#rkNum
"
+
thisRowKey
).
addClass
(
"
layui-form-danger
"
);
$
(
"
#rkNum
"
+
thisRowKey
).
focus
();
winui
.
window
.
msg
(
'
数量不能为0
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
return
false
;
}
//商品对象
var
material
=
allChooseProduct
[
"
tr
"
+
thisRowKey
];
if
(
inTableDataArrayByAssetarId
(
material
.
materialId
,
item
.
mUnitId
,
tableData
))
{
winui
.
window
.
msg
(
'
一张单中不允许出现相同单位的商品信息.
'
,
{
icon
:
2
,
time
:
2000
});
noError
=
true
;
return
false
;
}
item
[
"
materialId
"
]
=
material
.
materialId
;
item
[
"
depotId
"
]
=
$
(
"
#depotId
"
).
val
();
item
[
"
anotherDepotId
"
]
=
$
(
"
#inDepotId
"
).
val
(),
tableData
.
push
(
item
);
});
if
(
noError
)
{
return
false
;
}
var
params
=
{
operTime
:
$
(
"
#operTime
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
(),
depotheadStr
:
JSON
.
stringify
(
tableData
),
rowId
:
parent
.
rowId
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
allocation004
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
return
false
;
});
// 加载商品选择事件
initChooseProductBtnEnent
(
form
,
function
(
trId
,
chooseProductMation
)
{
// 商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
},
calculatedTotalPrice
);
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
});
\ No newline at end of file
erp/src/main/resources/template/js/allocation/allocationList.js
浏览文件 @
f84b6eae
var
rowId
=
""
;
layui
.
config
({
layui
.
config
({
base
:
basePath
,
base
:
basePath
,
version
:
skyeyeVersion
version
:
skyeyeVersion
}).
extend
({
}).
extend
({
window
:
'
js/winui.window
'
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
,
'
laydate
'
],
function
(
exports
)
{
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
winui
.
renderColor
();
var
$
=
layui
.
$
,
var
$
=
layui
.
$
,
form
=
layui
.
form
,
form
=
layui
.
form
,
laydate
=
layui
.
laydate
,
table
=
layui
.
table
;
table
=
layui
.
table
;
var
serviceClassName
=
sysServiceMation
[
"
allocationFormOrder
"
][
"
key
"
];
authBtn
(
'
1571811821848
'
);
//新增
authBtn
(
'
1571811821848
'
);
//新增
authBtn
(
'
1572245017123
'
);
//导出
laydate
.
render
({
elem
:
'
#operTime
'
,
range
:
'
~
'
});
table
.
render
({
table
.
render
({
id
:
'
messageTable
'
,
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
method
:
'
post
'
,
url
:
flowable
BasePath
+
'
allocation001
'
,
url
:
sysMainMation
.
erp
BasePath
+
'
allocation001
'
,
where
:
getTableParams
(),
where
:
getTableParams
(),
even
:
true
,
even
:
true
,
page
:
true
,
page
:
true
,
...
@@ -29,32 +24,27 @@ layui.config({
...
@@ -29,32 +24,27 @@ layui.config({
limit
:
getLimit
(),
limit
:
getLimit
(),
cols
:
[[
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
default
Number
'
,
title
:
'
单据编号
'
,
align
:
'
left
'
,
width
:
200
,
templet
:
function
(
d
)
{
{
field
:
'
odd
Number
'
,
title
:
'
单据编号
'
,
align
:
'
left
'
,
width
:
200
,
templet
:
function
(
d
)
{
return
'
<a lay-event="details" class="notice-title-click">
'
+
d
.
default
Number
+
'
</a>
'
;
return
'
<a lay-event="details" class="notice-title-click">
'
+
d
.
odd
Number
+
'
</a>
'
;
}},
}},
{
field
:
'
materialNames
'
,
title
:
'
商品信息
'
,
align
:
'
left
'
,
width
:
300
},
{
field
:
'
status
'
,
title
:
'
状态
'
,
align
:
'
left
'
,
width
:
80
,
templet
:
function
(
d
)
{
if
(
d
.
status
==
'
0
'
){
return
"
<span class='state-down'>未审核</span>
"
;
}
else
if
(
d
.
status
==
'
1
'
){
return
"
<span class='state-up'>审核中</span>
"
;
}
else
if
(
d
.
status
==
'
2
'
){
return
"
<span class='state-new'>已调拨</span>
"
;
}
else
if
(
d
.
status
==
'
3
'
){
return
"
<span class='state-down'>拒绝通过</span>
"
;
}
else
if
(
d
.
status
==
'
4
'
){
return
"
<span class='state-new'>已调拨</span>
"
;
}
else
{
return
"
参数错误
"
;
}
}},
{
field
:
'
totalPrice
'
,
title
:
'
合计金额
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
operPersonName
'
,
title
:
'
操作人
'
,
align
:
'
left
'
,
width
:
100
},
{
field
:
'
operTime
'
,
title
:
'
单据日期
'
,
align
:
'
center
'
,
width
:
140
},
{
field
:
'
operTime
'
,
title
:
'
单据日期
'
,
align
:
'
center
'
,
width
:
140
},
{
field
:
'
processInstanceId
'
,
title
:
'
流程ID
'
,
width
:
100
,
templet
:
function
(
d
)
{
return
'
<a lay-event="processDetails" class="notice-title-click">
'
+
d
.
processInstanceId
+
'
</a>
'
;
}},
{
field
:
'
state
'
,
title
:
'
状态
'
,
width
:
90
,
templet
:
function
(
d
)
{
return
skyeyeClassEnumUtil
.
getEnumDataNameByCodeAndKey
(
"
erpOrderStateEnum
"
,
'
id
'
,
d
.
state
,
'
name
'
);
}},
{
field
:
'
createName
'
,
title
:
systemLanguage
[
"
com.skyeye.createName
"
][
languageType
],
width
:
120
},
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
{
field
:
'
lastUpdateName
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateName
"
][
languageType
],
align
:
'
left
'
,
width
:
120
},
{
field
:
'
lastUpdateTime
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
200
,
toolbar
:
'
#tableBar
'
}
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
200
,
toolbar
:
'
#tableBar
'
}
]],
]],
done
:
function
(
json
)
{
done
:
function
(
json
)
{
matchingLanguage
();
matchingLanguage
();
initTableSearchUtil
.
initAdvancedSearch
(
this
,
json
.
searchFilter
,
form
,
"
请输入单号
"
,
function
()
{
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
});
}
}
});
});
...
@@ -62,41 +52,43 @@ layui.config({
...
@@ -62,41 +52,43 @@ layui.config({
var
data
=
obj
.
data
;
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
delete
'
)
{
//删除
if
(
layEvent
===
'
delete
'
)
{
//删除
deletemember
(
data
);
erpOrderUtil
.
deleteOrderMation
(
data
.
id
,
serviceClassName
,
function
()
{
loadTable
();
});
}
else
if
(
layEvent
===
'
details
'
)
{
//详情
}
else
if
(
layEvent
===
'
details
'
)
{
//详情
details
(
data
);
details
(
data
);
}
else
if
(
layEvent
===
'
edit
'
)
{
//编辑
}
else
if
(
layEvent
===
'
edit
'
)
{
//编辑
edit
(
data
);
edit
(
data
);
}
else
if
(
layEvent
===
'
subExamine
'
)
{
//提交审核
}
else
if
(
layEvent
===
'
subApproval
'
)
{
//提交审核
subExamine
(
data
);
erpOrderUtil
.
submitOrderMation
(
data
.
id
,
serviceClassName
,
function
()
{
loadTable
();
});
}
else
if
(
layEvent
===
'
processDetails
'
)
{
// 工作流流程详情查看
activitiUtil
.
activitiDetails
(
data
);
}
else
if
(
layEvent
===
'
revoke
'
)
{
//撤销
erpOrderUtil
.
revokeOrderMation
(
data
.
processInstanceId
,
serviceClassName
,
function
()
{
loadTable
();
});
}
}
});
});
// 删除
// 添加
function
deletemember
(
data
)
{
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
()
{
layer
.
confirm
(
systemLanguage
[
"
com.skyeye.deleteOperationMsg
"
][
languageType
],
{
icon
:
3
,
title
:
systemLanguage
[
"
com.skyeye.deleteOperation
"
][
languageType
]},
function
(
index
)
{
_openNewWindows
({
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
delcommon011
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
url
:
systemCommonUtil
.
getUrl
(
'
FP2023050100001
'
,
null
),
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.deleteOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
title
:
systemLanguage
[
"
com.skyeye.addPageTitle
"
][
languageType
],
loadTable
();
pageId
:
"
allocationAdd
"
,
}});
area
:
[
'
90vw
'
,
'
90vh
'
],
});
callBack
:
function
(
refreshCode
)
{
}
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
// 提交审批
function
subExamine
(
data
)
{
layer
.
confirm
(
'
确认要提交审核吗?
'
,
{
icon
:
3
,
title
:
'
提交审核操作
'
},
function
(
index
)
{
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
allocation006
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
提交成功。
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
loadTable
();
}});
}});
});
});
}
// 编辑
// 编辑
function
edit
(
data
)
{
function
edit
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
_openNewWindows
({
url
:
"
../../tpl/allocation/allocationEdit.html
"
,
url
:
systemCommonUtil
.
getUrl
(
'
FP2023050100002&id=
'
+
data
.
id
,
null
)
,
title
:
systemLanguage
[
"
com.skyeye.editPageTitle
"
][
languageType
],
title
:
systemLanguage
[
"
com.skyeye.editPageTitle
"
][
languageType
],
pageId
:
"
allocationEdit
"
,
pageId
:
"
allocationEdit
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
area
:
[
'
90vw
'
,
'
90vh
'
],
...
@@ -108,9 +100,8 @@ layui.config({
...
@@ -108,9 +100,8 @@ layui.config({
// 详情
// 详情
function
details
(
data
)
{
function
details
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
_openNewWindows
({
url
:
"
../../tpl/allocation/allocationDetails.html
"
,
url
:
systemCommonUtil
.
getUrl
(
'
FP2023050100003&id=
'
+
data
.
id
,
null
)
,
title
:
systemLanguage
[
"
com.skyeye.detailsPageTitle
"
][
languageType
],
title
:
systemLanguage
[
"
com.skyeye.detailsPageTitle
"
][
languageType
],
pageId
:
"
allocationDetails
"
,
pageId
:
"
allocationDetails
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
area
:
[
'
90vw
'
,
'
90vh
'
],
...
@@ -118,58 +109,16 @@ layui.config({
...
@@ -118,58 +109,16 @@ layui.config({
}});
}});
}
}
// 添加
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
()
{
_openNewWindows
({
url
:
"
../../tpl/allocation/allocationAdd.html
"
,
title
:
systemLanguage
[
"
com.skyeye.addPageTitle
"
][
languageType
],
pageId
:
"
allocationAdd
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
// 导出excel
$
(
"
body
"
).
on
(
"
click
"
,
"
#downloadExcel
"
,
function
()
{
postDownLoadFile
({
url
:
flowableBasePath
+
'
allocation005
'
,
params
:
getTableParams
(),
method
:
'
post
'
});
});
form
.
render
();
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()})
}
return
false
;
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
loadTable
();
});
});
// 刷新
function
loadTable
()
{
function
loadTable
()
{
table
.
reloadData
(
"
messageTable
"
,
{
where
:
getTableParams
()});
table
.
reloadData
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
}
function
getTableParams
()
{
function
getTableParams
()
{
// 单据的开始时间、结束时间
return
$
.
extend
(
true
,
{},
initTableSearchUtil
.
getSearchValue
(
"
messageTable
"
));
var
startTime
=
""
,
endTime
=
""
;
if
(
!
isNull
(
$
(
"
#operTime
"
).
val
()))
{
startTime
=
$
(
"
#operTime
"
).
val
().
split
(
'
~
'
)[
0
].
trim
()
+
'
00:00:00
'
;
endTime
=
$
(
"
#operTime
"
).
val
().
split
(
'
~
'
)[
1
].
trim
()
+
'
23:59:59
'
;
}
return
{
defaultNumber
:
$
(
"
#defaultNumber
"
).
val
(),
material
:
$
(
"
#material
"
).
val
(),
startTime
:
startTime
,
endTime
:
endTime
};
}
}
exports
(
'
allocationList
'
,
{});
exports
(
'
allocationList
'
,
{});
...
...
erp/src/main/resources/template/tpl/allocation/allocationAdd.html
已删除
100644 → 0
浏览文件 @
2ebf8b3a
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"margin: 0 auto; padding: 20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
单据日期
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"operTime"
name=
"operTime"
win-verify=
"required"
placeholder=
"请选择单据日期"
class=
"layui-input"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
调出仓库
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<select
id=
"depotId"
name=
"depotId"
lay-search=
""
win-verify=
"required"
lay-filter=
"depotId"
>
</select>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
调入仓库
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<select
id=
"inDepotId"
name=
"inDepotId"
lay-search=
""
win-verify=
"required"
>
</select>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
列表项
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
id=
"productList"
>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs4"
>
<label
class=
"layui-form-label"
>
共计金额
</label>
<div
class=
"layui-input-block ver-center"
id=
"allPrice"
>
0.00
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
备注
</label>
<div
class=
"layui-input-block"
>
<textarea
id=
"remark"
name=
"remark"
placeholder=
"请输入备注"
class=
"layui-textarea"
style=
"height: 100px;"
maxlength=
"200"
></textarea>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
id=
"cancle"
><language
showName=
"com.skyeye.cancel"
></language></button>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formAddBean"
><language
showName=
"com.skyeye.save"
></language></button>
</div>
</div>
</form>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
src=
"../../js/erpcommon/loadStock.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/allocation/
'
}).
use
(
'
allocationAdd
'
);
</script>
</body>
</html>
\ No newline at end of file
erp/src/main/resources/template/tpl/allocation/allocationDetails.html
已删除
100644 → 0
浏览文件 @
2ebf8b3a
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"padding:20px; margin:0 auto;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
>
</form>
<div
class=
"layui-form-item layui-col-xs12"
>
<div
class=
"layui-input-block ver-center"
>
<button
class=
"winui-btn"
type=
"button"
id=
"jprint"
>
打印
</button>
</div>
</div>
</div>
<script
type=
"text/x-handlebars-template"
id=
"beanTemplate"
>
{{
#
bean
}}
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
span
class
=
"
detail-title
"
>
{{
companyName
}}
-
调拨订单
<
/span><hr
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
span
class
=
"
hr-title
"
>
基本信息
<
/span><hr
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
单据日期
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
operTime
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
单据编号
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
defaultNumber
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
状态
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
id
=
"
statusName
"
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
操作人
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
operPersonName
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
操作日期
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
createTime
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
列表项
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
<
table
class
=
"
layui-table
"
>
<
thead
>
<
tr
>
<
th
style
=
"
width: 120px;
"
>
调出仓库
<
/th
>
<
th
style
=
"
width: 150px;
"
>
商品
(
型号
)
<
/th
>
<
th
style
=
"
width: 70px;
"
>
单位
<
/th
>
<
th
style
=
"
width: 120px;
"
>
调入仓库
<
/th
>
<
th
style
=
"
width: 80px;
"
>
数量
<
/th
>
<
th
style
=
"
width: 80px;
"
>
单价
<
/th
>
<
th
style
=
"
width: 80px;
"
>
金额
<
/th
>
<
th
style
=
"
min-width: 100px;
"
>
备注
<
/th
>
<
/tr
>
<
/thead
>
<
tbody
id
=
"
useTable
"
class
=
"
insurance-table
"
>
{{
#
each
items
}}
<
tr
>
<
td
>
{{
deportName
}}
<
/td
>
<
td
>
{{
materialNames
}}
<
/td
>
<
td
>
{{
unitName
}}
<
/td
>
<
td
>
{{
anotherDepotName
}}
<
/td
>
<
td
>
{{
operNumber
}}
<
/td
>
<
td
>
{{
unitPrice
}}
<
/td
>
<
td
>
{{
allPrice
}}
<
/td
>
<
td
>
{{
remark
}}
<
/td
>
<
/tr
>
{{
/
each
}}
<
/tbody
>
<
/table
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs4
"
>
<
label
class
=
"
layui-form-label
"
>
共计金额
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
totalPrice
}}
元
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
备注
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
remark
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
span
class
=
"
hr-title
"
>
审批信息
<
/span><hr
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
审批意见
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
statusContent
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
span
class
=
"
hr-title
"
>
完成信息
<
/span><hr
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
单据完成日期
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
realComplateTime
}}
<
/div
>
<
/div
>
{{
/
bean
}}
</script>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/allocation/
'
}).
use
(
'
allocationDetails
'
);
</script>
</body>
</html>
\ No newline at end of file
erp/src/main/resources/template/tpl/allocation/allocationEdit.html
已删除
100644 → 0
浏览文件 @
2ebf8b3a
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"margin: 0 auto; padding: 20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
>
</form>
</div>
<!-- beanTemplate -->
<script
type=
"text/x-handlebars-template"
id=
"beanTemplate"
>
{{
#
bean
}}
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
单据日期
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
operTime
"
name
=
"
operTime
"
win
-
verify
=
"
required
"
placeholder
=
"
请选择单据日期
"
class
=
"
layui-input
"
value
=
"
{{operTime}}
"
/>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
调出仓库
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
select
id
=
"
depotId
"
name
=
"
depotId
"
lay
-
search
=
""
win
-
verify
=
"
required
"
lay
-
filter
=
"
depotId
"
>
<
/select
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
调入仓库
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
select
id
=
"
inDepotId
"
name
=
"
inDepotId
"
lay
-
search
=
""
win
-
verify
=
"
required
"
>
<
/select
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
列表项
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
id
=
"
productList
"
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs4
"
>
<
label
class
=
"
layui-form-label
"
>
共计金额
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
id
=
"
allPrice
"
>
{{
totalPrice
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
备注
<
/label
>
<
div
class
=
"
layui-input-block
"
>
<
textarea
id
=
"
remark
"
name
=
"
remark
"
placeholder
=
"
请输入备注
"
class
=
"
layui-textarea
"
style
=
"
height: 100px;
"
maxlength
=
"
200
"
>
{{
remark
}}
<
/textarea
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
div
class
=
"
layui-input-block
"
>
<
button
class
=
"
winui-btn
"
id
=
"
cancle
"
><
language
showName
=
"
com.skyeye.cancel
"
><
/language></
button
>
<
button
class
=
"
winui-btn
"
lay
-
submit
lay
-
filter
=
"
formEditBean
"
><
language
showName
=
"
com.skyeye.save
"
><
/language></
button
>
<
/div
>
<
/div
>
{{
/
bean
}}
</script>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
src=
"../../js/erpcommon/loadStock.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/allocation/
'
}).
use
(
'
allocationEdit
'
);
</script>
</body>
</html>
\ No newline at end of file
erp/src/main/resources/template/tpl/allocation/allocationList.html
浏览文件 @
f84b6eae
...
@@ -7,51 +7,32 @@
...
@@ -7,51 +7,32 @@
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
</head>
<body>
<body>
<div
class=
"txtcenter"
style=
"margin:0 auto;padding-top:10px;"
>
<form
class=
"layui-form layui-form-pane"
action=
""
autocomplete=
"off"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
单据编号
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"defaultNumber"
name=
"defaultNumber"
placeholder=
"请输入单据编号"
class=
"layui-input"
/>
</div>
<label
class=
"layui-form-label"
>
商品信息
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"material"
name=
"material"
placeholder=
"请输入名称或者型号"
class=
"layui-input"
/>
</div>
<label
class=
"layui-form-label"
>
单据日期
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"operTime"
name=
"operTime"
placeholder=
"请选择单据日期"
class=
"layui-input"
/>
</div>
<button
type=
"reset"
class=
"layui-btn layui-btn-primary list-form-search"
><language
showName=
"com.skyeye.reset"
></language></button>
<button
class=
"layui-btn list-form-search"
lay-submit
lay-filter=
"formSearch"
><language
showName=
"com.skyeye.search2"
></language></button>
</div>
</div>
</form>
</div>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
>
<div
class=
"winui-tool"
>
<button
id=
"reloadTable"
class=
"winui-toolbtn"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"reloadTable"
class=
"winui-toolbtn search-table-btn-right"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"addBean"
class=
"winui-toolbtn"
auth=
"1571811821848"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.addBtn"
></language></button>
<button
id=
"addBean"
class=
"winui-toolbtn search-table-btn-right"
auth=
"1571811821848"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.addBtn"
></language></button>
<button
id=
"downloadExcel"
class=
"winui-toolbtn"
auth=
"1572245017123"
><i
class=
"fa fa-download"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.exportExcel"
></language></button>
</div>
</div>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
<div
style=
"margin:auto 10px;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
<script
type=
"text/html"
id=
"tableBar"
>
<script
type=
"text/html"
id=
"tableBar"
>
{{
#
if
(
d
.
editRow
==
1
){
}}
{{
#
if
(
d
.
status
==
0
||
d
.
status
==
3
){
}}
{{
#
if
(
auth
(
'
1571811835483
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1572485329512
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-danger layui-btn-xs
"
lay
-
event
=
"
delete
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1592744627809
'
)){
}}
{{
#
if
(
auth
(
'
1592744627809
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
subExamine
"
>
提交审核
<
/a
>
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
subApproval
"
>
提交审批
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1571811821848
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-normal
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1572485329512
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-danger layui-btn-xs
"
lay
-
event
=
"
delete
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
}
}}
{{
#
if
(
d
.
editRow
==
2
){
}}
{{
#
if
(
auth
(
'
1682645503079
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
revoke
"
>
撤销
<
/a
>
{{
#
}
}}
{{
#
}
}}
{{
#
}
}}
{{
#
}
}}
</script>
</script>
</div>
</div>
<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>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录