approvedOutsourcing.jsx 127 KB

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