approvedOutsourcing.jsx 126 KB

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