费用单据新增手机号

master
xiechao 2024-04-30 15:07:43 +08:00
parent 17afd36c26
commit 29bdfdc723
7 changed files with 42 additions and 22 deletions

View File

@ -194,14 +194,14 @@ public class FybxController extends BaseController {
JSONObject fydj = new JSONObject();
fydj.put("djbh", data.get("DJBH")); // 单据编号
if (ObjectUtil.isNotEmpty(data.get("DJRQ"))) {
fydj.put("djrq", DateUtil.format(DateUtil.date(data.getLong("DJRQ")), "yyyy-MM-dd")); // 单据日期 格式yyyy-MM-dd
fydj.put("djrq", data.get("DJRQ")); // 单据日期 格式yyyy-MM-dd
}
fydj.put("djlx", data.get("DJLX")); // 单据类型
fydj.put("djje", data.get("DJJE")); // 单据金额
fydj.put("djse", data.get("DJSE")); // 单据税额
fydj.put("bxr", data.get("BXR")); // 报销人
if (ObjectUtil.isNotEmpty(data.get("BXSJ"))) {
fydj.put("bxsj", DateUtil.format(DateUtil.date(data.getLong("BXSJ")), "yyyy-MM-dd HH:mm:ss")); // 报销时间 yyyy-MM-dd HH:mm:ss
fydj.put("bxsj", data.get("BXSJ")); // 报销时间 yyyy-MM-dd HH:mm:ss
}
fydj.put("bxsy", data.get("BXSY")); // 报销事由
fydj.put("bxzt", data.get("BXZT")); // 报销状态1.未报销 2.报销中 3.已报销

View File

@ -40,6 +40,7 @@
<if test="SSBM!=null and SSBM!=''">SSBM, </if>
<if test="ZW!=null and ZW!=''">ZW, </if>
<if test="BZ!=null and BZ!=''">BZ, </if>
<if test="PHONE!=null and PHONE!=''">PHONE, </if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="FYID!=null and FYID!=''">#{FYID}, </if>
@ -56,7 +57,8 @@
<if test="KHMC!=null and KHMC!=''">#{KHMC}, </if>
<if test="SSBM!=null and SSBM!=''">#{SSBM}, </if>
<if test="ZW!=null and ZW!=''">#{ZW}, </if>
<if test="BZ!=null and BZ!=''">#{BZ} </if>
<if test="BZ!=null and BZ!=''">#{BZ}, </if>
<if test="PHONE!=null and PHONE!=''">#{PHONE} </if>
</trim>
</insert>
<insert id="updateZZSGL_JX_FYDJ" parameterType="map">
@ -75,7 +77,8 @@
<if test="KHMC!=null and KHMC!=''">KHMC = #{KHMC}, </if>
<if test="SSBM!=null and SSBM!=''">SSBM = #{SSBM}, </if>
<if test="ZW!=null and ZW!=''">ZW = #{ZW}, </if>
<if test="BZ!=null and BZ!=''">BZ = #{BZ} </if>
<if test="BZ!=null and BZ!=''">BZ = #{BZ}, </if>
<if test="PHONE!=null and PHONE!=''">PHONE = #{PHONE} </if>
</set>
WHERE FYID = #{FYID}
</insert>

View File

@ -80,7 +80,7 @@ var kpsq_add =(function(){
data["FYMX_list"] = JSON.stringify(kpxxList);
data["DJBH"] = $("#DJBH").val();
data["DJRQ"] = $("#DJRQ").val();
data["DJLX"] = $("#DJLX_DM").val();
data["DJLX"] = $("#DJLX").val();
data["DJJE"] = $("#DJJE").val();
data["DJSE"] = $("#DJSE").val();
data["BXR"] = $("#BXR").val();

View File

@ -97,13 +97,13 @@ var kpsq_edit = (function () {
data["DJSE"] = $("#DJSE").val();
data["BXR"] = $("#BXR").val();
data["BXSY"] = $("#BXSY").val();
data["BXSY"] = $("#BXSY").val();
data["KHSH"] = $("#KHSH").val();
data["KHMC"] = $("#KHMC").val();
data["SSBM"] = $("#SSBM").val();
data["ZW"] = $("#ZW").val();
data["BZ"] = $("#BZ").val();
data["FYID"] = $("#FYID").val();
data["PHONE"] = $("#PHONE").val();
var url = "/web/xxgl/xmkpgl/fybx/insert";// 新增费用报销,新增和修改页面保存操作调用的是同一个后台方法
baseTools.xhrAjax({

View File

@ -1,11 +1,8 @@
var FybxUtil = (function (){
var DJLX = [
{value: "1",label: "办公费用"},
{value: "2",label: "通讯费"},
{value: "3",label: "差旅费"},
{value: "4",label: "业务费用"},
{value: "5",label: "车辆费用"},
{value: "1",label: "个人报销"},
{value: "2",label: "对公报销"},
];
var BXZT = [
@ -15,11 +12,10 @@ var FybxUtil = (function (){
];
var FYLX = [
{value: "1",label: "办公费用"},
{value: "2",label: "通讯费"},
{value: "3",label: "差旅费"},
{value: "4",label: "业务费用"},
{value: "5",label: "车辆费用"},
{value: "01",label: "出差补助"},
{value: "02",label: "出差车费及机票费"},
{value: "03",label: "市内交通费"},
{value: "04",label: "住宿费"},
];

View File

@ -134,6 +134,18 @@
/>
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">手机号:</label>
<div class="layui-input-block">
<input type="text" class="layui-input"
id="PHONE"
name="PHONE"
placeholder="手机号"
autocomplete="off"
value=""
/>
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">客户税号:</label>
<div class="layui-input-block">
@ -230,9 +242,6 @@
<td>
<select name="FYLX" lay-verify="" lay-filter="">
<option value="" >请选择</option>
<option value="004">增值税专票</option>
<option value="007">增值税普票</option>
<option value="026">增值税电票</option>
</select>
</td>
<td>

View File

@ -134,6 +134,18 @@
/>
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">手机号:</label>
<div class="layui-input-block">
<input type="text" class="layui-input"
id="PHONE"
name="PHONE"
placeholder="手机号"
autocomplete="off"
value=""
/>
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">客户税号:</label>
<div class="layui-input-block">