approvedOutsourcing.jsx 129 KB

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