提交 119bf35c 编写于 作者: Skyeye云's avatar Skyeye云

凭证组件修改

上级 0c60bb9e
......@@ -50,8 +50,7 @@ layui.config({
form.render();
var id = JSON.stringify(dubClick.data('index'));
parent.customerMation = res.rows[id];
parent.sysCustomerUtil.customerMation = customerMation;
parent.sysCustomerUtil.customerMation = res.rows[id];
parent.layer.close(index);
parent.refreshCode = '0';
});
......
......@@ -50,7 +50,9 @@ layui.config({
{ field: 'holderKey', title: '往来单位类型', align: 'left', width: 100, templet: function (d) {
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("correspondentEnterEnum", 'id', d.holderKey, 'name');
}},
{ field: 'supplierName', title: '往来单位', align: 'left', width: 150 },
{ field: 'holderMation', title: '往来单位', align: 'left', width: 150, templet: function (d) {
return d.holderMation.name;
}},
{ field: 'totalPrice', title: '合计金额', align: 'left', width: 120 },
{ field: 'handsPersonName', title: '经手人', align: 'left', width: 120 },
{ field: 'operTime', title: '单据日期', align: 'center', width: 120 },
......
......@@ -64,10 +64,10 @@ var voucherUtil = {
_this.find(".col_summary").find("textarea").val(data[i].remark); // 摘要
_this.find(".col_voucher").find(".cell_val").attr("dataId", data[i].voucherId); // 凭证
_this.find(".col_voucher").find(".cell_val").html(data[i].voucherName);
_this.find(".col_voucher").find(".cell_val").html(data[i].voucherMation.name);
_this.find(".col_subject").find(".cell_val").attr("dataId", data[i].subjectId); // 会计科目
_this.find(".col_subject").find(".cell_val").html(data[i].subjectName);
_this.find(".col_subject").find(".cell_val").html(data[i].subjectMation.name);
if (data[i].directionType == 1){
_this.find(".col_debite").find(".cell_val").html(data[i].eachAmount); // 借方金额
......@@ -90,9 +90,9 @@ var voucherUtil = {
_this.find(".col_summary").find("textarea").val(data[i].remark); // 摘要
_this.find(".col_summary").find("textarea").attr("disabled", true);
_this.find(".col_voucher").find(".cell_val").html(data[i].voucherName); // 凭证
_this.find(".col_voucher").find(".cell_val").html(data[i].voucherMation.name); // 凭证
_this.find(".col_subject").find(".cell_val").html(data[i].subjectName); // 会计科目
_this.find(".col_subject").find(".cell_val").html(data[i].subjectMation.name); // 会计科目
if (data[i].directionType == 1){
_this.find(".col_debite").find(".cell_val").html(data[i].eachAmount); // 借方金额
......@@ -116,7 +116,7 @@ var voucherUtil = {
_this.find(".cell_val").show();
sysIfsUtil.openIfsVoucherChoosePage(function (chooseVoucherMation){
_this.find(".cell_val").attr("dataId", chooseVoucherMation.id);
_this.find(".cell_val").html(chooseVoucherMation.fileName);
_this.find(".cell_val").html(chooseVoucherMation.name);
});
break;
case 'subject': // 会计科目
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册