页面bug修改
diff --git a/payapi/src/main/resources/data.sql b/payapi/src/main/resources/data.sql
index eec0489..b201022 100644
--- a/payapi/src/main/resources/data.sql
+++ b/payapi/src/main/resources/data.sql
@@ -500,7 +500,7 @@
VALUES ('DAYENDSETTLETASK', '日终结算', '0', '20190619100600', '{tenantid}');
INSERT INTO "tb_shop" ("shopid", "shopname", "shoptype", "fshopid", "status", "opendate", "tenantid")
-VALUES (1, '支付中心', 'root', 0, 'normal', '20190517', '{tenantid}');
+VALUES (1, '支付中心', 0, 0, 'normal', '20190517', '{tenantid}');
INSERT INTO "tb_transcode" ("transcode", "transname", "tenantid")
VALUES (3010, '市民卡代扣', '{tenantid}');
@@ -533,13 +533,13 @@
INSERT INTO "tb_dictionary" ("id", "dictval", "dicttype", "dictcaption", "dicttypename", "tenantid")
VALUES (12, 'hk_macau_pass', 'idtypeList', '港澳居民来往内地通行证', '证件类型', '{tenantid}');
INSERT INTO "tb_dictionary" ("id", "dictval", "dicttype", "dictcaption", "dicttypename", "tenantid")
-VALUES (13, 'taiwan_pass', 'idtypeList', '港澳通行证', '台湾同胞来往内地通行证', '{tenantid}');
+VALUES (13, 'taiwan_pass', 'idtypeList', '台湾同胞来往内地通行证', '证件类型', '{tenantid}');
INSERT INTO "tb_dictionary" ("id", "dictval", "dicttype", "dictcaption", "dicttypename", "tenantid")
-VALUES (14, 'foreigner_residence_permit', 'idtypeList', '港澳通行证', '外国人居留证', '{tenantid}');
+VALUES (14, 'foreigner_residence_permit', 'idtypeList', '外国人居留证', '证件类型', '{tenantid}');
INSERT INTO "tb_dictionary" ("id", "dictval", "dicttype", "dictcaption", "dicttypename", "tenantid")
-VALUES (15, 'military_idcard', 'idtypeList', '港澳通行证', '军官证', '{tenantid}');
+VALUES (15, 'military_idcard', 'idtypeList', '军官证', '证件类型', '{tenantid}');
INSERT INTO "tb_dictionary" ("id", "dictval", "dicttype", "dictcaption", "dicttypename", "tenantid")
-VALUES (16, 'soldier_idcard', 'idtypeList', '港澳通行证', '士兵证', '{tenantid}');
+VALUES (16, 'soldier_idcard', 'idtypeList', '士兵证', '证件类型', '{tenantid}');
INSERT INTO "tb_dictionary" ("id", "dictval", "dicttype", "dictcaption", "dicttypename", "tenantid")
VALUES (17, 'driving_license', 'idtypeList', '驾照', '证件类型', '{tenantid}');
INSERT INTO "tb_dictionary" ("id", "dictval", "dicttype", "dictcaption", "dicttypename", "tenantid")
diff --git a/payapi/src/main/resources/templates/system/report/subjectday.html b/payapi/src/main/resources/templates/system/report/subjectday.html
index 6804f2c..11453f8 100644
--- a/payapi/src/main/resources/templates/system/report/subjectday.html
+++ b/payapi/src/main/resources/templates/system/report/subjectday.html
@@ -80,7 +80,7 @@
title: '科目汇总表',
treeColIndex: 0,
treeSpid: '-1',
- treeIdName: 'subjid',
+ treeIdName: 'subjno',
treePidName: 'fsubjno',
treeDefaultClose: false,
treeLinkage: false,
@@ -92,7 +92,7 @@
toolbar:'#subjectday-toolbar',
cols: [
[
- {field: 'subjid', title: '科目号', align: 'left', rowspan: 2},
+ {field: 'subjno', title: '科目号', align: 'left', rowspan: 2},
{
field: 'subjname', title: '科目名称', align: 'left', rowspan: 2, templet: function (d) {
if (d.subjlevel == 1) {
diff --git a/payapi/src/main/resources/templates/system/shop/config.html b/payapi/src/main/resources/templates/system/shop/config.html
index ed1b027..028a976 100644
--- a/payapi/src/main/resources/templates/system/shop/config.html
+++ b/payapi/src/main/resources/templates/system/shop/config.html
@@ -121,7 +121,7 @@
});
$('#btn-search-shopsourcetype').click(function () {
var ptype = $("#search-sourceType").val();
- table.reload('shopPaytypeTable', {where: {sourceType: ptype, shopaccno: ""}, page: {curr: 1}});
+ table.reload('shopPaytypeTable', {where: {sourcetype: ptype, shopaccno: ""}, page: {curr: 1}});
});
function ondblclick(event, treeId, treeNode) {
@@ -131,7 +131,7 @@
}
var ptype = $("#search-sourceType").val();
table.reload('shopPaytypeTable', {
- where: {sourceType: ptype, shopaccno: treeNode.shopaccno},
+ where: {sourcetype: ptype, shopaccno: treeNode.shopaccno},
page: {curr: 1}
});
}
@@ -276,7 +276,7 @@
path: '[[@{/shop/load4addsourcetype}]]',
finish: function () {
table.reload('shopPaytypeTable', {
- where: {sourceType: "", shopaccno: shopNode.shopaccno},
+ where: {sourcetype: "", shopaccno: shopNode.shopaccno},
page: {curr: 1}
});
}
diff --git a/payapi/src/main/resources/templates/system/shop/configpara.html b/payapi/src/main/resources/templates/system/shop/configpara.html
index dcaeb05..762778c 100644
--- a/payapi/src/main/resources/templates/system/shop/configpara.html
+++ b/payapi/src/main/resources/templates/system/shop/configpara.html
@@ -14,7 +14,7 @@
<label class="layui-form-label" style="float: right;width: 100%;" th:text="${config.configid}">参数名</label>
</div>
<div class="layui-input-block" style="margin:0;display: inline;float: right;width: 80%;">
- <input type="text" th:name="${config.configid}" class="layui-input" th:value="${config.configValue}" autocomplete="off"/>
+ <input type="text" th:name="${config.configid}" class="layui-input" th:value="${config.configValue}" th:placeholder="${config.configName}" autocomplete="off"/>
</div>
</div>
diff --git a/payapi/src/main/resources/templates/system/shop/index.html b/payapi/src/main/resources/templates/system/shop/index.html
index 32ab1dc..78ef8af 100644
--- a/payapi/src/main/resources/templates/system/shop/index.html
+++ b/payapi/src/main/resources/templates/system/shop/index.html
@@ -30,6 +30,7 @@
<div class="layui-input-inline">
<select name="shoptype" id="shoptype" lay-filter="shoptype-filter"
lay-verify="required">
+ <option value="root">根商户</option>
<option value="group">商户组</option>
<option value="normal">结算商户</option>
</select>
@@ -118,12 +119,7 @@
<label class="layui-form-label">证件类型</label>
<div class="layui-input-inline">
<select name="idtype" lay-filter="idtype-filter">
- <option value="1">身份证</option>
- <option value="2">护照</option>
- <option value="3">驾照</option>
- <option value="4">港澳通行证</option>
- <option value="5">学生证</option>
- <option value="9">其他</option>
+ <option th:each="bean : ${idtypeList}" th:value="${bean.dictval}">[[${bean.dictcaption}]]</option>
</select>
</div>
</div>
@@ -353,13 +349,14 @@
"zipcode": "",
"addr": "",
"contactman": "",
- "idtype": "1",
+ "idtype": "idcard",
"idno": "",
"mobile": "",
"email": "",
"tel": ""
});
$("#fshopid").attr("readonly", "readonly");
+ $("#shoptype option[value='root']").remove();
$("#shoptype").removeAttr("disabled");
form.render('select');
$("#submitbtn-shop-btn").text("新增");
@@ -377,6 +374,14 @@
}, function (data) {
console.log("getshopinfo返回", data);
if (data.code === 200) {
+ debugger
+ var root_index = $("#shoptype option[value='root']").attr("index");
+ if(undefined == root_index){
+ $("#shoptype").append("<option value=\"root\">根商户</option>");
+ }
+ if(null==data.shop.idtype){
+ data.shop["idtype"]="idcard"
+ }
form.val("shop-info-form", data.shop);
$("#fshopid").removeAttr("readonly");
$("#shoptype").attr('disabled', 'disabled');