销售发票源码
This commit is contained in:
parent
bcdfd710d6
commit
816dd0cba2
|
@ -46,5 +46,14 @@
|
|||
"4006DELIVERY-000044": "科箭TMS",
|
||||
"4006DELIVERY-000045": "单据号",
|
||||
"4006DELIVERY-000046": "已经发货关闭。",
|
||||
"4006DELIVERY-000047": "错误"
|
||||
"4006DELIVERY-000047": "错误",
|
||||
"4006DELIVERY-000048": "请先录入发货类型!",
|
||||
"4006DELIVERY-000049": "发运清单",
|
||||
"4006DELIVERY-000050": "发运出库",
|
||||
"4006DELIVERY-000051": "发运出库成功",
|
||||
"4006DELIVERY-000052": "选择",
|
||||
"4006DELIVERY-000053": "确定",
|
||||
"4006DELIVERY-000054": "取消",
|
||||
"4006DELIVERY-000055": "销售出库交易类型",
|
||||
"4006DELIVERY-000056": "销售出库交易类型不能为空"
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"4006DELIVERYREPORT-000000":"请选择数据"
|
||||
"4006DELIVERYREPORT-000000": "请选择数据"
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"4006MERGEDAILY-000000":"财务模块未启用,无法执行查询!",
|
||||
"4006MERGEDAILY-000001":"库存模块未启用,无法执行查询!",
|
||||
"4006MERGEDAILY-000002":"存货核算模块未启用,无法执行查询!"
|
||||
"4006MERGEDAILY-000000": "财务模块未启用,无法执行查询!",
|
||||
"4006MERGEDAILY-000001": "库存模块未启用,无法执行查询!",
|
||||
"4006MERGEDAILY-000002": "存货核算模块未启用,无法执行查询!"
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"4006MULTIPLEPROFIT-000000":"财务模块未启用,无法执行查询!",
|
||||
"4006MULTIPLEPROFIT-000001":"库存模块未启用,无法执行查询!",
|
||||
"4006MULTIPLEPROFIT-000002":"存货核算模块未启用,无法执行查询!"
|
||||
"4006MULTIPLEPROFIT-000000": "财务模块未启用,无法执行查询!",
|
||||
"4006MULTIPLEPROFIT-000001": "库存模块未启用,无法执行查询!",
|
||||
"4006MULTIPLEPROFIT-000002": "存货核算模块未启用,无法执行查询!"
|
||||
}
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"4006ORDERSUMMARY-000000":"应收模块未启用!"
|
||||
"4006ORDERSUMMARY-000000": "应收模块未启用!"
|
||||
}
|
|
@ -13,5 +13,9 @@
|
|||
"4006REPLENISHMENTARRANGE-000011": "总数量",
|
||||
"4006REPLENISHMENTARRANGE-000012": "补货安排",
|
||||
"4006REPLENISHMENTARRANGE-000013": "工厂",
|
||||
"4006REPLENISHMENTARRANGE-000014": "对应下游单据未轻量化"
|
||||
"4006REPLENISHMENTARRANGE-000014": "对应下游单据未轻量化",
|
||||
"4006REPLENISHMENTARRANGE-000015": "请启用采购管理模块!",
|
||||
"4006REPLENISHMENTARRANGE-000016": "请启用内部交易模块!",
|
||||
"4006REPLENISHMENTARRANGE-000017": "请启用委外加工模块!",
|
||||
"4006REPLENISHMENTARRANGE-000018": "请启用生产制造模块!"
|
||||
}
|
||||
|
|
|
@ -30,5 +30,7 @@
|
|||
"4006RETURNPOLICY-000028": "退货政策设置-集团",
|
||||
"4006RETURNPOLICY-000029": "销售组织",
|
||||
"4006RETURNPOLICY-000030": "退货政策设置-销售组织",
|
||||
"4006RETURNPOLICY-000031": "判断退货条件(\"{0}\")"
|
||||
"4006RETURNPOLICY-000031": "判断退货条件(\"{0}\")",
|
||||
"4006RETURNPOLICY-000032": "存在被删除的数据,请刷新界面重新查询"
|
||||
|
||||
}
|
||||
|
|
|
@ -101,5 +101,6 @@
|
|||
"4006SALEINVOICE-000100": "发票已经开票,不允许删行!",
|
||||
"4006SALEINVOICE-000101": "选择期初发出商品",
|
||||
"4006SALEINVOICE-000102": "对冲生成的发票不允许增行!",
|
||||
"4006SALEINVOICE-000103": "生成开票申请的发票不允许增行或删行!"
|
||||
"4006SALEINVOICE-000103": "生成开票申请的发票不允许增行或删行!",
|
||||
"4006SALEINVOICE-000104": "冲抵金额超过费用单余额!"
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"4006SALEORDER-000002": "确认取消",
|
||||
"4006SALEORDER-000003": "是否确认要取消?",
|
||||
"4006SALEORDER-000004": "取消成功",
|
||||
"4006SALEORDER-000005": "该订单没有保存,不能查看兑付记录!",
|
||||
"4006SALEORDER-000005": "该订单没有保存过,不能查看兑付记录!",
|
||||
"4006SALEORDER-000006": "费用兑付明细",
|
||||
"4006SALEORDER-000007": "关闭",
|
||||
"4006SALEORDER-000008": "关闭/打开原因",
|
||||
|
@ -25,9 +25,9 @@
|
|||
"4006SALEORDER-000023": "冻结成功!",
|
||||
"4006SALEORDER-000024": "费用冲抵后不允许赠品价格分摊!",
|
||||
"4006SALEORDER-000025": "请先录入交易类型!",
|
||||
"4006SALEORDER-000026": "交易类型为赠品兑付,不允许赠品价格分摊!",
|
||||
"4006SALEORDER-000026": "订单交易类型属性“赠品对付”为是时,不允许做赠品价格分摊!",
|
||||
"4006SALEORDER-000027": "赠品、折扣和劳务行不做冲抵,过滤掉价税合计为空和0的行后,没有可冲抵的行,请检查冲抵比例是否为0!",
|
||||
"4006SALEORDER-000028": "交易类型为赠品兑付,不允许费用冲抵!",
|
||||
"4006SALEORDER-000028": "订单交易类型属性“赠品对付”为是时,不允许做费用冲抵!",
|
||||
"4006SALEORDER-000029": "费用冲抵",
|
||||
"4006SALEORDER-000030": "错误",
|
||||
"4006SALEORDER-000031": "请确保您选定的行输入冲抵金额不为0!",
|
||||
|
@ -124,5 +124,16 @@
|
|||
"4006SALEORDER-000122": "选择预订单",
|
||||
"4006SALEORDER-000123": "销售订单已做过收款,该字段不可编辑!",
|
||||
"4006SALEORDER-000124": "销售订单已做过费用冲抵,该字段不可编辑!",
|
||||
"4006SALEORDER-000125": "销售订单已做过赠品分摊,该字段不可编辑!"
|
||||
}
|
||||
"4006SALEORDER-000125": "销售订单已做过赠品分摊,该字段不可编辑!",
|
||||
"4006SALEORDER-000126": "销售订单未勾选发运清单,不能散件发货!",
|
||||
"4006SALEORDER-000127": "生成发运清单",
|
||||
"4006SALEORDER-000128": "预留成功",
|
||||
"4006SALEORDER-000129": "预警设置",
|
||||
"4006SALEORDER-000130": "物料不可为空",
|
||||
"4006SALEORDER-000131": "发货库存组织不可为空",
|
||||
"4006SALEORDER-000132": "所选物料不是模型件物料,不支持选配",
|
||||
"4006SALEORDER-000133": "冲抵金额超过费用单余额!",
|
||||
"4006SALEORDER-000134": "销售订单已做过费用冲抵,不允许做模型选配操作!",
|
||||
"4006SALEORDER-000135": "销售订单已做过赠品分摊,不允许做模型选配操作!",
|
||||
"4006SALEORDER-000136": "费用冲抵后不允许复制行!"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"4006SALEORDERPROFIT-000000":"财务模块未启用,无法执行查询!",
|
||||
"4006SALEORDERPROFIT-000001":"库存模块未启用,无法执行查询!",
|
||||
"4006SALEORDERPROFIT-000002":"存货核算模块未启用,无法执行查询!"
|
||||
"4006SALEORDERPROFIT-000000": "财务模块未启用,无法执行查询!",
|
||||
"4006SALEORDERPROFIT-000001": "库存模块未启用,无法执行查询!",
|
||||
"4006SALEORDERPROFIT-000002": "存货核算模块未启用,无法执行查询!"
|
||||
}
|
|
@ -33,5 +33,8 @@
|
|||
"4006SALEORDERREVISE-000031": "当前行没有价格组成信息",
|
||||
"4006SALEORDERREVISE-000032": "毛利预估",
|
||||
"4006SALEORDERREVISE-000033": "执行情况",
|
||||
"4006SALEORDERREVISE-000034": "价格组成"
|
||||
"4006SALEORDERREVISE-000034": "价格组成",
|
||||
"4006SALEORDERREVISE-000035": "销售订单已立项,不允许删行",
|
||||
"4006SALEORDERREVISE-000036": "已有下游发运清单数据,不允许删行",
|
||||
"4006SALEORDERREVISE-000037": "预警设置"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"4006SALEOUTEXESUM-000000":"财务模块未启用,无法执行查询!",
|
||||
"4006SALEOUTEXESUM-000001":"库存模块未启用,无法执行查询!",
|
||||
"4006SALEOUTEXESUM-000002":"存货核算模块未启用,无法执行查询!"
|
||||
"4006SALEOUTEXESUM-000000": "财务模块未启用,无法执行查询!",
|
||||
"4006SALEOUTEXESUM-000001": "库存模块未启用,无法执行查询!",
|
||||
"4006SALEOUTEXESUM-000002": "存货核算模块未启用,无法执行查询!"
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"4006SALEOUTPROFIT-000000":"财务模块未启用,无法执行查询!",
|
||||
"4006SALEOUTPROFIT-000001":"库存模块未启用,无法执行查询!",
|
||||
"4006SALEOUTPROFIT-000002":"存货核算模块未启用,无法执行查询!"
|
||||
"4006SALEOUTPROFIT-000000": "财务模块未启用,无法执行查询!",
|
||||
"4006SALEOUTPROFIT-000001": "库存模块未启用,无法执行查询!",
|
||||
"4006SALEOUTPROFIT-000002": "存货核算模块未启用,无法执行查询!"
|
||||
}
|
|
@ -5,7 +5,7 @@
|
|||
"4006sellingrequistion-000003": "已生成下游订单,不允许修订!",
|
||||
"4006sellingrequistion-000004": "不允许修订!",
|
||||
"4006sellingrequistion-000005": "请先录入交易类型!",
|
||||
"4006sellingrequistion-000006": "客户、销售组织、物料、库存组织不能为空!",
|
||||
"4006sellingrequistion-000006": "客户不能为空!",
|
||||
"4006sellingrequistion-000007": "请先录入物料信息",
|
||||
"4006sellingrequistion-000008": "单据信用查询",
|
||||
"4006sellingrequistion-000009": "确定",
|
||||
|
@ -38,5 +38,6 @@
|
|||
"4006sellingrequistion-000036": "调整折扣",
|
||||
"4006sellingrequistion-000037": "打开成功",
|
||||
"4006sellingrequistion-000038": "关闭成功",
|
||||
"4006sellingrequistion-000039": "批次号"
|
||||
"4006sellingrequistion-000039": "批次号",
|
||||
"4006sellingrequistion-000040": "预留成功"
|
||||
}
|
||||
|
|
|
@ -19,5 +19,6 @@
|
|||
"4006SELLINGREQUISTIONARRANGE-000017": "调拨订单",
|
||||
"4006SELLINGREQUISTIONARRANGE-000018": "待发货安排主数量",
|
||||
"4006SELLINGREQUISTIONARRANGE-000019": "退出转单",
|
||||
"4006SELLINGREQUISTIONARRANGE-000020": "有未保存的单据,确定要退出转单吗?"
|
||||
"4006SELLINGREQUISTIONARRANGE-000020": "有未保存的单据,确定要退出转单吗?",
|
||||
"4006SELLINGREQUISTIONARRANGE-000021": "序号为{num}的数据行,散户不能为空!"
|
||||
}
|
||||
|
|
|
@ -19,5 +19,6 @@
|
|||
"4006SENDARRANGE-000017": "调拨订单",
|
||||
"4006SENDARRANGE-000018": "待发货安排主数量",
|
||||
"4006SENDARRANGE-000019": "退出转单",
|
||||
"4006SENDARRANGE-000020": "有未保存的单据,确定要退出转单吗?"
|
||||
"4006SENDARRANGE-000020": "有未保存的单据,确定要退出转单吗?",
|
||||
"4006SENDARRANGE-000021": "请先录入发货类型"
|
||||
}
|
||||
|
|
|
@ -9,5 +9,14 @@
|
|||
"REFER-000007": "退货条件编码",
|
||||
"REFER-000008": "退货条件名称",
|
||||
"REFER-000009": "退货条件表达式名称",
|
||||
"REFER-000010": "退货条件表述"
|
||||
"REFER-000010": "退货条件表述",
|
||||
"REFER-000011": "销售订单",
|
||||
"REFER-000012": "销售组织",
|
||||
"REFER-000013": "开票客户",
|
||||
"REFER-000014": "单据日期",
|
||||
"REFER-000015": "单据号",
|
||||
"REFER-000016": "订单类型",
|
||||
"REFER-000017": "币种",
|
||||
"REFER-000018": "总价税合计",
|
||||
"REFER-000019": "实际收款"
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/*170hMnCqNSHHX84AUgVf1stZOxJLjD3c3eco9+PidT0=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 计算表头合计
|
||||
|
@ -47,3 +48,5 @@ export default function calHeadTotal(props, pageId, formId, tableId, keymaps) {
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
/*170hMnCqNSHHX84AUgVf1stZOxJLjD3c3eco9+PidT0=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*rV0bQibesG0UGdyoLFMSM7410XISRh6ukPKiIb9FaMU=*/
|
||||
/**
|
||||
* 编辑前处理,需要物料
|
||||
* 这类方法必须有返回值,返回true为可编辑,false为不可编辑
|
||||
|
@ -47,3 +48,5 @@ export default function(props, constance) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*rV0bQibesG0UGdyoLFMSM7410XISRh6ukPKiIb9FaMU=*/
|
|
@ -1,55 +1,58 @@
|
|||
/*VN6N61ClU/zPuqLSyAXrv36kgZ5RYa4FfXkmFt0zCLI=*/
|
||||
/**
|
||||
* 物料自由辅助属性编辑前处理,需要物料的固定辅助属性库存状态启用
|
||||
* 这类方法必须有返回值,返回true为可编辑,false为不可编辑
|
||||
*/
|
||||
import { ajax } from 'nc-lightapp-front';
|
||||
export default function(props, constance) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
let { key, areahid, areabid, index, cmaterialid } = constance;
|
||||
//组织为空,不可编辑
|
||||
let pk_org = props.form.getFormItemsValue(areahid, 'pk_org');
|
||||
if (!pk_org) {
|
||||
resolve(false);
|
||||
}
|
||||
//物料为空,不可编辑
|
||||
let cmaterialvid = props.cardTable.getValByKeyAndIndex(areabid, index, cmaterialid);
|
||||
if (!cmaterialvid || !cmaterialvid.value) {
|
||||
resolve(false);
|
||||
} else {
|
||||
let data = {
|
||||
key: key,
|
||||
params: {
|
||||
cmaterialvid: cmaterialvid.value,
|
||||
pk_org: pk_org.value,
|
||||
key: key
|
||||
}
|
||||
};
|
||||
export default function (props, constance) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
let { rowid, key, areahid, areabid, index, cmaterialid } = constance;
|
||||
//组织为空,不可编辑
|
||||
let pk_org = props.form.getFormItemsValue(areahid, 'pk_org');
|
||||
if (!pk_org) {
|
||||
resolve(false);
|
||||
}
|
||||
//物料为空,不可编辑
|
||||
let cmaterialvid = props.cardTable.getValByKeyAndRowId(areabid, rowid, cmaterialid);
|
||||
if (!cmaterialvid || !cmaterialvid.value) {
|
||||
resolve(false);
|
||||
} else {
|
||||
let data = {
|
||||
key: key,
|
||||
params: {
|
||||
cmaterialvid: cmaterialvid.value,
|
||||
pk_org: pk_org.value,
|
||||
key: key,
|
||||
},
|
||||
};
|
||||
|
||||
ajax({
|
||||
url: '/nccloud/so/pub/bodybefore.do',
|
||||
data: data,
|
||||
success: (res) => {
|
||||
if (res.data) {
|
||||
let isedit = res.data.isedit;
|
||||
if (isedit) {
|
||||
resolve(isedit);
|
||||
} else if (res.data.message) {
|
||||
toast({
|
||||
color: 'warning',
|
||||
content: res.data.message
|
||||
});
|
||||
}
|
||||
resolve(false);
|
||||
}
|
||||
},
|
||||
error: (error) => {
|
||||
toast({
|
||||
color: 'warning',
|
||||
content: error.message
|
||||
});
|
||||
resolve(false);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
ajax({
|
||||
url: '/nccloud/so/pub/bodybefore.do',
|
||||
data: data,
|
||||
success: (res) => {
|
||||
if (res.data) {
|
||||
let isedit = res.data.isedit;
|
||||
if (isedit) {
|
||||
resolve(isedit);
|
||||
} else if (res.data.message) {
|
||||
toast({
|
||||
color: 'warning',
|
||||
content: res.data.message,
|
||||
});
|
||||
}
|
||||
resolve(false);
|
||||
}
|
||||
},
|
||||
error: (error) => {
|
||||
toast({
|
||||
color: 'warning',
|
||||
content: error.message,
|
||||
});
|
||||
resolve(false);
|
||||
},
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*VN6N61ClU/zPuqLSyAXrv36kgZ5RYa4FfXkmFt0zCLI=*/
|
|
@ -1,14 +1,94 @@
|
|||
/*9s06cI9qriZwm9mh0Mrs2v5n+PTUxsbrUhg0bAz4Pfc=*/
|
||||
/*
|
||||
* @Author: wangceb
|
||||
* @PageInfo: 页面功能描述
|
||||
* @Date: 2018-08-13 16:54:23
|
||||
* @Last Modified by: cuijun
|
||||
* @Last Modified time: 2020-03-10 20:11:04
|
||||
* @Last Modified by: liulux
|
||||
* @Last Modified time: 2023-03-24 10:53:34
|
||||
*/
|
||||
import { transtypeUtils } from '../../../../scmpub/scmpub/pub/tool';
|
||||
import { PAGEAREA } from '../../saleinvoice/transfer/const';
|
||||
function renderCompleteEvent(moduleId, orgfield, callback, ctrantypeid) {
|
||||
// 设置默认值
|
||||
transtypeUtils.setQueryDefaultValue.call(this, this.props, moduleId, ctrantypeid);
|
||||
let props = this.props;
|
||||
if (props.displayData) {
|
||||
if (props.displayData.pk_org) {
|
||||
if (moduleId == PAGEAREA.SERACHALL) {
|
||||
props.search.setSearchValByField(PAGEAREA.SERACHALL, 'pk_org', props.displayData.pk_org);
|
||||
props.search.setSearchValByField(PAGEAREA.SERACHALL, 'pk_org', props.displayData.pk_org, 'normal');
|
||||
props.search.setSearchValByField(PAGEAREA.SERACHALL, 'pk_org', props.displayData.pk_org, 'super');
|
||||
props.search.setDisabledByField(PAGEAREA.SERACHALL, 'pk_org', true);
|
||||
}
|
||||
if (moduleId == PAGEAREA.SERACH30) {
|
||||
props.search.setSearchValByField(PAGEAREA.SERACH30, 'so_saleorder_b.csettleorgid', props.displayData.pk_org);
|
||||
props.search.setSearchValByField(PAGEAREA.SERACH30, 'so_saleorder_b.csettleorgid', props.displayData.pk_org, 'normal');
|
||||
props.search.setSearchValByField(PAGEAREA.SERACH30, 'so_saleorder_b.csettleorgid', props.displayData.pk_org, 'super');
|
||||
props.search.setDisabledByField(PAGEAREA.SERACH30, 'so_saleorder_b.csettleorgid', true);
|
||||
}
|
||||
if (moduleId == PAGEAREA.SERACH4C) {
|
||||
props.search.setSearchValByField(PAGEAREA.SERACH4C, 'cfanaceorgoid', props.displayData.pk_org);
|
||||
props.search.setSearchValByField(PAGEAREA.SERACH4C, 'cfanaceorgoid', props.displayData.pk_org, 'normal');
|
||||
props.search.setSearchValByField(PAGEAREA.SERACH4C, 'cfanaceorgoid', props.displayData.pk_org, 'super');
|
||||
props.search.setDisabledByField(PAGEAREA.SERACH4C, 'cfanaceorgoid', true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
if (props.displayData.customer) {
|
||||
if (moduleId == PAGEAREA.SERACHALL) {
|
||||
props.search.setSearchValByField(PAGEAREA.SERACHALL, 'cinvoicecustid', props.displayData.customer);
|
||||
props.search.setSearchValByField(
|
||||
PAGEAREA.SERACHALL,
|
||||
'cinvoicecustid',
|
||||
props.displayData.customer,
|
||||
'normal'
|
||||
);
|
||||
props.search.setSearchValByField(
|
||||
PAGEAREA.SERACHALL,
|
||||
'cinvoicecustid',
|
||||
props.displayData.customer,
|
||||
'super'
|
||||
);
|
||||
props.search.setDisabledByField(PAGEAREA.SERACHALL, 'cinvoicecustid', true);
|
||||
}
|
||||
if (moduleId == PAGEAREA.SERACH30) {
|
||||
props.search.setSearchValByField(PAGEAREA.SERACH30, 'cinvoicecustid', props.displayData.customer);
|
||||
props.search.setSearchValByField(
|
||||
PAGEAREA.SERACH30,
|
||||
'cinvoicecustid',
|
||||
props.displayData.customer,
|
||||
'normal'
|
||||
);
|
||||
props.search.setSearchValByField(
|
||||
PAGEAREA.SERACH30,
|
||||
'cinvoicecustid',
|
||||
props.displayData.customer,
|
||||
'super'
|
||||
);
|
||||
props.search.setDisabledByField(PAGEAREA.SERACH30, 'cinvoicecustid', true);
|
||||
}
|
||||
if (moduleId == PAGEAREA.SERACH4C) {
|
||||
props.search.setSearchValByField(PAGEAREA.SERACH4C, 'cgeneralbid.cinvoicecustid', props.displayData.customer);
|
||||
props.search.setSearchValByField(
|
||||
PAGEAREA.SERACH4C,
|
||||
'cgeneralbid.cinvoicecustid',
|
||||
props.displayData.customer,
|
||||
'normal'
|
||||
);
|
||||
props.search.setSearchValByField(
|
||||
PAGEAREA.SERACH4C,
|
||||
'cgeneralbid.cinvoicecustid',
|
||||
props.displayData.customer,
|
||||
'super'
|
||||
);
|
||||
props.search.setDisabledByField(PAGEAREA.SERACH4C, 'cgeneralbid.cinvoicecustid', true);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
let pk_org_value = this.props.search.getSearchValByField(moduleId, orgfield);
|
||||
let arr = null;
|
||||
if (pk_org_value && pk_org_value.value && pk_org_value.value.firstvalue) {
|
||||
|
@ -27,3 +107,5 @@ function renderCompleteEvent(moduleId, orgfield, callback, ctrantypeid) {
|
|||
}
|
||||
|
||||
export { renderCompleteEvent };
|
||||
|
||||
/*9s06cI9qriZwm9mh0Mrs2v5n+PTUxsbrUhg0bAz4Pfc=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*Cb8MTr5qR67cvq+nos7DlH+FxOS12KSQ9wA1NqqlgmU=*/
|
||||
/*
|
||||
* @Author: wangceb
|
||||
* @PageInfo: 查询区常用工具
|
||||
|
@ -18,3 +19,5 @@ function getSearchValByField(props, searchId, field) {
|
|||
}
|
||||
|
||||
export { getSearchValByField };
|
||||
|
||||
/*Cb8MTr5qR67cvq+nos7DlH+FxOS12KSQ9wA1NqqlgmU=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*XqIkjfsfunKy+hfouHD5cxN+YW8cQkFSgYG38hCXxC0=*/
|
||||
/*
|
||||
* @Author: wangceb
|
||||
* @PageInfo: 转单界面工具类
|
||||
|
@ -61,3 +62,5 @@ function formatNumber(value) {
|
|||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*XqIkjfsfunKy+hfouHD5cxN+YW8cQkFSgYG38hCXxC0=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*Z8rANEvCYYFtqTbCYDvR5Cn++w1AZR0Ijqm7jNDiTPU=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 数值取精度,例如:2.3,精度是1
|
||||
|
@ -15,3 +16,5 @@ export default function trimZero(data) {
|
|||
|
||||
return length - 1 - start;
|
||||
}
|
||||
|
||||
/*Z8rANEvCYYFtqTbCYDvR5Cn++w1AZR0Ijqm7jNDiTPU=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*dkS8HPbHFEj6+q7wB+z0gzTfR5UufDtXc/jwCRxg814=*/
|
||||
/*
|
||||
* @Author: sunxxf
|
||||
* @PageInfo: 收回数据组装
|
||||
|
@ -38,3 +39,5 @@ function getPkTsDataIncludeBodyInCard(props, params) {
|
|||
}
|
||||
|
||||
export { getPkTsDataIncludeBodyInCard };
|
||||
|
||||
/*dkS8HPbHFEj6+q7wB+z0gzTfR5UufDtXc/jwCRxg814=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*YInZLc9/kvMC1mGq3o4LwAszAXwVlsNyvp/9X8WPLW8=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 开票组件
|
||||
|
@ -94,3 +95,5 @@ class AddInvoice extends Component {
|
|||
}
|
||||
AddInvoice = createPage({})(AddInvoice);
|
||||
export default AddInvoice;
|
||||
|
||||
/*YInZLc9/kvMC1mGq3o4LwAszAXwVlsNyvp/9X8WPLW8=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*Z5f/1tPct3SmDpZSfknGQo4fQ/SvAmzRlniEoFa+bOA1G9J+R7vAoodjjqh81P88*/
|
||||
/*
|
||||
* @Author: 刘奇
|
||||
* @PageInfo: 联查凭证
|
||||
|
@ -60,3 +61,5 @@ export default function(props) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*Z5f/1tPct3SmDpZSfknGQo4fQ/SvAmzRlniEoFa+bOA1G9J+R7vAoodjjqh81P88*/
|
|
@ -1,3 +1,4 @@
|
|||
/*XO7fk4hupjDvEkpKRJPTZyl378+aD3eEtQQd+qFM3DKQ64Z8VfTIMG+koHH02yq4*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 重排行号
|
||||
|
@ -9,3 +10,5 @@ import { RownoUtils } from '../../../../../scmpub/scmpub/pub/tool/cardTableTools
|
|||
export default function reArrangeRowno(props) {
|
||||
RownoUtils.resetRowNo(props, this.tableId, 'crowno');
|
||||
}
|
||||
|
||||
/*XO7fk4hupjDvEkpKRJPTZyl378+aD3eEtQQd+qFM3DKQ64Z8VfTIMG+koHH02yq4*/
|
|
@ -1,3 +1,4 @@
|
|||
/*lEASkUianxZU9+t3hhmkRixRh3na+GC+favU9WDKiyI=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 新增行事件
|
||||
|
@ -8,12 +9,14 @@
|
|||
import { RownoUtils } from '../../../../../scmpub/scmpub/pub/tool/cardTableTools';
|
||||
import { setRowDefaultValue } from '../init/setDefaultValue';
|
||||
import { setEditEnable } from '../viewController/cardEditController';
|
||||
export default function clickAddRowBtn(props) {
|
||||
export default function clickAddRowBtn(props,isAuto) {
|
||||
// 新增行给表体赋默认值
|
||||
props.cardTable.addRow(this.tableId, undefined, setRowDefaultValue(props));
|
||||
props.cardTable.addRow(this.tableId, undefined, setRowDefaultValue(props),isAuto ? false : true);
|
||||
RownoUtils.setRowNo(props, this.tableId, 'crowno');
|
||||
|
||||
|
||||
// 设置编辑性
|
||||
setEditEnable.call(this, this.props, this.combineCache.combinvo);
|
||||
}
|
||||
|
||||
/*lEASkUianxZU9+t3hhmkRixRh3na+GC+favU9WDKiyI=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*dXoPbESH9BnI4reHcyjq+1cjOAFBELH2HiHmMbZ9Fas=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 卡片开票按钮事件
|
||||
|
@ -20,3 +21,5 @@ export default function clickAddBtn(props) {
|
|||
ctranstype: transtypeUtils.getTranstypeCode.call(this)
|
||||
});
|
||||
}
|
||||
|
||||
/*dXoPbESH9BnI4reHcyjq+1cjOAFBELH2HiHmMbZ9Fas=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*+q8X/E+A5I3aW/kLS07ziOeFGgb551fJRsobAe7DKFY=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 审批详情按钮
|
||||
|
@ -14,3 +15,5 @@ export default function(props) {
|
|||
transtype: transtype
|
||||
});
|
||||
}
|
||||
|
||||
/*+q8X/E+A5I3aW/kLS07ziOeFGgb551fJRsobAe7DKFY=*/
|
|
@ -1,9 +1,10 @@
|
|||
/*h//wWPp3FlUjEW9bb3W/Z69sQAXiTsLsFDNqSEkw3S0=*/
|
||||
/*
|
||||
* @Author: wangceb
|
||||
* @PageInfo: 费用兑付明细
|
||||
* @Date: 2018-04-19 10:37:43
|
||||
* @Last Modified by: wangpju
|
||||
* @Last Modified time: 2022-04-12 15:04:31
|
||||
* @Last Modified by: liulux
|
||||
* @Last Modified time: 2022-11-11 14:42:43
|
||||
*/
|
||||
import { ajax } from 'nc-lightapp-front';
|
||||
import { URL, PAGEID } from '../../const';
|
||||
|
@ -46,10 +47,14 @@ export default function buttonClick(props) {
|
|||
/>
|
||||
</div>
|
||||
),
|
||||
rightBtnName: '' //右侧按钮名称,默认关闭
|
||||
// rightBtnName: '' //右侧按钮名称,默认关闭
|
||||
hideRightBtn: true,
|
||||
hideLeftBtn: true
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*h//wWPp3FlUjEW9bb3W/Z69sQAXiTsLsFDNqSEkw3S0=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*hULvJC0v4bBIwR6ZwNP2Q5PV+fZigEEDSEbCv6lpGVI=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 返回按钮事件
|
||||
|
@ -54,3 +55,5 @@ function backtoAddInvocie(props) {
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
/*hULvJC0v4bBIwR6ZwNP2Q5PV+fZigEEDSEbCv6lpGVI=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*8Mg99cNjhyMO4rSyVXqvUZc0zVHgrpKvFxaJ1tyJpgptZI7VhD3C3PXW5v9Hadrc*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo:销售发票单据联查
|
||||
|
@ -13,3 +14,5 @@ export default function(props) {
|
|||
pk: csaleinvoiceid
|
||||
});
|
||||
}
|
||||
|
||||
/*8Mg99cNjhyMO4rSyVXqvUZc0zVHgrpKvFxaJ1tyJpgptZI7VhD3C3PXW5v9Hadrc*/
|
|
@ -1,3 +1,4 @@
|
|||
/*QxQxIdC7hL9eZPhKtSQCz0n/IxFd/FalDCgPsuoRiIE=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 卡片表体按钮事件
|
||||
|
@ -47,3 +48,5 @@ export default function(type, props, key) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/*QxQxIdC7hL9eZPhKtSQCz0n/IxFd/FalDCgPsuoRiIE=*/
|
|
@ -1,9 +1,10 @@
|
|||
/*q2LCmxM8POvl78IL0Liydie4F5UAgLwHceRljsFF3P0=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 按钮点击事件
|
||||
* @Date: 2018-04-19 10:37:30
|
||||
* @Last Modified by: mikey.zhaopeng
|
||||
* @Last Modified time: 2024-05-13 11:12:46
|
||||
* @Last Modified by: zhangllb
|
||||
* @Last Modified time: 2021-12-16 17:04:43
|
||||
*/
|
||||
import backBtnClick from './back_BtnClick';
|
||||
import addBtnClick from './add_BtnClick';
|
||||
|
@ -11,7 +12,7 @@ import delBtnClick from './del_BtnClick';
|
|||
import editBtnClick from './edit_BtnClick';
|
||||
import cancelBtnClick from './cancel_BtnClick';
|
||||
import saveBtnClick from './save_BtnClick';
|
||||
import allSaveBtnClick from './saveAll_BtnClick';
|
||||
|
||||
import refresh_BtnClick from './refresh_BtnClick';
|
||||
import opposeAddBtnClick from './opposeAdd_BtnClick';
|
||||
import offsetBtnClick from './offset_BtnClick';
|
||||
|
@ -42,15 +43,13 @@ import issueInv_BtnClick from './issueInv_BtnClick';
|
|||
import maintainInvoice_BtnClick from './maintainInvoice_BtnClick';
|
||||
import linkInvoice_BtnClick from './linkInvoice_BtnClick';
|
||||
import coop25_BtnClick from './coop25_BtnClick';
|
||||
import headTotalCalRule from '../../../pub/pubrule/headTotalCalRule';
|
||||
|
||||
import redInvoice_BtnClick from './redInvoice_BtnClick';
|
||||
import LinkQueryVoucherBtnClick from './LinkQueryVoucherBtnClick';
|
||||
import { PAGEAREA, PAGEID } from '../../const';
|
||||
import { PAGEAREA } from '../../const';
|
||||
import printCountQuery from '../../../../../scmpub/scmpub/pub/tool/printCountQuery';
|
||||
import InvoiceComponent from 'sscivm/invoiceComponent/compoundComponent/component';
|
||||
import { showWarningInfo } from '../../../../../scmpub/scmpub/pub/tool/messageUtil';
|
||||
import { ajax, toast } from 'nc-lightapp-front';
|
||||
|
||||
export default function clickBtn(type, index, props, id) {
|
||||
let makeinv_value = null;
|
||||
|
@ -59,8 +58,6 @@ export default function clickBtn(type, index, props, id) {
|
|||
makeinv_value = id.substring(btnIndex + 1);
|
||||
id = id.substr(0, btnIndex + 1);
|
||||
}
|
||||
let keymaps = new Map();
|
||||
keymaps.set('ntaxmny', 'vdef5');
|
||||
switch (id) {
|
||||
// 新增
|
||||
case 'Add':
|
||||
|
@ -113,14 +110,8 @@ export default function clickBtn(type, index, props, id) {
|
|||
break;
|
||||
// 保存
|
||||
case 'Save':
|
||||
headTotalCalRule(props, PAGEID.CARD, PAGEAREA.FORMID, PAGEAREA.TABLEID, keymaps);
|
||||
saveBtnClick.call(this, props, type);
|
||||
break;
|
||||
// 批量保存
|
||||
case 'AllSaveBtn':
|
||||
headTotalCalRule(props, PAGEID.CARD, PAGEAREA.FORMID, PAGEAREA.TABLEID, keymaps);
|
||||
allSaveBtnClick.call(this, props, type);
|
||||
break;
|
||||
// 提交
|
||||
case 'Commit':
|
||||
commitBtnClick.call(this, props);
|
||||
|
@ -190,15 +181,6 @@ export default function clickBtn(type, index, props, id) {
|
|||
break;
|
||||
// 开票申请
|
||||
case 'MakeInv_':
|
||||
//yuyy 外贸客户 电子发票(增值税专用)-31 和电子发票(普通发票)-32 需校验是否已匹配AEO
|
||||
let vdef15 = props.form.getFormItemsValue('head','vdef15').value;
|
||||
if(vdef15 == '外贸客户' && (makeinv_value == '31' || makeinv_value == '32')){
|
||||
let vdef14 = props.form.getFormItemsValue('head','vdef14').value;
|
||||
if(!vdef14){
|
||||
toast({color:'warning',content:'本单据为外贸类发票,未与AEO进行信息匹配,不允许提交开票'});
|
||||
break;
|
||||
}
|
||||
}
|
||||
issueInv_BtnClick.call(this, props, makeinv_value);
|
||||
break;
|
||||
// 红字发票
|
||||
|
@ -241,19 +223,7 @@ export default function clickBtn(type, index, props, id) {
|
|||
let CONST = { hid: 'csaleinvoiceid', area: PAGEAREA.FORMID };
|
||||
printCountQuery.call(this, props, { type: 2, CONST, modal: 'code-config' });
|
||||
break;
|
||||
// yuyy 预录单
|
||||
case 'Aeo':
|
||||
ajax({
|
||||
url:'/nccloud/so/saleinvoice/readAeo.do',
|
||||
data:{
|
||||
csaleinvoiceid:props.form.getFormItemsValue('head','csaleinvoiceid').value
|
||||
},
|
||||
success:(res)=>{
|
||||
if(res.success){
|
||||
refresh_BtnClick.call(this);
|
||||
}
|
||||
}
|
||||
})
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/*q2LCmxM8POvl78IL0Liydie4F5UAgLwHceRljsFF3P0=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*oICVasQrIWqSHQSq91EX93QOxjJxliPkomg44b5xbIc=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 取消按钮事件
|
||||
|
@ -96,3 +97,5 @@ function cancel(props, type, index) {
|
|||
buttonController.call(this);
|
||||
props.updatePage(this.formId, this.tableId);
|
||||
}
|
||||
|
||||
/*oICVasQrIWqSHQSq91EX93QOxjJxliPkomg44b5xbIc=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*Sq7R1nOST/ekUGmrvBp6jOyJFPxIN3KqqcyXJz16mLA=*/
|
||||
/*
|
||||
* @Author: liulux
|
||||
* @PageInfo: 判断是否能增行
|
||||
|
@ -23,3 +24,5 @@ export default function(props) {
|
|||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
/*Sq7R1nOST/ekUGmrvBp6jOyJFPxIN3KqqcyXJz16mLA=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*H63tRBDvlvIdo/rgscH0QhIAIAXZvSMMtdtxnbkDapY=*/
|
||||
/*
|
||||
* @Author: liulux
|
||||
* @PageInfo: 判断是否能删行
|
||||
|
@ -14,4 +15,5 @@ export default function(props){
|
|||
flag = false;
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
}
|
||||
/*H63tRBDvlvIdo/rgscH0QhIAIAXZvSMMtdtxnbkDapY=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*4roxSwWSoRYPZWqEwx7TZJrD4MtXBHSUQfMR2t1Oc3k=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo:提交按钮事件
|
||||
|
@ -165,3 +166,5 @@ export default function clickCommitBtn(props, assign, skipCodes, savecallback, t
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*4roxSwWSoRYPZWqEwx7TZJrD4MtXBHSUQfMR2t1Oc3k=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*MKhAr9efcx6R2yL0XZ82Wj/Hlw4oiXllAzwge6P6TgduFCOBa04VO4auQ7bqaUwz*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo:卡片查询
|
||||
|
@ -155,3 +156,5 @@ export default function(keys, callback) {
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
/*MKhAr9efcx6R2yL0XZ82Wj/Hlw4oiXllAzwge6P6TgduFCOBa04VO4auQ7bqaUwz*/
|
|
@ -1,3 +1,4 @@
|
|||
/*RgOIMdrmGV+tlT/hu9Lltqye7t1vrhuoSsQCZY1OQa8=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo:提交按钮事件
|
||||
|
@ -77,3 +78,5 @@ export default function coop25(props, assign, skipCodes, savecallback, type) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*RgOIMdrmGV+tlT/hu9Lltqye7t1vrhuoSsQCZY1OQa8=*/
|
|
@ -1,9 +1,10 @@
|
|||
/*f+vtQPByU1yDLodYCsoAs+d5v06z5H17Gv75aeIP+pI=*/
|
||||
/*
|
||||
* @Author: wangceb
|
||||
* @PageInfo: 信用查询
|
||||
* @Date: 2018-04-19 10:37:43
|
||||
* @Last Modified by: wangpju
|
||||
* @Last Modified time: 2022-04-12 15:25:43
|
||||
* @Last Modified by: liulux
|
||||
* @Last Modified time: 2022-11-08 09:47:59
|
||||
*/
|
||||
|
||||
import { URL } from '../../const';
|
||||
|
@ -28,9 +29,13 @@ export default function buttonClick(props) {
|
|||
<CreditQueryDlg billQueryPara={res.data} props={this.props} />
|
||||
</div>
|
||||
),
|
||||
rightBtnName: '' //右侧按钮名称,默认关闭
|
||||
rightBtnName: '', //右侧按钮名称,默认关闭
|
||||
hideRightBtn: true, //隐藏足部右边的按钮
|
||||
hideLeftBtn: true //隐藏足部左边的按钮
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*f+vtQPByU1yDLodYCsoAs+d5v06z5H17Gv75aeIP+pI=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*WCWV9dY2X2+qdR/KYgG2+pR6694vcAKyD02eXGWwLUI=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 删除选中的行事件
|
||||
|
@ -42,3 +43,5 @@ export default function clickDelRowBtn(props) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*WCWV9dY2X2+qdR/KYgG2+pR6694vcAKyD02eXGWwLUI=*/
|
|
@ -1,9 +1,10 @@
|
|||
/*HQJYRjmlHqUTbE/KrIVjwYi+wzh5INB6oTw9ZEopNlE=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 删除按钮事件
|
||||
* @Date: 2018-04-19 10:36:58
|
||||
* @Last Modified by: liulux
|
||||
* @Last Modified time: 2022-03-10 18:31:09
|
||||
* @Last Modified time: 2023-03-31 16:21:51
|
||||
*/
|
||||
|
||||
import { ajax } from 'nc-lightapp-front';
|
||||
|
@ -11,7 +12,6 @@ import { deleteCacheData, getNextId, changeUrlParam } from '../../../../../scmpu
|
|||
import { showResumeModal } from 'scmpub/scmpub/components/ResumeModal';
|
||||
import { getLangByResId } from '../../../../../scmpub/scmpub/pub/tool/multiLangUtil';
|
||||
import buttonController from '../viewController/buttonController';
|
||||
import commonSearch_BtnClick from './commonSearch_BtnClick';
|
||||
import { URL, SaleInvoiceHeadItem, SaleInvoiceCacheKey, SALEINVOICE_CONST, PAGEID } from '../../const';
|
||||
import { showSingleDeleteDialog } from '../../../../../scmpub/scmpub/pub/tool/messageUtil';
|
||||
const { DELURL, ADDINVOICEURL } = URL;
|
||||
|
@ -19,9 +19,13 @@ const { CARD } = PAGEID;
|
|||
import { showSuccessInfo } from '../../../../../scmpub/scmpub/pub/tool/messageUtil';
|
||||
import { pageInfoClick } from '.';
|
||||
export default function clickDelBtn(props, type, skipCodes) {
|
||||
showSingleDeleteDialog({
|
||||
beSureBtnClick: deleteBill.bind(this, props, type, skipCodes)
|
||||
}); /* 国际化处理: 删除,确定要删除吗?*/
|
||||
if (!skipCodes) {
|
||||
showSingleDeleteDialog({
|
||||
beSureBtnClick: deleteBill.bind(this, props, type, skipCodes)
|
||||
}); /* 国际化处理: 删除,确定要删除吗?*/
|
||||
} else {
|
||||
deleteBill.call(this, props, type, skipCodes);
|
||||
}
|
||||
}
|
||||
function deleteBill(props, type, skipCodes) {
|
||||
// let CardData = props.createMasterChildData(this.pageId, this.formId, this.tableId);
|
||||
|
@ -111,3 +115,5 @@ function deleteBill(props, type, skipCodes) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*HQJYRjmlHqUTbE/KrIVjwYi+wzh5INB6oTw9ZEopNlE=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*LTIZmau2nOVKYyx4vfT7ithlJIcjhDMsLDqYED5lM1U=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 修改按钮事件
|
||||
|
@ -15,12 +16,10 @@ import { showErrorInfo } from '../../../../../scmpub/scmpub/pub/tool/messageUtil
|
|||
import { getLangByResId } from '../../../../../scmpub/scmpub/pub/tool/multiLangUtil';
|
||||
|
||||
export default function clickEditBtn(props, type) {
|
||||
//begin 项目需求
|
||||
// if (this.combineCache.combinvo.bcombinflag) {
|
||||
// showErrorInfo(getLangByResId(this, '4006SALEINVOICE-000094')); /* 国际化处理: 汇总状态下不允许进行修改!*/
|
||||
// return;
|
||||
// }
|
||||
//end
|
||||
if (this.combineCache.combinvo.bcombinflag) {
|
||||
showErrorInfo(getLangByResId(this, '4006SALEINVOICE-000094')); /* 国际化处理: 汇总状态下不允许进行修改!*/
|
||||
return;
|
||||
}
|
||||
// 编辑态取消勾选
|
||||
this.props.cardTable.selectAllRows(this.tableId, false);
|
||||
//end
|
||||
|
@ -69,3 +68,5 @@ export default function clickEditBtn(props, type) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*LTIZmau2nOVKYyx4vfT7ithlJIcjhDMsLDqYED5lM1U=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*h6pV1Stt0msgqsSn3QsWlzVa7SHxBuwlbKiC8l3a73xjXS7tTumnnHTsF2D4Argo*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 传金税按钮事件
|
||||
|
@ -82,3 +83,5 @@ function translateGoldTaxResult() {
|
|||
commonSearch_BtnClick.call(this, [ 'btogoldtaxflag', 'tgoldtaxtime', 'ts' ]);
|
||||
}, 500);
|
||||
}
|
||||
|
||||
/*h6pV1Stt0msgqsSn3QsWlzVa7SHxBuwlbKiC8l3a73xjXS7tTumnnHTsF2D4Argo*/
|
|
@ -1,3 +1,4 @@
|
|||
/*9OU9aWIXVQwvDbMFdyNhWHtOYQUv2pGFPAqfAim76aE=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 取成本价按钮事件
|
||||
|
@ -60,3 +61,5 @@ export default function clickFetchCostBtn(props) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*9OU9aWIXVQwvDbMFdyNhWHtOYQUv2pGFPAqfAim76aE=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*Fxn6zGFAX6e8z9mfETwF2VRh3zhiE3gbOw++7awjRY8=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 销售发票附件管理
|
||||
|
@ -17,3 +18,5 @@ export default function() {
|
|||
pk: pk
|
||||
});
|
||||
}
|
||||
|
||||
/*Fxn6zGFAX6e8z9mfETwF2VRh3zhiE3gbOw++7awjRY8=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*8gcIg4mnFUCt6cb+OTuVNg96IC3wQ8iuqktFA1VGLI8=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 影像扫描按钮事件
|
||||
|
@ -25,3 +26,5 @@ export default function clickCancelBtn(props, type, index) {
|
|||
|
||||
SCMImageScan.call(this, props, data);
|
||||
}
|
||||
|
||||
/*8gcIg4mnFUCt6cb+OTuVNg96IC3wQ8iuqktFA1VGLI8=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*m0hsPgB73UGRG9fBCRimxJ/HlaPau7Z269vacnqFJXA=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 影响查看按钮事件
|
||||
|
@ -19,3 +20,5 @@ export default function clickCancelBtn(props, type, index) {
|
|||
|
||||
SCMImageView.call(this, props, data);
|
||||
}
|
||||
|
||||
/*m0hsPgB73UGRG9fBCRimxJ/HlaPau7Z269vacnqFJXA=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*YInZLc9/kvMC1mGq3o4LwAszAXwVlsNyvp/9X8WPLW8=*/
|
||||
import buttonClick from './buttonClick';
|
||||
import pageInfoClick from './pageInfo_BtnClick';
|
||||
|
||||
|
@ -18,3 +19,5 @@ export {
|
|||
coop25_BtnClick,
|
||||
saveAndCommit_BtnClick
|
||||
};
|
||||
|
||||
/*YInZLc9/kvMC1mGq3o4LwAszAXwVlsNyvp/9X8WPLW8=*/
|
|
@ -1,9 +1,10 @@
|
|||
/*2xyiDu0ozfQo4k4+CR/M9E9NC4predQbb+DoUuw2wg8AAhWYNkd/92u5cG7q+8KA*/
|
||||
/*
|
||||
* @Author: 刘奇
|
||||
* @PageInfo: 发票执行情况
|
||||
* @Date: 2019-05-17 10:14:05
|
||||
* @Last Modified by: wangpju
|
||||
* @Last Modified time: 2022-04-06 15:48:39
|
||||
* @Last Modified by: liulux
|
||||
* @Last Modified time: 2022-11-01 12:34:50
|
||||
*/
|
||||
import { ajax } from 'nc-lightapp-front';
|
||||
import { PAGEAREA } from '../../const';
|
||||
|
@ -26,10 +27,10 @@ export default function invoiceQueryExec_BtnClick(props) {
|
|||
title: getLangByResId(this, '4006SALEINVOICE-000078') /* 国际化处理:发票执行情况 */,
|
||||
noFooter: true,
|
||||
content: (
|
||||
<div className="nc-bill-card flex-container">
|
||||
<div className="nc-bill-table-area flex-container">
|
||||
<div className="flex-container" style ={{height: "100%"}}>
|
||||
|
||||
<InvoiceExec execInfoData={data} />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
)
|
||||
});
|
||||
|
@ -38,3 +39,5 @@ export default function invoiceQueryExec_BtnClick(props) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*2xyiDu0ozfQo4k4+CR/M9E9NC4predQbb+DoUuw2wg8AAhWYNkd/92u5cG7q+8KA*/
|
|
@ -1,3 +1,4 @@
|
|||
/*TijAZezwfAUbsk5SXg42Zoy5/LFaX5hwC1i6o9Ovh/s=*/
|
||||
/*
|
||||
* @Author: wangceb
|
||||
* @PageInfo: 电子发票(成品油)
|
||||
|
@ -36,3 +37,5 @@ export default function buttonClick(props, type) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*TijAZezwfAUbsk5SXg42Zoy5/LFaX5hwC1i6o9Ovh/s=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*gdmeya0Knve0FFKnJBOsx/MByaF6z93uuS/ZXqMYnjHbqXNyCpIu3W8TNBCRCp3a*/
|
||||
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
|
@ -69,4 +70,5 @@ export default function(){
|
|||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
/*gdmeya0Knve0FFKnJBOsx/MByaF6z93uuS/ZXqMYnjHbqXNyCpIu3W8TNBCRCp3a*/
|
|
@ -1,3 +1,4 @@
|
|||
/*Jh3G9na7tIP6xkCREvej6JjH0u0MQbkaKWLHq118/+c=*/
|
||||
/*
|
||||
* @Author: wangceb
|
||||
* @PageInfo: 联查税务发票
|
||||
|
@ -24,3 +25,5 @@ export default function buttonClick(props) {
|
|||
}
|
||||
);
|
||||
}
|
||||
|
||||
/*Jh3G9na7tIP6xkCREvej6JjH0u0MQbkaKWLHq118/+c=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*PDzNa3V5op52VGnXxoZ5q8goFG39IwrAw/CAQTBDCaVz6gpkLWPmaN/L0xHa4xHa*/
|
||||
/*
|
||||
* @Author: wangceb
|
||||
* @PageInfo: 维护税务发票
|
||||
|
@ -33,4 +34,5 @@ function maintainInvoice(props) {
|
|||
this.invoiceComponent.linkSituation.show();
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
/*PDzNa3V5op52VGnXxoZ5q8goFG39IwrAw/CAQTBDCaVz6gpkLWPmaN/L0xHa4xHa*/
|
|
@ -1,9 +1,10 @@
|
|||
/*F0oPM7eBp5SEHceMLl9uL0xm1X30T7mul6dDRg5CzVQ=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 卡片费用冲抵按钮事件
|
||||
* @Date: 2018-04-19 10:38:05
|
||||
* @Last Modified by: wangpju
|
||||
* @Last Modified time: 2022-04-06 15:54:56
|
||||
* @Date: 2018-04-19 10:38:05
|
||||
* @Last Modified by: liulux
|
||||
* @Last Modified time: 2022-11-09 18:49:32
|
||||
*/
|
||||
import OffSetTable from 'so/so/components/offset';
|
||||
import { ajax } from 'nc-lightapp-front';
|
||||
|
@ -18,205 +19,230 @@ const { OFFSET } = PAGEID;
|
|||
const { GENERAL } = OpposeFlag;
|
||||
|
||||
export default function clickOffsetBtn(props) {
|
||||
props.cardTable.filterEmptyRows(this.tableId, ['cmaterialvid'], 'include');
|
||||
props.cardTable.filterEmptyRows(this.tableId, ['cmaterialvid'], 'include');
|
||||
|
||||
if (this.combineCache.combinvo.bcombinflag == true) {
|
||||
showErrorInfo(
|
||||
getLangByResId(this, '4006SALEINVOICE-000000'),
|
||||
getLangByResId(this, '4006SALEINVOICE-000020')
|
||||
); /* 国际化处理: 错误,汇总状态下,不可做费用冲抵*/
|
||||
if (this.combineCache.combinvo.bcombinflag == true) {
|
||||
showErrorInfo(
|
||||
getLangByResId(this, '4006SALEINVOICE-000000'),
|
||||
getLangByResId(this, '4006SALEINVOICE-000020')
|
||||
); /* 国际化处理: 错误,汇总状态下,不可做费用冲抵*/
|
||||
|
||||
return;
|
||||
}
|
||||
let fopposeflag = props.form.getFormItemsValue(this.formId, 'fopposeflag').value;
|
||||
if (GENERAL == fopposeflag) {
|
||||
showErrorInfo(
|
||||
getLangByResId(this, '4006SALEINVOICE-000000'),
|
||||
getLangByResId(this, '4006SALEINVOICE-000021')
|
||||
); /* 国际化处理: 错误,对冲生成的发票不能做费用冲抵*/
|
||||
return;
|
||||
}
|
||||
let fopposeflag = props.form.getFormItemsValue(this.formId, 'fopposeflag').value;
|
||||
if (GENERAL == fopposeflag) {
|
||||
showErrorInfo(
|
||||
getLangByResId(this, '4006SALEINVOICE-000000'),
|
||||
getLangByResId(this, '4006SALEINVOICE-000021')
|
||||
); /* 国际化处理: 错误,对冲生成的发票不能做费用冲抵*/
|
||||
|
||||
return;
|
||||
}
|
||||
let so15 = getSO15.call(this, props.form.getFormItemsValue(this.formId, 'pk_org').value);
|
||||
return;
|
||||
}
|
||||
let so15 = getSO15.call(this, props.form.getFormItemsValue(this.formId, 'pk_org').value);
|
||||
}
|
||||
function getOffsetHeadInfo(cardData) {
|
||||
let headInfo = cardData.head.head.rows[0].values;
|
||||
let offSetHeadInfo = {
|
||||
cinvoicecustid: headInfo.cinvoicecustid,
|
||||
corigcurrencyid: headInfo.corigcurrencyid,
|
||||
vbillcode: headInfo.vbillcode,
|
||||
ntotalorigmny: headInfo.ntotalorigmny
|
||||
};
|
||||
return offSetHeadInfo;
|
||||
let headInfo = cardData.head.head.rows[0].values;
|
||||
let offSetHeadInfo = {
|
||||
cinvoicecustid: headInfo.cinvoicecustid,
|
||||
corigcurrencyid: headInfo.corigcurrencyid,
|
||||
vbillcode: headInfo.vbillcode,
|
||||
ntotalorigmny: headInfo.ntotalorigmny,
|
||||
};
|
||||
return offSetHeadInfo;
|
||||
}
|
||||
function offset() {
|
||||
let canOffsetRows = isCanOffset(this.props.cardTable.getAllData(this.tableId));
|
||||
let cardData = this.props.createMasterChildDataSimple(this.pageId, this.formId, this.tableId);
|
||||
if (canOffsetRows > 0) {
|
||||
this.offsetCache.billvo = cardData;
|
||||
const { show } = this.props.modal;
|
||||
show('modal', {
|
||||
size: 'xlg',
|
||||
title: getLangByResId(this, '4006SALEINVOICE-000022') /* 国际化处理: 费用冲抵*/,
|
||||
userControl: true, //用户自己控制是否关掉弹出框
|
||||
content: (
|
||||
<div className="nc-bill-card flex-container">
|
||||
|
||||
<div className="nc-bill-table-area flex-container">
|
||||
<OffSetTable
|
||||
offsetCache={this.offsetCache}
|
||||
billType="32"
|
||||
getOffsetCache={this.getOffsetCache}
|
||||
pagecode={OFFSET}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
),
|
||||
noFooter: false,
|
||||
leftBtnName: getLangByResId(this, '4006SALEINVOICE-000003'), //左侧按钮名称, 默认确认/* 国际化处理: 确认*/
|
||||
rightBtnName: getLangByResId(this, '4006SALEINVOICE-000023'), //右侧按钮名称,默认关闭/* 国际化处理: 取消*/
|
||||
closeModalEve: close.bind(this),
|
||||
cancelBtnClick: close.bind(this),
|
||||
beSureBtnClick: clickOkBtn.bind(this)
|
||||
});
|
||||
} else {
|
||||
showErrorInfo(
|
||||
getLangByResId(this, '4006SALEINVOICE-000000'),
|
||||
getLangByResId(this, '4006SALEINVOICE-000024')
|
||||
); /* 国际化处理: 错误,赠品、折扣和劳务行不做冲抵,过滤后没有可冲抵的行*/
|
||||
}
|
||||
let canOffsetRows = isCanOffset(this.props.cardTable.getAllData(this.tableId));
|
||||
let cardData = this.props.createMasterChildDataSimple(this.pageId, this.formId, this.tableId);
|
||||
if (canOffsetRows > 0) {
|
||||
this.offsetCache.billvo = cardData;
|
||||
const { show } = this.props.modal;
|
||||
show('modal', {
|
||||
size: 'xlg',
|
||||
title: getLangByResId(this, '4006SALEINVOICE-000022') /* 国际化处理: 费用冲抵*/,
|
||||
userControl: true, //用户自己控制是否关掉弹出框
|
||||
content: (
|
||||
<div class="flex-container" style={{ height: '100%' }}>
|
||||
<OffSetTable
|
||||
offsetCache={this.offsetCache}
|
||||
billType="32"
|
||||
getOffsetCache={this.getOffsetCache}
|
||||
pagecode={OFFSET}
|
||||
/>
|
||||
</div>
|
||||
),
|
||||
noFooter: false,
|
||||
leftBtnName: getLangByResId(this, '4006SALEINVOICE-000003'), //左侧按钮名称, 默认确认/* 国际化处理: 确认*/
|
||||
rightBtnName: getLangByResId(this, '4006SALEINVOICE-000023'), //右侧按钮名称,默认关闭/* 国际化处理: 取消*/
|
||||
closeModalEve: close.bind(this),
|
||||
cancelBtnClick: close.bind(this),
|
||||
beSureBtnClick: clickOkBtn.bind(this)
|
||||
});
|
||||
} else {
|
||||
showErrorInfo(
|
||||
getLangByResId(this, '4006SALEINVOICE-000000'),
|
||||
getLangByResId(this, '4006SALEINVOICE-000024')
|
||||
); /* 国际化处理: 错误,赠品、折扣和劳务行不做冲抵,过滤后没有可冲抵的行*/
|
||||
}
|
||||
}
|
||||
function close() {
|
||||
this.props.modal.close('modal');
|
||||
this.props.modal.close('modal');
|
||||
}
|
||||
|
||||
function isCanOffset(body) {
|
||||
let canOffsetRows = 0;
|
||||
for (let bvo of body.rows) {
|
||||
//劳务类
|
||||
let blaborflag = bvo.values.blaborflag.value;
|
||||
// 折扣类
|
||||
let bdiscountflag = bvo.values.bdiscountflag.value;
|
||||
// 赠品
|
||||
let blargessflag = bvo.values.blargessflag.value;
|
||||
// 劳务类,折扣类,赠品物料不可冲抵
|
||||
if (bdiscountflag == true || blaborflag == true || blargessflag == true) {
|
||||
continue;
|
||||
}
|
||||
let origtaxmny = bvo.values.norigtaxmny.value;
|
||||
// 价税合计为空或0 不可冲抵
|
||||
if (origtaxmny == undefined || origtaxmny == null || origtaxmny == 0) {
|
||||
continue;
|
||||
}
|
||||
canOffsetRows++;
|
||||
}
|
||||
return canOffsetRows;
|
||||
let canOffsetRows = 0;
|
||||
for (let bvo of body.rows) {
|
||||
//劳务类
|
||||
let blaborflag = bvo.values.blaborflag.value;
|
||||
// 折扣类
|
||||
let bdiscountflag = bvo.values.bdiscountflag.value;
|
||||
// 赠品
|
||||
let blargessflag = bvo.values.blargessflag.value;
|
||||
// 劳务类,折扣类,赠品物料不可冲抵
|
||||
if (bdiscountflag == true || blaborflag == true || blargessflag == true) {
|
||||
continue;
|
||||
}
|
||||
let origtaxmny = bvo.values.norigtaxmny.value;
|
||||
// 价税合计为空或0 不可冲抵
|
||||
if (origtaxmny == undefined || origtaxmny == null || origtaxmny == 0) {
|
||||
continue;
|
||||
}
|
||||
canOffsetRows++;
|
||||
}
|
||||
return canOffsetRows;
|
||||
}
|
||||
// 读取组织级业务参数 SO15 并隐藏字段
|
||||
function getSO15(pk_org) {
|
||||
let so15;
|
||||
let params = {};
|
||||
params.pk_org = pk_org;
|
||||
params.initCodes = ['SO15'];
|
||||
ajax({
|
||||
// 批量查询业务参数设置
|
||||
url: QUERYPARAURL,
|
||||
data: params,
|
||||
let so15;
|
||||
let params = {};
|
||||
params.pk_org = pk_org;
|
||||
params.initCodes = ['SO15'];
|
||||
ajax({
|
||||
// 批量查询业务参数设置
|
||||
url: QUERYPARAURL,
|
||||
data: params,
|
||||
|
||||
success: (res) => {
|
||||
if (res.data.SO15) {
|
||||
if (res.data.SO15 == 0.0) {
|
||||
showErrorInfo(
|
||||
getLangByResId(this, '4006SALEINVOICE-000000'),
|
||||
getLangByResId(this, '4006SALEINVOICE-000025')
|
||||
); /* 国际化处理: 错误,发票冲抵比例为0*/
|
||||
} else {
|
||||
offset.call(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
return so15;
|
||||
success: (res) => {
|
||||
if (res.data.SO15) {
|
||||
if (res.data.SO15 == 0.0) {
|
||||
showErrorInfo(
|
||||
getLangByResId(this, '4006SALEINVOICE-000000'),
|
||||
getLangByResId(this, '4006SALEINVOICE-000025')
|
||||
); /* 国际化处理: 错误,发票冲抵比例为0*/
|
||||
} else {
|
||||
offset.call(this);
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
return so15;
|
||||
}
|
||||
function clickOkBtn() {
|
||||
let offsetVOs = this.offsetCache.offsetVO;
|
||||
let isClose = checkOffsetData(offsetVOs);
|
||||
if (isClose == true) {
|
||||
close.call(this);
|
||||
} else {
|
||||
showErrorInfo(
|
||||
getLangByResId(this, '4006SALEINVOICE-000000'),
|
||||
getLangByResId(this, '4006SALEINVOICE-000026')
|
||||
); /* 国际化处理: 错误,请确保您选定的行输入冲抵金额不为0!*/
|
||||
|
||||
return;
|
||||
}
|
||||
let data = {};
|
||||
let carddata = this.props.createMasterChildDataSimple(this.pageId, this.formId, this.tableId);
|
||||
this.offsetCache.billvo = carddata;
|
||||
// this.setState({
|
||||
// billvo: carddata
|
||||
// });
|
||||
|
||||
if (offsetVOs.length > 0) {
|
||||
let table = {
|
||||
areaType: 'table',
|
||||
pageinfo: {
|
||||
pageIndex: -1
|
||||
},
|
||||
rows: offsetVOs
|
||||
};
|
||||
|
||||
data = {
|
||||
grid: {
|
||||
pageid: "400601200_offset",
|
||||
table: table
|
||||
},
|
||||
card: this.offsetCache.billvo,
|
||||
tempvo: this.offsetCache.offsetTempVO
|
||||
};
|
||||
}
|
||||
else {
|
||||
return;
|
||||
}
|
||||
ajax({
|
||||
url: '/nccloud/so/saleinvoice/unitarsub.do',
|
||||
|
||||
data: data,
|
||||
success: (res) => {
|
||||
if (res.success) {
|
||||
if (res.data) {
|
||||
this.props.beforeUpdatePage();
|
||||
if (res.data.card.head && res.data.card.head[this.formId]) {
|
||||
this.props.form.setAllFormValue({ [this.formId]: res.data.card.head[this.formId] });
|
||||
}
|
||||
if (res.data.card.body && res.data.card.body[this.tableId]) {
|
||||
this.props.cardTable.updateDataByRowId(this.tableId, res.data.card.body[this.tableId]);
|
||||
}
|
||||
if (res.data.tempvo) {
|
||||
this.offsetCache.offsetTempVO = res.data.tempvo;
|
||||
}
|
||||
// 控制按钮显示隐藏
|
||||
buttonController.call(this);
|
||||
// 设置编辑性
|
||||
setEditEnable.call(this, this.props, this.combineCache.combinvo);
|
||||
this.props.updatePage(this.formId, this.tableId);
|
||||
}
|
||||
}
|
||||
let offsetVOs = this.offsetCache.offsetVO;
|
||||
let isClose = checkOffsetData(offsetVOs);
|
||||
if (isClose == true) {
|
||||
let isCheckThissubmny = checkOffsetThissubmny(offsetVOs);
|
||||
if (isCheckThissubmny === true) {
|
||||
close.call(this, this.props);
|
||||
} else {
|
||||
showErrorInfo(
|
||||
getLangByResId(this, '4006SALEINVOICE-000104')
|
||||
); /* 国际化处理:冲抵金额超过费用单余额!*/
|
||||
return;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
showErrorInfo(
|
||||
getLangByResId(this, '4006SALEINVOICE-000000'),
|
||||
getLangByResId(this, '4006SALEINVOICE-000026')
|
||||
); /* 国际化处理: 错误,请确保您选定的行输入冲抵金额不为0!*/
|
||||
|
||||
return;
|
||||
}
|
||||
let data = {};
|
||||
let carddata = this.props.createMasterChildDataSimple(this.pageId, this.formId, this.tableId);
|
||||
this.offsetCache.billvo = carddata;
|
||||
// this.setState({
|
||||
// billvo: carddata
|
||||
// });
|
||||
|
||||
if (offsetVOs.length > 0) {
|
||||
let table = {
|
||||
areaType: 'table',
|
||||
pageinfo: {
|
||||
pageIndex: -1,
|
||||
},
|
||||
rows: offsetVOs,
|
||||
};
|
||||
|
||||
data = {
|
||||
grid: {
|
||||
pageid: '400601200_offset',
|
||||
table: table,
|
||||
},
|
||||
card: this.offsetCache.billvo,
|
||||
tempvo: this.offsetCache.offsetTempVO,
|
||||
};
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
ajax({
|
||||
url: '/nccloud/so/saleinvoice/unitarsub.do',
|
||||
|
||||
data: data,
|
||||
success: (res) => {
|
||||
if (res.success) {
|
||||
if (res.data) {
|
||||
this.props.beforeUpdatePage();
|
||||
if (res.data.card.head && res.data.card.head[this.formId]) {
|
||||
this.props.form.setAllFormValue({ [this.formId]: res.data.card.head[this.formId] });
|
||||
}
|
||||
if (res.data.card.body && res.data.card.body[this.tableId]) {
|
||||
this.props.cardTable.updateDataByRowId(this.tableId, res.data.card.body[this.tableId]);
|
||||
}
|
||||
if (res.data.tempvo) {
|
||||
this.offsetCache.offsetTempVO = res.data.tempvo;
|
||||
}
|
||||
// 控制按钮显示隐藏
|
||||
buttonController.call(this);
|
||||
// 设置编辑性
|
||||
setEditEnable.call(this, this.props, this.combineCache.combinvo);
|
||||
this.props.updatePage(this.formId, this.tableId);
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
function checkOffsetData(offsetVOs) {
|
||||
let nmny = 0;
|
||||
let nmny = 0;
|
||||
if (null == offsetVOs) {
|
||||
return false;
|
||||
}
|
||||
for (let offsetvo of offsetVOs) {
|
||||
nmny += offsetvo.values.nthissubmny.value;
|
||||
}
|
||||
if (Number(nmny) === 0 || Number(nmny) == 'NaN') {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
function checkOffsetThissubmny(offsetVOs) {
|
||||
let nnum = 0;
|
||||
if (null == offsetVOs) {
|
||||
return false;
|
||||
}
|
||||
for (let offsetvo of offsetVOs) {
|
||||
nmny += offsetvo.values.nthissubmny.value;
|
||||
let nthissubmny = offsetvo.values.nthissubmny.value;
|
||||
let nremainmny= offsetvo.values.nremainmny.value;
|
||||
if (Number(nthissubmny) > Number(nremainmny)){
|
||||
nnum = nnum + 1;
|
||||
}
|
||||
}
|
||||
if (Number(nmny) === 0 || Number(nmny) == 'NaN') {
|
||||
if (Number(nnum) > 0 ) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/*F0oPM7eBp5SEHceMLl9uL0xm1X30T7mul6dDRg5CzVQ=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*oazXRORN60E5qVBmhlzub/DDZQYndhZTEyfrpoHhdgo=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 卡片生成对冲发票按钮事件
|
||||
|
@ -29,3 +30,5 @@ export default function clickOpposeAddBtn(props, callback) {
|
|||
|
||||
getOpposeAddData.call(this, callback);
|
||||
}
|
||||
|
||||
/*oazXRORN60E5qVBmhlzub/DDZQYndhZTEyfrpoHhdgo=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*xCKRIwbmLno8GBqR+zvmEpestFzWd0Dv7FaqDblpekg=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 卡片输出按钮事件
|
||||
|
@ -18,3 +19,5 @@ export default function(props) {
|
|||
data: { oids: [ pk ], outputType: 'output' }
|
||||
});
|
||||
}
|
||||
|
||||
/*xCKRIwbmLno8GBqR+zvmEpestFzWd0Dv7FaqDblpekg=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*34aa3yvwJQSmoijK55YNuPY/eCyr7fZonxufelAs9nQ=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 卡片翻页按钮事件
|
||||
|
@ -57,3 +58,5 @@ export default function(props, pk) {
|
|||
buttonController.call(this);
|
||||
this.props.updatePage(this.formId, this.tableId);
|
||||
}
|
||||
|
||||
/*34aa3yvwJQSmoijK55YNuPY/eCyr7fZonxufelAs9nQ=*/
|
|
@ -1,9 +1,10 @@
|
|||
/*9a1eTd5yO0nmu7639LcU5sCoU1HACH/C90odhEYY9MI=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 卡片打印按钮事件
|
||||
* @Date: 2018-04-19 10:38:05
|
||||
* @Last Modified by: songyt13
|
||||
* @Last Modified time: 2021-08-12 15:34:21
|
||||
* @Last Modified by: liulux
|
||||
* @Last Modified time: 2023-07-19 14:57:35
|
||||
*/
|
||||
import { ajax } from 'nc-lightapp-front';
|
||||
import { PAGEAREA, URL, SALEINVOICE_CONST } from '../../const';
|
||||
|
@ -12,27 +13,31 @@ const { printPreview } = poc;
|
|||
|
||||
const { FORMID } = PAGEAREA;
|
||||
const { PRINTURL, PRINTDATAPERMISSION } = URL;
|
||||
export default function(props) {
|
||||
export default function (props) {
|
||||
let pk = props.form.getFormItemsValue(FORMID, 'csaleinvoiceid').value;
|
||||
|
||||
let pk_org = props.form.getFormItemsValue(FORMID, 'pk_org').value;
|
||||
ajax({
|
||||
url: PRINTDATAPERMISSION,
|
||||
data: { pks: [ pk ] },
|
||||
data: { pks: [pk] },
|
||||
success: (res) => {
|
||||
if (res.success) {
|
||||
let printParams = {
|
||||
appcode: props.getAppCode(),
|
||||
nodekey: null,
|
||||
oids: [ pk ],
|
||||
oids: [pk],
|
||||
printType: true,
|
||||
realData: true,
|
||||
controlPrintNum: true,
|
||||
userjson: JSON.stringify(this.combineCache.combinvo)
|
||||
userjson: JSON.stringify(this.combineCache.combinvo),
|
||||
pk_org: [pk_org],
|
||||
billtype: SALEINVOICE_CONST.billtype
|
||||
};
|
||||
// 审批场景再传这个参数(transactiontype-交易类型编码, billtype-单据类型,这两个参数每次只能传一个)
|
||||
if (SALEINVOICE_CONST.approvesce == props.getUrlParam(SALEINVOICE_CONST.scene) || SALEINVOICE_CONST.ssctp == props.getUrlParam(SALEINVOICE_CONST.scene)) {
|
||||
// 其他情况,需要根据单据类型找维护应用
|
||||
printParams.billtype = SALEINVOICE_CONST.billtype;
|
||||
// printParams.billtype = SALEINVOICE_CONST.billtype;
|
||||
printParams.istransbilltype = true;
|
||||
printParams.userjson = JSON.stringify({ istransbilltype: true });
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -48,3 +53,5 @@ export default function(props) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*9a1eTd5yO0nmu7639LcU5sCoU1HACH/C90odhEYY9MI=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*RSLtwhBExFdOE5rTJwTT6kzN+0FzV5VuyIwekQ9asEk=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 退出转单事件
|
||||
|
@ -40,3 +41,5 @@ function quit(props) {
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
/*RSLtwhBExFdOE5rTJwTT6kzN+0FzV5VuyIwekQ9asEk=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*0z+Sj7+btWpd7tXPGieIf64B6v1BnK9Sop4R8Sjljtc=*/
|
||||
/*
|
||||
* @Author: wangceb
|
||||
* @PageInfo: 红字发票
|
||||
|
@ -9,7 +10,7 @@ import { ajax } from 'nc-lightapp-front';
|
|||
import { URL, PAGEID, PAGEAREA, SaleInvoiceHeadItem } from '../../const';
|
||||
import { showWarningInfo } from '../../../../../scmpub/scmpub/pub/tool/messageUtil';
|
||||
import { getLangByResId } from '../../../../../scmpub/scmpub/pub/tool/multiLangUtil';
|
||||
import InvoiceComponent from 'src/sscivm/invoiceComponent/compoundComponent/component';
|
||||
import InvoiceComponent from 'sscivm/invoiceComponent/compoundComponent/component';
|
||||
|
||||
export default function buttonClick(props) {
|
||||
let csaleinvoiceid = props.form.getFormItemsValue(this.formId, SaleInvoiceHeadItem.CSALEINVOICEID).value;
|
||||
|
@ -66,3 +67,5 @@ export default function buttonClick(props) {
|
|||
});
|
||||
});
|
||||
}
|
||||
|
||||
/*0z+Sj7+btWpd7tXPGieIf64B6v1BnK9Sop4R8Sjljtc=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*9SXo2dIjtemLH9shhv1q/LxxMzJmcnQg8lNA+iv/v0SjnhG3HR5R+R3y+7DpGshD*/
|
||||
import transfer from '../init/transfer';
|
||||
import getTranferData from '../init/getTranferData';
|
||||
export default function refAddLineConfirm(type, combineflag, isRefAddLine) {
|
||||
|
@ -5,3 +6,5 @@ export default function refAddLineConfirm(type, combineflag, isRefAddLine) {
|
|||
let idts = getTranferData.call(this, type, combineflag);
|
||||
transfer.call(this, idts, isRefAddLine);
|
||||
}
|
||||
|
||||
/*9SXo2dIjtemLH9shhv1q/LxxMzJmcnQg8lNA+iv/v0SjnhG3HR5R+R3y+7DpGshD*/
|
|
@ -1,14 +1,16 @@
|
|||
/*pI1wdSJeJL7AODyiH6BG5+7iI8YoJgkeoXdnx5zNTOw=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo:销售发票参照增行
|
||||
* @Date: 2018-06-08 15:52:15
|
||||
* @Last Modified by: wangpju
|
||||
* @Last Modified time: 2022-04-11 10:54:03
|
||||
* @Last Modified by: chaiwx
|
||||
* @Last Modified time: 2023-08-08 13:56:38
|
||||
*/
|
||||
import { ajax } from 'nc-lightapp-front';
|
||||
import { URL } from '../../const';
|
||||
import refAddLineComfirm_Btn_Click from './refAddLineComfirm_Btn_Click';
|
||||
import MultiTransferTable from '../../transfer/refline';
|
||||
import '../index.less';
|
||||
|
||||
import { getLangByResId } from '../../../../../scmpub/scmpub/pub/tool/multiLangUtil';
|
||||
|
||||
|
@ -37,8 +39,9 @@ export default function refAddLine(props) {
|
|||
if (data) {
|
||||
if (data.length > 0) {
|
||||
for (let row of data) {
|
||||
if (row.busitypes && row.busitypes.indexOf(curBusitype) != -1)
|
||||
if (row.busitypes && row.busitypes.indexOf(curBusitype) != -1) {
|
||||
srcbilltype.push(row.src_billtype);
|
||||
}
|
||||
}
|
||||
}
|
||||
// 如果来源单据类型里有销售出库单就显示多来源
|
||||
|
@ -49,7 +52,7 @@ export default function refAddLine(props) {
|
|||
noFooter: true,
|
||||
hasCloseBtn: true,
|
||||
className: 'ref-add-line',
|
||||
zIndex: 280,
|
||||
zIndex: 230,
|
||||
content: (
|
||||
<MultiTransferTable
|
||||
isRefAddLine={true}
|
||||
|
@ -67,7 +70,7 @@ export default function refAddLine(props) {
|
|||
size: 'xlg',
|
||||
hasCloseBtn: true,
|
||||
className: 'ref-add-line',
|
||||
zIndex: 280,
|
||||
zIndex: 230,
|
||||
content: (
|
||||
<TransferTable2
|
||||
isRefAddLine={true}
|
||||
|
@ -85,7 +88,7 @@ export default function refAddLine(props) {
|
|||
size: 'xlg',
|
||||
hasCloseBtn: true,
|
||||
className: 'ref-add-line',
|
||||
zIndex: 280,
|
||||
zIndex: 230,
|
||||
content: (
|
||||
<TransferTable
|
||||
isRefAddLine={true}
|
||||
|
@ -103,3 +106,5 @@ export default function refAddLine(props) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*pI1wdSJeJL7AODyiH6BG5+7iI8YoJgkeoXdnx5zNTOw=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*iGEr7jsLTpd/n+WcDubKzWtkQHJAAXSCEdkxYu5MvWc=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 刷新按钮
|
||||
|
@ -13,3 +14,5 @@ export default function() {
|
|||
showSuccessInfo(getLangByResId(this, '4006SALEINVOICE-000063')); /* 国际化处理: 刷新成功!*/
|
||||
});
|
||||
}
|
||||
|
||||
/*iGEr7jsLTpd/n+WcDubKzWtkQHJAAXSCEdkxYu5MvWc=*/
|
|
@ -1,9 +1,10 @@
|
|||
/*jHHX4BZGJ+c3sSWFwRgTrTI+6jf9pltQ8Q2eZ2BMz/E=*/
|
||||
/*
|
||||
* @Author: 刘奇
|
||||
* @PageInfo: 毛利预估
|
||||
* @Date: 2019-05-17 10:21:16
|
||||
* @Last Modified by: wangpju
|
||||
* @Last Modified time: 2022-04-06 15:47:03
|
||||
* @Last Modified by: liulux
|
||||
* @Last Modified time: 2022-11-01 12:38:12
|
||||
*/
|
||||
import { ajax } from 'nc-lightapp-front';
|
||||
import { PAGEAREA } from '../../const';
|
||||
|
@ -42,10 +43,8 @@ export default function saleProfit_BtnClick(props) {
|
|||
title: getLangByResId(this, '4006SALEINVOICE-000077') /* 国际化处理:毛利预估 */,
|
||||
noFooter: true,
|
||||
content: (
|
||||
<div className="nc-bill-card flex-container">
|
||||
<div className="nc-bill-table-area flex-container">
|
||||
<div className="flex-container" style ={{height: "100%"}}>
|
||||
<SaleProfit profitData={data} />
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
});
|
||||
|
@ -54,3 +53,5 @@ export default function saleProfit_BtnClick(props) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*jHHX4BZGJ+c3sSWFwRgTrTI+6jf9pltQ8Q2eZ2BMz/E=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*8YlaFdhX2aTGARIQ1DT2kk7Xd4RdRnMkmN5ZoXeBXxXa4S/2AhRlEDH5Wd4svB9t*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 保存提交按钮事件
|
||||
|
@ -223,7 +224,7 @@ export default function clickSaveAndCommitBtn(props, type, skipCodes, assign, ca
|
|||
props.cardPagination.setCardPaginationId({ id: csaleinvoiceid, status: 1 });
|
||||
}
|
||||
if (res.formulamsg && res.formulamsg instanceof Array && res.formulamsg.length > 0) {
|
||||
props.dealFormulamsg(
|
||||
this.props.dealFormulamsg(
|
||||
res.formulamsg //参数一:返回的公式对象
|
||||
);
|
||||
}
|
||||
|
@ -236,3 +237,5 @@ export default function clickSaveAndCommitBtn(props, type, skipCodes, assign, ca
|
|||
});
|
||||
});
|
||||
}
|
||||
|
||||
/*8YlaFdhX2aTGARIQ1DT2kk7Xd4RdRnMkmN5ZoXeBXxXa4S/2AhRlEDH5Wd4svB9t*/
|
|
@ -1,3 +1,4 @@
|
|||
/*Ul4F8fkq5E+3GAjBdCwg7JrmUVNjEDw5n9Grwtm5LYY=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 保存按钮事件
|
||||
|
@ -193,7 +194,7 @@ export default function clickSaveBtn(props, type, skipCodes, callbackbtn) {
|
|||
props.cardPagination.setCardPaginationId({ id: csaleinvoiceid, status: 1 });
|
||||
}
|
||||
if (res.formulamsg && res.formulamsg instanceof Array && res.formulamsg.length > 0) {
|
||||
props.dealFormulamsg(
|
||||
this.props.dealFormulamsg(
|
||||
res.formulamsg //参数一:返回的公式对象
|
||||
);
|
||||
}
|
||||
|
@ -205,3 +206,5 @@ export default function clickSaveBtn(props, type, skipCodes, callbackbtn) {
|
|||
});
|
||||
});
|
||||
}
|
||||
|
||||
/*Ul4F8fkq5E+3GAjBdCwg7JrmUVNjEDw5n9Grwtm5LYY=*/
|
|
@ -1,9 +1,10 @@
|
|||
/*Q85yItnMKM87n/jHGFVBH3M2SMmyRfIjRhJe/UPRWvc=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 显示汇总按钮
|
||||
* @Date: 2018-05-16 18:33:24
|
||||
* @Last Modified by: mikey.zhaopeng
|
||||
* @Last Modified time: 2024-07-16 10:14:32
|
||||
* @Last Modified by: zhangjyp
|
||||
* @Last Modified time: 2018-09-29 17:29:54
|
||||
*/
|
||||
import { URL } from '../../const';
|
||||
|
||||
|
@ -37,17 +38,6 @@ export default function clickShowCombineBtn(props) {
|
|||
props.form.setAllFormValue({ [this.formId]: res.data.card.head[this.formId] });
|
||||
}
|
||||
if (res.data.card.body && res.data.card.body[this.tableId]) {
|
||||
// let rows = res.data.card.body[this.tableId].rows;
|
||||
// rows.forEach((item, index) => {
|
||||
// // 设置小数点保留位数
|
||||
// let fields = ['nqtorigtaxprice','nqtorignetprice', 'nqttaxprice', 'nqtnetprice'];
|
||||
// fields.forEach(field => {
|
||||
// if(item.values[field]) {
|
||||
// item.values[field].scale = '2';
|
||||
// item.values[field].value = Number(item.values[field].value).toFixed(2);
|
||||
// }
|
||||
// });
|
||||
// });
|
||||
props.cardTable.setTableData(this.tableId, res.data.card.body[this.tableId]);
|
||||
}
|
||||
if (res.data.combinrela) {
|
||||
|
@ -67,3 +57,5 @@ export default function clickShowCombineBtn(props) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*Q85yItnMKM87n/jHGFVBH3M2SMmyRfIjRhJe/UPRWvc=*/
|
|
@ -1,9 +1,10 @@
|
|||
/*2aC8zyYcLsaizFrgBRFZXXSv1oagyrkiZK9gpKQ4bWg=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 显示明细按钮
|
||||
* @Date: 2018-05-16 18:32:53
|
||||
* @Last Modified by: mikey.zhaopeng
|
||||
* @Last Modified time: 2024-07-15 21:20:40
|
||||
* @Last Modified by: zhangjyp
|
||||
* @Last Modified time: 2018-09-29 17:29:56
|
||||
*/
|
||||
import { URL } from '../../const';
|
||||
import { ajax } from 'nc-lightapp-front';
|
||||
|
@ -34,17 +35,6 @@ export default function clickShowDetailBtn(props) {
|
|||
props.form.setAllFormValue({ [this.formId]: res.data.card.head[this.formId] });
|
||||
}
|
||||
if (res.data.card.body && res.data.card.body[this.tableId]) {
|
||||
// let rows = res.data.card.body[this.tableId].rows;
|
||||
// rows.forEach((item, index) => {
|
||||
// // 设置小数点保留位数
|
||||
// let fields = ['nqtorigtaxprice','nqtorignetprice', 'nqttaxprice', 'nqtnetprice'];
|
||||
// fields.forEach(field => {
|
||||
// if(item.values[field]) {
|
||||
// item.values[field].scale = '2';
|
||||
// item.values[field].value = Number(item.values[field].value).toFixed(2);
|
||||
// }
|
||||
// });
|
||||
// });
|
||||
props.cardTable.setTableData(this.tableId, res.data.card.body[this.tableId]);
|
||||
}
|
||||
if (res.data.combinvo) {
|
||||
|
@ -64,3 +54,5 @@ export default function clickShowDetailBtn(props) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*2aC8zyYcLsaizFrgBRFZXXSv1oagyrkiZK9gpKQ4bWg=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*I7vQLPJUaNNqfNSmpKY00Xox2XkA8auROOE7ZteWcfo=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo:收回按钮事件
|
||||
|
@ -88,3 +89,5 @@ export default function clickUnCommitBtn(props) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*I7vQLPJUaNNqfNSmpKY00Xox2XkA8auROOE7ZteWcfo=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*IiyxvPmC0NO3o2ZTB53owGcEcj43x2J68Ms6vtEPYXY=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 卡片取消费用冲抵按钮事件
|
||||
|
@ -83,3 +84,5 @@ function clickOkBtn(props) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*IiyxvPmC0NO3o2ZTB53owGcEcj43x2J68Ms6vtEPYXY=*/
|
|
@ -1,9 +1,10 @@
|
|||
/*sFmmDN6ioEg4gEeJGVA0jZuxOEFOKtEFYPe2Udi1CFg=*/
|
||||
/*
|
||||
* @Author: 刘奇
|
||||
* @PageInfo: 税额小计
|
||||
* @Date: 2019-05-17 10:21:28
|
||||
* @Last Modified by: wangpju
|
||||
* @Last Modified time: 2022-04-06 15:47:17
|
||||
* @Last Modified by: liulux
|
||||
* @Last Modified time: 2022-11-01 12:37:34
|
||||
*/
|
||||
import { ajax } from 'nc-lightapp-front';
|
||||
import { PAGEAREA, PAGEID } from '../../const';
|
||||
|
@ -33,10 +34,8 @@ export default function vatsub_BtnClick(props) {
|
|||
title: getLangByResId(this, '4006SALEINVOICE-000076') /* 国际化处理:税额小计 */,
|
||||
noFooter: true,
|
||||
content: (
|
||||
<div className="nc-bill-card flex-container">
|
||||
<div className="nc-bill-table-area flex-container">
|
||||
<div className="flex-container" style ={{height: "100%"}}>
|
||||
<VatSub vatSubData={data} />
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
});
|
||||
|
@ -45,3 +44,5 @@ export default function vatsub_BtnClick(props) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*sFmmDN6ioEg4gEeJGVA0jZuxOEFOKtEFYPe2Udi1CFg=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*FDMGLraVXRe66lVGinb2IByA+mRdvaYz7rNd72jlsj4=*/
|
||||
/*
|
||||
* @Author: wangceb
|
||||
* @PageInfo: 销售发票修订字段是否能编辑检查规则
|
||||
|
@ -56,3 +57,5 @@ function isEditableItem(props, moduleId, row, key) {
|
|||
}
|
||||
|
||||
export { isCanRevise };
|
||||
|
||||
/*FDMGLraVXRe66lVGinb2IByA+mRdvaYz7rNd72jlsj4=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*DncIqBreQz6WZRX+v7OzgcZHMDCanfcUW5KKXHaOBOc=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 编辑事件
|
||||
|
@ -20,3 +21,5 @@ export default function afterEvent(props, moduleId, key, value, rows, i, s, g) {
|
|||
bodyEvents.call(this, props, moduleId, key, value, rows, i, s, g);
|
||||
}
|
||||
}
|
||||
|
||||
/*DncIqBreQz6WZRX+v7OzgcZHMDCanfcUW5KKXHaOBOc=*/
|
|
@ -1,10 +1,12 @@
|
|||
/*8nIjANkSB9VpkQdmnMi+FH+RuCNHXu5W/uY4vXkgGks=*/
|
||||
import { ajax } from 'nc-lightapp-front';
|
||||
import { PAGEAREA, URL, PAGEID } from '../../const';
|
||||
import {
|
||||
createBodyAfterEventData4Batch,
|
||||
processBillCardBodyEditResult4Batch
|
||||
} from '../../../../../scmpub/scmpub/pub/tool/afterEditUtil';
|
||||
import headTotalCalRule from '../../../pub/pubrule/headTotalCalRule';
|
||||
import vfreeBeforeEvent from '../../../pub/pubrule/vfreeBeforeEvent';
|
||||
import { marAsstUtils } from '../../../../../scmpub/scmpub/pub/tool';
|
||||
|
||||
const copyFields = [
|
||||
'nastnum',
|
||||
|
@ -18,9 +20,13 @@ const copyFields = [
|
|||
'norigtaxnetprice',
|
||||
'norignetprice',
|
||||
'ntaxrate',
|
||||
'vrownote'
|
||||
'vrownote',
|
||||
'norigmny'
|
||||
];
|
||||
export default function (obj) {
|
||||
|
||||
const FixAssts = [ 'cproductorid', 'cvendorvid', 'cvendorid', 'cmffileid' ];
|
||||
|
||||
export default async function(obj) {
|
||||
let areaCode = obj.areaCode; //区域编码
|
||||
let column = obj.column; //列信息
|
||||
let newValue = obj.newValue; //变更的行信息
|
||||
|
@ -30,20 +36,39 @@ export default function (obj) {
|
|||
let indexs = [];
|
||||
let rows = [];
|
||||
let attrcode = column.attrcode; //列code
|
||||
let queryCondition; //统一过滤的过滤条件
|
||||
let queryCondition = {}; //统一过滤的过滤条件
|
||||
let isManyCondition = null; //是否多个过滤条件
|
||||
let pasteData = obj.pasteData; //粘贴的值
|
||||
if (attrcode.startsWith('vbdef')) {
|
||||
|
||||
//2022212版本新增:生产厂商、供应商、自由辅助属性、无税金额、价税合计、税码、收支项目
|
||||
if (attrcode.startsWith('vbdef') || FixAssts.includes(attrcode) || attrcode == 'ccostsubjid') {
|
||||
for (let i = 0; i < newValue.length; i++) {
|
||||
if (!await checkEditableByAttrcode.call(this, attrcode, newValue[i].values, i)) {
|
||||
continue;
|
||||
}
|
||||
queryValue.push(newValue[i]);
|
||||
indexs[i] = currentIndex + i;
|
||||
rows[i] = [i];
|
||||
rows[i] = [ i ];
|
||||
|
||||
if (attrcode === 'cmffileid') {
|
||||
// 配置码需要根据物料过滤
|
||||
let cmaterialvid = (newValue[i].values.cmaterialvid || {}).value;
|
||||
queryValue[i].queryCondition = { cmaterialvid: cmaterialvid };
|
||||
}
|
||||
}
|
||||
|
||||
if (attrcode == 'cmffileid') {
|
||||
isManyCondition = true;
|
||||
} else {
|
||||
let pk_org = this.props.form.getFormItemsValue(PAGEAREA.FORMID, 'pk_org').value;
|
||||
queryCondition = { pk_org: pk_org };
|
||||
isManyCondition = false;
|
||||
}
|
||||
let pk_org = this.props.form.getFormItemsValue(PAGEAREA.FORMID, 'pk_org').value;
|
||||
queryCondition = { pk_org: pk_org };
|
||||
isManyCondition = false;
|
||||
} else if (copyFields.includes(attrcode)) {
|
||||
for (let i = 0; i < newValue.length; i++) {
|
||||
if (!await checkEditableByAttrcode.call(this, attrcode, newValue[i].values, i)) {
|
||||
continue;
|
||||
}
|
||||
queryValue.push(newValue[i]);
|
||||
// 粘贴后不自动增行
|
||||
if (
|
||||
|
@ -53,7 +78,88 @@ export default function (obj) {
|
|||
) {
|
||||
indexs[i] = currentIndex + i;
|
||||
}
|
||||
rows[i] = [i];
|
||||
rows[i] = [ i ];
|
||||
}
|
||||
} else if (attrcode.startsWith('vfree')) {
|
||||
for (let i = 0; i < newValue.length; i++) {
|
||||
if (!await checkEditableByAttrcode.call(this, attrcode, newValue[i].values, i)) {
|
||||
continue;
|
||||
}
|
||||
// 自由辅助属性编辑前
|
||||
let constance = {
|
||||
key: attrcode,
|
||||
areahid: PAGEAREA.FORMID,
|
||||
areabid: PAGEAREA.TABLEID,
|
||||
index: currentIndex + i,
|
||||
cmaterialid: 'cmaterialvid',
|
||||
rowid: newValue[i].rowid
|
||||
};
|
||||
let isEdit = await vfreeBeforeEvent.call(this, this.props, constance);
|
||||
if (!isEdit) {
|
||||
continue;
|
||||
}
|
||||
queryValue.push(newValue[i]);
|
||||
indexs[i] = currentIndex + i;
|
||||
let freefield = {
|
||||
cvendorid: 'cvendorid',
|
||||
cvendorvid: 'cvendorvid'
|
||||
};
|
||||
queryValue[queryValue.length - 1].queryCondition = marAsstUtils.getVfreeQueryCondition.call(
|
||||
this,
|
||||
this.props,
|
||||
'400601200',
|
||||
PAGEID.CARD,
|
||||
PAGEAREA.TABLEID,
|
||||
attrcode,
|
||||
newValue[i],
|
||||
freefield
|
||||
);
|
||||
}
|
||||
let pk_org = this.props.form.getFormItemsValue(PAGEAREA.FORMID, 'pk_org').value;
|
||||
queryCondition = { pk_org: pk_org };
|
||||
isManyCondition = true;
|
||||
} else if (attrcode == 'ctaxcodeid') {
|
||||
// 税码
|
||||
for (let i = 0; i < newValue.length; i++) {
|
||||
if (!await checkEditableByAttrcode.call(this, attrcode, newValue[i].values, i)) {
|
||||
continue;
|
||||
}
|
||||
queryValue.push(newValue[i]);
|
||||
// 粘贴后不自动增行
|
||||
if (
|
||||
newValue[i].values[attrcode].value != '' &&
|
||||
newValue[i].values.pk_org &&
|
||||
newValue[i].values.pk_org.value != ''
|
||||
) {
|
||||
indexs[i] = currentIndex + i;
|
||||
}
|
||||
rows[i] = [ i ];
|
||||
}
|
||||
let fbuysellflag = (this.props.form.getFormItemsValue(this.formId, 'fbuysellflag') || {}).value;
|
||||
// 税码
|
||||
let ctaxcountryid = this.props.form.getFormItemsValue(this.formId, 'ctaxcountryid');
|
||||
queryCondition = {
|
||||
SCM_REPTAXCOUNTRY: (ctaxcountryid || {}).value,
|
||||
SCM_PURSALETYPE: fbuysellflag,
|
||||
GridRefActionExt: 'nccloud.web.scmpub.ref.TaxCodeRefFilterUtils'
|
||||
};
|
||||
isManyCondition = true;
|
||||
} else if (attrcode == 'norigtaxmny') {
|
||||
// 价税合计
|
||||
for (let i = 0; i < newValue.length; i++) {
|
||||
if (!await checkEditableByAttrcode.call(this, attrcode, newValue[i].values, i)) {
|
||||
continue;
|
||||
}
|
||||
queryValue.push(newValue[i]);
|
||||
// 粘贴后不自动增行
|
||||
if (
|
||||
newValue[i].values[attrcode].value != '' &&
|
||||
newValue[i].values.pk_org &&
|
||||
newValue[i].values.pk_org.value != ''
|
||||
) {
|
||||
indexs[i] = currentIndex + i;
|
||||
}
|
||||
rows[i] = [ i ];
|
||||
}
|
||||
} else {
|
||||
return;
|
||||
|
@ -95,7 +201,7 @@ export default function (obj) {
|
|||
async: false,
|
||||
success: (res) => {
|
||||
if (res.formulamsg && res.formulamsg instanceof Array && res.formulamsg.length > 0) {
|
||||
props.dealFormulamsg(
|
||||
this.props.dealFormulamsg(
|
||||
res.formulamsg, //参数一:返回的公式对象
|
||||
{
|
||||
//参数二:界面使用的表格类型
|
||||
|
@ -103,19 +209,51 @@ export default function (obj) {
|
|||
}
|
||||
);
|
||||
}
|
||||
//cyoung 2024年04月25日 17:24:42 无税净价 和 本币无税净价 四舍五入保留两位小数
|
||||
res.data.billCard.body.saleinvoice_b.rows.forEach(function (row) {
|
||||
row.values.nqtorignetprice.scale = 6;
|
||||
row.values.nqtorignetprice.value = Number(row.values.nqtorignetprice.value).toFixed(2);
|
||||
row.values.nqtnetprice.scale = 6;
|
||||
row.values.nqtnetprice.value = Number(row.values.nqtnetprice.value).toFixed(2);
|
||||
});
|
||||
processBillCardBodyEditResult4Batch(props, PAGEAREA.TABLEID, res.data, indexs);
|
||||
this.forceUpdate();
|
||||
}
|
||||
});
|
||||
let keymaps = new Map();
|
||||
keymaps.set('ntaxmny', 'vdef5');
|
||||
headTotalCalRule(this.props, PAGEID.CARD, PAGEAREA.FORMID, PAGEAREA.TABLEID, keymaps);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查指定字段的编辑性x
|
||||
* @param {*} attrcode
|
||||
* @param {*} record
|
||||
*/
|
||||
async function checkEditableByAttrcode(attrcode, record, index) {
|
||||
let canEdit = true;
|
||||
// 没有物料的行相当于空行,不允许编辑
|
||||
if (!(record['cmaterialvid'] && record['cmaterialvid'].value)) {
|
||||
canEdit = false;
|
||||
return canEdit;
|
||||
}
|
||||
if ('cmaterialvid' == attrcode) {
|
||||
canEdit = true;
|
||||
// 价税合计
|
||||
} else if (attrcode == 'norigtaxmny') {
|
||||
// 已做过费用冲抵的对冲发票,数量和价税合计不可改(即不可以做部分对冲)
|
||||
let bsubunitflag = this.props.form.getFormItemsValue(this.formId, 'bsubunitflag');
|
||||
let fopposeflag = this.props.form.getFormItemsValue(this.formId, 'fopposeflag');
|
||||
if (bsubunitflag && bsubunitflag.value && fopposeflag && fopposeflag.value == '2') {
|
||||
showWarningInfo(null, getLangByResId(this, '4006SALEINVOICE-000096')); /* 国际化处理: 已冲抵的对冲发票不可以修改数量和价税合计*/
|
||||
canEdit = false;
|
||||
}
|
||||
|
||||
//汇总显示的对冲发票,数量和价税合计不可改(即不可以做部分对冲)
|
||||
if (this.combineCache.combinvo && this.combineCache.combinvo.bcombinflag) {
|
||||
showWarningInfo(null, getLangByResId(this, '4006SALEINVOICE-000097')); /* 国际化处理: 汇总显示的对冲发票不可以修改数量和价税合计*/
|
||||
canEdit = false;
|
||||
}
|
||||
} else if (attrcode == 'ctaxcodeid') {
|
||||
// 税码
|
||||
let ctaxcountryid = this.props.form.getFormItemsValue(this.formId, 'ctaxcountryid');
|
||||
// 报税国为空,不可编辑
|
||||
if (!ctaxcountryid || !ctaxcountryid.value) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return canEdit;
|
||||
}
|
||||
|
||||
/*8nIjANkSB9VpkQdmnMi+FH+RuCNHXu5W/uY4vXkgGks=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*lA7FrGfHlashLvM+HJWGNXPr9oOKTzcij2k2Znrh0rE=*/
|
||||
import body_beforeEvent from './body_beforeEvent';
|
||||
import head_beforeEvent from './head_beforeEvent';
|
||||
import { PAGEAREA } from '../../const';
|
||||
|
@ -12,3 +13,5 @@ export default function(props, moduleId, key, value, index, record) {
|
|||
return body_beforeEvent.call(this, props, moduleId, key, value, index, record);
|
||||
}
|
||||
}
|
||||
|
||||
/*lA7FrGfHlashLvM+HJWGNXPr9oOKTzcij2k2Znrh0rE=*/
|
|
@ -1,9 +1,10 @@
|
|||
/*b31B7ixJwi12Pfc4XUBx2RcOAe5amcgbJkqG8TY35Z4=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 表体编辑后事件
|
||||
* @Date: 2018-04-24 10:38:43
|
||||
* @Last Modified by: mikey.zhaopeng
|
||||
* @Last Modified time: 2024-05-13 11:10:27
|
||||
* @Last Modified by: chaiwx
|
||||
* @Last Modified time: 2023-06-05 16:26:11
|
||||
*/
|
||||
|
||||
import { ajax } from 'nc-lightapp-front';
|
||||
|
@ -19,9 +20,9 @@ const { CARD } = PAGEID;
|
|||
const { FORMID, TABLEID } = PAGEAREA;
|
||||
import headTotalCalRule from '../../../pub/pubrule/headTotalCalRule';
|
||||
import { marAsstUtils } from '../../../../../scmpub/scmpub/pub/tool';
|
||||
let fixAssts = ['cproductorid', 'cprojectid', 'cvendorvid', 'cvendorid'];
|
||||
let fixAssts = [ 'cproductorid', 'cprojectid', 'cvendorvid', 'cvendorid', 'cmffileid' ];
|
||||
// 编辑事件不关注的字段
|
||||
const NOTPRO_FIELDS = ['crowno', 'vrownote'];
|
||||
const NOTPRO_FIELDS = [ 'crowno', 'vrownote' ];
|
||||
export default function bodyAfterEvent(props, moduleId, key, value, rows, i, record) {
|
||||
if (NOTPRO_FIELDS.includes(key)) {
|
||||
return;
|
||||
|
@ -41,7 +42,7 @@ export default function bodyAfterEvent(props, moduleId, key, value, rows, i, rec
|
|||
let freefield = {
|
||||
cvendorid: 'cvendorid',
|
||||
cvendorvid: 'cvendorvid'
|
||||
}
|
||||
};
|
||||
marAsstUtils.afterEdit.call(this, props, null, CARD, moduleId, key, 'cmaterialvid', record, i, freefield);
|
||||
}
|
||||
let data = createBodyAfterEventData(this.props, CARD, FORMID, TABLEID, moduleId, key, rows, i);
|
||||
|
@ -52,25 +53,6 @@ export default function bodyAfterEvent(props, moduleId, key, value, rows, i, rec
|
|||
async: false,
|
||||
success: (res) => {
|
||||
if (res.data && res.data.billCard) {
|
||||
//cyoung 2024年05月13日 10:29:41 本币无税净价四舍五入小数点后两位并补零
|
||||
let bodyrows = res.data.billCard.body[TABLEID].rows
|
||||
bodyrows.forEach((element) => {
|
||||
//本币无水净价
|
||||
let nqtnetprice = element.values.nqtnetprice;
|
||||
if(nqtnetprice && nqtnetprice.value){
|
||||
nqtnetprice.scale = 6;
|
||||
nqtnetprice.value = parseFloat(Number(nqtnetprice.value).toFixed(2));
|
||||
nqtnetprice._display_ = parseFloat(Number(nqtnetprice.value).toFixed(2));
|
||||
}
|
||||
//无税净价
|
||||
// let nqtorignetprice = element.values.nqtorignetprice;
|
||||
// if(nqtorignetprice && nqtorignetprice.value){
|
||||
// nqtorignetprice.scale = 6;
|
||||
// nqtorignetprice.value = parseFloat(Number(nqtorignetprice.value).toFixed(2));
|
||||
// nqtorignetprice._display_ = parseFloat(Number(nqtorignetprice.value).toFixed(2));
|
||||
// }
|
||||
});
|
||||
|
||||
props.form.setAllFormValue({ [FORMID]: res.data.billCard.head[FORMID] }, false);
|
||||
processBillCardBodyEditResult(this.props, TABLEID, res.data, i);
|
||||
// 如果编辑字段影响单价金额算法,则触发表头合计
|
||||
|
@ -80,14 +62,13 @@ export default function bodyAfterEvent(props, moduleId, key, value, rows, i, rec
|
|||
keymaps.set('norigtaxmny', 'ntotalorigmny');
|
||||
keymaps.set('norigsubmny', 'ntotalorigsubmny');
|
||||
keymaps.set('norigdiscount', 'nhvoicedismny');
|
||||
keymaps.set('ntaxmny', 'vdef5');
|
||||
|
||||
headTotalCalRule(this.props, CARD, FORMID, TABLEID, keymaps);
|
||||
}
|
||||
processCardTableAutoAddRow(props, TABLEID, i, {
|
||||
isMuli: rows.length > 1 ? true : false,
|
||||
isAutoAddFunc: isAutoAdd.bind(this, this.props),
|
||||
autoAddFunc: addRowBtnClick.bind(this, this.props)
|
||||
autoAddFunc: addRowBtnClick.bind(this, this.props, true)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -96,3 +77,5 @@ export default function bodyAfterEvent(props, moduleId, key, value, rows, i, rec
|
|||
function isAutoAdd(props) {
|
||||
return true;
|
||||
}
|
||||
|
||||
/*b31B7ixJwi12Pfc4XUBx2RcOAe5amcgbJkqG8TY35Z4=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*ChwtK7xNbiE0T80ETHXkTySkNYb7sbI9JKSb7kPLmfU=*/
|
||||
import { ajax } from 'nc-lightapp-front';
|
||||
import vfreeBeforeEvent from '../../../pub/pubrule/vfreeBeforeEvent';
|
||||
import { PAGEAREA, URL, PAGEID } from '../../const';
|
||||
|
@ -46,7 +47,19 @@ export default async function(props, moduleId, key, value, index, record) {
|
|||
}
|
||||
}
|
||||
|
||||
if (key == 'cmaterialvid') {
|
||||
if (key.indexOf('vbdef') == 0) {
|
||||
// 收货地址
|
||||
let pk_org = props.form.getFormItemsValue(this.formId, 'pk_org').value;
|
||||
props.cardTable.setQueryCondition(TABLEID, {
|
||||
[key]: () => {
|
||||
return {
|
||||
pk_org: pk_org
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
return true;
|
||||
} else if (key == 'cmaterialvid') {
|
||||
// 物料只可参照到服务类,折扣类物料
|
||||
let item = meta[moduleId].items.find((item) => item.attrcode == 'cmaterialvid');
|
||||
|
||||
|
@ -234,20 +247,20 @@ export default async function(props, moduleId, key, value, index, record) {
|
|||
} else if (key == 'ntax') {
|
||||
//汇总显示的对冲发票,税额不可编辑(即不可以做部分对冲)
|
||||
if (this.combineCache.combinvo && this.combineCache.combinvo.bcombinflag) {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
// 已做过费用冲抵,税额不可编辑
|
||||
let bsubunitflag = props.form.getFormItemsValue(this.formId, 'bsubunitflag');
|
||||
if (bsubunitflag && bsubunitflag.value) {
|
||||
// // 已做过费用冲抵,税额不可编辑
|
||||
// let bsubunitflag = props.form.getFormItemsValue(this.formId, 'bsubunitflag');
|
||||
// if (bsubunitflag && bsubunitflag.value) {
|
||||
// return false;
|
||||
// } else {
|
||||
// 传开票申请了,税额不可编辑,税务发票红冲或作废了,可编辑
|
||||
if (!this.invoicestatusForSSC) {
|
||||
return false;
|
||||
} else {
|
||||
// 传开票申请了,税额不可编辑,税务发票红冲或作废了,可编辑
|
||||
if (!this.invoicestatusForSSC) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
// }
|
||||
} else if (key == 'creceiveaddrid') {
|
||||
// 收货地址
|
||||
let creceivecustid = record.values.creceivecustid.value;
|
||||
|
@ -288,13 +301,13 @@ export default async function(props, moduleId, key, value, index, record) {
|
|||
let fopposeflag = props.form.getFormItemsValue(this.formId, 'fopposeflag');
|
||||
if (bsubunitflag && bsubunitflag.value && fopposeflag && fopposeflag.value == '2') {
|
||||
showWarningInfo(null, getLangByResId(this, '4006SALEINVOICE-000096')); /* 国际化处理: 已冲抵的对冲发票不可以修改数量和价税合计*/
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
//汇总显示的对冲发票,数量和价税合计不可改(即不可以做部分对冲)
|
||||
if (this.combineCache.combinvo && this.combineCache.combinvo.bcombinflag) {
|
||||
showWarningInfo(null, getLangByResId(this, '4006SALEINVOICE-000097')); /* 国际化处理: 汇总显示的对冲发票不可以修改数量和价税合计*/
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
} else if (key == 'norigdiscount') {
|
||||
// 已做过费用冲抵的对冲发票,折扣额不可编辑
|
||||
|
@ -305,11 +318,11 @@ export default async function(props, moduleId, key, value, index, record) {
|
|||
}
|
||||
//汇总显示的对冲发票,折扣额不可改(即不可以做部分对冲)
|
||||
if (this.combineCache.combinvo && this.combineCache.combinvo.bcombinflag) {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
let fixAssts = [ 'cproductorid', 'cprojectid', 'cvendorvid' ];
|
||||
let fixAssts = [ 'cproductorid', 'cprojectid', 'cvendorvid', 'cmffileid' ];
|
||||
if (key.indexOf('vfree') == 0 || fixAssts.includes(key)) {
|
||||
let cmaterialvid = record.values.cmaterialvid;
|
||||
// 如果物料为空不可编辑
|
||||
|
@ -325,19 +338,38 @@ export default async function(props, moduleId, key, value, index, record) {
|
|||
areahid: FORMID,
|
||||
areabid: TABLEID,
|
||||
index: index,
|
||||
cmaterialid: 'cmaterialvid'
|
||||
cmaterialid: 'cmaterialvid',
|
||||
rowid: record.rowid
|
||||
};
|
||||
flag = await vfreeBeforeEvent.call(this, props, constance);
|
||||
//
|
||||
let scrcbid = props.cardTable.getValByKeyAndRowId(TABLEID, record.rowid, 'csrcbid');
|
||||
if (scrcbid && scrcbid.value) {
|
||||
flag = false;
|
||||
}
|
||||
}
|
||||
if (flag) {
|
||||
this.props.cardTable.setQueryCondition(PAGEAREA.TABLEID, {
|
||||
[key]: () => {
|
||||
let pk_org = (this.props.form.getFormItemsValue(PAGEAREA.FORMID, 'pk_org') || {}).value;
|
||||
return {
|
||||
pk_org: pk_org
|
||||
};
|
||||
}
|
||||
});
|
||||
if (key === 'cmffileid') {
|
||||
// 配置码需要根据物料过滤
|
||||
this.props.cardTable.setQueryCondition(TABLEID, {
|
||||
[key]: () => {
|
||||
let cmaterialvid = (record.values.cmaterialvid || {}).value;
|
||||
return {
|
||||
cmaterialvid: cmaterialvid
|
||||
};
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.props.cardTable.setQueryCondition(PAGEAREA.TABLEID, {
|
||||
[key]: () => {
|
||||
let pk_org = (this.props.form.getFormItemsValue(PAGEAREA.FORMID, 'pk_org') || {}).value;
|
||||
return {
|
||||
pk_org: pk_org
|
||||
};
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
let freefield = {
|
||||
cvendorid: 'cvendorid',
|
||||
cvendorvid: 'cvendorvid'
|
||||
|
@ -388,3 +420,5 @@ export function changeRateBeforeEvent(key, record, cunitkey) {
|
|||
});
|
||||
});
|
||||
}
|
||||
|
||||
/*ChwtK7xNbiE0T80ETHXkTySkNYb7sbI9JKSb7kPLmfU=*/
|
|
@ -1,9 +1,10 @@
|
|||
/*BAFdiJLVkqxmxJX3rMB6zF/YCrUtru8RzHC9z8HtWsM=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 表头编辑后事件
|
||||
* @Date: 2018-04-24 10:37:19
|
||||
* @Last Modified by: mikey.zhaopeng
|
||||
* @Last Modified time: 2024-04-11 14:04:21
|
||||
* @Last Modified by: zhaoypm
|
||||
* @Last Modified time: 2020-10-21 14:42:30
|
||||
*/
|
||||
import { ajax } from 'nc-lightapp-front';
|
||||
import {
|
||||
|
@ -11,7 +12,6 @@ import {
|
|||
processBillCardHeadEditResult
|
||||
} from '../../../../../scmpub/scmpub/pub/tool/afterEditUtil';
|
||||
import { PAGEID, URL } from '../../const';
|
||||
import bodyAfterEvent from './body_afterEvent';
|
||||
const { CARD } = PAGEID;
|
||||
const { HEADAFTERURL } = URL;
|
||||
|
||||
|
@ -29,17 +29,6 @@ export default function headAfterEvent(props, moduleId, key, value, oldValue, i)
|
|||
props.form.setFormItemsValue(moduleId, { vtrantypecode: { value: i.refcode } });
|
||||
return;
|
||||
}
|
||||
// 20230411 guoxqc销售结算函
|
||||
if (key === 'vdef1') {
|
||||
props.cardTable.setColValue(this.tableId, 'nqtorigtaxprice', { value: '123' });
|
||||
const rows = props.cardTable.getVisibleRows(this.tableId);
|
||||
rows.forEach((item, index) => {
|
||||
debugger
|
||||
bodyAfterEvent.call(this, props, this.tableId, 'nqtorigtaxprice', '123', [{ newvalue: { value: '123' }, oldvalue: { value: '' } }], index, item);
|
||||
});
|
||||
// props.cardTable.setValByKeyAndIndex(this.tableId,0,'nqtorigtaxprice',{value:'123',display:''});
|
||||
return;
|
||||
}
|
||||
let bodyFileds = [
|
||||
'vbdef1',
|
||||
'vbdef2',
|
||||
|
@ -149,20 +138,9 @@ export default function headAfterEvent(props, moduleId, key, value, oldValue, i)
|
|||
success: (res) => {
|
||||
if (res.data && res.data.billCard) {
|
||||
processBillCardHeadEditResult(props, this.formId, this.tableId, res.data);
|
||||
//cyoung 2024年04月11日 11:09:40
|
||||
debugger
|
||||
if (key === 'corigcurrencyid' || key === 'cratetype' || key === 'nexchangerate' || key === 'dratedate') {
|
||||
let nexchangerate = props.form.getFormItemsValue(moduleId, 'nexchangerate').value;
|
||||
if (nexchangerate == null || nexchangerate == '' || nexchangerate == undefined) {
|
||||
return
|
||||
}
|
||||
let ntotalorigmny = props.form.getFormItemsValue(moduleId, 'ntotalorigmny').value;
|
||||
ntotalorigmny = (ntotalorigmny == null || ntotalorigmny == '' || ntotalorigmny == undefined) ? Number(0) : Number(ntotalorigmny)
|
||||
let vdef5 = (parseFloat(nexchangerate) * parseFloat(ntotalorigmny)).toFixed(2)
|
||||
debugger
|
||||
props.form.setFormItemsValue(moduleId, { vdef5: { value: vdef5 } });
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*BAFdiJLVkqxmxJX3rMB6zF/YCrUtru8RzHC9z8HtWsM=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*JW/GII0d7JU5CumqY1a9vapNImv8Xuo/ZOsWpC1ZoBo=*/
|
||||
import vbillcodeBeforeEvent from '../../../pub/pubrule/vbillcodeBeforeEvent';
|
||||
import { URL, PAGEAREA } from '../../const';
|
||||
import { ajax } from 'nc-lightapp-front';
|
||||
|
@ -138,19 +139,6 @@ export default async function(props, moduleId, key, value, record) {
|
|||
} else {
|
||||
return true;
|
||||
}
|
||||
}else if (key == 'vdef1') {// 20230411 guoxqc
|
||||
let cinvoicecustid = props.form.getFormItemsValue(moduleId, 'cinvoicecustid').value;// 客户
|
||||
let meta=props.meta.getMeta();
|
||||
meta[moduleId].items.forEach(item=>{
|
||||
if(item.attrcode==key){
|
||||
item.queryCondition=()=>{
|
||||
return {
|
||||
pk_customer:cinvoicecustid
|
||||
};
|
||||
};
|
||||
}
|
||||
})
|
||||
props.meta.setMeta(meta)
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -237,3 +225,5 @@ function isNull(value) {
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/*JW/GII0d7JU5CumqY1a9vapNImv8Xuo/ZOsWpC1ZoBo=*/
|
|
@ -1,5 +1,8 @@
|
|||
/*YInZLc9/kvMC1mGq3o4LwAszAXwVlsNyvp/9X8WPLW8=*/
|
||||
import afterEvent from './afterEvent';
|
||||
import beforeEvent from './beforeEvent';
|
||||
import batchEvents from './batchEvents';
|
||||
|
||||
export { afterEvent, beforeEvent, batchEvents };
|
||||
|
||||
/*YInZLc9/kvMC1mGq3o4LwAszAXwVlsNyvp/9X8WPLW8=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*y3a/eQFZ7PtzyGh+e43WblppJz0l9U81Qm+KUOoXbao=*/
|
||||
import { URL, PAGEAREA } from '../../const';
|
||||
import { ajax } from 'nc-lightapp-front';
|
||||
const { HEADBEFOREURL } = URL;
|
||||
|
@ -64,3 +65,5 @@ function isBillHasSrc(props) {
|
|||
});
|
||||
return flag;
|
||||
}
|
||||
|
||||
/*y3a/eQFZ7PtzyGh+e43WblppJz0l9U81Qm+KUOoXbao=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*YInZLc9/kvMC1mGq3o4LwAszAXwVlsNyvp/9X8WPLW8=*/
|
||||
import React, { Component } from 'react';
|
||||
|
||||
import { createPage, base, high } from 'nc-lightapp-front';
|
||||
|
@ -124,7 +125,7 @@ class SaleInvoiceCard extends Component {
|
|||
};
|
||||
|
||||
componentWillMount() {
|
||||
initLang(this, [ '4006saleinvoice' ], 'so', initTemplate.bind(this, this.props));
|
||||
initLang(this, ['4006saleinvoice'], 'so', initTemplate.bind(this, this.props));
|
||||
window.onbeforeunload = () => {
|
||||
let status = this.props.form.getFormStatus(this.formId);
|
||||
if (status != SALEINVOICE_CONST.BROWSE) {
|
||||
|
@ -180,7 +181,11 @@ class SaleInvoiceCard extends Component {
|
|||
let result = [];
|
||||
bodys.map((body, index) => {
|
||||
if (body.values['blargessflag'].value) {
|
||||
result.push({ code: [ 'norigtaxmny', 'nglobaltaxmny', 'ngrouptaxmny', 'ntax' ], indexArr: index });
|
||||
result.push({
|
||||
code: ['norigtaxmny', 'nglobaltaxmny', 'ngrouptaxmny', 'ntax', 'ntaxmny', 'norigmny', 'norigdiscount', 'ncaltaxmny', 'nmny', 'ngroupmny', 'nglobalmny', 'nglobaltaxmny', 'nbforigsubmny', 'norigsubmny', 'ndiscount', 'ntotalincomemny', 'ntotalpaymny', 'ntotalopposemny'],
|
||||
//价税合计、本币价税合计、集团本币价税合计、税额、本币价税合计、无税金额、折扣额、计税金额、本币无税金额、集团本币无税金额、全局本币无税金额、全局本币价税合计、冲抵前金额、费用冲抵金额、本币折扣额、累计确认应收金额、累计收款金额、累计对冲金额、
|
||||
indexArr: index
|
||||
});
|
||||
}
|
||||
});
|
||||
return result;
|
||||
|
@ -235,9 +240,9 @@ class SaleInvoiceCard extends Component {
|
|||
let { createModal } = modal;
|
||||
let { showUploader, target } = this.state;
|
||||
let transfer = this.props.getUrlParam('type') == 'transfer';
|
||||
let singletransfer = this.props.getUrlParam('type') == 'singletransfer';
|
||||
const { socket } = this.props;
|
||||
|
||||
debugger
|
||||
|
||||
return (
|
||||
<div className="nc-bill-transferList" style={{ backgroundColor: '#fff' }}>
|
||||
{socket.connectMesg({
|
||||
|
@ -269,9 +274,8 @@ debugger
|
|||
</div>
|
||||
</NCDiv>
|
||||
</NCAffix>
|
||||
|
||||
<div className="nc-bill-transferList-content">
|
||||
{transfer ? (
|
||||
{transfer || singletransfer ? (
|
||||
createTransferList({
|
||||
dataSource: TRANSFERCACAHEKEY,
|
||||
//表格组件id
|
||||
|
@ -292,11 +296,12 @@ debugger
|
|||
<div className="transferList-content-right nc-bill-card">
|
||||
<div className="nc-bill-form-area">
|
||||
{createForm(this.formId, {
|
||||
expandArr: [ LIST ],
|
||||
expandArr: [LIST],
|
||||
onAfterEvent: afterEvent.bind(this),
|
||||
onBeforeEvent: beforeEvent.bind(this)
|
||||
})}
|
||||
</div>
|
||||
|
||||
<div className="nc-bill-table-area">
|
||||
{createCardTable(this.tableId, {
|
||||
tableHead: this.getTableHead.bind(this, this.type),
|
||||
|
@ -312,8 +317,9 @@ debugger
|
|||
modelDelRow: delLineForCardEdit.bind(this),
|
||||
modelAddRow: addLineForCardEdit.bind(this),
|
||||
noTotalRows: this.calTotal,
|
||||
adaptionHeight: true
|
||||
adaptionHeight: true,
|
||||
// modelFooter: this.modelFooter.bind(this)
|
||||
onBatchSelected: rowButtonController.bind(this)
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -386,7 +392,6 @@ debugger
|
|||
let { showUploader, target } = this.state;
|
||||
const { createCardPagination } = cardPagination;
|
||||
const { socket } = this.props;
|
||||
debugger
|
||||
return (
|
||||
<div className="nc-bill-card" id="scm-so-saleinvoice-card">
|
||||
{socket.connectMesg({
|
||||
|
@ -461,7 +466,8 @@ debugger
|
|||
noTotalRows: this.calTotal,
|
||||
adaptionHeight: true,
|
||||
modelAddRowBefore: checkAddLine.bind(this),
|
||||
modelDelRowBefore: checkDeleteLine.bind(this)
|
||||
modelDelRowBefore: checkDeleteLine.bind(this),
|
||||
onBatchSelected: rowButtonController.bind(this)
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -527,10 +533,11 @@ debugger
|
|||
// 主方法
|
||||
render() {
|
||||
let transfer = this.props.getUrlParam('type') == 'transfer';
|
||||
let singletransfer = this.props.getUrlParam('type') == 'singletransfer';
|
||||
let { createModal } = this.props.modal;
|
||||
return (
|
||||
<div>
|
||||
{transfer ? this.getTransferView() : this.getNormalView()}
|
||||
{transfer || singletransfer ? this.getTransferView() : this.getNormalView()}
|
||||
{createModal('linkmodal', {
|
||||
content: '',
|
||||
rightBtnName: ''
|
||||
|
@ -569,7 +576,9 @@ SaleInvoiceCard = createPage({
|
|||
headcode: FORMID,
|
||||
bodycode: { [TABLEID]: 'cardTable' }
|
||||
},
|
||||
orderOfHotKey: [ FORMID, TABLEID ]
|
||||
orderOfHotKey: [FORMID, TABLEID]
|
||||
})(SaleInvoiceCard);
|
||||
|
||||
export default SaleInvoiceCard;
|
||||
|
||||
/*YInZLc9/kvMC1mGq3o4LwAszAXwVlsNyvp/9X8WPLW8=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*1BnsDOfmtSi8ZBXVncQ5HPxt1EwcKD63zn0Fhft3NX6xEbRE9klAtqnRyhdXygSR*/
|
||||
/*
|
||||
* @Author: wangceb
|
||||
* @PageInfo: 卡片粘贴到末尾按钮事件
|
||||
|
@ -41,3 +42,5 @@ export default function buttonClick(props, record, index) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*1BnsDOfmtSi8ZBXVncQ5HPxt1EwcKD63zn0Fhft3NX6xEbRE9klAtqnRyhdXygSR*/
|
|
@ -1,3 +1,4 @@
|
|||
/*pImLxuOsfC04tgFWieVitNP50JiiMxAGxMvNFjc0GHQ=*/
|
||||
/*
|
||||
* @Author: wangceb
|
||||
* @PageInfo: 卡片复制行按钮事件
|
||||
|
@ -15,3 +16,5 @@ export default function buttonClick(props) {
|
|||
rowButtonController.call(this);
|
||||
|
||||
}
|
||||
|
||||
/*pImLxuOsfC04tgFWieVitNP50JiiMxAGxMvNFjc0GHQ=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*sj7u2lqSgUdBFf1f30rnPPFBcFdRgDm1PAhzQmMrOBI=*/
|
||||
import { SaleInvoiceBodyItem, BTNCODE, BTN } from '../../const';
|
||||
import { rowCopyPasteUtils } from '../../../../../scmpub/scmpub/pub/tool/cardTableTools';
|
||||
const { BTNCARD } = BTN;
|
||||
|
@ -10,3 +11,5 @@ export default function buttonClick(props, record, index) {
|
|||
rowCopyPasteUtils.copyRows.call(this, props, this.tableId, BTNCARD.ROW.EDIT, BTNCARD.ROW.PASTE);
|
||||
}
|
||||
}
|
||||
|
||||
/*sj7u2lqSgUdBFf1f30rnPPFBcFdRgDm1PAhzQmMrOBI=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*1BxuGDdX+0thCsXQ217T+0m007RxxNvNVAiwxeHXRzw=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 卡片操作列按钮事件
|
||||
|
@ -43,3 +44,5 @@ export default function clickBtn(props, record, index) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*1BxuGDdX+0thCsXQ217T+0m007RxxNvNVAiwxeHXRzw=*/
|
|
@ -1,10 +1,12 @@
|
|||
/*6Vy7v4c6fhn5tekuOcso6Ljq5Fp2o6brH45zBzPC7qY=*/
|
||||
import { PAGEAREA, PAGEID, URL } from '../../const';
|
||||
const { TOCARDURL, OPPOSEADDURL } = URL;
|
||||
const { CARD } = PAGEID;
|
||||
import { ajax } from 'nc-lightapp-front';
|
||||
import buttonController from '../viewController/buttonController';
|
||||
import buttonController from '../viewController/buttonController';
|
||||
import { setEditEnable } from '../viewController/cardEditController';
|
||||
export default function() {
|
||||
import { changeUrlParam } from '../../../../../scmpub/scmpub/pub/cache';
|
||||
export default function () {
|
||||
let data = {
|
||||
pk: this.props.getUrlParam('id'),
|
||||
pageId: this.pageId,
|
||||
|
@ -26,7 +28,7 @@ export default function() {
|
|||
}
|
||||
if (res.data.card.body && res.data.card.body[_this.tableId]) {
|
||||
// 第四个参数为false说明不缓存当前数据,取消可恢复到之前参数为true时所设置的数据
|
||||
_this.props.cardTable.setTableData(_this.tableId, res.data.card.body[_this.tableId],null,false);
|
||||
_this.props.cardTable.setTableData(_this.tableId, res.data.card.body[_this.tableId], null, false);
|
||||
}
|
||||
}
|
||||
if (res.data.combinvo) {
|
||||
|
@ -43,17 +45,18 @@ export default function() {
|
|||
billCode: res.data.card.head[this.formId].rows[0].values.vbillcode.value || ''
|
||||
//修改单据号---非必传
|
||||
});
|
||||
|
||||
|
||||
_this.props.form.setFormStatus(this.formId, 'add');
|
||||
_this.props.cardTable.setStatus(this.tableId, 'edit');
|
||||
|
||||
|
||||
_this.props.pushTo(TOCARDURL, {
|
||||
pagecode: CARD,
|
||||
status: 'edit',
|
||||
from: _this.props.getUrlParam('from'),
|
||||
id: _this.props.getUrlParam('id')
|
||||
});
|
||||
|
||||
// _this.props.pushTo(TOCARDURL, {
|
||||
// pagecode: CARD,
|
||||
// status: 'edit',
|
||||
// from: _this.props.getUrlParam('from'),
|
||||
// id: _this.props.getUrlParam('id')
|
||||
// });
|
||||
changeUrlParam(_this.props, { status: 'edit' });
|
||||
// 默认没有传开票申请
|
||||
this.invoicestatusForSSC = true;
|
||||
// 控制按钮显示隐藏
|
||||
|
@ -65,3 +68,5 @@ export default function() {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*6Vy7v4c6fhn5tekuOcso6Ljq5Fp2o6brH45zBzPC7qY=*/
|
|
@ -1,5 +1,7 @@
|
|||
/*X0npQghSKwTid3uQ99nzg1lU6JL+D2YuHpPhJ6KLkbY=*/
|
||||
export default function getTranferData(type, isInitoutreg) {
|
||||
let ids = null;
|
||||
|
||||
if (type == 'transfer') {
|
||||
let transferIds = this.props.transferTable.getTransferTableMultiSelectedId();
|
||||
let orderhids = [];
|
||||
|
@ -39,8 +41,6 @@ export default function getTranferData(type, isInitoutreg) {
|
|||
}
|
||||
}
|
||||
ids = [
|
||||
//
|
||||
{ cbilltype: 'SSCIVA', hidts: orderhids, bidts: orderbids },
|
||||
{ cbilltype: '30', hidts: orderhids, bidts: orderbids },
|
||||
{ cbilltype: '4C', hidts: outhids, bidts: outbids },
|
||||
{ cbilltype: '4330', hidts: inithids, bidts: initbids }
|
||||
|
@ -87,3 +87,5 @@ export default function getTranferData(type, isInitoutreg) {
|
|||
}
|
||||
return ids;
|
||||
}
|
||||
|
||||
/*X0npQghSKwTid3uQ99nzg1lU6JL+D2YuHpPhJ6KLkbY=*/
|
|
@ -1,5 +1,8 @@
|
|||
/*YInZLc9/kvMC1mGq3o4LwAszAXwVlsNyvp/9X8WPLW8=*/
|
||||
import initTemplate from './initTemplate';
|
||||
|
||||
import transfer from './transfer';
|
||||
import {initEditEnble} from '../viewController/cardEditController'
|
||||
export { initTemplate, transfer, initEditEnble };
|
||||
|
||||
/*YInZLc9/kvMC1mGq3o4LwAszAXwVlsNyvp/9X8WPLW8=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*tF8Re0Ur4FGy9OqbyI5LncZ40pqRgHDuLrsGZyXRBn0=*/
|
||||
import transfer from './transfer';
|
||||
import getOpposeAddData from './getOpposeAddData';
|
||||
import { setEditEnable } from '../viewController/cardEditController';
|
||||
|
@ -72,3 +73,5 @@ function initData(props) {
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
/*tF8Re0Ur4FGy9OqbyI5LncZ40pqRgHDuLrsGZyXRBn0=*/
|
|
@ -1,9 +1,10 @@
|
|||
/*pmFWCFu5nhKkBzYmrkBakWzip2hzDP7N/Dymq7crENo=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 卡片初始化模板
|
||||
* @Date: 2018-04-19 10:34:51
|
||||
* @Last Modified by: liulux
|
||||
* @Last Modified time: 2022-05-06 09:25:54
|
||||
* @Last Modified by: zhangllb
|
||||
* @Last Modified time: 2023-07-10 10:18:14
|
||||
*/
|
||||
|
||||
import { PAGEID, PAGEAREA, BTN, BTNAREA, BTNCODE, SaleInvoiceBodyItem, URL } from '../../const';
|
||||
|
@ -18,6 +19,7 @@ import { showErrorInfo, showSuccessInfo } from '../../../../../scmpub/scmpub/pub
|
|||
import { getLangByResId } from '../../../../../scmpub/scmpub/pub/tool/multiLangUtil';
|
||||
import commonSearch_BtnClick from '../btnClicks/commonSearch_BtnClick';
|
||||
import { columnSortUtils } from '../../../../../scmpub/scmpub/pub/tool/columnSortUtils';
|
||||
import { batchSetHyperlinkForTableFields } from '../../../../../scmpub/scmpub/pub/tool/hyperlinkUtil';
|
||||
|
||||
const { FORMID, TABLEID } = PAGEAREA;
|
||||
const { CARD } = PAGEID;
|
||||
|
@ -48,37 +50,10 @@ export default function(props) {
|
|||
if (data.button) {
|
||||
let button = data.button;
|
||||
let pageMsgType = this.props.getUrlParam('scene');
|
||||
// approvesce 审批中心 审批中心的时候不去循环开票按钮注册名称
|
||||
// approvesce 审批中心 审批中心的时候不去循环开票按钮注册编码
|
||||
if ((pageMsgType && pageMsgType != 'approvesce') || !pageMsgType) {
|
||||
let assitGroup = button.filter((assitgroupitem) => {
|
||||
return assitgroupitem.key == 'AssitGroup';
|
||||
});
|
||||
let astActionGroup_invoice;
|
||||
if (assitGroup && assitGroup[0]) {
|
||||
astActionGroup_invoice = assitGroup[0].children;
|
||||
}
|
||||
let invoicebtn;
|
||||
if (astActionGroup_invoice && astActionGroup_invoice[0]) {
|
||||
invoicebtn = astActionGroup_invoice.filter((invoicebtns) => {
|
||||
return invoicebtns.key == 'AstActionGroup_invoice';
|
||||
});
|
||||
}
|
||||
|
||||
let invoicebtnchild;
|
||||
if (invoicebtn && invoicebtn[0]) {
|
||||
invoicebtnchild = invoicebtn[0].children;
|
||||
}
|
||||
let makeInvinvoices;
|
||||
if (invoicebtnchild && invoicebtnchild[0]) {
|
||||
makeInvinvoices = invoicebtnchild.filter((makeInv_invoice) => {
|
||||
return makeInv_invoice.key.startsWith('MakeInv_');
|
||||
});
|
||||
}
|
||||
if (makeInvinvoices && makeInvinvoices[0]) {
|
||||
for (let item of makeInvinvoices) {
|
||||
this.makeInvInvoice.push(item.key);
|
||||
}
|
||||
}
|
||||
//循环取开票按钮放到makeInvInvoice中
|
||||
createMakeInvArray.call(this, button);
|
||||
}
|
||||
|
||||
mofifierBtn.call(this, props, button);
|
||||
|
@ -95,8 +70,6 @@ function mofifierBtn(props, button) {
|
|||
authorization: 'authorization-text'
|
||||
},
|
||||
onChange: (info) => {
|
||||
if (info.file.status !== 'uploading') {
|
||||
}
|
||||
if (info.file.status === 'done') {
|
||||
if (info.file.response.error) {
|
||||
showErrorInfo(
|
||||
|
@ -108,7 +81,6 @@ function mofifierBtn(props, button) {
|
|||
showSuccessInfo(getLangByResId(this, '4006SALEINVOICE-000041')); /* 国际化处理: 导入成功!*/
|
||||
// 导入税票号后更新表头金税票号
|
||||
commonSearch_BtnClick.call(this, [ 'vgoldtaxcode', 'ts' ]);
|
||||
} else if (info.file.status === 'error') {
|
||||
}
|
||||
}
|
||||
}; /* 这里的config只是示例,具体的参数说明详见tinper-bee中Upload组件文档 */
|
||||
|
@ -121,6 +93,21 @@ function mofifierBtn(props, button) {
|
|||
}
|
||||
|
||||
function modifierMeta(props, meta) {
|
||||
// 来源单据号
|
||||
let linkmap = new Map([
|
||||
[
|
||||
'vsrccode',
|
||||
{
|
||||
billtypeField: 'vsrctype',
|
||||
pkField: 'csrcid'
|
||||
}
|
||||
]
|
||||
]);
|
||||
let linkConfig = {
|
||||
moduleId: TABLEID,
|
||||
linkmap: linkmap
|
||||
};
|
||||
batchSetHyperlinkForTableFields.call(this, props, meta, linkConfig);
|
||||
let status = props.getUrlParam('status');
|
||||
initEditEnble.call(this, meta);
|
||||
meta[FORMID].status = status;
|
||||
|
@ -170,3 +157,17 @@ function modifierMeta(props, meta) {
|
|||
columnSortUtils.numberSort(meta, TABLEID, SaleInvoiceBodyItem.CROWNO);
|
||||
return meta;
|
||||
}
|
||||
|
||||
//客户可以任意位置配置开票按钮,开票按钮都以MakeInv_开头
|
||||
function createMakeInvArray(button) {
|
||||
for (let i = 0; i < button.length; i++) {
|
||||
if (button[i].key.startsWith('MakeInv_')) {
|
||||
this.makeInvInvoice.push(button[i].key);
|
||||
}
|
||||
if (button[i].children) {
|
||||
createMakeInvArray.call(this, button[i].children);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*pmFWCFu5nhKkBzYmrkBakWzip2hzDP7N/Dymq7crENo=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*R8CWpcubIIDo7ifMEzWQLlmkyZcssXbuumpK3FQb13U=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 卡片操作列按钮事件
|
||||
|
@ -20,3 +21,5 @@ export default function clickBtn(props, record, index) {
|
|||
|
||||
RownoUtils.setRowNo(props, this.tableId, 'crowno');
|
||||
}
|
||||
|
||||
/*R8CWpcubIIDo7ifMEzWQLlmkyZcssXbuumpK3FQb13U=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*tYnMVd9p7Xg2uKAziFweogoDJCaL+LFP/LPJOLCMbs8=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 列表操作列展开按钮事件
|
||||
|
@ -17,3 +18,5 @@ export default function clickBtn(props, record, index) {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
/*tYnMVd9p7Xg2uKAziFweogoDJCaL+LFP/LPJOLCMbs8=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*66qDWq02dkx0odI85Ul49NoD1cryUL52waycktq2zWM=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 卡片粘贴行按钮事件
|
||||
|
@ -49,3 +50,5 @@ export default function(props, record, index) {
|
|||
|
||||
|
||||
}
|
||||
|
||||
/*66qDWq02dkx0odI85Ul49NoD1cryUL52waycktq2zWM=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*roZ3/j0EXAzsRZFlHU8MFhfWr7sC025wartiJoHRHNM=*/
|
||||
/*
|
||||
* @Author: zhangjyp
|
||||
* @PageInfo: 列表操作列按钮事件
|
||||
|
@ -45,3 +46,5 @@ export default function clickBtn(props, key, record, index) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/*roZ3/j0EXAzsRZFlHU8MFhfWr7sC025wartiJoHRHNM=*/
|
|
@ -1,3 +1,4 @@
|
|||
/*se8mmyUP0H/+BxI3Sip0clnwAZjmrY+Hc7hlQA6fuG0=*/
|
||||
import { SaleInvoiceHeadItem, SaleInvoiceBodyItem, SALEINVOICE_CONST, PAGEAREA } from '../../const';
|
||||
|
||||
function setRowDefaultValue(props) {
|
||||
|
@ -30,3 +31,5 @@ function getHeadValue(props, key) {
|
|||
}
|
||||
|
||||
export { setRowDefaultValue };
|
||||
|
||||
/*se8mmyUP0H/+BxI3Sip0clnwAZjmrY+Hc7hlQA6fuG0=*/
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue