approveds.jsx 101 KB

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