approveds.jsx 104 KB

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