gl/verify
This commit is contained in:
parent
f2889ff133
commit
e39bfcf3b3
|
@ -1,4 +1,4 @@
|
|||
/*pbHnlLNCpsWdx+f6QNDErXUJ9hVUkCPC2/wKKBoJVMo=*/
|
||||
/*jdNRuZuduINgBy4HapEa4fqmBMzA+9W4I6NnfWBJr/o=*/
|
||||
import {Component} from "react"
|
||||
import createScript from './uapRefer'
|
||||
import './index.less'
|
||||
|
@ -46,4 +46,4 @@ export default class ReferLoader extends Component{
|
|||
}
|
||||
}
|
||||
|
||||
/*pbHnlLNCpsWdx+f6QNDErXUJ9hVUkCPC2/wKKBoJVMo=*/
|
||||
/*jdNRuZuduINgBy4HapEa4fqmBMzA+9W4I6NnfWBJr/o=*/
|
|
@ -1,4 +1,4 @@
|
|||
/*qe7Cb23wLVjc4iA6ZXxPWhPesV7QTTnD1jl8QxtdT5E=*/
|
||||
/*v2IABo5jWerB7tSekIAuCBahZRp8UmHcEUHzxFNTcbY=*/
|
||||
//@Author: lijun
|
||||
export function handleLoad(refcode, code) {
|
||||
let Item = window[refcode].default;
|
||||
|
@ -38,4 +38,4 @@ export default function createScript(src, code) {
|
|||
}
|
||||
}
|
||||
|
||||
/*qe7Cb23wLVjc4iA6ZXxPWhPesV7QTTnD1jl8QxtdT5E=*/
|
||||
/*v2IABo5jWerB7tSekIAuCBahZRp8UmHcEUHzxFNTcbY=*/
|
|
@ -0,0 +1,31 @@
|
|||
/*5h9AGTkI3XFVuhb+2N4cB6aO0WggNUJaKOrIq5tsXlk=*/
|
||||
import React, { Component } from "react";
|
||||
import {ajax ,toast} from "nc-lightapp-front";
|
||||
export default function checkMustItem(dataObj){
|
||||
let str=''
|
||||
let flag=true;
|
||||
for(let k in dataObj){
|
||||
if(dataObj[k]&&typeof(dataObj[k])=='object'){
|
||||
if(dataObj[k].constructor===Array||(dataObj[k] instanceof Array)){//数组
|
||||
if(dataObj[k].length>0&&dataObj[k][0]){
|
||||
if(dataObj[k][0].isMustItem){
|
||||
if(!dataObj[k][0].value){
|
||||
str+=dataObj[k][0].itemName+',';
|
||||
flag=false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}else{
|
||||
if(dataObj[k].isMustItem){
|
||||
if(!dataObj[k].value){
|
||||
str+=dataObj[k].itemName+',';
|
||||
flag=false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
let backData={'info':str,'flag':flag};
|
||||
return backData;
|
||||
}
|
||||
/*5h9AGTkI3XFVuhb+2N4cB6aO0WggNUJaKOrIq5tsXlk=*/
|
|
@ -1,4 +1,4 @@
|
|||
/*V0t6O+8MUdvy3gvH3QGja+kh/2tF6E4kJ2cSXOQKdys=*/
|
||||
/*2kXcp/qiu4YtfhhD41m83EgYg+zWtVt+sTb9air6koo=*/
|
||||
//获取界面高度
|
||||
function getTableHeight(height){
|
||||
let defaultHeight=0
|
||||
|
@ -70,4 +70,4 @@ function accDiv(arg1,arg2){
|
|||
// }
|
||||
}
|
||||
export {accAdd,Subtr,accMul,accDiv,getTableHeight}
|
||||
/*V0t6O+8MUdvy3gvH3QGja+kh/2tF6E4kJ2cSXOQKdys=*/
|
||||
/*2kXcp/qiu4YtfhhD41m83EgYg+zWtVt+sTb9air6koo=*/
|
|
@ -0,0 +1,31 @@
|
|||
/*hpNf6SGXlFt0G5njW4sDg5jZqN+sVW5kQ0vhymvwsJM=*/
|
||||
|
||||
//只提取汉字
|
||||
function GetChinese(strValue) {
|
||||
if (strValue != null && strValue != "") {
|
||||
var reg = /[\u4e00-\u9fa5]/g;
|
||||
if(strValue.match(reg)){
|
||||
return strValue.match(reg).join("");
|
||||
}else{
|
||||
return "";
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
return "";
|
||||
}
|
||||
//去掉汉字
|
||||
function RemoveChinese(strValue) {
|
||||
if (strValue != null && strValue != "") {
|
||||
var reg = /[\u4e00-\u9fa5]/g;
|
||||
if(strValue.match(reg)){
|
||||
return strValue.replace(reg, "");
|
||||
}else{
|
||||
return strValue;
|
||||
}
|
||||
}
|
||||
else
|
||||
return "";
|
||||
}
|
||||
export { GetChinese, RemoveChinese}
|
||||
/*hpNf6SGXlFt0G5njW4sDg5jZqN+sVW5kQ0vhymvwsJM=*/
|
|
@ -0,0 +1,201 @@
|
|||
/*9IvejywmIOnnbJQ0iXrTRmL10FVkbTDylOks+Ux0Hdk=*/
|
||||
// 用于生成凭证、联查凭证
|
||||
import { cardCache,cacheTools,ajax } from 'nc-lightapp-front';
|
||||
const { setDefData } = cardCache;
|
||||
import {
|
||||
dataSource,dataSourceDetail,
|
||||
voucher_link,voucher_gen,
|
||||
listCacheKey,cardCacheKey,linkToCacheTool
|
||||
} from '../components/constJSON';
|
||||
|
||||
// param:
|
||||
//{
|
||||
// voucher:voucher, //完整的凭证vo [vo1,vo2]/vo
|
||||
// pk_voucher: '...',//联查时,凭证id [pk1,pk2]/pk
|
||||
// titlename:'凭证生成',
|
||||
// backUrl:'/',
|
||||
// backAppCode:backAppCode,
|
||||
// backPageCode:backPageCode
|
||||
// }
|
||||
|
||||
export function openToVoucher(_this,param){
|
||||
if (Array.isArray(param.pk_voucher)&¶m.pk_voucher.length>1) {
|
||||
let voucherapp = voucherRelatedApp(voucher_link,"Y");
|
||||
let appcode = voucherapp.appcode;
|
||||
let pagecode=voucherapp.pagecode;
|
||||
//cacheTools.set('checkedData', { id: data }); 旧的
|
||||
cacheTools.set(linkToCacheTool, { id: param.pk_voucher });
|
||||
_this.props.openTo('/gl/gl_voucher/pages/main/index.html#/', {
|
||||
status: 'browse',
|
||||
appcode: appcode,
|
||||
c: appcode,
|
||||
//pagekey: 'link',
|
||||
scene : '_LinkVouchar',
|
||||
n: param.titlename,/* 国际化处理: 凭证联查*/
|
||||
ifshowQuery: true,
|
||||
pagecode:pagecode
|
||||
});
|
||||
} else {
|
||||
let voucherapp = voucherRelatedApp(voucher_link,"N");
|
||||
let appcode = voucherapp.appcode;
|
||||
let pagecode=voucherapp.pagecode;
|
||||
let pk_voucher=param.pk_voucher;
|
||||
if(Array.isArray(param.pk_voucher)){
|
||||
pk_voucher=param.pk_voucher[0]
|
||||
}
|
||||
_this.props.openTo('/gl/gl_voucher/pages/main/index.html#Welcome',
|
||||
{
|
||||
appcode: appcode,
|
||||
c: appcode,
|
||||
id: pk_voucher,
|
||||
//pagekey: 'link',
|
||||
scene : '_LinkVouchar',
|
||||
n: param.titlename,/* 国际化处理: 凭证联查*/
|
||||
status: 'browse',
|
||||
backflag: 'noback',
|
||||
pagecode:pagecode
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export function pushToGenVoucher(_this,param){
|
||||
if (param.voucher.gl_voucher) {
|
||||
let voucherapp = voucherRelatedApp(voucher_gen,"Y");
|
||||
let appcode = voucherapp.appcode;
|
||||
let pagecode=voucherapp.pagecode;
|
||||
//多张凭证到列表
|
||||
setDefData(listCacheKey, dataSource, param.voucher);
|
||||
_this.props.pushTo('/list', {
|
||||
appcode: appcode,
|
||||
pagecode:pagecode,
|
||||
ifshowQuery: true, //是否显示查询区,true不显示,false显示,默认显示
|
||||
n: param.titlename,/* 国际化处理: 凭证生成*/
|
||||
//pagekey: 'generate',
|
||||
backUrl: param.backUrl?param.backUrl:'/',
|
||||
backAppCode:param.backAppCode,
|
||||
backPageCode:param.backPageCode,
|
||||
});
|
||||
} else {
|
||||
let voucherapp = voucherRelatedApp(voucher_gen,"N");
|
||||
let appcode = voucherapp.appcode;
|
||||
let pagecode=voucherapp.pagecode;
|
||||
//单张凭证到卡片
|
||||
setDefData(cardCacheKey, dataSourceDetail, param.voucher);
|
||||
_this.props.pushTo('/Welcome', {
|
||||
status: 'edit',
|
||||
appcode: appcode,
|
||||
pagecode:pagecode,
|
||||
//pagekey: 'generate',
|
||||
ifshowQuery: true,
|
||||
n: param.titlename,/* 国际化处理: 凭证生成*/
|
||||
backflag: 'back',
|
||||
backAppCode: param.backAppCode,
|
||||
backPageCode: param.backPageCode
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export function pushToLinkVoucher(_this, param) {
|
||||
let urlParam = {
|
||||
ifshowQuery: true,
|
||||
n: param.titlename,
|
||||
//pagekey: 'link',
|
||||
scene : '_LinkVouchar',
|
||||
status: 'browse',
|
||||
backUrl: param.backUrl,
|
||||
backAppCode: param.backAppCode,
|
||||
backPageCode: param.backPageCode,
|
||||
}
|
||||
if(param.voucher){
|
||||
//预览(未保存的凭证联查)
|
||||
if(Array.isArray(param.voucher)&¶m.voucher.length>1){
|
||||
let voucherapp = voucherRelatedApp(voucher_link,"Y");
|
||||
urlParam.appcode=voucherapp.appcode;
|
||||
urlParam.pagecode=voucherapp.pagecode;
|
||||
setDefData(listCacheKey, dataSource, param.voucher);
|
||||
_this.props.pushTo('/list', urlParam);
|
||||
}else{
|
||||
let voucherapp = voucherRelatedApp(voucher_link,"N");
|
||||
urlParam.appcode=voucherapp.appcode;
|
||||
urlParam.pagecode=voucherapp.pagecode;
|
||||
setDefData(cardCacheKey, dataSourceDetail, param.voucher);
|
||||
urlParam.backflag='back';
|
||||
_this.props.pushTo('/Welcome', urlParam);
|
||||
}
|
||||
}else{
|
||||
//联查
|
||||
setDefData(listCacheKey, dataSource, param.pk_voucher);
|
||||
if(Array.isArray(param.pk_voucher)&¶m.pk_voucher.length>1){
|
||||
let voucherapp = voucherRelatedApp(voucher_link,"Y");
|
||||
urlParam.appcode=voucherapp.appcode;
|
||||
urlParam.pagecode=voucherapp.pagecode;
|
||||
_this.props.pushTo('/list', urlParam);
|
||||
}else{
|
||||
let voucherapp = voucherRelatedApp(voucher_link,"N");
|
||||
urlParam.appcode=voucherapp.appcode;
|
||||
urlParam.pagecode=voucherapp.pagecode;
|
||||
let pk_voucher = param.pk_voucher;
|
||||
if (Array.isArray(param.pk_voucher)) {
|
||||
pk_voucher = param.pk_voucher[0]
|
||||
}
|
||||
urlParam.backflag = 'back';
|
||||
urlParam.id = pk_voucher;
|
||||
_this.props.pushTo('/Welcome', urlParam);
|
||||
}
|
||||
}
|
||||
// setDefData(listCacheKey, dataSource, param.voucher);
|
||||
// //setDefData('checkedData', dataSource, checkedDatas); 旧的
|
||||
// if(Array.isArray(param.voucher)&¶m.voucher.length>1){
|
||||
// _this.props.pushTo('/list', {
|
||||
// appcode: appcode,
|
||||
// ifshowQuery: true,
|
||||
// n: param.titlename,
|
||||
// pagekey: 'link',
|
||||
// status: 'browse',
|
||||
// backUrl: param.backUrl,
|
||||
// backAppCode: param.backAppCode,
|
||||
// backPageCode: param.backPageCode,
|
||||
// })
|
||||
// }else{
|
||||
// let pk_voucher=param.voucher;
|
||||
// if(Array.isArray(param.voucher)){
|
||||
// pk_voucher=param.voucher[0]
|
||||
// }
|
||||
// _this.props.pushTo('/Welcome', {
|
||||
// appcode: appcode,
|
||||
// n: param.titlename,
|
||||
// pagekey: 'link',
|
||||
// status: 'browse',
|
||||
// backUrl: param.backUrl,
|
||||
// backAppCode: param.backAppCode,
|
||||
// backPageCode: param.backPageCode,
|
||||
// id: pk_voucher,
|
||||
// backflag: 'back' //是否有返回按钮
|
||||
// })
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
export function voucherRelatedApp(params,isList) {
|
||||
let url = '/nccloud/gl/voucher/voucherRelatedApp.do';
|
||||
let data = {
|
||||
sence: params,
|
||||
billtype: 'C0',
|
||||
isList:isList
|
||||
}
|
||||
let appcode = '';
|
||||
ajax({
|
||||
url,
|
||||
data: data,
|
||||
async: false,
|
||||
success: function (response) {
|
||||
if (response.success) {
|
||||
appcode = response.data
|
||||
}
|
||||
}
|
||||
});
|
||||
return appcode
|
||||
}
|
||||
/*9IvejywmIOnnbJQ0iXrTRmL10FVkbTDylOks+Ux0Hdk=*/
|
|
@ -1,4 +1,4 @@
|
|||
/*Hox80GOutN/pUp2k0nyH861scLRfHyHzSgfPI2DIdEc=*/
|
||||
/*Hox80GOutN/pUp2k0nyH8+I/Txt1Cm8C7PfHItrlkAc=*/
|
||||
import React, { Component } from 'react';
|
||||
import {high,base,ajax } from 'nc-lightapp-front';
|
||||
const { NCCheckbox} = base;
|
||||
|
@ -53,4 +53,4 @@ export default class CheckboxItem extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
/*Hox80GOutN/pUp2k0nyH861scLRfHyHzSgfPI2DIdEc=*/
|
||||
/*Hox80GOutN/pUp2k0nyH8+I/Txt1Cm8C7PfHItrlkAc=*/
|
|
@ -1,4 +1,4 @@
|
|||
/*ZwhnxtbmMIFQdTGWRFw0ZThGQkArkyVg412vYzmfcz8=*/
|
||||
/*ZwhnxtbmMIFQdTGWRFw0ZQJm+CI+FRumcuoWbnT6/rk=*/
|
||||
import React, { Component } from 'react';
|
||||
// import { FormControl } from 'tinper-bee';
|
||||
//import moment from 'moment';
|
||||
|
@ -45,4 +45,4 @@ export default class DateTimePickerItem extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
/*ZwhnxtbmMIFQdTGWRFw0ZThGQkArkyVg412vYzmfcz8=*/
|
||||
/*ZwhnxtbmMIFQdTGWRFw0ZQJm+CI+FRumcuoWbnT6/rk=*/
|
|
@ -1,4 +1,4 @@
|
|||
/*q5swdQBW4kixP8YwCgl1xctRoTc50st2mtrpo18OPH4=*/
|
||||
/*q5swdQBW4kixP8YwCgl1xZdWpGLJzY4HNH686iuKKLw=*/
|
||||
import React, { Component } from 'react';
|
||||
import {high,base } from 'nc-lightapp-front';
|
||||
const { NCFormControl: FormControl} = base;
|
||||
|
@ -48,4 +48,4 @@ export default class InputItem extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
/*q5swdQBW4kixP8YwCgl1xctRoTc50st2mtrpo18OPH4=*/
|
||||
/*q5swdQBW4kixP8YwCgl1xZdWpGLJzY4HNH686iuKKLw=*/
|
|
@ -1,4 +1,4 @@
|
|||
/*lWljEt/boTCPQObCipjdzpw/3/dMp232LGr7t6daujg=*/
|
||||
/*lWljEt/boTCPQObCipjdzv3AG+Fpwbtz56UHXeOtZpc=*/
|
||||
import React, { Component } from 'react';
|
||||
import {high,base } from 'nc-lightapp-front';
|
||||
const { NCNumber} = base;
|
||||
|
@ -44,4 +44,4 @@ export default class NcnumberItem extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
/*lWljEt/boTCPQObCipjdzpw/3/dMp232LGr7t6daujg=*/
|
||||
/*lWljEt/boTCPQObCipjdzv3AG+Fpwbtz56UHXeOtZpc=*/
|
|
@ -1,4 +1,4 @@
|
|||
/*e//4VDm0w5wzjGCnbao1XIbzbQwZcLiG3IQQMgEX2cA=*/
|
||||
/*e//4VDm0w5wzjGCnbao1XC2JhVuBN9iythKeLPGZdgg=*/
|
||||
import React, { Component } from 'react';
|
||||
//import { Radio } from 'tinper-bee'
|
||||
import {high,base,ajax } from 'nc-lightapp-front';
|
||||
|
@ -51,4 +51,4 @@ export default class RadioItem extends Component {
|
|||
|
||||
}
|
||||
|
||||
/*e//4VDm0w5wzjGCnbao1XIbzbQwZcLiG3IQQMgEX2cA=*/
|
||||
/*e//4VDm0w5wzjGCnbao1XC2JhVuBN9iythKeLPGZdgg=*/
|
|
@ -1,4 +1,4 @@
|
|||
/*w7rpdJZtU5aQYWV/d5agLqXFj/iM5rGF7XtK4GHWjEg=*/
|
||||
/*w7rpdJZtU5aQYWV/d5agLnnaUG7vZKdiV4T3HnzKNcA=*/
|
||||
import React, { Component } from 'react';
|
||||
//import Refer from 'components/Refer';
|
||||
import {high } from 'nc-lightapp-front';
|
||||
|
@ -75,4 +75,4 @@ export default class ReferItem extends Component {
|
|||
|
||||
}
|
||||
|
||||
/*w7rpdJZtU5aQYWV/d5agLqXFj/iM5rGF7XtK4GHWjEg=*/
|
||||
/*w7rpdJZtU5aQYWV/d5agLnnaUG7vZKdiV4T3HnzKNcA=*/
|
|
@ -1,4 +1,4 @@
|
|||
/*/b5PGsYdRV84Wk0rw0ORzmwBVBFclQ0CN3s0Ut201Z4=*/
|
||||
/*/b5PGsYdRV84Wk0rw0ORzo2RLaclWEJDU5xCBIw58jc=*/
|
||||
import React, { Component } from 'react';
|
||||
import {high,base,ajax } from 'nc-lightapp-front';
|
||||
import {FISelect} from '../base'
|
||||
|
@ -46,4 +46,4 @@ export default class SelectItem extends Component {
|
|||
|
||||
}
|
||||
|
||||
/*/b5PGsYdRV84Wk0rw0ORzmwBVBFclQ0CN3s0Ut201Z4=*/
|
||||
/*/b5PGsYdRV84Wk0rw0ORzo2RLaclWEJDU5xCBIw58jc=*/
|
|
@ -1,4 +1,4 @@
|
|||
/*Q/4a2B1rr9OMPSfLMBCHU6CXtx3S6l6M/1XdDUsCWAs=*/
|
||||
/*Q/4a2B1rr9OMPSfLMBCHUy+y7ZgvPOWfsYjIfCqE0bQ=*/
|
||||
import React, { Component } from 'react';
|
||||
import {high,base } from 'nc-lightapp-front';
|
||||
const { NCSwitch: Switch} = base;
|
||||
|
@ -40,4 +40,4 @@ export default class SwitchItem extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
/*Q/4a2B1rr9OMPSfLMBCHU6CXtx3S6l6M/1XdDUsCWAs=*/
|
||||
/*Q/4a2B1rr9OMPSfLMBCHUy+y7ZgvPOWfsYjIfCqE0bQ=*/
|
|
@ -1,4 +1,4 @@
|
|||
/*pbHnlLNCpsWdx+f6QNDErXUJ9hVUkCPC2/wKKBoJVMo=*/
|
||||
/*jdNRuZuduINgBy4HapEa4fqmBMzA+9W4I6NnfWBJr/o=*/
|
||||
import RadioItem from './RadioItem';
|
||||
import CheckboxItem from './CheckboxItem';
|
||||
import ReferItem from './ReferItem';
|
||||
|
@ -18,4 +18,4 @@ export {
|
|||
SwitchItem,NcnumberItem
|
||||
}
|
||||
|
||||
/*pbHnlLNCpsWdx+f6QNDErXUJ9hVUkCPC2/wKKBoJVMo=*/
|
||||
/*jdNRuZuduINgBy4HapEa4fqmBMzA+9W4I6NnfWBJr/o=*/
|
|
@ -1,4 +1,4 @@
|
|||
/*UF6cC+eLdDMpGYLSN/5VM6eGm33qKRQqyHy/Kfz/dXI=*/
|
||||
/*UF6cC+eLdDMpGYLSN/5VM18ynDiY6pLGeNObwSMU8Pk=*/
|
||||
/**
|
||||
* 全局store, 在整个App的生命周期生存
|
||||
*/
|
||||
|
@ -34,4 +34,4 @@ class GlobalStore {
|
|||
|
||||
export default new GlobalStore();
|
||||
|
||||
/*UF6cC+eLdDMpGYLSN/5VM6eGm33qKRQqyHy/Kfz/dXI=*/
|
||||
/*UF6cC+eLdDMpGYLSN/5VM18ynDiY6pLGeNObwSMU8Pk=*/
|
|
@ -1,4 +1,4 @@
|
|||
/*pbHnlLNCpsWdx+f6QNDErXUJ9hVUkCPC2/wKKBoJVMo=*/
|
||||
/*jdNRuZuduINgBy4HapEa4fqmBMzA+9W4I6NnfWBJr/o=*/
|
||||
/*
|
||||
* @Description: 标题区公共组件
|
||||
* @Author: llixxm
|
||||
|
@ -79,4 +79,4 @@ class HeaderArea extends Component {
|
|||
}
|
||||
HeaderArea = createPage({})(HeaderArea)
|
||||
export default HeaderArea
|
||||
/*pbHnlLNCpsWdx+f6QNDErXUJ9hVUkCPC2/wKKBoJVMo=*/
|
||||
/*jdNRuZuduINgBy4HapEa4fqmBMzA+9W4I6NnfWBJr/o=*/
|
|
@ -1,4 +1,4 @@
|
|||
/*cm64LS4DKuk7pEVrnYq+AXc7izcNNL0kUebVgZvM1Tk=*/
|
||||
/*cm64LS4DKuk7pEVrnYq+AbxHYkT9HnyCJiW2FGYQht0=*/
|
||||
import React, { Component } from 'react';
|
||||
import {base} from 'nc-lightapp-front'
|
||||
const { NCTooltip, NCCheckbox } = base;
|
||||
|
@ -35,4 +35,4 @@ class FICheckbox extends Component {
|
|||
}
|
||||
|
||||
export {FICheckbox}
|
||||
/*cm64LS4DKuk7pEVrnYq+AXc7izcNNL0kUebVgZvM1Tk=*/
|
||||
/*cm64LS4DKuk7pEVrnYq+AbxHYkT9HnyCJiW2FGYQht0=*/
|
|
@ -1,4 +1,4 @@
|
|||
/*SWGbFO3it5zBXcJ7KP8I2qCkfUSIIxXOsVxFC93oXag=*/
|
||||
/*fIURA82Kuf8vrsZx7NuOnRdf35TbpxS3vreGbpQl04w=*/
|
||||
import {base} from 'nc-lightapp-front'
|
||||
const {NCSelect} = base;
|
||||
const NCOption = NCSelect.NCOption;
|
||||
|
@ -27,4 +27,4 @@ function FIOption(nextProps){
|
|||
FISelect.FIOption = FIOption;
|
||||
|
||||
export {FISelect};
|
||||
/*SWGbFO3it5zBXcJ7KP8I2qCkfUSIIxXOsVxFC93oXag=*/
|
||||
/*fIURA82Kuf8vrsZx7NuOnRdf35TbpxS3vreGbpQl04w=*/
|
|
@ -1,6 +1,6 @@
|
|||
/*pbHnlLNCpsWdx+f6QNDErXUJ9hVUkCPC2/wKKBoJVMo=*/
|
||||
/*jdNRuZuduINgBy4HapEa4fqmBMzA+9W4I6NnfWBJr/o=*/
|
||||
import {FISelect} from './FISelect';
|
||||
import {FICheckbox} from './FICheckbox';
|
||||
|
||||
export {FISelect, FICheckbox};
|
||||
/*pbHnlLNCpsWdx+f6QNDErXUJ9hVUkCPC2/wKKBoJVMo=*/
|
||||
/*jdNRuZuduINgBy4HapEa4fqmBMzA+9W4I6NnfWBJr/o=*/
|
|
@ -0,0 +1,88 @@
|
|||
/*pnHz4pTkta0Q7UuvaPE0J8JjHFxNPVPhAfCud1ywgAc=*/
|
||||
const formId='head';
|
||||
const tableId = 'gl_voucher';
|
||||
|
||||
const searchId = '20021005query';
|
||||
|
||||
const dataSource = 'gl.gl_voucher.voucher_list.jumper';
|
||||
|
||||
const dataSourceCheck='gl.gl_voucher.voucher_list.checkArray';
|
||||
|
||||
const dataSourceTable = 'gl.gl_voucher.voucher_list.table';
|
||||
|
||||
const dataSourceCoord = 'gl.gl_voucher.voucher.coorder';
|
||||
|
||||
const dataSourceDetail = 'gl.gl_voucher.voucher.detail';
|
||||
|
||||
const dataSourceNormal = 'gl.gl_voucher.list.normal';
|
||||
|
||||
const dataSourceNormalQuery = 'gl.gl_voucher.list.normalquery';
|
||||
const dataSourceHeightQuery = 'gl.gl_voucher.list.heightquery';
|
||||
const dataSourceValue = 'gl.gl_voucher.list.normalValue';
|
||||
const query_accountingbook='gl.gl_voucher.query_accountingbook';
|
||||
|
||||
const dataSourceHeight = 'gl.gl_voucher.list.height';
|
||||
|
||||
const dataSourceNumber = 'gl.gl_voucher.list.number';
|
||||
|
||||
const oldSource = 'gl.gl_voucher.voucher.pages';
|
||||
|
||||
const successStatus = 'gl.gl_voucher.voucher.saveStatus';
|
||||
|
||||
const dataSourceAppCode = 'gl.gl_voucher.voucher.appcode'; //生成凭appcpde
|
||||
const dataSourcePageCode = 'gl.gl_voucher.voucher.pagecode'; //pagecode
|
||||
const currInfoDataSource="amountConvert";
|
||||
|
||||
const dataSourceSaveNext= 'gl.gl_voucher.voucher.savenext';
|
||||
|
||||
const periodDataSource='gl.gl_voucher.voucher.periodVoucher';
|
||||
|
||||
const mutilangJson_list='gl_voucher.list.mutilangJson';//多语
|
||||
const mutilangJson_card='gl_voucher.card.mutilangJson';//多语
|
||||
|
||||
const mergerequest_card='gl_voucher.card.mergerequest';
|
||||
|
||||
const dataSourcetableclick='gl_voucher.list.dataSourcetableclick';
|
||||
|
||||
const voucher_link='4';
|
||||
const voucher_gen='6';
|
||||
|
||||
const listCacheKey='gl_voucher';
|
||||
const linkToCacheTool='checkedData_gl';
|
||||
const cardCacheKey='voucher_detail';
|
||||
|
||||
export {
|
||||
formId,
|
||||
tableId,
|
||||
searchId,
|
||||
dataSource,
|
||||
dataSourceTable,
|
||||
dataSourceCoord,
|
||||
dataSourceNormal,
|
||||
dataSourceNormalQuery,
|
||||
dataSourceHeightQuery,
|
||||
dataSourceValue,
|
||||
dataSourceHeight,
|
||||
dataSourceDetail,
|
||||
dataSourceSaveNext,
|
||||
dataSourceNumber,
|
||||
oldSource,
|
||||
successStatus,
|
||||
dataSourceAppCode,
|
||||
dataSourcePageCode,
|
||||
currInfoDataSource,
|
||||
dataSourceCheck,
|
||||
periodDataSource,
|
||||
mutilangJson_list,
|
||||
mutilangJson_card,
|
||||
mergerequest_card,
|
||||
dataSourcetableclick,
|
||||
voucher_link,
|
||||
voucher_gen,
|
||||
listCacheKey,
|
||||
cardCacheKey,
|
||||
linkToCacheTool,
|
||||
query_accountingbook
|
||||
};
|
||||
|
||||
/*pnHz4pTkta0Q7UuvaPE0J8JjHFxNPVPhAfCud1ywgAc=*/
|
|
@ -0,0 +1,356 @@
|
|||
/*WiPJY+eG2IYTEF/kqeJo3MJLDK7cJ99T75h5viPb4wc=*/
|
||||
import React, { Component } from 'react';
|
||||
import {high,base,ajax,toast} from 'nc-lightapp-front';
|
||||
const { Refer} = high;
|
||||
import createScript from '../uapRefer.js';
|
||||
import ReferLoader from '../../ReferLoader';
|
||||
const { NCFormControl: FormControl, NCDatePicker: DatePicker, NCButton: Button, NCRadio: Radio, NCBreadcrumb: Breadcrumb,
|
||||
NCRow: Row, NCCol: Col, NCTree: Tree, NCIcon: Icon, NCLoading: Loading, NCTable: Table, NCSelect: Select,
|
||||
NCCheckbox: Checkbox, NCNumber, AutoComplete, NCDropdown: Dropdown, NCPanel: Panel,NCModal:Modal,NCForm
|
||||
} = base;
|
||||
//import '../index.less';
|
||||
const { NCFormItem:FormItem } = NCForm;
|
||||
const format = 'YYYY-MM-DD';
|
||||
const timeFormat = 'YYYY-MM-DD HH:mm:ss';
|
||||
import {SelectItem} from '../FormItems';
|
||||
import {InputItem} from '../../../public/components/FormItems/index'
|
||||
import {GetChinese, RemoveChinese} from '../../common/stringDeal.js';
|
||||
|
||||
export default function drawingAssidData(self,text, record, index,showDisableData){
|
||||
let { assData,childAssData } = self.state;
|
||||
let defaultValue = [];
|
||||
if (assData[index]["checkvaluename"]) {
|
||||
assData[index]["checkvaluename"].split(",").map((item, _index) => {
|
||||
defaultValue[_index] = { refname: item, refpk: "" };
|
||||
});
|
||||
assData[index]["pk_Checkvalue"].split(",").map((item, _index) => {
|
||||
defaultValue[_index].refpk = item;
|
||||
});
|
||||
} else {
|
||||
defaultValue = [{ refname: "", refpk: "" }];
|
||||
}
|
||||
if(record.refnodename){
|
||||
let referUrl= record.refnodename+'.js';
|
||||
let config={
|
||||
"pk_org": childAssData.pk_org,
|
||||
"pk_unit": childAssData.pk_org,/* 业务单元 pk 用来进行 科目交叉校验规则过滤 */
|
||||
"pk_defdoclist":record.classid,
|
||||
"pk_accountingbook": childAssData.pk_accountingbook,
|
||||
"date": childAssData.prepareddate,
|
||||
"pk_accasoa": childAssData.pk_accasoa,
|
||||
"classid": record.classid,
|
||||
"assvo": JSON.stringify(assData),
|
||||
"isDataPowerEnable": 'Y',
|
||||
"DataPowerOperationCode" : 'fi'
|
||||
}
|
||||
if(!self.state[record.pk_accassitem]){
|
||||
{createScript.call(self,referUrl,record.pk_accassitem)}
|
||||
return <div />
|
||||
}else{
|
||||
if(record.classid=='b26fa3cb-4087-4027-a3b6-c83ab2a086a9'||record.classid=='40d39c26-a2b6-4f16-a018-45664cac1a1f'){//部门,人员
|
||||
return (
|
||||
<ReferLoader
|
||||
fieldid='checkvaluename'
|
||||
tag={record.refnodename}
|
||||
refcode={referUrl}
|
||||
value={defaultValue}
|
||||
isShowUnit={true}
|
||||
unitProps={{
|
||||
refType: 'tree',
|
||||
refName: self.state.json['publiccomponents-000011'],/* 国际化处理: 业务单元*/
|
||||
refCode: 'uapbd.refer.org.BusinessUnitTreeRef',
|
||||
rootNode:{refname:self.state.json['publiccomponents-000011'],refpk:'root'},/* 国际化处理: 业务单元*/
|
||||
placeholder:self.state.json['publiccomponents-000011'],/* 国际化处理: 业务单元*/
|
||||
queryTreeUrl: '/nccloud/uapbd/org/BusinessUnitTreeRef.do',
|
||||
treeConfig:{name:[self.state.json['publiccomponents-000012'], self.state.json['publiccomponents-000013']],code: ['refcode', 'refname']},/* 国际化处理: 编码,名称*/
|
||||
isMultiSelectedEnabled: false,
|
||||
//unitProps:unitConf,
|
||||
isShowUnit:false
|
||||
}}
|
||||
unitCondition={{
|
||||
pk_financeorg:childAssData.pk_org,
|
||||
'TreeRefActionExt':'nccloud.web.gl.ref.OrgRelationFilterRefSqlBuilder'
|
||||
}}
|
||||
isMultiSelectedEnabled={true}
|
||||
isShowDisabledData={showDisableData}
|
||||
unitValueIsNeeded={false}
|
||||
isShowDimission={true}
|
||||
queryCondition={(obj) => {
|
||||
if(obj){
|
||||
if(obj.refType=='grid'){
|
||||
config.GridRefActionExt='nccloud.web.gl.ref.AccAssRuleCtrlSqlBuilder';
|
||||
}else if(obj.refType=='tree'){
|
||||
config.TreeRefActionExt='nccloud.web.gl.ref.AccAssRuleCtrlSqlBuilder';
|
||||
}else if(obj.refType=='gridTree'){
|
||||
config.GridRefActionExt='nccloud.web.gl.ref.AccAssRuleCtrlSqlBuilder';
|
||||
}
|
||||
}
|
||||
if(record.classid == '40d39c26-a2b6-4f16-a018-45664cac1a1f'){
|
||||
//显示离职人员
|
||||
config.isShowDimission=true;
|
||||
}
|
||||
if(record.classid&&record.classid.length==20){//classid的长度大于20的话过滤条件再加一个pk_defdoclist
|
||||
return config
|
||||
}else{
|
||||
config.busifuncode="all";
|
||||
return config
|
||||
}
|
||||
}}
|
||||
onChange={(v) => {
|
||||
let { assData } = self.state;
|
||||
let originData = self.findByKey(record.key, assData);
|
||||
let refnameArr = [], refpkArr = [], refcodeArr = [];
|
||||
if (originData) {
|
||||
v.map((arr, index) => {
|
||||
refnameArr.push(arr.refname);
|
||||
refpkArr.push(arr.refpk);
|
||||
refcodeArr.push(arr.refcode);
|
||||
|
||||
})
|
||||
originData.checkvaluename = (v.length > 0) ? refnameArr.join() : null;
|
||||
originData.pk_Checkvalue = (v.length > 0) ? refpkArr.join() : null;
|
||||
originData.checkvaluecode = (v.length > 0) ? refcodeArr.join() : null;
|
||||
}
|
||||
childAssData.assData = assData;
|
||||
self.setState({
|
||||
assData, childAssData
|
||||
})
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}else{
|
||||
return (
|
||||
<ReferLoader
|
||||
fieldid='checkvaluename'
|
||||
tag={record.refnodename}
|
||||
refcode={referUrl}
|
||||
value={defaultValue}
|
||||
isMultiSelectedEnabled={true}
|
||||
isShowDisabledData={showDisableData}
|
||||
queryCondition={(obj) => {
|
||||
if(obj){
|
||||
if(obj.refType=='grid'){
|
||||
config.GridRefActionExt='nccloud.web.gl.ref.AccAssRuleCtrlSqlBuilder';
|
||||
}else if(obj.refType=='tree'){
|
||||
config.TreeRefActionExt='nccloud.web.gl.ref.AccAssRuleCtrlSqlBuilder';
|
||||
}else if(obj.refType=='gridTree'){
|
||||
config.GridRefActionExt='nccloud.web.gl.ref.AccAssRuleCtrlSqlBuilder';
|
||||
}
|
||||
}
|
||||
return config
|
||||
}}
|
||||
onChange={(v)=>{
|
||||
let { assData } = self.state;
|
||||
let originData = self.findByKey(record.key, assData);
|
||||
let refnameArr = [], refpkArr = [], refcodeArr = [];
|
||||
if (originData) {
|
||||
v.map((arr, index) => {
|
||||
refnameArr.push(arr.refname);
|
||||
refpkArr.push(arr.refpk);
|
||||
refcodeArr.push(arr.refcode);
|
||||
|
||||
})
|
||||
originData.checkvaluename = (v.length > 0) ? refnameArr.join() : null;
|
||||
originData.pk_Checkvalue = (v.length > 0) ? refpkArr.join() : null;
|
||||
originData.checkvaluecode = (v.length > 0) ? refcodeArr.join() : null;
|
||||
}
|
||||
childAssData.assData = assData;
|
||||
self.setState({
|
||||
assData, childAssData
|
||||
})
|
||||
}}
|
||||
/>)
|
||||
|
||||
}
|
||||
}
|
||||
}else{//不是参照的话要区分日期、字符、数值
|
||||
if(record.classid=='BS000010000100001033'){//日期
|
||||
return(
|
||||
<DatePicker
|
||||
fieldid='checkvaluename'
|
||||
type="customer"
|
||||
value={defaultValue[0].refname}
|
||||
onChange={(v) => {
|
||||
let { assData } = self.state;
|
||||
let originData = self.findByKey(record.key, assData);
|
||||
if (originData) {
|
||||
let assArr = [];
|
||||
assArr.push(v);
|
||||
originData.checkvaluename = v?assArr.join():null;
|
||||
originData.pk_Checkvalue = v?assArr.join():null;
|
||||
originData.checkvaluecode = v?assArr.join():null;
|
||||
}
|
||||
childAssData.assData = assData;
|
||||
self.setState({
|
||||
assData, childAssData
|
||||
})
|
||||
}}
|
||||
|
||||
/>
|
||||
)
|
||||
}else if(record.classid=='BS000010000100001034'){//日期时间
|
||||
return(
|
||||
<DatePicker
|
||||
fieldid='checkvaluename'
|
||||
showTime={true}
|
||||
format={timeFormat}
|
||||
type="customer"
|
||||
value={defaultValue[0].refname}
|
||||
onChange={(v) => {
|
||||
let { assData } = self.state;
|
||||
let originData = self.findByKey(record.key, assData);
|
||||
if (originData) {
|
||||
let assArr = [];
|
||||
assArr.push(v);
|
||||
originData.checkvaluename = v?assArr.join():null;
|
||||
originData.pk_Checkvalue = v?assArr.join():null;
|
||||
originData.checkvaluecode = v?assArr.join():null;
|
||||
}
|
||||
childAssData.assData = assData;
|
||||
self.setState({
|
||||
assData, childAssData
|
||||
})
|
||||
}}
|
||||
|
||||
/>
|
||||
)
|
||||
}else if(record.classid=='BS000010000100001031' ||record.classid=='BS000010000100001004'){//数值
|
||||
return(
|
||||
<NCNumber
|
||||
fieldid='checkvaluename'
|
||||
scale={Number(record.digits?record.digits:'0')}
|
||||
value={defaultValue[0].refname}
|
||||
maxlength={Number(record.inputlength)+Number(record.digits?record.digits:'0')}
|
||||
placeholder={self.state.json['publiccomponents-000004']}/* 国际化处理: 请输入数字*/
|
||||
onChange={(v)=>{
|
||||
if(v.indexOf('.')!=-1){
|
||||
if(v&&v.slice(0,v.indexOf('.')).length>Number(record.inputlength)){
|
||||
toast({content:self.state.json['publiccomponents-000148']+record.inputlength,color:'warning'});//输入的数字长度不能超过用户设置的长度
|
||||
v=v.slice(0,record.inputlength);
|
||||
}
|
||||
}else{
|
||||
if(v&&v.length>Number(record.inputlength)){
|
||||
toast({content:self.state.json['publiccomponents-000148']+record.inputlength,color:'warning'});//输入的数字长度不能超过用户设置的长度
|
||||
v=v.slice(0,record.inputlength);
|
||||
}
|
||||
}
|
||||
let { assData } =self.state;
|
||||
let originData = self.findByKey(record.key, assData);
|
||||
if (originData) {
|
||||
let assArr = [];
|
||||
assArr.push(v);
|
||||
originData.checkvaluename = v?assArr.join():null;
|
||||
originData.pk_Checkvalue = v?assArr.join():null;
|
||||
originData.checkvaluecode = v?assArr.join():null;
|
||||
}
|
||||
childAssData.assData = assData;
|
||||
self.setState({
|
||||
assData, childAssData
|
||||
})
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}else if(record.classid=='BS000010000100001032'){//布尔
|
||||
return(
|
||||
<FormItem
|
||||
inline={true}
|
||||
// showMast={false}
|
||||
labelXs={2}
|
||||
labelSm={2}
|
||||
labelMd={2}
|
||||
xs={10}
|
||||
md={10}
|
||||
sm={10}
|
||||
// labelName={item.itemName}
|
||||
isRequire={true}
|
||||
method="change"
|
||||
>
|
||||
<SelectItem
|
||||
name={record.checktypecode}
|
||||
fieldid='checkvaluename'
|
||||
defaultValue={defaultValue[0].refname}
|
||||
items = {
|
||||
() => {
|
||||
return ([{
|
||||
label: self.state.json['publiccomponents-000005'],/* 国际化处理: 是*/
|
||||
value: 'Y'
|
||||
}, {
|
||||
label: self.state.json['publiccomponents-000006'],/* 国际化处理: 否*/
|
||||
value: 'N'
|
||||
}])
|
||||
}
|
||||
}
|
||||
onChange={(v)=>{
|
||||
let { assData } =self.state;
|
||||
let originData = self.findByKey(record.key, assData);
|
||||
if (originData) {
|
||||
let assArr = [];
|
||||
assArr.push(v);
|
||||
originData.checkvaluename = v?assArr.join():null;
|
||||
originData.pk_Checkvalue = v?assArr.join():null;
|
||||
originData.checkvaluecode = v?assArr.join():null;
|
||||
}
|
||||
childAssData.assData = assData;
|
||||
self.setState({
|
||||
assData, childAssData
|
||||
})
|
||||
}}
|
||||
/>
|
||||
</FormItem>
|
||||
)
|
||||
}else{//字符
|
||||
return(
|
||||
// <FormControl
|
||||
// value={defaultValue?defaultValue.refname:defaultValue.refname}
|
||||
// onChange={(v) => {
|
||||
// if(v&&v.length>0){
|
||||
// if(GetChinese(v).length>0&&2*(GetChinese(v).length)>Number(record.inputlength)){
|
||||
// v=v.slice(0,Number(record.inputlength/2));
|
||||
// }else if(GetChinese(v).length>0&&2*(GetChinese(v).length)+RemoveChinese(v).length>Number(record.inputlength)){
|
||||
// toast({content:self.state.json['publiccomponents-000148']+record.inputlength,color:'warning'});//输入的数字长度不能超过用户设置的长度
|
||||
// v= RemoveChinese(v);
|
||||
// }else if(RemoveChinese(v).length>Number(record.inputlength)){
|
||||
// toast({content:self.state.json['publiccomponents-000148']+record.inputlength,color:'warning'});//输入的数字长度不能超过用户设置的长度
|
||||
// v=v.slice(0,Number(record.inputlength));
|
||||
// }
|
||||
// }
|
||||
// let { assData } =self.state;
|
||||
// let originData = self.findByKey(record.key, assData);
|
||||
// if (originData) {
|
||||
// originData.checkvaluename = v;
|
||||
// originData.pk_Checkvalue =v;
|
||||
// originData.checkvaluecode=v;
|
||||
// }
|
||||
// childAssData.assData=assData;
|
||||
// self.setState({
|
||||
// assData,childAssData
|
||||
// })
|
||||
// }}
|
||||
// />
|
||||
<FormControl
|
||||
fieldid='checkvaluename'
|
||||
defaultValue={defaultValue.refname}
|
||||
maxlength={record && record.inputlength || 10}
|
||||
onChange={(v)=>{
|
||||
let { assData } =self.state;
|
||||
let originData = self.findByKey(record.key, assData);
|
||||
if (originData) {
|
||||
let assArr = [];
|
||||
assArr.push(v);
|
||||
originData.checkvaluename = v?assArr.join():null;
|
||||
originData.pk_Checkvalue = v?assArr.join():null;
|
||||
originData.checkvaluecode = v?assArr.join():null;
|
||||
}
|
||||
childAssData.assData = assData;
|
||||
self.setState({
|
||||
assData, childAssData
|
||||
})
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/*WiPJY+eG2IYTEF/kqeJo3MJLDK7cJ99T75h5viPb4wc=*/
|
|
@ -0,0 +1,226 @@
|
|||
/*jdNRuZuduINgBy4HapEa4fqmBMzA+9W4I6NnfWBJr/o=*/
|
||||
import React, { Component } from 'react';
|
||||
import { base, ajax, getMultiLang } from 'nc-lightapp-front';
|
||||
const { NCTable: Table, NCCheckbox: Checkbox,NCDiv } = base;
|
||||
import assidDbCheck from './assidDbCheck.js';
|
||||
import './index.less';
|
||||
const defaultProps12 = {
|
||||
prefixCls: "bee-table",
|
||||
multiSelect: {
|
||||
type: "checkbox",
|
||||
param: "key"
|
||||
}
|
||||
};
|
||||
// export default class AssidModal extends Component {
|
||||
class AssidModal extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
json: {},
|
||||
showModal: false,
|
||||
isShowUnit: false,//是否显示业务单元
|
||||
assData: this.props.pretentAssData.assData || [],//辅助核算信息
|
||||
childAssData: this.props.pretentAssData.childAssData||[],//接受父组件传过来的参数
|
||||
loadData: [],//查询模板加载数据
|
||||
listItem: {},//模板数据对应值
|
||||
checkedAll: this.props.pretentAssData.checkedAll || [],//默认全选中
|
||||
SelectedAssData: [],//选中的数据
|
||||
checkedArray: this.props.pretentAssData.checkedArray || [],
|
||||
assidData: {}, //key=assid,value=assData
|
||||
assitemData: {} //key=pk_accasoa+prepareddate,value=assitems
|
||||
};
|
||||
}
|
||||
componentWillMount() {}
|
||||
//确定 过滤勾选的数据
|
||||
// confirm=()=>{
|
||||
// let self=this;
|
||||
// let { SelectedAssData,checkedArray,listItem,assData,childAssData } =self.state;
|
||||
// SelectedAssData=[];//清空
|
||||
// let url = '/nccloud/gl/voucher/queryAssId.do';
|
||||
// for(var i = 0; i < checkedArray.length; i++){
|
||||
// if(checkedArray[i]==true){
|
||||
// SelectedAssData.push(assData[i]);
|
||||
// }
|
||||
// }
|
||||
// let sendData={};
|
||||
// let assid='',assname='';
|
||||
// if(SelectedAssData.length>0){
|
||||
// let parm={"ass":assData,"pk_accountingbook":childAssData.pk_accountingbook};
|
||||
// ajax({
|
||||
// url:url,
|
||||
// data:parm,
|
||||
// async:false,
|
||||
// success:function(response){
|
||||
|
||||
// let { data }=response;
|
||||
// if(data){
|
||||
// assid = data.assid;
|
||||
// assname=data.assname?data.assname:'';
|
||||
// sendData={
|
||||
// data:SelectedAssData,
|
||||
// assid:assid,
|
||||
// assname:assname
|
||||
// }
|
||||
// self.props.onConfirm(sendData);
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// } else{
|
||||
// sendData={
|
||||
// data:SelectedAssData,
|
||||
// assid:assid,
|
||||
// assname:assname
|
||||
// }
|
||||
// self.props.onConfirm(sendData);
|
||||
// }
|
||||
// }
|
||||
|
||||
//全选
|
||||
onAllCheckChange = () => {
|
||||
let { pretentAssData } = this.props;
|
||||
let { checkedAll, checkedArray } = pretentAssData.$_this.state;
|
||||
for (var i = 0; i < checkedArray.length; i++) {
|
||||
checkedArray[i] = !checkedAll;
|
||||
}
|
||||
checkedAll = !checkedAll;
|
||||
$_this.setState({
|
||||
checkedAll, checkedArray
|
||||
})
|
||||
|
||||
};
|
||||
//单选
|
||||
onCheckboxChange = (text, record, index) => {
|
||||
let { pretentAssData } = this.props;
|
||||
let { checkedAll, checkedArray } = pretentAssData.$_this.state;
|
||||
let allFlag = false;
|
||||
checkedArray[index] = !checkedArray[index];
|
||||
for (var i = 0; i < checkedArray.length; i++) {
|
||||
if (!checkedArray[i]) {
|
||||
allFlag = false;
|
||||
break;
|
||||
} else {
|
||||
allFlag = true;
|
||||
}
|
||||
}
|
||||
checkedAll = allFlag;
|
||||
$_this.setState({
|
||||
checkedAll, checkedArray
|
||||
})
|
||||
};
|
||||
//添加复选框
|
||||
renderColumnsMultiSelect(columns) {
|
||||
let { pretentAssData } = this.props;
|
||||
let { checkedAll, checkedArray } = pretentAssData.$_this.state;
|
||||
const { multiSelect } = this.props;
|
||||
let indeterminate_bool = false;
|
||||
if (multiSelect && multiSelect.type === "checkbox") {
|
||||
let i = checkedArray.length;
|
||||
while (i--) {
|
||||
if (checkedArray[i]) {
|
||||
indeterminate_bool = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
let defaultColumns = [
|
||||
{
|
||||
title: <div fieldid="firstcol">{(
|
||||
<Checkbox
|
||||
className="table-checkbox"
|
||||
checked={checkedAll}
|
||||
indeterminate={indeterminate_bool && !checkedAll}
|
||||
onChange={this.onAllCheckChange}
|
||||
/>
|
||||
)}</div>,
|
||||
key: "checkbox",
|
||||
attrcode: 'checkbox',
|
||||
dataIndex: "checkbox",
|
||||
width: "60px",
|
||||
render: (text, record, index) => {
|
||||
return (<div fieldid="firstcol">
|
||||
<Checkbox
|
||||
className="table-checkbox"
|
||||
checked={checkedArray[index]}
|
||||
onChange={this.onCheckboxChange.bind(this, text, record, index)}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
];
|
||||
columns = defaultColumns.concat(columns);
|
||||
}
|
||||
return columns;
|
||||
}
|
||||
|
||||
render() {
|
||||
let{pretentAssData}=this.props;
|
||||
let {assData,$_this} =pretentAssData;
|
||||
let columnsldad=[];
|
||||
let { json } = $_this.state
|
||||
let showDisableData = true;
|
||||
if (this.props.hasOwnProperty('showDisableData')) {
|
||||
if (this.props.showDisableData != 'show') {
|
||||
showDisableData = false;
|
||||
}
|
||||
}
|
||||
let columns10 = [
|
||||
// {
|
||||
// title: json['publiccomponents-000001'],/* 国际化处理: 核算类型编码*/
|
||||
// dataIndex: "checktypecode",
|
||||
// key: "checktypecode",
|
||||
// width: '100',
|
||||
// render: (text, record, index) => {
|
||||
// return <span>{record.checktypecode}</span>;
|
||||
// }
|
||||
// },
|
||||
{
|
||||
title: (<div fieldid="checktypename">{ json['publiccomponents-000002']}</div>),/* 国际化处理: 核算类型名称*/
|
||||
dataIndex: "checktypename",
|
||||
key: "checktypename",
|
||||
width: "200",
|
||||
render: (text, record, index) => {
|
||||
return <div fieldid="checktypename">{record.checktypename}</div>;
|
||||
}
|
||||
},
|
||||
{
|
||||
title: (<div fieldid="checkvaluename">{ json['publiccomponents-000003']}</div>),/* 国际化处理: 核算内容*/
|
||||
dataIndex: "checkvaluename",
|
||||
key: "checkvaluename",
|
||||
width: "200",
|
||||
render: (text, record, index) => {
|
||||
return (assidDbCheck($_this, text, record, index, showDisableData, json))
|
||||
}
|
||||
}
|
||||
];
|
||||
if (pretentAssData.checkboxShow) {//复选框显示true
|
||||
columnsldad = $_this.renderColumnsMultiSelect(columns10);
|
||||
} else {
|
||||
columnsldad = columns10;
|
||||
}
|
||||
|
||||
const emptyFunc = () => <span>{json['publiccomponents-000007']}!</span>/* 国际化处理: 这里没有数据*/
|
||||
return (
|
||||
<NCDiv fieldid="assData" areaCode={NCDiv.config.TableCom} className="getAssDatas">
|
||||
<Table
|
||||
isDrag={true}
|
||||
columns={columnsldad}
|
||||
data={assData}
|
||||
emptyText={emptyFunc}
|
||||
scroll={{
|
||||
x: true,
|
||||
y: 124
|
||||
}}
|
||||
/>
|
||||
</NCDiv>
|
||||
)
|
||||
}
|
||||
}
|
||||
AssidModal.defaultProps = defaultProps12;
|
||||
export default function (props = {}) {
|
||||
var conf = {
|
||||
};
|
||||
|
||||
return <AssidModal {...Object.assign(conf, props)} />
|
||||
}
|
||||
|
||||
/*jdNRuZuduINgBy4HapEa4fqmBMzA+9W4I6NnfWBJr/o=*/
|
|
@ -0,0 +1,7 @@
|
|||
.getAssDatas{
|
||||
width:100%;
|
||||
.u-modal-dialog .u-modal-content .u-modal-body .u-checkbox{
|
||||
width: 30px;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
/*Lqr57tUGDNE0WbwQ2hnVVDhWFSzbyXIyDrposyg2ujJdgfkaopq+Yc1fWz7XUo7n*/
|
||||
/*Lqr57tUGDNE0WbwQ2hnVVGNFitS6nnIsAXBDh3lSQvaem0zVFn9yF2zDRw1kOW8I*/
|
||||
import React, { Component } from 'react';
|
||||
import {ajax,toast} from 'nc-lightapp-front';
|
||||
export default function getDefaultAccountBook(appcode,json){
|
||||
|
@ -26,4 +26,4 @@ export default function getDefaultAccountBook(appcode,json){
|
|||
// return pk_accountingbook;
|
||||
}
|
||||
|
||||
/*Lqr57tUGDNE0WbwQ2hnVVDhWFSzbyXIyDrposyg2ujJdgfkaopq+Yc1fWz7XUo7n*/
|
||||
/*Lqr57tUGDNE0WbwQ2hnVVGNFitS6nnIsAXBDh3lSQvaem0zVFn9yF2zDRw1kOW8I*/
|
|
@ -1,6 +1,6 @@
|
|||
/*pbHnlLNCpsWdx+f6QNDErXUJ9hVUkCPC2/wKKBoJVMo=*/
|
||||
/*jdNRuZuduINgBy4HapEa4fqmBMzA+9W4I6NnfWBJr/o=*/
|
||||
import printRequire from './printRequire';
|
||||
import mouldOutput from './mouldOutput';
|
||||
export {printRequire,mouldOutput};
|
||||
|
||||
/*pbHnlLNCpsWdx+f6QNDErXUJ9hVUkCPC2/wKKBoJVMo=*/
|
||||
/*jdNRuZuduINgBy4HapEa4fqmBMzA+9W4I6NnfWBJr/o=*/
|
|
@ -1,4 +1,4 @@
|
|||
/*PvwuEP5Xi2Z8qFi8vMu9jIuDswlKF3GeW1huFjgqGmk=*/
|
||||
/*PvwuEP5Xi2Z8qFi8vMu9jBbTILWmvYbUWVdy820+Cpo=*/
|
||||
import { output } from 'nc-lightapp-front';
|
||||
|
||||
/**
|
||||
|
@ -35,4 +35,4 @@ export default function mouldOutput(url, appcode,nodekey,ctemplate,paramObj, tot
|
|||
)
|
||||
}
|
||||
|
||||
/*PvwuEP5Xi2Z8qFi8vMu9jIuDswlKF3GeW1huFjgqGmk=*/
|
||||
/*PvwuEP5Xi2Z8qFi8vMu9jBbTILWmvYbUWVdy820+Cpo=*/
|
|
@ -1,4 +1,4 @@
|
|||
/*lHzYNUaL4NPr7S5JYhidGvtAgxOrZASi1ETrZSXi5tM=*/
|
||||
/*lHzYNUaL4NPr7S5JYhidGgCL86G+PcSuQzBwlz1W9Nw=*/
|
||||
import { print } from 'nc-lightapp-front';
|
||||
|
||||
/**
|
||||
|
@ -27,4 +27,4 @@ export default function printRequire(url,appcode,nodekey,ctemplate,paramObj){
|
|||
)
|
||||
}
|
||||
|
||||
/*lHzYNUaL4NPr7S5JYhidGvtAgxOrZASi1ETrZSXi5tM=*/
|
||||
/*lHzYNUaL4NPr7S5JYhidGgCL86G+PcSuQzBwlz1W9Nw=*/
|
|
@ -1,4 +1,4 @@
|
|||
/*pbHnlLNCpsWdx+f6QNDErXUJ9hVUkCPC2/wKKBoJVMo=*/
|
||||
/*jdNRuZuduINgBy4HapEa4fqmBMzA+9W4I6NnfWBJr/o=*/
|
||||
import React, { Component } from 'react';
|
||||
import { base, toast, getMultiLang} from 'nc-lightapp-front';
|
||||
const { NCButton: Button, NCCheckbox:Checkbox, NCNumber, NCModal: Modal, NCForm, NCDiv } = base;
|
||||
|
@ -383,4 +383,4 @@ export default class PrintModal extends Component {
|
|||
|
||||
|
||||
|
||||
/*pbHnlLNCpsWdx+f6QNDErXUJ9hVUkCPC2/wKKBoJVMo=*/
|
||||
/*jdNRuZuduINgBy4HapEa4fqmBMzA+9W4I6NnfWBJr/o=*/
|
|
@ -1,4 +1,4 @@
|
|||
/*qe7Cb23wLVjc4iA6ZXxPWhPesV7QTTnD1jl8QxtdT5E=*/
|
||||
/*v2IABo5jWerB7tSekIAuCBahZRp8UmHcEUHzxFNTcbY=*/
|
||||
//@Author: lijun
|
||||
export function handleLoad(refcode, code) {
|
||||
let Item = window[refcode].default;
|
||||
|
@ -38,4 +38,4 @@ export default function createScript(src, code) {
|
|||
}
|
||||
}
|
||||
|
||||
/*qe7Cb23wLVjc4iA6ZXxPWhPesV7QTTnD1jl8QxtdT5E=*/
|
||||
/*v2IABo5jWerB7tSekIAuCBahZRp8UmHcEUHzxFNTcbY=*/
|
|
@ -0,0 +1,277 @@
|
|||
/*gdUZMKDdobQhj+C5RztNH3YxTFL//4sJ0wAPGML8Vu0=*/
|
||||
import { toast } from 'nc-lightapp-front';
|
||||
//import './yhtsec.js';
|
||||
/*
|
||||
* @method 节流、防抖函数
|
||||
* @origin created by yangguoqiang @17/11/07
|
||||
* @param
|
||||
* func {Function} 执行函数
|
||||
* wait {Number} 间隔时间
|
||||
* immediate {[Boolean]} 延迟,首次是否执行
|
||||
* @return {Function}
|
||||
* @demo this.handleClick = debounce(this.handleClick, 100)
|
||||
*/
|
||||
export const debounce = (func, wait, immediate) => {
|
||||
let timeout;
|
||||
return () => {
|
||||
const context = this;
|
||||
const args = arguments;
|
||||
const later = () => {
|
||||
timeout = null;
|
||||
if (!immediate) {
|
||||
func.apply(context, args);
|
||||
}
|
||||
};
|
||||
const callNow = immediate && !timeout;
|
||||
clearTimeout(timeout);
|
||||
timeout = setTimeout(later, wait);
|
||||
if (callNow) {
|
||||
func.apply(context, args);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/*
|
||||
* @method 数字格式化,例如 1111111 => ¥1,111,111.00
|
||||
* @origin created by 王涛 @17/11/08
|
||||
* @param
|
||||
* num number 需要转换的数值
|
||||
* n int 小数位数,可不传,默认是 2
|
||||
* separator string 分隔符,可不传,默认是 ‘,’
|
||||
* unit string 单位,可不传,默认是 ‘¥’
|
||||
* @return {string}
|
||||
* @demo numFormat(421321344, '¥', 2, ',') or numFormat(421321344)
|
||||
*/
|
||||
export const numFormat = (num, unit = '¥', n = 2, separator = ',') => {
|
||||
num = parseFloat(num);
|
||||
let varies = '';
|
||||
if (num < 0) {
|
||||
num *= -1;
|
||||
varies = '-';
|
||||
}
|
||||
n = n > 0 ? n : 2;
|
||||
if (n > 0) {
|
||||
num = num.toFixed(n) + '';
|
||||
} else {
|
||||
num += '';
|
||||
}
|
||||
let index = num.indexOf('.') === -1 ? num.length : num.indexOf('.');
|
||||
let arr = [];
|
||||
for (let i = 0; i <= index - 1; i++) {
|
||||
if ((index - i) % 3 === 0 && i !== 0 && i !== index) {
|
||||
arr.push(separator, num[i]);
|
||||
} else {
|
||||
arr.push(num[i]);
|
||||
}
|
||||
}
|
||||
return unit + varies + arr.join('') + num.substr(index);
|
||||
};
|
||||
|
||||
/*
|
||||
* @method toast提示框
|
||||
* @origin created by 王涛 @17/11/20
|
||||
* @param
|
||||
* toast {object}, 所含属性如下
|
||||
* color: string, 默认success, 还可传 danger, warning, info, 对应设计图的四种颜色, 四个icon也会根据color值自动带过来
|
||||
* content: string/number, 默认为'成功了,哈哈哈...', toast显示的提示文字
|
||||
* title: string/number, 默认为'成功了', 只在size= 'lgs'生效, toast的title
|
||||
* duration: number, 默认3, toast弹框默认显示时间3s, 不用传, 后期由需求统一定
|
||||
* @return {toast组件}
|
||||
* @demo toast({color: 'info', content: 'just a test', title: 'test'})
|
||||
*/
|
||||
// export const toast = (props) => {
|
||||
// props = props || {};
|
||||
// let isShow = document.getElementsByClassName('toast-zijinyun-project')[0];
|
||||
// //阻止连续多次点击时页面出现多个toast弹框
|
||||
// if (isShow) {
|
||||
// return false;
|
||||
// }
|
||||
// let div = document.createElement('div');
|
||||
// div.className = 'toast-zijinyun-project';
|
||||
// document.getElementById('app').appendChild(div);
|
||||
// const toasts = ReactDOM.render(<ToastModal {...props} />, div);
|
||||
// return toasts;
|
||||
// };
|
||||
|
||||
/*
|
||||
* @method 数组求和
|
||||
* @origin created by 王涛 @17/11/08
|
||||
* @param
|
||||
* arr {arr} 数字型数组
|
||||
* @return {sums} 总和
|
||||
* @demo sum([1,2,3,4,5,6,7])
|
||||
*/
|
||||
export const sum = (arr) => {
|
||||
//阻止多次点击时页面出现多个弹框
|
||||
if (!arr.length) {
|
||||
return 0;
|
||||
} else if (arr.length === 1) {
|
||||
return arr[0];
|
||||
}
|
||||
let sums = 0;
|
||||
arr.forEach((val) => (sums += Number(val) || 0));
|
||||
return sums;
|
||||
};
|
||||
|
||||
// Extend the default Number object with a formatMoney() method:
|
||||
// usage: someVar.formatMoney(decimalPlaces, symbol, thousandsSeparator, decimalSeparator)
|
||||
// defaults: (2, "$", ",", ".")
|
||||
/**
|
||||
* @method 货币格式化
|
||||
* @origin created by sunzeg @17/11/08
|
||||
* @param {*} places 小数位数,默认2位
|
||||
* @param {*} symbol 货币符号,默认为"¥"
|
||||
* @param {*} thousand 千分符,默认为","
|
||||
* @param {*} decimal 小数点,默认为"."
|
||||
* @return
|
||||
* @demo 123456.formatMoney(2, "$", ",", ".")
|
||||
*/
|
||||
Number.prototype.formatMoney = function(places = 2, symbol = '¥', thousand = ',', decimal = '.') {
|
||||
places = !isNaN((places = Math.abs(places))) ? places : 2;
|
||||
var number = this,
|
||||
negative = number < 0 ? '-' : '',
|
||||
i = parseInt((number = Math.abs(+number || 0).toScale(places)), 10) + '',
|
||||
j = (j = i.length) > 3 ? j % 3 : 0;
|
||||
return (
|
||||
symbol +
|
||||
negative +
|
||||
(j ? i.substr(0, j) + thousand : '') +
|
||||
i.substr(j).replace(/(\d{3})(?=\d)/g, '$1' + thousand) +
|
||||
(places ? decimal + Math.abs(number - i).toFixed(places).slice(2) : '')
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* @method 设置数字精度,处理toFixed的精度问题
|
||||
* @origin created by sunzeg @17/12/12
|
||||
* @param {*} num 输入数字
|
||||
* @param {*} scale 精度位数
|
||||
* @demo 处理诸如1.335.toFixed(2) == 1.33的问题
|
||||
*/
|
||||
Number.prototype.toScale = function(scale = 2) {
|
||||
return Math.round(this * Math.pow(10, scale)) / Math.pow(10, scale);
|
||||
};
|
||||
|
||||
/*
|
||||
* @method 浮点数减法运算
|
||||
* @origin created by gaokung @17/11/20
|
||||
* @param
|
||||
* num1 num2 scale //精度 默认3 {num} 数字
|
||||
* @return number 差值
|
||||
* @demo AccSub(20.1,20,3)
|
||||
*/
|
||||
|
||||
export const AccSub = (num1, num2, scale = 3) => {
|
||||
let r1, r2, m, n;
|
||||
try {
|
||||
r1 = num1.toString().split('.')[1].length;
|
||||
} catch (e) {
|
||||
r1 = 0;
|
||||
}
|
||||
try {
|
||||
r2 = num2.toString().split('.')[1].length;
|
||||
} catch (e) {
|
||||
r2 = 0;
|
||||
}
|
||||
m = Math.pow(10, Math.max(r1, r2));
|
||||
return ((num1 * m - num2 * m) / m).toScale(scale);
|
||||
};
|
||||
|
||||
/**
|
||||
* @method 浮点数乘法运算
|
||||
* @origin created by sunzeg @17/12/12
|
||||
* @param {*} arg
|
||||
* @param {*} scale
|
||||
*/
|
||||
Number.prototype.accMul = function(arg, scale = 2) {
|
||||
var m = 0,
|
||||
s1 = this.toString(),
|
||||
s2 = arg.toString();
|
||||
try {
|
||||
m += s1.split('.')[1].length;
|
||||
} catch (e) {}
|
||||
try {
|
||||
m += s2.split('.')[1].length;
|
||||
} catch (e) {}
|
||||
return (Number(s1.replace('.', '')) * Number(s2.replace('.', '')) / Math.pow(10, m)).toScale(2);
|
||||
};
|
||||
|
||||
/*
|
||||
* @method 设置数字精度
|
||||
* @origin created by gaokung @17/11/20
|
||||
* @param
|
||||
* num scale //精度 默认3
|
||||
* @return float 差值
|
||||
* @demo Fixed(20,3) // 20.000
|
||||
*/
|
||||
|
||||
export const toFixFun = (num, scale = 3) => {
|
||||
num = num + '';
|
||||
if (num.length > 0) {
|
||||
num = Number(num);
|
||||
return num.toFixed(scale);
|
||||
} else {
|
||||
return num;
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
* @method 去掉浮点数后面占位0
|
||||
* @origin created by gaokung @17/11/20
|
||||
* @param
|
||||
* num
|
||||
* @return float 差值
|
||||
* @demo Fixed(20,3) // 20.000
|
||||
*/
|
||||
|
||||
export const toRmZero = (num) => {
|
||||
if (num.indexOf('.') > 0) {
|
||||
num = num.replace(/0+?$/, ''); //去掉多余的0
|
||||
num = num.replace(/[.]$/, ''); //如最后一位是.则去掉
|
||||
}
|
||||
return num;
|
||||
};
|
||||
|
||||
/**
|
||||
* @method 当前日期加特定天数
|
||||
* @origin created by sunzeg @17/11/23
|
||||
* @param {*} startDate 开始日期
|
||||
* @param {*} day 累加的填数
|
||||
* @param {*} symbol 连接符,缺省时用年月日连接
|
||||
* @return 相加后的日期,按照固定的格式输出
|
||||
* @demo dateAdd(currDate, 3, '-');
|
||||
*/
|
||||
// export const dateAdd = (startDate, day = 0, symbol) => {
|
||||
// startDate = +startDate + day * 1000 * 3600 * 24;
|
||||
// startDate = new Date(startDate);
|
||||
// if (typeof symbol != 'undefined') {
|
||||
// return startDate.getFullYear() + symbol + (startDate.getMonth() + 1) + symbol + startDate.getDate();
|
||||
// }
|
||||
// return startDate.getFullYear() + '年' + (startDate.getMonth() + 1) + '月' + startDate.getDate() + '日';
|
||||
// };
|
||||
|
||||
//一下勿删,后期有用,谢谢
|
||||
// document.cookie="userId=874e8ceb-b67a-4df9-ab5c-df3400e9d182";
|
||||
// function aa(a) {
|
||||
// }
|
||||
// window.YHTTool.checkCA(aa)
|
||||
|
||||
//获取url参数
|
||||
export const GetQueryString = (name) => {
|
||||
let href = window.location.href;
|
||||
href = href.split('?')[1];
|
||||
if (!href) {
|
||||
return;
|
||||
}
|
||||
href = href.split('&');
|
||||
for (let i = 0; i < href.length; i++) {
|
||||
if (href[i].indexOf(name) >= 0) {
|
||||
href = href[i].split('=')[1];
|
||||
return href;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export { toast };
|
||||
|
||||
/*gdUZMKDdobQhj+C5RztNH3YxTFL//4sJ0wAPGML8Vu0=*/
|
|
@ -0,0 +1,19 @@
|
|||
// colors
|
||||
// 字体颜色 黑色
|
||||
@b-color: #333333;
|
||||
// 白色
|
||||
@w-color: #ffffff;
|
||||
//按钮背景色 包括行内按钮
|
||||
@t-btn-bgcolor: #00b39e;
|
||||
@t-btn-hovercolor:#009a88;
|
||||
@t-btn-lightbgcolor:#d9f3f0;
|
||||
// 页签红色
|
||||
@t-tab-color: #ccc;
|
||||
// 页面背景色
|
||||
@t-bgcolor: #f5f5f5;
|
||||
// 表格每行hover颜色
|
||||
@t-table-hover: #f4f9f7;
|
||||
// 表格头部颜色
|
||||
@t-table-header: #f2f2f2;
|
||||
//border-color
|
||||
@border-color: #E3E7ED;
|
|
@ -32,11 +32,5 @@
|
|||
"20020RECON-000030": "模板输出",
|
||||
"20020RECON-000031": "年",
|
||||
"20020RECON-000032": "月",
|
||||
"20020RECON-000033": "重建余额表成功",
|
||||
"20020RECON-000034": "总账余额表",
|
||||
"20020RECON-000035": "总账辅助余额表",
|
||||
"20020RECON-000036": "总账辅助明细表",
|
||||
"20020RECON-000037": "差异",
|
||||
"20020RECON-000038": "请先选择会计科目",
|
||||
"20020RECON-000039": "账账相对报表"
|
||||
}
|
||||
"20020RECON-000033": "重建余额表成功"
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
/*q2LCmxM8POvl78IL0Liydo5bohca3dvG3wsSHNuPiA4=*/
|
||||
import { ajax, base, toast,cacheTools,print,withNav } from 'nc-lightapp-front';
|
||||
import GlobalStore from '../../../../public/components/GlobalStore';
|
||||
let tableid = 'gl_brsetting';
|
||||
|
||||
import {
|
||||
handleUnverify,
|
||||
handleDetail,
|
||||
handleSum
|
||||
} from "./index.js";
|
||||
|
||||
// @withNav
|
||||
export default function buttonClick(props, id) {
|
||||
let {querycondition}=this.state;
|
||||
let rowDatas,pk_brsetting,pk_unit,pk_currtype,link;
|
||||
switch (id) {
|
||||
// 查询
|
||||
case 'inquiry':
|
||||
this.handleClick();
|
||||
break;
|
||||
|
||||
// 反核销
|
||||
case 'reverse_verificationCancel':
|
||||
handleUnverify(this);
|
||||
break;
|
||||
|
||||
// 详细
|
||||
case 'detail':
|
||||
handleDetail(this);
|
||||
break;
|
||||
case 'verifySum':
|
||||
handleSum(this);
|
||||
break;
|
||||
case 'print'://打印
|
||||
this.showPrintModal();
|
||||
break;
|
||||
case 'showOutputModal'://模板输出
|
||||
this.showOutputModal();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/*q2LCmxM8POvl78IL0Liydo5bohca3dvG3wsSHNuPiA4=*/
|
|
@ -0,0 +1,26 @@
|
|||
/*AH4MHN4wRozL1Qtb9WKpzKI5AjpCq3r06PcQA1QNXy8=*/
|
||||
import {ajax} from 'nc-lightapp-front';
|
||||
import { toast } from '../../../../public/components/utils.js';
|
||||
/*过滤选中数据 */
|
||||
export default function filterSelectedData(state,type){
|
||||
let {checkedArraySum,checkedArrayDetail,sumSelectedData,detailSelectedData,historySumDataArr,historyDataArr}=state;
|
||||
sumSelectedData=[];
|
||||
detailSelectedData=[];
|
||||
if(type=="sum"){//借方
|
||||
for(var i = 0; i < checkedArraySum.length; i++){
|
||||
if(checkedArraySum[i]==true){
|
||||
sumSelectedData.push(historySumDataArr[i]);
|
||||
}
|
||||
}
|
||||
return sumSelectedData;
|
||||
}else if(type=='details'){//
|
||||
for(var i = 0; i < checkedArrayDetail.length; i++){
|
||||
if(checkedArrayDetail[i]==true){
|
||||
detailSelectedData.push(historyDataArr[i]);
|
||||
}
|
||||
}
|
||||
return detailSelectedData;
|
||||
}
|
||||
}
|
||||
|
||||
/*AH4MHN4wRozL1Qtb9WKpzKI5AjpCq3r06PcQA1QNXy8=*/
|
|
@ -0,0 +1,45 @@
|
|||
/*T7B15Wn57Msurv1/VfHkcNaI/grNL1u6dKQIcpM84eg=*/
|
||||
import {ajax} from 'nc-lightapp-front';
|
||||
import { toast } from '../../../../public/components/utils.js';
|
||||
import filterSelectedData from './filterSelectedData';
|
||||
|
||||
export default function handleDetail(self){
|
||||
// let self=this;
|
||||
let {sumOrDetail,historyDataArr,checkedArraySum,checkedArrayDetail,resourceData_details,checkedAll}=self.state;
|
||||
let m_Batchid=[];//批次
|
||||
let cerrentBatchidData=[];//过来当前批次选中的数据
|
||||
checkedArrayDetail=[];
|
||||
let sumSelectedData=filterSelectedData(self.state,'sum');//获取汇总选中的数据的批次 m_Batchid
|
||||
if(sumSelectedData.length>0){
|
||||
sumSelectedData.map((item,i)=>{
|
||||
if(m_Batchid.indexOf(item.m_Batchid.value)==-1){
|
||||
m_Batchid.push(item.m_Batchid.value);
|
||||
}
|
||||
})
|
||||
resourceData_details.map((list,k)=>{
|
||||
if(m_Batchid.indexOf(list.m_Batchid.value)!=-1){
|
||||
cerrentBatchidData.push(list);
|
||||
checkedArrayDetail.push(false);
|
||||
}
|
||||
})
|
||||
// checkedArraySum.map((v,k)=>{
|
||||
// checkedArraySum[k]=false;
|
||||
// })
|
||||
}else{
|
||||
toast({ content: self.state.json['20020VRIFYHISTORY-000000'], color: "warning" });/* 国际化处理: 请先至少选择一行数据进行操作*/
|
||||
return false;
|
||||
// cerrentBatchidData=resourceData_details;
|
||||
}
|
||||
sumOrDetail='details';
|
||||
self.setState({
|
||||
sumOrDetail,checkedArraySum,
|
||||
historyDataArr:cerrentBatchidData,
|
||||
checkedArrayDetail
|
||||
// checkedAllSum: false
|
||||
},()=>{
|
||||
self.props.button.setButtonDisabled('detail', true);
|
||||
self.props.button.setButtonDisabled('verifySum', false);
|
||||
})
|
||||
}
|
||||
|
||||
/*T7B15Wn57Msurv1/VfHkcNaI/grNL1u6dKQIcpM84eg=*/
|
|
@ -0,0 +1,103 @@
|
|||
/*u4fuI16HuMDfqDwHbJz/3UlZJIe0ygck8CqbI2WILwc=*/
|
||||
import {ajax,deepClone} from 'nc-lightapp-front';
|
||||
import { toast } from '../../../../public/components/utils.js';
|
||||
|
||||
export default function handleQueryClick(state,data){
|
||||
let self=this;
|
||||
let {queryDataObj,mockData,historyDataArr,historySumDataArr,checkedAllSum,checkedArrayDetail,checkedArraySum,
|
||||
resourceData_sum,resourceData_details,defaultStatu} = state;
|
||||
let childData = deepClone(data);
|
||||
checkedAllSum=false;
|
||||
checkedArrayDetail=[];
|
||||
checkedArraySum=[];
|
||||
let url = '/nccloud/gl/verify/historyquery.do';
|
||||
for(let k in childData){
|
||||
if(k=='ass'){
|
||||
// e.ass.map((item,i)=>{
|
||||
// for(let k in item){
|
||||
// item[k]=item[k].value?item[k].value:'';
|
||||
// }
|
||||
// })
|
||||
}else if(k=='pk_units'){
|
||||
if(childData[k].length>0){
|
||||
if(childData[k][0].value==""){
|
||||
childData[k]=null;
|
||||
}else{
|
||||
childData[k].map((item,index)=>{
|
||||
//childData[k].push(item.value);
|
||||
childData[k][index]=item.value;
|
||||
})
|
||||
}
|
||||
}else{
|
||||
childData[k]=null;
|
||||
}
|
||||
}else{
|
||||
childData[k]=childData[k].value?childData[k].value:null;
|
||||
}
|
||||
}
|
||||
//childData.pk_accasoa= "1001A3100000000006Z2";
|
||||
ajax({
|
||||
url:url,
|
||||
data:childData,
|
||||
success: function(response){//historyData是明细的数据 historySumData是汇总的数据
|
||||
let { data, success } = response;
|
||||
if(success){
|
||||
let historyData = data.historyData;
|
||||
let historySumData = data.historySumData;
|
||||
if(historyData){
|
||||
defaultStatu=false;
|
||||
historyData.map((item,i)=>{
|
||||
item.key=i;
|
||||
checkedArrayDetail.push(false);
|
||||
//把未核销金额赋给核销
|
||||
item.m_dCredit_Money_Y=item.m_Balancecreditamount;
|
||||
item.m_dCredit_Money_B=item.m_Balancelocalcreditamount;
|
||||
item.m_Balancecreditamount=0;
|
||||
item.m_Balancelocalcreditamount=0;
|
||||
})
|
||||
}else{
|
||||
historyData=[];
|
||||
}
|
||||
if(historySumData){
|
||||
defaultStatu=false;
|
||||
historySumData.map((item,i)=>{
|
||||
item.key=i;
|
||||
//定义两个临时变量存储未核销的原币和组织本币
|
||||
item.empty_m_Balancedebitamount=item.m_Balancedebitamount;
|
||||
item.empty_m_Balancelocaldebitamount =item.m_Balancelocaldebitamount ;
|
||||
checkedArraySum.push(false);
|
||||
})
|
||||
}else{
|
||||
historySumData=[];
|
||||
}
|
||||
self.setState({
|
||||
sumOrDetail:'sum',
|
||||
queryDataObj:childData,
|
||||
historyDataArr: historyData,
|
||||
historySumDataArr: historySumData,
|
||||
resourceData_details:historyData,
|
||||
resourceData_sum:historySumData,
|
||||
checkedArrayDetail,checkedArraySum,
|
||||
showModal: !self.state.showModal,
|
||||
defaultStatu
|
||||
},()=>{
|
||||
if(historySumData.length>0){
|
||||
self.props.button.setButtonDisabled(['reverse_verificationCancel','detail','print','showOutputModal'], false);
|
||||
self.props.button.setButtonDisabled('verifySum', true);
|
||||
}else{
|
||||
self.props.button.setButtonDisabled(['reverse_verificationCancel','detail','print','showOutputModal'], true);
|
||||
}
|
||||
})
|
||||
} else {
|
||||
toast({ content: self.state.json['20020VRIFYHISTORY-000001'], color: 'warning' });/* 国际化处理: 没有获取数据*/
|
||||
}
|
||||
},
|
||||
error:function(){
|
||||
self.setState({
|
||||
showModal: !self.state.showModal,
|
||||
})
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*u4fuI16HuMDfqDwHbJz/3UlZJIe0ygck8CqbI2WILwc=*/
|
|
@ -0,0 +1,41 @@
|
|||
/*qzb7F4SlCmO1xTuAiNmgmh4pl/dzTvN9p/gHZeXKzGM=*/
|
||||
import {ajax} from 'nc-lightapp-front';
|
||||
import { toast } from '../../../../public/components/utils.js';
|
||||
import filterSelectedData from './filterSelectedData';
|
||||
export default function handleSum(self){
|
||||
// let self=this;
|
||||
let {sumOrDetail,historySumDataArr,checkedArraySum,checkedArrayDetail,resourceData_sum,checkedAll}=self.state;
|
||||
let m_Batchid=[];//批次
|
||||
let cerrentBatchidData=[];//过来当前批次选中的数据
|
||||
let detailSelectedData=filterSelectedData(self.state,'details');//获取汇总选中的数据批次
|
||||
// if(detailSelectedData.length>0){
|
||||
// detailSelectedData.map((item,i)=>{
|
||||
// if(m_Batchid.indexOf(item.m_Batchid.value)==-1){
|
||||
// m_Batchid.push(item.m_Batchid.value);
|
||||
// }
|
||||
// })
|
||||
// resourceData_sum.map((list,k)=>{
|
||||
// if(m_Batchid.indexOf(list.m_Batchid.value)!=-1){
|
||||
// cerrentBatchidData.push(list);
|
||||
// }
|
||||
// })
|
||||
// checkedArrayDetail.map((v,k)=>{
|
||||
// checkedArrayDetail[k]=false;
|
||||
// })
|
||||
// }else{
|
||||
// toast({ content: "请先至少选择一行数据进行操作", color: "warning" });
|
||||
// return false;
|
||||
cerrentBatchidData=resourceData_sum;
|
||||
// }
|
||||
sumOrDetail='sum';
|
||||
self.setState({
|
||||
sumOrDetail,checkedArrayDetail,
|
||||
historySumDataArr:cerrentBatchidData,
|
||||
checkedAllDetail: false
|
||||
},()=>{
|
||||
self.props.button.setButtonDisabled('detail', false);
|
||||
self.props.button.setButtonDisabled('verifySum', true);
|
||||
})
|
||||
}
|
||||
|
||||
/*qzb7F4SlCmO1xTuAiNmgmh4pl/dzTvN9p/gHZeXKzGM=*/
|
|
@ -0,0 +1,136 @@
|
|||
/*YoG9dlfPctMLC5es8pajMBQ1t3onV9OVQ++ApV5d6Pk=*/
|
||||
import { ajax, promptBox } from "nc-lightapp-front";
|
||||
import { toast } from "../../../../public/components/utils.js";
|
||||
import filterSelectedData from "./filterSelectedData";
|
||||
export default function handleUnverify(self) {
|
||||
// let self=this;
|
||||
let state = self.state;
|
||||
let url = "/nccloud/gl/verify/unverify.do";
|
||||
let {
|
||||
creditSelectedData,
|
||||
queryDataObj,
|
||||
checkedAllSum,
|
||||
checkedArrayDetail,
|
||||
checkedArraySum,
|
||||
historySumDataArr,
|
||||
historyDataArr,
|
||||
sumOrDetail, resourceData_details
|
||||
} = state;
|
||||
checkedAllSum = false;
|
||||
checkedArrayDetail = [];
|
||||
checkedArraySum = [];
|
||||
let detailSelectedData = []; //选中的明细数据
|
||||
// creditSelectedData=historyDataArr;//贷方数据
|
||||
let sumSelectedData = filterSelectedData(state, "sum"); //获取汇总选中的数据
|
||||
if (sumSelectedData.length > 0 && sumOrDetail == 'sum') {
|
||||
let m_BatchidArr = [];
|
||||
for (var i = 0; i < sumSelectedData.length; i++) {
|
||||
m_BatchidArr.push(sumSelectedData[i].m_Batchid.value);
|
||||
}
|
||||
for (var k = 0; k < resourceData_details.length; k++) {
|
||||
if (m_BatchidArr.toString().indexOf(resourceData_details[k].m_Batchid.value) != -1) {
|
||||
detailSelectedData.push(resourceData_details[k]);
|
||||
}
|
||||
}
|
||||
} else if (filterSelectedData(state, "details").length > 0 && sumOrDetail == 'details') {
|
||||
detailSelectedData = filterSelectedData(state, "details"); //获取明细选中的数据
|
||||
} else {
|
||||
toast({ content: self.state.json['20020VRIFYHISTORY-000002'], color: "warning" });/* 国际化处理: 请至少选择一行数据进行反核销*/
|
||||
return false;
|
||||
}
|
||||
promptBox({
|
||||
color: 'warning',
|
||||
title: self.state.json['20020VRIFYHISTORY-000003'],/* 国际化处理: 提示*/
|
||||
content: self.state.json['20020VRIFYHISTORY-000004'],/* 国际化处理: 是否反核销?*/
|
||||
noFooter: false, // 是否显示底部按钮(确定、取消),默认显示(false),非必输
|
||||
noCancelBtn: false, // 是否显示取消按钮,,默认显示(false),非必输
|
||||
beSureBtnName: self.state.json['20020VRIFYHISTORY-000005'], // 确定按钮名称, 默认为"确定",非必输/* 国际化处理: 确定*/
|
||||
cancelBtnName: self.state.json['20020VRIFYHISTORY-000006'], // 取消按钮名称, 默认为"取消",非必输/* 国际化处理: 取消*/
|
||||
beSureBtnClick: dealOperate.bind(self, url, detailSelectedData, queryDataObj), // 确定按钮点击调用函数,非必输
|
||||
cancelBtnClick: cancelBtnClick.bind(self) // 取消按钮点击调用函数,非必输
|
||||
})
|
||||
|
||||
}
|
||||
export function dealOperate(url, detailSelectedData, queryDataObj) {
|
||||
let self = this;
|
||||
let {
|
||||
checkedAllSum,
|
||||
checkedArrayDetail,
|
||||
checkedArraySum, sumOrDetail
|
||||
} = self.state;
|
||||
checkedAllSum = false;
|
||||
checkedArrayDetail = [];
|
||||
checkedArraySum = [];
|
||||
let data = {
|
||||
displogVO: detailSelectedData,
|
||||
condition: queryDataObj
|
||||
};
|
||||
ajax({
|
||||
url: url,
|
||||
data: data,
|
||||
success: function (response) {
|
||||
const { data, success } = response;
|
||||
if (success) {
|
||||
let historyData = data.historyData;
|
||||
let historySumData = data.historySumData;
|
||||
let m_BatchidArr = [], cerrentBatchidData = [];
|
||||
if(sumOrDetail=='sum'){
|
||||
if (historyData) {
|
||||
let sumSelectedData = filterSelectedData(self.state, "sum"); //获取汇总选中的数据
|
||||
for (var i = 0; i < sumSelectedData.length; i++) {
|
||||
m_BatchidArr.push(sumSelectedData[i].m_Batchid.value);
|
||||
}
|
||||
historyData.map((list, k) => {
|
||||
if (m_BatchidArr.indexOf(list.m_Batchid.value) != -1) {
|
||||
cerrentBatchidData.push(list);
|
||||
checkedArrayDetail.push(false);
|
||||
}
|
||||
})
|
||||
} else {
|
||||
historyData = [];
|
||||
}
|
||||
if (historySumData) {
|
||||
historySumData.map((item, i) => {
|
||||
item.key = i;
|
||||
checkedArraySum.push(false);
|
||||
});
|
||||
} else {
|
||||
historySumData = [];
|
||||
}
|
||||
}else if(sumOrDetail=='details'){
|
||||
if(historyData){
|
||||
historyData.map((list, k) => {
|
||||
cerrentBatchidData.push(list);
|
||||
checkedArrayDetail.push(false);
|
||||
})
|
||||
}else{
|
||||
historyData = [];
|
||||
}
|
||||
if (historySumData) {
|
||||
historySumData.map((item, i) => {
|
||||
item.key = i;
|
||||
checkedArraySum.push(false);
|
||||
});
|
||||
} else {
|
||||
historySumData = [];
|
||||
}
|
||||
}
|
||||
self.setState({
|
||||
historyDataArr: cerrentBatchidData,
|
||||
historySumDataArr: historySumData,
|
||||
resourceData_details: historyData,
|
||||
resourceData_sum: historySumData,
|
||||
checkedArrayDetail, checkedAllSum,
|
||||
checkedArraySum
|
||||
});
|
||||
} else {
|
||||
toast({ content: self.state.json['20020VRIFYHISTORY-000001'], color: "warning" });/* 国际化处理: 没有获取数据*/
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
export function cancelBtnClick() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/*YoG9dlfPctMLC5es8pajMBQ1t3onV9OVQ++ApV5d6Pk=*/
|
|
@ -0,0 +1,10 @@
|
|||
/*jdNRuZuduINgBy4HapEa4fqmBMzA+9W4I6NnfWBJr/o=*/
|
||||
import handleQueryClick from './handleQueryClick';
|
||||
import handleUnverify from './handleUnverify';
|
||||
import handleDetail from './handleDetail';
|
||||
import handleSum from './handleSum';
|
||||
import initTemplate from './initTemplate';
|
||||
import buttonClick from './buttonClick';
|
||||
export{handleQueryClick,handleUnverify,handleDetail,handleSum, buttonClick, initTemplate}
|
||||
|
||||
/*jdNRuZuduINgBy4HapEa4fqmBMzA+9W4I6NnfWBJr/o=*/
|
|
@ -0,0 +1,30 @@
|
|||
/*pmFWCFu5nhKkBzYmrkBakUskA4/xbWYlI8OGOG8a3xA=*/
|
||||
import { createPage, ajax, base, toast,cacheTools,print } from 'nc-lightapp-front';
|
||||
let { NCPopconfirm, NCIcon } = base;
|
||||
|
||||
let searchId = 'busirecon_query';
|
||||
const pageCode = '20020VRIFYHISTORY';
|
||||
export default function (props) {
|
||||
|
||||
let appcode =props.getSearchParam('c');
|
||||
ajax({
|
||||
url: '/nccloud/platform/appregister/queryallbtns.do',
|
||||
data: {
|
||||
pagecode: pageCode,
|
||||
appcode: appcode//小应用id
|
||||
},
|
||||
async:false,
|
||||
success: function(res) {
|
||||
if (res.data) {
|
||||
let button = res.data;
|
||||
props.button.setButtons(button, () => {
|
||||
// 先注释掉,别影响功能 detail
|
||||
props.button.setButtonDisabled(['reverse_verificationCancel','detail','verifySum','print','showOutputModal'], true);
|
||||
// props.button.setButtonVisible(['print', 'link','refresh','switch'], false);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*pmFWCFu5nhKkBzYmrkBakUskA4/xbWYlI8OGOG8a3xA=*/
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,400 @@
|
|||
@import "../../../public/components/variables.less";
|
||||
|
||||
|
||||
.account-head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background: blue;
|
||||
height:30px;
|
||||
line-height: 30px;
|
||||
color:white;
|
||||
padding-left:5px;
|
||||
padding-right:5px;
|
||||
margin-bottom: 3px;
|
||||
.account-head-right{
|
||||
display: inline-block;
|
||||
width:20px;
|
||||
height:20px;
|
||||
background: red;
|
||||
line-height: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.function-buttons{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
li{
|
||||
margin: 0 2px;
|
||||
width:80px;
|
||||
height:20px;
|
||||
line-height: 20px;
|
||||
text-align: center;
|
||||
border-radius: 5px;
|
||||
list-style: none;
|
||||
background: bisque;
|
||||
}
|
||||
.query-style{
|
||||
border:1px solid blue;
|
||||
color:blue;
|
||||
}
|
||||
}
|
||||
|
||||
.account-content1{
|
||||
margin-top:20px;
|
||||
margin-bottom:5px;
|
||||
|
||||
ul{
|
||||
height:20px;
|
||||
overflow: hidden;
|
||||
.account-content1-tit{
|
||||
padding-left:10px;
|
||||
width:500px;
|
||||
float: left;
|
||||
}
|
||||
li{
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
.account-content1-credit{
|
||||
//margin-top:3px;
|
||||
.account-content1-credit-tit{
|
||||
height:30px;
|
||||
border:1px solid gray;
|
||||
padding-left:5px;
|
||||
line-height: 30px;
|
||||
}
|
||||
.account-content1-credit-tab{
|
||||
height:200px;
|
||||
border:1px solid gray;
|
||||
table{
|
||||
border-collapse :collapse ;
|
||||
}
|
||||
td{
|
||||
border: 1px solid gray;
|
||||
}
|
||||
}
|
||||
.account-content1-credit-foot{
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
height:40px;
|
||||
overflow: hidden;
|
||||
border:1px solid gray;
|
||||
ul{
|
||||
float: left;
|
||||
input{
|
||||
border:none;
|
||||
border:1px solid gray;
|
||||
border-radius: 5px;
|
||||
width:250px;
|
||||
height:20px;
|
||||
margin-right:5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#modalId{z-index:2}
|
||||
.history{
|
||||
background: white;
|
||||
.header-buttons-area{
|
||||
height: 54px;
|
||||
border-bottom: 0px solid rgba(208,208,208,1) !important;
|
||||
.button-app-wrapper{
|
||||
float: right;
|
||||
margin-right: 20px;
|
||||
line-height: 54px;
|
||||
}
|
||||
}
|
||||
.account-content1{
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#queryone{
|
||||
.u-modal-dialog .u-modal-content .u-modal-body .u-checkbox {
|
||||
margin-left: 15px !important;
|
||||
}
|
||||
.u-modal-dialog .u-modal-content .u-modal-body .getAssDatas{
|
||||
width:100%;
|
||||
.u-checkbox{
|
||||
margin: 0 !important;
|
||||
}
|
||||
}
|
||||
.u-modal-dialog{
|
||||
.u-modal-body{
|
||||
.u-table{
|
||||
.u-table-content{
|
||||
.u-table-body{
|
||||
.u-table-tbody{
|
||||
tr{
|
||||
td:nth-of-type(3){
|
||||
.u-form-item.u-form-inline{
|
||||
.u-input-group-outer{
|
||||
.u-input-group{
|
||||
.u-input-inner{
|
||||
.u-col-xs-12 {
|
||||
ul{
|
||||
li{
|
||||
span{
|
||||
width: 168px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.u-form-item .u-input-group-outer .u-input-after, .u-form-item .u-input-group-outer .u-input-before{
|
||||
line-height: 23px;
|
||||
}
|
||||
.u-modal-content{
|
||||
overflow: visible !important;
|
||||
padding: 0 !important;
|
||||
|
||||
// background:rgba(255,255,255,1);
|
||||
box-shadow:0px 1px 1px 0px rgba(74,81,93,0.1);
|
||||
border-radius:3px;
|
||||
.u-modal-body{
|
||||
.u-form {
|
||||
.u-row{
|
||||
margin-left: 0 !important;
|
||||
margin-right: 0 !important;
|
||||
.u-col-md-2{
|
||||
padding-right: 0;
|
||||
}
|
||||
.number-formcontrol{
|
||||
width: 100px;
|
||||
}
|
||||
.refer-wrapper .refer{
|
||||
width: 180px;
|
||||
height:30px;
|
||||
// background:rgba(255,255,255,1);
|
||||
// border:1px solid rgba(208,208,208,1);
|
||||
}
|
||||
.u-label{
|
||||
font-size: 13px;
|
||||
}
|
||||
.datepicker-input-group{
|
||||
width: 180px;
|
||||
}
|
||||
|
||||
.u-radio-label{
|
||||
padding-left: 18px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.refer-pop-window .refer-popover .refer-bottom{
|
||||
padding: 0;
|
||||
}
|
||||
.nc-modal.u-modal{
|
||||
padding-top: 0;
|
||||
}
|
||||
.refer-pop-window .refer-popover .refer-header .refer-title {
|
||||
height:14px;
|
||||
font-size:14px;
|
||||
font-family:PingFangHK-Medium;
|
||||
font-weight:500;
|
||||
color:rgba(17,17,17,1);
|
||||
line-height:14px;
|
||||
}
|
||||
.refer-pop-window .refer-popover .refer-header{
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
.refer-pop-window .refer-popover .loading-container {
|
||||
padding-left: 20px;
|
||||
padding-right: 20px;
|
||||
}
|
||||
.u-form-control-wrapper .u-button{
|
||||
min-width: 60px !important;
|
||||
height: 30px;
|
||||
}
|
||||
.refer-tree .u-form-control-wrapper{
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.refer-tree .u-button{
|
||||
min-width: 60px;
|
||||
background:rgba(225,76,70,1);
|
||||
border-radius:3px;
|
||||
}
|
||||
.refer-tree .u-radio-group{
|
||||
margin-top: 8px;
|
||||
}
|
||||
.nc-modal.u-modal .u-modal-dialog .u-modal-content .u-modal-body{
|
||||
overflow-x:hidden;
|
||||
}
|
||||
|
||||
.u-form .u-form-item.u-form-inline .u-input-group{
|
||||
width: 470px;
|
||||
}
|
||||
.u-table-placeholder{
|
||||
border-bottom: none;
|
||||
}
|
||||
.u-select-focused .u-select-selection,
|
||||
.u-select-selection:active,
|
||||
.u-select-selection:focus {
|
||||
border-color: #999;
|
||||
}
|
||||
.nc-input:nth-last-of-type(4) .iconfont{
|
||||
position: absolute;
|
||||
top: -6px;
|
||||
}
|
||||
.u-form-error.show {
|
||||
display: block;
|
||||
position: absolute;
|
||||
right: -8px;
|
||||
top: 23px;
|
||||
}
|
||||
.u-col-md-8{//币种后的输入框对齐
|
||||
margin-top: -15px;
|
||||
}
|
||||
|
||||
.refer-wrapper .refer {//去掉过度动画
|
||||
transition:all 0s !important;
|
||||
}
|
||||
.u-col-xs-12{
|
||||
transition:all 0s !important;
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
#historyquery{
|
||||
.u-table-content .u-table-scroll .u-table-placeholder{
|
||||
position: fixed;
|
||||
left: 40%;
|
||||
top: 48%;
|
||||
}
|
||||
// .no-data-placeholder{
|
||||
// height: calc(~"100vh - 92px");
|
||||
// padding-top: calc(~"50vh - 46px");
|
||||
// width: 100%;
|
||||
// .no-data{
|
||||
// position: static;
|
||||
// }
|
||||
// .no-data-title{
|
||||
// margin-top: calc(~"50vh - 46px");
|
||||
// }
|
||||
// }
|
||||
.account-content1{
|
||||
.u-table-header{
|
||||
.u-table-thead{
|
||||
tr{
|
||||
th{
|
||||
// border-right: 1px solid rgba(205,205,205,1);
|
||||
text-align: center;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.u-table-body{
|
||||
.u-table-tbody{
|
||||
tr{
|
||||
td:nth-of-type(12),
|
||||
td:nth-of-type(13),
|
||||
td:nth-of-type(22),
|
||||
td:nth-of-type(23),
|
||||
td:nth-of-type(4),
|
||||
td:nth-of-type(5),
|
||||
td:nth-of-type(6),
|
||||
td:nth-of-type(7){
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.u-table-body {
|
||||
overflow: hidden;
|
||||
&:hover {
|
||||
overflow: auto;
|
||||
}
|
||||
&::-webkit-scrollbar {
|
||||
/*滚动条整体部分,其中的属性有width,height,background,border等(就和一个块级元素一样)(位置1)*/
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
}
|
||||
&::-webkit-scrollbar-button {
|
||||
/*滚动条两端的按钮,可以用display:none让其不显示,也可以添加背景图片,颜色改变显示效果(位置2)*/
|
||||
// background:#74D334;
|
||||
display: none;
|
||||
}
|
||||
&::-webkit-scrollbar-track {
|
||||
/*外层轨道,可以用display:none让其不显示,也可以添加背景图片,颜色改变显示效果(位置3)*/
|
||||
// background:#FF66D5;
|
||||
display: none;
|
||||
}
|
||||
&::-webkit-scrollbar-track-piece {
|
||||
/*内层轨道,滚动条中间部分(位置4)*/
|
||||
// background:#FF66D5;
|
||||
display: none;
|
||||
}
|
||||
&::-webkit-scrollbar-thumb {
|
||||
/*滚动条里面可以拖动的那部分(位置5)*/
|
||||
// background:#FFA711;
|
||||
border-radius: 4px;
|
||||
background: #c1c1c1;
|
||||
}
|
||||
// &::-webkit-scrollbar-corner {
|
||||
// /*边角(位置6)*/
|
||||
// background:#82AFFF;
|
||||
// }
|
||||
&::-webkit-scrollbar-resizer {
|
||||
/*定义右下角拖动块的样式(位置7)*/
|
||||
// background:#FF0BEE;
|
||||
// background: transparent;
|
||||
display: none;
|
||||
}
|
||||
// {
|
||||
// scrollbar-arrow-color: #f4ae21; /**//*三角箭头的颜色*/
|
||||
// scrollbar-face-color: #333; /**//*立体滚动条的颜色*/
|
||||
// scrollbar-3dlight-color: #666; /**//*立体滚动条亮边的颜色*/
|
||||
// scrollbar-highlight-color: #666; /**//*滚动条空白部分的颜色*/
|
||||
// scrollbar-shadow-color: #999; /**//*立体滚动条阴影的颜色*/
|
||||
// scrollbar-darkshadow-color: #666; /**//*立体滚动条强阴影的颜色*/
|
||||
// scrollbar-track-color: #666; /**//*立体滚动条背景颜色*/
|
||||
// scrollbar-base-color:#f8f8f8; /**//*滚动条的基本颜色*/
|
||||
// }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
.nc-modal.u-modal .u-modal-dialog .u-modal-content {
|
||||
height: 449px;
|
||||
overflow: hidden;
|
||||
.u-modal-footer{
|
||||
.u-button{
|
||||
min-width: 60px;
|
||||
}
|
||||
}
|
||||
}
|
||||
#queryone .u-modal-content .u-modal-body .u-form .u-row .u-label{
|
||||
font-size: 13px;
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
height: 40px;
|
||||
line-height: 20px;
|
||||
}
|
|
@ -0,0 +1,75 @@
|
|||
@import "../../../../public/components/variables.less";
|
||||
#queryone {
|
||||
display: flex;
|
||||
&.footer-hidden .u-modal-body {
|
||||
margin: 9px 27px 0 42px !important;
|
||||
height: 111px !important;
|
||||
}
|
||||
// .u-modal-header {
|
||||
// border: none;
|
||||
// }
|
||||
.u-modal-dialog {
|
||||
z-index: 1;
|
||||
top: 2%;
|
||||
//left: 5%;
|
||||
// width: 800px;
|
||||
height: auto;
|
||||
// margin: -100px 0 0 -208px;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
.u-modal-content {
|
||||
padding: 21px 19px 10px 37px;
|
||||
box-shadow: 0 1px 5px 2px rgba(0, 0, 0, .2) !important;
|
||||
border: none !important;
|
||||
.u-modal-title {
|
||||
.title-icon {
|
||||
display: inline-block;
|
||||
font-size: 22px;
|
||||
margin-right: 20px;
|
||||
position: relative;
|
||||
top: 3px;
|
||||
}
|
||||
.bd-title-1 {
|
||||
margin: 0;
|
||||
}
|
||||
.close-icon {
|
||||
position: absolute;
|
||||
top: 16px;
|
||||
right: 13px;
|
||||
font-size: 14px;
|
||||
color: #bdbdbd;
|
||||
}
|
||||
}
|
||||
|
||||
.u-modal-body {
|
||||
overflow-x: hidden;
|
||||
overflow-y:auto;
|
||||
font-size: 13px;
|
||||
color: #666;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
.u-form-item {
|
||||
min-height: 40px !important;
|
||||
}
|
||||
.u-checkbox {
|
||||
width: 80px;
|
||||
}
|
||||
.u-table {
|
||||
// border: 1px solid #ccc;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.dateMargin .u-label {
|
||||
padding: 0px 15px;
|
||||
width: 140px;
|
||||
}
|
||||
.online {
|
||||
position: absolute;
|
||||
left: -4px;
|
||||
}
|
||||
.u-input-after {
|
||||
border: none !important;
|
||||
background: none !important;
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,111 @@
|
|||
/*q2LCmxM8POvl78IL0Liydo5bohca3dvG3wsSHNuPiA4=*/
|
||||
import {toast } from 'nc-lightapp-front';
|
||||
import {handleVerify, handleHedging,handleUnMatch} from "./index.js";
|
||||
// import {voucherRelatedApp} from "../../../../public/components/oftenApi.js";
|
||||
// import {voucher_link,voucher_gen} from "../../../../public/components/constJSON";
|
||||
import { openToVoucher } from '../../../../public/common/voucherUtils';
|
||||
export default function buttonClick(props, id) {
|
||||
switch (id) {
|
||||
case 'refresh':
|
||||
//刷新
|
||||
this.handleRefresh();
|
||||
break;
|
||||
// 查询
|
||||
case 'inquire':
|
||||
this.handleClick();
|
||||
break;
|
||||
|
||||
// 核销
|
||||
case 'verificationCancel':
|
||||
handleVerify(this);
|
||||
break;
|
||||
|
||||
// 红蓝对冲
|
||||
case 'RB_hedging':
|
||||
handleHedging(this);
|
||||
break;
|
||||
|
||||
// 自动核销
|
||||
case 'auto_verificationCancel':
|
||||
this.handleAutoVerifyClick();
|
||||
break;
|
||||
|
||||
// 自动红蓝对冲
|
||||
case 'auto_RB_hedging':
|
||||
this.handleAutoHedgingClick();
|
||||
break;
|
||||
|
||||
// 历史查询
|
||||
case 'history_operation':
|
||||
this.handleQueryHistory();
|
||||
break;
|
||||
|
||||
// 全匹配
|
||||
case 'full_match':
|
||||
this.handleAllMatch();
|
||||
break;
|
||||
|
||||
// 取消匹配
|
||||
case 'cancel_match':
|
||||
handleUnMatch(this);
|
||||
break;
|
||||
|
||||
// 对照
|
||||
case 'contrast':
|
||||
this.handleCompare();
|
||||
break;
|
||||
|
||||
// 取消对照
|
||||
case 'cancel_contrast':
|
||||
this.handleUnCompare();
|
||||
break;
|
||||
|
||||
// 切换布局
|
||||
case 'switch_layout':
|
||||
this.handleChangeLayout();
|
||||
break;
|
||||
|
||||
case 'link_voucher'://联查凭证
|
||||
let self=this;
|
||||
let pk_voucher;
|
||||
let creditSelectedData=this.filterSelectedData('credit');//获取借方选中的数据
|
||||
let debitSelectedData=this.filterSelectedData('debit');//获取借方选中的数据
|
||||
if(debitSelectedData.length<=0&&creditSelectedData.length<=0){
|
||||
toast({ content: self.state.json['20020VRIFYPAGE-000000'], color: 'warning' });/* 国际化处理: 请选择一行数据进行联查凭证*/
|
||||
return false;
|
||||
}
|
||||
if(debitSelectedData.length>1||creditSelectedData.length>1||(debitSelectedData.length==1&&creditSelectedData.length==1)){
|
||||
toast({ content: self.state.json['20020VRIFYPAGE-000001'], color: 'warning' });/* 国际化处理: 只支持单行数据进行联查凭证*/
|
||||
return false;
|
||||
}
|
||||
if(creditSelectedData.length==1){
|
||||
pk_voucher=creditSelectedData[0].m_Pk_voucher.value;
|
||||
}
|
||||
if(debitSelectedData.length==1){
|
||||
pk_voucher=debitSelectedData[0].m_Pk_voucher.value;
|
||||
}
|
||||
let param = {
|
||||
pk_voucher: pk_voucher,
|
||||
titlename: self.state.json['20020VRIFYPAGE-000002'],/* 国际化处理: 凭证联查*/
|
||||
}
|
||||
openToVoucher(self,param)
|
||||
// let voucherApp=voucherRelatedApp(voucher_link);
|
||||
// self.props.openTo('/gl/gl_voucher/pages/main/index.html#Welcome',
|
||||
// {
|
||||
// appcode:voucherApp.appcode,
|
||||
// c:voucherApp.appcode,
|
||||
// id:pk_voucher,
|
||||
// pagekey:'link',
|
||||
// n:self.state.json['20020VRIFYPAGE-000002'],/* 国际化处理: 凭证联查*/
|
||||
// status:'browse'
|
||||
|
||||
// }
|
||||
// )
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/*q2LCmxM8POvl78IL0Liydo5bohca3dvG3wsSHNuPiA4=*/
|
|
@ -0,0 +1,72 @@
|
|||
/*/FbBslWIcRlAMbfFtq1R34NvHiKsoLN1Uu1kn18x7Dg=*/
|
||||
import {ajax} from 'nc-lightapp-front';
|
||||
import verifyUnverifySum from './verifyUnverifySum';
|
||||
export default function compareOtherData(self,type,status){
|
||||
let {CompareStatus,creditSelectedData,debitSelectedData,checkedArrayDebit,checkedArrayCredit,
|
||||
resourceData_credit,resourceData_debit,compareData_Credit,compareData_Debit,
|
||||
creditDataArr,debitDataArr}=self.state;
|
||||
let currentData=[];//多虑对照对来的数据
|
||||
|
||||
if(type=='credit'){
|
||||
checkedArrayDebit=[];
|
||||
creditSelectedData=self.filterSelectedData('credit');//获取借方选中的数据
|
||||
if(creditSelectedData.length>0){
|
||||
compareData_Debit=true;
|
||||
let credit_assid=creditSelectedData[0].m_assid?creditSelectedData[0].m_assid.value:'';
|
||||
resourceData_debit.map((item,index)=>{//每次对照都取原始数据去对照
|
||||
if(item.m_pk_unit.value==creditSelectedData[0].m_pk_unit.value&&item.m_sSubjCode.value==creditSelectedData[0].m_sSubjCode.value
|
||||
&&(item.m_assid?item.m_assid.value:'')==credit_assid&&item.m_debitamount.value==creditSelectedData[0].m_creditamount.value){
|
||||
currentData.push(item);
|
||||
checkedArrayDebit.push((item.m_bSelected=='Y')?true:false);
|
||||
}
|
||||
})
|
||||
}else{
|
||||
currentData=resourceData_debit;
|
||||
compareData_Debit=false;
|
||||
resourceData_debit.map((item,index)=>{
|
||||
checkedArrayDebit.push((item.m_bSelected=='Y')?true:false);
|
||||
})
|
||||
|
||||
}
|
||||
self.setState({
|
||||
debitDataArr:currentData,
|
||||
checkedArrayDebit,
|
||||
compareData_Debit
|
||||
},()=>{
|
||||
verifyUnverifySum(self);
|
||||
// self.handleSumAmount('credit');
|
||||
self.handleSumAmount('debit');
|
||||
})
|
||||
}else if(type=='debit'){
|
||||
debitSelectedData=self.filterSelectedData('debit');//获取借方选中的数据
|
||||
checkedArrayCredit=[];
|
||||
if(debitSelectedData.length>0){
|
||||
compareData_Credit=true;
|
||||
let debit_assid=debitSelectedData[0].m_assid?debitSelectedData[0].m_assid.value:'';
|
||||
resourceData_credit.map((item,index)=>{//每次对照都取原始数据去对照
|
||||
if(item.m_pk_unit.value==debitSelectedData[0].m_pk_unit.value&&item.m_sSubjCode.value==debitSelectedData[0].m_sSubjCode.value
|
||||
&&(item.m_assid?item.m_assid.value:'')==debit_assid&&item.m_creditamount.value==debitSelectedData[0].m_debitamount.value){
|
||||
currentData.push(item);
|
||||
checkedArrayCredit.push((item.m_bSelected=='Y')?true:false);
|
||||
}
|
||||
})
|
||||
}else{
|
||||
currentData=resourceData_credit;
|
||||
compareData_Credit=false;
|
||||
resourceData_credit.map((item,index)=>{
|
||||
checkedArrayCredit.push((item.m_bSelected=='Y')?true:false);
|
||||
})
|
||||
}
|
||||
self.setState({
|
||||
creditDataArr:currentData,
|
||||
checkedArrayCredit,
|
||||
compareData_Credit
|
||||
},()=>{
|
||||
verifyUnverifySum(self);
|
||||
self.handleSumAmount('credit');
|
||||
// self.handleSumAmount('debit');
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
/*/FbBslWIcRlAMbfFtq1R34NvHiKsoLN1Uu1kn18x7Dg=*/
|
|
@ -0,0 +1,94 @@
|
|||
/*n673UyeMEdR9CyUNMLQLkzpzS29Dwn2HxVRJm0lg8Y8=*/
|
||||
// 点击全选按钮 获取修改后的数据
|
||||
export default function handleAllChicked(self,type) {
|
||||
let {debitDataArr,checkedArrayDebit,creditDataArr,checkedArrayCredit} = self.state;
|
||||
let obj = {};
|
||||
let brr = [];
|
||||
let count = 0;
|
||||
if(type=='debit'){
|
||||
let len = checkedArrayDebit.length;
|
||||
for(let i = 0; i < debitDataArr.length; i++) {
|
||||
brr.push({
|
||||
m_dDebit_Money_Y: debitDataArr[i].m_Balancedebitamount.value,
|
||||
m_Balancedebitamount: 0
|
||||
})
|
||||
}
|
||||
|
||||
for( let i = 0; i < len; i++) {
|
||||
if(checkedArrayDebit[i] == true) {
|
||||
count++;
|
||||
}
|
||||
}
|
||||
//m_dDebit_Money_Y 本次核销原币 m_dDebit_Money_B组织本币 未核销余额 原币m_Balancedebitamount 组织本币m_Balancelocaldebitamount
|
||||
checkedArrayDebit.map((k, j) => {
|
||||
if (k) {
|
||||
debitDataArr[j].m_dDebit_Money_Y.display = brr[j].m_dDebit_Money_Y;
|
||||
debitDataArr[j].m_dDebit_Money_B.display = debitDataArr[j].m_Balancelocaldebitamount.value;
|
||||
debitDataArr[j].m_Balancedebitamount.display = brr[j].m_Balancedebitamount;
|
||||
debitDataArr[j].m_Balancelocaldebitamount.display = 0;
|
||||
debitDataArr[j].m_dDebit_Money_Y.value = brr[j].m_dDebit_Money_Y;
|
||||
debitDataArr[j].m_dDebit_Money_B.value = debitDataArr[j].m_Balancelocaldebitamount.value;
|
||||
debitDataArr[j].m_Balancedebitamount.value = brr[j].m_Balancedebitamount;
|
||||
debitDataArr[j].m_Balancelocaldebitamount.value = 0;
|
||||
debitDataArr[j].m_dDebit_Money_Y.prevValue = brr[j].m_dDebit_Money_Y;
|
||||
debitDataArr[j].m_dDebit_Money_B.prevValue = debitDataArr[j].m_Balancelocaldebitamount.value;
|
||||
} else {
|
||||
debitDataArr[j].m_dDebit_Money_Y.display = 0// brr[j].m_dDebit_Money_Y;
|
||||
debitDataArr[j].m_dDebit_Money_B.display = 0;
|
||||
debitDataArr[j].m_Balancedebitamount.display = debitDataArr[j].empty_m_Balancedebitamount.value;
|
||||
debitDataArr[j].m_Balancelocaldebitamount.display = debitDataArr[j].empty_m_Balancelocaldebitamount.value;
|
||||
debitDataArr[j].m_dDebit_Money_Y.value = 0//brr[j].m_dDebit_Money_Y;
|
||||
debitDataArr[j].m_dDebit_Money_B.value = 0;
|
||||
debitDataArr[j].m_Balancedebitamount.value = debitDataArr[j].empty_m_Balancedebitamount.value;
|
||||
debitDataArr[j].m_Balancelocaldebitamount.value = debitDataArr[j].empty_m_Balancelocaldebitamount.value;
|
||||
debitDataArr[j].m_dDebit_Money_Y.prevValue = 0//brr[j].m_dDebit_Money_Y;
|
||||
debitDataArr[j].m_dDebit_Money_B.prevValue = 0;
|
||||
}
|
||||
})
|
||||
return debitDataArr;
|
||||
// }
|
||||
}else if(type=='credit'){
|
||||
let len = checkedArrayCredit.length;
|
||||
for(let i = 0; i < creditDataArr.length; i++) {
|
||||
brr.push({
|
||||
m_dCredit_Money_Y: creditDataArr[i].m_Balancecreditamount.value,
|
||||
m_Balancecreditamount: 0
|
||||
})
|
||||
}
|
||||
|
||||
for( let i = 0; i < len; i++) {
|
||||
if(checkedArrayCredit[i] == true) {
|
||||
count++;
|
||||
}
|
||||
}
|
||||
checkedArrayCredit.map((k, n) => {
|
||||
if (k) {
|
||||
creditDataArr[n].m_dCredit_Money_Y.display = brr[n].m_dCredit_Money_Y;
|
||||
creditDataArr[n].m_dCredit_Money_B.display = creditDataArr[n].m_Balancelocalcreditamount.value;
|
||||
creditDataArr[n].m_Balancecreditamount.display = brr[n].m_Balancecreditamount;
|
||||
creditDataArr[n].m_Balancelocalcreditamount.display = 0;
|
||||
creditDataArr[n].m_dCredit_Money_Y.value = brr[n].m_dCredit_Money_Y;
|
||||
creditDataArr[n].m_dCredit_Money_B.value = creditDataArr[n].m_Balancelocalcreditamount.value;
|
||||
creditDataArr[n].m_Balancecreditamount.value = brr[n].m_Balancecreditamount;
|
||||
creditDataArr[n].m_Balancelocalcreditamount.value = 0;
|
||||
creditDataArr[n].m_dCredit_Money_Y.prevValue = brr[n].m_dCredit_Money_Y;
|
||||
creditDataArr[n].m_dCredit_Money_B.prevValue = creditDataArr[n].m_Balancelocalcreditamount.value;
|
||||
} else {
|
||||
creditDataArr[n].m_dCredit_Money_Y.display = 0;// brr[n].m_dCredit_Money_Y;
|
||||
creditDataArr[n].m_dCredit_Money_B.display = 0;
|
||||
creditDataArr[n].m_Balancecreditamount.display = creditDataArr[n].empty_m_Balancecreditamount.value;
|
||||
creditDataArr[n].m_Balancelocalcreditamount.display = creditDataArr[n].empty_m_Balancelocalcreditamount.value;
|
||||
creditDataArr[n].m_dCredit_Money_Y.value = 0;// brr[n].m_dCredit_Money_Y;
|
||||
creditDataArr[n].m_dCredit_Money_B.value = 0;
|
||||
creditDataArr[n].m_Balancecreditamount.value = creditDataArr[n].empty_m_Balancecreditamount.value;
|
||||
creditDataArr[n].m_Balancelocalcreditamount.value = creditDataArr[n].empty_m_Balancelocalcreditamount.value;
|
||||
creditDataArr[n].m_dCredit_Money_Y.prevValue = 0// brr[n].m_dCredit_Money_Y;
|
||||
creditDataArr[n].m_dCredit_Money_B.prevValue = 0;
|
||||
}
|
||||
})
|
||||
return creditDataArr;
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
/*n673UyeMEdR9CyUNMLQLkzpzS29Dwn2HxVRJm0lg8Y8=*/
|
|
@ -0,0 +1,106 @@
|
|||
/*sMxgg6uGOILeuclY1ZJqtD4rttdkWOYoVTXXKKeuuNc=*/
|
||||
import {ajax,deepClone,toast} from 'nc-lightapp-front';
|
||||
import verifyUnverifySum from './verifyUnverifySum';
|
||||
export default function handleAutoHedging(state,data){
|
||||
let self=this;
|
||||
let url= '/nccloud/gl/verify/onAutoRedBlue.do';
|
||||
let {creditDataArr,creditSelectedData,debitSelectedData,queryCondition,
|
||||
checkedAllDebit,checkedAllCredit,checkedArrayCredit,checkedArrayDebit,
|
||||
resourceData_credit,resourceData_debit,creditBoxClicked,debitBoxClicked,firstCheckedDatas}=state;
|
||||
checkedAllDebit=false;
|
||||
checkedAllCredit=false;
|
||||
checkedArrayCredit=[];
|
||||
checkedArrayDebit=[];
|
||||
let standardData = deepClone(data);
|
||||
for(let k in standardData){
|
||||
if(k=='ass'){
|
||||
|
||||
}else if(k=='pk_accasoa'||k=='pk_units'){
|
||||
childData[k].map((item,index)=>{
|
||||
childData[k][index]=item.value;
|
||||
})
|
||||
}else{
|
||||
standardData[k]=standardData[k].value?standardData[k].value:'';
|
||||
}
|
||||
}
|
||||
standardData.pk_accasoa=queryCondition.pk_accasoa;
|
||||
standardData.pk_accountingbook=queryCondition.pk_accountingbook;
|
||||
creditSelectedData=resourceData_credit;
|
||||
debitSelectedData=resourceData_debit;
|
||||
let autoVerifyData={
|
||||
"credit":creditSelectedData,
|
||||
"debit":debitSelectedData,
|
||||
"condition":queryCondition,
|
||||
"standard":standardData
|
||||
}
|
||||
firstCheckedDatas.type='';//借方还是贷方
|
||||
firstCheckedDatas.assinfo={};//选中行的严格控制的辅助核算信息
|
||||
ajax({
|
||||
url:url,
|
||||
data:autoVerifyData,
|
||||
success: function(response){
|
||||
const { data, success } = response;
|
||||
if(success){
|
||||
let creditData = data.credit;
|
||||
let debitData = data.debit;
|
||||
if(creditData){
|
||||
creditData.map((item,i)=>{
|
||||
item.key=i;
|
||||
//定义两个临时变量存储未核销的原币和组织本币
|
||||
item.empty_m_Balancecreditamount={
|
||||
display:item.m_Balancecreditamount.value,
|
||||
value:item.m_Balancecreditamount.value
|
||||
}
|
||||
item.empty_m_Balancelocalcreditamount={
|
||||
display:item.m_Balancelocalcreditamount.value,
|
||||
value :item.m_Balancelocalcreditamount.value
|
||||
}
|
||||
checkedArrayCredit.push(false);
|
||||
})
|
||||
}else{
|
||||
creditData=[];
|
||||
}
|
||||
if(debitData){
|
||||
debitData.map((item,i)=>{
|
||||
item.key=i;
|
||||
//定义两个临时变量存储未核销的原币和组织本币
|
||||
item.empty_m_Balancedebitamount={
|
||||
display:item.m_Balancedebitamount.value,
|
||||
value:item.m_Balancedebitamount.value
|
||||
}
|
||||
item.empty_m_Balancelocaldebitamount={
|
||||
display:item.m_Balancelocaldebitamount.value,
|
||||
value:item.m_Balancelocaldebitamount.value
|
||||
}
|
||||
checkedArrayDebit.push(false);
|
||||
})
|
||||
}else{
|
||||
debitData=[]
|
||||
}
|
||||
resourceData_credit=deepClone(creditData);
|
||||
resourceData_debit=deepClone(debitData);
|
||||
self.setState({
|
||||
resourceData_credit,resourceData_debit,
|
||||
hedgingStandardshowModal:!self.state.hedgingStandardshowModal,
|
||||
creditDataArr: creditData,
|
||||
debitDataArr: debitData,
|
||||
creditBoxClicked:false,//贷方选中
|
||||
debitBoxClicked:false,//借方选中
|
||||
checkedArrayCredit,checkedArrayDebit,checkedAllDebit,checkedAllCredit,
|
||||
firstCheckedDatas
|
||||
},()=>{
|
||||
verifyUnverifySum(self);
|
||||
})
|
||||
} else {
|
||||
toast({ content: self.state.json['20020VRIFYPAGE-000006'], color: 'warning' });/* 国际化处理: 没有获取数据*/
|
||||
}
|
||||
},
|
||||
error:function(){
|
||||
self.setState({
|
||||
hedgingStandardshowModal:!self.state.hedgingStandardshowModal,firstCheckedDatas
|
||||
})
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*sMxgg6uGOILeuclY1ZJqtD4rttdkWOYoVTXXKKeuuNc=*/
|
|
@ -0,0 +1,113 @@
|
|||
/*aqzQuPqBp1JC8jXm5ojnsEZuoNUpZimIG4g8izS5KXQ=*/
|
||||
import {ajax,deepClone,toast} from 'nc-lightapp-front';
|
||||
import verifyUnverifySum from './verifyUnverifySum';
|
||||
export default function handleAutoVerify(state,data){
|
||||
let self=this;
|
||||
let url= '/nccloud/gl/verify/onAutoVerify.do';
|
||||
let {creditDataArr,creditSelectedData,debitSelectedData,queryCondition,
|
||||
checkedAllDebit,checkedAllCredit,checkedArrayCredit,checkedArrayDebit,
|
||||
resourceData_credit,resourceData_debit,creditBoxClicked,debitBoxClicked,
|
||||
verifyStandardshowModal,firstCheckedDatas}=state;
|
||||
checkedAllDebit=false;
|
||||
checkedAllCredit=false;
|
||||
checkedArrayCredit=[];
|
||||
checkedArrayDebit=[];
|
||||
let standardData = deepClone(data);
|
||||
verifyStandardshowModal=false;
|
||||
let autoVerifyData={}
|
||||
for(let k in standardData){
|
||||
if(k=='ass'){
|
||||
}else if(k=='pk_accasoa'||k=='pk_units'){
|
||||
childData[k].map((item,index)=>{
|
||||
childData[k][index]=item.value;
|
||||
})
|
||||
}else{
|
||||
standardData[k]=standardData[k].value?standardData[k].value:'';
|
||||
}
|
||||
}
|
||||
standardData.pk_accasoa=queryCondition.pk_accasoa;
|
||||
standardData.pk_accountingbook=queryCondition.pk_accountingbook;
|
||||
autoVerifyData.standard=standardData;
|
||||
autoVerifyData.condition=queryCondition;
|
||||
if(standardData.sVerify=='Y'){
|
||||
creditSelectedData=self.filterSelectedData('credit');//获取借方选中的数据
|
||||
debitSelectedData=self.filterSelectedData('debit');//获取借方选中的数据
|
||||
}else{
|
||||
creditSelectedData=resourceData_credit;
|
||||
debitSelectedData=resourceData_debit;
|
||||
}
|
||||
autoVerifyData.credit=creditSelectedData;
|
||||
autoVerifyData.debit=debitSelectedData;
|
||||
firstCheckedDatas.type='';//借方还是贷方
|
||||
firstCheckedDatas.assinfo={};//选中行的严格控制的辅助核算信息
|
||||
ajax({
|
||||
url:url,
|
||||
data:autoVerifyData,
|
||||
success: function(response){
|
||||
const { data, success } = response;
|
||||
if(success){
|
||||
let creditData = data.credit;
|
||||
let debitData = data.debit;
|
||||
if(creditData){
|
||||
creditData.map((item,i)=>{
|
||||
item.key=i;
|
||||
//定义两个临时变量存储未核销的原币和组织本币
|
||||
item.empty_m_Balancecreditamount={
|
||||
display:item.m_Balancecreditamount.value,
|
||||
value:item.m_Balancecreditamount.value
|
||||
}
|
||||
item.empty_m_Balancelocalcreditamount={
|
||||
display:item.m_Balancelocalcreditamount.value,
|
||||
value :item.m_Balancelocalcreditamount.value
|
||||
}
|
||||
checkedArrayCredit.push(false);
|
||||
})
|
||||
}else{
|
||||
creditData=[];
|
||||
}
|
||||
if(debitData){
|
||||
debitData.map((item,i)=>{
|
||||
item.key=i;
|
||||
//定义两个临时变量存储未核销的原币和组织本币
|
||||
item.empty_m_Balancedebitamount={
|
||||
display:item.m_Balancedebitamount.value,
|
||||
value:item.m_Balancedebitamount.value
|
||||
}
|
||||
item.empty_m_Balancelocaldebitamount={
|
||||
display:item.m_Balancelocaldebitamount.value,
|
||||
value:item.m_Balancelocaldebitamount.value
|
||||
}
|
||||
checkedArrayDebit.push(false);
|
||||
})
|
||||
}else{
|
||||
debitData=[]
|
||||
}
|
||||
resourceData_credit=deepClone(creditData);
|
||||
resourceData_debit=deepClone(debitData);
|
||||
self.setState({
|
||||
resourceData_credit,resourceData_debit,
|
||||
verifyStandardshowModal:!self.state.verifyStandardshowModal,
|
||||
creditDataArr: creditData,
|
||||
debitDataArr: debitData,
|
||||
creditBoxClicked:false,//贷方选中
|
||||
debitBoxClicked:false,//借方选中
|
||||
checkedArrayCredit,checkedArrayDebit,checkedAllDebit,checkedAllCredit,
|
||||
verifyStandardshowModal,firstCheckedDatas
|
||||
},()=>{
|
||||
verifyUnverifySum(self);
|
||||
})
|
||||
} else {
|
||||
toast({ content: self.state.json['20020VRIFYPAGE-000006'], color: 'warning' });/* 国际化处理: 没有获取数据*/
|
||||
}
|
||||
},
|
||||
error:function(err){
|
||||
toast({content:err.message,color:'warning'});
|
||||
|
||||
self.setState({
|
||||
verifyStandardshowModal,firstCheckedDatas
|
||||
})
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*aqzQuPqBp1JC8jXm5ojnsEZuoNUpZimIG4g8izS5KXQ=*/
|
|
@ -0,0 +1,178 @@
|
|||
/*KzH17M2TaVLtCiLTbm71TjZg6I1CLdObzlRkOjYPv5I=*/
|
||||
import {ajax,deepClone,promptBox,toast} from 'nc-lightapp-front';
|
||||
import verifyUnverifySum from './verifyUnverifySum';
|
||||
export default function handleHedging(self){
|
||||
let credit_sum=0,debit_sum=0;
|
||||
let url= '/nccloud/gl/verify/onRedBlue.do';
|
||||
let {creditDataArr,creditSelectedData,debitSelectedData,queryCondition,
|
||||
checkedAllDebit,checkedAllCredit,checkedArrayCredit,checkedArrayDebit,
|
||||
creditBoxClicked,debitBoxClicked,resourceData_credit,resourceData_debit,}=self.state;
|
||||
checkedAllDebit=false;
|
||||
checkedAllCredit=false;
|
||||
checkedArrayCredit=[];
|
||||
checkedArrayDebit=[];
|
||||
creditSelectedData=self.filterSelectedData('credit');//获取借方选中的数据
|
||||
debitSelectedData=self.filterSelectedData('debit');//获取借方选中的数据
|
||||
if(debitSelectedData.length<=0&&creditSelectedData.length<=0){
|
||||
toast({ content: self.state.json['20020VRIFYPAGE-000007'], color: 'warning' });/* 国际化处理: 至少选择借方或者贷方其中一方数据进行红蓝对冲*/
|
||||
return false;
|
||||
}
|
||||
if(debitSelectedData.length>0&&creditSelectedData.length>0){
|
||||
toast({ content: self.state.json['20020VRIFYPAGE-000008'], color: 'warning' });/* 国际化处理: 只能选择借方或者贷方其中一方数据进行红蓝对冲*/
|
||||
return false;
|
||||
}
|
||||
if(creditSelectedData.length>0){
|
||||
creditSelectedData.map((item,index)=>{
|
||||
credit_sum+=item.m_dCredit_Money_Y.value-0;
|
||||
})
|
||||
}
|
||||
if(debitSelectedData.length>0){
|
||||
debitSelectedData.map((item,index)=>{
|
||||
debit_sum+=item.m_dDebit_Money_Y.value-0;
|
||||
})
|
||||
}
|
||||
if((creditSelectedData.length>0&&credit_sum!=0)||(debitSelectedData.length>0&&debit_sum!=0)){
|
||||
promptBox({
|
||||
color:'info',
|
||||
title:self.state.json['20020VRIFYPAGE-000009'],/* 国际化处理: 提示*/
|
||||
content:self.state.json['20020VRIFYPAGE-000010'],/* 国际化处理: 红蓝对冲金额不相等是否强制做红蓝对冲?*/
|
||||
noFooter: false, // 是否显示底部按钮(确定、取消),默认显示(false),非必输
|
||||
noCancelBtn: false, // 是否显示取消按钮,,默认显示(false),非必输
|
||||
beSureBtnName:self.state.json['20020VRIFYPAGE-000011'], // 确定按钮名称, 默认为"确定",非必输/* 国际化处理: 确定*/
|
||||
cancelBtnName:self.state.json['20020VRIFYPAGE-000012'], // 取消按钮名称, 默认为"取消",非必输/* 国际化处理: 取消*/
|
||||
beSureBtnClick: dealOperate.bind(self,url,creditSelectedData,debitSelectedData,queryCondition), // 确定按钮点击调用函数,非必输
|
||||
cancelBtnClick: cancelBtnClick.bind(self) // 取消按钮点击调用函数,非必输
|
||||
})
|
||||
}else{
|
||||
let queryData={
|
||||
"credit":creditSelectedData,
|
||||
"debit":debitSelectedData,
|
||||
"condition":queryCondition
|
||||
}
|
||||
ajax({
|
||||
url:url,
|
||||
data:queryData,
|
||||
success: function(response){
|
||||
const { data, success } = response;
|
||||
if(success){
|
||||
let creditData = data.credit;
|
||||
let debitData = data.debit;
|
||||
if(creditData){
|
||||
creditData.map((item,i)=>{
|
||||
item.key=i;
|
||||
//定义两个临时变量存储未核销的原币和组织本币
|
||||
item.empty_m_Balancecreditamount={
|
||||
display:item.m_Balancecreditamount.value,
|
||||
value:item.m_Balancecreditamount.value
|
||||
}
|
||||
item.empty_m_Balancelocalcreditamount={
|
||||
display:item.m_Balancelocalcreditamount.value,
|
||||
value :item.m_Balancelocalcreditamount.value
|
||||
}
|
||||
checkedArrayCredit.push(false);
|
||||
})
|
||||
}else{
|
||||
creditData=[];
|
||||
}
|
||||
if(debitData){
|
||||
debitData.map((item,i)=>{
|
||||
item.key=i;
|
||||
//定义两个临时变量存储未核销的原币和组织本币
|
||||
item.empty_m_Balancedebitamount={
|
||||
display:item.m_Balancedebitamount.value,
|
||||
value:item.m_Balancedebitamount.value
|
||||
}
|
||||
item.empty_m_Balancelocaldebitamount={
|
||||
display:item.m_Balancelocaldebitamount.value,
|
||||
value:item.m_Balancelocaldebitamount.value
|
||||
}
|
||||
checkedArrayDebit.push(false);
|
||||
})
|
||||
}else{
|
||||
debitData=[]
|
||||
}
|
||||
resourceData_credit=deepClone(creditData);
|
||||
resourceData_debit=deepClone(debitData);
|
||||
self.setState({
|
||||
resourceData_credit,resourceData_debit,
|
||||
creditDataArr: creditData,
|
||||
debitDataArr: debitData,
|
||||
creditBoxClicked:false,//贷方选中
|
||||
debitBoxClicked:false,//借方选中
|
||||
checkedArrayCredit,checkedArrayDebit,checkedAllDebit,checkedAllCredit
|
||||
},()=>{
|
||||
verifyUnverifySum(self);
|
||||
})
|
||||
} else {
|
||||
toast({ content: self.state.json['20020VRIFYPAGE-000006'], color: 'warning' });/* 国际化处理: 没有获取数据*/
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
export function dealOperate(url,creditSelectedData,debitSelectedData,queryCondition){
|
||||
let self=this;
|
||||
let {checkedAllDebit,checkedAllCredit,checkedArrayCredit,checkedArrayDebit,resourceData_credit,resourceData_debit,}=self.state;
|
||||
checkedAllDebit=false;
|
||||
checkedAllCredit=false;
|
||||
checkedArrayCredit=[];
|
||||
checkedArrayDebit=[];
|
||||
let queryData={
|
||||
"credit":creditSelectedData,
|
||||
"debit":debitSelectedData,
|
||||
"condition":queryCondition
|
||||
}
|
||||
ajax({
|
||||
url:url,
|
||||
data:queryData,
|
||||
success: function(response){
|
||||
const { data, success } = response;
|
||||
if(success){
|
||||
let creditData = data.credit;
|
||||
let debitData = data.debit;
|
||||
if(creditData){
|
||||
creditData.map((item,i)=>{
|
||||
item.key=i;
|
||||
//定义两个临时变量存储未核销的原币和组织本币
|
||||
item.empty_m_Balancecreditamount=item.m_Balancecreditamount;
|
||||
item.empty_m_Balancelocalcreditamount =item.m_Balancelocalcreditamount ;
|
||||
checkedArrayCredit.push(false);
|
||||
})
|
||||
}else{
|
||||
creditData=[];
|
||||
}
|
||||
if(debitData){
|
||||
debitData.map((item,i)=>{
|
||||
item.key=i;
|
||||
//定义两个临时变量存储未核销的原币和组织本币
|
||||
item.empty_m_Balancedebitamount=item.m_Balancedebitamount;
|
||||
item.empty_m_Balancelocaldebitamount =item.m_Balancelocaldebitamount ;
|
||||
checkedArrayDebit.push(false);
|
||||
})
|
||||
}else{
|
||||
debitData=[]
|
||||
}
|
||||
resourceData_credit=deepClone(creditData);
|
||||
resourceData_debit=deepClone(debitData);
|
||||
self.setState({
|
||||
resourceData_credit,resourceData_debit,
|
||||
creditDataArr: creditData,
|
||||
debitDataArr: debitData,
|
||||
creditBoxClicked:false,//贷方选中
|
||||
debitBoxClicked:false,//借方选中
|
||||
checkedArrayCredit,checkedArrayDebit,checkedAllDebit,checkedAllCredit
|
||||
},()=>{
|
||||
verifyUnverifySum(self);
|
||||
})
|
||||
} else {
|
||||
toast({ content: self.state.json['20020VRIFYPAGE-000006'], color: 'warning' });/* 国际化处理: 没有获取数据*/
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
export function cancelBtnClick(){
|
||||
return false;
|
||||
}
|
||||
|
||||
/*KzH17M2TaVLtCiLTbm71TjZg6I1CLdObzlRkOjYPv5I=*/
|
|
@ -0,0 +1,242 @@
|
|||
/*u4fuI16HuMDfqDwHbJz/3UlZJIe0ygck8CqbI2WILwc=*/
|
||||
import {ajax,toast} from 'nc-lightapp-front';
|
||||
import verifyUnverifySum from './verifyUnverifySum';
|
||||
|
||||
export default function handleQueryClick(state,data,isrefreah){
|
||||
let self=this;
|
||||
let {defaultStatu,mockData,creditDataArr,debitDataArr,checkedAllDebit,checkedAllCredit,checkedArrayCredit,checkedArrayDebit,
|
||||
modalDefaultValue,isControl,queryCondition,pk_accasoa,pk_accountingbook,resourceData_credit,resourceData_debit,CompareStatus,
|
||||
resourveQuery,creditOrDebitFlag,voucherVerifyflag,creditScale_Y,creditScale_B,debitScale_Y,debitScale_B,
|
||||
creditBoxClicked,debitBoxClicked,firstCheckedDatas} = state;
|
||||
resourveQuery=data;
|
||||
let childData = JSON.parse(JSON.stringify(data));//deepClone(data);
|
||||
if(voucherVerifyflag=='0'){//及时核销,不能把本方的选中状态去掉
|
||||
childData.isControl=queryCondition.isControl;
|
||||
childData.isControlItems=queryCondition.isControlItems;
|
||||
if(creditOrDebitFlag=='debit'){
|
||||
checkedAllCredit=false;
|
||||
checkedArrayCredit=[];
|
||||
}else if(creditOrDebitFlag=='credit'){
|
||||
checkedAllDebit=false;
|
||||
checkedArrayDebit=[];
|
||||
}
|
||||
}else{
|
||||
checkedAllDebit=false;
|
||||
checkedAllCredit=false;
|
||||
checkedArrayCredit=[];
|
||||
checkedArrayDebit=[];
|
||||
}
|
||||
resourceData_credit=[];
|
||||
resourceData_debit=[];
|
||||
creditDataArr=[];
|
||||
debitDataArr=[];
|
||||
defaultStatu=false;
|
||||
let url = '/nccloud/gl/verify/query.do';
|
||||
pk_accasoa.display=childData.pk_accasoa.display;
|
||||
pk_accountingbook.display=childData.pk_accountingbook.display;
|
||||
for(let k in childData){
|
||||
if(k=='ass'||k=='resourceAss'||k=='account_currency'||k=='cashtype'||k=='pk_org'||k=='isShowUnit'
|
||||
||k=='isControl'||k=='endflag'||k=='isCrossAccountVerify'||k=='isControlItems'){
|
||||
}else if(k=='pk_units'){
|
||||
if(childData[k].length>0){
|
||||
if(childData[k][0].value==""){
|
||||
childData[k]=null;
|
||||
}else{
|
||||
childData[k].map((item,index)=>{
|
||||
childData[k][index]=item.value;
|
||||
})
|
||||
}
|
||||
}else{
|
||||
childData[k]=null;
|
||||
}
|
||||
}else{
|
||||
childData[k]=childData[k].value?childData[k].value:null;
|
||||
}
|
||||
}
|
||||
if(voucherVerifyflag=='0'){
|
||||
childData.type='0';//type=0是即时核销,type=1 是普通核销
|
||||
childData.pk_detail=queryCondition.pk_detail?queryCondition.pk_detail:null;
|
||||
}else{
|
||||
childData.type='1';//type=0是即时核销,type=1 是普通核销
|
||||
}
|
||||
isControl=childData.isControl;
|
||||
if(childData.isShowUnit==undefined){
|
||||
childData.isShowUnit=modalDefaultValue.isShowUnit;
|
||||
}
|
||||
if(childData.isCrossAccountVerify==undefined){
|
||||
childData.isCrossAccountVerify=modalDefaultValue.isCrossAccountVerify;
|
||||
}
|
||||
firstCheckedDatas.type='';//借方还是贷方
|
||||
firstCheckedDatas.assinfo={};//选中行的严格控制的辅助核算信息
|
||||
let creditData=[],debitData=[];
|
||||
ajax({
|
||||
url:url,
|
||||
data:childData,
|
||||
success: function(response){
|
||||
let { data, success } = response;
|
||||
if(success){
|
||||
creditDataArr = data.credit;
|
||||
debitDataArr = data.debit;
|
||||
|
||||
if((creditDataArr&&creditDataArr.length>0) || (debitDataArr&&debitDataArr.length>0)){
|
||||
if(isrefreah){
|
||||
toast({ title: self.state.json['20020VRIFYPAGE-000104'], color: "success" })/* 国际化处理: 刷新成功*/
|
||||
|
||||
}else{
|
||||
|
||||
let creditDataLen = creditDataArr&&creditDataArr.length ? creditDataArr.length: 0;
|
||||
let debitDataLen = debitDataArr&&debitDataArr.length ? debitDataArr.length :0;
|
||||
toast({ content: self.state.inlt && self.state.inlt.get('20020VRIFYPAGE-000101',{credit : creditDataLen , debit : debitDataLen}), color: "success" })
|
||||
}
|
||||
}else{
|
||||
if(isrefreah){
|
||||
toast({ title: self.state.json['20020VRIFYPAGE-000104'], color: "success" })
|
||||
|
||||
}else{
|
||||
toast({ content: self.state.json['20020VRIFYPAGE-000100'], color: "warning" })/* 国际化处理: 未查询出符合条件的数据*/
|
||||
}
|
||||
}
|
||||
|
||||
if(creditDataArr&&creditDataArr.length>0){//贷方
|
||||
creditScale_Y=creditDataArr[0].m_creditamount.scale;
|
||||
creditScale_B=creditDataArr[0].m_localcreditamount.scale;
|
||||
creditDataArr.map((item,i)=>{
|
||||
item.key=i;
|
||||
//定义两个临时变量存储未核销的原币和组织本币
|
||||
item.empty_m_Balancecreditamount={
|
||||
display:item.m_Balancecreditamount.display,
|
||||
value:item.m_Balancecreditamount.value
|
||||
}
|
||||
item.empty_m_Balancelocalcreditamount={
|
||||
display:item.m_Balancelocalcreditamount.display,
|
||||
value :item.m_Balancelocalcreditamount.value
|
||||
}
|
||||
if(voucherVerifyflag=='0'&&creditOrDebitFlag=='credit'){//及时核销,不能把本方的选中状态去掉
|
||||
item.m_dCredit_Money_Y=JSON.parse(JSON.stringify(item.m_Balancecreditamount));
|
||||
item.m_dCredit_Money_B=JSON.parse(JSON.stringify(item.m_Balancelocalcreditamount));
|
||||
item.m_Balancecreditamount.display=0;
|
||||
item.m_Balancecreditamount.value=0;
|
||||
item.m_Balancelocalcreditamount.display=0;
|
||||
item.m_Balancelocalcreditamount.value=0;
|
||||
creditBoxClicked=true;
|
||||
if (!firstCheckedDatas.type&&creditDataArr[0].m_voAss) {//如果未选中一行数据,先选中第一行
|
||||
creditDataArr[0].m_voAss.map((item, index) => {
|
||||
if (queryCondition.isControlItems.indexOf(item.m_pk_checktype) != -1) {
|
||||
firstCheckedDatas.assinfo[item.m_pk_checktype] = item.m_pk_checkvalue;
|
||||
}
|
||||
})
|
||||
firstCheckedDatas.type = 'credit';
|
||||
}
|
||||
}else{
|
||||
checkedArrayCredit.push(false);
|
||||
}
|
||||
|
||||
defaultStatu=true;
|
||||
})
|
||||
|
||||
}else{
|
||||
creditDataArr=[];
|
||||
}
|
||||
if(debitDataArr&&debitDataArr.length>0){//借方
|
||||
debitScale_Y=debitDataArr[0].m_debitamount.scale;
|
||||
debitScale_B=debitDataArr[0].m_localdebitamount.scale;
|
||||
debitDataArr.map((item,i)=>{
|
||||
item.key=i;
|
||||
//定义两个临时变量存储未核销的原币和组织本币
|
||||
item.empty_m_Balancedebitamount={
|
||||
display:item.m_Balancedebitamount.display,
|
||||
value:item.m_Balancedebitamount.value
|
||||
}
|
||||
item.empty_m_Balancelocaldebitamount={
|
||||
display:item.m_Balancelocaldebitamount.display,
|
||||
value:item.m_Balancelocaldebitamount.value
|
||||
}
|
||||
if(voucherVerifyflag=='0'&&creditOrDebitFlag=='debit'){//及时核销,不能把本方的选中状态去掉
|
||||
item.m_dDebit_Money_Y=JSON.parse(JSON.stringify(item.m_Balancedebitamount));
|
||||
item.m_dDebit_Money_B=JSON.parse(JSON.stringify(item.m_Balancelocaldebitamount));
|
||||
item.m_Balancedebitamount.display=0;
|
||||
item.m_Balancedebitamount.value=0;
|
||||
item.m_Balancelocaldebitamount.display=0;
|
||||
item.m_Balancelocaldebitamount.value=0;
|
||||
debitBoxClicked=true;
|
||||
if (!firstCheckedDatas.type&&debitDataArr[0].m_voAss) {//如果未选中一行数据,先选中第一行
|
||||
debitDataArr[0].m_voAss.map((item, index) => {
|
||||
if (queryCondition.isControlItems.indexOf(item.m_pk_checktype) != -1) {
|
||||
firstCheckedDatas.assinfo[item.m_pk_checktype] = item.m_pk_checkvalue;
|
||||
}
|
||||
})
|
||||
firstCheckedDatas.type = 'debit';
|
||||
}
|
||||
}else{
|
||||
checkedArrayDebit.push(false);
|
||||
}
|
||||
defaultStatu=true;
|
||||
})
|
||||
|
||||
}else{
|
||||
debitDataArr=[];
|
||||
}
|
||||
resourceData_credit=JSON.parse(JSON.stringify(creditDataArr));//$$creditData;
|
||||
resourceData_debit=JSON.parse(JSON.stringify(debitDataArr));//$$debitData;
|
||||
self.setState({
|
||||
resourveQuery,
|
||||
isControl,
|
||||
defaultStatu,
|
||||
CompareStatus:'compare',
|
||||
allMatch: false,
|
||||
isQueryShow: false,
|
||||
resourceData_credit,resourceData_debit,
|
||||
queryCondition:childData,
|
||||
creditDataArr,
|
||||
debitDataArr,
|
||||
pk_accasoa,pk_accountingbook,
|
||||
checkedArrayCredit,checkedArrayDebit,checkedAllDebit,checkedAllCredit,
|
||||
creditScale_Y,creditScale_B,debitScale_Y,debitScale_B,creditBoxClicked,debitBoxClicked,
|
||||
firstCheckedDatas
|
||||
},()=>{
|
||||
verifyUnverifySum(self);
|
||||
self.handleSumAmount('credit');
|
||||
self.handleSumAmount('debit');
|
||||
const disabledButtonsArr = [
|
||||
"verificationCancel",
|
||||
"RB_hedging",
|
||||
"auto_verificationCancel",
|
||||
"auto_RB_hedging",
|
||||
"full_match",
|
||||
"cancel_match",
|
||||
"contrast",
|
||||
"cancel_contrast",
|
||||
'link_voucher',
|
||||
'history_operation'
|
||||
];
|
||||
self.props.button.setButtonDisabled(disabledButtonsArr, false);
|
||||
})
|
||||
|
||||
} else {
|
||||
toast({ content: self.state.json['20020VRIFYPAGE-000006'], color: 'warning' });/* 国际化处理: 没有获取数据*/
|
||||
}
|
||||
},
|
||||
error:function(result){
|
||||
self.setState({
|
||||
resourveQuery,
|
||||
isControl,
|
||||
defaultStatu,
|
||||
isQueryShow: false,
|
||||
CompareStatus:'compare',
|
||||
allMatch: false, //全匹配 true,取消匹配 false
|
||||
resourceData_credit,resourceData_debit,
|
||||
queryCondition:childData,
|
||||
creditDataArr,
|
||||
debitDataArr,
|
||||
pk_accasoa,pk_accountingbook,
|
||||
checkedArrayCredit,checkedArrayDebit,checkedAllDebit,checkedAllCredit,
|
||||
firstCheckedDatas
|
||||
},()=>{
|
||||
verifyUnverifySum(self);
|
||||
})
|
||||
toast({ content: result.message?result.message:self.state.json['20020VRIFYPAGE-000006'], color: 'warning' });/* 国际化处理: 没有获取数据*/
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*u4fuI16HuMDfqDwHbJz/3UlZJIe0ygck8CqbI2WILwc=*/
|
|
@ -0,0 +1,53 @@
|
|||
/*OLZlksuEoAGE4iiHN01SmEpBZRJ5sOnggMtTBxL+LM0=*/
|
||||
import {ajax,deepClone,toast} from 'nc-lightapp-front';
|
||||
import handleAllChicked from './handleAllChicked';
|
||||
|
||||
export default function handleUnMatch(self){
|
||||
let { checkedArrayDebit,checkedArrayCredit,firstCheckedDatas} = self.state;
|
||||
for (let i = 0; i <checkedArrayDebit.length; i++) {
|
||||
checkedArrayDebit[i] = false;
|
||||
}
|
||||
for (let i = 0; i <checkedArrayCredit.length; i++) {
|
||||
checkedArrayCredit[i] = false;
|
||||
}
|
||||
firstCheckedDatas.type='';
|
||||
firstCheckedDatas.assinfo={};
|
||||
let allChickedData_debit = handleAllChicked(self,'debit');
|
||||
let allChickedData_credit = handleAllChicked(self,'credit');
|
||||
self.setState({
|
||||
firstCheckedDatas,
|
||||
allMatch:false,
|
||||
checkedAllDebit: false,
|
||||
checkedAllCredit: false,
|
||||
checkedArrayDebit,checkedArrayCredit,
|
||||
debitDataArr:allChickedData_debit,
|
||||
creditDataArr:allChickedData_credit,
|
||||
},()=>{
|
||||
let buttonArr=['full_match','contrast','cancel_contrast'];
|
||||
self.props.button.setButtonDisabled(buttonArr, false);
|
||||
});
|
||||
handleAllChecked(self);
|
||||
};
|
||||
// 借方全选 控制 debitBoxClicked状态
|
||||
function handleAllChecked(self) {
|
||||
let { checkedArrayDebit,debitBoxClicked,checkedArrayCredit,creditBoxClicked } = self.state;
|
||||
for(let i = 0; i < checkedArrayDebit.length; i++) {
|
||||
if(checkedArrayDebit[i] == true) {
|
||||
debitBoxClicked=true;
|
||||
}else{
|
||||
debitBoxClicked=false;
|
||||
}
|
||||
}
|
||||
for(let i = 0; i < checkedArrayCredit.length; i++) {
|
||||
if(checkedArrayCredit[i] == true) {
|
||||
creditBoxClicked=true;
|
||||
}else{
|
||||
creditBoxClicked=false;
|
||||
}
|
||||
}
|
||||
self.setState({
|
||||
debitBoxClicked,creditBoxClicked
|
||||
})
|
||||
}
|
||||
|
||||
/*OLZlksuEoAGE4iiHN01SmEpBZRJ5sOnggMtTBxL+LM0=*/
|
|
@ -0,0 +1,167 @@
|
|||
/*mjYQ3YU0f86RWZ9JI+KJHpmHaFiWPWGuKf7NDRh+ig8=*/
|
||||
import {ajax,deepClone,promptBox,toast} from 'nc-lightapp-front';
|
||||
import verifyUnverifySum from './verifyUnverifySum';
|
||||
export default function handleVerify(self){
|
||||
let url= '/nccloud/gl/verify/onverify.do';
|
||||
let {creditDataArr,creditSelectedData,debitSelectedData,queryCondition}=self.state;
|
||||
creditSelectedData=self.filterSelectedData('credit');//获取借方选中的数据
|
||||
debitSelectedData=self.filterSelectedData('debit');//获取借方选中的数据
|
||||
if(debitSelectedData.length<=0||creditSelectedData.length<=0){
|
||||
toast({ content: self.state.json['20020VRIFYPAGE-000014'], color: 'warning' });/* 国际化处理: 请选择借贷两方数据进行核销*/
|
||||
return false;
|
||||
}
|
||||
if(self.handleSumCY('debit')!=self.handleSumCY('credit')){
|
||||
promptBox({
|
||||
color:'info',
|
||||
title:self.state.json['20020VRIFYPAGE-000009'],/* 国际化处理: 提示*/
|
||||
content:self.state.json['20020VRIFYPAGE-000015'],/* 国际化处理: 参加核销的借贷方金额不相等,是否强制核销?*/
|
||||
noFooter: false, // 是否显示底部按钮(确定、取消),默认显示(false),非必输
|
||||
noCancelBtn: false, // 是否显示取消按钮,,默认显示(false),非必输
|
||||
beSureBtnName:self.state.json['20020VRIFYPAGE-000011'], // 确定按钮名称, 默认为"确定",非必输/* 国际化处理: 确定*/
|
||||
cancelBtnName:self.state.json['20020VRIFYPAGE-000012'], // 取消按钮名称, 默认为"取消",非必输/* 国际化处理: 取消*/
|
||||
beSureBtnClick: dealOperate.bind(self,url,creditSelectedData,debitSelectedData,queryCondition), // 确定按钮点击调用函数,非必输
|
||||
cancelBtnClick: cancelBtnClick.bind(self) // 取消按钮点击调用函数,非必输
|
||||
})
|
||||
}else{
|
||||
dealOperate.call(self,url,creditSelectedData,debitSelectedData,queryCondition);
|
||||
}
|
||||
}
|
||||
export function dealOperate(url,creditSelectedData,debitSelectedData,queryCondition){
|
||||
let self=this;
|
||||
let {creditDataArr,checkedAllDebit,checkedAllCredit,firstCheckedDatas,resourceData_credit,resourceData_debit,
|
||||
checkedArrayCredit,checkedArrayDebit,creditBoxClicked,debitBoxClicked,creditOrDebitFlag,voucherVerifyflag}=self.state;
|
||||
|
||||
if(voucherVerifyflag=='0'){//及时核销,不能把本方的选中状态去掉
|
||||
if(creditOrDebitFlag=='debit'){
|
||||
checkedAllCredit=false;
|
||||
checkedArrayCredit=[];
|
||||
queryCondition.end_date=debitSelectedData[0].m_prepareddate.display;
|
||||
}else if(creditOrDebitFlag=='credit'){
|
||||
checkedAllDebit=false;
|
||||
checkedArrayDebit=[];
|
||||
queryCondition.end_date=creditSelectedData[0].m_prepareddate.display;
|
||||
}
|
||||
|
||||
}else{
|
||||
checkedAllDebit=false;
|
||||
checkedAllCredit=false;
|
||||
checkedArrayCredit=[];
|
||||
checkedArrayDebit=[];
|
||||
}
|
||||
let queryData={
|
||||
"credit":creditSelectedData,
|
||||
"debit":debitSelectedData,
|
||||
"condition":queryCondition
|
||||
}
|
||||
firstCheckedDatas.type='';//借方还是贷方
|
||||
firstCheckedDatas.assinfo={};//选中行的严格控制的辅助核算信息
|
||||
ajax({
|
||||
url:url,
|
||||
data:queryData,
|
||||
success: function(response){
|
||||
const { data, success } = response;
|
||||
if(success){
|
||||
let creditData = data.credit;
|
||||
let debitData = data.debit;
|
||||
creditBoxClicked=false;
|
||||
debitBoxClicked=false;
|
||||
if(creditData){
|
||||
creditData.map((item,i)=>{
|
||||
item.key=i;
|
||||
//定义两个临时变量存储未核销的原币和组织本币
|
||||
item.empty_m_Balancecreditamount={
|
||||
display:item.m_Balancecreditamount.value,
|
||||
value:item.m_Balancecreditamount.value
|
||||
}
|
||||
item.empty_m_Balancelocalcreditamount={
|
||||
display:item.m_Balancelocalcreditamount.value,
|
||||
value :item.m_Balancelocalcreditamount.value
|
||||
}
|
||||
if(voucherVerifyflag=='0'&&creditOrDebitFlag=='credit'){//及时核销,不能把本方的选中状态去掉
|
||||
item.m_dCredit_Money_Y=deepClone(item.m_Balancecreditamount);
|
||||
item.m_dCredit_Money_B=deepClone(item.m_Balancelocalcreditamount);
|
||||
item.m_Balancecreditamount.display=0;
|
||||
item.m_Balancecreditamount.value=0;
|
||||
item.m_Balancelocalcreditamount.display=0;
|
||||
item.m_Balancelocalcreditamount.value=0;
|
||||
creditBoxClicked=true;
|
||||
if (!firstCheckedDatas.type) {//如果未选中一行数据,先选中第一行
|
||||
creditData[0].m_voAss.map((item, index) => {
|
||||
if (queryCondition.isControlItems.indexOf(item.m_pk_checktype) != -1) {
|
||||
firstCheckedDatas.assinfo[item.m_pk_checktype] = item.m_pk_checkvalue;
|
||||
}
|
||||
})
|
||||
firstCheckedDatas.type = 'credit';
|
||||
}
|
||||
}else{
|
||||
checkedArrayCredit.push(false);
|
||||
}
|
||||
})
|
||||
}else{
|
||||
creditData=[];
|
||||
checkedArrayCredit=[];
|
||||
}
|
||||
if(debitData){
|
||||
debitData.map((item,i)=>{
|
||||
item.key=i;
|
||||
//定义两个临时变量存储未核销的原币和组织本币
|
||||
//定义两个临时变量存储未核销的原币和组织本币
|
||||
item.empty_m_Balancedebitamount={
|
||||
display:item.m_Balancedebitamount.value,
|
||||
value:item.m_Balancedebitamount.value
|
||||
}
|
||||
item.empty_m_Balancelocaldebitamount={
|
||||
display:item.m_Balancelocaldebitamount.value,
|
||||
value:item.m_Balancelocaldebitamount.value
|
||||
}
|
||||
if(voucherVerifyflag=='0'&&creditOrDebitFlag=='debit'){//及时核销,不能把本方的选中状态去掉
|
||||
item.m_dDebit_Money_Y=deepClone(item.m_Balancedebitamount);
|
||||
item.m_dDebit_Money_B=deepClone(item.m_Balancelocaldebitamount);
|
||||
item.m_Balancedebitamount.display=0;
|
||||
item.m_Balancedebitamount.value=0;
|
||||
item.m_Balancelocaldebitamount.display=0;
|
||||
item.m_Balancelocaldebitamount.value=0;
|
||||
debitBoxClicked=true;
|
||||
if (!firstCheckedDatas.type) {//如果未选中一行数据,先选中第一行
|
||||
debitData[0].m_voAss.map((item, index) => {
|
||||
if (queryCondition.isControlItems.indexOf(item.m_pk_checktype) != -1) {
|
||||
firstCheckedDatas.assinfo[item.m_pk_checktype] = item.m_pk_checkvalue;
|
||||
}
|
||||
})
|
||||
firstCheckedDatas.type = 'debit';
|
||||
}
|
||||
}else{
|
||||
checkedArrayDebit.push(false);
|
||||
}
|
||||
})
|
||||
}else{
|
||||
debitData=[];
|
||||
checkedArrayDebit=[];
|
||||
}
|
||||
resourceData_credit=JSON.parse(JSON.stringify(creditData));
|
||||
resourceData_debit=JSON.parse(JSON.stringify(debitData));
|
||||
self.setState({
|
||||
resourceData_credit,resourceData_debit,
|
||||
creditDataArr: creditData,
|
||||
debitDataArr: debitData,
|
||||
creditBoxClicked,//贷方选中
|
||||
debitBoxClicked,//借方选中
|
||||
checkedArrayCredit,checkedArrayDebit,checkedAllDebit,checkedAllCredit,
|
||||
firstCheckedDatas
|
||||
},()=>{
|
||||
verifyUnverifySum(self);
|
||||
if(voucherVerifyflag=='0'){
|
||||
self.props.refreshVoucherData();//及时核销成功刷新凭证卡片数据
|
||||
}
|
||||
})
|
||||
} else {
|
||||
toast({ content: self.state.json['20020VRIFYPAGE-000006'], color: 'warning' });/* 国际化处理: 没有获取数据*/
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
export function cancelBtnClick(){
|
||||
return false;
|
||||
}
|
||||
|
||||
/*mjYQ3YU0f86RWZ9JI+KJHpmHaFiWPWGuKf7NDRh+ig8=*/
|
|
@ -0,0 +1,18 @@
|
|||
/*jdNRuZuduINgBy4HapEa4fqmBMzA+9W4I6NnfWBJr/o=*/
|
||||
import handleQueryClick from './handleQueryClick';
|
||||
import handleVerify from './handleVerify';
|
||||
import handleHedging from './handleHedging';
|
||||
import handleAutoVerify from './handleAutoVerify';
|
||||
import handleAutoHedging from './handleAutoHedging';
|
||||
import compareOtherData from './compareOtherData';
|
||||
import handleUnMatch from './handleUnMatch';
|
||||
import matchOtherData from './matchOtherData';
|
||||
import verifyUnverifySum from './verifyUnverifySum';
|
||||
import initTemplate from './initTemplate';
|
||||
import buttonClick from './buttonClick';
|
||||
import iseqAssinfo from './iseqAssinfo';
|
||||
export {initTemplate,buttonClick };
|
||||
export {handleQueryClick,handleVerify,handleHedging,handleAutoVerify,handleAutoHedging,
|
||||
compareOtherData,handleUnMatch,matchOtherData,verifyUnverifySum,iseqAssinfo}
|
||||
|
||||
/*jdNRuZuduINgBy4HapEa4fqmBMzA+9W4I6NnfWBJr/o=*/
|
|
@ -0,0 +1,37 @@
|
|||
/*pmFWCFu5nhKkBzYmrkBakUskA4/xbWYlI8OGOG8a3xA=*/
|
||||
import {ajax,base} from "nc-lightapp-front";
|
||||
const pageCode = "20020VRIFYPAGE";
|
||||
export default function(props) {
|
||||
let appcode = props.getSearchParam("c");
|
||||
ajax({
|
||||
url: "/nccloud/platform/appregister/queryallbtns.do",
|
||||
data: {
|
||||
pagecode: pageCode,
|
||||
appcode: appcode //小应用id
|
||||
},
|
||||
async: false,
|
||||
success: function(res) {
|
||||
if (res.data) {
|
||||
let button = res.data;
|
||||
|
||||
props.button.setButtons(button, () => {
|
||||
// 设置进入页面时的不可用按钮
|
||||
const disabledButtonsArr = [
|
||||
"verificationCancel",
|
||||
"RB_hedging",
|
||||
"auto_verificationCancel",
|
||||
"auto_RB_hedging",
|
||||
"full_match",
|
||||
"cancel_match",
|
||||
"contrast",
|
||||
"cancel_contrast",
|
||||
'link_voucher'
|
||||
];
|
||||
props.button.setButtonDisabled(disabledButtonsArr, true);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*pmFWCFu5nhKkBzYmrkBakUskA4/xbWYlI8OGOG8a3xA=*/
|
|
@ -0,0 +1,27 @@
|
|||
/*pfvMK9MSm/pKb38+DZs9b7tSsl20pNxbRFoZURrS5Ys=*/
|
||||
import {ajax} from 'nc-lightapp-front';
|
||||
|
||||
export default function iseqAssinfo(self,currrentAssinfo,firstCheckedDatas){
|
||||
let controlAssinfoStr='';
|
||||
let currentAssinfoStr='';
|
||||
if(firstCheckedDatas.assinfo){
|
||||
for(let k in firstCheckedDatas.assinfo){
|
||||
controlAssinfoStr+=firstCheckedDatas.assinfo[k];
|
||||
}
|
||||
}
|
||||
if(currrentAssinfo){
|
||||
currrentAssinfo.map((item,index)=>{
|
||||
if(firstCheckedDatas.assinfo[item.m_pk_checktype]){
|
||||
currentAssinfoStr+=item.m_pk_checkvalue;
|
||||
}
|
||||
})
|
||||
}
|
||||
if(currentAssinfoStr&&controlAssinfoStr&&(controlAssinfoStr==currentAssinfoStr)){
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*pfvMK9MSm/pKb38+DZs9b7tSsl20pNxbRFoZURrS5Ys=*/
|
|
@ -0,0 +1,65 @@
|
|||
/*jzVcyjrsJ3b8ozEM9EFAQaMK05CFVuVoD35eu6gO+fw=*/
|
||||
|
||||
import verifyUnverifySum from "./verifyUnverifySum";
|
||||
import iseqAssinfo from "./iseqAssinfo";
|
||||
export default function matchOtherData(self, type) {
|
||||
let {
|
||||
CompareStatus,
|
||||
creditSelectedData,
|
||||
debitSelectedData,
|
||||
resourceData_credit,
|
||||
resourceData_debit,
|
||||
checkedArrayDebit,
|
||||
checkedArrayCredit,
|
||||
debitDataArr,isControl,
|
||||
creditDataArr,firstCheckedDatas
|
||||
} = self.state;
|
||||
let currentData = []; //获取对照出来的数据
|
||||
|
||||
if (type == "credit") {
|
||||
creditSelectedData = self.filterSelectedData("credit"); //获取借方选中的数据
|
||||
debitDataArr.map((item, index) => {
|
||||
// <- 添加了数组判定不为空
|
||||
if (creditSelectedData.length > 0) {
|
||||
if(isControl){
|
||||
if(iseqAssinfo(self,item.m_voAss,firstCheckedDatas)){//判断辅助核算项是否跟严格控制的辅助核算项相等,相等就勾选上
|
||||
checkedArrayDebit[index] = true;
|
||||
}
|
||||
}else{
|
||||
checkedArrayDebit[index] = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
self.setState(
|
||||
{
|
||||
checkedArrayDebit
|
||||
},
|
||||
() => {
|
||||
verifyUnverifySum(self);
|
||||
}
|
||||
);
|
||||
} else if (type == "debit") {
|
||||
debitSelectedData = self.filterSelectedData("debit"); //获取借方选中的数据
|
||||
resourceData_credit.map((item, index) => {
|
||||
if(debitSelectedData.length>0){
|
||||
if (isControl){
|
||||
if (isControl&&iseqAssinfo(self,item.m_voAss,firstCheckedDatas)) {
|
||||
checkedArrayCredit[index] = true;
|
||||
}
|
||||
}else{
|
||||
checkedArrayCredit[index] = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
self.setState(
|
||||
{
|
||||
checkedArrayCredit
|
||||
},
|
||||
() => {
|
||||
verifyUnverifySum(self);
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/*jzVcyjrsJ3b8ozEM9EFAQaMK05CFVuVoD35eu6gO+fw=*/
|
|
@ -0,0 +1,25 @@
|
|||
/*C//k8Gvo5zqErn9WwtanguOISWJIJIWp7FoRr1HGF4g=*/
|
||||
|
||||
import {accAdd,Subtr,accMul,accDiv} from '../../../../public/common/method.js'
|
||||
export default function verifyUnverifySum(self){
|
||||
setTimeout(() => {
|
||||
const {creditDataArr,debitDataArr,debitUY_num, debitUZ_num,creditUY_num, creditUZ_num } = self.state;
|
||||
let debit_sumY = 0,debit_sumZ = 0,credit_sumY = 0,credit_sumZ = 0;
|
||||
for(let i = 0; i < debitDataArr.length; i++) {
|
||||
debit_sumY =accAdd(debit_sumY,debitDataArr[i].m_Balancedebitamount.value);
|
||||
debit_sumZ = accAdd(debit_sumZ,debitDataArr[i].m_Balancelocaldebitamount.value);
|
||||
}
|
||||
for(let i = 0; i < creditDataArr.length; i++) {
|
||||
credit_sumY = accAdd(credit_sumY,creditDataArr[i].m_Balancecreditamount.value);
|
||||
credit_sumZ = accAdd(credit_sumZ,creditDataArr[i].m_Balancelocalcreditamount.value);
|
||||
}
|
||||
self.setState({
|
||||
debitUY_num: debit_sumY,
|
||||
debitUZ_num: debit_sumZ,
|
||||
creditUY_num:credit_sumY,
|
||||
creditUZ_num:credit_sumZ
|
||||
})
|
||||
},1000)
|
||||
}
|
||||
|
||||
/*C//k8Gvo5zqErn9WwtanguOISWJIJIWp7FoRr1HGF4g=*/
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,11 @@
|
|||
/*jdNRuZuduINgBy4HapEa4fqmBMzA+9W4I6NnfWBJr/o=*/
|
||||
// import React from 'react';
|
||||
import {RenderRouter} from 'nc-lightapp-front';
|
||||
import routes from './router';
|
||||
|
||||
(function main(routers,htmlTagid){
|
||||
RenderRouter(routers,htmlTagid);
|
||||
})(routes,"app");
|
||||
|
||||
|
||||
/*jdNRuZuduINgBy4HapEa4fqmBMzA+9W4I6NnfWBJr/o=*/
|
|
@ -0,0 +1,567 @@
|
|||
|
||||
@import "../../../public/style/index.less";
|
||||
|
||||
.account-head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background: blue;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
color: white;
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
margin-bottom: 3px;
|
||||
.account-head-right {
|
||||
display: inline-block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background: red;
|
||||
line-height: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.function-buttons {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
li {
|
||||
margin: 0 2px;
|
||||
width: 80px;
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
text-align: center;
|
||||
border-radius: 5px;
|
||||
list-style: none;
|
||||
background: bisque;
|
||||
}
|
||||
.query-style {
|
||||
border: 1px solid blue;
|
||||
color: blue;
|
||||
}
|
||||
}
|
||||
|
||||
.account-content1 {
|
||||
margin-top: 0px !important;
|
||||
margin-bottom: 5px;
|
||||
.u-col-md-6.u-col-sm-6.u-col-xs-6{
|
||||
&:nth-of-type(1){
|
||||
padding-right:0
|
||||
}
|
||||
&:nth-of-type(2){
|
||||
padding-left:0
|
||||
}
|
||||
}
|
||||
.account-content1-credit {
|
||||
// border-bottom: 1px solid rgba(101, 101, 101, 0.75);
|
||||
// .u-table-content{min-height:0 !important}
|
||||
.account-content1-credit-tit {
|
||||
height: 40px !important;
|
||||
line-height: 40px !important;
|
||||
background:@header-background;
|
||||
.account-content1-credit-foot {
|
||||
padding-left: 10px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
height: 40px;
|
||||
border: none !important;
|
||||
float: right;
|
||||
//overflow: hidden;
|
||||
ul {
|
||||
float: left;
|
||||
height: 40px;
|
||||
li:nth-of-type(1) {
|
||||
// width: 80px;
|
||||
height: 14px;
|
||||
font-size: 13px;
|
||||
font-family: MicrosoftYaHei;
|
||||
// color: rgba(17, 17, 17, 1);
|
||||
line-height: 13px;
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
}
|
||||
li:nth-of-type(2) {
|
||||
margin-right: 8px;
|
||||
margin-left: 14px;
|
||||
font-size: 13px;
|
||||
font-family: PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
// color: rgba(85, 85, 85, 1);
|
||||
line-height: 40px;
|
||||
}
|
||||
input {
|
||||
width: 140px;
|
||||
// height: 30px;
|
||||
// background: rgba(255, 255, 255, 1);
|
||||
border-radius: 3px;
|
||||
// border: 1px solid rgba(208, 208, 208, 1);
|
||||
}
|
||||
}
|
||||
ul:nth-of-type(2) {
|
||||
margin-right: 20px;
|
||||
margin-left: 100px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.account-content1-credit-tab {
|
||||
height: 200px;
|
||||
border: 1px solid gray;
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
td {
|
||||
border: 1px solid gray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#modalId {
|
||||
z-index: 2;
|
||||
}
|
||||
#queryone{
|
||||
.u-modal-dialog .u-modal-content .u-modal-body .getAssDatas{
|
||||
width:100%;
|
||||
.u-checkbox{
|
||||
margin: 0 !important;
|
||||
}
|
||||
}
|
||||
// z-index: 2 !important;
|
||||
display: flex;
|
||||
&.footer-hidden .u-modal-body {
|
||||
margin: 9px 27px 0 42px !important;
|
||||
height: 111px !important;
|
||||
}
|
||||
// .u-modal-header {
|
||||
// border: none;
|
||||
// }
|
||||
.u-modal-dialog {
|
||||
z-index: 1;
|
||||
top: 2%;
|
||||
//left: 5%;
|
||||
// width: 800px;
|
||||
height: auto;
|
||||
// margin: -100px 0 0 -208px;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
.u-modal-content {
|
||||
padding: 21px 19px 10px 37px;
|
||||
box-shadow: 0 1px 5px 2px rgba(0, 0, 0, .2) !important;
|
||||
border: none !important;
|
||||
.u-modal-title {
|
||||
.title-icon {
|
||||
display: inline-block;
|
||||
font-size: 22px;
|
||||
margin-right: 20px;
|
||||
position: relative;
|
||||
top: 3px;
|
||||
}
|
||||
.bd-title-1 {
|
||||
margin: 0;
|
||||
}
|
||||
.close-icon {
|
||||
position: absolute;
|
||||
top: 16px;
|
||||
right: 13px;
|
||||
font-size: 14px;
|
||||
color: #bdbdbd;
|
||||
}
|
||||
}
|
||||
|
||||
.u-modal-body {
|
||||
//overflow: hidden;
|
||||
font-size: 13px;
|
||||
color: #666;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
.u-form-item {
|
||||
min-height: 40px !important;
|
||||
}
|
||||
.u-checkbox {
|
||||
width: 80px;
|
||||
}
|
||||
.u-table {
|
||||
// border: 1px solid #ccc;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.dateMargin .u-label {
|
||||
padding: 0px 15px;
|
||||
width: 140px;
|
||||
}
|
||||
.labelMargin .u-label {
|
||||
width: 0 !important;
|
||||
}
|
||||
.u-input-after {
|
||||
border: none !important;
|
||||
background: none !important;
|
||||
}
|
||||
.checkboxStyle {
|
||||
.u-label {
|
||||
display: none;
|
||||
}
|
||||
.u-checkbox .u-checkbox-label {
|
||||
width: 150px;
|
||||
// height: 20px;
|
||||
// line-height: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
.account-content1 .account-content1-credit .account-content1-credit-tit {
|
||||
padding-left: 0;
|
||||
}
|
||||
#credit_title {
|
||||
padding: 0 4px;
|
||||
width: auto;
|
||||
height: 20px;
|
||||
background: rgba(255, 235, 220, 1);
|
||||
border-radius: 2px;
|
||||
font-size: 13px;
|
||||
font-family: MicrosoftYaHei;
|
||||
color: rgba(141, 112, 65, 1);
|
||||
line-height: 20px;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
top: -3px;
|
||||
}
|
||||
// .iconfont:nth-of-type(4) {
|
||||
// position: absolute;
|
||||
// top: -6px;
|
||||
// }
|
||||
#lender_title {
|
||||
padding: 0 4px;
|
||||
position: absolute;
|
||||
top: -3px;
|
||||
width: auto;
|
||||
height: 20px;
|
||||
background: rgba(220, 234, 255, 1);
|
||||
border-radius: 2px;
|
||||
font-size: 13px;
|
||||
font-family: MicrosoftYaHei;
|
||||
color: rgba(0, 122, 206, 1);
|
||||
line-height: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
.content {
|
||||
// background: rgba(255, 255, 255, 1);
|
||||
//box-shadow: 0px 1px 4px 2px rgba(234, 234, 234, 1);
|
||||
// border-radius: 2px;
|
||||
// .head {
|
||||
// height: 54px;
|
||||
// border-bottom: 1px solid rgba(208, 208, 208, 1);
|
||||
// }
|
||||
.header .header-search-area {
|
||||
flex: 1;
|
||||
}
|
||||
.title-search-container {
|
||||
display: flex;
|
||||
.title-search-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.title-search-item-lable {
|
||||
min-width: 65px;
|
||||
}
|
||||
.title-search-item-info {
|
||||
display: -webkit-box;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
-webkit-line-clamp: 2;
|
||||
line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
width: 120px;
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
.margin-r10 {
|
||||
margin-right: 10px;
|
||||
}
|
||||
}
|
||||
.row {
|
||||
height: 1px;
|
||||
background: rgba(208, 208, 208, 1);
|
||||
}
|
||||
// .title {
|
||||
// height: 54px;
|
||||
// font-size: 16px !important;
|
||||
// font-family: MicrosoftYaHei;
|
||||
// color: #111111;
|
||||
// margin-left: 20px;
|
||||
// float: left;
|
||||
// line-height: 54px;
|
||||
// display: flex;
|
||||
// -webkit-box-align: center;
|
||||
// -ms-flex-align: center;
|
||||
// align-items: center;
|
||||
// line-height: 27px;
|
||||
// width: 178px;
|
||||
// }
|
||||
// .button-app-wrapper {
|
||||
// //按钮样式
|
||||
// line-height: 63px;
|
||||
// margin-right: 20px;
|
||||
// float: right !important;
|
||||
// height: 30px;
|
||||
// font-size: 13px;
|
||||
// font-family: MicrosoftYaHei;
|
||||
// color: rgba(85, 85, 85, 1);
|
||||
// line-height: 52px;
|
||||
// .refresh-component {
|
||||
// height: 30px;
|
||||
// width: 30px !important;
|
||||
// }
|
||||
// }
|
||||
|
||||
.account-content1-credit-tit {
|
||||
//借方抬头
|
||||
border: none !important;
|
||||
.account-content1-credit-tit-title {
|
||||
float: left;
|
||||
width: 48px;
|
||||
height: 14px;
|
||||
font-size: 14px;
|
||||
font-family: MicrosoftYaHei;
|
||||
color: rgba(17, 17, 17, 1);
|
||||
line-height: 13px;
|
||||
margin-left: 20px;
|
||||
margin-top: 13px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.head .button-app-wrapper .refresh-component {
|
||||
min-width: 30px !important;
|
||||
padding: 0;
|
||||
}
|
||||
#query_body {
|
||||
.u-form-control-wrapper{height:28px;}
|
||||
.head{
|
||||
.button-app-wrapper.header_buttons-button-app-wrapper{
|
||||
.divider-button-wrapper{
|
||||
.sawadika{
|
||||
.hover-divider-btn-left-wrapper{
|
||||
z-index: 2 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.u-table-body {
|
||||
min-height: calc(~"(100vh - 298px)/2") !important;
|
||||
max-height: calc(~"(100vh - 298px)/2") !important;
|
||||
}
|
||||
&.vertical{
|
||||
.u-table-body {
|
||||
// height: 440px !important;
|
||||
//min-height: 430px !important;
|
||||
// max-height: 440px !important;
|
||||
min-height: calc(~"100vh - 280px") !important;
|
||||
max-height: calc(~"100vh - 280px") !important;
|
||||
}
|
||||
}
|
||||
input {
|
||||
padding: 0 8px;
|
||||
}
|
||||
.account-content1 ul li {
|
||||
float: left;
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
div{
|
||||
display:inline-block;
|
||||
margin-top: -3px
|
||||
}
|
||||
}
|
||||
.account-content1 .account-content1-credit {
|
||||
border-bottom: 1px solid #d0d0d0;
|
||||
border-right: 1px solid #d0d0d0;
|
||||
}
|
||||
.u-table-body{
|
||||
&::-webkit-scrollbar-button{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
//切换布局样式
|
||||
|
||||
.bottom-foot{
|
||||
// display: flex;
|
||||
height: 92px;
|
||||
background: #fff;
|
||||
.footerleft{
|
||||
box-sizing: border-box;
|
||||
border-right: 1px solid #d0d0d0;
|
||||
}
|
||||
> div{
|
||||
width: 50%;
|
||||
display: inline-block;
|
||||
.account-content1-credit-foot-first{
|
||||
height: 50px;
|
||||
margin-left: 37px;
|
||||
line-height: 50px;
|
||||
li{
|
||||
text-align: right;
|
||||
margin-right: 14px;
|
||||
min-width: 78px;
|
||||
margin-top: 5px;
|
||||
input{
|
||||
width:140px;
|
||||
// height:30px;
|
||||
// background:rgba(255,255,255,1);
|
||||
border-radius:3px;
|
||||
// border:1px solid rgba(208,208,208,1);
|
||||
}
|
||||
}
|
||||
|
||||
li:nth-oy-type(1){
|
||||
font-size:13px;
|
||||
font-family:MicrosoftYaHei;
|
||||
color:rgba(17,17,17,1);
|
||||
}
|
||||
li:nth-oy-type(2),li:nth-oy-type(3){
|
||||
font-size:13px;
|
||||
font-family:PingFangSC-Regular;
|
||||
font-weight:400;
|
||||
color:rgba(85,85,85,1);
|
||||
}
|
||||
}
|
||||
.account-content1-credit-foot-secend{
|
||||
height: 40px;
|
||||
margin-left: 37px;
|
||||
li{
|
||||
text-align: right;
|
||||
margin-right: 14px;
|
||||
min-width: 78px;
|
||||
input{
|
||||
width:140px;
|
||||
// height:30px;
|
||||
// background:rgba(255,255,255,1);
|
||||
border-radius:3px;
|
||||
// border:1px solid rgba(208,208,208,1);
|
||||
}
|
||||
}
|
||||
li:nth-oy-type(1){
|
||||
font-size:13px;
|
||||
font-family:MicrosoftYaHei;
|
||||
color:rgba(17,17,17,1);
|
||||
}
|
||||
li:nth-oy-type(2),li:nth-oy-type(3){
|
||||
font-size:13px;
|
||||
font-family:PingFangSC-Regular;
|
||||
font-weight:400;
|
||||
color:rgba(85,85,85,1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// .account-content1{
|
||||
// height: calc(~"100% - 70px");
|
||||
// .u-row{
|
||||
// height: calc(~"100% - 92px");
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#query_body{
|
||||
.u-table-footer{
|
||||
padding: 0 !important;
|
||||
}
|
||||
.u-table-body {
|
||||
overflow: hidden;
|
||||
&:hover {
|
||||
overflow: auto;
|
||||
}
|
||||
&::-webkit-scrollbar {
|
||||
/*滚动条整体部分,其中的属性有width,height,background,border等(就和一个块级元素一样)(位置1)*/
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
}
|
||||
&::-webkit-scrollbar-button {
|
||||
/*滚动条两端的按钮,可以用display:none让其不显示,也可以添加背景图片,颜色改变显示效果(位置2)*/
|
||||
// background:#74D334;
|
||||
display: none;
|
||||
}
|
||||
&::-webkit-scrollbar-track {
|
||||
/*外层轨道,可以用display:none让其不显示,也可以添加背景图片,颜色改变显示效果(位置3)*/
|
||||
// background:#FF66D5;
|
||||
display: none;
|
||||
}
|
||||
&::-webkit-scrollbar-track-piece {
|
||||
/*内层轨道,滚动条中间部分(位置4)*/
|
||||
// background:#FF66D5;
|
||||
display: none;
|
||||
}
|
||||
&::-webkit-scrollbar-thumb {
|
||||
/*滚动条里面可以拖动的那部分(位置5)*/
|
||||
// background:#FFA711;
|
||||
border-radius: 4px;
|
||||
background: #c1c1c1;
|
||||
}
|
||||
// &::-webkit-scrollbar-corner {
|
||||
// /*边角(位置6)*/
|
||||
// background:#82AFFF;
|
||||
// }
|
||||
&::-webkit-scrollbar-resizer {
|
||||
/*定义右下角拖动块的样式(位置7)*/
|
||||
// background:#FF0BEE;
|
||||
// background: transparent;
|
||||
display: none;
|
||||
}
|
||||
// {
|
||||
// scrollbar-arrow-color: #f4ae21; /**//*三角箭头的颜色*/
|
||||
// scrollbar-face-color: #333; /**//*立体滚动条的颜色*/
|
||||
// scrollbar-3dlight-color: #666; /**//*立体滚动条亮边的颜色*/
|
||||
// scrollbar-highlight-color: #666; /**//*滚动条空白部分的颜色*/
|
||||
// scrollbar-shadow-color: #999; /**//*立体滚动条阴影的颜色*/
|
||||
// scrollbar-darkshadow-color: #666; /**//*立体滚动条强阴影的颜色*/
|
||||
// scrollbar-track-color: #666; /**//*立体滚动条背景颜色*/
|
||||
// scrollbar-base-color:#f8f8f8; /**//*滚动条的基本颜色*/
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
#query_body{
|
||||
.nc-table-header-scroll .u-table-content .u-table-scroll .u-table-header{
|
||||
overflow: hidden !important;
|
||||
}
|
||||
#credit,#lender{
|
||||
.u-table-thead{
|
||||
tr{
|
||||
th{
|
||||
// border-right: 1px solid rgba(205,205,205,1);
|
||||
text-align: center !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//金额右对齐
|
||||
.yeson{
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
}
|
||||
.buttons{
|
||||
position: absolute;
|
||||
right: 30px;
|
||||
// line-height: 54px;
|
||||
top:24px;
|
||||
}
|
||||
}
|
||||
#query_body{
|
||||
.u-table-thead{
|
||||
.u-checkbox-label{
|
||||
padding-left: 0 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px) {
|
||||
#query_body .account-content1 .account-content1-credit .account-content1-credit-tit .account-content1-credit-foot ul:nth-of-type(2) {
|
||||
margin-right: 20px;
|
||||
margin-left: 80px;
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,24 @@
|
|||
/*PtRJtOyZvsGRUspOX8ak2OyWsna/vJjNkztFjiX3ZYQ=*/
|
||||
import {asyncComponent} from 'nc-lightapp-front';
|
||||
//import Home from 'pages/so/home';
|
||||
// import Verify from 'gl_front/verify/verify/vrify/exportVrify';
|
||||
// import VrifyHistory from 'gl_front/verify/historyquery/list';
|
||||
import Verify from './exportVrify.js';
|
||||
//const Verify = asyncComponent(() => import(/* webpackChunkName: "gl_front/verify/verify/vrify/home" */'./exportVrify.js'));
|
||||
const VrifyHistory = asyncComponent(() => import(/* webpackChunkName: "gl/verify/verify/vrify/apphome" */'../../historyquery/list/index.js'));
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: '/',
|
||||
component: Verify,
|
||||
exact: true,
|
||||
},
|
||||
{
|
||||
path: '/VrifyHistory',
|
||||
component: VrifyHistory,
|
||||
}
|
||||
];
|
||||
|
||||
export default routes;
|
||||
|
||||
/*PtRJtOyZvsGRUspOX8ak2OyWsna/vJjNkztFjiX3ZYQ=*/
|
|
@ -0,0 +1,303 @@
|
|||
|
||||
|
||||
#queryone{
|
||||
.u-modal-dialog .u-modal-content .u-modal-body .u-checkbox {
|
||||
margin-left: 15px !important;
|
||||
}
|
||||
.u-modal-dialog .u-modal-content .u-modal-body .getAssDatas{
|
||||
width:100%;
|
||||
.u-checkbox{
|
||||
margin: 0 !important;
|
||||
}
|
||||
}
|
||||
.u-modal-dialog{
|
||||
.u-modal-body{
|
||||
.u-table{
|
||||
.u-table-content{
|
||||
.u-table-body{
|
||||
.u-table-tbody{
|
||||
tr{
|
||||
td:nth-of-type(3){
|
||||
.u-form-item.u-form-inline{
|
||||
.u-input-group-outer{
|
||||
.u-input-group{
|
||||
.u-input-inner{
|
||||
.u-col-xs-12 {
|
||||
ul{
|
||||
li{
|
||||
span{
|
||||
width: 168px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.u-modal-content{
|
||||
overflow: visible !important;
|
||||
padding: 0 !important;
|
||||
|
||||
// background:rgba(255,255,255,1);
|
||||
box-shadow:0px 1px 1px 0px rgba(74,81,93,0.1);
|
||||
border-radius:3px;
|
||||
.u-modal-body{
|
||||
.u-table-thead tr{
|
||||
border-top: none !important;
|
||||
}
|
||||
overflow-x: hidden;
|
||||
.u-form {
|
||||
.u-row{
|
||||
margin-left: 0 !important;
|
||||
margin-right: 0 !important;
|
||||
.u-col-md-2{
|
||||
padding-right: 0;
|
||||
}
|
||||
.labelMargin{
|
||||
width: 260px;
|
||||
position: absolute;
|
||||
// top: 176px;
|
||||
// left: 40%;
|
||||
&>div{
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
.number-formcontrol{
|
||||
width: 100px;
|
||||
}
|
||||
.refer-wrapper .refer{
|
||||
width: 180px;
|
||||
height:30px;
|
||||
// background:rgba(255,255,255,1);
|
||||
// border:1px solid rgba(208,208,208,1);
|
||||
}
|
||||
.u-label{
|
||||
font-size: 13px;
|
||||
}
|
||||
.datepicker-input-group{
|
||||
width: 180px;
|
||||
}
|
||||
|
||||
.u-radio-label{
|
||||
padding-left: 18px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.refer-pop-window .refer-popover .refer-bottom{
|
||||
padding: 0;
|
||||
}
|
||||
.nc-modal.u-modal{
|
||||
padding-top: 0;
|
||||
}
|
||||
.refer-pop-window .refer-popover .refer-header .refer-title {
|
||||
height:14px;
|
||||
font-size:14px;
|
||||
font-family:PingFangHK-Medium;
|
||||
font-weight:500;
|
||||
color:rgba(17,17,17,1);
|
||||
line-height:14px;
|
||||
}
|
||||
.refer-pop-window .refer-popover .refer-header{
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
.refer-pop-window .refer-popover .loading-container {
|
||||
padding-left: 20px;
|
||||
padding-right: 20px;
|
||||
}
|
||||
.u-form-control-wrapper .u-button{
|
||||
min-width: 60px !important;
|
||||
height: 30px;
|
||||
}
|
||||
.refer-tree .u-form-control-wrapper{
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.refer-tree .u-button{
|
||||
min-width: 60px;
|
||||
background:rgba(225,76,70,1);
|
||||
border-radius:3px;
|
||||
}
|
||||
.refer-tree .u-radio-group{
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.nc-modal.u-modal .u-modal-dialog .u-modal-content .u-modal-body{
|
||||
overflow-x:hidden;
|
||||
}
|
||||
|
||||
.u-form .u-form-item.u-form-inline .u-input-group{
|
||||
width: 470px;
|
||||
}
|
||||
.u-table-placeholder{
|
||||
border-bottom: none;
|
||||
}
|
||||
.u-select-focused .u-select-selection,
|
||||
.u-select-selection:active,
|
||||
.u-select-selection:focus {
|
||||
border-color: #999;
|
||||
}
|
||||
.nc-input:nth-last-of-type(4) .iconfont{
|
||||
position: absolute;
|
||||
top: -6px;
|
||||
}
|
||||
.u-form-error.show {
|
||||
display: block;
|
||||
position: absolute;
|
||||
right: -8px;
|
||||
top: 23px;
|
||||
}
|
||||
.u-col-md-8{//币种后的输入框对齐
|
||||
// margin-top: -40px;
|
||||
}
|
||||
.u-input-after{
|
||||
line-height: 22px;
|
||||
}
|
||||
.refer-wrapper .refer {//去掉过度动画
|
||||
transition:all 0s !important;
|
||||
}
|
||||
.u-col-xs-12{
|
||||
transition:all 0s !important;
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#autoquery{
|
||||
.u-modal-dialog{
|
||||
.u-modal-body{
|
||||
.u-table{
|
||||
.u-table-content{
|
||||
.u-table-body{
|
||||
.u-table-tbody{
|
||||
tr{
|
||||
td:nth-of-type(3){
|
||||
.u-form-item.u-form-inline{
|
||||
.u-input-group-outer{
|
||||
.u-input-group{
|
||||
.u-input-inner{
|
||||
.u-col-xs-12 {
|
||||
ul{
|
||||
li{
|
||||
span{
|
||||
width: 168px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 992px) {
|
||||
.u-col-md-2 {
|
||||
width: 18.66667%;
|
||||
}
|
||||
}
|
||||
.u-modal-content{
|
||||
overflow: visible !important;
|
||||
padding: 0 !important;
|
||||
.u-modal-body{
|
||||
padding-top: 0 !important;
|
||||
overflow-x: hidden;
|
||||
// padding-left: 20px;
|
||||
.u-form .u-form-item.u-form-inline{
|
||||
min-height: 40px !important;
|
||||
}
|
||||
.u-table-content{
|
||||
.u-table-tbody{
|
||||
.u-form-item{
|
||||
min-height: 40px !important;
|
||||
padding-top: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.u-form {
|
||||
.u-row{
|
||||
.checkboxStyle:first-child{
|
||||
height: 0 !important;
|
||||
&>div:first-child{
|
||||
height: 0 !important;
|
||||
}
|
||||
}
|
||||
.checkboxStyle:nth-of-type(3){
|
||||
&>div:first-child{
|
||||
height: 40px !important;
|
||||
}
|
||||
}
|
||||
.checkboxStyle:nth-of-type(4){
|
||||
&>div:first-child{
|
||||
height: 40px !important;
|
||||
}
|
||||
}
|
||||
.checkboxStyle:nth-of-type(5){
|
||||
&>div:first-child{
|
||||
height: 40px !important;
|
||||
}
|
||||
}
|
||||
.checkboxStyle:nth-of-type(6){
|
||||
&>div:first-child{
|
||||
height: 40px !important;
|
||||
}
|
||||
}
|
||||
.checkboxStyle:nth-of-type(2){
|
||||
&>div:first-child{
|
||||
height: 40px !important;
|
||||
}
|
||||
}
|
||||
.checkboxStyle:nth-of-type(7){
|
||||
&>div:first-child{
|
||||
height: 40px !important;
|
||||
}
|
||||
}
|
||||
.u-form-item.checkboxStyle-item.u-form-inline{
|
||||
min-height: 40px !important;
|
||||
}
|
||||
.u-col-md-4.u-col-sm-4.u-col-xs-4{
|
||||
width: 580px;
|
||||
.u-checkbox-label{
|
||||
width: 124px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.u-modal-footer {
|
||||
height:45px;
|
||||
.u-button{
|
||||
height: 30px !important;
|
||||
min-width: 60px !important;
|
||||
line-height: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#queryone .u-modal-content .u-modal-body .u-form .u-row .u-label{
|
||||
font-size: 13px;
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
height: 40px;
|
||||
line-height: 20px;
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue