Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
30861517
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1435
Star
162
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看板
提交
30861517
编写于
4月 22, 2023
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ERP采购订单托管到表单布局
上级
f7f29747
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
4 addition
and
1028 deletion
+4
-1028
activiti/src/main/resources/template/js/activitiCommon/processInstanceDetails.js
...rces/template/js/activitiCommon/processInstanceDetails.js
+1
-1
activiti/src/main/resources/template/js/approvalActiviti/approvalProcessTask.js
...urces/template/js/approvalActiviti/approvalProcessTask.js
+1
-1
erp/src/main/resources/template/js/purchaseOrder/purchaseOrderAdd.js
...n/resources/template/js/purchaseOrder/purchaseOrderAdd.js
+0
-215
erp/src/main/resources/template/js/purchaseOrder/purchaseOrderDetails.js
...sources/template/js/purchaseOrder/purchaseOrderDetails.js
+0
-43
erp/src/main/resources/template/js/purchaseOrder/purchaseOrderEdit.js
.../resources/template/js/purchaseOrder/purchaseOrderEdit.js
+0
-288
erp/src/main/resources/template/tpl/purchaseOrder/purchaseOrderAdd.html
...esources/template/tpl/purchaseOrder/purchaseOrderAdd.html
+0
-134
erp/src/main/resources/template/tpl/purchaseOrder/purchaseOrderDetails.html
...rces/template/tpl/purchaseOrder/purchaseOrderDetails.html
+0
-210
erp/src/main/resources/template/tpl/purchaseOrder/purchaseOrderEdit.html
...sources/template/tpl/purchaseOrder/purchaseOrderEdit.html
+0
-134
web/src/main/resources/template/assets/lib/layui/customer/erpOrderUtil.js
...ources/template/assets/lib/layui/customer/erpOrderUtil.js
+2
-2
未找到文件。
activiti/src/main/resources/template/js/activitiCommon/processInstanceDetails.js
浏览文件 @
30861517
...
...
@@ -8,7 +8,7 @@ layui.config({
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
flow
'
],
function
(
exports
)
{
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
flow
'
,
'
table
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
,
form
=
layui
.
form
,
...
...
activiti/src/main/resources/template/js/approvalActiviti/approvalProcessTask.js
浏览文件 @
30861517
...
...
@@ -8,7 +8,7 @@ layui.config({
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
flow
'
],
function
(
exports
)
{
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
flow
'
,
'
table
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
...
...
erp/src/main/resources/template/js/purchaseOrder/purchaseOrderAdd.js
已删除
100644 → 0
浏览文件 @
f7f29747
// 生产订单信息
var
productionMation
=
{};
// 根据那一列的值进行变化,默认根据数量
var
showTdByEdit
=
'
rkNum
'
;
// 兼容动态表单
var
layedit
,
form
;
// 采购订单
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
textool
'
].
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
[
"
purchaseOrder
"
][
"
key
"
];
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
'
});
// 计划完成日期
laydate
.
render
({
elem
:
'
#planComplateTime
'
,
type
:
'
datetime
'
,
trigger
:
'
click
'
});
textool
.
init
({
eleId
:
'
remark
'
,
maxlength
:
200
});
// 初始化账户
systemCommonUtil
.
getSysAccountListByType
(
function
(
json
)
{
$
(
"
#accountId
"
).
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
});
// 加载动态表单
dsFormUtil
.
loadPageByCode
(
"
dsFormShow
"
,
serviceClassName
,
null
);
matchingLanguage
();
// 商品规格加载变化事件
mUnitChangeEvent
(
form
,
allChooseProduct
,
"
estimatePurchasePrice
"
);
// 保存为草稿
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
;
tableData
.
push
(
item
);
});
if
(
noError
)
{
return
false
;
}
var
params
=
{
supplierId
:
sysSupplierUtil
.
supplierMation
.
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
),
planComplateTime
:
$
(
"
#planComplateTime
"
).
val
(),
productionId
:
productionMation
.
id
,
submitType
:
submitType
,
subType
:
subType
,
approvalId
:
approvalId
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
purchaseorder002
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
)
{
dsFormUtil
.
savePageData
(
"
dsFormShow
"
,
json
.
bean
.
id
);
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
// 供应商选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#supplierNameSel
"
,
function
(
e
)
{
sysSupplierUtil
.
openSysSupplierChoosePage
(
function
(
supplierMation
)
{
$
(
"
#supplierName
"
).
val
(
supplierMation
.
supplierName
);
});
});
initChooseProductBtnEnent
(
form
,
function
(
trId
,
chooseProductMation
)
{
// 商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
});
// 生产计划单选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#productionOrderSel
"
,
function
(
e
)
{
_openNewWindows
({
url
:
"
../../tpl/erpProduction/erpProductionNoSuccessChoose.html
"
,
title
:
"
选择生产计划单
"
,
pageId
:
"
erpProductionNoSuccessChoose
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
$
(
"
#productionOrder
"
).
val
(
productionMation
.
defaultNumber
);
initTableChooseUtil
.
deleteAllRow
(
'
productList
'
);
$
.
each
(
productionMation
.
norms
,
function
(
i
,
item
)
{
var
params
=
{
"
materialId
"
:
item
.
product
.
materialName
+
"
(
"
+
item
.
product
.
materialModel
+
"
)
"
,
"
mUnitId
"
:
{
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
value
"
:
item
.
normsId
},
"
allStock
"
:
item
.
allStock
,
"
rkNum
"
:
item
.
needNum
,
"
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
)
};
var
trcusid
=
initTableChooseUtil
.
resetData
(
'
productList
'
,
params
);
// 将规格所属的商品信息加入到对象中存储
allChooseProduct
[
trcusid
]
=
item
.
product
;
});
form
.
render
();
// 计算价格
calculatedTotalPrice
();
}});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
\ No newline at end of file
erp/src/main/resources/template/js/purchaseOrder/purchaseOrderDetails.js
已删除
100644 → 0
浏览文件 @
f7f29747
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
$
=
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
));
$
(
"
#contentIframe
"
).
attr
(
"
src
"
,
"
../../tpl/erpcommon/erpOrderFlowLine.html?rowId=
"
+
json
.
bean
.
id
+
"
&type=4
"
);
// 加载动态表单
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/purchaseOrder/purchaseOrderEdit.js
已删除
100644 → 0
浏览文件 @
f7f29747
// 生产订单信息
var
productionMation
=
{};
// 根据那一列的值进行变化,默认根据数量
var
showTdByEdit
=
'
rkNum
'
;
// 兼容动态表单
var
layedit
,
form
;
// 采购订单
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
textool
'
].
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
[
"
purchaseOrder
"
][
"
key
"
];
var
selOption
=
getFileContent
(
'
tpl/template/select-option.tpl
'
);
//已经选择的商品集合key:表格的行trId,value:商品信息
var
allChooseProduct
=
{};
// 获取单据提交类型
var
submitType
=
""
;
// 单据时间
laydate
.
render
({
elem
:
'
#operTime
'
,
type
:
'
datetime
'
,
trigger
:
'
click
'
});
// 计划完成日期
laydate
.
render
({
elem
:
'
#planComplateTime
'
,
type
:
'
datetime
'
,
trigger
:
'
click
'
});
// 初始化账户
systemCommonUtil
.
getSysAccountListByType
(
function
(
json
)
{
$
(
"
#accountId
"
).
html
(
getDataUseHandlebars
(
selOption
,
json
));
initDataToShow
();
});
//渲染数据到页面
function
initDataToShow
(){
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
purchaseorder004
"
,
params
:
{
rowId
:
parent
.
rowId
},
type
:
'
json
'
,
method
:
"
GET
"
,
callback
:
function
(
json
)
{
submitType
=
json
.
bean
.
submitType
;
// 供应商信息赋值
sysSupplierUtil
.
supplierMation
=
{
id
:
json
.
bean
.
organId
,
supplierName
:
json
.
bean
.
supplierName
}
//生产计划单信息
productionMation
=
{
id
:
isNull
(
json
.
bean
.
productionId
)
?
""
:
json
.
bean
.
productionId
,
defaultNumber
:
isNull
(
json
.
bean
.
producitonOrderNum
)
?
""
:
json
.
bean
.
producitonOrderNum
}
$
(
"
#productionOrder
"
).
val
(
productionMation
.
defaultNumber
);
$
(
"
#supplierName
"
).
val
(
json
.
bean
.
supplierName
);
//供应商
$
(
"
#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
));
$
(
"
#planComplateTime
"
).
val
(
json
.
bean
.
planComplateTime
);
initTable
();
initTableChooseUtil
.
deleteAllRow
(
'
productList
'
);
$
.
each
(
json
.
bean
.
norms
,
function
(
i
,
item
)
{
var
params
=
{
"
materialId
"
:
item
.
materialName
+
"
(
"
+
item
.
materialModel
+
"
)
"
,
"
mUnitId
"
:
{
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
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
;
});
textool
.
init
({
eleId
:
'
remark
'
,
maxlength
:
200
});
erpOrderUtil
.
orderEditPageSetBtnBySubmitType
(
submitType
,
json
.
bean
.
state
);
// 加载动态表单
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
});
}
// 商品规格加载变化事件
mUnitChangeEvent
(
form
,
allChooseProduct
,
"
estimatePurchasePrice
"
);
// 保存为草稿
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
;
tableData
.
push
(
item
);
});
if
(
noError
)
{
return
false
;
}
var
params
=
{
supplierId
:
sysSupplierUtil
.
supplierMation
.
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
),
productionId
:
productionMation
.
id
,
planComplateTime
:
$
(
"
#planComplateTime
"
).
val
(),
subType
:
subType
,
submitType
:
submitType
,
approvalId
:
approvalId
,
rowId
:
parent
.
rowId
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
purchaseorder005
"
,
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
"
,
"
#supplierNameSel
"
,
function
(
e
)
{
sysSupplierUtil
.
openSysSupplierChoosePage
(
function
(
supplierMation
){
$
(
"
#supplierName
"
).
val
(
supplierMation
.
supplierName
);
});
});
initChooseProductBtnEnent
(
form
,
function
(
trId
,
chooseProductMation
)
{
// 商品赋值
allChooseProduct
[
trId
]
=
chooseProductMation
;
});
// 生产计划单选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#productionOrderSel
"
,
function
(
e
)
{
_openNewWindows
({
url
:
"
../../tpl/erpProduction/erpProductionNoSuccessChoose.html
"
,
title
:
"
选择生产计划单
"
,
pageId
:
"
erpProductionNoSuccessChoose
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
$
(
"
#productionOrder
"
).
val
(
productionMation
.
defaultNumber
);
initTableChooseUtil
.
deleteAllRow
(
'
productList
'
);
$
.
each
(
productionMation
.
norms
,
function
(
i
,
item
)
{
var
params
=
{
"
materialId
"
:
item
.
product
.
materialName
+
"
(
"
+
item
.
product
.
materialModel
+
"
)
"
,
"
mUnitId
"
:
{
"
html
"
:
getDataUseHandlebars
(
selOption
,
{
rows
:
item
.
product
.
unitList
}),
"
value
"
:
item
.
normsId
},
"
allStock
"
:
item
.
allStock
,
"
rkNum
"
:
item
.
needNum
,
"
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
)
};
var
trcusid
=
initTableChooseUtil
.
resetData
(
'
productList
'
,
params
);
// 将规格所属的商品信息加入到对象中存储
allChooseProduct
[
trcusid
]
=
item
.
product
;
});
// 渲染
form
.
render
();
// 计算价格
calculatedTotalPrice
();
}});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
\ No newline at end of file
erp/src/main/resources/template/tpl/purchaseOrder/purchaseOrderAdd.html
已删除
100644 → 0
浏览文件 @
f7f29747
<!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"
/>
<link
href=
"../../assets/lib/layui/css/codemirror.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=
"supplierName"
name=
"supplierName"
win-verify=
"required"
placeholder=
"请选择供应商"
class=
"layui-input"
readonly=
"readonly"
/>
<i
class=
"fa fa-plus-circle input-icon"
id=
"supplierNameSel"
></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"
>
生产计划单
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"productionOrder"
name=
"productionOrder"
placeholder=
"请选择生产计划单"
class=
"layui-input"
readonly=
"readonly"
/>
<i
class=
"fa fa-plus-circle input-icon"
id=
"productionOrderSel"
></i>
</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=
"planComplateTime"
name=
"planComplateTime"
placeholder=
"请选择计划完成日期"
class=
"layui-input"
/>
</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"
>
<select
id=
"accountId"
lay-search
></select>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs4"
>
<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
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/purchaseOrder/
'
}).
use
(
'
purchaseOrderAdd
'
);
</script>
</body>
</html>
\ No newline at end of file
erp/src/main/resources/template/tpl/purchaseOrder/purchaseOrderDetails.html
已删除
100644 → 0
浏览文件 @
f7f29747
<!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=
"height: 100%"
>
<div
class=
"layui-tab"
>
<ul
class=
"layui-tab-title"
>
<li
class=
"layui-this"
id=
"orderMationLi"
>
订单信息
</li>
<li>
进度报表
</li>
</ul>
<div
class=
"layui-tab-content"
>
<div
class=
"layui-tab-item layui-show"
>
<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>
<div
class=
"layui-tab-item"
style=
"height: 100%;"
>
<iframe
style=
"width: 100%; height: 100%; border: 0px;"
id=
"contentIframe"
></iframe>
</div>
</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-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
"
>
{{
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
"
>
{{
producitonOrderNum
}}
<
/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: 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
>
{{
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
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-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
计划完成日期
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
planComplateTime
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
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/purchaseOrder/
'
}).
use
(
'
purchaseOrderDetails
'
);
</script>
</body>
</html>
\ No newline at end of file
erp/src/main/resources/template/tpl/purchaseOrder/purchaseOrderEdit.html
已删除
100644 → 0
浏览文件 @
f7f29747
<!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=
"supplierName"
name=
"supplierName"
win-verify=
"required"
placeholder=
"请选择供应商"
class=
"layui-input"
readonly=
"readonly"
/>
<i
class=
"fa fa-plus-circle input-icon"
id=
"supplierNameSel"
></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"
>
生产计划单
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"productionOrder"
name=
"productionOrder"
placeholder=
"请选择生产计划单"
class=
"layui-input"
readonly=
"readonly"
/>
<i
class=
"fa fa-plus-circle input-icon"
id=
"productionOrderSel"
></i>
</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=
"planComplateTime"
name=
"planComplateTime"
placeholder=
"请选择计划完成日期"
class=
"layui-input"
/>
</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"
>
<select
id=
"accountId"
lay-search
></select>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs4"
>
<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
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/purchaseOrder/
'
}).
use
(
'
purchaseOrderEdit
'
);
</script>
</body>
</html>
\ No newline at end of file
web/src/main/resources/template/assets/lib/layui/customer/erpOrderUtil.js
浏览文件 @
30861517
...
...
@@ -101,7 +101,7 @@ var erpOrderUtil = {
*/
deleteOrderMation
:
function
(
id
,
serviceClassName
,
callback
)
{
layer
.
confirm
(
systemLanguage
[
"
com.skyeye.deleteOperationMsg
"
][
languageType
],
{
icon
:
3
,
title
:
systemLanguage
[
"
com.skyeye.deleteOperation
"
][
languageType
]},
function
(
index
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
erpBasePath
+
"
erpcommon005
"
,
params
:
{
rowI
d
:
id
,
serviceClassName
:
serviceClassName
},
method
:
"
DELETE
"
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
erpBasePath
+
"
erpcommon005
"
,
params
:
{
i
d
:
id
,
serviceClassName
:
serviceClassName
},
method
:
"
DELETE
"
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.deleteOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
if
(
typeof
(
callback
)
==
"
function
"
)
{
callback
();
...
...
@@ -123,7 +123,7 @@ var erpOrderUtil = {
layer
.
close
(
index
);
activitiUtil
.
startProcess
(
serviceClassName
,
null
,
function
(
approvalId
)
{
var
params
=
{
rowI
d
:
id
,
i
d
:
id
,
serviceClassName
:
serviceClassName
,
approvalId
:
approvalId
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录