合同选择弹窗,增加新增功能
parent
36862b93ec
commit
30a669b650
File diff suppressed because it is too large
Load Diff
|
@ -358,7 +358,7 @@
|
||||||
var url = prefix + "/selectCustomer";
|
var url = prefix + "/selectCustomer";
|
||||||
var options = {
|
var options = {
|
||||||
title: '选择客户',
|
title: '选择客户',
|
||||||
width: "680",
|
width: "800",
|
||||||
url: url,
|
url: url,
|
||||||
height: '600',
|
height: '600',
|
||||||
callBack: doSubmitCustomer
|
callBack: doSubmitCustomer
|
||||||
|
@ -370,7 +370,7 @@
|
||||||
var url = prefix + "/selectPartner";
|
var url = prefix + "/selectPartner";
|
||||||
var options = {
|
var options = {
|
||||||
title: '选择代理商',
|
title: '选择代理商',
|
||||||
width: "680",
|
width: "800",
|
||||||
height: '600',
|
height: '600',
|
||||||
url: url,
|
url: url,
|
||||||
callBack: doSubmitPartner
|
callBack: doSubmitPartner
|
||||||
|
@ -381,8 +381,8 @@
|
||||||
function selectAgent() {
|
function selectAgent() {
|
||||||
var url = prefix + "/selectAgent";
|
var url = prefix + "/selectAgent";
|
||||||
var options = {
|
var options = {
|
||||||
title: '选择代理商',
|
title: '选择代表处',
|
||||||
width: "680",
|
width: "800",
|
||||||
height: '600',
|
height: '600',
|
||||||
url: url,
|
url: url,
|
||||||
callBack: doSubmitAgent
|
callBack: doSubmitAgent
|
||||||
|
@ -393,8 +393,8 @@
|
||||||
function selectPeople() {
|
function selectPeople() {
|
||||||
var url = prefix + "/selectPeople";
|
var url = prefix + "/selectPeople";
|
||||||
var options = {
|
var options = {
|
||||||
title: '选择代理商',
|
title: '选择责任人',
|
||||||
width: "680",
|
width: "800",
|
||||||
height: '600',
|
height: '600',
|
||||||
url: url,
|
url: url,
|
||||||
callBack: doSubmitPeople
|
callBack: doSubmitPeople
|
||||||
|
@ -405,7 +405,7 @@
|
||||||
function doSubmitCustomer(index, layero) {
|
function doSubmitCustomer(index, layero) {
|
||||||
var rows = layero.find("iframe")[0].contentWindow.getSelections();
|
var rows = layero.find("iframe")[0].contentWindow.getSelections();
|
||||||
if (rows.length == 0) {
|
if (rows.length == 0) {
|
||||||
$.modal.alertWarning("请选择一个用户");
|
$.modal.alertWarning("请选择一个客户");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$('[name="customerCode"]').val(rows[0].customerCode);
|
$('[name="customerCode"]').val(rows[0].customerCode);
|
||||||
|
@ -428,7 +428,7 @@
|
||||||
function doSubmitPeople(index, layero) {
|
function doSubmitPeople(index, layero) {
|
||||||
var rows = layero.find("iframe")[0].contentWindow.getSelections();
|
var rows = layero.find("iframe")[0].contentWindow.getSelections();
|
||||||
if (rows.length == 0) {
|
if (rows.length == 0) {
|
||||||
$.modal.alertWarning("请选择一个代理商");
|
$.modal.alertWarning("请选择一个责任人");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$('[name="hzSupportUser"]').val(rows[0].userId);
|
$('[name="hzSupportUser"]').val(rows[0].userId);
|
||||||
|
@ -440,7 +440,7 @@
|
||||||
function doSubmitAgent(index, layero) {
|
function doSubmitAgent(index, layero) {
|
||||||
var rows = layero.find("iframe")[0].contentWindow.getSelections();
|
var rows = layero.find("iframe")[0].contentWindow.getSelections();
|
||||||
if (rows.length == 0) {
|
if (rows.length == 0) {
|
||||||
$.modal.alertWarning("请选择一个代理商");
|
$.modal.alertWarning("请选择一个代表处");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$('[name="agentCode"]').val(rows[0].agentCode);
|
$('[name="agentCode"]').val(rows[0].agentCode);
|
||||||
|
|
|
@ -397,7 +397,7 @@
|
||||||
var url = prefix + "/selectCustomer";
|
var url = prefix + "/selectCustomer";
|
||||||
var options = {
|
var options = {
|
||||||
title: '选择客户',
|
title: '选择客户',
|
||||||
width: "680",
|
width: "800",
|
||||||
url: url,
|
url: url,
|
||||||
height: '600',
|
height: '600',
|
||||||
callBack: doSubmitCustomer
|
callBack: doSubmitCustomer
|
||||||
|
@ -409,7 +409,7 @@
|
||||||
var url = prefix + "/selectPartner";
|
var url = prefix + "/selectPartner";
|
||||||
var options = {
|
var options = {
|
||||||
title: '选择代理商',
|
title: '选择代理商',
|
||||||
width: "680",
|
width: "800",
|
||||||
height: '600',
|
height: '600',
|
||||||
url: url,
|
url: url,
|
||||||
callBack: doSubmitPartner
|
callBack: doSubmitPartner
|
||||||
|
@ -420,8 +420,8 @@
|
||||||
function selectAgent() {
|
function selectAgent() {
|
||||||
var url = prefix + "/selectAgent";
|
var url = prefix + "/selectAgent";
|
||||||
var options = {
|
var options = {
|
||||||
title: '选择代理商',
|
title: '选择代表处',
|
||||||
width: "680",
|
width: "800",
|
||||||
height: '600',
|
height: '600',
|
||||||
url: url,
|
url: url,
|
||||||
callBack: doSubmitAgent
|
callBack: doSubmitAgent
|
||||||
|
@ -432,8 +432,8 @@
|
||||||
function selectPeople() {
|
function selectPeople() {
|
||||||
var url = prefix + "/selectPeople";
|
var url = prefix + "/selectPeople";
|
||||||
var options = {
|
var options = {
|
||||||
title: '选择代理商',
|
title: '选择责任人',
|
||||||
width: "680",
|
width: "800",
|
||||||
height: '600',
|
height: '600',
|
||||||
url: url,
|
url: url,
|
||||||
callBack: doSubmitPeople
|
callBack: doSubmitPeople
|
||||||
|
@ -444,7 +444,7 @@
|
||||||
function doSubmitCustomer(index, layero) {
|
function doSubmitCustomer(index, layero) {
|
||||||
var rows = layero.find("iframe")[0].contentWindow.getSelections();
|
var rows = layero.find("iframe")[0].contentWindow.getSelections();
|
||||||
if (rows.length == 0) {
|
if (rows.length == 0) {
|
||||||
$.modal.alertWarning("请选择一个用户");
|
$.modal.alertWarning("请选择一个客户");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$('[name="customerCode"]').val(rows[0].customerCode);
|
$('[name="customerCode"]').val(rows[0].customerCode);
|
||||||
|
@ -467,7 +467,7 @@
|
||||||
function doSubmitPeople(index, layero) {
|
function doSubmitPeople(index, layero) {
|
||||||
var rows = layero.find("iframe")[0].contentWindow.getSelections();
|
var rows = layero.find("iframe")[0].contentWindow.getSelections();
|
||||||
if (rows.length == 0) {
|
if (rows.length == 0) {
|
||||||
$.modal.alertWarning("请选择一个代理商");
|
$.modal.alertWarning("请选择一个责任人");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$('[name="hzSupportUser"]').val(rows[0].userId);
|
$('[name="hzSupportUser"]').val(rows[0].userId);
|
||||||
|
@ -479,7 +479,7 @@
|
||||||
function doSubmitAgent(index, layero) {
|
function doSubmitAgent(index, layero) {
|
||||||
var rows = layero.find("iframe")[0].contentWindow.getSelections();
|
var rows = layero.find("iframe")[0].contentWindow.getSelections();
|
||||||
if (rows.length == 0) {
|
if (rows.length == 0) {
|
||||||
$.modal.alertWarning("请选择一个代理商");
|
$.modal.alertWarning("请选择一个代表处");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$('[name="agentCode"]').val(rows[0].agentCode);
|
$('[name="agentCode"]').val(rows[0].agentCode);
|
||||||
|
|
|
@ -417,8 +417,11 @@
|
||||||
yes: function (index, layero) {
|
yes: function (index, layero) {
|
||||||
let body = parent.layer.getChildFrame('body', index)
|
let body = parent.layer.getChildFrame('body', index)
|
||||||
if ($(body.find('#form-product-add').get(0)).validate().form()) {
|
if ($(body.find('#form-product-add').get(0)).validate().form()) {
|
||||||
$.operate.save(prefix + "/add", body.find('#form-product-add').serialize(), function () {
|
$.operate.save(prefix + "/add", body.find('#form-product-add').serialize(), function (res) {
|
||||||
parent.layer.close(index)
|
if (res.code == web_status.SUCCESS) {
|
||||||
|
$.table.search()
|
||||||
|
parent.layer.close(index)
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
<li style="width: 95%;text-align: right">
|
<li style="width: 95%;text-align: right">
|
||||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
|
||||||
class="fa fa-search"></i> 搜索</a>
|
class="fa fa-search"></i> 搜索</a>
|
||||||
|
|
||||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
|
||||||
class="fa fa-refresh"></i> 重置</a>
|
class="fa fa-refresh"></i> 重置</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -36,9 +37,11 @@
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="btn-group-sm" id="toolbar" role="group">
|
||||||
|
<a class="btn btn-success btn-rounded btn-sm" onclick="openAdd()"><i
|
||||||
|
class="fa fa-plus"></i> 添加</a>
|
||||||
|
</div>
|
||||||
<div class="col-sm-12 select-table table-striped">
|
<div class="col-sm-12 select-table table-striped">
|
||||||
|
|
||||||
<table id="bootstrap-table"></table>
|
<table id="bootstrap-table"></table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -49,16 +52,42 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var prefix = ctx + "system/agent";
|
var prefix = ctx + "system/agent";
|
||||||
|
function openAdd() {
|
||||||
|
window.localStorage.setItem('layerTable',1)
|
||||||
|
var options = {
|
||||||
|
title: "新建代表处",
|
||||||
|
url: prefix + `/add`,
|
||||||
|
maxmin: false,
|
||||||
|
full: false,
|
||||||
|
index: 1000,
|
||||||
|
width: 800,
|
||||||
|
yes: function (index, layero) {
|
||||||
|
let body = parent.layer.getChildFrame('body', index)
|
||||||
|
if ($(body.find('#form-agent-add').get(0)).validate().form()) {
|
||||||
|
$.operate.save(prefix + "/add", body.find('#form-agent-add').serialize(), function (res) {
|
||||||
|
if (res.code == web_status.SUCCESS) {
|
||||||
|
$.table.search()
|
||||||
|
parent.layer.close(index)
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
|
$.modal.openOptions(options)
|
||||||
|
}
|
||||||
$(function () {
|
$(function () {
|
||||||
var options = {
|
var options = {
|
||||||
url: prefix + "/list",
|
url: prefix + "/list",
|
||||||
|
createUrl: prefix + "/add",
|
||||||
showSearch: true,
|
showSearch: true,
|
||||||
showColumns: false,
|
showColumns: false,
|
||||||
showToggle: false,
|
showToggle: false,
|
||||||
showPageGo: true,
|
showPageGo: true,
|
||||||
showRefresh: false,
|
showRefresh: false,
|
||||||
search: false,
|
// search: false,
|
||||||
params: {},
|
params: {},
|
||||||
|
modalName: "办事处信息",
|
||||||
columns: [{
|
columns: [{
|
||||||
radio: true
|
radio: true
|
||||||
},
|
},
|
||||||
|
|
|
@ -54,6 +54,10 @@
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="btn-group-sm" id="toolbar" role="group">
|
||||||
|
<a class="btn btn-success btn-rounded btn-sm" onclick="openAdd()"><i
|
||||||
|
class="fa fa-plus"></i> 添加</a>
|
||||||
|
</div>
|
||||||
<div class="col-sm-12 select-table table-striped">
|
<div class="col-sm-12 select-table table-striped">
|
||||||
<table id="bootstrap-table"></table>
|
<table id="bootstrap-table"></table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -63,6 +67,30 @@
|
||||||
<th:block th:include="include :: footer"/>
|
<th:block th:include="include :: footer"/>
|
||||||
<script>
|
<script>
|
||||||
var prefix = ctx + "system/customer";
|
var prefix = ctx + "system/customer";
|
||||||
|
function openAdd() {
|
||||||
|
window.localStorage.setItem('layerTable',1)
|
||||||
|
var options = {
|
||||||
|
title: "新建代理商",
|
||||||
|
url: prefix + `/add`,
|
||||||
|
maxmin: false,
|
||||||
|
full: false,
|
||||||
|
index: 1000,
|
||||||
|
width: 800,
|
||||||
|
yes: function (index, layero) {
|
||||||
|
let body = parent.layer.getChildFrame('body', index)
|
||||||
|
if ($(body.find('#form-info-add').get(0)).validate().form()) {
|
||||||
|
$.operate.save(prefix + "/add", body.find('#form-info-add').serialize(), function (res) {
|
||||||
|
if (res.code == web_status.SUCCESS) {
|
||||||
|
$.table.search()
|
||||||
|
parent.layer.close(index)
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
|
$.modal.openOptions(options)
|
||||||
|
}
|
||||||
$(function () {
|
$(function () {
|
||||||
var options = {
|
var options = {
|
||||||
url: prefix + "/list",
|
url: prefix + "/list",
|
||||||
|
|
|
@ -44,6 +44,10 @@
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="btn-group-sm" id="toolbar" role="group">
|
||||||
|
<a class="btn btn-success btn-rounded btn-sm" onclick="openAdd()"><i
|
||||||
|
class="fa fa-plus"></i> 添加</a>
|
||||||
|
</div>
|
||||||
<div class="col-sm-12 select-table table-striped">
|
<div class="col-sm-12 select-table table-striped">
|
||||||
<table id="bootstrap-table"></table>
|
<table id="bootstrap-table"></table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -54,7 +58,30 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var prefix = ctx + "system/partner";
|
var prefix = ctx + "system/partner";
|
||||||
|
function openAdd() {
|
||||||
|
window.localStorage.setItem('layerTable',1)
|
||||||
|
var options = {
|
||||||
|
title: "新建代理商",
|
||||||
|
url: prefix + `/add`,
|
||||||
|
maxmin: false,
|
||||||
|
full: false,
|
||||||
|
index: 1000,
|
||||||
|
width: 800,
|
||||||
|
yes: function (index, layero) {
|
||||||
|
let body = parent.layer.getChildFrame('body', index)
|
||||||
|
if ($(body.find('#form-partner-add').get(0)).validate().form()) {
|
||||||
|
$.operate.save(prefix + "/add", body.find('#form-partner-add').serialize(), function (res) {
|
||||||
|
if (res.code == web_status.SUCCESS) {
|
||||||
|
$.table.search()
|
||||||
|
parent.layer.close(index)
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
|
$.modal.openOptions(options)
|
||||||
|
}
|
||||||
$(function () {
|
$(function () {
|
||||||
var options = {
|
var options = {
|
||||||
url: prefix + "/list",
|
url: prefix + "/list",
|
||||||
|
|
Loading…
Reference in New Issue