费用报销单
parent
0616b7543b
commit
b0c7e33b59
|
@ -55,6 +55,7 @@ public class FybxServiceImpl implements IFybxService {
|
||||||
} else {
|
} else {
|
||||||
userMap.put("FYID", Get16BM.getUnquieID());
|
userMap.put("FYID", Get16BM.getUnquieID());
|
||||||
userMap.put("BXSJ", DateUtil.date());
|
userMap.put("BXSJ", DateUtil.date());
|
||||||
|
userMap.put("BXZT", 1);
|
||||||
// 保存费用单据
|
// 保存费用单据
|
||||||
result = this.fybxMapper.insertZZSGL_JX_FYDJ(userMap);
|
result = this.fybxMapper.insertZZSGL_JX_FYDJ(userMap);
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,28 +24,57 @@
|
||||||
</select>
|
</select>
|
||||||
<insert id="insertZZSGL_JX_FYDJ" parameterType="map">
|
<insert id="insertZZSGL_JX_FYDJ" parameterType="map">
|
||||||
INSERT INTO ZZSGL_JX_FYDJ(
|
INSERT INTO ZZSGL_JX_FYDJ(
|
||||||
FYID, DJBH, DJRQ, DJLX, DJJE, DJSE, BXR, BXSJ, BXZT, BXSY, KHSH, KHMC, SSBM, ZW, BZ
|
<if test="FYID!=null and FYID!=''">FYID, </if>
|
||||||
|
<if test="DJBH!=null and DJBH!=''">DJBH, </if>
|
||||||
|
<if test="DJRQ!=null and DJRQ!=''">DJRQ, </if>
|
||||||
|
<if test="DJLX!=null and DJLX!=''">DJLX, </if>
|
||||||
|
<if test="DJJE!=null and DJJE!=''">DJJE, </if>
|
||||||
|
<if test="DJSE!=null and DJSE!=''">DJSE, </if>
|
||||||
|
<if test="BXR!=null and BXR!=''">BXR, </if>
|
||||||
|
<if test="BXSJ!=null and BXSJ!=''">BXSJ, </if>
|
||||||
|
<if test="BXZT!=null and BXZT!=''">BXZT, </if>
|
||||||
|
<if test="BXSY!=null and BXSY!=''">BXSY, </if>
|
||||||
|
<if test="KHSH!=null and KHSH!=''">KHSH, </if>
|
||||||
|
<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>
|
||||||
) VALUES (
|
) VALUES (
|
||||||
#{FYID},#{DJBH},#{DJRQ}, #{DJLX}, #{DJJE}, #{DJSE}, #{BXR},
|
<if test="FYID!=null and FYID!=''">#{FYID}, </if>
|
||||||
#{BXSJ}, #{BXZT}, #{BXSY}, #{KHSH}, #{KHMC}, #{SSBM}, #{ZW}, #{BZ}
|
<if test="DJBH!=null and DJBH!=''">#{DJBH}, </if>
|
||||||
|
<if test="DJRQ!=null and DJRQ!=''">#{DJRQ}, </if>
|
||||||
|
<if test="DJLX!=null and DJLX!=''">#{DJLX}, </if>
|
||||||
|
<if test="DJJE!=null and DJJE!=''">#{DJJE}, </if>
|
||||||
|
<if test="DJSE!=null and DJSE!=''">#{DJSE}, </if>
|
||||||
|
<if test="BXR!=null and BXR!=''">#{BXR}, </if>
|
||||||
|
<if test="BXSJ!=null and BXSJ!=''">#{BXSJ}, </if>
|
||||||
|
<if test="BXZT!=null and BXZT!=''">#{BXZT}, </if>
|
||||||
|
<if test="BXSY!=null and BXSY!=''">#{BXSY}, </if>
|
||||||
|
<if test="KHSH!=null and KHSH!=''">#{KHSH}, </if>
|
||||||
|
<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>
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="updateZZSGL_JX_FYDJ" parameterType="map">
|
<insert id="updateZZSGL_JX_FYDJ" parameterType="map">
|
||||||
UPDATE ZZSGL_JX_FYDJ SET
|
UPDATE ZZSGL_JX_FYDJ
|
||||||
DJBH = #{DJBH},
|
<set>
|
||||||
DJRQ = #{DJRQ},
|
<if test="DJBH!=null and DJBH!=''">DJBH = #{DJBH}, </if>
|
||||||
DJLX = #{DJLX},
|
<if test="DJRQ!=null and DJRQ!=''">DJRQ = #{DJRQ}, </if>
|
||||||
DJJE = #{DJJE},
|
<if test="DJLX!=null and DJLX!=''">DJLX = #{DJLX}, </if>
|
||||||
DJSE = #{DJSE},
|
<if test="DJJE!=null and DJJE!=''">DJJE = #{DJJE}, </if>
|
||||||
BXR = #{BXR},
|
<if test="DJSE!=null and DJSE!=''">DJSE = #{DJSE}, </if>
|
||||||
BXSJ = #{BXSJ},
|
<if test="BXR!=null and BXR!=''">BXR = #{BXR}, </if>
|
||||||
BXZT = #{BXZT},
|
<if test="BXSJ!=null and BXSJ!=''">BXSJ = #{BXSJ}, </if>
|
||||||
BXSY = #{BXSY},
|
<if test="BXZT!=null and BXZT!=''">BXZT = #{BXZT}, </if>
|
||||||
KHSH = #{KHSH},
|
<if test="BXSY!=null and BXSY!=''">BXSY = #{BXSY}, </if>
|
||||||
KHMC = #{KHMC},
|
<if test="KHSH!=null and KHSH!=''">KHSH = #{KHSH}, </if>
|
||||||
SSBM = #{SSBM},
|
<if test="KHMC!=null and KHMC!=''">KHMC = #{KHMC}, </if>
|
||||||
ZW = #{ZW},
|
<if test="SSBM!=null and SSBM!=''">SSBM = #{SSBM}, </if>
|
||||||
BZ = #{BZ}
|
<if test="ZW!=null and ZW!=''">ZW = #{ZW}, </if>
|
||||||
|
<if test="BZ!=null and BZ!=''">BZ = #{BZ} </if>
|
||||||
|
</set>
|
||||||
WHERE FYID = #{FYID}
|
WHERE FYID = #{FYID}
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
|
|
|
@ -25,9 +25,12 @@ var kpsq_edit = (function () {
|
||||||
var tableType = [{
|
var tableType = [{
|
||||||
"table_id": "tbSave_fymx",//动态表ID
|
"table_id": "tbSave_fymx",//动态表ID
|
||||||
"tr_id": "trid_fymx", //新增行模板ID
|
"tr_id": "trid_fymx", //新增行模板ID
|
||||||
"rowno_name": "rowno_kpmx",
|
"rowno_name": "rowno_fymx",
|
||||||
"rowno_type": "span"
|
"rowno_type": "span"
|
||||||
}];
|
}];
|
||||||
|
// 表格重置之前 初始化select组件
|
||||||
|
initFylxSelect();
|
||||||
|
// 表格重置
|
||||||
tablePublic.onReset(curSeg, tableType);
|
tablePublic.onReset(curSeg, tableType);
|
||||||
|
|
||||||
var djlxOptions = [];
|
var djlxOptions = [];
|
||||||
|
@ -37,7 +40,6 @@ var kpsq_edit = (function () {
|
||||||
});
|
});
|
||||||
$("#DJLX").html(djlxOptions.join());
|
$("#DJLX").html(djlxOptions.join());
|
||||||
|
|
||||||
initFylxSelect();
|
|
||||||
|
|
||||||
layui.use(['form'], function () {
|
layui.use(['form'], function () {
|
||||||
form = layui.form;
|
form = layui.form;
|
||||||
|
@ -57,7 +59,7 @@ var kpsq_edit = (function () {
|
||||||
fylxOptions.push('<option value="' + item.value + '" >' + item.label + '</option>');
|
fylxOptions.push('<option value="' + item.value + '" >' + item.label + '</option>');
|
||||||
});
|
});
|
||||||
$("select[name=FYLX]").html(fylxOptions.join());
|
$("select[name=FYLX]").html(fylxOptions.join());
|
||||||
// console.log($("select[name=FYLX]").html());
|
// console.log($("select[name=FYLX]"));
|
||||||
}
|
}
|
||||||
|
|
||||||
//共有方法
|
//共有方法
|
||||||
|
@ -89,10 +91,7 @@ var kpsq_edit = (function () {
|
||||||
bindData: function (jsonObj, xhrArgs) {
|
bindData: function (jsonObj, xhrArgs) {
|
||||||
tablePublic.onResetTable(tableId);
|
tablePublic.onResetTable(tableId);
|
||||||
tablePublic.onInsertData(jsonObj.data, tableId);
|
tablePublic.onInsertData(jsonObj.data, tableId);
|
||||||
setTimeout(function () {
|
|
||||||
initFylxSelect();
|
|
||||||
layui.form.render('select'); // 重新渲染 select 组件
|
layui.form.render('select'); // 重新渲染 select 组件
|
||||||
}, 100);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onSavePre: function () {
|
onSavePre: function () {
|
||||||
|
|
|
@ -224,7 +224,7 @@
|
||||||
<input type="hidden" name="FYMXID"/>
|
<input type="hidden" name="FYMXID"/>
|
||||||
<input type="hidden" name="FYID"/>
|
<input type="hidden" name="FYID"/>
|
||||||
<input type="hidden" name="FPID"/>
|
<input type="hidden" name="FPID"/>
|
||||||
<span name="rowno_kpmx">1</span>
|
<span name="rowno_fymx">1</span>
|
||||||
<input type="hidden" name="ROWTYPE" value="NEW" />
|
<input type="hidden" name="ROWTYPE" value="NEW" />
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|
Loading…
Reference in New Issue