订单页面添加
parent
4e19262b7e
commit
61e576fdf0
|
@ -203,12 +203,12 @@
|
|||
<tr>
|
||||
<td>进货商<span class="is-required">*</span></td>
|
||||
<td><input name="partnerName" class="form-control" type="text"
|
||||
onclick="selectPeople()" required></td>
|
||||
onclick="selectPartner()" required></td>
|
||||
<td>进货商代码<span class="is-required">*</span></td>
|
||||
<td><input type="text" name="partnerCode"
|
||||
class="form-control" required></td>
|
||||
class="form-control" readonly placeholder="选择后带入" required></td>
|
||||
<td>进货商类型<span class="is-required">*</span></td>
|
||||
<td><input name="level" class="form-control" type="text" required></td>
|
||||
<td><input name="level" class="form-control" placeholder="选择后带入" type="text" required></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>供货商<span class="is-required">*</span></td>
|
||||
|
@ -450,6 +450,7 @@
|
|||
}
|
||||
$('[name="partnerCode"]').val(rows[0].partnerCode);
|
||||
$('[name="partnerName"]').val(rows[0].partnerName);
|
||||
$('[name="level"]').val(rows[0].level);
|
||||
|
||||
$.modal.close(index);
|
||||
}
|
||||
|
@ -711,7 +712,16 @@
|
|||
|
||||
function downloadTem() {
|
||||
var xhr = new XMLHttpRequest(); // 创建XMLHttpRequest对象
|
||||
window.location.href = prefix + "/contract/export?fileName=文件1.xlsx"
|
||||
if(!$('[name="orderChannel"]').val()){
|
||||
$.modal.alertWarning("请先选择下单通路");
|
||||
return
|
||||
}
|
||||
if($('[name="orderChannel"]').val()==1){
|
||||
window.location.href = prefix + "/contract/export?fileName=文件111.xlsx"
|
||||
}else{
|
||||
window.location.href = prefix + "/contract/export?fileName=文件222.xlsx"
|
||||
}
|
||||
|
||||
$.modal.closeLoading()
|
||||
}
|
||||
document.getElementById('uploadInput').addEventListener('change', function (event) {
|
||||
|
|
|
@ -0,0 +1,137 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||
<head>
|
||||
<th:block th:include="include :: header('选择客户')"/>
|
||||
</head>
|
||||
<style>
|
||||
.select-list li {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.select-list li label {
|
||||
width: 88px !important;
|
||||
}
|
||||
</style>
|
||||
<body class="gray-bg">
|
||||
<div class="container-div">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 search-collapse">
|
||||
<form id="formId">
|
||||
<div class="select-list">
|
||||
<ul>
|
||||
<li>
|
||||
<label>客户编码:</label>
|
||||
<input type="text" name="customerCode"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>客户名称:</label>
|
||||
<input type="text" name="customerName"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>联系人:</label>
|
||||
<input type="text" name="contactPerson"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>联系电话:</label>
|
||||
<input type="text" name="contactPhone"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>所属行业:</label>
|
||||
<select name="industryType" class="form-control"
|
||||
th:with="type=${@dict.getType('industry_code')}" required>
|
||||
<option value="">所有</option>
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||
th:value="${dict.dictValue}"></option>
|
||||
</select>
|
||||
</li>
|
||||
<li style="width: 46%;text-align: right;">
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
|
||||
class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
|
||||
class="fa fa-refresh"></i> 重置</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-sm-12 select-table table-striped">
|
||||
<table id="bootstrap-table"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<th:block th:include="include :: footer"/>
|
||||
<script>
|
||||
var prefix = ctx + "system/customer";
|
||||
$(function () {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
showSearch: true,
|
||||
showColumns: false,
|
||||
showToggle: false,
|
||||
showPageGo: true,
|
||||
showRefresh: false,
|
||||
search: false,
|
||||
params: {},
|
||||
columns: [{
|
||||
radio: true
|
||||
},
|
||||
{
|
||||
field: 'customerCode',
|
||||
title: '客户编码'
|
||||
},
|
||||
{
|
||||
field: 'customerName',
|
||||
title: '客户名称'
|
||||
},
|
||||
{
|
||||
field: 'customerPostcode',
|
||||
title: '客户邮编'
|
||||
},
|
||||
{
|
||||
field: 'address',
|
||||
title: '详细地址'
|
||||
},
|
||||
{
|
||||
field: 'contactPerson',
|
||||
title: '联系人'
|
||||
},
|
||||
{
|
||||
field: 'contactPhone',
|
||||
title: '联系电话'
|
||||
},
|
||||
{
|
||||
field: 'contactEmail',
|
||||
title: '联系邮件'
|
||||
},
|
||||
{
|
||||
field: 'industryType',
|
||||
title: '所属行业',
|
||||
formatter:(value,row)=>{
|
||||
const arr=[]
|
||||
$('[name="industryType"] option').each((index,item)=>{
|
||||
arr.push({
|
||||
text:$(item).text(),
|
||||
value:$(item).val()
|
||||
})
|
||||
})
|
||||
return arr.find((ele)=>ele.value==value)?.text
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'remark',
|
||||
title: '备注'
|
||||
},
|
||||
]
|
||||
};
|
||||
$.table.init(options);
|
||||
});
|
||||
|
||||
function getSelections() {
|
||||
var rows = $('#bootstrap-table').bootstrapTable('getSelections');
|
||||
return rows;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,111 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||
<head>
|
||||
<th:block th:include="include :: header('选择代理商')"/>
|
||||
</head>
|
||||
<style>
|
||||
.select-list li{
|
||||
display: inline-block;
|
||||
}
|
||||
.select-list li label{
|
||||
width: 88px !important;
|
||||
}
|
||||
</style>
|
||||
<body class="gray-bg">
|
||||
<div class="container-div">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 search-collapse">
|
||||
<form id="formId">
|
||||
<div class="select-list">
|
||||
<ul>
|
||||
<li>
|
||||
<label>代理商编码:</label>
|
||||
<input type="text" name="partnerCode"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>代理商名称:</label>
|
||||
<input type="text" name="partnerName"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>认证级别:</label>
|
||||
<select name="level" th:with="type=${@dict.getType('identify_level')}">
|
||||
<option value="">所有</option>
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||
th:value="${dict.dictValue}"></option>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
|
||||
class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
|
||||
class="fa fa-refresh"></i> 重置</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-sm-12 select-table table-striped">
|
||||
<table id="bootstrap-table"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<th:block th:include="include :: footer"/>
|
||||
|
||||
|
||||
<script>
|
||||
var prefix = ctx + "system/partner";
|
||||
|
||||
$(function () {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
showSearch: true,
|
||||
showColumns: false,
|
||||
showToggle: false,
|
||||
showPageGo: true,
|
||||
showRefresh: false,
|
||||
search: false,
|
||||
params: {},
|
||||
columns: [{
|
||||
radio: true
|
||||
},
|
||||
{
|
||||
field: 'partnerCode',
|
||||
title: '供应商编码'
|
||||
},
|
||||
{
|
||||
field: 'partnerName',
|
||||
title: '供应商名称'
|
||||
},
|
||||
{
|
||||
field: 'province',
|
||||
title: '省'
|
||||
},
|
||||
{
|
||||
field: 'city',
|
||||
title: '市'
|
||||
},
|
||||
{
|
||||
field: 'address',
|
||||
title: '详细地址'
|
||||
},
|
||||
{
|
||||
field: 'contactPerson',
|
||||
title: '联系人'
|
||||
},
|
||||
{
|
||||
field: 'contactPhone',
|
||||
title: '联系电话'
|
||||
},
|
||||
]
|
||||
};
|
||||
$.table.init(options);
|
||||
});
|
||||
|
||||
function getSelections() {
|
||||
var rows = $('#bootstrap-table').bootstrapTable('getSelections');
|
||||
return rows;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,96 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||
<head>
|
||||
<th:block th:include="include :: header('选择代理商')"/>
|
||||
</head>
|
||||
<style>
|
||||
.select-list li {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.select-list li label {
|
||||
width: 88px !important;
|
||||
}
|
||||
</style>
|
||||
<body class="gray-bg">
|
||||
<div class="container-div">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 search-collapse">
|
||||
<form id="formId">
|
||||
<div class="select-list">
|
||||
<ul>
|
||||
<li>
|
||||
<label>代理商编码:</label>
|
||||
<input type="text" name="partnerCode"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>代理商名称:</label>
|
||||
<input type="text" name="partnerName"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>认证级别:</label>
|
||||
<select name="level" th:with="type=${@dict.getType('identify_level')}">
|
||||
<option value="">所有</option>
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||
th:value="${dict.dictValue}"></option>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
|
||||
class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
|
||||
class="fa fa-refresh"></i> 重置</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-sm-12 select-table table-striped">
|
||||
<table id="bootstrap-table"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<th:block th:include="include :: footer"/>
|
||||
|
||||
|
||||
<script>
|
||||
var prefix = ctx + "system/user";
|
||||
|
||||
$(function () {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
showSearch: true,
|
||||
showColumns: false,
|
||||
showToggle: false,
|
||||
showPageGo: true,
|
||||
showRefresh: false,
|
||||
search: false,
|
||||
params: {},
|
||||
columns: [{
|
||||
radio: true
|
||||
},
|
||||
{
|
||||
field: 'userName',
|
||||
title: '人员名称'
|
||||
},
|
||||
{
|
||||
field: 'phonenumber ',
|
||||
title: '人员电话'
|
||||
},
|
||||
{
|
||||
field: 'dept.deptName',
|
||||
title: '所属部门'
|
||||
},
|
||||
]
|
||||
};
|
||||
$.table.init(options);
|
||||
});
|
||||
|
||||
function getSelections() {
|
||||
var rows = $('#bootstrap-table').bootstrapTable('getSelections');
|
||||
return rows;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -214,4 +214,19 @@ public class ProjectOrderInfoController extends BaseController
|
|||
log.error("下载文件失败", e);
|
||||
}
|
||||
}
|
||||
@GetMapping("/selectCustomer")
|
||||
public String selectCustomer()
|
||||
{
|
||||
return prefix + "/selectCustomer";
|
||||
}
|
||||
@GetMapping("/selectPartner")
|
||||
public String selectPartner()
|
||||
{
|
||||
return prefix + "/selectPartner";
|
||||
}
|
||||
@GetMapping("selectPeople")
|
||||
public String selectPeople()
|
||||
{
|
||||
return prefix + "/selectPeople";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue