approvedOutsourcingAll.jsx 128 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268
  1. import React from "react";
  2. import $ from "jquery/src/ajax";
  3. import moment from "moment";
  4. import "./public.less";
  5. import {
  6. Button,
  7. Form,
  8. Input,
  9. Select,
  10. Spin,
  11. Table,
  12. message,
  13. DatePicker,
  14. Modal,
  15. Upload,
  16. Tabs,
  17. Col,
  18. Tag, Tooltip
  19. } from "antd";
  20. import Receivable from "./receivable";
  21. import Assign from "@/manageCenter/publicComponent/assign";
  22. import ReactToPrint from "react-to-print";
  23. import ResolutionDetail from "@/resolutionDetail";
  24. import KaiPiaoModal from "./kaiPiaoModal";
  25. import OrderRiZi from "@/orderRiZi.jsx";
  26. import {
  27. getjiedian,
  28. getProcessStatus,
  29. getApproval,
  30. getNewOrderType,
  31. getLiquidationStatus,
  32. splitUrl,
  33. getprovince,
  34. getRefundStatus,
  35. getTransactionProject,
  36. getTaskStatus,
  37. getNewOrderStatus,
  38. getInvoiceStatus,
  39. getCuikuan
  40. } from "@/tools";
  41. import { ChooseList } from "../../../../component/manageCenter/order/orderNew/chooseList";
  42. import ImgList from "../../../common/imgList";
  43. import {getProjectName} from "../../../tools";
  44. import OrderItemStatus from "../../../common/orderItemStatus";
  45. import EnterpriseNameChange from "../../../common/enterpriseNameChange";
  46. import ContentUrl from "../../order/orderNew/contentUrl";
  47. const FormItem = Form.Item;
  48. const approvedOutsourcing = React.createClass({
  49. departmentList() {
  50. this.setState({
  51. loading: true,
  52. });
  53. $.ajax({
  54. method: "get",
  55. dataType: "json",
  56. crossDomain: false,
  57. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  58. data: {},
  59. success: function (data) {
  60. let thedata = data.data;
  61. let theArr = [];
  62. if (!thedata) {
  63. if (data.error && data.error.length) {
  64. message.warning(data.error[0].message);
  65. }
  66. } else {
  67. thedata.map(function (item, index) {
  68. theArr.push({
  69. key: index,
  70. name: item.name,
  71. id: item.id,
  72. });
  73. });
  74. }
  75. this.setState({
  76. departmentArr: theArr,
  77. });
  78. }.bind(this),
  79. }).always(
  80. function () {
  81. this.setState({
  82. loading: false,
  83. });
  84. }.bind(this)
  85. );
  86. },
  87. loadData(pageNo, pageSize) {
  88. this.state.data = [];
  89. this.setState({
  90. page: pageNo,
  91. loadingA: true,
  92. });
  93. $.ajax({
  94. method: "get",
  95. dataType: "json",
  96. crossDomain: false,
  97. url: globalConfig.context + "/api/admin/financial/financeList",
  98. data: {
  99. pageNo: pageNo || 1,
  100. pageSize: pageSize || this.state.pagination.pageSize,
  101. buyerName: this.state.nameSearch, //客户名称
  102. orderNo: this.state.orderNoSearch,
  103. startTime: this.state.releaseDate[0],
  104. endTime: this.state.releaseDate[1],
  105. startFinalReceivablesTime: this.state.shouKuanDate[0],
  106. endFinalReceivablesTime: this.state.shouKuanDate[1],
  107. departmentId: this.state.departmenttList,
  108. processStatus: this.state.processStatusSearch,
  109. contractNo: this.state.contractNoSearch,
  110. outsource: 1,
  111. liquidationStatus: this.state.liquidationStatus,
  112. amountStatus: this.state.amountStatus,
  113. },
  114. success: function (data) {
  115. let theArr = [];
  116. if (!data.data || !data.data.pagination.list) {
  117. if (data.error && data.error.length) {
  118. message.warning(data.error[0].message);
  119. }
  120. } else {
  121. for (let i = 0; i < data.data.pagination.list.length; i++) {
  122. let thisdata = data.data.pagination.list[i];
  123. theArr.push({
  124. key: thisdata.orderNo,
  125. orderNo: thisdata.orderNo,
  126. orderType: thisdata.orderType,
  127. orderStatus: thisdata.orderStatus,
  128. sellerName: thisdata.sellerName,
  129. processStatus: thisdata.processStatus,
  130. liquidationStatus: thisdata.liquidationStatus,
  131. approval: thisdata.approval,
  132. buyerName: thisdata.buyerName,
  133. actuallyTotalAmount: thisdata.actuallyTotalAmount,
  134. signTime: thisdata.signTime,
  135. companyId: thisdata.companyId,
  136. companyName: thisdata.companyName,
  137. buyerId: thisdata.buyerId,
  138. contractNo: thisdata.contractNo,
  139. createTime: thisdata.createTime,
  140. departmentName: thisdata.departmentName,
  141. outsourceName: thisdata.outsourceName,
  142. invoiceAmount: thisdata.invoiceAmount,
  143. finalReceivables: thisdata.finalReceivables,
  144. finalReceivablesTime: thisdata.finalReceivablesTime,
  145. signTotalAmount: thisdata.signTotalAmount,
  146. outsourceAmount: thisdata.outsourceAmount,
  147. financeName: thisdata.financeName,
  148. backStatus: thisdata.backStatus,
  149. orderReceivables: thisdata.orderReceivables,
  150. orderArrears: thisdata.orderArrears,
  151. });
  152. }
  153. }
  154. this.state.pagination.current = data.data.pagination.pageNo;
  155. this.state.pagination.total = data.data.pagination.totalCount;
  156. if (
  157. data.data &&
  158. data.data.pagination.list &&
  159. !data.data.pagination.list.length
  160. ) {
  161. this.state.pagination.current = 0;
  162. this.state.pagination.total = 0;
  163. }
  164. this.setState({
  165. totalPage: data.data.pagination.totalPage,
  166. dataSource: theArr,
  167. pagination: this.state.pagination,
  168. totalHui: data.data.count ? data.data.count.signTotalAmount : 0,
  169. hui: data.data.count ? data.data.count.actuallyTotalAmount : 0,
  170. });
  171. }.bind(this),
  172. }).always(
  173. function () {
  174. this.setState({
  175. loadingA: false,
  176. });
  177. }.bind(this)
  178. );
  179. },
  180. getInitialState() {
  181. return {
  182. cuiTabKey: "1",
  183. rotateDeg: 0,
  184. searchMore: true,
  185. assignVisibleX: false,
  186. assignVisibleY: false,
  187. releaseDate: [],
  188. shouKuanDate: [],
  189. assignDataX: [],
  190. assignDataY: [],
  191. attachmentUrl: [],
  192. pictureUrl: [],
  193. totalPage: 0,
  194. modKey: "1",
  195. width: "800px",
  196. boHuivisible: false,
  197. selectedRowKeys: [],
  198. selectedRows: [],
  199. loading: 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. loadingA: false,
  213. // 子组件改变的表格title数组
  214. changeList: undefined,
  215. columns: [
  216. {
  217. title: "合同编号",
  218. dataIndex: "contractNo",
  219. key: "contractNo",
  220. className: "title-table",
  221. fixed: "left",
  222. },
  223. {
  224. title: "客户名称",
  225. dataIndex: "buyerName",
  226. key: "buyerName",
  227. className: "title-table",
  228. fixed: "left",
  229. width:150,
  230. render: text => {
  231. return (
  232. <Tooltip title={text}>
  233. <div style={{
  234. maxWidth:'150px',
  235. overflow:'hidden',
  236. textOverflow: "ellipsis",
  237. whiteSpace:'nowrap',
  238. }}>{text}</div>
  239. </Tooltip>
  240. )
  241. }
  242. },
  243. {
  244. title: "订单编号",
  245. dataIndex: "orderNo",
  246. key: "orderNo",
  247. className: "title-table",
  248. // fixed: "left"
  249. },
  250. {
  251. title: "特批状态",
  252. dataIndex: "approval",
  253. key: "approval",
  254. className: "title-table",
  255. render: (text) => {
  256. if (text == 1 || text == 2) {
  257. return <Tag color="#f50">{getApproval(text)}</Tag>;
  258. }
  259. return getApproval(text);
  260. },
  261. },
  262. {
  263. title: "订单部门",
  264. dataIndex: "departmentName",
  265. key: "departmentName",
  266. className: "title-table",
  267. },
  268. {
  269. title: "订单负责人",
  270. dataIndex: "sellerName",
  271. key: "sellerName",
  272. className: "title-table",
  273. },
  274. {
  275. title: "财务负责人",
  276. dataIndex: "financeName",
  277. key: "financeName",
  278. className: "title-table",
  279. },
  280. {
  281. title: "外包公司",
  282. dataIndex: "outsourceName",
  283. key: "outsourceName",
  284. className: "title-table",
  285. },
  286. {
  287. title: "签单日期",
  288. dataIndex: "signTime",
  289. key: "signTime",
  290. className: "title-table",
  291. },
  292. {
  293. title: "下单日期",
  294. dataIndex: "createTime",
  295. key: "createTime",
  296. className: "title-table",
  297. },
  298. {
  299. title: "签单金额(万元)",
  300. dataIndex: "signTotalAmount",
  301. key: "signTotalAmount",
  302. className: "title-table",
  303. render: (text) => {
  304. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  305. }
  306. },
  307. {
  308. title: "开票金额(万元)",
  309. dataIndex: "invoiceAmount",
  310. key: "invoiceAmount",
  311. className: "title-table",
  312. render: (text) => {
  313. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  314. }
  315. },
  316. {
  317. title: "已收款(万元)",
  318. dataIndex: "actuallyTotalAmount",
  319. key: "actuallyTotalAmount",
  320. className: "title-table",
  321. render: (text) => {
  322. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  323. }
  324. },
  325. {
  326. title: "应收款(万元)",
  327. dataIndex: "orderReceivables",
  328. key: "orderReceivables",
  329. className: "title-table",
  330. render: (text) => {
  331. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  332. }
  333. },
  334. {
  335. title: "欠款(万元)",
  336. dataIndex: "orderArrears",
  337. key: "orderArrears",
  338. className: "title-table",
  339. render: (text) => {
  340. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  341. }
  342. },
  343. {
  344. title: "最近收款(万元)",
  345. dataIndex: "finalReceivables",
  346. key: "finalReceivables",
  347. className: "title-table",
  348. render: (text) => {
  349. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  350. }
  351. },
  352. {
  353. title: "外包成本",
  354. dataIndex: "outsourceAmount",
  355. key: "outsourceAmount",
  356. className: "title-table",
  357. render: (text) => {
  358. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  359. }
  360. },
  361. {
  362. title: "最近收款时间",
  363. dataIndex: "finalReceivablesTime",
  364. key: "finalReceivablesTime",
  365. className: "title-table",
  366. },
  367. {
  368. title: "结算状态",
  369. dataIndex: "liquidationStatus",
  370. key: "liquidationStatus",
  371. className: "title-table",
  372. render: (text) => {
  373. return getLiquidationStatus(text);
  374. },
  375. },
  376. {
  377. title: "流程状态",
  378. dataIndex: "processStatus",
  379. key: "processStatus",
  380. className: "title-table",
  381. render: (text) => {
  382. return getProcessStatus(text);
  383. },
  384. },
  385. {
  386. title: "驳回状态",
  387. dataIndex: "backStatus",
  388. key: "backStatus",
  389. className: "title-table",
  390. render: (text) => {
  391. if (text == 3) {
  392. return <Tag>已驳回</Tag>;
  393. } else {
  394. return "";
  395. }
  396. },
  397. },
  398. // {
  399. // title: "操作",
  400. // dataIndex: "caozuo",
  401. // key: "caouzo",
  402. // className: "title-table",
  403. // render: (text, recard) => {
  404. // return (
  405. // <div>
  406. // {recard.liquidationStatus < 2 &&
  407. // (recard.approval === 1 || recard.approval === 2) ? (
  408. // <Button
  409. // style={{ background: "rgb(192,192,192)" }}
  410. // onClick={e => {
  411. // e.stopPropagation(), this.evaluateX(recard);
  412. // }}
  413. // >
  414. // 收款
  415. // </Button>
  416. // ) : (
  417. // <Button
  418. // type="primary"
  419. // onClick={e => {
  420. // e.stopPropagation(), this.evaluateX(recard);
  421. // }}
  422. // >
  423. // 收款
  424. // </Button>
  425. // )}
  426. // {recard.processStatus < 4 ? (
  427. // <Button
  428. // type="primary"
  429. // onClick={e => {
  430. // e.stopPropagation(), this.evaluateZ(recard);
  431. // }}
  432. // style={{ marginLeft: "5px" }}
  433. // >
  434. // 通过
  435. // </Button>
  436. // ) : (
  437. // ""
  438. // )}
  439. // {!(
  440. // recard.actuallyTotalAmount &&
  441. // Number(recard.actuallyTotalAmount) > 0
  442. // ) && (
  443. // <Button
  444. // type="danger"
  445. // style={{ marginLeft: "5px" }}
  446. // onClick={e => {
  447. // e.stopPropagation(), this.reject(recard);
  448. // }}
  449. // >
  450. // 驳回
  451. // </Button>
  452. // )}
  453. // {
  454. // // <Button
  455. // // type="primary"
  456. // // style={{ marginLeft: "5px" }}
  457. // // onClick={e => {
  458. // // e.stopPropagation(), this.evaluateY(recard, "财务专员");
  459. // // console.log(recard);
  460. // // }}
  461. // // >
  462. // // 转交
  463. // // </Button>
  464. // }
  465. // </div>
  466. // );
  467. // }
  468. // }
  469. ],
  470. ContactsListsNew: [
  471. {
  472. title: "项目名称",
  473. dataIndex: "commodityName",
  474. key: "commodityName",
  475. render: (text, record) => {
  476. return <span>{text + "-" + record.tid}</span>;
  477. },
  478. },
  479. {
  480. title: "项目分类",
  481. dataIndex: "projectType",
  482. key: "projectType",
  483. render: (text) => {
  484. let arr = this.state.dataSourceX || [];
  485. let str = "";
  486. for (let i = 0; i < arr.length; i++) {
  487. if (this.state.dataSourceX[i].sort == text) {
  488. str = this.state.dataSourceX[i].cname;
  489. return <span>{str}</span>;
  490. }
  491. }
  492. },
  493. },
  494. {
  495. title: "催款科目",
  496. dataIndex: "dunTypeName",
  497. key: "dunTypeName",
  498. render: (text, record) => {
  499. if (record.customizeName) {
  500. return text + record.customizeName;
  501. }
  502. return <span>{text}</span>;
  503. },
  504. },
  505. {
  506. title: "时间(天)",
  507. dataIndex: "waitDay",
  508. key: "waitDay",
  509. render: (text, record) => {
  510. if (record.dunTypeName) {
  511. if (record.customizeTimes) {
  512. return record.customizeTimes;
  513. }
  514. return <span>{text}</span>;
  515. }
  516. },
  517. },
  518. {
  519. title: "金额(万元)",
  520. dataIndex: "money",
  521. key: "money",
  522. render: (text, record) => {
  523. if (record.dunTypeName) {
  524. if (record.appropriationRatio) {
  525. return <span>{record.appropriationRatio}(拨款比例)</span>;
  526. } else {
  527. return <span>{text}</span>;
  528. }
  529. }
  530. },
  531. },
  532. {
  533. title: "服务年限",
  534. dataIndex: "startDate",
  535. key: "startDate",
  536. render: (text, record) => {
  537. if (record.dunTypeName) {
  538. return <span>{text}</span>;
  539. }
  540. },
  541. },
  542. {
  543. title: "催款状态",
  544. dataIndex: "status",
  545. key: "status",
  546. render: (text) => {
  547. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  548. },
  549. },
  550. ],
  551. ContactsLists: [
  552. {
  553. title: "催款科目",
  554. dataIndex: "dunSubject",
  555. key: "dunSubject",
  556. render: (text) => {
  557. return getjiedian(text);
  558. },
  559. },
  560. {
  561. title: "金额(万元)",
  562. dataIndex: "money",
  563. key: "money",
  564. },
  565. {
  566. title: "催款状态",
  567. dataIndex: "dunStatus",
  568. key: "dunStatus",
  569. render: (text) => {
  570. return getCuikuan(text);
  571. },
  572. },
  573. ],
  574. proColumns: [
  575. {
  576. title: "序号",
  577. dataIndex: "key",
  578. key: "key",
  579. },
  580. {
  581. title: "合同编号",
  582. dataIndex: "contractNo",
  583. key: "contractNo",
  584. },
  585. {
  586. title: "订单编号",
  587. dataIndex: "orderNo",
  588. key: "orderNo",
  589. },
  590. {
  591. title: "客户名称",
  592. dataIndex: "userName",
  593. key: "userName",
  594. render: text => {
  595. return (
  596. <Tooltip title={text}>
  597. <div style={{
  598. maxWidth:'150px',
  599. overflow:'hidden',
  600. textOverflow: "ellipsis",
  601. whiteSpace:'nowrap',
  602. }}>{text}</div>
  603. </Tooltip>
  604. )
  605. }
  606. },
  607. {
  608. title: "订单负责人",
  609. dataIndex: "salesmanName",
  610. key: "salesmanName",
  611. },
  612. {
  613. title: "是否主项目",
  614. dataIndex: "main",
  615. key: "main",
  616. render: (text) => {
  617. return text == 0 ? "否" : "是";
  618. },
  619. },
  620. {
  621. title: "项目类别",
  622. dataIndex: "cname",
  623. key: "cname",
  624. },
  625. {
  626. title: "项目名称",
  627. dataIndex: "commodityName",
  628. key: "commodityName",
  629. },
  630. {
  631. title: "项目数量",
  632. dataIndex: "commodityQuantity",
  633. key: "commodityQuantity",
  634. render: (text, record) => {
  635. if (record.splitStatus == 1) {
  636. return (
  637. <span>
  638. {text}{" "}
  639. <Tag
  640. color="#108ee9"
  641. onClick={(e) => {
  642. e.stopPropagation();
  643. this.showRes(record);
  644. }}
  645. >
  646. 已拆
  647. </Tag>
  648. </span>
  649. );
  650. } else {
  651. return text;
  652. }
  653. },
  654. },
  655. {
  656. title: "服务市价",
  657. dataIndex: "commodityPrice",
  658. key: "commodityPrice",
  659. },
  660. {
  661. title: "证书编号",
  662. dataIndex: "certificateNumber",
  663. key: "certificateNumber",
  664. },
  665. {
  666. title: "项目状态",
  667. dataIndex: "projectStatus",
  668. key: "projectStatus",
  669. render: (text) => {
  670. return getProjectName(text);
  671. },
  672. },
  673. {
  674. title: "项目说明",
  675. dataIndex: "taskComment",
  676. key: "taskComment",
  677. },
  678. // {
  679. // title: "外包(内部)公司",
  680. // dataIndex: "outsourceName",
  681. // key: "outsourceName",
  682. // },
  683. // {
  684. // title: "外包(内部)价格",
  685. // dataIndex: "outsourcePrice",
  686. // key: "outsourcePrice",
  687. // },
  688. ],
  689. cuiColumns: [
  690. {
  691. title: "序号",
  692. dataIndex: "key",
  693. key: "key",
  694. },
  695. {
  696. title: "合同编号",
  697. dataIndex: "contractNo",
  698. key: "contractNo",
  699. },
  700. {
  701. title: "订单编号",
  702. dataIndex: "orderNo",
  703. key: "orderNo",
  704. },
  705. {
  706. title: "客户名称",
  707. dataIndex: "userName",
  708. key: "userName",
  709. render: text => {
  710. return (
  711. <Tooltip title={text}>
  712. <div style={{
  713. maxWidth:'150px',
  714. overflow:'hidden',
  715. textOverflow: "ellipsis",
  716. whiteSpace:'nowrap',
  717. }}>{text}</div>
  718. </Tooltip>
  719. )
  720. }
  721. },
  722. {
  723. title: "订单负责人",
  724. dataIndex: "salesmanName",
  725. key: "salesmanName",
  726. },
  727. {
  728. title: "订单部门",
  729. dataIndex: "depName",
  730. key: "depName",
  731. },
  732. {
  733. title: "订单状态",
  734. dataIndex: "orderStatus",
  735. key: "orderStatus",
  736. render: (text) => {
  737. return getNewOrderStatus(text);
  738. },
  739. },
  740. {
  741. title: "项目状态",
  742. dataIndex: "projectStatus",
  743. key: "projectStatus",
  744. render: (text) => {
  745. return getProjectName(text);
  746. },
  747. },
  748. {
  749. title: "签单金额",
  750. dataIndex: "totalAmount",
  751. key: "totalAmount",
  752. },
  753. {
  754. title: "结算状态",
  755. dataIndex: "liquidationStatus",
  756. key: "liquidationStatus",
  757. render: (text) => {
  758. return getLiquidationStatus(text);
  759. },
  760. },
  761. {
  762. title: "已收款",
  763. dataIndex: "settlementAmount",
  764. key: "settlementAmount",
  765. },
  766. {
  767. title: "应收款",
  768. dataIndex: "accountsReceivable",
  769. key: "accountsReceivable",
  770. },
  771. {
  772. title: "催收科目",
  773. dataIndex: "dunSubject",
  774. key: "dunSubject",
  775. // render: text => {
  776. // return getjiedian(text);
  777. // }
  778. },
  779. {
  780. title: "催款状态",
  781. dataIndex: "dunStatus",
  782. key: "dunStatus",
  783. },
  784. {
  785. title: "催收启动时间",
  786. dataIndex: "startDate",
  787. key: "startDate",
  788. },
  789. ],
  790. timeColumns: [
  791. {
  792. title: "合同编号",
  793. dataIndex: "contractNo",
  794. key: "contractNo",
  795. },
  796. {
  797. title: "订单编号",
  798. dataIndex: "orderNo",
  799. key: "orderNo",
  800. },
  801. {
  802. title: "项目编号",
  803. dataIndex: "id",
  804. key: "id",
  805. render: (text, record) => {
  806. if (record.splitStatus == 2) {
  807. return <span>{record.splitSuper + "-" + record.splitId}</span>;
  808. } else {
  809. return text;
  810. }
  811. },
  812. },
  813. {
  814. title: "客户名称",
  815. dataIndex: "userName",
  816. key: "userName",
  817. render: text => {
  818. return (
  819. <Tooltip title={text}>
  820. <div style={{
  821. maxWidth:'150px',
  822. overflow:'hidden',
  823. textOverflow: "ellipsis",
  824. whiteSpace:'nowrap',
  825. }}>{text}</div>
  826. </Tooltip>
  827. )
  828. }
  829. },
  830. {
  831. title: "订单部门",
  832. dataIndex: "depName",
  833. key: "depName",
  834. },
  835. {
  836. title: "订单负责人",
  837. dataIndex: "salesmanName",
  838. key: "salesmanName",
  839. },
  840. {
  841. title: "项目类别",
  842. dataIndex: "cname",
  843. key: "cname",
  844. },
  845. {
  846. title: "项目名称",
  847. dataIndex: "taskName",
  848. key: "taskName",
  849. },
  850. {
  851. title: "项目负责人",
  852. dataIndex: "receiverName",
  853. key: "receiverName",
  854. },
  855. {
  856. title: "项目价格(万元)",
  857. dataIndex: "commodityPrice",
  858. key: "commodityPrice",
  859. },
  860. {
  861. title: "数量(个)",
  862. dataIndex: "commodityQuantity",
  863. key: "commodityQuantity",
  864. },
  865. {
  866. title: "任务状态",
  867. dataIndex: "taskStatus",
  868. key: "taskStatus",
  869. render: (text) => {
  870. return getTaskStatus(text);
  871. },
  872. },
  873. {
  874. title: "项目状态",
  875. dataIndex: "projectStatus",
  876. key: "projectStatus",
  877. render: (text) => {
  878. return getProjectName(text);
  879. },
  880. },
  881. {
  882. title: "工时",
  883. dataIndex: "hours",
  884. key: "hours",
  885. },
  886. {
  887. title: "是否外包",
  888. dataIndex: "outsource",
  889. key: "outsource",
  890. render: (text) => {
  891. if (text == 0) {
  892. return "否";
  893. } else if (text == 1) {
  894. return "是";
  895. }
  896. },
  897. },
  898. {
  899. title: "签单日期",
  900. dataIndex: "signTime",
  901. key: "signTime",
  902. },
  903. {
  904. title: "派单日期",
  905. dataIndex: "creteTime",
  906. key: "creteTime",
  907. },
  908. {
  909. title: "分配时间",
  910. dataIndex: "taskDistributionTime",
  911. key: "taskDistributionTime",
  912. },
  913. {
  914. title: "完成时间",
  915. dataIndex: "taskEndTime",
  916. key: "taskEndTime",
  917. },
  918. ],
  919. printColumns: [
  920. {
  921. title: "合同编号",
  922. dataIndex: "contractNo",
  923. key: "contractNo",
  924. },
  925. {
  926. title: "订单编号",
  927. dataIndex: "orderNo",
  928. key: "orderNo",
  929. // fixed: "left"
  930. },
  931. {
  932. title: "客户名称",
  933. dataIndex: "buyerName",
  934. key: "buyerName",
  935. render: text => {
  936. return (
  937. <Tooltip title={text}>
  938. <div style={{
  939. maxWidth:'150px',
  940. overflow:'hidden',
  941. textOverflow: "ellipsis",
  942. whiteSpace:'nowrap',
  943. }}>{text}</div>
  944. </Tooltip>
  945. )
  946. }
  947. },
  948. {
  949. title: "订单部门",
  950. dataIndex: "departmentName",
  951. key: "departmentName",
  952. },
  953. {
  954. title: "订单负责人",
  955. dataIndex: "sellerName",
  956. key: "sellerName",
  957. },
  958. {
  959. title: "签单日期",
  960. dataIndex: "signTime",
  961. key: "signTime",
  962. },
  963. {
  964. title: "下单日期",
  965. dataIndex: "createTime",
  966. key: "createTime",
  967. },
  968. {
  969. title: "签单金额(万元)",
  970. dataIndex: "signTotalAmount",
  971. key: "signTotalAmount",
  972. render: (text) => {
  973. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  974. }
  975. },
  976. {
  977. title: "开票金额(万元)",
  978. dataIndex: "invoiceAmount",
  979. key: "invoiceAmount",
  980. render: (text) => {
  981. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  982. }
  983. },
  984. {
  985. title: "已收款(万元)",
  986. dataIndex: "actuallyTotalAmount",
  987. key: "actuallyTotalAmount",
  988. render: (text) => {
  989. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  990. }
  991. },
  992. {
  993. title: "最近收款(万元)",
  994. dataIndex: "finalReceivables",
  995. key: "finalReceivables",
  996. render: (text) => {
  997. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  998. }
  999. },
  1000. {
  1001. title: "最近收款时间",
  1002. dataIndex: "finalReceivablesTime",
  1003. key: "finalReceivablesTime",
  1004. },
  1005. {
  1006. title: "结算状态",
  1007. dataIndex: "liquidationStatus",
  1008. key: "liquidationStatus",
  1009. render: (text) => {
  1010. return getLiquidationStatus(text);
  1011. },
  1012. },
  1013. {
  1014. title: "流程状态",
  1015. dataIndex: "processStatus",
  1016. key: "processStatus",
  1017. render: (text) => {
  1018. return getProcessStatus(text);
  1019. },
  1020. },
  1021. {
  1022. title: "特批状态",
  1023. dataIndex: "approval",
  1024. key: "approval",
  1025. render: (text) => {
  1026. return getApproval(text);
  1027. },
  1028. },
  1029. ],
  1030. columnsX: [
  1031. {
  1032. title: "业务项目名称",
  1033. dataIndex: "commodityName",
  1034. key: "commodityName",
  1035. render: (text, record) => {
  1036. return text && text.length > 6 ? (
  1037. <span title={text}>{text.substr(0, 8) + "-" + record.id}...</span>
  1038. ) : (
  1039. text + "-" + record.id
  1040. );
  1041. },
  1042. },
  1043. {
  1044. title: "项目类别",
  1045. dataIndex: "cname",
  1046. key: "cname",
  1047. },
  1048. {
  1049. title: "项目数量",
  1050. dataIndex: "commodityQuantity",
  1051. key: "commodityQuantity",
  1052. render: (text, record) => {
  1053. if (record.splitStatus == 1) {
  1054. return (
  1055. <span>
  1056. {text}{" "}
  1057. <Tag
  1058. color="#108ee9"
  1059. onClick={(e) => {
  1060. e.stopPropagation();
  1061. this.showRes(record);
  1062. }}
  1063. >
  1064. 已拆
  1065. </Tag>
  1066. </span>
  1067. );
  1068. } else {
  1069. return text;
  1070. }
  1071. },
  1072. },
  1073. {
  1074. title: "服务市价(万元)",
  1075. dataIndex: "commodityPrice",
  1076. key: "commodityPrice",
  1077. },
  1078. {
  1079. title: "项目状态",
  1080. dataIndex: "projectStatus",
  1081. key: "projectStatus",
  1082. render: (text) => {
  1083. return getProjectName(text);
  1084. },
  1085. },
  1086. {
  1087. title: "证书编号",
  1088. dataIndex: "certificateNumber",
  1089. key: "certificateNumber",
  1090. },
  1091. {
  1092. title: "是否主要项目",
  1093. dataIndex: "main",
  1094. key: "main",
  1095. render: (text) => {
  1096. return text ? "是" : "否";
  1097. },
  1098. },
  1099. {
  1100. title: "项目说明",
  1101. dataIndex: "taskComment",
  1102. key: "taskComment",
  1103. render: (text) => {
  1104. return text && text.length > 8 ? (
  1105. <span title={text}>{text.substr(0, 8)}...</span>
  1106. ) : (
  1107. text
  1108. );
  1109. },
  1110. },
  1111. ],
  1112. columnsDate: [
  1113. {
  1114. title: "编号",
  1115. dataIndex: "id",
  1116. key: "id",
  1117. },
  1118. {
  1119. title: "订单编号",
  1120. dataIndex: "orderno",
  1121. key: "orderno",
  1122. },
  1123. {
  1124. title: "开票金额(万元)",
  1125. dataIndex: "amount",
  1126. key: "amount",
  1127. },
  1128. {
  1129. title: "申请时间",
  1130. dataIndex: "createTime",
  1131. key: "createTime",
  1132. },
  1133. {
  1134. title: "开票状态",
  1135. dataIndex: "status",
  1136. key: "status",
  1137. render: (text) => {
  1138. return getInvoiceStatus(text);
  1139. },
  1140. },
  1141. ],
  1142. columnsY: [
  1143. {
  1144. title: "流程",
  1145. dataIndex: "processName",
  1146. key: "processName",
  1147. },
  1148. {
  1149. title: "操作人",
  1150. dataIndex: "adminName",
  1151. key: "adminName",
  1152. },
  1153. {
  1154. title: "时间",
  1155. dataIndex: "createDate",
  1156. key: "createDate",
  1157. },
  1158. ],
  1159. columnsW: [
  1160. {
  1161. title: "外包名称",
  1162. dataIndex: "name",
  1163. key: "name",
  1164. },
  1165. {
  1166. title: "联系人",
  1167. dataIndex: "contacts",
  1168. key: "contacts",
  1169. },
  1170. {
  1171. title: "联系人电话",
  1172. dataIndex: "contactsMobile",
  1173. key: "contactsMobile",
  1174. },
  1175. {
  1176. title: "地址",
  1177. dataIndex: "ProvinceCity",
  1178. key: "ProvinceCity",
  1179. render: (test) => {
  1180. return test[0] === null
  1181. ? ""
  1182. : getprovince(test[0]) +
  1183. "/" +
  1184. getprovince(test[1]) +
  1185. "/" +
  1186. getprovince(test[2]);
  1187. },
  1188. },
  1189. {
  1190. title: "地址详情",
  1191. dataIndex: "address",
  1192. key: "address",
  1193. render: (text) => {
  1194. return text && text.length > 8 ? text.substr(0, 8) + "..." : text;
  1195. },
  1196. },
  1197. {
  1198. title: "创建时间",
  1199. dataIndex: "createTimes",
  1200. key: "createTimes",
  1201. },
  1202. {
  1203. title: "任务名称",
  1204. dataIndex: "tname",
  1205. key: "tname",
  1206. },
  1207. {
  1208. title: "合同编号",
  1209. dataIndex: "contractNo",
  1210. key: "contractNo",
  1211. },
  1212. {
  1213. title: "项目状态",
  1214. dataIndex: "projectStatus",
  1215. key: "projectStatus",
  1216. render: (text) => {
  1217. return getProjectName(text);
  1218. },
  1219. },
  1220. ],
  1221. dataSource: [],
  1222. searchTime: [],
  1223. printColumns: [
  1224. {
  1225. title: "合同编号",
  1226. dataIndex: "contractNo",
  1227. key: "contractNo",
  1228. },
  1229. {
  1230. title: "订单编号",
  1231. dataIndex: "orderNo",
  1232. key: "orderNo",
  1233. // fixed: "left"
  1234. },
  1235. {
  1236. title: "客户名称",
  1237. dataIndex: "buyerName",
  1238. key: "buyerName",
  1239. render: text => {
  1240. return (
  1241. <Tooltip title={text}>
  1242. <div style={{
  1243. maxWidth:'150px',
  1244. overflow:'hidden',
  1245. textOverflow: "ellipsis",
  1246. whiteSpace:'nowrap',
  1247. }}>{text}</div>
  1248. </Tooltip>
  1249. )
  1250. }
  1251. },
  1252. {
  1253. title: "订单部门",
  1254. dataIndex: "departmentName",
  1255. key: "departmentName",
  1256. },
  1257. {
  1258. title: "订单负责人",
  1259. dataIndex: "sellerName",
  1260. key: "sellerName",
  1261. },
  1262. {
  1263. title: "外包公司",
  1264. dataIndex: "outsourceName",
  1265. key: "outsourceName",
  1266. },
  1267. {
  1268. title: "签单日期",
  1269. dataIndex: "signTime",
  1270. key: "signTime",
  1271. },
  1272. {
  1273. title: "下单日期",
  1274. dataIndex: "createTime",
  1275. key: "createTime",
  1276. },
  1277. {
  1278. title: "签单金额(万元)",
  1279. dataIndex: "signTotalAmount",
  1280. key: "signTotalAmount",
  1281. },
  1282. {
  1283. title: "开票金额(万元)",
  1284. dataIndex: "invoiceAmount",
  1285. key: "invoiceAmount",
  1286. },
  1287. {
  1288. title: "已收款(万元)",
  1289. dataIndex: "actuallyTotalAmount",
  1290. key: "actuallyTotalAmount",
  1291. },
  1292. {
  1293. title: "最近收款(万元)",
  1294. dataIndex: "finalReceivables",
  1295. key: "finalReceivables",
  1296. },
  1297. {
  1298. title: "最近收款时间",
  1299. dataIndex: "finalReceivablesTime",
  1300. key: "finalReceivablesTime",
  1301. },
  1302. {
  1303. title: "结算状态",
  1304. dataIndex: "liquidationStatus",
  1305. key: "liquidationStatus",
  1306. render: (text) => {
  1307. return getLiquidationStatus(text);
  1308. },
  1309. },
  1310. {
  1311. title: "流程状态",
  1312. dataIndex: "processStatus",
  1313. key: "processStatus",
  1314. render: (text) => {
  1315. return getProcessStatus(text);
  1316. },
  1317. },
  1318. {
  1319. title: "特批状态",
  1320. dataIndex: "approval",
  1321. key: "approval",
  1322. render: (text) => {
  1323. return getApproval(text);
  1324. },
  1325. },
  1326. ],
  1327. waterlistDate: [
  1328. {
  1329. title: "订单编号",
  1330. dataIndex: "orderNo",
  1331. key: "orderNo",
  1332. },
  1333. {
  1334. title: "平台流水号",
  1335. dataIndex: "billNo",
  1336. key: "billNo",
  1337. // fixed: "left"
  1338. },
  1339. {
  1340. title: "金额(万元)",
  1341. dataIndex: "transactionAmount",
  1342. key: "transactionAmount",
  1343. },
  1344. {
  1345. title: "收款方",
  1346. dataIndex: "payeeName",
  1347. key: "payeeName",
  1348. },
  1349. {
  1350. title: "付款方",
  1351. dataIndex: "payerName",
  1352. key: "payerName",
  1353. },
  1354. {
  1355. title: "流水科目",
  1356. dataIndex: "transactionSubject",
  1357. key: "transactionSubject",
  1358. render: (text) => {
  1359. return getTransactionProject(text);
  1360. },
  1361. },
  1362. {
  1363. title: "收款类型",
  1364. dataIndex: "type",
  1365. key: "type",
  1366. },
  1367. {
  1368. title: "财务流水时间",
  1369. dataIndex: "financialPayTimes",
  1370. key: "financialPayTimes",
  1371. },
  1372. {
  1373. title: "财务流水号",
  1374. dataIndex: "financialPayNo",
  1375. key: "financialPayNo",
  1376. },
  1377. {
  1378. title: "订单负责人",
  1379. dataIndex: "saleName",
  1380. key: "saleName",
  1381. },
  1382. {
  1383. title: "创建时间",
  1384. dataIndex: "createTimes",
  1385. key: "createTimes",
  1386. },
  1387. {
  1388. title: "退款时间",
  1389. dataIndex: "refundTimes",
  1390. key: "refundTimes",
  1391. },
  1392. {
  1393. title: "删除时间",
  1394. dataIndex: "deleteTimes",
  1395. key: "deleteTimes",
  1396. },
  1397. {
  1398. title: "备注",
  1399. dataIndex: "remarks",
  1400. key: "remarks",
  1401. },
  1402. {
  1403. title: "流水状态",
  1404. dataIndex: "deleteSign",
  1405. key: "deleteSign",
  1406. render: (text, record) => {
  1407. if (!text) {
  1408. return "";
  1409. } else {
  1410. return <Tag>已删除</Tag>;
  1411. }
  1412. },
  1413. },
  1414. ],
  1415. waterData: [],
  1416. qianColumns: [
  1417. {
  1418. title: "序号",
  1419. dataIndex: "key",
  1420. key: "key",
  1421. },
  1422. {
  1423. title: "合同编号",
  1424. dataIndex: "contractNo",
  1425. key: "contractNo",
  1426. },
  1427. {
  1428. title: "订单编号",
  1429. dataIndex: "orderNo",
  1430. key: "orderNo",
  1431. },
  1432. {
  1433. title: "客户名称",
  1434. dataIndex: "userName",
  1435. key: "userName",
  1436. render: text => {
  1437. return (
  1438. <Tooltip title={text}>
  1439. <div style={{
  1440. maxWidth:'150px',
  1441. overflow:'hidden',
  1442. textOverflow: "ellipsis",
  1443. whiteSpace:'nowrap',
  1444. }}>{text}</div>
  1445. </Tooltip>
  1446. )
  1447. }
  1448. },
  1449. {
  1450. title: "订单负责人",
  1451. dataIndex: "salesmanName",
  1452. key: "salesmanName",
  1453. },
  1454. {
  1455. title: "订单部门",
  1456. dataIndex: "depName",
  1457. key: "depName",
  1458. },
  1459. {
  1460. title: "订单状态",
  1461. dataIndex: "orderStatus",
  1462. key: "orderStatus",
  1463. render: (text) => {
  1464. return getNewOrderStatus(text);
  1465. },
  1466. },
  1467. {
  1468. title: "项目状态",
  1469. dataIndex: "projectStatus",
  1470. key: "projectStatus",
  1471. render: (text) => {
  1472. return getProjectName(text);
  1473. },
  1474. },
  1475. {
  1476. title: "签单金额",
  1477. dataIndex: "totalAmount",
  1478. key: "totalAmount",
  1479. },
  1480. {
  1481. title: "结算状态",
  1482. dataIndex: "liquidationStatus",
  1483. key: "liquidationStatus",
  1484. render: (text) => {
  1485. return getLiquidationStatus(text);
  1486. },
  1487. },
  1488. {
  1489. title: "已收款",
  1490. dataIndex: "settlementAmount",
  1491. key: "settlementAmount",
  1492. },
  1493. {
  1494. title: "欠款",
  1495. dataIndex: "orderArrears",
  1496. key: "orderArrears",
  1497. },
  1498. {
  1499. title: "催收科目",
  1500. dataIndex: "type",
  1501. key: "type",
  1502. render: (text) => {
  1503. return "按时触发应收欠款";
  1504. },
  1505. },
  1506. {
  1507. title: "催款状态",
  1508. dataIndex: "dunStatus",
  1509. key: "dunStatus",
  1510. render: (text) => {
  1511. if (text == 0) {
  1512. return "未启动";
  1513. } else if (text == 1) {
  1514. return "催款中";
  1515. } else if (text == 2) {
  1516. return "已完成";
  1517. } else if (text == 3) {
  1518. return "已停止";
  1519. }
  1520. },
  1521. },
  1522. {
  1523. title: "催收启动时间",
  1524. dataIndex: "startDate",
  1525. key: "startDate",
  1526. },
  1527. ],
  1528. };
  1529. },
  1530. // 特批通过
  1531. evaluateZ(record) {
  1532. $.ajax({
  1533. method: "POST",
  1534. dataType: "json",
  1535. crossDomain: false,
  1536. url: globalConfig.context + "/api/admin/financial/financeApproval",
  1537. data: {
  1538. orderNo: record.orderNo,
  1539. },
  1540. }).done(
  1541. function (data) {
  1542. if (!data.error.length) {
  1543. message.success("通过成功!");
  1544. this.setState({
  1545. loading: false,
  1546. });
  1547. this.loadData();
  1548. } else {
  1549. message.warning(data.error[0].message);
  1550. }
  1551. }.bind(this)
  1552. );
  1553. },
  1554. jdDate(orderNo) {
  1555. $.ajax({
  1556. method: "get",
  1557. dataType: "json",
  1558. crossDomain: false,
  1559. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  1560. data: {
  1561. orderNo: orderNo,
  1562. },
  1563. success: function (data) {
  1564. let thisData = data.data;
  1565. if (!thisData.length) {
  1566. if (data.error && data.error.length) {
  1567. message.warning(data.error[0].message);
  1568. }
  1569. thisData = {};
  1570. } else {
  1571. this.setState({
  1572. jsDate: thisData,
  1573. });
  1574. }
  1575. }.bind(this),
  1576. }).always(
  1577. function () {
  1578. this.setState({
  1579. loading: false,
  1580. });
  1581. }.bind(this)
  1582. );
  1583. },
  1584. /* 收款 */
  1585. evaluateX(recard) {
  1586. this.state.assignDataX = recard;
  1587. this.setState({
  1588. assignVisibleX: true,
  1589. });
  1590. },
  1591. /* 转交 */
  1592. evaluateY(recard, nub) {
  1593. this.state.assignDataY = recard;
  1594. this.setState({
  1595. nub,
  1596. assignVisibleY: true,
  1597. });
  1598. },
  1599. /* 驳回 */
  1600. reject(recard) {
  1601. this.setState({
  1602. bohuiData: recard,
  1603. boHuiVisible: true,
  1604. content: "",
  1605. });
  1606. },
  1607. boHuiCancel() {
  1608. this.setState({
  1609. boHuiVisible: false,
  1610. reason: "",
  1611. });
  1612. },
  1613. componentWillMount() {
  1614. this.loadData();
  1615. this.departmentList();
  1616. },
  1617. tableRowClick(record) {
  1618. this.state.RowData = record;
  1619. this.setState({
  1620. showDesc: true,
  1621. visible: true,
  1622. orderNo: record.orderNo,
  1623. modKey: "1",
  1624. });
  1625. this.jdDate(record.orderNo);
  1626. this.loadXmu(record);
  1627. this.loadModal(record);
  1628. this.jiedian(record.orderNo);
  1629. this.jiedianNew(record.orderNo);
  1630. },
  1631. // 拆分详细
  1632. showRes(record) {
  1633. this.setState({
  1634. resVisible: true,
  1635. resRecord: record,
  1636. });
  1637. },
  1638. resCancel() {
  1639. this.setState({
  1640. resVisible: false,
  1641. });
  1642. },
  1643. //详情
  1644. callBack(key) {
  1645. if (key === "2") {
  1646. this.setState({
  1647. modKey: key,
  1648. width: "1200px",
  1649. });
  1650. this.loadWaiBao();
  1651. }
  1652. if (key === "1") {
  1653. this.setState({
  1654. modKey: key,
  1655. width: "800px",
  1656. });
  1657. }
  1658. if (this.state.pictureUrl.length) {
  1659. let picArr = [];
  1660. this.state.pictureUrl.map(function (item) {
  1661. if (item.response && item.response.data && item.response.data.length) {
  1662. picArr.push(item.response.data);
  1663. }
  1664. });
  1665. }
  1666. if (key === "3") {
  1667. this.setState({
  1668. modKey: key,
  1669. width: "800px",
  1670. });
  1671. this.setState({
  1672. loading: true,
  1673. });
  1674. $.ajax({
  1675. method: "get",
  1676. dataType: "json",
  1677. crossDomain: false,
  1678. url:
  1679. globalConfig.context + "/api/admin/outsourceOrg/orderOutsourceDtails",
  1680. data: {
  1681. orderNo: this.state.orderNo,
  1682. },
  1683. success: function (data) {
  1684. let thisdata = data.data;
  1685. this.setState({
  1686. id: thisdata.id,
  1687. createTimes: thisdata.createTimes,
  1688. auditTimes: thisdata.auditTimes,
  1689. remarks: thisdata.remarks,
  1690. attachmentUrl: thisdata.attachmentUrl
  1691. ? splitUrl(
  1692. thisdata.attachmentUrl,
  1693. ",",
  1694. globalConfig.avatarHost + "/upload"
  1695. )
  1696. : [],
  1697. pictureUrl: thisdata.pictureUrl
  1698. ? splitUrl(
  1699. thisdata.pictureUrl,
  1700. ",",
  1701. globalConfig.avatarHost + "/upload"
  1702. )
  1703. : [], //图片地址
  1704. amount: thisdata.amount,
  1705. companyName: thisdata.companyName,
  1706. refundStatus: thisdata.refundStatus,
  1707. outsourceRemarks: thisdata.outsourceRemarks,
  1708. unitNumber: thisdata.unitNumber,
  1709. unitPrice: thisdata.unitPrice,
  1710. });
  1711. }.bind(this),
  1712. }).always(
  1713. function () {
  1714. this.setState({
  1715. loading: false,
  1716. });
  1717. }.bind(this)
  1718. );
  1719. }
  1720. },
  1721. //外包详情
  1722. loadWaiBao() {
  1723. $.ajax({
  1724. method: "get",
  1725. dataType: "json",
  1726. rossDomain: false,
  1727. url:
  1728. globalConfig.context +
  1729. "/api/admin/outsourceOrg/selectOrderOutsourceOrg",
  1730. data: {
  1731. orderNo: this.state.orderNo,
  1732. },
  1733. success: function (data) {
  1734. let theArr = [];
  1735. if (data.error.length || data.data.list == "") {
  1736. if (data.error && data.error.length) {
  1737. message.warning(data.error[0].message);
  1738. }
  1739. } else {
  1740. for (let i = 0; i < data.data.length; i++) {
  1741. let thisdata = data.data[i];
  1742. let ProvinceCityArr = [];
  1743. let ProvinceS = thisdata.province; //省
  1744. let citys = thisdata.city; //市
  1745. let Areas = thisdata.area; //区
  1746. ProvinceCityArr.push(ProvinceS, citys, Areas);
  1747. theArr.push({
  1748. key: i,
  1749. id: thisdata.id,
  1750. name: thisdata.name,
  1751. contacts: thisdata.contacts, //订单编号
  1752. contactsMobile: thisdata.contactsMobile,
  1753. ProvinceCity: ProvinceCityArr[0] === null ? [] : ProvinceCityArr,
  1754. province: thisdata.province,
  1755. city: thisdata.city,
  1756. area: thisdata.area,
  1757. address: thisdata.address,
  1758. remarks: thisdata.remarks,
  1759. tid: thisdata.tid,
  1760. createTimes: thisdata.createTimes,
  1761. tname: thisdata.tname,
  1762. contractNo: thisdata.contractNo,
  1763. projectStatus: thisdata.projectStatus,
  1764. });
  1765. }
  1766. }
  1767. this.setState(
  1768. {
  1769. dataSourceW: theArr,
  1770. },
  1771. () => {}
  1772. );
  1773. }.bind(this),
  1774. }).always(
  1775. function () {
  1776. this.setState({
  1777. loading: false,
  1778. });
  1779. }.bind(this)
  1780. );
  1781. },
  1782. loadXmu(record) {
  1783. this.state.data = [];
  1784. this.setState({
  1785. loading: true,
  1786. });
  1787. $.ajax({
  1788. method: "get",
  1789. dataType: "json",
  1790. crossDomain: false,
  1791. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  1792. data: {
  1793. orderNo: record.orderNo,
  1794. },
  1795. success: function (data) {
  1796. let theArr = [];
  1797. if (!data.data) {
  1798. if (data.error && data.error.length) {
  1799. message.warning(data.error[0].message);
  1800. }
  1801. } else {
  1802. for (let i = 0; i < data.data.length; i++) {
  1803. let thisdata = data.data[i];
  1804. theArr.push({
  1805. key: i,
  1806. id: thisdata.id,
  1807. orderNo: thisdata.orderNo,
  1808. commodityName: thisdata.commodityName,
  1809. commodityPrice: thisdata.commodityPrice,
  1810. commodityQuantity: thisdata.commodityQuantity,
  1811. taskStatus: thisdata.taskStatus,
  1812. taskComment: thisdata.taskComment,
  1813. main: thisdata.main,
  1814. contacts: thisdata.contacts,
  1815. contactsMobile: thisdata.contactsMobile,
  1816. cname: thisdata.cname,
  1817. certificateNumber: thisdata.certificateNumber,
  1818. projectStatus: thisdata.projectStatus,
  1819. sort: thisdata.cSort,
  1820. splitStatus: thisdata.splitStatus,
  1821. });
  1822. }
  1823. }
  1824. this.setState({
  1825. dataSourceX: theArr,
  1826. });
  1827. }.bind(this),
  1828. }).always(
  1829. function () {
  1830. this.setState({
  1831. loading: false,
  1832. });
  1833. }.bind(this)
  1834. );
  1835. },
  1836. loadModal(record) {
  1837. this.state.orderList = [];
  1838. $.ajax({
  1839. method: "get",
  1840. dataType: "json",
  1841. crossDomain: false,
  1842. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  1843. data: {
  1844. orderNo: record.orderNo,
  1845. },
  1846. success: function (data) {
  1847. let thisData = data.data;
  1848. if (!thisData) {
  1849. if (data.error && data.error.length) {
  1850. message.warning(data.error[0].message);
  1851. }
  1852. thisData = {};
  1853. }
  1854. this.setState({
  1855. id: thisData.id,
  1856. orderUid: thisData.uid,
  1857. orderList: thisData,
  1858. approval:
  1859. thisData.approval == 0
  1860. ? thisData.approval.toString()
  1861. : thisData.approval,
  1862. orderRemarks: thisData.orderRemarks,
  1863. orgCodeUrl: thisData.contractPictureUrl
  1864. ? splitUrl(
  1865. thisData.contractPictureUrl,
  1866. ",",
  1867. globalConfig.avatarHost + "/upload"
  1868. )
  1869. : [],
  1870. replenishUrl: thisData.agreementUrl
  1871. ? splitUrl(
  1872. thisData.agreementUrl,
  1873. ",",
  1874. globalConfig.avatarHost + "/upload"
  1875. )
  1876. : [],
  1877. contentUrl:thisData.serviceContent
  1878. ? splitUrl(
  1879. thisData.serviceContent,
  1880. ",",
  1881. globalConfig.avatarHost + "/upload"
  1882. )
  1883. : [], //图片地址
  1884. orderNo: thisData.orderNo, //订单编号
  1885. buyerId: thisData.buyerId,
  1886. depName: thisData.depName,
  1887. deleteSign:thisData.deleteSign,
  1888. });
  1889. }.bind(this),
  1890. }).always(
  1891. function () {
  1892. this.setState({
  1893. loading: false,
  1894. });
  1895. }.bind(this)
  1896. );
  1897. },
  1898. rizhi() {
  1899. this.setState({
  1900. loading: true,
  1901. });
  1902. $.ajax({
  1903. method: "get",
  1904. dataType: "json",
  1905. crossDomain: false,
  1906. url: "/api/admin/newOrder/selectOrderLog",
  1907. data: {
  1908. orderNo: this.state.orderNo,
  1909. },
  1910. success: function (data) {
  1911. let theArr = [];
  1912. let thisData = data.data;
  1913. if (!thisData.length) {
  1914. if (data.error && data.error.length) {
  1915. message.warning(data.error[0].message);
  1916. }
  1917. thisData = {};
  1918. } else {
  1919. for (let i = 0; i < data.data.length; i++) {
  1920. let thisdata = data.data[i];
  1921. theArr.push({
  1922. processName: thisdata.processName,
  1923. adminName: thisdata.adminName,
  1924. createDate: thisdata.createDate,
  1925. remarks: thisdata.remarks,
  1926. });
  1927. }
  1928. }
  1929. this.setState({
  1930. dataSourceY: theArr,
  1931. });
  1932. }.bind(this),
  1933. }).always(
  1934. function () {
  1935. this.setState({
  1936. loading: false,
  1937. });
  1938. }.bind(this)
  1939. );
  1940. },
  1941. closeOrderLog() {
  1942. this.setState({
  1943. avisible: false,
  1944. });
  1945. },
  1946. load() {
  1947. if (this.state.attachmentUrl) {
  1948. let url = window.location.href.substring(7);
  1949. this.state.attachmentUrl.forEach((e) => {
  1950. window.location.href =
  1951. "http://" +
  1952. url.substring(0, url.indexOf("/")) +
  1953. "/api/admin/outsourceOrg//downloadFile?path=" +
  1954. e.response.data;
  1955. });
  1956. } else {
  1957. message.error("此订单无上传文件");
  1958. }
  1959. },
  1960. getOrderLog() {
  1961. this.setState({
  1962. avisible: true,
  1963. });
  1964. this.rizhi();
  1965. },
  1966. closeModal() {
  1967. this.setState(
  1968. {
  1969. visible: false,
  1970. width: "800px",
  1971. },
  1972. () => {
  1973. this.setState({
  1974. modKey: "1",
  1975. });
  1976. }
  1977. );
  1978. },
  1979. closeDesc(e, s) {
  1980. this.state.showDesc = e;
  1981. if (s) {
  1982. this.loadData();
  1983. }
  1984. },
  1985. closeAssignX(e, s) {
  1986. this.state.assignDataX = {};
  1987. this.state.assignVisibleX = e;
  1988. if (s) {
  1989. this.loadData();
  1990. }
  1991. },
  1992. closeAssignY(e, s) {
  1993. this.state.assignDataY = {};
  1994. this.state.assignVisibleY = e;
  1995. if (s) {
  1996. this.loadData();
  1997. }
  1998. },
  1999. search() {
  2000. this.setState({
  2001. selectedRowKeys: []
  2002. })
  2003. this.loadData();
  2004. },
  2005. reset() {
  2006. this.state.nameSearch = "";
  2007. this.state.releaseDate = [];
  2008. this.state.shouKuanDate = [];
  2009. this.state.orderNoSearch = "";
  2010. this.state.departmenttList = undefined;
  2011. this.state.amountStatus = undefined;
  2012. this.state.processStatus = [];
  2013. this.state.processStatusSearch = [];
  2014. this.state.contractNoSearch = "";
  2015. this.state.liquidationStatus = [];
  2016. this.state.contractNo = "";
  2017. this.loadData();
  2018. },
  2019. boHuiCo() {
  2020. this.boHuiCancel();
  2021. this.boHuiSubmit();
  2022. },
  2023. //驳回
  2024. boHuiSubmit() {
  2025. if (!this.state.reason) {
  2026. message.warning("请填写驳回原因");
  2027. return false;
  2028. }
  2029. this.setState({
  2030. loading: true,
  2031. });
  2032. $.ajax({
  2033. method: "POST",
  2034. dataType: "json",
  2035. crossDomain: false,
  2036. url: globalConfig.context + "/api/admin/financial/reject",
  2037. data: {
  2038. orderNo: this.state.bohuiData.orderNo,
  2039. reason: this.state.reason,
  2040. },
  2041. }).done(
  2042. function (data) {
  2043. if (!data.error.length) {
  2044. message.success("驳回成功!");
  2045. this.setState({
  2046. loading: false,
  2047. });
  2048. this.loadData();
  2049. } else {
  2050. message.warning(data.error[0].message);
  2051. }
  2052. }.bind(this)
  2053. );
  2054. },
  2055. searchSwitch() {
  2056. this.setState({
  2057. searchMore: !this.state.searchMore,
  2058. });
  2059. },
  2060. changeList(arr) {
  2061. const newArr = [];
  2062. this.state.columns.forEach((item) => {
  2063. arr.forEach((val) => {
  2064. if (val === item.title) {
  2065. newArr.push(item);
  2066. }
  2067. });
  2068. });
  2069. this.setState({
  2070. changeList: newArr,
  2071. });
  2072. },
  2073. onSelectChange(selectedRowKeys) {
  2074. // for(var i=0; i<selectedRowKeys.length; i++){
  2075. // for(var j=i+1; j<selectedRowKeys.length; j++){
  2076. // if(selectedRowKeys[i]==selectedRowKeys[j]){
  2077. // selectedRowKeys.splice(j,1);
  2078. // j--;
  2079. // }
  2080. // }
  2081. // }
  2082. this.setState({ selectedRowKeys });
  2083. },
  2084. inRecordData() {
  2085. this.setState({
  2086. loading: true,
  2087. });
  2088. $.ajax({
  2089. method: "get",
  2090. dataType: "json",
  2091. crossDomain: false,
  2092. url:
  2093. globalConfig.context +
  2094. "/api/admin/orderInvoice/salesmanOrderInvoiceList",
  2095. data: {
  2096. orderNo: this.state.selectedRowKeys[0],
  2097. pageSize: 9999999,
  2098. },
  2099. success: function (data) {
  2100. let theArr = [];
  2101. let sum = 0;
  2102. if (!data.data) {
  2103. if (data.error && data.error.length) {
  2104. message.warning(data.error[0].message);
  2105. }
  2106. } else {
  2107. for (let i = 0; i < data.data.list.length; i++) {
  2108. let thisdata = data.data.list[i];
  2109. sum += parseFloat(thisdata.amount);
  2110. theArr.push({
  2111. id: thisdata.id,
  2112. orderno: thisdata.orderno, //订单编号
  2113. amount: thisdata.amount, //签单金额
  2114. createTime: thisdata.createTime, //流程状态
  2115. status: thisdata.status, //结算状态
  2116. rejectReason: thisdata.rejectReason,
  2117. });
  2118. }
  2119. }
  2120. this.setState({
  2121. recordData: theArr,
  2122. sum: sum.toFixed(6),
  2123. });
  2124. }.bind(this),
  2125. }).done(
  2126. function () {
  2127. this.setState({
  2128. loading: false,
  2129. });
  2130. }.bind(this)
  2131. );
  2132. },
  2133. inRecordCanl() {
  2134. this.setState({
  2135. bvisible: false,
  2136. });
  2137. },
  2138. waterData() {
  2139. this.state.data = [];
  2140. this.setState({
  2141. loading: true,
  2142. });
  2143. $.ajax({
  2144. method: "get",
  2145. dataType: "json",
  2146. crossDomain: false,
  2147. url: globalConfig.context + "/api/admin/financial/myBillList",
  2148. data: {
  2149. orderNo: this.state.selectedRowKeys[0],
  2150. pageSize: 9999999,
  2151. whoType: 1,
  2152. },
  2153. success: function (data) {
  2154. let theArr = [];
  2155. let waterSum = 0;
  2156. if (!data.data || !data.data.list) {
  2157. if (data.error && data.error.length) {
  2158. message.warning(data.error[0].message);
  2159. }
  2160. } else {
  2161. for (let i = 0; i < data.data.list.length; i++) {
  2162. let thisdata = data.data.list[i];
  2163. if (thisdata.deleteSign == 0) {
  2164. waterSum += parseFloat(thisdata.transactionAmount);
  2165. }
  2166. theArr.push({
  2167. key: i,
  2168. orderNo: thisdata.orderNo,
  2169. billNo: thisdata.billNo,
  2170. transactionAmount: thisdata.transactionAmount,
  2171. payeeName: thisdata.payeeName,
  2172. payerName: thisdata.payerName,
  2173. transactionSubject: thisdata.transactionSubject,
  2174. transactionChannel: thisdata.transactionChannel,
  2175. financialPayTimes: thisdata.financialPayTimes,
  2176. financialPayNo: thisdata.financialPayNo,
  2177. createrName: thisdata.createrName,
  2178. saleName: thisdata.saleName,
  2179. createTimes: thisdata.createTimes,
  2180. type:
  2181. thisdata.type == 0
  2182. ? "手工"
  2183. : thisdata.type == 1
  2184. ? "批量"
  2185. : "合同变更退款",
  2186. deleteSign: thisdata.deleteSign,
  2187. deleteTimes: thisdata.deleteTimes,
  2188. refundTimes: thisdata.refundTimes,
  2189. remarks: thisdata.remarks,
  2190. });
  2191. }
  2192. }
  2193. this.setState({
  2194. waterData: theArr,
  2195. waterSum: waterSum.toFixed(6),
  2196. });
  2197. }.bind(this),
  2198. }).always(
  2199. function () {
  2200. this.setState({
  2201. loading: false,
  2202. });
  2203. }.bind(this)
  2204. );
  2205. },
  2206. waterCanl() {
  2207. this.setState({
  2208. cvisible: false,
  2209. });
  2210. },
  2211. exportAll() {
  2212. const data = {
  2213. pageSize: 9999999,
  2214. buyerName: this.state.nameSearch, //客户名称
  2215. orderNo: this.state.orderNoSearch,
  2216. startTime: this.state.releaseDate[0],
  2217. endTime: this.state.releaseDate[1],
  2218. startFinalReceivablesTime: this.state.shouKuanDate[0],
  2219. endFinalReceivablesTime: this.state.shouKuanDate[1],
  2220. departmentId: this.state.departmenttList,
  2221. processStatus: this.state.processStatusSearch,
  2222. contractNo: this.state.contractNoSearch,
  2223. outsource: 1,
  2224. liquidationStatus: this.state.liquidationStatus,
  2225. };
  2226. window.location.href =
  2227. globalConfig.context +
  2228. "/api/admin/receivables/exportReceivables?" +
  2229. $.param(data);
  2230. },
  2231. exportKaip() {
  2232. window.location.href =
  2233. globalConfig.context +
  2234. "/api/admin/receivables/exportInvoice?" +
  2235. `orderNo=${this.state.selectedRowKeys}`;
  2236. },
  2237. exportWater() {
  2238. window.location.href =
  2239. globalConfig.context +
  2240. "/api/admin/receivables/exportMyBill?" +
  2241. `orderNo=${this.state.selectedRowKeys}&whoType=1`;
  2242. },
  2243. printAll() {
  2244. this.setState({
  2245. dvisible: true,
  2246. // loading: true
  2247. });
  2248. this.loadData(1, 9999999);
  2249. },
  2250. downImg() {
  2251. let num = 0;
  2252. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  2253. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  2254. num = i;
  2255. }
  2256. }
  2257. if (num == this.state.orgCodeUrl.length - 1) {
  2258. return message.warning("已经是最后一张了哦");
  2259. }
  2260. this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
  2261. this.setState({
  2262. previewImage: this.state.previewImage,
  2263. rotateDeg: 0,
  2264. });
  2265. },
  2266. upImg() {
  2267. let num = 0;
  2268. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  2269. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  2270. num = i;
  2271. }
  2272. }
  2273. if (num == 0) {
  2274. return message.warning("已经是第一张了哦");
  2275. }
  2276. this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
  2277. this.setState({
  2278. previewImage: this.state.previewImage,
  2279. rotateDeg: 0,
  2280. });
  2281. },
  2282. rotate() {
  2283. let rotateDeg = this.state.rotateDeg + 90;
  2284. this.setState({
  2285. rotateDeg,
  2286. });
  2287. },
  2288. downImgs() {
  2289. let num = 0;
  2290. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  2291. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  2292. num = i;
  2293. }
  2294. }
  2295. if (num == this.state.replenishUrl.length - 1) {
  2296. return message.warning("已经是最后一张了哦");
  2297. }
  2298. this.state.previewImage = this.state.replenishUrl[num + 1].url;
  2299. this.setState({
  2300. previewImage: this.state.previewImage,
  2301. rotateDeg: 0,
  2302. });
  2303. },
  2304. upImgs() {
  2305. let num = 0;
  2306. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  2307. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  2308. num = i;
  2309. }
  2310. }
  2311. if (num == 0) {
  2312. return message.warning("已经是第一张了哦");
  2313. }
  2314. this.state.previewImage = this.state.replenishUrl[num - 1].url;
  2315. this.setState({
  2316. previewImage: this.state.previewImage,
  2317. rotateDeg: 0,
  2318. });
  2319. },
  2320. rotates() {
  2321. let rotateDeg = this.state.rotateDeg + 90;
  2322. this.setState({
  2323. rotateDeg,
  2324. });
  2325. },
  2326. timeData() {
  2327. this.setState({
  2328. loading: true,
  2329. });
  2330. $.ajax({
  2331. method: "get",
  2332. dataType: "json",
  2333. crossDomain: false,
  2334. url: globalConfig.context + "/api/admin/orderProject/taskHoursList",
  2335. data: {
  2336. orderNo: this.state.selectedRowKeys[0],
  2337. pageSize: 9999999,
  2338. },
  2339. success: function (data) {
  2340. let theArr = [];
  2341. if (!data.data || !data.data.list) {
  2342. if (data.error && data.error.length) {
  2343. message.warning(data.error[0].message);
  2344. }
  2345. } else {
  2346. for (let i = 0; i < data.data.list.length; i++) {
  2347. let thisdata = data.data.list[i];
  2348. theArr.push({
  2349. key: i + 1,
  2350. id: thisdata.id, //ID
  2351. orderNo: thisdata.orderNo, //订单编号
  2352. taskName: thisdata.taskName, //任务名称
  2353. userName: thisdata.userName, //客户名称
  2354. cname: thisdata.cname, //项目品类
  2355. taskStatus: thisdata.taskStatus, //任务状态
  2356. receiverName: thisdata.receiverName, //负责人
  2357. hours: thisdata.hours, //任务工时
  2358. depName: thisdata.depName, //派单公司
  2359. contractNo: thisdata.contractNo,
  2360. signTime: thisdata.signTime,
  2361. creteTime: thisdata.creteTime,
  2362. projectStatus: thisdata.projectStatus,
  2363. commodityPrice: thisdata.commodityPrice, //价格
  2364. commodityQuantity: thisdata.commodityQuantity, //数量
  2365. salesmanName: thisdata.salesmanName, //订单负责人
  2366. taskDistributionTime: thisdata.taskDistributionTime,
  2367. taskEndTime: thisdata.taskEndTime,
  2368. outsource: thisdata.outsource,
  2369. splitStatus: thisdata.splitStatus,
  2370. splitSuper: thisdata.splitSuper,
  2371. splitId: thisdata.splitId,
  2372. });
  2373. }
  2374. }
  2375. this.setState({
  2376. timeDataList: theArr,
  2377. });
  2378. }.bind(this),
  2379. }).always(
  2380. function () {
  2381. this.setState({
  2382. loading: false,
  2383. });
  2384. }.bind(this)
  2385. );
  2386. },
  2387. exportTime() {
  2388. const data = {
  2389. orderNo: this.state.selectedRowKeys[0],
  2390. outsourcing: 1,
  2391. };
  2392. window.location.href =
  2393. globalConfig.context +
  2394. "/api/admin/orderProject/exportMyTaskList?" +
  2395. $.param(data);
  2396. },
  2397. exportPro() {
  2398. const data = {
  2399. orderNo: this.state.selectedRowKeys[0],
  2400. };
  2401. window.location.href =
  2402. globalConfig.context +
  2403. "/api/admin/newOrder/exportOrderTaskData?" +
  2404. $.param(data);
  2405. },
  2406. exportCui() {
  2407. var data = {
  2408. orderNo: this.state.selectedRowKeys[0]
  2409. ? this.state.selectedRowKeys[0]
  2410. : undefined, //订单编号
  2411. // specially: 1,
  2412. pageSize: 9999999,
  2413. outsource: 1,
  2414. };
  2415. window.location.href =
  2416. globalConfig.context +
  2417. "/api/admin/newOrder/exportOrderDunData?" +
  2418. $.param(data);
  2419. },
  2420. cuiData() {
  2421. this.setState({
  2422. loading: true,
  2423. });
  2424. $.ajax({
  2425. method: "get",
  2426. dataType: "json",
  2427. crossDomain: false,
  2428. url: globalConfig.context + "/api/admin/newOrder/dunOrderNewList",
  2429. data: {
  2430. orderNo: this.state.selectedRowKeys[0],
  2431. pageSize: 9999999,
  2432. },
  2433. success: function (data) {
  2434. let theArr = [];
  2435. if (!data.data || !data.data.list) {
  2436. if (data.error && data.error.length) {
  2437. message.warning(data.error[0].message);
  2438. }
  2439. } else {
  2440. for (let i = 0; i < data.data.list.length; i++) {
  2441. let thisdata = data.data.list[i];
  2442. theArr.push({
  2443. key: i + 1,
  2444. orderNo: thisdata.orderNo,
  2445. contractNo: thisdata.contractNo,
  2446. userName: thisdata.userName,
  2447. buyerName: thisdata.buyerName,
  2448. departmentName: thisdata.departmentName,
  2449. salesmanName: thisdata.salesmanName,
  2450. depName: thisdata.depName,
  2451. orderStatus: thisdata.orderStatus,
  2452. projectStatus: thisdata.projectStatus,
  2453. totalAmount: thisdata.totalAmount,
  2454. liquidationStatus: thisdata.liquidationStatus,
  2455. settlementAmount: thisdata.settlementAmount,
  2456. accountsReceivable: thisdata.accountsReceivable,
  2457. dunSubject: thisdata.dunSubject,
  2458. startDate: thisdata.startDate,
  2459. taskStatus: thisdata.taskStatus,
  2460. cname: thisdata.cname,
  2461. id: thisdata.id,
  2462. taskName: thisdata.taskName,
  2463. hours: thisdata.hours,
  2464. taskDistributionTime: thisdata.taskDistributionTime,
  2465. taskEndTime: thisdata.taskEndTime,
  2466. dunStatus: thisdata.dunStatus == 0 ? "未触发" : "已触发",
  2467. });
  2468. }
  2469. }
  2470. this.setState({
  2471. cuiDataList: theArr,
  2472. });
  2473. }.bind(this),
  2474. }).always(
  2475. function () {
  2476. this.setState({
  2477. loading: false,
  2478. });
  2479. }.bind(this)
  2480. );
  2481. },
  2482. proData() {
  2483. this.setState({
  2484. loading: true,
  2485. });
  2486. $.ajax({
  2487. method: "get",
  2488. dataType: "json",
  2489. crossDomain: false,
  2490. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  2491. data: {
  2492. orderNo: this.state.selectedRowKeys[0],
  2493. pageSize: 9999999,
  2494. },
  2495. success: function (data) {
  2496. let theArr = [];
  2497. let totalWaibao = 0;
  2498. if (!data.data) {
  2499. if (data.error && data.error.length) {
  2500. message.warning(data.error[0].message);
  2501. }
  2502. } else {
  2503. for (let i = 0; i < data.data.length; i++) {
  2504. let thisdata = data.data[i];
  2505. totalWaibao += thisdata.outsourcePrice;
  2506. theArr.push({
  2507. key: i + 1,
  2508. orderNo: thisdata.orderNo,
  2509. contractNo: thisdata.contractNo,
  2510. userName: thisdata.userName,
  2511. buyerName: thisdata.buyerName,
  2512. departmentName: thisdata.departmentName,
  2513. salesmanName: thisdata.salesmanName,
  2514. depName: thisdata.depName,
  2515. orderStatus: thisdata.orderStatus,
  2516. projectStatus: thisdata.projectStatus,
  2517. commodityName: thisdata.commodityName,
  2518. totalAmount: thisdata.totalAmount,
  2519. liquidationStatus: thisdata.liquidationStatus,
  2520. settlementAmount: thisdata.settlementAmount,
  2521. accountsReceivable: thisdata.accountsReceivable,
  2522. dunSubject: thisdata.dunSubject,
  2523. startDate: thisdata.startDate,
  2524. taskStatus: thisdata.taskStatus,
  2525. cname: thisdata.cname,
  2526. id: thisdata.id,
  2527. taskName: thisdata.taskName,
  2528. hours: thisdata.hours,
  2529. taskDistributionTime: thisdata.taskDistributionTime,
  2530. taskEndTime: thisdata.taskEndTime,
  2531. commodityQuantity: thisdata.commodityQuantity,
  2532. commodityPrice: thisdata.commodityPrice,
  2533. certificateNumber: thisdata.certificateNumber,
  2534. taskComment: thisdata.taskComment,
  2535. outsourceName: thisdata.outsourceName,
  2536. outsourcePrice: thisdata.outsourcePrice,
  2537. splitStatus: thisdata.splitStatus,
  2538. sort: thisdata.cSort,
  2539. });
  2540. }
  2541. }
  2542. totalWaibao = (Math.round(totalWaibao * 1000000) / 1000000).toFixed(6);
  2543. this.setState({
  2544. proDataList: theArr,
  2545. totalWaibao,
  2546. });
  2547. }.bind(this),
  2548. }).always(
  2549. function () {
  2550. this.setState({
  2551. loading: false,
  2552. });
  2553. }.bind(this)
  2554. );
  2555. },
  2556. jiedian(orderNos) {
  2557. $.ajax({
  2558. method: "get",
  2559. dataType: "json",
  2560. crossDomain: false,
  2561. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  2562. data: {
  2563. orderNo: orderNos,
  2564. },
  2565. success: function (data) {
  2566. let theArr = [];
  2567. let thisData = [];
  2568. if (data.error.length || data.data.list == "") {
  2569. if (data.error && data.error.length) {
  2570. message.warning(data.error[0].message);
  2571. }
  2572. } else {
  2573. for (let i = 0; i < data.data.length; i++) {
  2574. thisData = data.data[i];
  2575. theArr.push({
  2576. key: i,
  2577. dunSubject: thisData.dunSubject
  2578. ? thisData.dunSubject.toString()
  2579. : "", //催款科目
  2580. id: thisData.id, //节点Id
  2581. money: thisData.money, //催款金额
  2582. dunStatus: thisData.dunStatus, //催款状态
  2583. orderNo: thisData.orderNo,
  2584. });
  2585. }
  2586. this.setState({
  2587. contactList: theArr,
  2588. });
  2589. }
  2590. }.bind(this),
  2591. }).always(
  2592. function () {
  2593. this.setState({
  2594. loading: false,
  2595. });
  2596. }.bind(this)
  2597. );
  2598. },
  2599. //查看催款节点
  2600. jiedianNew(orderNos) {
  2601. $.ajax({
  2602. method: "get",
  2603. dataType: "json",
  2604. crossDomain: false,
  2605. url:
  2606. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  2607. data: {
  2608. orderNo: orderNos,
  2609. },
  2610. success: function (data) {
  2611. if (data.error && data.error.length) {
  2612. message.warning(data.error[0].message);
  2613. } else {
  2614. let theArr = [];
  2615. let thisData = [];
  2616. let arr = data.data || [];
  2617. let totalCui = 0;
  2618. for (let i = 0; i < arr.length; i++) {
  2619. thisData = arr[i];
  2620. totalCui += +thisData.money;
  2621. theArr.push({
  2622. key: i,
  2623. dunSubject: thisData.dunSubject
  2624. ? thisData.dunSubject.toString()
  2625. : "", //催款科目
  2626. id: thisData.id, //节点Id
  2627. money: thisData.money, //催款金额
  2628. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  2629. commodityName: thisData.commodityName,
  2630. projectType: thisData.projectType,
  2631. dunTypeName: thisData.dunTypeName,
  2632. status: thisData.status,
  2633. waitDay: thisData.waitDay,
  2634. effectiveCount: thisData.effectiveCount,
  2635. startDate: thisData.startDate,
  2636. dunType: thisData.dunType,
  2637. appropriationRatio: thisData.appropriationRatio,
  2638. customizeName: thisData.customizeName,
  2639. customizeTimes: thisData.customizeTimes,
  2640. tid: thisData.tid,
  2641. });
  2642. }
  2643. if (!totalCui) {
  2644. totalCui = 0;
  2645. }
  2646. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  2647. this.setState({
  2648. contactListNew: theArr,
  2649. totalCui,
  2650. });
  2651. }
  2652. }.bind(this),
  2653. }).always(
  2654. function () {
  2655. this.setState({
  2656. loading: false,
  2657. });
  2658. }.bind(this)
  2659. );
  2660. },
  2661. cuiTabChange(index) {
  2662. this.setState({
  2663. cuiTabKey: index,
  2664. });
  2665. if (index == 2) {
  2666. this.setState({
  2667. loading: true,
  2668. });
  2669. $.ajax({
  2670. method: "get",
  2671. dataType: "json",
  2672. crossDomain: false,
  2673. url: globalConfig.context + "/api/admin/newOrder/arrearsDunList",
  2674. data: {
  2675. orderNo: this.state.selectedRowKeys[0],
  2676. pageSize: 9999999,
  2677. },
  2678. success: function (data) {
  2679. let theArr = [];
  2680. if (data.error.length || data.data.list == "") {
  2681. if (data.error && data.error.length) {
  2682. message.warning(data.error[0].message);
  2683. }
  2684. } else {
  2685. for (let i = 0; i < data.data.list.length; i++) {
  2686. let thisdata = data.data.list[i];
  2687. let obj = thisdata;
  2688. obj.key = i;
  2689. theArr.push(obj);
  2690. }
  2691. }
  2692. this.setState({
  2693. qianDataList: theArr,
  2694. });
  2695. }.bind(this),
  2696. }).always(
  2697. function () {
  2698. this.setState({
  2699. loading: false,
  2700. });
  2701. }.bind(this)
  2702. );
  2703. }
  2704. },
  2705. kaiPiaoData(record) {
  2706. this.setState({
  2707. avisible: true,
  2708. });
  2709. this.invoiceData(record.id);
  2710. },
  2711. invoiceData(id) {
  2712. this.setState({
  2713. loading: true,
  2714. });
  2715. $.ajax({
  2716. method: "get",
  2717. dataType: "json",
  2718. crossDomain: false,
  2719. url:
  2720. globalConfig.context + "/api/admin/orderInvoice/selectByIdOrderInvoice",
  2721. data: {
  2722. id,
  2723. },
  2724. success: function (data) {
  2725. let thisdata = data.data;
  2726. let obj = {
  2727. contractNo: thisdata.contractNo,
  2728. orderNo: thisdata.orderNo,
  2729. approval: thisdata.approval,
  2730. type: thisdata.type,
  2731. status: thisdata.status,
  2732. remarks: thisdata.remarks,
  2733. invoiceType: thisdata.invoiceType,
  2734. unitName: thisdata.unitName,
  2735. taxNumber: thisdata.taxNumber,
  2736. amount: thisdata.amount,
  2737. banks: thisdata.banks,
  2738. content: thisdata.content,
  2739. unitAddress: thisdata.unitAddress,
  2740. invoiceRemarks: thisdata.invoiceRemarks,
  2741. unitMobile: thisdata.unitMobile,
  2742. post: thisdata.post,
  2743. addressee: thisdata.addressee,
  2744. addresseeMobile: thisdata.addresseeMobile,
  2745. addresseeProvince: thisdata.addresseeProvince,
  2746. addresseeCity: thisdata.addresseeCity,
  2747. addresseeArea: thisdata.addresseeArea,
  2748. alreadyAmount: thisdata.alreadyAmount,
  2749. recipientAddress: thisdata.recipientAddress,
  2750. orgCodeUrl: thisdata.voucherUrl
  2751. ? splitUrl(
  2752. thisdata.voucherUrl,
  2753. ",",
  2754. globalConfig.avatarHost + "/upload"
  2755. )
  2756. : [],
  2757. };
  2758. this.setState({
  2759. modalData: obj,
  2760. });
  2761. }.bind(this),
  2762. }).done(
  2763. function () {
  2764. this.setState({
  2765. loading: false,
  2766. });
  2767. }.bind(this)
  2768. );
  2769. },
  2770. visitCancels() {
  2771. this.setState({
  2772. avisible: false,
  2773. });
  2774. },
  2775. render() {
  2776. const { TextArea } = Input;
  2777. const { RangePicker } = DatePicker;
  2778. const { TabPane } = Tabs;
  2779. var departmentArr = this.state.departmentArr || [];
  2780. const theData = this.state.orderList || {};
  2781. const formItemLayout = {
  2782. labelCol: { span: 8 },
  2783. wrapperCol: { span: 12 },
  2784. };
  2785. const { loading, selectedRowKeys, visible } = this.state;
  2786. const cuiDataList = this.state.contactList || [];
  2787. const rowSelection = {
  2788. selectedRowKeys,
  2789. onChange: this.onSelectChange,
  2790. hideDefaultSelections: true,
  2791. type: "radio",
  2792. };
  2793. const jsDate = this.state.jsDate || [];
  2794. return (
  2795. <div className="user-content">
  2796. {this.state.resVisible ? (
  2797. <ResolutionDetail
  2798. cancel={this.resCancel}
  2799. detail={this.state.resRecord}
  2800. visible={this.state.resVisible}
  2801. id={this.state.resRecord.orderNo}
  2802. />
  2803. ) : (
  2804. ""
  2805. )}
  2806. <div className="content-title" style={{ marginBottom: 10 }}>
  2807. <span style={{ fontWeight: 900, fontSize: 16 }}>外包结算管理</span>
  2808. </div>
  2809. <Tabs defaultActiveKey="2" className="test">
  2810. <TabPane tab="搜索" key="2">
  2811. <div className="user-search" style={{ marginLeft: 10 }}>
  2812. <Input
  2813. placeholder="订单编号"
  2814. value={this.state.orderNoSearch}
  2815. onChange={(e) => {
  2816. this.setState({ orderNoSearch: e.target.value });
  2817. }}
  2818. />
  2819. <Input
  2820. placeholder="客户名称"
  2821. value={this.state.nameSearch}
  2822. onChange={(e) => {
  2823. this.setState({ nameSearch: e.target.value });
  2824. }}
  2825. />
  2826. <Select
  2827. placeholder="订单部门"
  2828. style={{ width: 120, marginRight: 10 }}
  2829. value={this.state.departmenttList}
  2830. onChange={(e) => {
  2831. this.setState({ departmenttList: e });
  2832. }}
  2833. >
  2834. {departmentArr.map(function (item) {
  2835. return (
  2836. <Select.Option key={item.id}>{item.name}</Select.Option>
  2837. );
  2838. })}
  2839. </Select>
  2840. <Input
  2841. placeholder="合同编号"
  2842. value={this.state.contractNoSearch}
  2843. onChange={(e) => {
  2844. this.setState({
  2845. contractNoSearch: e.target.value,
  2846. });
  2847. }}
  2848. />
  2849. <Select
  2850. placeholder="流程状态"
  2851. onChange={(e) => {
  2852. this.setState({ processStatusSearch: e });
  2853. }}
  2854. style={{ width: 120, marginRight: 5 }}
  2855. value={this.state.processStatusSearch}
  2856. >
  2857. <Option value="3">未分配</Option>
  2858. <Option value="4">已分配</Option>
  2859. <Option value="9">已驳回</Option>
  2860. </Select>
  2861. <Select
  2862. placeholder="结算状态"
  2863. onChange={(e) => {
  2864. this.setState({ liquidationStatus: e });
  2865. }}
  2866. style={{ width: 120, marginRight: 5 }}
  2867. value={this.state.liquidationStatus}
  2868. >
  2869. <Option value="0">首付待付清</Option>
  2870. <Option value="1">尾款待付清</Option>
  2871. <Option value="2">已付清</Option>
  2872. </Select>
  2873. <Select
  2874. style={{ width: 120 }}
  2875. placeholder="签单金额"
  2876. value={this.state.amountStatus}
  2877. onChange={(e) => {
  2878. this.setState({
  2879. amountStatus: e,
  2880. });
  2881. }}
  2882. >
  2883. <Option value="0">10万元以下</Option>
  2884. <Option value="1">10~20万元</Option>
  2885. <Option value="2">20~30万元</Option>
  2886. <Option value="3">30~40万元</Option>
  2887. <Option value="4">40万元以上</Option>
  2888. </Select>
  2889. <span style={{ marginRight: 0 }}>下单日期:</span>
  2890. <RangePicker
  2891. style={{ width: 170 }}
  2892. value={[
  2893. this.state.releaseDate[0]
  2894. ? moment(this.state.releaseDate[0])
  2895. : null,
  2896. this.state.releaseDate[1]
  2897. ? moment(this.state.releaseDate[1])
  2898. : null,
  2899. ]}
  2900. onChange={(data, dataString) => {
  2901. this.setState({ releaseDate: dataString });
  2902. }}
  2903. />
  2904. <span style={{}}>最近收款:</span>
  2905. <RangePicker
  2906. style={{ width: 170 }}
  2907. value={[
  2908. this.state.shouKuanDate[0]
  2909. ? moment(this.state.shouKuanDate[0])
  2910. : null,
  2911. this.state.shouKuanDate[1]
  2912. ? moment(this.state.shouKuanDate[1])
  2913. : null,
  2914. ]}
  2915. onChange={(data, dataString) => {
  2916. this.setState({ shouKuanDate: dataString });
  2917. }}
  2918. />
  2919. <Button
  2920. type="primary"
  2921. onClick={this.search}
  2922. style={{ marginLeft: 10 }}
  2923. disabled={this.state.loadingA ? true : false}
  2924. >
  2925. 搜索
  2926. </Button>
  2927. <Button onClick={this.reset}>重置</Button>
  2928. </div>
  2929. </TabPane>
  2930. <TabPane tab="打印" key="3">
  2931. <Button
  2932. type="primary"
  2933. style={{ margin: "11px 0px 10px 10px" }}
  2934. onClick={this.printAll}
  2935. disabled={!this.state.dataSource.length}
  2936. >
  2937. 打印所有列表信息
  2938. </Button>
  2939. <Button
  2940. type="primary"
  2941. disabled={this.state.selectedRowKeys.length != 1}
  2942. style={{ margin: "11px 0px 10px 10px" }}
  2943. onClick={() => {
  2944. this.inRecordData();
  2945. this.setState({
  2946. bvisible: true,
  2947. });
  2948. }}
  2949. >
  2950. 打印开票详情
  2951. </Button>
  2952. <Button
  2953. type="primary"
  2954. disabled={this.state.selectedRowKeys.length != 1}
  2955. style={{ margin: "11px 0px 10px 10px" }}
  2956. onClick={() => {
  2957. this.waterData();
  2958. this.setState({
  2959. cvisible: true,
  2960. });
  2961. }}
  2962. >
  2963. 打印收款流水
  2964. </Button>
  2965. <Button
  2966. type="primary"
  2967. disabled={this.state.selectedRowKeys.length != 1}
  2968. style={{ margin: "11px 0px 10px 10px" }}
  2969. onClick={() => {
  2970. this.timeData();
  2971. this.setState({
  2972. timeVisible: true,
  2973. });
  2974. }}
  2975. >
  2976. 打印工时信息
  2977. </Button>
  2978. <Button
  2979. type="primary"
  2980. disabled={this.state.selectedRowKeys.length != 1}
  2981. style={{ margin: "11px 0px 10px 10px" }}
  2982. onClick={() => {
  2983. this.cuiData();
  2984. this.setState({
  2985. cuiVisible: true,
  2986. });
  2987. }}
  2988. >
  2989. 打印催款信息
  2990. </Button>
  2991. <Button
  2992. type="primary"
  2993. disabled={this.state.selectedRowKeys.length != 1}
  2994. style={{ margin: "11px 0px 10px 10px" }}
  2995. onClick={() => {
  2996. this.proData();
  2997. this.setState({
  2998. proVisible: true,
  2999. });
  3000. }}
  3001. >
  3002. 打印项目进度
  3003. </Button>
  3004. </TabPane>
  3005. <TabPane tab="导出Excel" key="4">
  3006. <Button
  3007. type="primary"
  3008. style={{ margin: "11px 0px 10px 10px" }}
  3009. onClick={this.exportAll}
  3010. >
  3011. 导出当前列表
  3012. </Button>
  3013. <Button
  3014. type="primary"
  3015. disabled={this.state.selectedRowKeys.length != 1}
  3016. style={{ margin: "11px 0px 10px 10px" }}
  3017. onClick={this.exportKaip}
  3018. >
  3019. 导出所选开票详情
  3020. </Button>
  3021. <Button
  3022. type="primary"
  3023. disabled={this.state.selectedRowKeys.length != 1}
  3024. style={{ margin: "11px 0px 10px 10px" }}
  3025. onClick={this.exportWater}
  3026. >
  3027. 导出所选收款详情流水
  3028. </Button>
  3029. <Button
  3030. type="primary"
  3031. disabled={this.state.selectedRowKeys.length != 1}
  3032. style={{ margin: "11px 0px 10px 10px" }}
  3033. onClick={this.exportTime}
  3034. >
  3035. 导出所选工时信息
  3036. </Button>
  3037. <Button
  3038. type="primary"
  3039. disabled={this.state.selectedRowKeys.length != 1}
  3040. style={{ margin: "11px 0px 10px 10px" }}
  3041. onClick={this.exportCui}
  3042. >
  3043. 导出催款信息
  3044. </Button>
  3045. <Button
  3046. type="primary"
  3047. disabled={this.state.selectedRowKeys.length != 1}
  3048. style={{ margin: "11px 0px 10px 10px" }}
  3049. onClick={this.exportPro}
  3050. >
  3051. 导出项目进度
  3052. </Button>
  3053. </TabPane>
  3054. <TabPane tab="查看" key="5">
  3055. <Button
  3056. type="primary"
  3057. disabled={this.state.selectedRowKeys.length != 1}
  3058. style={{ margin: "11px 0px 10px 10px" }}
  3059. onClick={() => {
  3060. this.inRecordData();
  3061. this.setState({
  3062. bvisible: true,
  3063. });
  3064. }}
  3065. >
  3066. 查看开票详情
  3067. </Button>
  3068. <Button
  3069. type="primary"
  3070. disabled={this.state.selectedRowKeys.length != 1}
  3071. style={{ margin: "11px 0px 10px 10px" }}
  3072. onClick={() => {
  3073. this.waterData();
  3074. this.setState({
  3075. cvisible: true,
  3076. });
  3077. }}
  3078. >
  3079. 详情收款流水
  3080. </Button>
  3081. <Button
  3082. type="primary"
  3083. disabled={this.state.selectedRowKeys.length != 1}
  3084. style={{ margin: "11px 0px 10px 10px" }}
  3085. onClick={() => {
  3086. this.timeData();
  3087. this.setState({
  3088. timeVisible: true,
  3089. });
  3090. }}
  3091. >
  3092. 工时信息
  3093. </Button>
  3094. <Button
  3095. type="primary"
  3096. disabled={this.state.selectedRowKeys.length != 1}
  3097. style={{ margin: "11px 0px 10px 10px" }}
  3098. onClick={() => {
  3099. this.cuiData();
  3100. this.setState({
  3101. cuiVisible: true,
  3102. });
  3103. }}
  3104. >
  3105. 催款信息
  3106. </Button>
  3107. <Button
  3108. type="primary"
  3109. disabled={this.state.selectedRowKeys.length != 1}
  3110. style={{ margin: "11px 0px 10px 10px" }}
  3111. onClick={() => {
  3112. this.proData();
  3113. this.setState({
  3114. proVisible: true,
  3115. });
  3116. }}
  3117. >
  3118. 项目进度
  3119. </Button>
  3120. </TabPane>
  3121. <TabPane tab="更改表格显示数据" key="1">
  3122. <div style={{ marginLeft: 10 }}>
  3123. <ChooseList
  3124. columns={this.state.columns}
  3125. changeFn={this.changeList}
  3126. changeList={this.state.changeList}
  3127. top={55}
  3128. margin={11}
  3129. />
  3130. </div>
  3131. </TabPane>
  3132. {/* <TabPane tab="批量操作" key="6">
  3133. <Button
  3134. type="primary"
  3135. disabled={this.state.selectedRowKeys.length == 0}
  3136. style={{ margin: "0px 0px 10px 10px" }}
  3137. onClick={e => {
  3138. e.stopPropagation(),
  3139. this.evaluateY(this.state.selectedRowKeys, "财务专员");
  3140. }}
  3141. >
  3142. 转交
  3143. </Button>
  3144. </TabPane> */}
  3145. </Tabs>
  3146. <div className="patent-table">
  3147. <Spin spinning={this.state.loadingA}>
  3148. <Table
  3149. bordered
  3150. columns={
  3151. this.state.changeList == undefined
  3152. ? this.state.columns
  3153. : this.state.changeList
  3154. }
  3155. dataSource={this.state.dataSource}
  3156. // rowSelection={false}
  3157. scroll={{ x: "max-content", y: 0 }}
  3158. pagination={this.state.pagination}
  3159. onRowDoubleClick={this.tableRowClick.bind(this)}
  3160. rowSelection={rowSelection}
  3161. size="middle"
  3162. />
  3163. </Spin>
  3164. <p
  3165. style={{ display: "inline-block", fontSize: "14px", color: "red" }}
  3166. >
  3167. {
  3168. <span style={{ marginRight: 10 }}>
  3169. {`收款金额总计(万元):${this.state.hui ? this.state.hui : "0"}`}
  3170. </span>
  3171. }
  3172. {
  3173. <span>
  3174. {`合同额总计(万元):${
  3175. this.state.totalHui ? this.state.totalHui : "0"
  3176. }`}
  3177. </span>
  3178. }
  3179. </p>
  3180. </div>
  3181. <div className="patent-desc">
  3182. {this.state.visible ? <Modal
  3183. maskClosable={false}
  3184. visible={this.state.visible}
  3185. onCancel={this.closeModal}
  3186. width={this.state.width}
  3187. footer=""
  3188. className="admin-desc-content"
  3189. >
  3190. <Tabs
  3191. onChange={this.callBack}
  3192. type="card"
  3193. activeKey={this.state.modKey}
  3194. tabBarExtraContent={
  3195. <div style={{fontWeight:'bold',paddingRight:'15px'}}>
  3196. <OrderItemStatus deleteSign={this.state.deleteSign}/>
  3197. </div>
  3198. }
  3199. >
  3200. <TabPane tab="项目概况" key="1">
  3201. {this.state.modKey === '1' ? <Form layout="horizontal" id="demand-form">
  3202. <Spin spinning={this.state.loading}>
  3203. <div className="clearfix">
  3204. <FormItem
  3205. className="half-item"
  3206. {...formItemLayout}
  3207. label="订单编号"
  3208. >
  3209. <span>{this.state.orderNo}</span>
  3210. </FormItem>
  3211. <FormItem
  3212. className="half-item"
  3213. {...formItemLayout}
  3214. label="签单时间"
  3215. >
  3216. <span>{theData.signDate}</span>
  3217. </FormItem>
  3218. <FormItem
  3219. className="half-item"
  3220. {...formItemLayout}
  3221. label="客户名称"
  3222. >
  3223. <span>{theData.userName}</span>
  3224. <EnterpriseNameChange
  3225. type='journal'
  3226. style={{ marginLeft: 10 }}
  3227. enterpriseId={this.state.orderUid}/>
  3228. </FormItem>
  3229. <FormItem
  3230. className="half-item"
  3231. {...formItemLayout}
  3232. label="流转状态"
  3233. >
  3234. <span>{getProcessStatus(theData.processStatus)}</span>
  3235. </FormItem>
  3236. <FormItem
  3237. className="half-item"
  3238. {...formItemLayout}
  3239. label="订单类型"
  3240. >
  3241. <span>{getNewOrderType(theData.orderType)}</span>
  3242. </FormItem>
  3243. <FormItem
  3244. className="half-item"
  3245. {...formItemLayout}
  3246. label="结算状态"
  3247. >
  3248. <span>
  3249. {getLiquidationStatus(theData.liquidationStatus)}
  3250. </span>
  3251. </FormItem>
  3252. <FormItem
  3253. className="half-item"
  3254. {...formItemLayout}
  3255. label="签单总金额(万元)"
  3256. >
  3257. <span>{theData.totalAmount}</span>
  3258. </FormItem>
  3259. <FormItem
  3260. className="half-item"
  3261. {...formItemLayout}
  3262. label="首付款(万元)"
  3263. >
  3264. <span>{theData.firstAmount}</span>
  3265. </FormItem>
  3266. <FormItem
  3267. className="half-item"
  3268. {...formItemLayout}
  3269. label="已收款(万元)"
  3270. >
  3271. <span>{theData.settlementAmount}</span>
  3272. </FormItem>
  3273. <FormItem
  3274. className="half-item"
  3275. {...formItemLayout}
  3276. label="是否特批"
  3277. >
  3278. <span>{getApproval(theData.approval)}</span>
  3279. </FormItem>
  3280. {/*this.props.data.orderStatus=='6'&&<FormItem className="half-item" {...formItemLayout} label="已退(万元)">
  3281. <span>{this.props.data.refundAmount}</span>
  3282. </FormItem>*/}
  3283. </div>
  3284. <div className="clearfix">
  3285. <FormItem
  3286. labelCol={{ span: 5 }}
  3287. wrapperCol={{ span: 18 }}
  3288. label="合同扫描件"
  3289. >
  3290. {/*<Upload*/}
  3291. {/* className="demandDetailShow-upload"*/}
  3292. {/* listType="picture-card"*/}
  3293. {/* fileList={this.state.orgCodeUrl}*/}
  3294. {/* onPreview={(file) => {*/}
  3295. {/* this.setState({*/}
  3296. {/* previewImage: file.url || file.thumbUrl,*/}
  3297. {/* previewVisible: true,*/}
  3298. {/* });*/}
  3299. {/* }}*/}
  3300. {/*/>*/}
  3301. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  3302. {this.state.orgCodeUrl && this.state.modKey === '1' ? <ImgList domId={'approvedOutsourcingAll1'} fileList={this.state.orgCodeUrl}/> : <div/>}
  3303. </div>
  3304. <Modal
  3305. maskClosable={false}
  3306. footer={null}
  3307. width={"50%"}
  3308. visible={this.state.previewVisible}
  3309. onCancel={() => {
  3310. this.setState({
  3311. previewVisible: false,
  3312. rotateDeg: 0,
  3313. });
  3314. }}
  3315. >
  3316. <img
  3317. alt=""
  3318. style={{
  3319. width: "100%",
  3320. transform: `rotate(${this.state.rotateDeg}deg)`,
  3321. }}
  3322. src={this.state.previewImage || ""}
  3323. />
  3324. <Button
  3325. onClick={this.rotate}
  3326. style={{
  3327. position: "relative",
  3328. left: "50%",
  3329. transform: "translateX(-50%)",
  3330. }}
  3331. >
  3332. 旋转
  3333. </Button>
  3334. <Button
  3335. onClick={this.upImg}
  3336. style={{
  3337. position: "absolute",
  3338. left: -81,
  3339. top: "50%",
  3340. transform: "translateY(-50%)",
  3341. }}
  3342. >
  3343. 上一张
  3344. </Button>
  3345. <Button
  3346. onClick={this.downImg}
  3347. style={{
  3348. position: "absolute",
  3349. right: -81,
  3350. top: "50%",
  3351. transform: "translateY(-50%)",
  3352. }}
  3353. >
  3354. 下一张
  3355. </Button>
  3356. </Modal>
  3357. <Button
  3358. style={{
  3359. float: "right",
  3360. marginRight: "140px",
  3361. marginTop: "20px",
  3362. }}
  3363. onClick={this.getOrderLog}
  3364. >
  3365. 查看订单日志
  3366. </Button>
  3367. </FormItem>
  3368. <FormItem
  3369. labelCol={{ span: 5 }}
  3370. wrapperCol={{ span: 18 }}
  3371. label="补充协议"
  3372. >
  3373. {/*<Upload*/}
  3374. {/* className="demandDetailShow-upload"*/}
  3375. {/* listType="picture-card"*/}
  3376. {/* fileList={this.state.replenishUrl}*/}
  3377. {/* onPreview={(file) => {*/}
  3378. {/* this.setState({*/}
  3379. {/* previewImage: file.url || file.thumbUrl,*/}
  3380. {/* previewVisibles: true,*/}
  3381. {/* });*/}
  3382. {/* }}*/}
  3383. {/*/>*/}
  3384. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  3385. {this.state.replenishUrl && this.state.modKey === '1' ? <ImgList fileList={this.state.replenishUrl}/> : <div/>}
  3386. </div>
  3387. <Modal
  3388. maskClosable={false}
  3389. footer={null}
  3390. width={"50%"}
  3391. visible={this.state.previewVisibles}
  3392. onCancel={() => {
  3393. this.setState({
  3394. previewVisibles: false,
  3395. rotateDeg: 0,
  3396. });
  3397. }}
  3398. >
  3399. <img
  3400. alt=""
  3401. style={{
  3402. width: "100%",
  3403. transform: `rotate(${this.state.rotateDeg}deg)`,
  3404. }}
  3405. src={this.state.previewImage || ""}
  3406. />
  3407. <Button
  3408. onClick={this.rotates}
  3409. style={{
  3410. position: "relative",
  3411. left: "50%",
  3412. transform: "translateX(-50%)",
  3413. }}
  3414. >
  3415. 旋转
  3416. </Button>
  3417. <Button
  3418. onClick={this.upImgs}
  3419. style={{
  3420. position: "absolute",
  3421. left: -81,
  3422. top: "50%",
  3423. transform: "translateY(-50%)",
  3424. }}
  3425. >
  3426. 上一张
  3427. </Button>
  3428. <Button
  3429. onClick={this.downImgs}
  3430. style={{
  3431. position: "absolute",
  3432. right: -81,
  3433. top: "50%",
  3434. transform: "translateY(-50%)",
  3435. }}
  3436. >
  3437. 下一张
  3438. </Button>
  3439. </Modal>
  3440. </FormItem>
  3441. </div>
  3442. <ContentUrl
  3443. processStatus={1}
  3444. domId = {"approvedContents"}
  3445. contentUrl = {this.state.contentUrl}
  3446. imgId = {"approvedContentsImg"}
  3447. />
  3448. <div className="clearfix">
  3449. <FormItem
  3450. className="half-item"
  3451. {...formItemLayout}
  3452. label="合同编号"
  3453. >
  3454. <span>{theData.contractNo}</span>
  3455. </FormItem>
  3456. <FormItem
  3457. className="half-item"
  3458. {...formItemLayout}
  3459. label="订单部门"
  3460. >
  3461. <span>{theData.depName}</span>
  3462. </FormItem>
  3463. </div>
  3464. <div className="clearfix">
  3465. <FormItem
  3466. labelCol={{ span: 5 }}
  3467. wrapperCol={{ span: 18 }}
  3468. label="订单留言"
  3469. >
  3470. <p style={{ width: 500, wordWrap: "break-word" }}>
  3471. {this.state.orderRemarks}
  3472. </p>
  3473. </FormItem>
  3474. </div>
  3475. {/* <div className="clearfix">
  3476. <FormItem
  3477. labelCol={{ span: 5 }}
  3478. wrapperCol={{ span: 18 }}
  3479. label="收款节点"
  3480. >
  3481. {jsDate.map(item => {
  3482. return (
  3483. <p>
  3484. {getjiedian(item.dunSubject)} -- {item.money} 万元
  3485. </p>
  3486. );
  3487. })}
  3488. </FormItem>
  3489. </div> */}
  3490. <div className="clearfix">
  3491. <FormItem
  3492. className="half-item"
  3493. {...formItemLayout}
  3494. label="订单负责人"
  3495. >
  3496. <span>{theData.salesmanName}</span>
  3497. </FormItem>
  3498. <FormItem
  3499. className="half-item"
  3500. {...formItemLayout}
  3501. label="订单负责人电话"
  3502. >
  3503. <span>{theData.salesmanMobile}</span>
  3504. </FormItem>
  3505. <FormItem
  3506. className="half-item"
  3507. {...formItemLayout}
  3508. label="当前财务负责人"
  3509. >
  3510. <span>{theData.nowFinance}</span>
  3511. </FormItem>
  3512. <FormItem
  3513. className="half-item"
  3514. {...formItemLayout}
  3515. label="当前财务负责人电话"
  3516. >
  3517. <span>{theData.nowFinanceMobile}</span>
  3518. </FormItem>
  3519. <FormItem
  3520. className="half-item"
  3521. {...formItemLayout}
  3522. style={{ opacity: ".5" }}
  3523. label="原订单负责人"
  3524. >
  3525. <span>{theData.oldSalesmanName}</span>
  3526. </FormItem>
  3527. <FormItem
  3528. className="half-item"
  3529. {...formItemLayout}
  3530. style={{ opacity: ".5" }}
  3531. label="原订单负责人电话"
  3532. >
  3533. <span>{theData.oldSalesmanMobile}</span>
  3534. </FormItem>
  3535. <FormItem
  3536. className="half-item"
  3537. {...formItemLayout}
  3538. style={{ opacity: ".5" }}
  3539. label="实际财务操作人"
  3540. >
  3541. <span>{theData.financeName}</span>
  3542. </FormItem>
  3543. <FormItem
  3544. className="half-item"
  3545. {...formItemLayout}
  3546. style={{ opacity: ".5" }}
  3547. label="实际财务操作人电话"
  3548. >
  3549. <span>{theData.financeMobile}</span>
  3550. </FormItem>
  3551. </div>
  3552. {/* <Modal
  3553. visible={this.state.avisible}
  3554. className="admin-desc-content"
  3555. width="800px"
  3556. maskClosable={false}
  3557. title="订单日志"
  3558. footer={null}
  3559. onCancel={this.closeOrderLog}
  3560. >
  3561. <div className="patent-table">
  3562. <Spin spinning={this.state.loading}>
  3563. <Table
  3564. columns={this.state.columnsY}
  3565. dataSource={this.state.dataSourceY}
  3566. pagination={false}
  3567. />
  3568. </Spin>
  3569. </div>
  3570. </Modal> */}
  3571. <OrderRiZi
  3572. dataSourcerizhi={this.state.dataSourceY}
  3573. closeOrderLog={this.closeOrderLog}
  3574. visible={this.state.avisible}
  3575. loading={this.state.loading}
  3576. />
  3577. <div className="clearfix">
  3578. <p style={{ fontSize: 18, marginLeft: 20 }}>项目业务</p>
  3579. <div className="patent-table">
  3580. <Spin spinning={this.state.loading}>
  3581. <Table
  3582. columns={this.state.columnsX}
  3583. dataSource={this.state.dataSourceX}
  3584. pagination={false}
  3585. size="middle"
  3586. bordered
  3587. />
  3588. </Spin>
  3589. </div>
  3590. </div>
  3591. <div>
  3592. <span style={{ marginLeft: 20, fontSize: "18px" }}>
  3593. 催款节点
  3594. </span>
  3595. <span
  3596. style={{
  3597. display: cuiDataList.length ? "none" : "inline-block",
  3598. marginLeft: 10,
  3599. color: "red",
  3600. }}
  3601. >
  3602. 金额总计(万元): {this.state.totalCui}
  3603. </span>
  3604. </div>
  3605. <div className="clearfix">
  3606. <Spin spinning={this.state.loading}>
  3607. <Form layout="horizontal" id="demand-form">
  3608. <Table
  3609. pagination={false}
  3610. bordered
  3611. size="middle"
  3612. columns={
  3613. cuiDataList.length
  3614. ? this.state.ContactsLists
  3615. : this.state.ContactsListsNew
  3616. }
  3617. dataSource={
  3618. cuiDataList.length
  3619. ? this.state.contactList
  3620. : this.state.contactListNew
  3621. }
  3622. />
  3623. <Col
  3624. span={24}
  3625. offset={9}
  3626. style={{ marginTop: "15px" }}
  3627. />
  3628. </Form>
  3629. </Spin>
  3630. </div>
  3631. </Spin>
  3632. </Form> : <div/>}
  3633. </TabPane>
  3634. <TabPane tab="外包详情" key="2">
  3635. <div className="clearfix">
  3636. <p style={{ color: "red" }}>
  3637. 提示:查看备注请点击表格左侧加号按钮~
  3638. </p>
  3639. <div className="patent-table">
  3640. <Spin spinning={this.state.loading}>
  3641. <Table
  3642. columns={this.state.columnsW}
  3643. dataSource={this.state.dataSourceW}
  3644. pagination={false}
  3645. size="middle"
  3646. expandedRowRender={(record) => (
  3647. <p style={{ margin: 0 }}>{record.remarks}</p>
  3648. )}
  3649. scroll={{ x: 300, y: 0 }}
  3650. />
  3651. </Spin>
  3652. </div>
  3653. </div>
  3654. </TabPane>
  3655. <TabPane tab="外包审核" key="3">
  3656. <div className="clearfix">
  3657. <FormItem
  3658. className="half-item"
  3659. labelCol={{ span: 8 }}
  3660. wrapperCol={{ span: 14 }}
  3661. label="外包公司"
  3662. >
  3663. <span>{this.state.companyName}</span>
  3664. </FormItem>
  3665. </div>
  3666. <div className="clearfix">
  3667. <FormItem
  3668. className="half-item"
  3669. {...formItemLayout}
  3670. label="单价(万元)"
  3671. >
  3672. <span>{this.state.unitPrice}</span>
  3673. </FormItem>
  3674. </div>
  3675. <div className="clearfix">
  3676. <FormItem
  3677. className="half-item"
  3678. {...formItemLayout}
  3679. label="数量(万元)"
  3680. >
  3681. <span>{this.state.unitNumber}</span>
  3682. </FormItem>
  3683. </div>
  3684. <div className="clearfix">
  3685. <FormItem
  3686. className="half-item"
  3687. {...formItemLayout}
  3688. label="总金额(万元)"
  3689. >
  3690. <span>{this.state.amount}</span>
  3691. </FormItem>
  3692. </div>
  3693. <div className="clearfix">
  3694. <FormItem
  3695. className="half-item"
  3696. {...formItemLayout}
  3697. label="备注"
  3698. >
  3699. <span>{this.state.outsourceRemarks}</span>
  3700. </FormItem>
  3701. </div>
  3702. {/*<div className="clearfix">
  3703. <FormItem className="half-item"
  3704. labelCol={{ span: 8 }}
  3705. wrapperCol={{ span: 14 }}
  3706. label="上传协议文件" >
  3707. <Upload header={{authorization: 'authorization-text'}} action={globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"}
  3708. data={(e)=>{
  3709. return {
  3710. 'sign': e.name.substring(0,e.name.lastIndexOf("."))
  3711. }
  3712. }}
  3713. fileList={this.state.attachmentUrl}
  3714. showUploadList={{showRemoveIcon:false}}
  3715. onPreview={(e)=>{
  3716. let url = window.location.href.substring(7)
  3717. window.location.href="http://"+url.substring(0,url.indexOf("/"))+"/api/admin/outsourceOrg//downloadFile?path="+e.response.data
  3718. }}>
  3719. </Upload>
  3720. </FormItem>
  3721. </div>*/}
  3722. <div className="clearfix">
  3723. <FormItem
  3724. labelCol={{ span: 4 }}
  3725. wrapperCol={{ span: 18 }}
  3726. label="合同/协议扫描件"
  3727. >
  3728. {/*<Upload*/}
  3729. {/* className="demandDetailShow-upload"*/}
  3730. {/* listType="picture-card"*/}
  3731. {/* fileList={this.state.pictureUrl}*/}
  3732. {/* onPreview={(file) => {*/}
  3733. {/* this.setState({*/}
  3734. {/* previewImage: file.url || file.thumbUrl,*/}
  3735. {/* previewVisible: true,*/}
  3736. {/* });*/}
  3737. {/* }}*/}
  3738. {/*/>*/}
  3739. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  3740. {this.state.pictureUrl && this.state.modKey === '3' ? <ImgList domId={'approvedOutsourcingAll2'} fileList={this.state.pictureUrl}/> : <div/>}
  3741. </div>
  3742. <Modal
  3743. maskClosable={false}
  3744. footer={null}
  3745. width={"50%"}
  3746. visible={this.state.previewVisible}
  3747. onCancel={() => {
  3748. this.setState({ previewVisible: false });
  3749. }}
  3750. >
  3751. <img
  3752. alt=""
  3753. style={{
  3754. width: "100%",
  3755. transform: `rotate(${this.state.rotateDeg}deg)`,
  3756. }}
  3757. src={this.state.previewImage || ""}
  3758. />
  3759. <Button
  3760. onClick={this.rotate}
  3761. style={{
  3762. position: "relative",
  3763. left: "50%",
  3764. transform: "translateX(-50%)",
  3765. }}
  3766. >
  3767. 旋转
  3768. </Button>
  3769. <Button
  3770. onClick={this.upImg}
  3771. style={{
  3772. position: "absolute",
  3773. left: -81,
  3774. top: "50%",
  3775. transform: "translateY(-50%)",
  3776. }}
  3777. >
  3778. 上一张
  3779. </Button>
  3780. <Button
  3781. onClick={this.downImg}
  3782. style={{
  3783. position: "absolute",
  3784. right: -81,
  3785. top: "50%",
  3786. transform: "translateY(-50%)",
  3787. }}
  3788. >
  3789. 下一张
  3790. </Button>
  3791. </Modal>
  3792. </FormItem>
  3793. </div>
  3794. <div className="clearfix">
  3795. <hr className="division" />
  3796. <div className="clearfix">
  3797. <FormItem
  3798. className="half-item"
  3799. labelCol={{ span: 8 }}
  3800. wrapperCol={{ span: 14 }}
  3801. label="审核意见"
  3802. >
  3803. <span>{this.state.remarks}</span>
  3804. </FormItem>
  3805. </div>
  3806. <div className="clearfix">
  3807. <FormItem
  3808. className="half-item"
  3809. labelCol={{ span: 8 }}
  3810. wrapperCol={{ span: 14 }}
  3811. label="审核结果"
  3812. >
  3813. <span>{getRefundStatus(this.state.refundStatus)}</span>
  3814. </FormItem>
  3815. </div>
  3816. <div className="clearfix">
  3817. <FormItem
  3818. className="half-item"
  3819. labelCol={{ span: 8 }}
  3820. wrapperCol={{ span: 14 }}
  3821. label="审核时间"
  3822. >
  3823. <span>{this.state.auditTimes}</span>
  3824. </FormItem>
  3825. </div>
  3826. </div>
  3827. </TabPane>
  3828. </Tabs>
  3829. </Modal> : <div/>}
  3830. </div>
  3831. <div className="patent-desc">
  3832. <Modal
  3833. maskClosable={false}
  3834. title="驳回理由"
  3835. visible={this.state.boHuiVisible}
  3836. onCancel={this.boHuiCancel}
  3837. width="500px"
  3838. footer=""
  3839. className="admin-desc-content"
  3840. >
  3841. <TextArea
  3842. rows={4}
  3843. value={this.state.reason}
  3844. onChange={(e) => {
  3845. this.setState({
  3846. reason: e.target.value,
  3847. });
  3848. }}
  3849. />
  3850. <Button
  3851. type="primary"
  3852. style={{ marginTop: "20px" }}
  3853. onClick={this.boHuiCo}
  3854. >
  3855. 确定
  3856. </Button>
  3857. </Modal>
  3858. </div>
  3859. <Assign
  3860. title="任务"
  3861. selApi={"/api/admin/newOrder/updateFinance"}
  3862. data={this.state.assignDataY}
  3863. showDesc={this.state.assignVisibleY}
  3864. closeDesc={this.closeAssignY.bind(this)}
  3865. // fenpaiData={8}
  3866. specially={0}
  3867. roleName={this.state.nub}
  3868. requestMethod={"get"}
  3869. />
  3870. <Receivable
  3871. title="收款记录"
  3872. api="/api/admin/financial/addReceiptsFlow"
  3873. data={this.state.assignDataX}
  3874. showDesc={this.state.assignVisibleX}
  3875. closeDesc={this.closeAssignX.bind(this)}
  3876. />
  3877. <Modal
  3878. visible={this.state.bvisible}
  3879. footer=""
  3880. title="开票历史记录"
  3881. className="admin-desc-content"
  3882. width="900px"
  3883. onCancel={this.inRecordCanl}
  3884. >
  3885. <Spin spinning={this.state.loading}>
  3886. <div
  3887. className="patent-table"
  3888. ref={(e) => {
  3889. this.refs.kaiPiao = e;
  3890. }}
  3891. >
  3892. <Table
  3893. columns={this.state.columnsDate}
  3894. dataSource={this.state.recordData}
  3895. onRowClick={this.kaiPiaoData}
  3896. pagination={false}
  3897. bordered
  3898. size="middle"
  3899. />
  3900. <div className="clearfix" style={{ marginTop: "20px" }}>
  3901. <FormItem
  3902. className="half-item"
  3903. {...formItemLayout}
  3904. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  3905. >
  3906. <span>{this.state.sum + "(万元)"}</span>
  3907. </FormItem>
  3908. </div>
  3909. <ReactToPrint
  3910. trigger={() => (
  3911. <Button
  3912. type="primary"
  3913. style={{
  3914. float: "right",
  3915. // marginTop: 10,
  3916. position: "absolute",
  3917. top: -54,
  3918. right: 30,
  3919. }}
  3920. >
  3921. 打印
  3922. </Button>
  3923. )}
  3924. content={() => this.refs.kaiPiao}
  3925. />
  3926. </div>
  3927. </Spin>
  3928. </Modal>
  3929. <Modal
  3930. visible={this.state.cvisible}
  3931. footer=""
  3932. title="详细收款流水"
  3933. className="admin-desc-content"
  3934. width="1300px"
  3935. onCancel={this.waterCanl}
  3936. >
  3937. <Spin spinning={this.state.loading}>
  3938. <div
  3939. className="patent-table"
  3940. ref={(e) => {
  3941. this.refs.shouKuan = e;
  3942. }}
  3943. >
  3944. <Table
  3945. columns={this.state.waterlistDate}
  3946. dataSource={this.state.waterData}
  3947. pagination={false}
  3948. scroll={{ x: "max-content", y: 0 }}
  3949. bordered
  3950. size="middle"
  3951. />
  3952. <div className="clearfix" style={{ marginTop: "20px" }}>
  3953. <FormItem
  3954. className="half-item"
  3955. {...formItemLayout}
  3956. label={<span style={{ fontSize: "14px" }}>总计金额</span>}
  3957. >
  3958. <span>{this.state.waterSum + "(万元)"}</span>
  3959. </FormItem>
  3960. </div>
  3961. <ReactToPrint
  3962. trigger={() => (
  3963. <Button
  3964. type="primary"
  3965. style={{
  3966. float: "right",
  3967. position: "absolute",
  3968. top: -54,
  3969. right: 30,
  3970. }}
  3971. >
  3972. 打印
  3973. </Button>
  3974. )}
  3975. content={() => this.refs.shouKuan}
  3976. />
  3977. </div>
  3978. </Spin>
  3979. </Modal>
  3980. <Modal
  3981. visible={this.state.dvisible}
  3982. footer=""
  3983. title="所有列表信息"
  3984. className="admin-desc-content"
  3985. width="1300px"
  3986. onCancel={() => {
  3987. this.loadData();
  3988. this.setState({
  3989. dvisible: false,
  3990. });
  3991. }}
  3992. >
  3993. <Spin spinning={this.state.loading}>
  3994. <div
  3995. className="patent-table"
  3996. style={{
  3997. // width: 900,
  3998. // position: "relative",
  3999. // left: "50%",
  4000. // transform: "translate(-50%)",
  4001. padding: "25px 0 30px 30px",
  4002. }}
  4003. ref={(e) => {
  4004. this.refs.all = e;
  4005. }}
  4006. >
  4007. <Table
  4008. columns={this.state.printColumns}
  4009. dataSource={this.state.dataSource}
  4010. pagination={false}
  4011. bordered
  4012. size="small"
  4013. />
  4014. </div>
  4015. </Spin>
  4016. <ReactToPrint
  4017. trigger={() => (
  4018. <Button
  4019. type="primary"
  4020. style={{
  4021. float: "right",
  4022. marginTop: 10,
  4023. position: "absolute",
  4024. top: 0,
  4025. right: 30,
  4026. }}
  4027. >
  4028. 打印
  4029. </Button>
  4030. )}
  4031. content={() => this.refs.all}
  4032. />
  4033. </Modal>
  4034. <Modal
  4035. visible={this.state.timeVisible}
  4036. footer=""
  4037. title="工时详情"
  4038. className="admin-desc-content"
  4039. width="1300px"
  4040. pagination={false}
  4041. onCancel={() => {
  4042. this.loadData();
  4043. this.setState({
  4044. timeVisible: false,
  4045. });
  4046. }}
  4047. >
  4048. <Spin spinning={this.state.loading}>
  4049. <div
  4050. className="patent-table"
  4051. style={
  4052. {
  4053. // width: 900,
  4054. // position: "relative",
  4055. // left: "50%",
  4056. // transform: "translate(-50%)",
  4057. // padding: "25px 0 30px 30px"
  4058. }
  4059. }
  4060. ref={(e) => {
  4061. this.refs.all = e;
  4062. }}
  4063. >
  4064. <Table
  4065. columns={this.state.timeColumns}
  4066. dataSource={this.state.timeDataList}
  4067. scroll={{ x: "max-content", y: 0 }}
  4068. pagination={false}
  4069. bordered
  4070. size="small"
  4071. />
  4072. </div>
  4073. </Spin>
  4074. <ReactToPrint
  4075. trigger={() => (
  4076. <Button
  4077. type="primary"
  4078. style={{
  4079. float: "right",
  4080. marginTop: 10,
  4081. position: "absolute",
  4082. top: 0,
  4083. right: 30,
  4084. }}
  4085. >
  4086. 打印
  4087. </Button>
  4088. )}
  4089. content={() => this.refs.all}
  4090. />
  4091. </Modal>
  4092. <Modal
  4093. visible={this.state.cuiVisible}
  4094. footer=""
  4095. title="催款详情"
  4096. className="admin-desc-content"
  4097. width="1300px"
  4098. pagination={false}
  4099. onCancel={() => {
  4100. this.loadData();
  4101. this.setState({
  4102. cuiVisible: false,
  4103. cuiTabKey: "1",
  4104. });
  4105. }}
  4106. >
  4107. <Tabs activeKey={this.state.cuiTabKey} onChange={this.cuiTabChange}>
  4108. <TabPane tab="催款节点" key="1">
  4109. <Spin spinning={this.state.loading}>
  4110. <div
  4111. className="patent-table"
  4112. ref={(e) => {
  4113. this.refs.all = e;
  4114. }}
  4115. >
  4116. <Table
  4117. columns={this.state.cuiColumns}
  4118. dataSource={this.state.cuiDataList}
  4119. scroll={{ x: "max-content", y: 0 }}
  4120. pagination={false}
  4121. bordered
  4122. size="small"
  4123. />
  4124. </div>
  4125. <ReactToPrint
  4126. trigger={() => (
  4127. <Button
  4128. type="primary"
  4129. style={{
  4130. float: "right",
  4131. marginTop: 10,
  4132. position: "absolute",
  4133. top: "-60px",
  4134. right: 30,
  4135. }}
  4136. >
  4137. 打印
  4138. </Button>
  4139. )}
  4140. content={() => this.refs.all}
  4141. />
  4142. </Spin>
  4143. </TabPane>
  4144. <TabPane tab="欠款催收记录" key="2">
  4145. <Spin spinning={this.state.loading}>
  4146. <div
  4147. className="patent-table"
  4148. ref={(e) => {
  4149. this.refs.all = e;
  4150. }}
  4151. >
  4152. <Table
  4153. columns={this.state.qianColumns}
  4154. dataSource={this.state.qianDataList}
  4155. scroll={{ x: "max-content", y: 0 }}
  4156. pagination={false}
  4157. bordered
  4158. size="small"
  4159. />
  4160. </div>
  4161. <ReactToPrint
  4162. trigger={() => (
  4163. <Button
  4164. type="primary"
  4165. style={{
  4166. float: "right",
  4167. marginTop: 10,
  4168. position: "absolute",
  4169. top: "-60px",
  4170. right: 30,
  4171. }}
  4172. >
  4173. 打印
  4174. </Button>
  4175. )}
  4176. content={() => this.refs.all}
  4177. />
  4178. </Spin>
  4179. </TabPane>
  4180. </Tabs>
  4181. </Modal>
  4182. <Modal
  4183. visible={this.state.proVisible}
  4184. footer=""
  4185. title="项目进度"
  4186. className="admin-desc-content"
  4187. width="1300px"
  4188. pagination={false}
  4189. onCancel={() => {
  4190. this.loadData();
  4191. this.setState({
  4192. proVisible: false,
  4193. });
  4194. }}
  4195. >
  4196. <Spin spinning={this.state.loading}>
  4197. <div
  4198. className="patent-table"
  4199. style={
  4200. {
  4201. // width: 900,
  4202. // position: "relative",
  4203. // left: "50%",
  4204. // transform: "translate(-50%)",
  4205. // padding: "25px 0 30px 30px"
  4206. }
  4207. }
  4208. ref={(e) => {
  4209. this.refs.all = e;
  4210. }}
  4211. >
  4212. <Table
  4213. columns={this.state.proColumns}
  4214. dataSource={this.state.proDataList}
  4215. pagination={false}
  4216. bordered
  4217. size="small"
  4218. />
  4219. </div>
  4220. <span style={{ display: "block", marginTop: 10, color: "red" }}>
  4221. 外包(内部)价格总计(万元):{this.state.totalWaibao}
  4222. </span>
  4223. </Spin>
  4224. <ReactToPrint
  4225. trigger={() => (
  4226. <Button
  4227. type="primary"
  4228. style={{
  4229. float: "right",
  4230. marginTop: 10,
  4231. position: "absolute",
  4232. top: 0,
  4233. right: 30,
  4234. }}
  4235. >
  4236. 打印
  4237. </Button>
  4238. )}
  4239. content={() => this.refs.all}
  4240. />
  4241. </Modal>
  4242. <KaiPiaoModal
  4243. visible={this.state.avisible}
  4244. data={this.state.modalData}
  4245. onCancel={this.visitCancels}
  4246. loading={this.state.loading}
  4247. />
  4248. </div>
  4249. );
  4250. },
  4251. });
  4252. export default approvedOutsourcing;