approvedOutsourcing.jsx 131 KB

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