Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
7ace9d7c
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1173
Star
154
Fork
127
代码
文件
提交
分支
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看板
提交
7ace9d7c
编写于
4月 27, 2023
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
销售出库单托管到表单布局
上级
3cbcb56a
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
65 addition
and
1289 deletion
+65
-1289
erp/src/main/resources/template/js/purchaseOrder/purchaseOrderList.js
.../resources/template/js/purchaseOrder/purchaseOrderList.js
+1
-1
erp/src/main/resources/template/js/salesOrder/salesOrderChoose.js
...main/resources/template/js/salesOrder/salesOrderChoose.js
+2
-2
erp/src/main/resources/template/js/salesOrder/salesOrderList.js
...c/main/resources/template/js/salesOrder/salesOrderList.js
+1
-1
erp/src/main/resources/template/js/salesOutlet/salesOutletAdd.js
.../main/resources/template/js/salesOutlet/salesOutletAdd.js
+0
-246
erp/src/main/resources/template/js/salesOutlet/salesOutletDetails.js
...n/resources/template/js/salesOutlet/salesOutletDetails.js
+0
-51
erp/src/main/resources/template/js/salesOutlet/salesOutletEdit.js
...main/resources/template/js/salesOutlet/salesOutletEdit.js
+0
-335
erp/src/main/resources/template/js/salesOutlet/salesOutletList.js
...main/resources/template/js/salesOutlet/salesOutletList.js
+46
-99
erp/src/main/resources/template/tpl/purchaseOrder/purchaseOrderList.html
...sources/template/tpl/purchaseOrder/purchaseOrderList.html
+1
-1
erp/src/main/resources/template/tpl/salesOutlet/salesOutletAdd.html
...in/resources/template/tpl/salesOutlet/salesOutletAdd.html
+0
-141
erp/src/main/resources/template/tpl/salesOutlet/salesOutletDetails.html
...esources/template/tpl/salesOutlet/salesOutletDetails.html
+0
-219
erp/src/main/resources/template/tpl/salesOutlet/salesOutletEdit.html
...n/resources/template/tpl/salesOutlet/salesOutletEdit.html
+0
-142
erp/src/main/resources/template/tpl/salesOutlet/salesOutletList.html
...n/resources/template/tpl/salesOutlet/salesOutletList.html
+13
-51
web/src/main/resources/template/json/skyeyeClassEnum.json
web/src/main/resources/template/json/skyeyeClassEnum.json
+1
-0
未找到文件。
erp/src/main/resources/template/js/purchaseOrder/purchaseOrderList.js
浏览文件 @
7ace9d7c
...
...
@@ -38,7 +38,7 @@ layui.config({
return
'
<a lay-event="processDetails" class="notice-title-click">
'
+
d
.
processInstanceId
+
'
</a>
'
;
}},
{
field
:
'
state
'
,
title
:
'
状态
'
,
width
:
90
,
templet
:
function
(
d
)
{
return
skyeyeClassEnumUtil
.
getEnumDataNameByCodeAndKey
(
"
flowable
StateEnum
"
,
'
id
'
,
d
.
state
,
'
name
'
);
return
skyeyeClassEnumUtil
.
getEnumDataNameByCodeAndKey
(
"
erpOrder
StateEnum
"
,
'
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
},
...
...
erp/src/main/resources/template/js/salesOrder/salesOrderChoose.js
浏览文件 @
7ace9d7c
...
...
@@ -17,7 +17,7 @@ layui.config({
var
materialCategoryType
;
fsTree
.
render
({
id
:
"
materialCategoryType
"
,
url
:
flowable
BasePath
+
"
salesorder011
"
,
url
:
sysMainMation
.
erp
BasePath
+
"
salesorder011
"
,
checkEnable
:
false
,
loadEnable
:
false
,
//异步加载
showLine
:
false
,
...
...
@@ -67,7 +67,7 @@ layui.config({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
flowable
BasePath
+
'
salesorder012
'
,
url
:
sysMainMation
.
erp
BasePath
+
'
salesorder012
'
,
where
:
getTableParams
(),
even
:
true
,
page
:
false
,
...
...
erp/src/main/resources/template/js/salesOrder/salesOrderList.js
浏览文件 @
7ace9d7c
...
...
@@ -38,7 +38,7 @@ layui.config({
return
'
<a lay-event="processDetails" class="notice-title-click">
'
+
d
.
processInstanceId
+
'
</a>
'
;
}},
{
field
:
'
state
'
,
title
:
'
状态
'
,
width
:
90
,
templet
:
function
(
d
)
{
return
skyeyeClassEnumUtil
.
getEnumDataNameByCodeAndKey
(
"
flowable
StateEnum
"
,
'
id
'
,
d
.
state
,
'
name
'
);
return
skyeyeClassEnumUtil
.
getEnumDataNameByCodeAndKey
(
"
erpOrder
StateEnum
"
,
'
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
},
...
...
erp/src/main/resources/template/js/salesOutlet/salesOutletAdd.js
已删除
100644 → 0
浏览文件 @
3cbcb56a
// 根据那一列的值进行变化,默认根据数量
var
showTdByEdit
=
'
rkNum
'
;
// 兼容动态表单
var
layedit
,
form
;
// 销售出库单
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
laydate
'
,
'
textool
'
,
'
tagEditor
'
].
concat
(
dsFormUtil
.
mastHaveImport
),
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
laydate
=
layui
.
laydate
,
textool
=
layui
.
textool
;
layedit
=
layui
.
layedit
,
form
=
layui
.
form
;
var
serviceClassName
=
sysServiceMation
[
"
outIsSalesOutlet
"
][
"
key
"
];
var
inoutitemHtml
=
""
;
//支出项目
var
salesManList
=
new
Array
();
//销售人员
var
selOption
=
getFileContent
(
'
tpl/template/select-option.tpl
'
);
// 已经选择的商品集合key:表格的行trId,value:商品信息
var
allChooseProduct
=
{};
// 获取单据提交类型
var
submitType
=
erpOrderUtil
.
getSubmitTypeByKey
(
serviceClassName
);
// 单据时间
laydate
.
render
({
elem
:
'
#operTime
'
,
type
:
'
datetime
'
,
value
:
getFormatDate
(),
trigger
:
'
click
'
});
textool
.
init
({
eleId
:
'
remark
'
,
maxlength
:
200
});
// 初始化账户
systemCommonUtil
.
getSysAccountListByType
(
function
(
json
)
{
// 加载账户数据
$
(
"
#accountId
"
).
html
(
getDataUseHandlebars
(
selOption
,
json
));
});
// 初始化支出项目
systemCommonUtil
.
getSysInoutitemListByType
(
2
,
function
(
json
)
{
// 加载支出项目
inoutitemHtml
=
getDataUseHandlebars
(
selOption
,
json
);
});
// 初始化仓库
erpOrderUtil
.
getDepotList
(
function
(
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
:
'
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
,
minData
:
1
});
// 其他费用
initTableChooseUtil
.
initTable
({
id
:
"
otherPriceTableList
"
,
cols
:
[
{
id
:
'
inoutitemId
'
,
title
:
'
支出项目
'
,
formType
:
'
select
'
,
width
:
'
120
'
,
verify
:
'
required
'
,
modelHtml
:
inoutitemHtml
},
{
id
:
'
otherPrice
'
,
title
:
'
费用合计:0.00
'
,
formType
:
'
input
'
,
width
:
'
120
'
,
className
:
'
otherPrice
'
,
verify
:
'
required|money
'
,
colHeaderId
:
'
otherPriceTotal
'
}
],
deleteRowCallback
:
function
(
trcusid
)
{
calculationPrice
();
},
addRowCallback
:
function
(
trcusid
)
{
calculationPrice
();
},
form
:
form
});
// 加载动态表单
dsFormUtil
.
loadPageByCode
(
"
dsFormShow
"
,
serviceClassName
,
null
);
matchingLanguage
();
// 商品规格加载变化事件
mUnitChangeEvent
(
form
,
allChooseProduct
,
"
salePrice
"
);
// 仓库变化事件
form
.
on
(
'
select(depotId)
'
,
function
(
data
)
{
loadMaterialDepotStockByDepotId
(
data
.
value
);
});
// 保存为草稿
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
saveData
(
"
1
"
,
""
);
}
return
false
;
});
// 走工作流的提交审批
form
.
on
(
'
submit(formSubOneBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
activitiUtil
.
startProcess
(
serviceClassName
,
null
,
function
(
approvalId
)
{
saveData
(
"
2
"
,
approvalId
);
});
}
return
false
;
});
// 不走工作流的提交
form
.
on
(
'
submit(formSubTwoBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
saveData
(
"
2
"
,
""
);
}
return
false
;
});
function
saveData
(
subType
,
approvalId
)
{
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
();
tableData
.
push
(
item
);
});
if
(
noError
)
{
return
false
;
}
// 其他费用
var
otherPriceResult
=
initTableChooseUtil
.
getDataList
(
'
otherPriceTableList
'
);
var
otherMoney
=
0
;
$
.
each
(
otherPriceResult
.
dataList
,
function
(
i
,
item
)
{
otherMoney
+=
parseFloat
(
isNull
(
item
.
otherPrice
)
?
0
:
item
.
otherPrice
);
});
var
salesMan
=
""
;
$
.
each
(
salesManList
,
function
(
i
,
item
)
{
salesMan
+=
item
.
id
+
'
,
'
;
});
var
params
=
{
supplierId
:
sysCustomerUtil
.
customerMation
.
id
,
//客户
operTime
:
$
(
"
#operTime
"
).
val
(),
accountId
:
$
(
"
#accountId
"
).
val
(),
payType
:
$
(
"
#payType
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
(),
discount
:
isNull
(
$
(
"
#discount
"
).
val
())
?
"
0.00
"
:
$
(
"
#discount
"
).
val
(),
discountMoney
:
isNull
(
$
(
"
#discountMoney
"
).
val
())
?
"
0.00
"
:
$
(
"
#discountMoney
"
).
val
(),
changeAmount
:
isNull
(
$
(
"
#changeAmount
"
).
val
())
?
"
0.00
"
:
$
(
"
#changeAmount
"
).
val
(),
depotheadStr
:
JSON
.
stringify
(
tableData
),
otherMoney
:
otherMoney
.
toFixed
(
2
),
otherMoneyList
:
JSON
.
stringify
(
otherPriceResult
.
dataList
),
salesMan
:
salesMan
,
submitType
:
submitType
,
subType
:
subType
,
approvalId
:
approvalId
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
salesoutlet002
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
)
{
dsFormUtil
.
savePageData
(
"
dsFormShow
"
,
json
.
bean
.
id
);
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
$
(
'
#salesMan
'
).
tagEditor
({
initialTags
:
[],
placeholder
:
'
请选择销售人员
'
,
editorTag
:
false
,
beforeTagDelete
:
function
(
field
,
editor
,
tags
,
val
)
{
salesManList
=
[].
concat
(
arrayUtil
.
removeArrayPointName
(
salesManList
,
val
));
}
});
//人员选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#toSalesManSelPeople
"
,
function
(
e
)
{
systemCommonUtil
.
userReturnList
=
[].
concat
(
salesManList
);
systemCommonUtil
.
chooseOrNotMy
=
"
1
"
;
// 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil
.
chooseOrNotEmail
=
"
2
"
;
// 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil
.
checkType
=
"
1
"
;
// 人员选择类型,1.多选;其他。单选
systemCommonUtil
.
openSysUserStaffChoosePage
(
function
(
userReturnList
)
{
// 重置数据
salesManList
=
[].
concat
(
systemCommonUtil
.
tagEditorResetData
(
'
salesMan
'
,
userReturnList
));
});
});
//客户选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#customMationSel
"
,
function
(
e
)
{
sysCustomerUtil
.
openSysCustomerChoosePage
(
function
(
customerMation
)
{
$
(
"
#customName
"
).
val
(
customerMation
.
customName
);
});
});
// 加载商品选择事件
initChooseProductBtnEnent
(
form
,
function
(
trId
,
chooseProductMation
)
{
// 商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
\ No newline at end of file
erp/src/main/resources/template/js/salesOutlet/salesOutletDetails.js
已删除
100644 → 0
浏览文件 @
3cbcb56a
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
)
{
$
(
"
#statusName
"
).
html
(
activitiUtil
.
showStateName
(
json
.
bean
.
state
,
json
.
bean
.
submitType
));
var
str
=
'
无
'
;
var
defaultNumber
=
json
.
bean
.
defaultNumber
;
if
(
!
isNull
(
json
.
bean
.
linkNumber
)){
str
=
'
<a lay-event="details" class="notice-title-click">
'
+
json
.
bean
.
linkNumber
+
'
</a>
'
;
defaultNumber
+=
'
<span class="state-new">[转]</span>
'
;
}
$
(
"
#linkNumber
"
).
html
(
str
);
$
(
"
#defaultNumber
"
).
html
(
defaultNumber
);
// 加载动态表单
dsFormUtil
.
loadPageShowDetailsByObjectId
(
"
dsFormShow
"
,
json
.
bean
.
id
);
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/salesOutlet/salesOutletEdit.js
已删除
100644 → 0
浏览文件 @
3cbcb56a
// 根据那一列的值进行变化,默认根据数量
var
showTdByEdit
=
'
rkNum
'
;
// 兼容动态表单
var
layedit
,
form
;
// 销售出库单
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
laydate
'
,
'
textool
'
,
'
tagEditor
'
].
concat
(
dsFormUtil
.
mastHaveImport
),
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
laydate
=
layui
.
laydate
,
textool
=
layui
.
textool
;
layedit
=
layui
.
layedit
,
form
=
layui
.
form
;
var
serviceClassName
=
sysServiceMation
[
"
outIsSalesOutlet
"
][
"
key
"
];
var
inoutitemHtml
=
""
;
//支出项目
var
salesManList
=
new
Array
();
//销售人员
var
selOption
=
getFileContent
(
'
tpl/template/select-option.tpl
'
);
// 已经选择的商品集合key:表格的行trId,value:商品信息
var
allChooseProduct
=
{};
// 获取单据提交类型
var
submitType
=
""
;
// 单据时间
laydate
.
render
({
elem
:
'
#operTime
'
,
type
:
'
datetime
'
,
trigger
:
'
click
'
});
// 初始化账户
systemCommonUtil
.
getSysAccountListByType
(
function
(
json
)
{
// 加载账户数据
$
(
"
#accountId
"
).
html
(
getDataUseHandlebars
(
selOption
,
json
));
});
// 初始化支出项目
systemCommonUtil
.
getSysInoutitemListByType
(
2
,
function
(
json
)
{
// 加载支出项目
inoutitemHtml
=
getDataUseHandlebars
(
selOption
,
json
);
});
// 初始化仓库
erpOrderUtil
.
getDepotList
(
function
(
json
){
// 加载仓库数据
$
(
"
#depotId
"
).
html
(
getDataUseHandlebars
(
selOption
,
json
));
// 初始化回显数据
initDataShow
();
});
// 初始化回显数据
function
initDataShow
(){
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
salesoutlet003
"
,
params
:
{
rowId
:
parent
.
rowId
},
type
:
'
json
'
,
method
:
"
GET
"
,
callback
:
function
(
json
)
{
submitType
=
json
.
bean
.
submitType
;
// 客户信息赋值
sysCustomerUtil
.
customerMation
=
{
id
:
json
.
bean
.
organId
,
customName
:
json
.
bean
.
customName
}
$
(
"
#customName
"
).
val
(
json
.
bean
.
customName
);
//客户
$
(
"
#operTime
"
).
val
(
json
.
bean
.
operTime
);
$
(
"
#accountId
"
).
val
(
json
.
bean
.
accountId
);
$
(
"
#payType
"
).
val
(
json
.
bean
.
payType
);
$
(
"
#allPrice
"
).
html
(
json
.
bean
.
totalPrice
.
toFixed
(
2
));
$
(
"
#taxLastMoneyPrice
"
).
html
(
json
.
bean
.
taxLastMoneyPrice
.
toFixed
(
2
));
$
(
"
#remark
"
).
val
(
json
.
bean
.
remark
);
$
(
"
#discount
"
).
val
(
json
.
bean
.
discount
.
toFixed
(
2
));
$
(
"
#discountMoney
"
).
val
(
json
.
bean
.
discountMoney
.
toFixed
(
2
));
$
(
"
#discountLastMoney
"
).
html
(
json
.
bean
.
discountLastMoney
.
toFixed
(
2
));
$
(
"
#changeAmount
"
).
val
(
json
.
bean
.
changeAmount
.
toFixed
(
2
));
$
(
"
#arrears
"
).
html
(
json
.
bean
.
arrears
.
toFixed
(
2
));
$
(
"
#otherPriceTotal
"
).
html
(
"
费用合计:
"
+
json
.
bean
.
otherMoney
.
toFixed
(
2
));
initTable
();
// 回显商品列表
initTableChooseUtil
.
deleteAllRow
(
'
productList
'
);
$
.
each
(
json
.
bean
.
norms
,
function
(
i
,
item
)
{
if
(
i
==
0
)
{
$
(
"
#depotId
"
).
val
(
item
.
depotId
);
}
var
params
=
{
"
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
),
"
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
[
trcusid
]
=
item
.
product
;
});
// 回显其他费用
initTableChooseUtil
.
deleteAllRow
(
'
otherPriceTableList
'
);
$
.
each
(
json
.
bean
.
otherMoneyList
,
function
(
i
,
item
)
{
var
params
=
{
"
inoutitemId
"
:
{
"
value
"
:
item
.
inoutitemId
},
"
otherPrice
"
:
parseFloat
(
item
.
otherPrice
).
toFixed
(
2
)
};
initTableChooseUtil
.
resetData
(
'
otherPriceTableList
'
,
params
);
});
var
userNames
=
""
;
salesManList
=
json
.
bean
.
userInfo
;
$
.
each
(
salesManList
,
function
(
i
,
item
)
{
userNames
+=
item
.
name
+
'
,
'
;
});
// 人员选择
$
(
'
#salesMan
'
).
tagEditor
({
initialTags
:
userNames
.
split
(
'
,
'
),
placeholder
:
'
请选择销售人员
'
,
editorTag
:
false
,
beforeTagDelete
:
function
(
field
,
editor
,
tags
,
val
)
{
salesManList
=
[].
concat
(
arrayUtil
.
removeArrayPointName
(
salesManList
,
val
));
}
});
erpOrderUtil
.
orderEditPageSetBtnBySubmitType
(
submitType
,
json
.
bean
.
state
);
textool
.
init
({
eleId
:
'
remark
'
,
maxlength
:
200
});
// 加载动态表单
dsFormUtil
.
loadPageToEditByObjectId
(
"
dsFormShow
"
,
json
.
bean
.
id
);
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
:
'
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
'
});
calculatedTotalPrice
();
},
form
:
form
,
minData
:
1
});
// 其他费用
initTableChooseUtil
.
initTable
({
id
:
"
otherPriceTableList
"
,
cols
:
[
{
id
:
'
inoutitemId
'
,
title
:
'
支出项目
'
,
formType
:
'
select
'
,
width
:
'
120
'
,
verify
:
'
required
'
,
modelHtml
:
inoutitemHtml
},
{
id
:
'
otherPrice
'
,
title
:
'
费用合计:0.00
'
,
formType
:
'
input
'
,
width
:
'
120
'
,
className
:
'
otherPrice
'
,
verify
:
'
required|money
'
,
colHeaderId
:
'
otherPriceTotal
'
}
],
deleteRowCallback
:
function
(
trcusid
)
{
calculationPrice
();
},
addRowCallback
:
function
(
trcusid
)
{
calculationPrice
();
},
form
:
form
});
}
// 商品规格加载变化事件
mUnitChangeEvent
(
form
,
allChooseProduct
,
"
salePrice
"
);
// 仓库变化事件
form
.
on
(
'
select(depotId)
'
,
function
(
data
)
{
loadMaterialDepotStockByDepotId
(
data
.
value
);
});
// 保存为草稿
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
saveData
(
'
1
'
,
""
);
}
return
false
;
});
// 走工作流的提交审批
form
.
on
(
'
submit(formSubOneBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
activitiUtil
.
startProcess
(
serviceClassName
,
null
,
function
(
approvalId
)
{
saveData
(
"
2
"
,
approvalId
);
});
}
return
false
;
});
// 不走工作流的提交
form
.
on
(
'
submit(formSubTwoBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
saveData
(
'
2
'
,
""
);
}
return
false
;
});
// 工作流中保存
form
.
on
(
'
submit(save)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
saveData
(
'
3
'
,
""
);
}
return
false
;
});
function
saveData
(
subType
,
approvalId
)
{
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
();
tableData
.
push
(
item
);
});
if
(
noError
)
{
return
false
;
}
// 其他费用
var
otherPriceResult
=
initTableChooseUtil
.
getDataList
(
'
otherPriceTableList
'
);
var
otherMoney
=
0
;
$
.
each
(
otherPriceResult
.
dataList
,
function
(
i
,
item
)
{
otherMoney
+=
parseFloat
(
isNull
(
item
.
otherPrice
)
?
0
:
item
.
otherPrice
);
});
//销售人员
var
salesMan
=
""
;
$
.
each
(
salesManList
,
function
(
i
,
item
)
{
salesMan
+=
item
.
id
+
'
,
'
;
});
var
params
=
{
supplierId
:
sysCustomerUtil
.
customerMation
.
id
,
//客户
operTime
:
$
(
"
#operTime
"
).
val
(),
accountId
:
$
(
"
#accountId
"
).
val
(),
payType
:
$
(
"
#payType
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
(),
discount
:
isNull
(
$
(
"
#discount
"
).
val
())
?
"
0.00
"
:
$
(
"
#discount
"
).
val
(),
discountMoney
:
isNull
(
$
(
"
#discountMoney
"
).
val
())
?
"
0.00
"
:
$
(
"
#discountMoney
"
).
val
(),
changeAmount
:
isNull
(
$
(
"
#changeAmount
"
).
val
())
?
"
0.00
"
:
$
(
"
#changeAmount
"
).
val
(),
depotheadStr
:
JSON
.
stringify
(
tableData
),
otherMoney
:
otherMoney
.
toFixed
(
2
),
otherMoneyList
:
JSON
.
stringify
(
otherPriceResult
.
dataList
),
salesMan
:
salesMan
,
subType
:
subType
,
submitType
:
submitType
,
approvalId
:
approvalId
,
rowId
:
parent
.
rowId
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
salesoutlet004
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
PUT
"
,
callback
:
function
(
json
)
{
dsFormUtil
.
savePageData
(
"
dsFormShow
"
,
json
.
bean
.
id
);
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
//人员选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#toSalesManSelPeople
"
,
function
(
e
)
{
systemCommonUtil
.
userReturnList
=
[].
concat
(
salesManList
);
systemCommonUtil
.
chooseOrNotMy
=
"
1
"
;
// 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil
.
chooseOrNotEmail
=
"
2
"
;
// 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil
.
checkType
=
"
1
"
;
// 人员选择类型,1.多选;其他。单选
systemCommonUtil
.
openSysUserStaffChoosePage
(
function
(
userReturnList
)
{
// 重置数据
salesManList
=
[].
concat
(
systemCommonUtil
.
tagEditorResetData
(
'
salesMan
'
,
userReturnList
));
});
});
// 客户选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#customMationSel
"
,
function
(
e
)
{
sysCustomerUtil
.
openSysCustomerChoosePage
(
function
(
customerMation
)
{
$
(
"
#customName
"
).
val
(
customerMation
.
customName
);
});
});
// 加载商品选择事件
initChooseProductBtnEnent
(
form
,
function
(
trId
,
chooseProductMation
)
{
// 商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
\ No newline at end of file
erp/src/main/resources/template/js/salesOutlet/salesOutletList.js
浏览文件 @
7ace9d7c
var
rowId
=
""
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
,
'
laydate
'
],
function
(
exports
)
{
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
,
form
=
layui
.
form
,
laydate
=
layui
.
laydate
,
table
=
layui
.
table
;
var
serviceClassName
=
sysServiceMation
[
"
outIsSalesOutlet
"
][
"
key
"
];
authBtn
(
'
1571813632546
'
);
//添加
authBtn
(
'
1572231503534
'
);
//导出
laydate
.
render
({
elem
:
'
#operTime
'
,
range
:
'
~
'
});
table
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
flowable
BasePath
+
'
salesoutlet001
'
,
url
:
sysMainMation
.
erp
BasePath
+
'
salesoutlet001
'
,
where
:
getTableParams
(),
even
:
true
,
page
:
true
,
...
...
@@ -30,35 +24,35 @@ layui.config({
limit
:
getLimit
(),
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
rowspan
:
'
2
'
,
type
:
'
numbers
'
},
{
field
:
'
default
Number
'
,
title
:
'
单据编号
'
,
align
:
'
left
'
,
rowspan
:
'
2
'
,
width
:
250
,
templet
:
function
(
d
)
{
var
str
=
'
<a lay-event="details" class="notice-title-click">
'
+
d
.
default
Number
+
'
</a>
'
;
{
field
:
'
odd
Number
'
,
title
:
'
单据编号
'
,
align
:
'
left
'
,
rowspan
:
'
2
'
,
width
:
250
,
templet
:
function
(
d
)
{
var
str
=
'
<a lay-event="details" class="notice-title-click">
'
+
d
.
odd
Number
+
'
</a>
'
;
if
(
!
isNull
(
d
.
linkNumber
)){
str
+=
'
<span class="state-new">[转]</span>
'
;
}
return
str
;
}},
{
field
:
'
supplierName
'
,
title
:
'
客户
'
,
align
:
'
left
'
,
rowspan
:
'
2
'
,
width
:
150
},
{
title
:
'
审批模式
'
,
align
:
'
center
'
,
colspan
:
'
2
'
},
{
field
:
'
state
'
,
title
:
'
状态
'
,
align
:
'
left
'
,
rowspan
:
'
2
'
,
width
:
80
,
templet
:
function
(
d
)
{
return
activitiUtil
.
showStateName
(
d
.
state
,
d
.
submitType
);
}},
{
field
:
'
totalPrice
'
,
title
:
'
合计金额
'
,
align
:
'
left
'
,
rowspan
:
'
2
'
,
width
:
120
},
{
field
:
'
taxMoney
'
,
title
:
'
含税合计
'
,
align
:
'
left
'
,
rowspan
:
'
2
'
,
width
:
120
},
{
field
:
'
discountLastMoney
'
,
title
:
'
优惠后金额
'
,
align
:
'
left
'
,
rowspan
:
'
2
'
,
width
:
120
},
{
field
:
'
changeAmount
'
,
title
:
'
收款
'
,
align
:
'
left
'
,
rowspan
:
'
2
'
,
width
:
120
},
{
field
:
'
operPersonName
'
,
title
:
'
操作人
'
,
align
:
'
left
'
,
rowspan
:
'
2
'
,
width
:
100
},
{
field
:
'
operTime
'
,
title
:
'
单据日期
'
,
align
:
'
center
'
,
rowspan
:
'
2
'
,
width
:
140
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
rowspan
:
'
2
'
,
align
:
'
center
'
,
width
:
200
,
toolbar
:
'
#tableBar
'
}
],[
{
field
:
'
submitType
'
,
title
:
'
提交模式
'
,
align
:
'
left
'
,
width
:
120
,
templet
:
function
(
d
)
{
return
erpOrderUtil
.
getSubmitTypeName
(
d
);
{
field
:
'
holderMation
'
,
title
:
'
客户
'
,
align
:
'
left
'
,
width
:
150
,
templet
:
function
(
d
)
{
return
d
.
holderMation
.
name
;
}},
{
field
:
'
totalPrice
'
,
title
:
'
合计金额
'
,
align
:
'
left
'
,
width
:
120
},
{
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
:
'
processInstanceId
'
,
title
:
'
流程实例id
'
,
align
:
'
left
'
,
width
:
120
,
templet
:
function
(
d
)
{
return
erpOrderUtil
.
getProcessInstanceIdBySubmitType
(
d
);
}}
{
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
'
,
rowspan
:
'
2
'
,
align
:
'
center
'
,
width
:
200
,
toolbar
:
'
#tableBar
'
}
]],
done
:
function
(
json
)
{
matchingLanguage
();
initTableSearchUtil
.
initAdvancedSearch
(
this
,
json
.
searchFilter
,
form
,
"
请输入单号
"
,
function
()
{
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
});
}
});
...
...
@@ -66,16 +60,18 @@ layui.config({
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
delete
'
)
{
//删除
deletemember
(
data
);
erpOrderUtil
.
deleteOrderMation
(
data
.
id
,
serviceClassName
,
function
()
{
loadTable
();
});
}
else
if
(
layEvent
===
'
details
'
)
{
//详情
details
(
data
);
}
else
if
(
layEvent
===
'
edit
'
)
{
//编辑
edit
(
data
);
}
else
if
(
layEvent
===
'
sub
mitToSave
'
)
{
//提交
subExamine
(
data
);
}
else
if
(
layEvent
===
'
subExamine
'
)
{
//提交审核
subExamine
(
data
);
}
else
if
(
layEvent
===
'
activitiP
rocessDetails
'
)
{
// 工作流流程详情查看
}
else
if
(
layEvent
===
'
sub
Approval
'
)
{
//提交审核
erpOrderUtil
.
submitOrderMation
(
data
.
id
,
serviceClassName
,
function
()
{
loadTable
();
}
);
}
else
if
(
layEvent
===
'
p
rocessDetails
'
)
{
// 工作流流程详情查看
activitiUtil
.
activitiDetails
(
data
);
}
else
if
(
layEvent
===
'
revoke
'
)
{
//撤销
erpOrderUtil
.
revokeOrderMation
(
data
.
processInstanceId
,
serviceClassName
,
function
()
{
...
...
@@ -84,33 +80,23 @@ layui.config({
}
});
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
refreshTable
();
}
return
false
;
// 添加
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
()
{
_openNewWindows
({
url
:
systemCommonUtil
.
getUrl
(
'
FP2023042700001
'
,
null
),
title
:
systemLanguage
[
"
com.skyeye.addPageTitle
"
][
languageType
],
pageId
:
"
salesOutletAdd
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
// 删除
function
deletemember
(
data
)
{
erpOrderUtil
.
deleteOrderMation
(
data
.
id
,
serviceClassName
,
function
()
{
loadTable
();
});
}
// 提交数据
function
subExamine
(
data
)
{
erpOrderUtil
.
submitOrderMation
(
data
.
id
,
serviceClassName
,
data
.
submitType
,
serviceClassName
,
function
()
{
loadTable
();
});
}
// 编辑
function
edit
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/salesOutlet/salesOutletEdit.html
"
,
url
:
systemCommonUtil
.
getUrl
(
'
FP2023042700002&id=
'
+
data
.
id
,
null
)
,
title
:
systemLanguage
[
"
com.skyeye.editPageTitle
"
][
languageType
],
pageId
:
"
salesOutletEdit
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
...
...
@@ -122,9 +108,8 @@ layui.config({
// 详情
function
details
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/salesOutlet/salesOutletDetails.html
"
,
url
:
systemCommonUtil
.
getUrl
(
'
FP2023042700003&id=
'
+
data
.
id
,
null
)
,
title
:
systemLanguage
[
"
com.skyeye.detailsPageTitle
"
][
languageType
],
pageId
:
"
salesOutletDetails
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
...
...
@@ -132,54 +117,16 @@ layui.config({
}});
}
// 添加
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
()
{
_openNewWindows
({
url
:
"
../../tpl/salesOutlet/salesOutletAdd.html
"
,
title
:
systemLanguage
[
"
com.skyeye.addPageTitle
"
][
languageType
],
pageId
:
"
salesOutletAdd
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
form
.
render
();
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
// 刷新
function
loadTable
()
{
table
.
reloadData
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
// 搜索
function
refreshTable
(){
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()})
}
//导出excel
$
(
"
body
"
).
on
(
"
click
"
,
"
#downloadExcel
"
,
function
()
{
postDownLoadFile
({
url
:
flowableBasePath
+
'
salesoutlet005
'
,
params
:
getTableParams
(),
method
:
'
post
'
});
});
function
getTableParams
()
{
var
startTime
=
""
;
var
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
(),
startTime
:
startTime
,
endTime
:
endTime
};
return
$
.
extend
(
true
,
{},
initTableSearchUtil
.
getSearchValue
(
"
messageTable
"
));
}
exports
(
'
salesOutletList
'
,
{});
...
...
erp/src/main/resources/template/tpl/purchaseOrder/purchaseOrderList.html
浏览文件 @
7ace9d7c
...
...
@@ -8,7 +8,7 @@
</head>
<body>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
style=
"text-align: left;"
>
<div
class=
"winui-tool"
>
<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 search-table-btn-right"
auth=
"1596958747047"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.addBtn"
></language></button>
</div>
...
...
erp/src/main/resources/template/tpl/salesOutlet/salesOutletAdd.html
已删除
100644 → 0
浏览文件 @
3cbcb56a
<!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"
>
<span
class=
"hr-title"
>
基本信息
</span><hr>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
客户
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"customName"
name=
"customName"
win-verify=
"required"
placeholder=
"请选择客户"
class=
"layui-input"
readonly=
"readonly"
/>
<i
class=
"fa fa-plus-circle input-icon"
id=
"customMationSel"
></i>
</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"
>
<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-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-xs3"
>
<label
class=
"layui-form-label"
>
结算账户
</label>
<div
class=
"layui-input-block"
>
<select
id=
"accountId"
lay-search
></select>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs3"
>
<label
class=
"layui-form-label"
>
收款类型
</label>
<div
class=
"layui-input-block"
>
<select
id=
"payType"
lay-search
>
<option
value=
"1"
>
现金
</option>
<option
value=
"2"
>
记账
</option>
<option
value=
"3"
>
其他
</option>
</select>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs3"
>
<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-xs3"
>
<label
class=
"layui-form-label"
>
价税合计
</label>
<div
class=
"layui-input-block ver-center"
id=
"taxLastMoneyPrice"
>
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-xs3"
>
<label
class=
"layui-form-label"
>
优惠率(%)
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"discount"
placeholder=
"请填写优惠率"
class=
"layui-input"
value=
"0.00"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs3"
>
<label
class=
"layui-form-label"
>
优惠金额
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"discountMoney"
placeholder=
"请填写优惠金额"
class=
"layui-input"
value=
"0.00"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs3"
>
<label
class=
"layui-form-label"
>
优惠后金额
</label>
<div
class=
"layui-input-block ver-center"
id=
"discountLastMoney"
>
0.00
</div>
</div>
<div
class=
"layui-form-item layui-col-xs3"
>
<label
class=
"layui-form-label"
>
本次收款
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"changeAmount"
placeholder=
"请填写收款金额"
class=
"layui-input"
value=
"0.00"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
本次欠款
</label>
<div
class=
"layui-input-block ver-center"
id=
"arrears"
>
0.00
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
销售人员
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"salesMan"
name=
"salesMan"
placeholder=
"请选择销售人员"
class=
"layui-input"
style=
"padding-right: 30px;"
/>
<i
class=
"fa fa-user-plus input-icon"
id=
"toSalesManSelPeople"
></i>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
其他费用
</label>
<div
class=
"layui-input-block"
id=
"otherPriceTableList"
>
</div>
</div>
<div
id=
"dsFormShow"
>
</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"
>
保存为草稿
</button>
<button
class=
"winui-btn submitTypeIsOne"
lay-submit
lay-filter=
"formSubOneBean"
>
提交审批
</button>
<button
class=
"winui-btn submitTypeIsTwo"
lay-submit
lay-filter=
"formSubTwoBean"
>
提交
</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/calculatePrice.js"
></script>
<script
src=
"../../js/erpcommon/loadStock.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/salesOutlet/
'
}).
use
(
'
salesOutletAdd
'
);
</script>
</body>
</html>
\ No newline at end of file
erp/src/main/resources/template/tpl/salesOutlet/salesOutletDetails.html
已删除
100644 → 0
浏览文件 @
3cbcb56a
<!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>
<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-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
客户
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
supplierName
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
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
"
id
=
"
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-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
所属销售单
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
id
=
"
linkNumber
"
>
<
/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: 80px;
"
>
数量
<
/th
>
<
th
style
=
"
width: 80px;
"
>
单价
<
/th
>
<
th
style
=
"
width: 80px;
"
>
金额
<
/th
>
<
th
style
=
"
width: 80px;
"
>
税率
<
/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
>
{{
operNumber
}}
<
/td
>
<
td
>
{{
unitPrice
}}
<
/td
>
<
td
>
{{
allPrice
}}
<
/td
>
<
td
>
{{
taxRate
}}
<
/td
>
<
td
>
{{
taxMoney
}}
<
/td
>
<
td
>
{{
taxUnitPrice
}}
<
/td
>
<
td
>
{{
taxLastMoney
}}
<
/td
>
<
td
>
{{
remark
}}
<
/td
>
<
/tr
>
{{
/
each
}}
<
/tbody
>
<
/table
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs3
"
>
<
label
class
=
"
layui-form-label
"
>
结算账户
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
accountName
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs3
"
>
<
label
class
=
"
layui-form-label
"
>
收款类型
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
payType
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs3
"
>
<
label
class
=
"
layui-form-label
"
>
金额合计
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
totalPrice
}}
元
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs3
"
>
<
label
class
=
"
layui-form-label
"
>
价税合计
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
taxLastMoneyPrice
}}
元
<
/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-xs3
"
>
<
label
class
=
"
layui-form-label
"
>
优惠率
%
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
discount
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs3
"
>
<
label
class
=
"
layui-form-label
"
>
优惠金额
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
discountMoney
}}
元
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs3
"
>
<
label
class
=
"
layui-form-label
"
>
优惠后金额
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
discountLastMoney
}}
元
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs3
"
>
<
label
class
=
"
layui-form-label
"
>
本次收款
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
changeAmount
}}
元
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
本次欠款
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
arrears
}}
元
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
销售人员
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
salesMan
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
其他费用
:
<
/label
>
<
div
class
=
"
layui-input-block
"
>
<
table
class
=
"
layui-table
"
>
<
thead
>
<
tr
>
<
th
style
=
"
width: 120px;
"
>
支出项目
:
<
/th
>
<
th
id
=
"
otherPriceTotal
"
style
=
"
width: 120px;
"
>
费用合计
:
{{
otherMoney
}}
元
<
/th
>
<
/tr
>
<
/thead
>
<
tbody
id
=
"
otherPriceTable
"
class
=
"
insurance-table
"
>
{{
#
each
otherMoneyList
}}
<
tr
>
<
td
>
{{
name
}}
<
/td
>
<
td
>
{{
otherPrice
}}
<
/td
>
<
/tr
>
{{
/
each
}}
<
/tbody
>
<
/table
>
<
/div
>
<
/div
>
<
div
id
=
"
dsFormShow
"
>
<
/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>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/salesOutlet/
'
}).
use
(
'
salesOutletDetails
'
);
</script>
</body>
</html>
\ No newline at end of file
erp/src/main/resources/template/tpl/salesOutlet/salesOutletEdit.html
已删除
100644 → 0
浏览文件 @
3cbcb56a
<!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"
>
<span
class=
"hr-title"
>
基本信息
</span><hr>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
客户
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"customName"
name=
"customName"
win-verify=
"required"
placeholder=
"请选择客户"
class=
"layui-input"
readonly=
"readonly"
/>
<i
class=
"fa fa-plus-circle input-icon"
id=
"customMationSel"
></i>
</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"
>
<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-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-xs3"
>
<label
class=
"layui-form-label"
>
结算账户
</label>
<div
class=
"layui-input-block"
>
<select
id=
"accountId"
lay-search
></select>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs3"
>
<label
class=
"layui-form-label"
>
收款类型
</label>
<div
class=
"layui-input-block"
>
<select
id=
"payType"
lay-search
>
<option
value=
"1"
>
现金
</option>
<option
value=
"2"
>
记账
</option>
<option
value=
"3"
>
其他
</option>
</select>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs3"
>
<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-xs3"
>
<label
class=
"layui-form-label"
>
价税合计
</label>
<div
class=
"layui-input-block ver-center"
id=
"taxLastMoneyPrice"
>
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-xs3"
>
<label
class=
"layui-form-label"
>
优惠率(%)
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"discount"
placeholder=
"请填写优惠率"
class=
"layui-input"
value=
"0.00"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs3"
>
<label
class=
"layui-form-label"
>
优惠金额
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"discountMoney"
placeholder=
"请填写优惠金额"
class=
"layui-input"
value=
"0.00"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs3"
>
<label
class=
"layui-form-label"
>
优惠后金额
</label>
<div
class=
"layui-input-block ver-center"
id=
"discountLastMoney"
>
0.00
</div>
</div>
<div
class=
"layui-form-item layui-col-xs3"
>
<label
class=
"layui-form-label"
>
本次收款
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"changeAmount"
placeholder=
"请填写收款金额"
class=
"layui-input"
value=
"0.00"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
本次欠款
</label>
<div
class=
"layui-input-block ver-center"
id=
"arrears"
>
0.00
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
销售人员
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"salesMan"
name=
"salesMan"
placeholder=
"请选择销售人员"
class=
"layui-input"
style=
"padding-right: 30px;"
/>
<i
class=
"fa fa-user-plus input-icon"
id=
"toSalesManSelPeople"
></i>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
其他费用
</label>
<div
class=
"layui-input-block"
id=
"otherPriceTableList"
>
</div>
</div>
<div
id=
"dsFormShow"
>
</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 formEditBean layui-hide"
lay-submit
lay-filter=
"formEditBean"
>
保存为草稿
</button>
<button
class=
"winui-btn formSubOneBean layui-hide"
lay-submit
lay-filter=
"formSubOneBean"
>
提交审批
</button>
<button
class=
"winui-btn formSubTwoBean layui-hide"
lay-submit
lay-filter=
"formSubTwoBean"
>
提交
</button>
<button
class=
"winui-btn save layui-hide"
lay-submit
lay-filter=
"save"
><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/calculatePrice.js"
></script>
<script
src=
"../../js/erpcommon/loadStock.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/salesOutlet/
'
}).
use
(
'
salesOutletEdit
'
);
</script>
</body>
</html>
\ No newline at end of file
erp/src/main/resources/template/tpl/salesOutlet/salesOutletList.html
浏览文件 @
7ace9d7c
...
...
@@ -7,70 +7,32 @@
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<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=
"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-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=
"addBean"
class=
"winui-toolbtn"
auth=
"1571813632546"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.addBtn"
></language></button>
<button
id=
"downloadExcel"
class=
"winui-toolbtn"
auth=
"1572231503534"
><i
class=
"fa fa-download"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.exportExcel"
></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 search-table-btn-right"
auth=
"1571813632546"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.addBtn"
></language></button>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
<script
type=
"text/html"
id=
"tableBar"
>
<!--
单据提交类型
1
.
走工作流提交
2
.
直接提交
-->
{{
#
if
(
d
.
submitType
==
1
){
}}
{{
#
if
(
d
.
editRow
==
'
1
'
){
}}
{{
#
if
(
auth
(
'
1593061899552
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
subExamine
"
>
提交审核
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1572484739671
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-danger layui-btn-xs
"
lay
-
event
=
"
delete
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
d
.
editRow
==
1
){
}}
{{
#
if
(
auth
(
'
1593061899552
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
subApproval
"
>
提交审批
<
/a
>
{{
#
}
}}
{{
#
if
(
d
.
editRow
==
'
1
'
||
d
.
editRow
==
'
2
'
){
}}
{{
#
if
(
auth
(
'
1571813644230
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1571813632546
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-normal
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
d
.
editRow
==
'
2
'
){
}}
{{
#
if
(
auth
(
'
1629622165704
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
revoke
"
>
撤销
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1572484739671
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-danger layui-btn-xs
"
lay
-
event
=
"
delete
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
}
else
if
(
d
.
submitType
==
2
)
{
}}
{{
#
if
(
d
.
state
==
0
){
}}
{{
#
if
(
auth
(
'
1571813644230
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1572484739671
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-danger layui-btn-xs
"
lay
-
event
=
"
delete
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1593061899552
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
submitToSave
"
>
提交
<
/a
>
{{
#
}
}}
{{
#
}
}}
{{
#
if
(
d
.
editRow
==
2
){
}}
{{
#
if
(
auth
(
'
1629622165704
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
revoke
"
>
撤销
<
/a
>
{{
#
}
}}
{{
#
}
}}
</script>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
...
...
web/src/main/resources/template/json/skyeyeClassEnum.json
浏览文件 @
7ace9d7c
...
...
@@ -28,6 +28,7 @@
"materialNormsStockType"
:
{
"name"
:
"商品规格库存类型枚举类"
,
"className"
:
"skyeye-erp#com.skyeye.material.classenum.MaterialNormsStockType"
},
"materialInOrderType"
:
{
"name"
:
"商品在单据中的类型"
,
"className"
:
"skyeye-erp#com.skyeye.material.classenum.MaterialInOrderType"
},
"depotPutOutType"
:
{
"name"
:
"出入库类型枚举类"
,
"className"
:
"skyeye-erp#com.skyeye.depot.classenum.DepotPutOutType"
},
"erpOrderStateEnum"
:
{
"name"
:
"ERP单据状态枚举类"
,
"className"
:
"skyeye-erp#com.skyeye.classenum.ErpOrderStateEnum"
},
"skyeyeView"
:
{
"name"
:
"视图枚举"
,
"className"
:
"skyeye-pro#com.skyeye.common.SkyeyeViewEnum"
},
"widthScale"
:
{
"name"
:
"宽度比例枚举"
,
"className"
:
"skyeye-pro#com.skyeye.attr.classenum.WidthScale"
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录