@ -1,7 +1,7 @@
<!DOCTYPE html>
< html lang = "zh" xmlns:th = "http://www.thymeleaf.org" >
< head >
< th:block th:include = "include :: header('修改 售后通知单')" / >
< th:block th:include = "include :: header('售后通知单经理审批 ')" / >
< th:block th:include = "include :: datetimepicker-css" / >
< / head >
< body class = "white-bg" >
@ -22,44 +22,9 @@
< input name = "salesOrderCode" th:field = "*{salesOrderCode}" class = "form-control" type = "text" >
< / div >
< / div >
< div class = "form-group" >
< label class = "col-sm-3 control-label" > 用户ID:< / label >
< div class = "col-sm-8" >
< input name = "userId" th:field = "*{userId}" class = "form-control" type = "text" >
< / div >
< / div >
< div class = "form-group" >
< label class = "col-sm-3 control-label" > 审核状态:< / label >
< div class = "col-sm-8" >
< div class = "radio-box" th:each = "dict : ${@dict.getType('auditStatus')}" >
< input type = "radio" th:id = "${'auditStatus_' + dict.dictCode}" name = "auditStatus" th:value = "${dict.dictValue}" th:field = "*{auditStatus}" >
< label th:for = "${'auditStatus_' + dict.dictCode}" th:text = "${dict.dictLabel}" > < / label >
< / div >
< / div >
< / div >
< div class = "form-group" >
< label class = "col-sm-3 control-label" > 售后状态:< / label >
< div class = "col-sm-8" >
< div class = "radio-box" th:each = "dict : ${@dict.getType('sales_aftersales_status')}" >
< input type = "radio" th:id = "${'aftersalesStatus_' + dict.dictCode}" name = "aftersalesStatus" th:value = "${dict.dictValue}" th:field = "*{aftersalesStatus}" >
< label th:for = "${'aftersalesStatus_' + dict.dictCode}" th:text = "${dict.dictLabel}" > < / label >
< / div >
< / div >
< / div >
< div class = "form-group" >
< label class = "col-sm-3 control-label" > 业务人员:< / label >
< div class = "col-sm-8" >
< input name = "businessMembers" th:field = "*{businessMembers}" class = "form-control" type = "text" >
< / div >
< / div >
< div class = "form-group" >
< label class = "col-sm-3 control-label" > 售后人员:< / label >
< div class = "col-sm-8" >
< input name = "aftersalesMembers" th:field = "*{aftersalesMembers}" class = "form-control" type = "text" >
< / div >
< / div >
< div class = "form-group" >
< label class = "col-sm-3 control-label" > 客户代码:< / label >
< label class = "col-sm-3 control-label" > 客户ID:< / label >
< div class = "col-sm-8" >
< input name = "enterpriseCode" th:field = "*{enterpriseCode}" class = "form-control" type = "text" >
< / div >
@ -70,24 +35,6 @@
< input name = "enterpriseName" th:field = "*{enterpriseName}" class = "form-control" type = "text" >
< / div >
< / div >
< div class = "form-group" >
< label class = "col-sm-3 control-label" > 物料数合计:< / label >
< div class = "col-sm-8" >
< input name = "materialSum" th:field = "*{materialSum}" class = "form-control" type = "text" >
< / div >
< / div >
< div class = "form-group" >
< label class = "col-sm-3 control-label" > 数量合计:< / label >
< div class = "col-sm-8" >
< input name = "enterpriseSum" th:field = "*{enterpriseSum}" class = "form-control" type = "text" >
< / div >
< / div >
< div class = "form-group" >
< label class = "col-sm-3 control-label" > 客户要求出发日期:< / label >
< div class = "col-sm-8" >
< input name = "startTime" th:field = "*{startTime}" class = "form-control" type = "text" >
< / div >
< / div >
< div class = "form-group" >
< label class = "col-sm-3 control-label" > 联系人:< / label >
< div class = "col-sm-8" >
@ -106,6 +53,12 @@
< input name = "companyAddress" th:field = "*{companyAddress}" class = "form-control" type = "text" >
< / div >
< / div >
< div class = "form-group" >
< label class = "col-sm-3 control-label" > 客户要求出发日期:< / label >
< div class = "col-sm-8" >
< input name = "startTime" th:field = "*{startTime}" class = "form-control" type = "text" >
< / div >
< / div >
< div class = "form-group" >
< label class = "col-sm-3 control-label" > 备注信息:< / label >
< div class = "col-sm-8" >
@ -122,19 +75,31 @@
< / select >
< / div >
< / div >
< / form >
< div class = "container" >
< div class = "row" >
< div class = "col-sm-12 select-table table-striped" >
< h3 class = "mb-4" > 选择设备< / h3 >
< table id = "bootstrap-table" > < / table >
< / div >
< / div >
< / div >
< / div >
< th:block th:include = "include :: footer" / >
< th:block th:include = "include :: datetimepicker-js" / >
< script th:src = "@{/js/activiti.js}" > < / script >
< script th:inline = "javascript" >
var prefix = ctx + "sales/afterSalesNotice";
var emergencyDegreeDatas = [[${@dict.getType('aftersales_emergency_degree')}]];
$("#form-afterSalesNotice-ywjl").validate({
focusCleanup: true
});
var afterSalesNotice = [[${formData}]]
function submitHandler() {
if ($.validate.form()) {
if ($('textarea[name="comment"]').val()) {
@ -150,6 +115,82 @@
minView: "month",
autoclose: true
});
$(function() {
var options = {
url: prefix + "/getAfterSalesNoticeDetailList",
modalName: "出货设备",
showColumns: false,
pagination: false,
showToggle: false,
showRefresh:false,
showSearch:false,
queryParams:queryParams,
columns: [{
checkbox: true
},
{
title: '料号',
field: 'materialNo',
},
{
title: '图片',
field: 'materialPhotourl',
},
{
title: '物料名称',
field: 'materialName',
},
{
title: '物料类型',
field: 'materialType',
},
{
title: '单位',
field: 'materialUnit',
},
{
title: '品牌',
field: 'materialBrand',
},
{
title: '描述',
field: 'materialDescribe',
},
{
title: '已出库数量',
field: 'shippedGoodsSum',
},
{
title: '设备SN',
field: 'snCode',
},
{
title: '售后问题',
field: 'aftersalesProblem',
},
{
title: '紧急程度',
field: 'emergencyDegree',
formatter: function(value, row, index) {
return $.table.selectDictLabel(emergencyDegreeDatas, value);
}
},
]
};
$.table.init(options);
})
function queryParams(params) {
var curParams = {
// 传递参数查询参数
aftersalesNoticeCode: afterSalesNotice.aftersalesNoticeCode
};
return curParams;
}
< / script >
< / body >
< / html >