Compare commits
4 Commits
521a729106
...
5c4ac2a745
Author | SHA1 | Date |
---|---|---|
|
5c4ac2a745 | |
|
6d60e76942 | |
|
ac6d5375a6 | |
|
346e1142fe |
|
@ -0,0 +1,8 @@
|
||||||
|
# 默认忽略的文件
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# 基于编辑器的 HTTP 客户端请求
|
||||||
|
/httpRequests/
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/dataSources/
|
||||||
|
/dataSources.local.xml
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="CoolRequestCommonStatePersistent">
|
||||||
|
<option name="searchCache" value="src/purp/pp/supplierprice/list/events/batchEvents.js" />
|
||||||
|
</component>
|
||||||
|
</project>
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="NCHomeConfig">
|
||||||
|
<option name="loginToken" value="" />
|
||||||
|
</component>
|
||||||
|
</project>
|
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ASMSmaliIdeaPluginConfiguration">
|
||||||
|
<asm skipDebug="true" skipFrames="true" skipCode="false" expandFrames="false" />
|
||||||
|
<groovy codeStyle="LEGACY" />
|
||||||
|
</component>
|
||||||
|
</project>
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/tk2312-web.iml" filepath="$PROJECT_DIR$/.idea/tk2312-web.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
|
@ -0,0 +1,12 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="WEB_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager">
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
70
config.json
70
config.json
|
@ -1,25 +1,47 @@
|
||||||
{
|
{
|
||||||
"buildEntryPath": [
|
"buildEntryPath": [
|
||||||
"./src/mmpac/mmpac/pmo/*/index.js",
|
"./src/mmpac/mmpac/pickm/*/index.js",
|
||||||
"./src/mmpac/mmpac/pickm/*/index.js"
|
"./src/mmpac/mmpac/pickm/*/*/index.js"
|
||||||
],
|
],
|
||||||
"proxyJson": false,
|
"buildEntryPath1": [
|
||||||
"proxy": "http://127.0.0.1:8080/",
|
"./src/uapbd/refer/pub/*/index.js",
|
||||||
"buildWithoutHTML": [
|
"./src/ic/ic/sapplybill/*/index.js",
|
||||||
"uap/refer",
|
"./src/uapbd/refer/pub/*/index.js",
|
||||||
"uapbd/refer"
|
"./src/arap/paybill/paybill/*/index.js",
|
||||||
],
|
"./src/sscrp/public/common/components/job-style/*/index.js",
|
||||||
"devPort": 3001,
|
"./src/ssctp/sscuser/sscapprove/*/index.js",
|
||||||
"patch": {
|
"./src/cmp/informer/SettlementCenter/*/index.js",
|
||||||
"path": [],
|
"./src/fbm/fbm/gather/*/index.js",
|
||||||
"provider": "",
|
"./src/sscivm/invoiceSale/*/*/index.js",
|
||||||
"department": "",
|
"./src/sscivm/invoiceSale/*/*/invoiceSaleList.js",
|
||||||
"project": "",
|
"./src/sscivm/invoiceSale/*/*/invoiceSaleCard.js",
|
||||||
"branch": ""
|
"./src/sscivm/invoiceApplication/invoiceApl/*/index.js",
|
||||||
} ,
|
"./src/mmpac/mmpac/pickm/*/index.js",
|
||||||
"eslint": {
|
"./src/mmpac/mmpac/pickm/*/*/index.js",
|
||||||
"path": [],
|
"./src/purp/pp/supplierprice/*/index.js",
|
||||||
"enable": true,
|
"./src/uapbd/mmbase/bom0202/*/index.js",
|
||||||
"autoFix": false
|
"./src/uapbd/material/material_grp/*/index.js",
|
||||||
}
|
"./src/pu/pu/buyingreq/*/index.js",
|
||||||
}
|
"./src/uapbd/mmbase/bom0202/*/index.js",
|
||||||
|
"./src/uapbd/material/material_grp/*/index.js"
|
||||||
|
],
|
||||||
|
"proxyJson": false,
|
||||||
|
"proxy": "http://127.0.0.1:80/",
|
||||||
|
"buildWithoutHTML": [
|
||||||
|
"uap/refer",
|
||||||
|
"uapbd/refer"
|
||||||
|
],
|
||||||
|
"devPort": 3001,
|
||||||
|
"patch": {
|
||||||
|
"path": [],
|
||||||
|
"provider": "",
|
||||||
|
"department": "",
|
||||||
|
"project": "",
|
||||||
|
"branch": ""
|
||||||
|
},
|
||||||
|
"eslint": {
|
||||||
|
"path": [],
|
||||||
|
"enable": true,
|
||||||
|
"autoFix": false
|
||||||
|
}
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
||||||
/*auVpq9xwZL1gPRSzNVP/w0hBm26YHXsnVMAUlT2iQRQ=*/
|
/*auVpq9xwZL1gPRSzNVP/w0hBm26YHXsnVMAUlT2iQRQ=*/
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { createPage, base, createPageIcon } from 'nc-lightapp-front';
|
import { createPage, base, createPageIcon,print,output} from 'nc-lightapp-front';
|
||||||
import { AREA, BUTTON, BILLTYPE, FIELD } from '../constance';
|
import { AREA, BUTTON, BILLTYPE, FIELD } from '../constance';
|
||||||
import { initPickmTemplate, initReqpickmTemplate, initTemplate,initDirectTransTemplate } from './init';
|
import { initPickmTemplate, initReqpickmTemplate, initTemplate,initDirectTransTemplate } from './init';
|
||||||
import { serachPickm_btnClick, serachReqpickm_btnClick, onList_BtnClicks, selectOrg_BtnClick ,serachDirectTrans_btnClick} from './btnClicks';
|
import { serachPickm_btnClick, serachReqpickm_btnClick, onList_BtnClicks, selectOrg_BtnClick ,serachDirectTrans_btnClick} from './btnClicks';
|
||||||
|
@ -19,6 +19,7 @@ import { onhandChange } from './afterEvent';
|
||||||
import { showWarningDialog } from '../../../../mmpub/mmpub/pub/tool/messageUtil';
|
import { showWarningDialog } from '../../../../mmpub/mmpub/pub/tool/messageUtil';
|
||||||
const { NCTabs, NCDiv } = base;
|
const { NCTabs, NCDiv } = base;
|
||||||
const NCTabPane = NCTabs.NCTabPane;
|
const NCTabPane = NCTabs.NCTabPane;
|
||||||
|
const nodekey = "insetrule_print";
|
||||||
let { issueAppcode, headPageArea, bodyPageArea } = AREA;
|
let { issueAppcode, headPageArea, bodyPageArea } = AREA;
|
||||||
class List extends Component {
|
class List extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
@ -222,6 +223,38 @@ class List extends Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//打印方法
|
||||||
|
onClickPrint = (pkarray,callback = EMPTY_FN)=>{
|
||||||
|
print(
|
||||||
|
'pdf',
|
||||||
|
urls['print'],
|
||||||
|
{
|
||||||
|
//打印请求的ur1
|
||||||
|
funcode: this.config.moduleId,
|
||||||
|
nodekey:nodekey,
|
||||||
|
oids:pkarray
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// 输出功能
|
||||||
|
|
||||||
|
onOutPut=(oids)=>{
|
||||||
|
let printdata={
|
||||||
|
funcode: this.config.moduleId,
|
||||||
|
appcode: this.config.moduleId,
|
||||||
|
nodekey: nodekey,
|
||||||
|
oids: oids,
|
||||||
|
outputType: "output",
|
||||||
|
};
|
||||||
|
//小应用编码//小应用编码
|
||||||
|
//默认模板分配的key//需要输出的单据主键//输出类型 --默认output
|
||||||
|
output({ url: urls['print'], data: printdata });
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { search, BillHeadInfo } = this.props;
|
const { search, BillHeadInfo } = this.props;
|
||||||
const { NCCreateSearch } = search;
|
const { NCCreateSearch } = search;
|
||||||
|
|
|
@ -841,7 +841,8 @@ export default async function clickBtn(props, id, text, record, index) {
|
||||||
billstatus = props.form.getFormItemsValue(AREA.formArea, 'fbillstatus');
|
billstatus = props.form.getFormItemsValue(AREA.formArea, 'fbillstatus');
|
||||||
//审批态
|
//审批态
|
||||||
if (billstatus && billstatus.value && billstatus.value == 1) {
|
if (billstatus && billstatus.value && billstatus.value == 1) {
|
||||||
detailqueryBtnClick.call(this, this.props, record);
|
// detailqueryBtnClick.call(this, this.props, record);
|
||||||
|
borrowBtnClick.call(this, this.props, record);
|
||||||
} else {
|
} else {
|
||||||
toast({color: 'warning', title: "只有审批后单据才能生产其他入库单"});
|
toast({color: 'warning', title: "只有审批后单据才能生产其他入库单"});
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,8 +11,7 @@ const AREA = {
|
||||||
cardBodyBtnArea: 'card_body', //卡片表体按钮区域
|
cardBodyBtnArea: 'card_body', //卡片表体按钮区域
|
||||||
cardBodyInnerBtnArea: 'card_body_inner', //卡片表体操作按钮区域
|
cardBodyInnerBtnArea: 'card_body_inner', //卡片表体操作按钮区域
|
||||||
borrowMaterialDialog: 'NCTable_83c3abf9', //借料弹窗
|
borrowMaterialDialog: 'NCTable_83c3abf9', //借料弹窗
|
||||||
borrowList: 'borrow_list', //借料弹窗页面编码
|
borrowList: 'borrow_list' //借料弹窗
|
||||||
BORROW_DLG: 'BorrowDlg' //借料入库
|
|
||||||
};
|
};
|
||||||
const MANUFACTURE = 'fa';//製造場景
|
const MANUFACTURE = 'fa';//製造場景
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ const headKeys = ['pk_org', 'pk_customer', 'gmf_zh', 'pk_customer_v', 'gmf_dz',
|
||||||
* def1:合同销售订单编号
|
* def1:合同销售订单编号
|
||||||
*/
|
*/
|
||||||
const bodyKeys = ['xmdj', 'sl', 'xmje', 'se', 'xmsl', 'xmjshj', 'pk_materiel',
|
const bodyKeys = ['xmdj', 'sl', 'xmje', 'se', 'xmsl', 'xmjshj', 'pk_materiel',
|
||||||
'zkje', 'fphxz', 'taxcode', 'spbm', 'sl', 'xmjshj', 'def1'];
|
'zkje', 'fphxz', 'taxcode', 'spbm', 'sl', 'def1'];
|
||||||
|
|
||||||
export default function (moduleId, key, value, changedrows, index, record) {
|
export default function (moduleId, key, value, changedrows, index, record) {
|
||||||
// console.log('valueChange', moduleId, key, value, changedrows, index);
|
// console.log('valueChange', moduleId, key, value, changedrows, index);
|
||||||
|
@ -48,9 +48,9 @@ export default function (moduleId, key, value, changedrows, index, record) {
|
||||||
(moduleId == presetVar.bodyAreaId && bodyKeys.indexOf(key) > -1)) {
|
(moduleId == presetVar.bodyAreaId && bodyKeys.indexOf(key) > -1)) {
|
||||||
hasChange = true;
|
hasChange = true;
|
||||||
}
|
}
|
||||||
// if (bodyKeys.includes(key)) {
|
/*if (bodyKeys.includes(key)) {
|
||||||
// debugger;
|
debugger;
|
||||||
// }
|
}*/
|
||||||
if (hasChange) {
|
if (hasChange) {
|
||||||
// 取得表头数据
|
// 取得表头数据
|
||||||
let headBodyData;
|
let headBodyData;
|
||||||
|
@ -72,7 +72,9 @@ export default function (moduleId, key, value, changedrows, index, record) {
|
||||||
checkrule: 'true',
|
checkrule: 'true',
|
||||||
templateid: this.props.meta.getMeta().pageid
|
templateid: this.props.meta.getMeta().pageid
|
||||||
}
|
}
|
||||||
// console.log('sendData = ', sendData);
|
if (key == 'xmjshj') {
|
||||||
|
console.log('sendData = ', sendData);
|
||||||
|
}
|
||||||
requestApi.valueChange({
|
requestApi.valueChange({
|
||||||
data: sendData,
|
data: sendData,
|
||||||
success: (data) => {
|
success: (data) => {
|
||||||
|
|
Loading…
Reference in New Issue