approveds.jsx 104 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325
  1. import React from 'react';
  2. import {
  3. Icon,
  4. Button,
  5. Input,
  6. Select,
  7. Spin,
  8. Table,
  9. message,
  10. DatePicker,
  11. Upload,
  12. Form,
  13. Modal,
  14. Col,
  15. Tag,
  16. Tabs, Tooltip
  17. } from "antd";
  18. import $ from 'jquery/src/ajax';
  19. import ResolutionDetail from "@/resolutionDetail";
  20. import ReactToPrint from "react-to-print";
  21. import moment from 'moment';
  22. import {
  23. getLiquidationStatus,
  24. getApprovedState,
  25. getProcessStatus,
  26. splitUrl,
  27. getjiedian,
  28. getboutique,
  29. getCuikuan,
  30. ShowModal,
  31. getApproval,
  32. getTaskStatus,
  33. getProjectStatus,
  34. getNewOrderStatus,
  35. getInvoiceStatus,
  36. getProjectName,
  37. getApprovedType,
  38. } from "@/tools.js";
  39. import './customer.less';
  40. import { ChooseList } from "../orderNew/chooseList";
  41. import ShowModalDiv from "@/showModal.jsx";
  42. import Project from "../../../../component/project";
  43. import ImgList from "../../../common/imgList";
  44. import ProjectDetailsReadOnly from "../../../common/projectDetailsReadOnly";
  45. import NewEditProject from "../../../common/projectOperation/newEditProject";
  46. import DepartmentList from "../../../common/departmentList";
  47. import OrderItemStatus from "../../../common/orderItemStatus";
  48. import EnterpriseNameChange from "../../../common/enterpriseNameChange";
  49. import OrderCoor from './changeComponent/orderCoor';
  50. import { approvalOptions } from "@/dataDic.js";
  51. import ContentUrl from './contentUrl';
  52. import LogPopup from "../../../common/logPopup";
  53. import Cascaders from "../../../common/cascaders";
  54. import FlowChart from '../../../common/flowchart'; // 流程图
  55. import Gxczx from '../../../common/orderDetail/gxczx' // 高新纯咨询合同说明详情
  56. import Property from '../../../common/orderDetail/property' // 知识产权情况
  57. const { TabPane } = Tabs;
  58. const { TextArea } = Input;
  59. //图片组件
  60. const PicturesWall = React.createClass({
  61. getInitialState() {
  62. return {
  63. previewVisible: false,
  64. previewImage: '',
  65. fileList: [],
  66. }
  67. },
  68. handleCancel() {
  69. this.setState({
  70. previewVisible: false
  71. })
  72. },
  73. handlePreview(file) {
  74. this.setState({
  75. previewImage: file.url || file.thumbUrl,
  76. previewVisible: true,
  77. });
  78. },
  79. handleChange(info) {
  80. let fileList = info.fileList;
  81. this.setState({
  82. fileList
  83. });
  84. this.props.fileList(fileList);
  85. },
  86. componentWillReceiveProps(nextProps) {
  87. this.state.fileList = nextProps.pictureUrl;
  88. this.state.pojectApplicationUrl = undefined;
  89. },
  90. render() {
  91. const {
  92. fileList
  93. } = this.state;
  94. return (
  95. <div style={{ display: "inline-block" }}>
  96. <ImgList
  97. domId={this.props.domId}
  98. fileList={fileList}
  99. />
  100. </div>
  101. );
  102. }
  103. });
  104. const IntentionCustomer = Form.create()(
  105. React.createClass({
  106. loadData(pageNo, pageSize) {
  107. this.setState({
  108. visitModul: false,
  109. loading: true,
  110. ispage: pageNo,
  111. modalVisible: false,
  112. });
  113. $.ajax({
  114. method: "get",
  115. dataType: "json",
  116. crossDomain: false,
  117. url: globalConfig.context + "/api/admin/newOrder/orderNewList",
  118. data: {
  119. manageType: this.props.manageType,
  120. pageNo: pageNo || 1,
  121. pageSize: pageSize || this.state.pagination.pageSize,
  122. specially: 3, //审核列表
  123. name: this.state.nameSearch, //名称
  124. orderNo: this.state.orderNoSearch, //订单编号
  125. contractNo: this.state.contractNoSearch, //合同编号
  126. deps: this.state.departmenttList, //订单部门
  127. starTime: this.state.releaseDate[0], //开始时间
  128. endTime: this.state.releaseDate[1], //结束时间
  129. approval: this.state.approvalSearch ? this.state.approvalSearch : 0, //审批状态
  130. liquidationStatus: this.state.liquidationStatusSearch, //结算状态
  131. type: this.state.approvaType.length > 0 ? this.state.approvaType.toString() : undefined, //特批类型
  132. },
  133. success: function (data) {
  134. ShowModal(this);
  135. let theArr = [];
  136. if (data.error.length || data.data.list == "") {
  137. if (data.error && data.error.length) {
  138. message.warning(data.error[0].message);
  139. }
  140. } else {
  141. for (let i = 0; i < data.data.list.length; i++) {
  142. let thisdata = data.data.list[i];
  143. theArr.push({
  144. key: thisdata.orderNo,
  145. orderNo: thisdata.orderNo,
  146. orderType: thisdata.orderType,
  147. orderStatus: thisdata.orderStatus,
  148. salesmanName: thisdata.salesmanName,
  149. processStatus: thisdata.processStatus,
  150. liquidationStatus: thisdata.liquidationStatus,
  151. approval: thisdata.approval,
  152. settlementAmount: thisdata.settlementAmount,
  153. signDate: thisdata.signDate,
  154. companyId: thisdata.companyId,
  155. companyName: thisdata.companyName,
  156. buyerId: thisdata.buyerId,
  157. userName: thisdata.userName,
  158. contractNo: thisdata.contractNo,
  159. createDate: thisdata.createDate,
  160. depName: thisdata.depName,
  161. invoiceAmount: thisdata.invoiceAmount,
  162. totalAmount: thisdata.totalAmount,
  163. financeName: thisdata.financeName,
  164. type: thisdata.type || "", // 特批类型
  165. typeExplain: thisdata.typeExplain,
  166. });
  167. }
  168. this.state.pagination.total = data.data.totalCount;
  169. }
  170. if (data.data && data.data.list && !data.data.list.length) {
  171. this.state.pagination.total = 0;
  172. }
  173. this.setState({
  174. dataSource: theArr,
  175. pageNo: pageNo,
  176. pagination: this.state.pagination,
  177. selectedRowKeys: [],
  178. });
  179. }.bind(this),
  180. }).always(
  181. function () {
  182. this.setState({
  183. loading: false,
  184. });
  185. }.bind(this)
  186. );
  187. },
  188. getInitialState() {
  189. return {
  190. approvaType: [],
  191. page: 1,
  192. declarationBatch: 1,
  193. orderNos: '',
  194. dataInfor: {},
  195. releaseDate: [],
  196. selectedRowKeys: [],
  197. rotateDeg: 0,
  198. orgCodeUrl: [],
  199. approvalSearch: "1",
  200. paginations: false,
  201. pagination: {
  202. defaultCurrent: 1,
  203. defaultPageSize: 10,
  204. showQuickJumper: true,
  205. pageSize: 10,
  206. onChange: function (page) {
  207. this.loadData(page);
  208. }.bind(this),
  209. showTotal: function (total) {
  210. return "共" + total + "条数据";
  211. },
  212. },
  213. columnsDate: [
  214. {
  215. title: "编号",
  216. dataIndex: "id",
  217. key: "id",
  218. },
  219. {
  220. title: "订单编号",
  221. dataIndex: "orderno",
  222. key: "orderno",
  223. },
  224. {
  225. title: "开票金额(万元)",
  226. dataIndex: "amount",
  227. key: "amount",
  228. },
  229. {
  230. title: "申请时间",
  231. dataIndex: "createTime",
  232. key: "createTime",
  233. },
  234. {
  235. title: "开票状态",
  236. dataIndex: "status",
  237. key: "status",
  238. render: (text, record) => {
  239. return <div>{getInvoiceStatus(text, record)} <LogPopup id={record.id} /></div>;
  240. },
  241. },
  242. ],
  243. columns: [
  244. {
  245. title: "特批类型",
  246. dataIndex: "type",
  247. key: "type",
  248. width: 110,
  249. render: (text, record) => {
  250. return (
  251. <span>
  252. {getApprovedType(text ? text.split(",").map(Number) : [], record.typeExplain)}
  253. </span>
  254. );
  255. },
  256. },
  257. {
  258. title: "合同编号",
  259. dataIndex: "contractNo",
  260. key: "contractNo",
  261. className: "title-table",
  262. },
  263. {
  264. title: "订单编号",
  265. dataIndex: "orderNo",
  266. key: "orderNo",
  267. className: "title-table",
  268. // fixed: "left"
  269. },
  270. {
  271. title: "特批状态",
  272. dataIndex: "approval",
  273. key: "approval",
  274. className: "title-table",
  275. render: (text) => {
  276. return <Tag color="#f50">{getApproval(text)}</Tag>;
  277. // if (text == 1) {
  278. // return <Tag color="#f50">{getApproval(text)}</Tag>;
  279. // }
  280. // return getApproval(text);
  281. },
  282. },
  283. {
  284. title: "客户名称",
  285. dataIndex: "userName",
  286. key: "userName",
  287. className: "title-table",
  288. render: text => {
  289. return (
  290. <Tooltip title={text}>
  291. <div
  292. // style={{
  293. // maxWidth: '150px',
  294. // overflow: 'hidden',
  295. // textOverflow: "ellipsis",
  296. // whiteSpace: 'nowrap',
  297. // }}
  298. >{text}</div>
  299. </Tooltip>
  300. )
  301. }
  302. },
  303. {
  304. title: "订单部门",
  305. dataIndex: "depName",
  306. key: "depName",
  307. className: "title-table",
  308. },
  309. {
  310. title: "订单负责人",
  311. dataIndex: "salesmanName",
  312. key: "salesmanName",
  313. className: "title-table",
  314. },
  315. {
  316. title: "财务负责人",
  317. dataIndex: "financeName",
  318. key: "financeName",
  319. className: "title-table",
  320. },
  321. {
  322. title: "签单日期",
  323. dataIndex: "signDate",
  324. key: "signDate",
  325. className: "title-table",
  326. },
  327. {
  328. title: "下单日期",
  329. dataIndex: "createDate",
  330. key: "createDate",
  331. className: "title-table",
  332. },
  333. {
  334. title: "签单金额(万元)",
  335. dataIndex: "totalAmount",
  336. key: "totalAmount",
  337. className: "title-table",
  338. },
  339. {
  340. title: "开票金额(万元)",
  341. dataIndex: "invoiceAmount",
  342. key: "invoiceAmount",
  343. className: "title-table",
  344. },
  345. {
  346. title: "已收款(万元)",
  347. dataIndex: "settlementAmount",
  348. key: "settlementAmount",
  349. className: "title-table",
  350. },
  351. {
  352. title: "结算状态",
  353. dataIndex: "liquidationStatus",
  354. key: "liquidationStatus",
  355. className: "title-table",
  356. render: (text) => {
  357. return getLiquidationStatus(text);
  358. },
  359. },
  360. {
  361. title: "流程状态",
  362. dataIndex: "processStatus",
  363. key: "processStatus",
  364. className: "title-table",
  365. render: (text, record) => {
  366. return getProcessStatus(text, record.examineName, record.approval);
  367. },
  368. },
  369. ],
  370. data: [],
  371. dataSource: [],
  372. columnsX: [
  373. {
  374. title: "业务项目名称",
  375. dataIndex: "commodityName",
  376. key: "commodityName",
  377. render: (text, record) => {
  378. return <span>{text}<span style={{ color: "red" }}>{record.patentTypeName}</span>{"-" + record.id}</span>
  379. }
  380. },
  381. {
  382. title: "项目类别",
  383. dataIndex: "cname",
  384. key: "cname",
  385. },
  386. {
  387. title: "项目数量",
  388. dataIndex: "commodityQuantity",
  389. key: "commodityQuantity",
  390. render: (text, record) => {
  391. if (record.splitStatus == 1) {
  392. return (
  393. <span>
  394. {text}{" "}
  395. {/* <Tag
  396. color="#108ee9"
  397. onClick={(e) => {
  398. e.stopPropagation();
  399. this.showRes(record);
  400. }}
  401. >
  402. 已拆
  403. </Tag> */}
  404. </span>
  405. );
  406. } else {
  407. return text;
  408. }
  409. },
  410. },
  411. {
  412. title: "金额(万元)",
  413. dataIndex: "commodityPrice",
  414. key: "commodityPrice",
  415. },
  416. {
  417. title: "负责人",
  418. dataIndex: "contacts",
  419. key: "contacts",
  420. },
  421. {
  422. title: "负责人电话",
  423. dataIndex: "contactsMobile",
  424. key: "contactsMobile",
  425. },
  426. {
  427. title: "主要项目",
  428. dataIndex: "main",
  429. key: "main",
  430. render: (text) => {
  431. return text ? "是" : "否";
  432. },
  433. },
  434. {
  435. title: "项目说明",
  436. dataIndex: "taskComment",
  437. key: "taskComment",
  438. render: (text) => {
  439. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  440. },
  441. },
  442. ],
  443. columnsrizhi: [
  444. {
  445. title: "流程",
  446. dataIndex: "processName",
  447. key: "processName",
  448. },
  449. {
  450. title: "操作人",
  451. dataIndex: "adminName",
  452. key: "adminName",
  453. },
  454. {
  455. title: "时间",
  456. dataIndex: "createDate",
  457. key: "createDate",
  458. },
  459. {
  460. title: "备注",
  461. dataIndex: "remarks",
  462. key: "remarks",
  463. },
  464. ],
  465. dataSourceX: [],
  466. ContactsListsNew: [
  467. {
  468. title: "项目名称",
  469. dataIndex: "commodityName",
  470. key: "commodityName",
  471. render: (text, record) => {
  472. return <span>{text + "-" + record.tid}</span>;
  473. },
  474. },
  475. {
  476. title: "项目分类",
  477. dataIndex: "projectType",
  478. key: "projectType",
  479. render: (text) => {
  480. let arr = this.state.dataSourceX || [];
  481. let str = "";
  482. for (let i = 0; i < arr.length; i++) {
  483. if (this.state.dataSourceX[i].sort == text) {
  484. str = this.state.dataSourceX[i].cname;
  485. return <span>{str}</span>;
  486. }
  487. }
  488. },
  489. },
  490. {
  491. title: "催款科目",
  492. dataIndex: "dunTypeName",
  493. key: "dunTypeName",
  494. render: (text, record) => {
  495. if (record.customizeName) {
  496. return text + record.customizeName;
  497. }
  498. return <span>{text}</span>;
  499. },
  500. },
  501. {
  502. title: "时间(天)",
  503. dataIndex: "waitDay",
  504. key: "waitDay",
  505. render: (text, record) => {
  506. if (record.dunTypeName) {
  507. if (record.customizeTimes) {
  508. return record.customizeTimes;
  509. }
  510. return <span>{text}</span>;
  511. }
  512. },
  513. },
  514. {
  515. title: "金额(万元)",
  516. dataIndex: "money",
  517. key: "money",
  518. render: (text, record) => {
  519. if (record.dunTypeName) {
  520. if (record.appropriationRatio) {
  521. let percent = Number(record.appropriationRatio * 100).toFixed(2);
  522. percent += "%";
  523. return <span>{percent}(拨款比例)</span>;
  524. } else {
  525. return <span>{text}</span>;
  526. }
  527. }
  528. },
  529. },
  530. {
  531. title: "服务年限",
  532. dataIndex: "startDate",
  533. key: "startDate",
  534. render: (text, record) => {
  535. if (record.dunTypeName) {
  536. return <span>{text}</span>;
  537. }
  538. },
  539. },
  540. {
  541. title: "催款状态",
  542. dataIndex: "status",
  543. key: "status",
  544. render: (text) => {
  545. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  546. },
  547. },
  548. ],
  549. ContactsLists: [
  550. {
  551. title: "催款科目",
  552. dataIndex: "dunSubject",
  553. key: "dunSubject",
  554. render: (text) => {
  555. return getjiedian(text);
  556. },
  557. },
  558. {
  559. title: "金额(万元)",
  560. dataIndex: "money",
  561. key: "money",
  562. },
  563. {
  564. title: "催款状态",
  565. dataIndex: "dunStatus",
  566. key: "dunStatus",
  567. render: (text) => {
  568. return getCuikuan(text);
  569. },
  570. },
  571. ],
  572. waterlistDate: [
  573. {
  574. title: "订单编号",
  575. dataIndex: "orderNo",
  576. key: "orderNo",
  577. },
  578. {
  579. title: "平台流水号",
  580. dataIndex: "billNo",
  581. key: "billNo",
  582. // fixed: "left"
  583. },
  584. {
  585. title: "收款金额(万元)",
  586. dataIndex: "transactionAmount",
  587. key: "transactionAmount",
  588. },
  589. {
  590. title: "收款方",
  591. dataIndex: "payeeName",
  592. key: "payeeName",
  593. },
  594. {
  595. title: "付款方",
  596. dataIndex: "payerName",
  597. key: "payerName",
  598. },
  599. {
  600. title: "流水科目",
  601. dataIndex: "transactionSubject",
  602. key: "transactionSubject",
  603. render: (text) => {
  604. return getTransactionProject(text);
  605. },
  606. },
  607. {
  608. title: "收款类型",
  609. dataIndex: "type",
  610. key: "type",
  611. },
  612. {
  613. title: "财务流水时间",
  614. dataIndex: "financialPayTimes",
  615. key: "financialPayTimes",
  616. },
  617. {
  618. title: "财务流水号",
  619. dataIndex: "financialPayNo",
  620. key: "financialPayNo",
  621. },
  622. {
  623. title: "订单负责人",
  624. dataIndex: "saleName",
  625. key: "saleName",
  626. },
  627. {
  628. title: "创建时间",
  629. dataIndex: "createTimes",
  630. key: "createTimes",
  631. },
  632. ],
  633. timeColumns: [
  634. {
  635. title: "合同编号",
  636. dataIndex: "contractNo",
  637. key: "contractNo",
  638. },
  639. {
  640. title: "订单编号",
  641. dataIndex: "orderNo",
  642. key: "orderNo",
  643. },
  644. {
  645. title: "客户名称",
  646. dataIndex: "userName",
  647. key: "userName",
  648. render: text => {
  649. return (
  650. <Tooltip title={text}>
  651. <div
  652. // style={{
  653. // maxWidth: '150px',
  654. // overflow: 'hidden',
  655. // textOverflow: "ellipsis",
  656. // whiteSpace: 'nowrap',
  657. // }}
  658. >{text}</div>
  659. </Tooltip>
  660. )
  661. }
  662. },
  663. {
  664. title: "订单部门",
  665. dataIndex: "depName",
  666. key: "depName",
  667. },
  668. {
  669. title: "订单负责人",
  670. dataIndex: "salesmanName",
  671. key: "salesmanName",
  672. },
  673. {
  674. title: "项目类别",
  675. dataIndex: "cname",
  676. key: "cname",
  677. },
  678. {
  679. title: "项目编号",
  680. dataIndex: "id",
  681. key: "id",
  682. },
  683. {
  684. title: "项目名称",
  685. dataIndex: "taskName",
  686. key: "taskName",
  687. },
  688. {
  689. title: "项目负责人",
  690. dataIndex: "receiverName",
  691. key: "receiverName",
  692. },
  693. {
  694. title: "项目价格(万元)",
  695. dataIndex: "commodityPrice",
  696. key: "commodityPrice",
  697. },
  698. {
  699. title: "数量(个)",
  700. dataIndex: "commodityQuantity",
  701. key: "commodityQuantity",
  702. },
  703. {
  704. title: "任务状态",
  705. dataIndex: "taskStatus",
  706. key: "taskStatus",
  707. render: (text) => {
  708. return getTaskStatus(text);
  709. },
  710. },
  711. {
  712. title: "项目状态",
  713. dataIndex: "projectStatus",
  714. key: "projectStatus",
  715. render: (text) => {
  716. return getProjectName(text);
  717. },
  718. },
  719. {
  720. title: "工时",
  721. dataIndex: "hours",
  722. key: "hours",
  723. },
  724. {
  725. title: "是否外包",
  726. dataIndex: "outsource",
  727. key: "outsource",
  728. render: (text) => {
  729. if (text == 0) {
  730. return "否";
  731. } else if (text == 1) {
  732. return "是";
  733. }
  734. },
  735. },
  736. {
  737. title: "签单日期",
  738. dataIndex: "signTime",
  739. key: "signTime",
  740. },
  741. {
  742. title: "派单日期",
  743. dataIndex: "creteTime",
  744. key: "creteTime",
  745. },
  746. {
  747. title: "分配时间",
  748. dataIndex: "taskDistributionTime",
  749. key: "taskDistributionTime",
  750. },
  751. {
  752. title: "完成时间",
  753. dataIndex: "taskEndTime",
  754. key: "taskEndTime",
  755. },
  756. ],
  757. resVisible: false,
  758. cuiColumns: [
  759. {
  760. title: "序号",
  761. dataIndex: "key",
  762. key: "key",
  763. },
  764. {
  765. title: "合同编号",
  766. dataIndex: "contractNo",
  767. key: "contractNo",
  768. },
  769. {
  770. title: "订单编号",
  771. dataIndex: "orderNo",
  772. key: "orderNo",
  773. },
  774. {
  775. title: "客户名称",
  776. dataIndex: "userName",
  777. key: "userName",
  778. render: text => {
  779. return (
  780. <Tooltip title={text}>
  781. <div
  782. // style={{
  783. // maxWidth: '150px',
  784. // overflow: 'hidden',
  785. // textOverflow: "ellipsis",
  786. // whiteSpace: 'nowrap',
  787. // }}
  788. >{text}</div>
  789. </Tooltip>
  790. )
  791. }
  792. },
  793. {
  794. title: "订单负责人",
  795. dataIndex: "salesmanName",
  796. key: "salesmanName",
  797. },
  798. {
  799. title: "订单部门",
  800. dataIndex: "depName",
  801. key: "depName",
  802. },
  803. {
  804. title: "订单状态",
  805. dataIndex: "orderStatus",
  806. key: "orderStatus",
  807. render: (text) => {
  808. return getNewOrderStatus(text);
  809. },
  810. },
  811. {
  812. title: "项目状态",
  813. dataIndex: "projectStatus",
  814. key: "projectStatus",
  815. render: (text) => {
  816. return getProjectName(text);
  817. },
  818. },
  819. {
  820. title: "签单金额",
  821. dataIndex: "totalAmount",
  822. key: "totalAmount",
  823. },
  824. {
  825. title: "结算状态",
  826. dataIndex: "liquidationStatus",
  827. key: "liquidationStatus",
  828. render: (text) => {
  829. return getLiquidationStatus(text);
  830. },
  831. },
  832. {
  833. title: "已收款",
  834. dataIndex: "settlementAmount",
  835. key: "settlementAmount",
  836. },
  837. {
  838. title: "应收款",
  839. dataIndex: "accountsReceivable",
  840. key: "accountsReceivable",
  841. },
  842. {
  843. title: "催收科目",
  844. dataIndex: "dunSubject",
  845. key: "dunSubject",
  846. // render: text => {
  847. // return getjiedian(text);
  848. // }
  849. },
  850. {
  851. title: "催款状态",
  852. dataIndex: "dunStatus",
  853. key: "dunStatus",
  854. },
  855. {
  856. title: "催收启动时间",
  857. dataIndex: "startDate",
  858. key: "startDate",
  859. },
  860. ],
  861. proColumns: [
  862. {
  863. title: "序号",
  864. dataIndex: "key",
  865. key: "key",
  866. },
  867. {
  868. title: "合同编号",
  869. dataIndex: "contractNo",
  870. key: "contractNo",
  871. },
  872. {
  873. title: "订单编号",
  874. dataIndex: "orderNo",
  875. key: "orderNo",
  876. },
  877. // {
  878. // title: "项目编号",
  879. // dataIndex: "id",
  880. // key: "id"
  881. // },
  882. {
  883. title: "客户名称",
  884. dataIndex: "userName",
  885. key: "userName",
  886. render: text => {
  887. return (
  888. <Tooltip title={text}>
  889. <div
  890. // style={{
  891. // maxWidth: '150px',
  892. // overflow: 'hidden',
  893. // textOverflow: "ellipsis",
  894. // whiteSpace: 'nowrap',
  895. // }}
  896. >{text}</div>
  897. </Tooltip>
  898. )
  899. }
  900. },
  901. {
  902. title: "订单负责人",
  903. dataIndex: "salesmanName",
  904. key: "salesmanName",
  905. },
  906. {
  907. title: "是否主项目",
  908. dataIndex: "main",
  909. key: "main",
  910. render: (text) => {
  911. return text == 0 ? "否" : "是";
  912. },
  913. },
  914. {
  915. title: "项目类别",
  916. dataIndex: "cname",
  917. key: "cname",
  918. },
  919. {
  920. title: "项目名称",
  921. dataIndex: "commodityName",
  922. key: "commodityName",
  923. },
  924. {
  925. title: "项目数量",
  926. dataIndex: "commodityQuantity",
  927. key: "commodityQuantity",
  928. render: (text, record) => {
  929. if (record.splitStatus == 1) {
  930. return (
  931. <span>
  932. {text}{" "}
  933. <Tag
  934. color="#108ee9"
  935. onClick={(e) => {
  936. e.stopPropagation();
  937. this.showRes(record);
  938. }}
  939. >
  940. 已拆
  941. </Tag>
  942. </span>
  943. );
  944. } else {
  945. return text;
  946. }
  947. },
  948. },
  949. {
  950. title: "服务市价",
  951. dataIndex: "commodityPrice",
  952. key: "commodityPrice",
  953. },
  954. {
  955. title: "证书编号",
  956. dataIndex: "certificateNumber",
  957. key: "certificateNumber",
  958. },
  959. {
  960. title: "项目状态",
  961. dataIndex: "projectStatus",
  962. key: "projectStatus",
  963. render: (text) => {
  964. return getProjectName(text);
  965. },
  966. },
  967. {
  968. title: "项目说明",
  969. dataIndex: "taskComment",
  970. key: "taskComment",
  971. },
  972. // {
  973. // title: "外包(内部)公司",
  974. // dataIndex: "outsourceName",
  975. // key: "outsourceName",
  976. // },
  977. // {
  978. // title: "外包(内部)价格",
  979. // dataIndex: "outsourcePrice",
  980. // key: "outsourcePrice",
  981. // },
  982. ],
  983. };
  984. },
  985. //页面加载函数
  986. componentWillMount() {
  987. this.loadData();
  988. },
  989. componentWillReceiveProps(nextProps) {
  990. let next = JSON.stringify(nextProps);
  991. let props = JSON.stringify(this.props);
  992. if (next !== props) {
  993. location.reload();
  994. }
  995. },
  996. //整行点击
  997. tableRowClick(record) {
  998. this.setState({
  999. visible: true,
  1000. orderNos: record.orderNo
  1001. });
  1002. this.xiangqing(record.orderNo);
  1003. this.xiangmu(record.orderNo);
  1004. this.jiedian(record.orderNo);
  1005. this.jiedianNew(record.orderNo);
  1006. },
  1007. //点击打卡项目详情
  1008. tableRowClickX(record) {
  1009. // console.log(record);
  1010. this.setState({
  1011. jid: record.id, //项目ID
  1012. kid: record.commodityId, //商品ID
  1013. commodityName: record.commodityName, //金额
  1014. commodityPrice: record.commodityPrice, //金额
  1015. commodityQuantity: record.commodityQuantity, //数量
  1016. taskComment: record.taskComment, //备注
  1017. main: record.main.toString(), //是否为主要
  1018. addnextVisible: true,
  1019. dataInfor: record,
  1020. addState: 0,
  1021. });
  1022. },
  1023. //项目详情关闭
  1024. nextCancel() {
  1025. this.setState({
  1026. addnextVisible: false,
  1027. });
  1028. },
  1029. //订单详情
  1030. xiangqing(orderNos) {
  1031. $.ajax({
  1032. method: "get",
  1033. dataType: "json",
  1034. crossDomain: false,
  1035. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  1036. data: {
  1037. orderNo: orderNos,
  1038. },
  1039. success: function (data) {
  1040. if (data.error.length || data.data.list == "") {
  1041. if (data.error && data.error.length) {
  1042. message.warning(data.error[0].message);
  1043. }
  1044. } else {
  1045. let thisdata = data.data;
  1046. this.setState({
  1047. orderUid: thisdata.uid,
  1048. orderNo: thisdata.orderNo, //订单编号
  1049. contractNo: thisdata.contractNo, //合同编号
  1050. userName: thisdata.userName, //客户名称
  1051. signDate: thisdata.signDate, //签单时间
  1052. examineName: thisdata.examineName,
  1053. processStatus: thisdata.processStatus, //流程状态
  1054. liquidationStatus: thisdata.liquidationStatus, //结算状态
  1055. contacts: thisdata.contacts, //企业联系人
  1056. contactMobile: thisdata.contactMobile, //联系人电话
  1057. legalPerson: thisdata.legalPerson, //法人
  1058. legalPersonTel: thisdata.legalPersonTel, //法人电话
  1059. firstAmount: thisdata.firstAmount, //签单金额
  1060. totalAmount: thisdata.totalAmount, //首付金额
  1061. approval: thisdata.approval, //特批状态
  1062. settlementAmount: thisdata.settlementAmount, //已收款项
  1063. orderRemarks: thisdata.orderRemarks, //订单留言
  1064. orgCodeUrl: thisdata.contractPictureUrl
  1065. ? splitUrl(
  1066. thisdata.contractPictureUrl,
  1067. ",",
  1068. globalConfig.avatarHost + "/upload"
  1069. )
  1070. : [], //图片地址
  1071. replenishUrl: thisdata.agreementUrl
  1072. ? splitUrl(
  1073. thisdata.agreementUrl,
  1074. ",",
  1075. globalConfig.avatarHost + "/upload"
  1076. )
  1077. : [],
  1078. contentUrl: thisdata.serviceContent
  1079. ? splitUrl(
  1080. thisdata.serviceContent,
  1081. ",",
  1082. globalConfig.avatarHost + "/upload"
  1083. )
  1084. : [], //图片地址
  1085. salesmanName: thisdata.salesmanName, //营销员名称
  1086. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  1087. financeName: thisdata.financeName, //财务名称
  1088. financeMobile: thisdata.financeMobile, //财务电话
  1089. outsource: thisdata.outsource == 0 ? "否" : "是",
  1090. deleteSign: thisdata.deleteSign,
  1091. // 高新纯咨询合同说明
  1092. knowledgeServices: thisdata.knowledgeServices, //知识产权服务
  1093. auditServices: thisdata.auditServices, //审计服务
  1094. addDeductionServices: thisdata.addDeductionServices, //加计扣除服务
  1095. knowledgeOther: thisdata.knowledgeOther, //知识产权服务其他描述
  1096. auditOther: thisdata.auditOther, //审计服务其他描述
  1097. addDeductionOther: thisdata.addDeductionOther, //加计扣除服务其他描述
  1098. patentStatus: thisdata.patentStatus, //知识产权情况
  1099. type: thisdata.type,// 特批类型
  1100. typeExplain: thisdata.typeExplain, // 特批类型
  1101. });
  1102. }
  1103. }.bind(this),
  1104. }).always(
  1105. function () {
  1106. this.setState({
  1107. loading: false,
  1108. });
  1109. }.bind(this)
  1110. );
  1111. },
  1112. //项目列表
  1113. xiangmu(orderNos) {
  1114. $.ajax({
  1115. method: "get",
  1116. dataType: "json",
  1117. crossDomain: false,
  1118. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  1119. data: {
  1120. orderNo: orderNos,
  1121. },
  1122. success: function (data) {
  1123. let theArr = [];
  1124. if (data.error.length || data.data.list == "") {
  1125. if (data.error && data.error.length) {
  1126. message.warning(data.error[0].message);
  1127. }
  1128. } else {
  1129. for (let i = 0; i < data.data.length; i++) {
  1130. let thisdata = data.data[i];
  1131. thisdata.key = i;
  1132. theArr.push(thisdata);
  1133. }
  1134. }
  1135. this.setState({
  1136. dataSourceX: theArr,
  1137. });
  1138. }.bind(this),
  1139. }).always(
  1140. function () {
  1141. this.setState({
  1142. loading: false,
  1143. });
  1144. }.bind(this)
  1145. );
  1146. },
  1147. rizhi() {
  1148. // console.log(this.state.orderNo);
  1149. this.setState({
  1150. loading: true,
  1151. });
  1152. $.ajax({
  1153. method: "get",
  1154. dataType: "json",
  1155. crossDomain: false,
  1156. url: "/api/admin/newOrder/selectOrderLog",
  1157. data: {
  1158. orderNo: this.state.orderNo,
  1159. },
  1160. success: function (data) {
  1161. let theArr = [];
  1162. let thisData = data.data;
  1163. if (thisData && !thisData.length) {
  1164. if (data.error && data.error.length) {
  1165. message.warning(data.error[0].message);
  1166. }
  1167. thisData = {};
  1168. } else {
  1169. for (let i = 0; i < data.data.length; i++) {
  1170. let thisdata = data.data[i];
  1171. theArr.push({
  1172. processName: thisdata.processName,
  1173. adminName: thisdata.adminName,
  1174. createDate: thisdata.createDate,
  1175. remarks: thisdata.remarks,
  1176. });
  1177. }
  1178. }
  1179. this.setState({
  1180. dataSourcerizhi: theArr,
  1181. });
  1182. }.bind(this),
  1183. }).always(
  1184. function () {
  1185. this.setState({
  1186. loading: false,
  1187. });
  1188. }.bind(this)
  1189. );
  1190. },
  1191. //查看订单日志
  1192. getOrderLog() {
  1193. this.setState({
  1194. rizhivisible: true,
  1195. });
  1196. this.rizhi();
  1197. },
  1198. closeOrderLog() {
  1199. this.setState({
  1200. rizhivisible: false,
  1201. });
  1202. },
  1203. //节点列表
  1204. jiedian(orderNos) {
  1205. $.ajax({
  1206. method: "get",
  1207. dataType: "json",
  1208. crossDomain: false,
  1209. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  1210. data: {
  1211. orderNo: orderNos,
  1212. },
  1213. success: function (data) {
  1214. let theArr = [];
  1215. let thisData = [];
  1216. if (data.error.length || data.data.list == "") {
  1217. if (data.error && data.error.length) {
  1218. message.warning(data.error[0].message);
  1219. }
  1220. } else {
  1221. for (let i = 0; i < data.data.length; i++) {
  1222. thisData = data.data[i];
  1223. theArr.push({
  1224. key: i,
  1225. dunSubject: thisData.dunSubject
  1226. ? thisData.dunSubject.toString()
  1227. : "", //催款科目
  1228. id: thisData.id, //节点Id
  1229. money: thisData.money, //催款金额
  1230. dunStatus: thisData.dunStatus, //催款状态
  1231. });
  1232. }
  1233. this.setState({
  1234. contactList: theArr,
  1235. });
  1236. }
  1237. }.bind(this),
  1238. }).always(
  1239. function () {
  1240. this.setState({
  1241. loading: false,
  1242. });
  1243. }.bind(this)
  1244. );
  1245. },
  1246. //查看催款节点
  1247. jiedianNew(orderNos) {
  1248. $.ajax({
  1249. method: "get",
  1250. dataType: "json",
  1251. crossDomain: false,
  1252. url:
  1253. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  1254. data: {
  1255. orderNo: orderNos,
  1256. },
  1257. success: function (data) {
  1258. if (data.error && data.error.length) {
  1259. message.warning(data.error[0].message);
  1260. } else {
  1261. let theArr = [];
  1262. let thisData = [];
  1263. let arr = data.data || [];
  1264. let totalCui = 0;
  1265. for (let i = 0; i < arr.length; i++) {
  1266. thisData = arr[i];
  1267. totalCui += +thisData.money;
  1268. theArr.push({
  1269. key: i,
  1270. dunSubject: thisData.dunSubject
  1271. ? thisData.dunSubject.toString()
  1272. : "", //催款科目
  1273. id: thisData.id, //节点Id
  1274. money: thisData.money, //催款金额
  1275. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  1276. commodityName: thisData.commodityName,
  1277. projectType: thisData.projectType,
  1278. dunTypeName: thisData.dunTypeName,
  1279. status: thisData.status,
  1280. waitDay: thisData.waitDay,
  1281. effectiveCount: thisData.effectiveCount,
  1282. startDate: thisData.startDate,
  1283. dunType: thisData.dunType,
  1284. appropriationRatio: thisData.appropriationRatio,
  1285. customizeName: thisData.customizeName,
  1286. customizeTimes: thisData.customizeTimes,
  1287. tid: thisData.tid,
  1288. });
  1289. }
  1290. if (!totalCui) {
  1291. totalCui = 0;
  1292. }
  1293. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  1294. this.setState({
  1295. contactListNew: theArr,
  1296. totalCui,
  1297. });
  1298. }
  1299. }.bind(this),
  1300. }).always(
  1301. function () {
  1302. this.setState({
  1303. loading: false,
  1304. });
  1305. }.bind(this)
  1306. );
  1307. },
  1308. //审核通过
  1309. examOk() {
  1310. if (!this.state.reason) {
  1311. message.warning("请填写备注");
  1312. return;
  1313. }
  1314. if (!this.state.reason.replace(/\s+/g, '')) {
  1315. message.warning("请填写备注");
  1316. return;
  1317. }
  1318. this.setState({
  1319. loading: true,
  1320. });
  1321. $.ajax({
  1322. method: "post",
  1323. dataType: "json",
  1324. crossDomain: false,
  1325. url: globalConfig.context + "/api/admin/newOrder/approvalOrder",
  1326. data: {
  1327. orderNo: this.state.orderNo,
  1328. confirm: 2,
  1329. reason: this.state.reason,
  1330. },
  1331. success: function (data) {
  1332. if (data.error.length || data.data.list == "") {
  1333. if (data.error && data.error.length) {
  1334. message.warning(data.error[0].message);
  1335. }
  1336. } else {
  1337. message.success("该特批订单已通过审核~");
  1338. this.setState({
  1339. visible: false,
  1340. });
  1341. this.passCancel();
  1342. this.reset();
  1343. }
  1344. }.bind(this),
  1345. }).always(
  1346. function () {
  1347. this.setState({
  1348. loading: false,
  1349. });
  1350. }.bind(this)
  1351. );
  1352. },
  1353. //审核不通过
  1354. examOks() {
  1355. if (!this.state.reason) {
  1356. message.warning("请填写备注");
  1357. return;
  1358. }
  1359. if (!this.state.reason.replace(/\s+/g, '')) {
  1360. message.warning("请填写备注");
  1361. return;
  1362. }
  1363. this.setState({
  1364. loading: true,
  1365. });
  1366. $.ajax({
  1367. method: "post",
  1368. dataType: "json",
  1369. crossDomain: false,
  1370. url: globalConfig.context + "/api/admin/newOrder/approvalOrder",
  1371. data: {
  1372. orderNo: this.state.orderNo,
  1373. confirm: 3,
  1374. reason: this.state.reason,
  1375. },
  1376. success: function (data) {
  1377. if (data.error.length || data.data.list == "") {
  1378. if (data.error && data.error.length) {
  1379. message.warning(data.error[0].message);
  1380. }
  1381. } else {
  1382. message.success("该特批订单已被驳回~");
  1383. this.setState({
  1384. visible: false,
  1385. noVisible: false,
  1386. reason: "",
  1387. });
  1388. this.loadData();
  1389. this.resets();
  1390. }
  1391. }.bind(this),
  1392. }).always(
  1393. function () {
  1394. this.setState({
  1395. loading: false,
  1396. });
  1397. }.bind(this)
  1398. );
  1399. },
  1400. //点击拒绝
  1401. examNo() {
  1402. this.setState({
  1403. noVisible: true,
  1404. });
  1405. },
  1406. //关闭输入理由框
  1407. noCancel() {
  1408. this.setState({
  1409. noVisible: false,
  1410. reason: "",
  1411. });
  1412. },
  1413. //搜索
  1414. search() {
  1415. this.setState({
  1416. //signBillVisible:false
  1417. });
  1418. this.loadData();
  1419. },
  1420. //重置
  1421. reset() {
  1422. this.setState({
  1423. signBillVisible: false,
  1424. });
  1425. this.state.orderNoSearch = undefined;
  1426. this.state.contractNoSearch = undefined;
  1427. this.state.nameSearch = undefined;
  1428. this.state.liquidationStatusSearch = [];
  1429. this.state.departmenttList = undefined;
  1430. this.state.releaseDate[0] = undefined;
  1431. this.state.releaseDate[1] = undefined;
  1432. this.state.approvalSearch = "1";
  1433. this.Cascaders.empty();
  1434. this.state.approvaType = [];
  1435. this.loadData();
  1436. },
  1437. resets() {
  1438. this.state.orderNo = "";
  1439. this.state.customerName = "";
  1440. this.state.departmenttSearch = undefined;
  1441. this.state.releaseDate[0] = undefined;
  1442. this.state.releaseDate[1] = undefined;
  1443. },
  1444. getOrgCodeUrl(e) {
  1445. this.setState({ orgCodeUrl: e });
  1446. },
  1447. getReplenishUrl(e) {
  1448. this.setState({ replenishUrl: e });
  1449. },
  1450. downImg() {
  1451. let num = 0;
  1452. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1453. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1454. num = i;
  1455. }
  1456. }
  1457. if (num == this.state.orgCodeUrl.length - 1) {
  1458. return message.warning("已经是最后一张了哦");
  1459. }
  1460. this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
  1461. this.setState({
  1462. previewImage: this.state.previewImage,
  1463. rotateDeg: 0,
  1464. });
  1465. },
  1466. upImg() {
  1467. let num = 0;
  1468. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1469. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1470. num = i;
  1471. }
  1472. }
  1473. if (num == 0) {
  1474. return message.warning("已经是第一张了哦");
  1475. }
  1476. this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
  1477. this.setState({
  1478. previewImage: this.state.previewImage,
  1479. rotateDeg: 0,
  1480. });
  1481. },
  1482. rotate() {
  1483. let rotateDeg = this.state.rotateDeg + 90;
  1484. this.setState({
  1485. rotateDeg,
  1486. });
  1487. },
  1488. downImgs() {
  1489. let num = 0;
  1490. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1491. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1492. num = i;
  1493. }
  1494. }
  1495. if (num == this.state.replenishUrl.length - 1) {
  1496. return message.warning("已经是最后一张了哦");
  1497. }
  1498. this.state.previewImage = this.state.replenishUrl[num + 1].url;
  1499. this.setState({
  1500. previewImage: this.state.previewImage,
  1501. rotateDeg: 0,
  1502. });
  1503. },
  1504. upImgs() {
  1505. let num = 0;
  1506. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1507. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1508. num = i;
  1509. }
  1510. }
  1511. if (num == 0) {
  1512. return message.warning("已经是第一张了哦");
  1513. }
  1514. this.state.previewImage = this.state.replenishUrl[num - 1].url;
  1515. this.setState({
  1516. previewImage: this.state.previewImage,
  1517. rotateDeg: 0,
  1518. });
  1519. },
  1520. rotates() {
  1521. let rotateDeg = this.state.rotateDeg + 90;
  1522. this.setState({
  1523. rotateDeg,
  1524. });
  1525. },
  1526. changeList(arr) {
  1527. const newArr = [];
  1528. this.state.columns.forEach((item) => {
  1529. arr.forEach((val) => {
  1530. if (val === item.title) {
  1531. newArr.push(item);
  1532. }
  1533. });
  1534. });
  1535. this.setState({
  1536. changeList: newArr,
  1537. });
  1538. },
  1539. //关闭详情
  1540. visitCancel() {
  1541. this.setState({
  1542. visible: false,
  1543. });
  1544. this.resets();
  1545. },
  1546. visitOk() {
  1547. this.setState({
  1548. visible: false,
  1549. });
  1550. this.resets();
  1551. },
  1552. waterData() {
  1553. this.state.data = [];
  1554. this.setState({
  1555. loading: true,
  1556. });
  1557. $.ajax({
  1558. method: "get",
  1559. dataType: "json",
  1560. crossDomain: false,
  1561. url: globalConfig.context + "/api/admin/financial/myBillList",
  1562. data: {
  1563. orderNo: this.state.selectedRowKeys[0],
  1564. pageSize: 9999999,
  1565. whoType: 1,
  1566. },
  1567. success: function (data) {
  1568. let theArr = [];
  1569. let waterSum = 0;
  1570. if (!data.data || !data.data.list) {
  1571. if (data.error && data.error.length) {
  1572. message.warning(data.error[0].message);
  1573. }
  1574. } else {
  1575. for (let i = 0; i < data.data.list.length; i++) {
  1576. let thisdata = data.data.list[i];
  1577. waterSum += parseFloat(thisdata.transactionAmount);
  1578. theArr.push({
  1579. key: i,
  1580. orderNo: thisdata.orderNo,
  1581. billNo: thisdata.billNo,
  1582. transactionAmount: thisdata.transactionAmount,
  1583. payeeName: thisdata.payeeName,
  1584. payerName: thisdata.payerName,
  1585. transactionSubject: thisdata.transactionSubject,
  1586. transactionChannel: thisdata.transactionChannel,
  1587. financialPayTimes: thisdata.financialPayTimes,
  1588. financialPayNo: thisdata.financialPayNo,
  1589. createrName: thisdata.createrName,
  1590. saleName: thisdata.saleName,
  1591. createTimes: thisdata.createTimes,
  1592. type: thisdata.type == 0 ? "手工" : "批量",
  1593. });
  1594. }
  1595. }
  1596. this.setState({
  1597. waterData: theArr,
  1598. waterSum: (Math.round(waterSum * 1000000) / 1000000).toFixed(6),
  1599. });
  1600. }.bind(this),
  1601. }).always(
  1602. function () {
  1603. this.setState({
  1604. loading: false,
  1605. });
  1606. }.bind(this)
  1607. );
  1608. },
  1609. waterCanl() {
  1610. this.setState({
  1611. cvisible: false,
  1612. });
  1613. },
  1614. // 拆分详细
  1615. showRes(record) {
  1616. this.setState({
  1617. resVisible: true,
  1618. resRecord: record,
  1619. });
  1620. },
  1621. resCancel() {
  1622. this.setState({
  1623. resVisible: false,
  1624. });
  1625. },
  1626. exportKaip() {
  1627. window.location.href =
  1628. globalConfig.context +
  1629. "/api/admin/receivables/exportInvoice?" +
  1630. `orderNo=${this.state.selectedRowKeys}`;
  1631. },
  1632. exportAll() {
  1633. message.config({
  1634. duration: 20,
  1635. });
  1636. let loading = message.loading("下载中...");
  1637. this.setState({
  1638. exportPendingLoading: true,
  1639. });
  1640. let data = {
  1641. orderNo: this.state.orderNoSearch,
  1642. buyerName: this.state.nameSearch,
  1643. deps: this.state.departmenttList,
  1644. contractNo: this.state.contractNoSearch,
  1645. processStatus: this.state.processStatusSearch,
  1646. };
  1647. $.ajax({
  1648. method: "get",
  1649. dataType: "json",
  1650. crossDomain: false,
  1651. url: "/api/admin/receivables/exportReceivables",
  1652. data,
  1653. success: function (data) {
  1654. if (data.error.length === 0) {
  1655. this.download(data.data);
  1656. } else {
  1657. message.warning(data.error[0].message);
  1658. }
  1659. }.bind(this),
  1660. }).always(
  1661. function () {
  1662. loading();
  1663. this.setState({
  1664. exportPendingLoading: false,
  1665. });
  1666. }.bind(this)
  1667. )
  1668. // window.location.href =
  1669. // globalConfig.context +
  1670. // "/api/admin/receivables/exportReceivables?" +
  1671. // `orderNo=${
  1672. // this.state.orderNoSearch ? this.state.orderNoSearch : ""
  1673. // }&buyerName=${
  1674. // this.state.nameSearch ? this.state.nameSearch : ""
  1675. // }&departmentId=${
  1676. // this.state.departmenttList ? this.state.departmenttList : ""
  1677. // }&contractNo=${
  1678. // this.state.contractNoSearch ? this.state.contractNoSearch : ""
  1679. // }&processStatus=${this.state.processStatusSearch}`;
  1680. },
  1681. // 下载
  1682. download(fileName) {
  1683. window.location.href =
  1684. globalConfig.context + "/open/download?fileName=" + fileName;
  1685. },
  1686. exportWater() {
  1687. window.location.href =
  1688. globalConfig.context +
  1689. "/api/admin/receivables/exportMyBill?" +
  1690. `orderNo=${this.state.selectedRowKeys}&whoType=1`;
  1691. },
  1692. timeData() {
  1693. this.setState({
  1694. loading: true,
  1695. });
  1696. $.ajax({
  1697. method: "get",
  1698. dataType: "json",
  1699. crossDomain: false,
  1700. url: globalConfig.context + "/api/admin/orderProject/taskHoursList",
  1701. data: {
  1702. orderNo: this.state.selectedRowKeys[0],
  1703. pageSize: 9999999,
  1704. },
  1705. success: function (data) {
  1706. let theArr = [];
  1707. if (!data.data || !data.data.list) {
  1708. if (data.error && data.error.length) {
  1709. message.warning(data.error[0].message);
  1710. }
  1711. } else {
  1712. for (let i = 0; i < data.data.list.length; i++) {
  1713. let thisdata = data.data.list[i];
  1714. theArr.push({
  1715. key: i + 1,
  1716. id: thisdata.id, //ID
  1717. orderNo: thisdata.orderNo, //订单编号
  1718. taskName: thisdata.taskName, //任务名称
  1719. userName: thisdata.userName, //客户名称
  1720. cname: thisdata.cname, //项目品类
  1721. taskStatus: thisdata.taskStatus, //任务状态
  1722. receiverName: thisdata.receiverName, //负责人
  1723. hours: thisdata.hours, //任务工时
  1724. depName: thisdata.depName, //派单公司
  1725. contractNo: thisdata.contractNo,
  1726. signTime: thisdata.signTime,
  1727. creteTime: thisdata.creteTime,
  1728. projectStatus: thisdata.projectStatus,
  1729. commodityPrice: thisdata.commodityPrice, //价格
  1730. commodityQuantity: thisdata.commodityQuantity, //数量
  1731. salesmanName: thisdata.salesmanName, //订单负责人
  1732. taskDistributionTime: thisdata.taskDistributionTime,
  1733. taskEndTime: thisdata.taskEndTime,
  1734. outsource: thisdata.outsource,
  1735. });
  1736. }
  1737. }
  1738. this.setState({
  1739. timeDataList: theArr,
  1740. });
  1741. }.bind(this),
  1742. }).always(
  1743. function () {
  1744. this.setState({
  1745. loading: false,
  1746. });
  1747. }.bind(this)
  1748. );
  1749. },
  1750. exportTime() {
  1751. const data = {
  1752. orderNo: this.state.selectedRowKeys[0],
  1753. pageSize: 9999999,
  1754. };
  1755. window.location.href =
  1756. globalConfig.context +
  1757. "/api/admin/orderProject/exportMyTaskList?" +
  1758. $.param(data);
  1759. },
  1760. exportPro() {
  1761. const data = {
  1762. orderNo: this.state.selectedRowKeys[0],
  1763. };
  1764. window.location.href =
  1765. globalConfig.context +
  1766. "/api/admin/newOrder/exportOrderTaskData?" +
  1767. $.param(data);
  1768. },
  1769. exportCui() {
  1770. var data = {
  1771. orderNo: this.state.selectedRowKeys[0]
  1772. ? this.state.selectedRowKeys[0]
  1773. : undefined, //订单编号
  1774. // specially: 1,
  1775. pageSize: 9999999,
  1776. };
  1777. window.location.href =
  1778. globalConfig.context +
  1779. "/api/admin/newOrder/exportOrderDunData?" +
  1780. $.param(data);
  1781. },
  1782. cuiData() {
  1783. this.setState({
  1784. loading: true,
  1785. });
  1786. $.ajax({
  1787. method: "get",
  1788. dataType: "json",
  1789. crossDomain: false,
  1790. url: globalConfig.context + "/api/admin/newOrder/dunOrderNewList",
  1791. data: {
  1792. orderNo: this.state.selectedRowKeys[0],
  1793. pageSize: 9999999,
  1794. },
  1795. success: function (data) {
  1796. let theArr = [];
  1797. if (!data.data || !data.data.list) {
  1798. if (data.error && data.error.length) {
  1799. message.warning(data.error[0].message);
  1800. }
  1801. } else {
  1802. for (let i = 0; i < data.data.list.length; i++) {
  1803. let thisdata = data.data.list[i];
  1804. theArr.push({
  1805. key: i + 1,
  1806. orderNo: thisdata.orderNo,
  1807. contractNo: thisdata.contractNo,
  1808. userName: thisdata.userName,
  1809. buyerName: thisdata.buyerName,
  1810. departmentName: thisdata.departmentName,
  1811. salesmanName: thisdata.salesmanName,
  1812. depName: thisdata.depName,
  1813. orderStatus: thisdata.orderStatus,
  1814. projectStatus: thisdata.projectStatus,
  1815. totalAmount: thisdata.totalAmount,
  1816. liquidationStatus: thisdata.liquidationStatus,
  1817. settlementAmount: thisdata.settlementAmount,
  1818. accountsReceivable: thisdata.accountsReceivable,
  1819. dunSubject: thisdata.dunSubject,
  1820. startDate: thisdata.startDate,
  1821. taskStatus: thisdata.taskStatus,
  1822. cname: thisdata.cname,
  1823. id: thisdata.id,
  1824. taskName: thisdata.taskName,
  1825. hours: thisdata.hours,
  1826. taskDistributionTime: thisdata.taskDistributionTime,
  1827. taskEndTime: thisdata.taskEndTime,
  1828. dunStatus: thisdata.dunStatus == 0 ? "未触发" : "已触发",
  1829. });
  1830. }
  1831. }
  1832. this.setState({
  1833. cuiDataList: theArr,
  1834. });
  1835. }.bind(this),
  1836. }).always(
  1837. function () {
  1838. this.setState({
  1839. loading: false,
  1840. });
  1841. }.bind(this)
  1842. );
  1843. },
  1844. proData() {
  1845. this.setState({
  1846. loading: true,
  1847. });
  1848. $.ajax({
  1849. method: "get",
  1850. dataType: "json",
  1851. crossDomain: false,
  1852. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  1853. data: {
  1854. orderNo: this.state.selectedRowKeys[0],
  1855. pageSize: 9999999,
  1856. },
  1857. success: function (data) {
  1858. let theArr = [];
  1859. let totalWaibao = 0;
  1860. if (!data.data) {
  1861. if (data.error && data.error.length) {
  1862. message.warning(data.error[0].message);
  1863. }
  1864. } else {
  1865. for (let i = 0; i < data.data.length; i++) {
  1866. let thisdata = data.data[i];
  1867. totalWaibao += thisdata.outsourcePrice;
  1868. thisdata.key = i + 1;
  1869. theArr.push(thisdata);
  1870. }
  1871. }
  1872. totalWaibao = (Math.round(totalWaibao * 1000000) / 1000000).toFixed(6);
  1873. this.setState({
  1874. proDataList: theArr,
  1875. totalWaibao,
  1876. });
  1877. }.bind(this),
  1878. }).always(
  1879. function () {
  1880. this.setState({
  1881. loading: false,
  1882. });
  1883. }.bind(this)
  1884. );
  1885. },
  1886. inRecordCanl() {
  1887. this.setState({
  1888. bvisible: false,
  1889. });
  1890. },
  1891. inRecordData() {
  1892. this.setState({
  1893. loading: true,
  1894. });
  1895. $.ajax({
  1896. method: "get",
  1897. dataType: "json",
  1898. crossDomain: false,
  1899. url:
  1900. globalConfig.context +
  1901. "/api/admin/orderInvoice/salesmanOrderInvoiceList",
  1902. data: {
  1903. orderNo: this.state.selectedRowKeys[0],
  1904. pageSize: 9999999,
  1905. },
  1906. success: function (data) {
  1907. let theArr = [];
  1908. let sum = 0;
  1909. if (!data.data) {
  1910. if (data.error && data.error.length) {
  1911. message.warning(data.error[0].message);
  1912. }
  1913. } else {
  1914. for (let i = 0; i < data.data.list.length; i++) {
  1915. let thisdata = data.data.list[i];
  1916. sum += parseFloat(thisdata.amount);
  1917. theArr.push({
  1918. id: thisdata.id,
  1919. orderno: thisdata.orderno, //订单编号
  1920. amount: thisdata.amount, //签单金额
  1921. createTime: thisdata.createTime, //流程状态
  1922. status: thisdata.status, //结算状态
  1923. rejectReason: thisdata.rejectReason,
  1924. approval: thisdata.approval,//0非特批 1待审核 2审核通过
  1925. examineName: thisdata.examineName,
  1926. });
  1927. }
  1928. }
  1929. this.setState({
  1930. recordData: theArr,
  1931. sum: sum.toFixed(6),
  1932. });
  1933. }.bind(this),
  1934. }).done(
  1935. function () {
  1936. this.setState({
  1937. loading: false,
  1938. });
  1939. }.bind(this)
  1940. );
  1941. },
  1942. // 通过弹出备注框
  1943. pass() {
  1944. this.setState({
  1945. reason: "",
  1946. passVisible: true,
  1947. });
  1948. },
  1949. passCancel() {
  1950. this.setState({
  1951. reason: "",
  1952. passVisible: false,
  1953. });
  1954. },
  1955. printAll() {
  1956. this.setState({
  1957. dvisible: true,
  1958. });
  1959. this.loadData(1, 9999999);
  1960. },
  1961. // 可展开颜色不同
  1962. addRowColor(record) {
  1963. if (!!record.splitList && record.splitList.length > 0) {
  1964. return 'light'
  1965. } else {
  1966. return 'dark'
  1967. }
  1968. },
  1969. render() {
  1970. const expandedRowRenderVip = (e) => {
  1971. const data = e.splitList;
  1972. let columns = [];
  1973. if (data instanceof Array && data.length) {
  1974. if (e.cSort == 6) {
  1975. columns = [
  1976. {
  1977. title: "负责人",
  1978. dataIndex: "receiverName",
  1979. key: "receiverName",
  1980. },
  1981. {
  1982. title: "负责人电话",
  1983. dataIndex: "receiverMobile",
  1984. key: "receiverMobile",
  1985. },
  1986. {
  1987. title: "会员负责人",
  1988. dataIndex: "projectMemberName",
  1989. key: "projectMemberName",
  1990. },
  1991. {
  1992. title: "项目状态",
  1993. dataIndex: "projectStatus",
  1994. key: "projectStatus",
  1995. render: (text) => {
  1996. return getProjectName(text);
  1997. },
  1998. },
  1999. {
  2000. title: "本次派单",
  2001. dataIndex: "serviceYear",
  2002. key: "serviceYear",
  2003. },
  2004. {
  2005. title: "项目说明",
  2006. dataIndex: "taskComment",
  2007. key: "taskComment",
  2008. render: (text) => {
  2009. return (
  2010. <Tooltip title={text}>
  2011. <div
  2012. // style={{
  2013. // width: 100,
  2014. // overflow: "hidden",
  2015. // whiteSpace: "nowrap",
  2016. // textOverflow: "ellipsis",
  2017. // }}
  2018. >{text}</div>
  2019. </Tooltip>
  2020. )
  2021. },
  2022. },
  2023. ];
  2024. } else {
  2025. columns = [
  2026. {
  2027. title: "子项目名称",
  2028. dataIndex: "taskName",
  2029. key: "taskName"
  2030. },
  2031. {
  2032. title: "子项目数量",
  2033. dataIndex: "commodityQuantity",
  2034. key: "commodityQuantity"
  2035. },
  2036. {
  2037. title: "拆分操作人",
  2038. dataIndex: "splitAname",
  2039. key: "splitAname"
  2040. },
  2041. {
  2042. title: "项目负责人",
  2043. dataIndex: "receiverName",
  2044. key: "receiverName"
  2045. },
  2046. {
  2047. title: "拆分时间",
  2048. dataIndex: "splitTimes",
  2049. key: "splitTimes"
  2050. }
  2051. ]
  2052. }
  2053. return (
  2054. <Table
  2055. columns={columns}
  2056. dataSource={data}
  2057. pagination={false}
  2058. />
  2059. );
  2060. } else {
  2061. columns = [];
  2062. return (
  2063. <p
  2064. style={{ fontWeight: "bold", color: "red", textAlign: "center" }}
  2065. >
  2066. {e.cSort == 6 ? "暂无派单" : "此项目暂未拆分"}
  2067. </p>
  2068. );
  2069. }
  2070. };
  2071. const formItemLayout = {
  2072. labelCol: { span: 8 },
  2073. wrapperCol: { span: 14 },
  2074. };
  2075. const FormItem = Form.Item;
  2076. const { RangePicker } = DatePicker;
  2077. const cuiDataList = this.state.contactList || [];
  2078. const rowSelection = {
  2079. selectedRowKeys: this.state.selectedRowKeys,
  2080. onChange: (selectedRowKeys, selectedRows) => {
  2081. this.setState({
  2082. modalVisible: false,
  2083. selectedRows: selectedRows.slice(-1),
  2084. selectedRowKeys: selectedRowKeys.slice(-1),
  2085. });
  2086. },
  2087. onSelect: (recordt) => {
  2088. this.setState({
  2089. modalVisible: false,
  2090. recordt: recordt.id,
  2091. });
  2092. },
  2093. };
  2094. const approvaChildren = approvalOptions.map(i => (
  2095. <Option key={i.value}>{i.label}</Option>
  2096. ));
  2097. return (
  2098. <div className="user-content">
  2099. {this.state.resVisible ? (
  2100. <ResolutionDetail
  2101. cancel={this.resCancel}
  2102. detail={this.state.resRecord}
  2103. visible={this.state.resVisible}
  2104. id={this.state.resRecord.orderNo}
  2105. />
  2106. ) : (
  2107. ""
  2108. )}
  2109. <ShowModalDiv ShowModal={this.state.showModal} onClose={() => { this.setState({ showModal: false }) }} />
  2110. <div className="content-title" style={{ marginBottom: 10 }}>
  2111. <span style={{ fontWeight: 900, fontSize: 16 }}>特批订单审核</span>
  2112. </div>
  2113. <Tabs defaultActiveKey="2" onChange={this.callback} className="test">
  2114. <TabPane tab="更改表格显示数据" key="1">
  2115. <div style={{ marginLeft: 10 }}>
  2116. <ChooseList
  2117. columns={this.state.columns}
  2118. changeFn={this.changeList}
  2119. changeList={this.state.changeList}
  2120. top={55}
  2121. margin={11}
  2122. />
  2123. </div>
  2124. </TabPane>
  2125. <TabPane tab="搜索" key="2">
  2126. <div className="user-search" style={{ marginLeft: 10 }}>
  2127. <Input
  2128. placeholder="订单编号"
  2129. value={this.state.orderNoSearch}
  2130. onChange={(e) => {
  2131. this.setState({ orderNoSearch: e.target.value });
  2132. }}
  2133. />
  2134. <Input
  2135. placeholder="客户名称"
  2136. value={this.state.nameSearch}
  2137. onChange={(e) => {
  2138. this.setState({ nameSearch: e.target.value });
  2139. }}
  2140. />
  2141. <Cascaders
  2142. ref={node => this.Cascaders = node}
  2143. placeholder="订单部门"
  2144. id="id"
  2145. name="name"
  2146. children="list"
  2147. height={28}
  2148. onSel={(e) => {
  2149. this.setState({
  2150. departmenttList: JSON.stringify(e),
  2151. });
  2152. }}
  2153. />
  2154. {/* <DepartmentList
  2155. value={this.state.departmenttList}
  2156. onChange={e => {
  2157. this.setState({ departmenttList: e });
  2158. }} /> */}
  2159. <Input
  2160. placeholder="合同编号"
  2161. value={this.state.contractNoSearch}
  2162. onChange={(e) => {
  2163. this.setState({
  2164. contractNoSearch: e.target.value,
  2165. });
  2166. }}
  2167. />
  2168. <Select
  2169. placeholder="特批状态"
  2170. onChange={(e) => {
  2171. this.setState({ approvalSearch: e });
  2172. }}
  2173. style={{ width: 160, marginRight: 5 }}
  2174. value={this.state.approvalSearch}
  2175. >
  2176. <Option value="1">特批待审核</Option>
  2177. <Option value="2">特批(通过以及驳回)</Option>
  2178. </Select>
  2179. <Select
  2180. placeholder="结算状态"
  2181. onChange={(e) => {
  2182. this.setState({ liquidationStatusSearch: e });
  2183. }}
  2184. style={{ width: 160, marginRight: 5 }}
  2185. value={this.state.liquidationStatusSearch}
  2186. >
  2187. <Option value="0">首付待付清</Option>
  2188. <Option value="1">尾款待付清</Option>
  2189. <Option value="2">已付清</Option>
  2190. </Select>
  2191. <Select
  2192. mode="multiple"
  2193. style={{ width: 200 }}
  2194. placeholder="特批类型"
  2195. value={this.state.approvaType}
  2196. onChange={e => {
  2197. this.setState({
  2198. approvaType: e
  2199. })
  2200. }}
  2201. >
  2202. {approvaChildren}
  2203. </Select>
  2204. <span style={{}}>下单日期:</span>
  2205. <RangePicker
  2206. value={[
  2207. this.state.releaseDate[0]
  2208. ? moment(this.state.releaseDate[0])
  2209. : null,
  2210. this.state.releaseDate[1]
  2211. ? moment(this.state.releaseDate[1])
  2212. : null,
  2213. ]}
  2214. onChange={(data, dataString) => {
  2215. this.setState({ releaseDate: dataString });
  2216. }}
  2217. />
  2218. <Button
  2219. type="primary"
  2220. onClick={this.search}
  2221. style={{ marginLeft: 10 }}
  2222. disabled={this.state.loadingA ? true : false}
  2223. >
  2224. 搜索
  2225. </Button>
  2226. <Button onClick={this.reset}>重置</Button>
  2227. </div>
  2228. </TabPane>
  2229. <TabPane tab="打印" key="3">
  2230. <Button
  2231. type="primary"
  2232. style={{ margin: "11px 0px 10px 10px" }}
  2233. onClick={this.printAll}
  2234. disabled={!this.state.dataSource.length}
  2235. >
  2236. 打印所有列表信息
  2237. </Button>
  2238. <Button
  2239. type="primary"
  2240. disabled={this.state.selectedRowKeys.length != 1}
  2241. style={{ margin: "11px 0px 10px 10px" }}
  2242. onClick={() => {
  2243. this.inRecordData();
  2244. this.setState({
  2245. bvisible: true,
  2246. });
  2247. }}
  2248. >
  2249. 打印开票详情
  2250. </Button>
  2251. <Button
  2252. type="primary"
  2253. disabled={this.state.selectedRowKeys.length != 1}
  2254. style={{ margin: "11px 0px 10px 10px" }}
  2255. onClick={() => {
  2256. this.waterData();
  2257. this.setState({
  2258. cvisible: true,
  2259. });
  2260. }}
  2261. >
  2262. 打印收款流水
  2263. </Button>
  2264. <Button
  2265. type="primary"
  2266. disabled={this.state.selectedRowKeys.length != 1}
  2267. style={{ margin: "11px 0px 10px 10px" }}
  2268. onClick={() => {
  2269. this.timeData();
  2270. this.setState({
  2271. timeVisible: true,
  2272. });
  2273. }}
  2274. >
  2275. 打印工时信息
  2276. </Button>
  2277. <Button
  2278. type="primary"
  2279. disabled={this.state.selectedRowKeys.length != 1}
  2280. style={{ margin: "11px 0px 10px 10px" }}
  2281. onClick={() => {
  2282. this.cuiData();
  2283. this.setState({
  2284. cuiVisible: true,
  2285. });
  2286. }}
  2287. >
  2288. 打印催款信息
  2289. </Button>
  2290. <Button
  2291. type="primary"
  2292. disabled={this.state.selectedRowKeys.length != 1}
  2293. style={{ margin: "11px 0px 10px 10px" }}
  2294. onClick={() => {
  2295. this.proData();
  2296. this.setState({
  2297. proVisible: true,
  2298. });
  2299. }}
  2300. >
  2301. 打印项目信息
  2302. </Button>
  2303. </TabPane>
  2304. <TabPane tab="导出Excel" key="4">
  2305. {/* <Button
  2306. type="primary"
  2307. style={{ margin: "11px 0px 10px 10px" }}
  2308. onClick={this.exportAll}
  2309. >
  2310. 导出当前列表
  2311. </Button> */}
  2312. <Button
  2313. type="primary"
  2314. disabled={this.state.selectedRowKeys.length != 1}
  2315. style={{ margin: "11px 0px 10px 10px" }}
  2316. onClick={this.exportKaip}
  2317. >
  2318. 导出所选开票详情
  2319. </Button>
  2320. <Button
  2321. type="primary"
  2322. disabled={this.state.selectedRowKeys.length != 1}
  2323. style={{ margin: "11px 0px 10px 10px" }}
  2324. onClick={this.exportWater}
  2325. >
  2326. 导出所选收款详情流水
  2327. </Button>
  2328. <Button
  2329. type="primary"
  2330. disabled={this.state.selectedRowKeys.length != 1}
  2331. style={{ margin: "11px 0px 10px 10px" }}
  2332. onClick={this.exportTime}
  2333. >
  2334. 导出所选工时信息
  2335. </Button>
  2336. <Button
  2337. type="primary"
  2338. disabled={this.state.selectedRowKeys.length != 1}
  2339. style={{ margin: "11px 0px 10px 10px" }}
  2340. onClick={this.exportCui}
  2341. >
  2342. 导出催款信息
  2343. </Button>
  2344. <Button
  2345. type="primary"
  2346. disabled={this.state.selectedRowKeys.length != 1}
  2347. style={{ margin: "11px 0px 10px 10px" }}
  2348. onClick={this.exportPro}
  2349. >
  2350. 导出项目详情
  2351. </Button>
  2352. </TabPane>
  2353. <TabPane tab="查看" key="5">
  2354. <Button
  2355. type="primary"
  2356. disabled={this.state.selectedRowKeys.length != 1}
  2357. style={{ margin: "11px 0px 10px 10px" }}
  2358. onClick={() => {
  2359. this.inRecordData();
  2360. this.setState({
  2361. bvisible: true,
  2362. });
  2363. }}
  2364. >
  2365. 查看开票详情
  2366. </Button>
  2367. <Button
  2368. type="primary"
  2369. disabled={this.state.selectedRowKeys.length != 1}
  2370. style={{ margin: "11px 0px 10px 10px" }}
  2371. onClick={() => {
  2372. this.waterData();
  2373. this.setState({
  2374. cvisible: true,
  2375. });
  2376. }}
  2377. >
  2378. 详情收款流水
  2379. </Button>
  2380. <Button
  2381. type="primary"
  2382. disabled={this.state.selectedRowKeys.length != 1}
  2383. style={{ margin: "11px 0px 10px 10px" }}
  2384. onClick={() => {
  2385. this.timeData();
  2386. this.setState({
  2387. timeVisible: true,
  2388. });
  2389. }}
  2390. >
  2391. 工时信息
  2392. </Button>
  2393. <Button
  2394. type="primary"
  2395. disabled={this.state.selectedRowKeys.length != 1}
  2396. style={{ margin: "11px 0px 10px 10px" }}
  2397. onClick={() => {
  2398. this.cuiData();
  2399. this.setState({
  2400. cuiVisible: true,
  2401. });
  2402. }}
  2403. >
  2404. 催款信息
  2405. </Button>
  2406. <Button
  2407. type="primary"
  2408. disabled={this.state.selectedRowKeys.length != 1}
  2409. style={{ margin: "11px 0px 10px 10px" }}
  2410. onClick={() => {
  2411. this.proData();
  2412. this.setState({
  2413. proVisible: true,
  2414. });
  2415. }}
  2416. >
  2417. 项目信息
  2418. </Button>
  2419. </TabPane>
  2420. {/* <TabPane tab="批量操作" key="6">
  2421. <Button
  2422. type="primary"
  2423. disabled={this.state.selectedRowKeys.length == 0}
  2424. style={{ margin: "0px 0px 10px 10px" }}
  2425. onClick={e => {
  2426. e.stopPropagation(),
  2427. this.evaluateY(this.state.selectedRowKeys, "财务专员");
  2428. }}
  2429. >
  2430. 转交
  2431. </Button>
  2432. </TabPane> */}
  2433. </Tabs>
  2434. <div className="user-search">
  2435. <div className="patent-table">
  2436. <Spin spinning={this.state.loading}>
  2437. <Table
  2438. columns={
  2439. this.state.changeList == undefined
  2440. ? this.state.columns
  2441. : this.state.changeList
  2442. }
  2443. dataSource={this.state.dataSource}
  2444. rowSelection={rowSelection}
  2445. pagination={this.state.pagination}
  2446. onRowClick={this.tableRowClick}
  2447. bordered
  2448. size="small"
  2449. />
  2450. </Spin>
  2451. </div>
  2452. {this.state.visible ? <Modal
  2453. maskClosable={false}
  2454. className="customeDetails"
  2455. footer=""
  2456. title="订单详情"
  2457. width="1200px"
  2458. visible={this.state.visible}
  2459. onOk={this.visitOk}
  2460. onCancel={this.visitCancel}
  2461. >
  2462. <Form
  2463. layout="horizontal"
  2464. onSubmit={this.handleSubmit}
  2465. id="demand-form"
  2466. style={{ paddingBottom: "15px" }}
  2467. >
  2468. <Spin spinning={this.state.loading}>
  2469. <div className="clearfix">
  2470. <div style={{ position: "absolute", top: '-52px', left: '81px', zIndex: 10000 }}>
  2471. <OrderItemStatus deleteSign={this.state.deleteSign} />
  2472. </div>
  2473. <FormItem
  2474. className="half-item"
  2475. {...formItemLayout}
  2476. label="订单编号"
  2477. >
  2478. <span>{this.state.orderNo}</span>
  2479. </FormItem>
  2480. <FormItem
  2481. className="half-item"
  2482. {...formItemLayout}
  2483. label="合同编号"
  2484. >
  2485. <span>{this.state.contractNo}</span>
  2486. </FormItem>
  2487. <FormItem
  2488. className="half-item"
  2489. {...formItemLayout}
  2490. label="客户名称"
  2491. >
  2492. <span>
  2493. {this.state.userName}
  2494. <EnterpriseNameChange
  2495. type='journal'
  2496. style={{ marginLeft: 10 }}
  2497. enterpriseId={this.state.orderUid} />
  2498. </span>
  2499. </FormItem>
  2500. <FormItem
  2501. className="half-item"
  2502. {...formItemLayout}
  2503. label="合同签订时间"
  2504. >
  2505. <span>{this.state.signDate}</span>
  2506. </FormItem>
  2507. <FormItem
  2508. className="half-item"
  2509. {...formItemLayout}
  2510. label="流程状态"
  2511. >
  2512. <span>{getProcessStatus(this.state.processStatus, this.state.examineName, this.state.approval)}</span>
  2513. <FlowChart
  2514. orderNo={this.state.orderNos}
  2515. />
  2516. </FormItem>
  2517. <FormItem
  2518. className="half-item"
  2519. {...formItemLayout}
  2520. label="结算状态"
  2521. >
  2522. <span>
  2523. {getLiquidationStatus(this.state.liquidationStatus)}
  2524. </span>
  2525. </FormItem>
  2526. <FormItem
  2527. className="half-item"
  2528. {...formItemLayout}
  2529. label="企业联系人"
  2530. >
  2531. <span>{this.state.contacts}</span>
  2532. </FormItem>
  2533. <FormItem
  2534. className="half-item"
  2535. {...formItemLayout}
  2536. label="联系人电话"
  2537. >
  2538. <span>{this.state.contactMobile}</span>
  2539. </FormItem>
  2540. <FormItem
  2541. className="half-item"
  2542. {...formItemLayout}
  2543. label="企业法人"
  2544. >
  2545. <span>{this.state.legalPerson}</span>
  2546. </FormItem>
  2547. <FormItem
  2548. className="half-item"
  2549. {...formItemLayout}
  2550. label="法人电话"
  2551. >
  2552. <span>{this.state.legalPersonTel}</span>
  2553. </FormItem>
  2554. <FormItem
  2555. className="half-item"
  2556. {...formItemLayout}
  2557. label="签单金额(万元)"
  2558. >
  2559. <span>{this.state.totalAmount}</span>
  2560. </FormItem>
  2561. <FormItem
  2562. className="half-item"
  2563. {...formItemLayout}
  2564. label="首付金额(万元)"
  2565. >
  2566. <span>{this.state.firstAmount}</span>
  2567. </FormItem>
  2568. <FormItem
  2569. className="half-item"
  2570. {...formItemLayout}
  2571. label="特批立项"
  2572. >
  2573. <span>
  2574. {getApprovedState(this.state.approval)}
  2575. {getApprovedType(this.state.type ? this.state.type.split(",").map(Number) : [], this.state.typeExplain, 1)}
  2576. </span>
  2577. </FormItem>
  2578. <FormItem
  2579. className="half-item"
  2580. {...formItemLayout}
  2581. label="已收款项(万元)"
  2582. >
  2583. <span>{this.state.settlementAmount}</span>
  2584. </FormItem>
  2585. <FormItem
  2586. className="half-item"
  2587. {...formItemLayout}
  2588. label="是否外包"
  2589. >
  2590. <span>{this.state.outsource}</span>
  2591. </FormItem>
  2592. <div className="clearfix">
  2593. <FormItem
  2594. labelCol={{ span: 4 }}
  2595. wrapperCol={{ span: 16 }}
  2596. label="订单留言"
  2597. >
  2598. <span>{this.state.orderRemarks}</span>
  2599. </FormItem>
  2600. </div>
  2601. <div className="clearfix">
  2602. <FormItem
  2603. labelCol={{ span: 4 }}
  2604. wrapperCol={{ span: 18 }}
  2605. label={
  2606. <span>
  2607. <strong style={{ color: "#f00" }}>*</strong>
  2608. 合同扫描件
  2609. </span>
  2610. }
  2611. >
  2612. <PicturesWall
  2613. domId={'approveds1'}
  2614. fileList={this.getOrgCodeUrl}
  2615. pictureUrl={this.state.orgCodeUrl}
  2616. />
  2617. <p>图片建议:要清晰。</p>
  2618. <Button
  2619. style={{
  2620. float: "right",
  2621. marginRight: "140px",
  2622. marginTop: "20px",
  2623. }}
  2624. onClick={this.getOrderLog}
  2625. >
  2626. 查看订单日志
  2627. </Button>
  2628. </FormItem>
  2629. {/* 高新纯咨询合同说明详情 */}
  2630. <Gxczx
  2631. knowledgeServices={this.state.knowledgeServices}
  2632. auditServices={this.state.auditServices}
  2633. addDeductionServices={this.state.addDeductionServices}
  2634. knowledgeOther={this.state.knowledgeOther}
  2635. auditOther={this.state.auditOther}
  2636. addDeductionOther={this.state.addDeductionOther}
  2637. />
  2638. <FormItem
  2639. labelCol={{ span: 4 }}
  2640. wrapperCol={{ span: 18 }}
  2641. label={
  2642. <span>
  2643. 补充协议
  2644. </span>
  2645. }
  2646. >
  2647. <PicturesWall
  2648. domId={'approveds2'}
  2649. fileList={this.getReplenishUrl}
  2650. pictureUrl={this.state.replenishUrl}
  2651. url="/api/admin/order/uploadOrderImg"
  2652. sign=""
  2653. />
  2654. <p>图片建议:要清晰。</p>
  2655. </FormItem>
  2656. </div>
  2657. <ContentUrl
  2658. processStatus={2}
  2659. domId={"approContents"}
  2660. contentUrl={this.state.contentUrl}
  2661. imgId={"approContentsImg"}
  2662. />
  2663. <Property
  2664. patentStatus={this.state.patentStatus}
  2665. />
  2666. <div className="clearfix">
  2667. <FormItem
  2668. className="half-item"
  2669. {...formItemLayout}
  2670. label="订单负责人"
  2671. >
  2672. <span>{this.state.salesmanName}</span>
  2673. </FormItem>
  2674. <FormItem
  2675. className="half-item"
  2676. {...formItemLayout}
  2677. label="订单负责人电话"
  2678. >
  2679. <span>{this.state.salesmanMobile}</span>
  2680. </FormItem>
  2681. </div>
  2682. <div className="clearfix">
  2683. <FormItem
  2684. className="half-item"
  2685. {...formItemLayout}
  2686. label="财务负责人"
  2687. >
  2688. <span>{this.state.financeName}</span>
  2689. </FormItem>
  2690. <FormItem
  2691. className="half-item"
  2692. {...formItemLayout}
  2693. label="财务负责人电话"
  2694. >
  2695. <span>{this.state.financeMobile}</span>
  2696. </FormItem>
  2697. </div>
  2698. {/* */}
  2699. <OrderCoor orderNo={this.state.orderNos} />
  2700. <div>
  2701. <span style={{ marginLeft: "50px", fontSize: "18px" }}>
  2702. 项目业务
  2703. </span>
  2704. {this.state.processStatus == 0 ? (
  2705. <Button
  2706. type="primary"
  2707. onClick={this.addDetailed}
  2708. style={{
  2709. float: "right",
  2710. marginRight: "50px",
  2711. marginBottom: "15px",
  2712. }}
  2713. >
  2714. 添加项目明细
  2715. </Button>
  2716. ) : (
  2717. ""
  2718. )}
  2719. </div>
  2720. <div className="patent-table">
  2721. <Spin spinning={this.state.loading}>
  2722. <Table
  2723. columns={this.state.columnsX}
  2724. dataSource={this.state.dataSourceX}
  2725. pagination={this.state.paginations}
  2726. onRowClick={this.tableRowClickX}
  2727. expandedRowRender={expandedRowRenderVip}
  2728. rowClassName={this.addRowColor}
  2729. bordered
  2730. size="small"
  2731. />
  2732. </Spin>
  2733. </div>
  2734. <div style={{ marginTop: 10 }}>
  2735. <span style={{ marginLeft: 50, fontSize: "18px" }}>
  2736. 催款节点
  2737. </span>
  2738. <span
  2739. style={{
  2740. display: cuiDataList.length ? "none" : "inline-block",
  2741. marginLeft: 10,
  2742. color: "red",
  2743. }}
  2744. >
  2745. 金额总计(万元): {this.state.totalCui}
  2746. </span>
  2747. </div>
  2748. <div className="clearfix">
  2749. <Spin spinning={this.state.loading}>
  2750. <Form layout="horizontal" id="demand-form">
  2751. <Table
  2752. pagination={false}
  2753. bordered
  2754. size="small"
  2755. columns={
  2756. cuiDataList.length
  2757. ? this.state.ContactsLists
  2758. : this.state.ContactsListsNew
  2759. }
  2760. dataSource={
  2761. cuiDataList.length
  2762. ? this.state.contactList
  2763. : this.state.contactListNew
  2764. }
  2765. />
  2766. <Col
  2767. span={24}
  2768. offset={9}
  2769. style={{ marginTop: "15px" }}
  2770. />
  2771. </Form>
  2772. </Spin>
  2773. </div>
  2774. {(this.state.approval === 1 || this.state.approval === 4 || this.state.approval === 7) &&
  2775. <div className="addSave" style={{ display: "flex", justifyContent: "center" }}>
  2776. <Button
  2777. className="cancel"
  2778. type="primary"
  2779. onClick={this.pass}
  2780. style={{ margin: 25 }}
  2781. htmlType="submit"
  2782. >
  2783. 通过
  2784. </Button>
  2785. <Button
  2786. className="cancel"
  2787. type="primary"
  2788. onClick={this.examNo}
  2789. style={{ margin: 25 }}
  2790. htmlType="submit"
  2791. >
  2792. 驳回
  2793. </Button>
  2794. <Button
  2795. className="cancel"
  2796. type="ghost"
  2797. onClick={this.visitCancel}
  2798. style={{ margin: 25 }}
  2799. >
  2800. 取消
  2801. </Button>
  2802. </div>}
  2803. </div>
  2804. </Spin>
  2805. </Form>
  2806. </Modal> : <div />}
  2807. {this.state.noVisible ? <Modal
  2808. maskClosable={false}
  2809. visible={this.state.noVisible}
  2810. onOk={this.noCancel}
  2811. onCancel={this.noCancel}
  2812. width="400px"
  2813. title={"拒绝理由"}
  2814. footer=""
  2815. className="admin-desc-content"
  2816. >
  2817. <Form layout="horizontal" id="demand-form">
  2818. <Spin spinning={this.state.loading}>
  2819. <div className="clearfix">
  2820. <FormItem
  2821. labelCol={{ span: 4 }}
  2822. wrapperCol={{ span: 16 }}
  2823. label="拒绝理由"
  2824. >
  2825. <Input
  2826. type="textarea"
  2827. placeholder="请输入拒绝理由"
  2828. rows={4}
  2829. value={this.state.reason}
  2830. onChange={(e) => {
  2831. this.setState({ reason: e.target.value });
  2832. }}
  2833. />
  2834. </FormItem>
  2835. </div>
  2836. <div className="clearfix">
  2837. <Button
  2838. className="cancel"
  2839. type="primary"
  2840. onClick={this.examOks}
  2841. style={{ marginLeft: "50px" }}
  2842. htmlType="submit"
  2843. >
  2844. 确定
  2845. </Button>
  2846. <Button
  2847. className="cancel"
  2848. type="ghost"
  2849. onClick={this.noCancel}
  2850. style={{ marginLeft: "50px" }}
  2851. >
  2852. 取消
  2853. </Button>
  2854. </div>
  2855. </Spin>
  2856. </Form>
  2857. </Modal> : <div />}
  2858. {this.state.passVisible ? <Modal
  2859. maskClosable={false}
  2860. visible={this.state.passVisible}
  2861. onOk={this.passCancel}
  2862. onCancel={this.passCancel}
  2863. width="400px"
  2864. title={"同意理由"}
  2865. footer=""
  2866. className="admin-desc-content"
  2867. >
  2868. <Form layout="horizontal">
  2869. <Spin spinning={this.state.loading}>
  2870. <div className="clearfix">
  2871. <FormItem
  2872. labelCol={{ span: 4 }}
  2873. wrapperCol={{ span: 16 }}
  2874. label="同意备注"
  2875. >
  2876. <Input
  2877. type="textarea"
  2878. placeholder="请输入备注"
  2879. rows={4}
  2880. value={this.state.reason}
  2881. onChange={(e) => {
  2882. this.setState({ reason: e.target.value });
  2883. }}
  2884. />
  2885. </FormItem>
  2886. </div>
  2887. <div className="clearfix">
  2888. <Button
  2889. className="cancel"
  2890. type="primary"
  2891. onClick={this.examOk}
  2892. style={{ marginLeft: "50px" }}
  2893. htmlType="submit"
  2894. >
  2895. 确定
  2896. </Button>
  2897. <Button
  2898. className="cancel"
  2899. type="ghost"
  2900. onClick={this.passCancel}
  2901. style={{ marginLeft: "50px" }}
  2902. >
  2903. 取消
  2904. </Button>
  2905. </div>
  2906. </Spin>
  2907. </Form>
  2908. </Modal> : <div />}
  2909. {this.state.rizhivisible ? <Modal
  2910. visible={this.state.rizhivisible}
  2911. className="admin-desc-content"
  2912. width="800px"
  2913. maskClosable={false}
  2914. title="订单日志"
  2915. footer={null}
  2916. onCancel={this.closeOrderLog}
  2917. >
  2918. <div className="patent-table">
  2919. <Spin spinning={this.state.loading}>
  2920. <Table
  2921. columns={this.state.columnsrizhi}
  2922. dataSource={this.state.dataSourcerizhi}
  2923. pagination={false}
  2924. bordered
  2925. size="small"
  2926. />
  2927. </Spin>
  2928. </div>
  2929. </Modal> : <div />}
  2930. {this.state.dvisible ? <Modal
  2931. maskClosable={false}
  2932. visible={this.state.dvisible}
  2933. footer=""
  2934. title="所有列表信息"
  2935. className="admin-desc-content"
  2936. width="1400px"
  2937. onCancel={() => {
  2938. // this.loadData();
  2939. this.setState({
  2940. dvisible: false,
  2941. });
  2942. }}
  2943. >
  2944. <Spin spinning={this.state.loading}>
  2945. <div
  2946. className="patent-table"
  2947. style={{
  2948. // width: 900,
  2949. // position: "relative",
  2950. // left: "50%",
  2951. // transform: "translate(-50%)",
  2952. padding: "25px 0 30px 30px",
  2953. }}
  2954. ref={(e) => {
  2955. this.refs.all = e;
  2956. }}
  2957. >
  2958. <Table
  2959. columns={this.state.columns}
  2960. dataSource={this.state.dataSource}
  2961. pagination={false}
  2962. bordered
  2963. size="small"
  2964. />
  2965. </div>
  2966. </Spin>
  2967. <ReactToPrint
  2968. trigger={() => (
  2969. <Button
  2970. type="primary"
  2971. style={{
  2972. float: "right",
  2973. marginTop: 10,
  2974. position: "absolute",
  2975. top: 0,
  2976. right: 30,
  2977. }}
  2978. >
  2979. 打印
  2980. </Button>
  2981. )}
  2982. content={() => this.refs.all}
  2983. />
  2984. </Modal> : <div />}
  2985. {this.state.bvisible ? <Modal
  2986. maskClosable={false}
  2987. visible={this.state.bvisible}
  2988. footer=""
  2989. title="开票历史记录"
  2990. className="admin-desc-content"
  2991. width="1200px"
  2992. onCancel={this.inRecordCanl}
  2993. >
  2994. <Spin spinning={this.state.loading}>
  2995. <div
  2996. className="patent-table"
  2997. ref={(e) => {
  2998. this.refs.kaiPiao = e;
  2999. }}
  3000. >
  3001. <Table
  3002. columns={this.state.columnsDate}
  3003. dataSource={this.state.recordData}
  3004. pagination={false}
  3005. bordered
  3006. size="small"
  3007. />
  3008. <div className="clearfix" style={{ marginTop: "20px" }}>
  3009. <FormItem
  3010. className="half-item"
  3011. {...formItemLayout}
  3012. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  3013. >
  3014. <span>{this.state.sum + "(万元)"}</span>
  3015. </FormItem>
  3016. </div>
  3017. <ReactToPrint
  3018. trigger={() => (
  3019. <Button
  3020. type="primary"
  3021. style={{
  3022. float: "right",
  3023. // marginTop: 10,
  3024. position: "absolute",
  3025. top: -54,
  3026. right: 30,
  3027. }}
  3028. >
  3029. 打印
  3030. </Button>
  3031. )}
  3032. content={() => this.refs.kaiPiao}
  3033. />
  3034. </div>
  3035. </Spin>
  3036. </Modal> : <div />}
  3037. {this.state.cvisible ? <Modal
  3038. maskClosable={false}
  3039. visible={this.state.cvisible}
  3040. footer=""
  3041. title="详细收款流水"
  3042. className="admin-desc-content"
  3043. width="1300px"
  3044. onCancel={this.waterCanl}
  3045. >
  3046. <Spin spinning={this.state.loading}>
  3047. <div
  3048. className="patent-table"
  3049. ref={(e) => {
  3050. this.refs.shouKuan = e;
  3051. }}
  3052. >
  3053. <Table
  3054. columns={this.state.waterlistDate}
  3055. dataSource={this.state.waterData}
  3056. pagination={false}
  3057. bordered
  3058. size="small"
  3059. />
  3060. <div className="clearfix" style={{ marginTop: "20px" }}>
  3061. <FormItem
  3062. className="half-item"
  3063. {...formItemLayout}
  3064. label={<span style={{ fontSize: "14px" }}>总计金额</span>}
  3065. >
  3066. <span>{this.state.waterSum + "(万元)"}</span>
  3067. </FormItem>
  3068. </div>
  3069. <ReactToPrint
  3070. trigger={() => (
  3071. <Button
  3072. type="primary"
  3073. style={{
  3074. float: "right",
  3075. position: "absolute",
  3076. top: -54,
  3077. right: 30,
  3078. }}
  3079. >
  3080. 打印
  3081. </Button>
  3082. )}
  3083. content={() => this.refs.shouKuan}
  3084. />
  3085. </div>
  3086. </Spin>
  3087. </Modal> : <div />}
  3088. {this.state.timeVisible ? <Modal
  3089. maskClosable={false}
  3090. visible={this.state.timeVisible}
  3091. footer=""
  3092. title="工时详情"
  3093. className="admin-desc-content"
  3094. width="1300px"
  3095. pagination={false}
  3096. onCancel={() => {
  3097. // this.loadData();
  3098. this.setState({
  3099. timeVisible: false,
  3100. });
  3101. }}
  3102. >
  3103. <Spin spinning={this.state.loading}>
  3104. <div
  3105. className="patent-table"
  3106. style={
  3107. {
  3108. // width: 900,
  3109. // position: "relative",
  3110. // left: "50%",
  3111. // transform: "translate(-50%)",
  3112. // padding: "25px 0 30px 30px"
  3113. }
  3114. }
  3115. ref={(e) => {
  3116. this.refs.all = e;
  3117. }}
  3118. >
  3119. <Table
  3120. columns={this.state.timeColumns}
  3121. dataSource={this.state.timeDataList}
  3122. scroll={{ x: "max-content", y: 0 }}
  3123. pagination={false}
  3124. bordered
  3125. size="small"
  3126. />
  3127. </div>
  3128. </Spin>
  3129. <ReactToPrint
  3130. trigger={() => (
  3131. <Button
  3132. type="primary"
  3133. style={{
  3134. float: "right",
  3135. marginTop: 10,
  3136. position: "absolute",
  3137. top: 0,
  3138. right: 30,
  3139. }}
  3140. >
  3141. 打印
  3142. </Button>
  3143. )}
  3144. content={() => this.refs.all}
  3145. />
  3146. </Modal> : <div />}
  3147. {this.state.cuiVisible ? <Modal
  3148. maskClosable={false}
  3149. visible={this.state.cuiVisible}
  3150. footer=""
  3151. title="催款详情"
  3152. className="admin-desc-content"
  3153. width="1300px"
  3154. pagination={false}
  3155. onCancel={() => {
  3156. // this.loadData();
  3157. this.setState({
  3158. cuiVisible: false,
  3159. });
  3160. }}
  3161. >
  3162. <Spin spinning={this.state.loading}>
  3163. <div
  3164. className="patent-table"
  3165. style={
  3166. {
  3167. // width: 900,
  3168. // position: "relative",
  3169. // left: "50%",
  3170. // transform: "translate(-50%)",
  3171. // padding: "25px 0 30px 30px"
  3172. }
  3173. }
  3174. ref={(e) => {
  3175. this.refs.all = e;
  3176. }}
  3177. >
  3178. <Table
  3179. columns={this.state.cuiColumns}
  3180. dataSource={this.state.cuiDataList}
  3181. scroll={{ x: "max-content", y: 0 }}
  3182. pagination={false}
  3183. bordered
  3184. size="small"
  3185. />
  3186. </div>
  3187. </Spin>
  3188. <ReactToPrint
  3189. trigger={() => (
  3190. <Button
  3191. type="primary"
  3192. style={{
  3193. float: "right",
  3194. marginTop: 10,
  3195. position: "absolute",
  3196. top: 0,
  3197. right: 30,
  3198. }}
  3199. >
  3200. 打印
  3201. </Button>
  3202. )}
  3203. content={() => this.refs.all}
  3204. />
  3205. </Modal> : <div />}
  3206. {this.state.proVisible ? <Modal
  3207. maskClosable={false}
  3208. visible={this.state.proVisible}
  3209. footer=""
  3210. title="项目详情"
  3211. className="admin-desc-content"
  3212. width="1300px"
  3213. pagination={false}
  3214. onCancel={() => {
  3215. // this.loadData();
  3216. this.setState({
  3217. proVisible: false,
  3218. });
  3219. }}
  3220. >
  3221. <Spin spinning={this.state.loading}>
  3222. <Project
  3223. record={this.state.record}
  3224. visible={this.state.pvisible}
  3225. cancel={() => {
  3226. this.setState({ pvisible: false });
  3227. }}
  3228. />
  3229. <div
  3230. className="patent-table"
  3231. style={
  3232. {
  3233. // width: 900,
  3234. // position: "relative",
  3235. // left: "50%",
  3236. // transform: "translate(-50%)",
  3237. // padding: "25px 0 30px 30px"
  3238. }
  3239. }
  3240. ref={(e) => {
  3241. this.refs.all = e;
  3242. }}
  3243. >
  3244. <Table
  3245. columns={this.state.proColumns}
  3246. dataSource={this.state.proDataList}
  3247. // onRowClick={this.tableRowClickPro}
  3248. pagination={false}
  3249. bordered
  3250. size="small"
  3251. />
  3252. </div>
  3253. <span style={{ display: "block", marginTop: 10, color: "red" }}>
  3254. 外包(内部)价格总计(万元):{this.state.totalWaibao}
  3255. </span>
  3256. </Spin>
  3257. <ReactToPrint
  3258. trigger={() => (
  3259. <Button
  3260. type="primary"
  3261. style={{
  3262. float: "right",
  3263. marginTop: 10,
  3264. position: "absolute",
  3265. top: 0,
  3266. right: 30,
  3267. }}
  3268. >
  3269. 打印
  3270. </Button>
  3271. )}
  3272. content={() => this.refs.all}
  3273. />
  3274. </Modal> : <div />}
  3275. </div>
  3276. {/* {this.state.addnextVisible &&
  3277. <ProjectDetailsReadOnly
  3278. infor={this.state.dataInfor}
  3279. visible={this.state.addnextVisible}
  3280. onCancel={this.nextCancel}
  3281. />} */}
  3282. {
  3283. // 项目业务详情
  3284. this.state.addnextVisible &&
  3285. <NewEditProject
  3286. readOnly={
  3287. this.state.dataInfor &&
  3288. Object.keys(this.state.dataInfor).length > 0 &&
  3289. this.state.processStatus !== 0
  3290. }
  3291. visible={this.state.addnextVisible}
  3292. dataInfor={this.state.dataInfor}
  3293. onCancel={this.nextCancel}
  3294. />
  3295. }
  3296. </div>
  3297. );
  3298. },
  3299. })
  3300. );
  3301. export default IntentionCustomer;