From 41d495ab6ed8e091b9d1d27ffe67a189e3db8a5c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com>
Date: Fri, 19 Jun 2020 00:01:39 +0800
Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E5=8D=95=E6=8D=AE=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=E5=85=B6=E5=AE=83=E8=B4=B9=E7=94=A8=E7=9A=84=E4=BD=8D?=
=?UTF-8?q?=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
erp_web/js/pages/materials/bill_detail.js | 2 +-
erp_web/js/pages/materials/in_out.js | 18 +++----
erp_web/pages/materials/bill_detail.html | 48 +++++++++----------
.../pages/materials/purchase_back_list.html | 26 +++++-----
erp_web/pages/materials/purchase_in_list.html | 30 ++++++------
erp_web/pages/materials/sale_back_list.html | 26 +++++-----
erp_web/pages/materials/sale_out_list.html | 30 ++++++------
7 files changed, 90 insertions(+), 90 deletions(-)
diff --git a/erp_web/js/pages/materials/bill_detail.js b/erp_web/js/pages/materials/bill_detail.js
index 9c880dbd..ea979061 100644
--- a/erp_web/js/pages/materials/bill_detail.js
+++ b/erp_web/js/pages/materials/bill_detail.js
@@ -254,7 +254,7 @@
}
}
}
- $("#bill .OtherMoneyShow:visible").text(otherMoneyShow +"总计:"+ otherMoney.replace("undefined","0") + "元 "); //采购费用、销售费用
+ $("#bill .OtherMoneyShow:visible").text(otherMoneyShow +"总计:"+ otherMoney.replace("undefined","0") + "元 "); //其它费用
}
$("#bill .payTypeShow").text(data.payType);
var TotalPrice = data.totalprice;
diff --git a/erp_web/js/pages/materials/in_out.js b/erp_web/js/pages/materials/in_out.js
index efb723ad..a5a4ccb4 100644
--- a/erp_web/js/pages/materials/in_out.js
+++ b/erp_web/js/pages/materials/in_out.js
@@ -1422,7 +1422,7 @@
//采购入库、销售出库的费用数据加载
if(res.othermoneylist && res.othermoneyitem){
- $("#OtherMoney").val(res.othermoney); //采购费用、销售费用
+ $("#OtherMoney").val(res.othermoney); //其它费用
var itemArr = res.othermoneylist.split(",");
var itemMoneyArr = res.othermoneyitem.split(",");
$("#OtherMoney").attr("data-itemArr",JSON.stringify(itemArr)).attr("data-itemMoneyArr",itemMoneyArr); //json数据存储
@@ -1473,7 +1473,7 @@
$("#DebtShow").text((res.discountlastmoney-res.changeamount).toFixed(2));
$("#AccountDayShow").text(res.accountday); //结算天数
$("#LinkNumberShow").text(res.linknumber); //关联订单号
- if(res.othermoneylist && res.othermoneyitem){
+ if(res.othermoney && res.othermoneylist && res.othermoneyitem){
var itemArr = res.othermoneylist.split(","); //支出项目id列表
var itemMoneyArr = null;
if(res.othermoneyitem!=null) {
@@ -1498,10 +1498,10 @@
}
}
}
- $("#OtherMoneyShow").text(otherMoneyShow +"总计:"+ res.othermoney + "元 "); //采购费用、销售费用
+ $("#OtherMoneyShow").text(otherMoneyShow +"总计:"+ res.othermoney + "元 "); //其它费用
}
else {
- $("#OtherMoneyShow").text(res.othermoney); //采购费用、销售费用
+ $("#OtherMoneyShow").text(res.othermoney); //其它费用
}
$("#payTypeShow").text(res.paytype);
var TotalPrice = res.totalprice;
@@ -1810,7 +1810,7 @@
Discount: $.trim($("#Discount").val()),
DiscountMoney: $.trim($("#DiscountMoney").val()),
DiscountLastMoney: $.trim($("#DiscountLastMoney").val()),
- OtherMoney: $.trim($("#OtherMoney").val()), //采购费用、销售费用
+ OtherMoney: $.trim($("#OtherMoney").val()), //其它费用
OtherMoneyList: $("#OtherMoney").attr("data-itemarr"), //支出项目列表-涉及费用
OtherMoneyItem: $("#OtherMoney").attr("data-itemmoneyarr"), //支出项目金额列表-涉及费用
AccountDay: $("#AccountDay").val() //结算天数
@@ -2055,9 +2055,9 @@
}
});
- //点击采购费用、销售费用的事件
+ //点击其它费用的事件
$(".other-money-ico").off("click").on("click",function(){
- $('#otherMoneyDlg').dialog('open').dialog('setTitle','
'+ listSubType +'费用');
+ $('#otherMoneyDlg').dialog('open').dialog('setTitle','
其它费用');
$("#otherMoneyDlg .money-dlg .money-content-tmp").remove(); //先移除输入栏目
$("#otherMoneyTotalDlg").text(0); //将合计初始化为0
for(var i=0; i<6; i++) {
@@ -2139,7 +2139,7 @@
if(itemArr.length && itemMoneyArr.length) {
$("#OtherMoney").attr("data-itemArr",JSON.stringify(itemArr)).attr("data-itemMoneyArr",JSON.stringify(itemMoneyArr)); //json数据存储
}
- $("#OtherMoney").val(otherMoneyTotal); //给采购费用、销售费用赋值
+ $("#OtherMoney").val(otherMoneyTotal); //给其它费用赋值
$("#otherMoneyDlg").dialog('close');
});
@@ -2163,7 +2163,7 @@
cancelFun();
});
- //给弹窗赋值-采购费用、销售费用数据
+ //给弹窗赋值-其它费用数据
var itemArr = $("#OtherMoney").attr("data-itemArr");
itemArr = JSON.parse(itemArr);
var itemMoneyArr = $("#OtherMoney").attr("data-itemMoneyArr");
diff --git a/erp_web/pages/materials/bill_detail.html b/erp_web/pages/materials/bill_detail.html
index c3dc9a36..53f2bb21 100644
--- a/erp_web/pages/materials/bill_detail.html
+++ b/erp_web/pages/materials/bill_detail.html
@@ -208,9 +208,9 @@