approveds.jsx 100 KB

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