myTask.jsx 172 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057
  1. import React from "react";
  2. import $ from "jquery";
  3. import moment from "moment";
  4. import Picture from "@/manageCenter/publicComponent/picture";
  5. import "@/manageCenter/financialManage/distribute/public.less";
  6. import "@/manageCenter/financialManage/distribute/shouKuan.less";
  7. import OrderDetail from "../../order/orderNew/changeComponent/orderDetail";
  8. import ResolutionDetail from "@/resolutionDetail";
  9. import {
  10. Button,
  11. Form,
  12. Input,
  13. Select,
  14. Spin,
  15. Table,
  16. message,
  17. DatePicker,
  18. Modal,
  19. Radio,
  20. Cascader,
  21. Popconfirm,
  22. Switch,
  23. Tabs,
  24. Col,
  25. Icon,
  26. Upload,
  27. AutoComplete,
  28. Tag
  29. } from "antd";
  30. import Assign from "@/manageCenter/publicComponent/assign";
  31. import { areaSelect } from "@/NewDicProvinceList";
  32. import { ChooseList } from "../../order/orderNew/chooseList";
  33. import OrderRiZi from "@/orderRiZi.jsx";
  34. import "./table.less";
  35. import {
  36. getMaterialStatus,
  37. getUrgentStatus,
  38. getProcessStatus,
  39. getApproval,
  40. getTaskStatus,
  41. getLiquidationStatus,
  42. getProjectStatus,
  43. splitUrl,
  44. getboutique,
  45. ShowModal,
  46. getRefundStatus
  47. } from "@/tools";
  48. import { taskStatus, projectStatus } from "@/dataDic.js";
  49. import ShowModalDiv from "@/showModal.jsx";
  50. const confirm = Modal.confirm;
  51. const FormItem = Form.Item;
  52. const { TabPane } = Tabs;
  53. const { TextArea } = Input;
  54. const { Option } = Select;
  55. const { MonthPicker, RangePicker } = DatePicker;
  56. const PicturesWall = React.createClass({
  57. getInitialState() {
  58. return {
  59. previewVisible: false,
  60. previewImage: "",
  61. fileList: []
  62. };
  63. },
  64. handleCancel() {
  65. this.setState({
  66. previewVisible: false
  67. });
  68. },
  69. handlePreview(file) {
  70. this.setState({
  71. previewImage: file.url || file.thumbUrl,
  72. previewVisible: true
  73. });
  74. },
  75. handleChange(info) {
  76. let fileList = info.fileList;
  77. this.setState({
  78. fileList
  79. });
  80. this.props.fileList(fileList);
  81. },
  82. componentWillReceiveProps(nextProps) {
  83. this.state.fileList = nextProps.pictureUrl;
  84. this.state.pojectApplicationUrl = undefined;
  85. },
  86. render() {
  87. const { previewVisible, previewImage, fileList } = this.state;
  88. const uploadButton = (
  89. <div>
  90. <Icon type="plus" />
  91. <div className="ant-upload-text">点击上传</div>
  92. </div>
  93. );
  94. return (
  95. <div style={{ display: "inline-block" }}>
  96. <Upload
  97. action={
  98. globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"
  99. }
  100. data={{ sign: "order_outsource" }}
  101. listType="picture-card"
  102. fileList={fileList}
  103. onPreview={this.handlePreview}
  104. onChange={this.handleChange}
  105. >
  106. {fileList && fileList.length >= 10 ? null : uploadButton}
  107. </Upload>
  108. <Modal
  109. maskClosable={false}
  110. visible={previewVisible}
  111. footer={null}
  112. onCancel={this.handleCancel}
  113. >
  114. <img alt="example" style={{ width: "100%" }} src={previewImage} />
  115. </Modal>
  116. </div>
  117. );
  118. }
  119. });
  120. const Task = React.createClass({
  121. loadData(pageNo) {
  122. this.state.data = [];
  123. this.setState({
  124. page: pageNo,
  125. loading: true,
  126. });
  127. $.ajax({
  128. method: "get",
  129. dataType: "json",
  130. crossDomain: false,
  131. url: globalConfig.context + "/api/admin/orderProject/orderTaskList",
  132. data: {
  133. pageNo: pageNo || 1,
  134. pageSize: this.state.pagination.pageSize,
  135. specially: 0, //个人
  136. name: this.state.nameSearch, //客户名称
  137. depId: this.state.departmenttSearch, //订单部门
  138. orderNo: this.state.orderNoSearch, //订单编号
  139. contractNo: this.state.contractNoSearch, //合同编号
  140. taskId: this.state.taskNoSearch, //项目编号
  141. taskStatus: this.state.taskStatuSearch, //项目状态
  142. projectStatus: this.state.projectStatusSearch, //项目状态
  143. adminName: this.state.adminName, //项目受理人
  144. approval: this.state.approvalSearch, //特批状态搜索
  145. outsourceStatus:
  146. this.state.outsourceStatusSearch >= 999
  147. ? undefined
  148. : this.state.outsourceStatusSearch, //外包状态搜索
  149. },
  150. success: function (data) {
  151. ShowModal(this);
  152. let theArr = [];
  153. if (!data.data || !data.data.list) {
  154. if (data.error && data.error.length) {
  155. message.warning(data.error[0].message);
  156. }
  157. } else {
  158. for (let i = 0; i < data.data.list.length; i++) {
  159. let thisdata = data.data.list[i];
  160. theArr.push({
  161. key: i,
  162. orderNo: thisdata.orderNo, //订单编号
  163. id: thisdata.id, //项目ID
  164. taskName: thisdata.taskName, //名称
  165. cname: thisdata.cname, //项目品类
  166. receiverName: thisdata.receiverName, //受理人
  167. projectStatus: thisdata.projectStatus, //项目状态
  168. taskStatus: thisdata.taskStatus, //项目状态
  169. taskDate: thisdata.taskDate, //分配时间
  170. userName:
  171. thisdata.taskName.substring(0, 5) === "软件著作权"
  172. ? thisdata.userName +
  173. "(" +
  174. thisdata.commodityQuantity.toString() +
  175. "/" +
  176. thisdata.alreadyNumber +
  177. ")"
  178. : thisdata.userName, //用户名
  179. depName: thisdata.depName, //部门名称
  180. commodityQuantity: thisdata.commodityQuantity, //项目数量
  181. hours: thisdata.hours,
  182. contractNo: thisdata.contractNo,
  183. approval: thisdata.approval, //特批状态
  184. outsourceStatus: thisdata.outsourceStatus, //外包审核状态
  185. splitStatus: thisdata.splitStatus, //是否为子项目 2是 1主项目
  186. splitSuper: thisdata.splitSuper,
  187. splitId: thisdata.splitId,
  188. });
  189. }
  190. }
  191. this.state.pagination.current = data.data.pageNo;
  192. this.state.pagination.total = data.data.totalCount;
  193. if (data.data && data.data.list && !data.data.list.length) {
  194. this.state.pagination.current = 0;
  195. this.state.pagination.total = 0;
  196. }
  197. this.setState({
  198. dataSource: theArr,
  199. pagination: this.state.pagination,
  200. });
  201. }.bind(this),
  202. }).always(
  203. function () {
  204. this.setState({
  205. loading: false,
  206. });
  207. }.bind(this)
  208. );
  209. },
  210. getInitialState() {
  211. return {
  212. thirdMaterial: 0,
  213. thirdUrgent: 0,
  214. thirdCompanyName: "",
  215. thirdUnitPrice: "",
  216. thirdQuantity: 1,
  217. thirdRemarks: "",
  218. customerArr: [],
  219. currentTotalPrice: 0, //当前修改页面的总价
  220. saveThirdList: [],
  221. orderData: [],
  222. orderNo: "",
  223. jiedian: [],
  224. jiedianNew: [],
  225. timeVisible: false,
  226. ThirdListVisible: false,
  227. PayNodeVisible: false, //新增付款节点
  228. searchMore: true,
  229. assignVisible: false,
  230. releaseDate: [],
  231. // 判断是否是退回给咨询师经理
  232. flag: false,
  233. roleName: "",
  234. activeKey: "1",
  235. //特批状态搜索
  236. approvalSearch: undefined,
  237. testFlag: true,
  238. boHuivisible: false,
  239. selectedRowKeys: [],
  240. avisible: false,
  241. departmentArr: [],
  242. selectedRows: [],
  243. attachmentUrl: [],
  244. contactList: [],
  245. paginations: false,
  246. loading: false,
  247. pagination: {
  248. defaultCurrent: 1,
  249. defaultPageSize: 10,
  250. showQuickJumper: true,
  251. pageSize: 10,
  252. onChange: function (page) {
  253. this.loadData(page);
  254. }.bind(this),
  255. showTotal: function (total) {
  256. return "共" + total + "条数据";
  257. },
  258. },
  259. // 子组件改变的表格title数组
  260. changeList: undefined,
  261. columnsTime: [
  262. {
  263. title: "工作时长(小时)",
  264. dataIndex: "hours",
  265. key: "hours",
  266. },
  267. {
  268. title: "工作时间",
  269. dataIndex: "taskDays",
  270. key: "taskDays",
  271. },
  272. // {
  273. // title: "项目负责人",
  274. // dataIndex: "remarks",
  275. // key: "remarks"
  276. // },
  277. {
  278. title: "备注",
  279. dataIndex: "remarks",
  280. key: "remarks",
  281. },
  282. ],
  283. columns: [
  284. {
  285. title: "项目编号",
  286. dataIndex: "id",
  287. key: "id",
  288. render: (text, record) => {
  289. if (record.splitStatus == 2) {
  290. return <span>{record.splitSuper + "-" + record.splitId}</span>;
  291. } else {
  292. return text;
  293. }
  294. },
  295. },
  296. {
  297. title: "项目名称",
  298. dataIndex: "taskName",
  299. key: "taskName",
  300. render: (text) => {
  301. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  302. },
  303. },
  304. {
  305. title: "项目数量",
  306. dataIndex: "commodityQuantity",
  307. key: "commodityQuantity",
  308. },
  309. {
  310. title: "订单编号",
  311. dataIndex: "orderNo",
  312. key: "orderNo",
  313. },
  314. {
  315. title: "合同编号",
  316. dataIndex: "contractNo",
  317. key: "contractNo",
  318. },
  319. {
  320. title: "业务类别",
  321. dataIndex: "cname",
  322. key: "cname",
  323. },
  324. {
  325. title: "客户名称",
  326. dataIndex: "userName",
  327. key: "userName",
  328. className: "userName",
  329. },
  330. {
  331. title: "分配状态",
  332. dataIndex: "taskStatus",
  333. key: "taskStatus",
  334. render: (text) => {
  335. return getTaskStatus(text);
  336. },
  337. },
  338. {
  339. title: "项目状态",
  340. dataIndex: "projectStatus",
  341. key: "projectStatus",
  342. render: (text) => {
  343. return getProjectStatus(text);
  344. },
  345. },
  346. {
  347. title: "外包审核",
  348. dataIndex: "outsourceStatus",
  349. key: "outsourceStatus",
  350. render: (text) => {
  351. if (text == 0) {
  352. return <Tag color="#f50">待审核</Tag>;
  353. } else if (text == 1) {
  354. return <Tag color="#87d068">审核通过</Tag>;
  355. } else if (text == 2) {
  356. return <Tag color="#2db7f5">审核驳回</Tag>;
  357. } else {
  358. return "非外包";
  359. }
  360. },
  361. },
  362. {
  363. title: "分配时间",
  364. dataIndex: "taskDate",
  365. key: "taskDate",
  366. },
  367. {
  368. title: "订单部门",
  369. dataIndex: "depName",
  370. key: "depName",
  371. },
  372. {
  373. title: "累计工时(小时)",
  374. dataIndex: "hours",
  375. key: "hours",
  376. },
  377. {
  378. title: "操作",
  379. dataIndex: "caozuo",
  380. key: "caozuo",
  381. render: (text, record) => {
  382. return (
  383. <div>
  384. <Button
  385. type="primary"
  386. onClick={(e) => {
  387. e.stopPropagation(), this.evaluate(record, "咨询师");
  388. }}
  389. >
  390. 转交
  391. </Button>
  392. <Button
  393. type="primary"
  394. style={{ marginLeft: 10 }}
  395. onClick={(e) => {
  396. e.stopPropagation(),
  397. this.evaluate(record, "咨询师经理", true);
  398. }}
  399. >
  400. 回退
  401. </Button>
  402. <Button
  403. type="primary"
  404. style={{ margin: "0 10px" }}
  405. onClick={(e) => {
  406. e.stopPropagation(), this.okCancel(record);
  407. }}
  408. >
  409. 添加工时
  410. </Button>
  411. <Button
  412. type="primary"
  413. onClick={(e) => {
  414. e.stopPropagation();
  415. this.setState({
  416. timeVisible: true,
  417. });
  418. this.timeDetail(record);
  419. }}
  420. >
  421. 工时记录
  422. </Button>
  423. </div>
  424. );
  425. },
  426. },
  427. ],
  428. dataSource: [],
  429. searchTime: [],
  430. columnsX: [
  431. {
  432. title: "业务项目名称",
  433. dataIndex: "commodityName",
  434. key: "commodityName",
  435. },
  436. {
  437. title: "项目类别",
  438. dataIndex: "cname",
  439. key: "cname",
  440. },
  441. {
  442. title: "项目数量",
  443. dataIndex: "commodityQuantity",
  444. key: "commodityQuantity",
  445. render: (text, record) => {
  446. if (record.splitStatus == 1) {
  447. return (
  448. <span>
  449. {text}{" "}
  450. <Tag
  451. color="#108ee9"
  452. onClick={(e) => {
  453. e.stopPropagation();
  454. this.showRes(record);
  455. }}
  456. >
  457. 已拆
  458. </Tag>
  459. </span>
  460. );
  461. } else {
  462. return text;
  463. }
  464. },
  465. },
  466. {
  467. title: "金额(万元)",
  468. dataIndex: "commodityPrice",
  469. key: "commodityPrice",
  470. },
  471. {
  472. title: "负责人",
  473. dataIndex: "contacts",
  474. key: "contacts",
  475. },
  476. {
  477. title: "负责人电话",
  478. dataIndex: "contactsMobile",
  479. key: "contactsMobile",
  480. },
  481. {
  482. title: "主要项目",
  483. dataIndex: "main",
  484. key: "main",
  485. render: (text) => {
  486. return text ? "是" : "否";
  487. },
  488. },
  489. {
  490. title: "项目说明",
  491. dataIndex: "taskComment",
  492. key: "taskComment",
  493. render: (text) => {
  494. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  495. },
  496. },
  497. ],
  498. columnsA: [
  499. {
  500. title: "流程",
  501. dataIndex: "content",
  502. key: "content",
  503. align: "center",
  504. },
  505. {
  506. title: "操作人",
  507. dataIndex: "aName",
  508. key: "aName",
  509. align: "center",
  510. },
  511. {
  512. title: "时间",
  513. dataIndex: "createTimes",
  514. key: "createTimes",
  515. align: "center",
  516. },
  517. ],
  518. dataSourceX: [],
  519. dataSourceA: [],
  520. ContactsLists: [
  521. {
  522. title: "批次",
  523. dataIndex: "num",
  524. key: "num",
  525. },
  526. {
  527. title: "下证时间",
  528. dataIndex: "licenceTimes",
  529. key: "licenceTimes",
  530. render: (text, record) => {
  531. return (
  532. <div>
  533. <DatePicker
  534. style={{ marginTop: "5px" }}
  535. showTime
  536. format="YYYY-MM-DD"
  537. onOk={() => {}}
  538. value={
  539. record.licenceTimes ? moment(record.licenceTimes) : null
  540. }
  541. onChange={(data, dataString) => {
  542. record.licenceTimes = dataString;
  543. this.setState({ contactList: this.state.contactList });
  544. }}
  545. />
  546. </div>
  547. );
  548. },
  549. },
  550. {
  551. title: "下证数量",
  552. dataIndex: "alreadyNumber",
  553. key: "alreadyNumber",
  554. render: (text, record) => {
  555. return (
  556. <div>
  557. {
  558. <Input
  559. value={record.alreadyNumber}
  560. placeholder="请输入下证数量"
  561. key={record.id}
  562. required="required"
  563. onChange={(e) => {
  564. record.alreadyNumber = e.target.value;
  565. this.setState({ contactList: this.state.contactList });
  566. }}
  567. style={{ width: "120px" }}
  568. />
  569. }
  570. </div>
  571. );
  572. },
  573. },
  574. {
  575. title: "未下证数量",
  576. dataIndex: "notCount",
  577. key: "notCount",
  578. },
  579. {
  580. title: "操作",
  581. dataIndex: "dels",
  582. key: "dels",
  583. render: (text, record, index) => {
  584. return (
  585. <div>
  586. {
  587. <Popconfirm
  588. title="是否删除?"
  589. onConfirm={() => {
  590. this.confirmDelet(record);
  591. }}
  592. okText="删除"
  593. cancelText="不删除"
  594. >
  595. <Button
  596. style={{
  597. marginRight: "10px",
  598. color: "#ffffff",
  599. background: "#f00",
  600. border: "none",
  601. }}
  602. >
  603. 删除
  604. </Button>
  605. </Popconfirm>
  606. }
  607. {record.flag ? (
  608. ""
  609. ) : (
  610. <Button
  611. type="primary"
  612. onClick={(e) => {
  613. e.stopPropagation(), this.contactSave(record, index);
  614. }}
  615. >
  616. 保存
  617. </Button>
  618. )}
  619. </div>
  620. );
  621. },
  622. },
  623. ],
  624. // 专利
  625. ContactsListsNew: [
  626. {
  627. title: "供应商名称",
  628. dataIndex: "companyName",
  629. key: "companyName",
  630. render: (text, record, index) => {
  631. if (text) {
  632. return <span>{text}</span>;
  633. }
  634. },
  635. },
  636. {
  637. title: "单价(万元)",
  638. dataIndex: "unitPrice",
  639. key: "unitPrice",
  640. render: (text, record) => {
  641. if (text) {
  642. return <span>{text}</span>;
  643. }
  644. },
  645. },
  646. {
  647. title: "数量",
  648. dataIndex: "quantity",
  649. key: "quantity",
  650. render: (text, record) => {
  651. if (text) {
  652. return <span>{text}</span>;
  653. }
  654. },
  655. },
  656. {
  657. title: "总价",
  658. dataIndex: "totalAmount",
  659. key: "totalAmount",
  660. render: (text, record) => {
  661. if (text) {
  662. return <span>{text}</span>;
  663. }
  664. },
  665. },
  666. {
  667. title: "材料",
  668. dataIndex: "material",
  669. key: "material",
  670. render: (text, record) => {
  671. return getMaterialStatus(text);
  672. },
  673. },
  674. {
  675. title: "加急",
  676. dataIndex: "urgent",
  677. key: "urgent",
  678. render: (text, record) => {
  679. return getUrgentStatus(text);
  680. },
  681. },
  682. {
  683. title: "备注",
  684. dataIndex: "remarks",
  685. key: "remarks",
  686. },
  687. {
  688. title: "操作",
  689. dataIndex: "dels",
  690. key: "dels",
  691. render: (text, record, index) => {
  692. return (
  693. <div>
  694. <Popconfirm
  695. title="是否删除?"
  696. onConfirm={() => {
  697. this.confirmDeletNew(record);
  698. }}
  699. okText="删除"
  700. cancelText="不删除"
  701. >
  702. <Button
  703. onClick={(e) => {
  704. e.stopPropagation();
  705. }}
  706. style={{
  707. marginRight: "10px",
  708. color: "#ffffff",
  709. background: "#f00",
  710. border: "none",
  711. }}
  712. >
  713. 删除
  714. </Button>
  715. </Popconfirm>
  716. </div>
  717. );
  718. },
  719. },
  720. ],
  721. };
  722. },
  723. /* 分派 */
  724. evaluate(record, nub, flag) {
  725. this.setState(
  726. {
  727. nub: nub,
  728. assignData: record,
  729. flag,
  730. },
  731. () => {
  732. this.setState({
  733. assignVisible: true,
  734. });
  735. }
  736. );
  737. },
  738. componentWillMount() {
  739. this.departmentList();
  740. this.loadData();
  741. },
  742. componentDidMount() {
  743. this.setColor();
  744. },
  745. setColor() {
  746. $(".userName span").after(
  747. "(<span class='ruanzhu'>软著数</span>/<span class='xiazheng'>下证数</span>)"
  748. );
  749. },
  750. tableRowClick(record) {
  751. this.state.RowData = record;
  752. let str = record.taskName;
  753. let test = str.indexOf("会员");
  754. if (test == -1) {
  755. this.setState({
  756. isHuiyuan: false,
  757. });
  758. } else {
  759. this.setState({
  760. isHuiyuan: true,
  761. });
  762. }
  763. if (record.taskName.substring(0, 5) === "软件著作权") {
  764. this.setState({
  765. speVisible: true,
  766. id: record.id,
  767. splitStatus: record.splitStatus,
  768. splitSuper: record.splitSuper,
  769. splitId: record.splitId,
  770. dataArr: record,
  771. commodityQuantity: record.commodityQuantity,
  772. });
  773. } else {
  774. this.setState({
  775. visible: true,
  776. splitStatus: record.splitStatus,
  777. splitSuper: record.splitSuper,
  778. splitId: record.splitId,
  779. });
  780. }
  781. this.xiangqing(record.id, record.taskName);
  782. this.xiangqings(record.orderNo);
  783. this.xiangmu(record.orderNo);
  784. this.loaduserss(record);
  785. // 获取第三方信息表格
  786. this.thirdTable(record.id);
  787. },
  788. //点击修改项目详情
  789. tijiaoOk() {
  790. let attachmentUrls = [];
  791. if (this.state.attachmentUrl.length) {
  792. let picArr = [];
  793. this.state.attachmentUrl.map(function (item) {
  794. if (item.response && item.response.data && item.response.data.length) {
  795. picArr.push(item.response.data);
  796. }
  797. });
  798. attachmentUrls = picArr.join(",");
  799. }
  800. this.setState({
  801. loading: true,
  802. });
  803. $.ajax({
  804. method: "POST",
  805. dataType: "json",
  806. crossDomain: false,
  807. url: globalConfig.context + "/api/admin/orderProject/updateOrderTask",
  808. data: {
  809. id: this.state.id, //项目编号
  810. orderNo: this.state.orderNo, //订单编号
  811. projectStatus: this.state.projectStatus, //项目状态
  812. taskStatus: this.state.taskStatus, //项目状态
  813. taskComment: this.state.taskComment, //说明
  814. startDate: this.state.startDate, //启动日期
  815. endDate: this.state.endDate, //结束日期
  816. acceptDate: this.state.acceptDate, //受理日期
  817. reviewDate: this.state.reviewDate, //评审日期
  818. publicityDate: this.state.publicityDate, //公示日期
  819. licenceDate: this.state.licenceDate, //发证日期
  820. attachmentUrl: attachmentUrls.length ? attachmentUrls : "", //附件
  821. contacts: this.state.contacts, //联系人
  822. contactMobile: this.state.contactMobile, //联系人电话
  823. legalPerson: this.state.legalPerson, //法人
  824. legalPersonTel: this.state.legalPersonTel, //法人电话
  825. certificateNumber: this.state.certificateNumber, //证书编号
  826. status: this.state.status, //状态
  827. formRetrieve: this.state.formRetrieve, //满意度表格
  828. taskRefund: this.state.taskRefund, //退单
  829. refundContent: this.state.refundContent, //退单信息
  830. retrieveContent: this.state.retrieveContent, //回收信息
  831. locationProvince: this.state.ProvinceCity[0],
  832. locationCity: this.state.ProvinceCity[1],
  833. locationArea: this.state.ProvinceCity[2],
  834. postalAddress: this.state.postalAddress, //详细地址
  835. arrivalMoney: this.state.arrivalMoney, //是否到款
  836. setUpAmount: this.state.setUpAmount, //立项金额
  837. declareUser: this.state.declareUser, //账号
  838. declarePwd: this.state.declarePwd, //密码
  839. outsourceName: this.state.outsourceName, //外包公司
  840. outsourcePrice: this.state.outsourcePrice, //外包价格
  841. declarationBatch: this.state.declarationBatch,
  842. },
  843. }).done(
  844. function (data) {
  845. this.setState({
  846. loading: false,
  847. });
  848. if (!data.error.length) {
  849. message.success("保存成功!");
  850. this.visitCancel();
  851. } else {
  852. message.warning(data.error[0].message);
  853. }
  854. }.bind(this)
  855. );
  856. },
  857. //点击修改项目详情
  858. tianjiaOk() {
  859. if (this.state.attachmentUrl.length) {
  860. let picArr = [];
  861. this.state.attachmentUrl.map(function (item) {
  862. if (item.response && item.response.data && item.response.data.length) {
  863. picArr.push(item.response.data);
  864. }
  865. });
  866. }
  867. $.ajax({
  868. method: "POST",
  869. dataType: "json",
  870. crossDomain: false,
  871. url: globalConfig.context + "/api/admin/orderProject/addTaskHours",
  872. data: {
  873. taskId: this.state.taskId, //项目编号
  874. hours: this.state.hours, //工时
  875. remarks: this.state.remarks, //说明
  876. taskDate: this.state.taskDate, //日期
  877. taskComment: this.state.taskComment, //说明
  878. },
  879. }).done(
  880. function (data) {
  881. this.setState({
  882. loading: false,
  883. });
  884. if (!data.error.length) {
  885. message.success("保存成功!");
  886. this.noCancel();
  887. } else {
  888. message.warning(data.error[0].message);
  889. }
  890. }.bind(this)
  891. );
  892. },
  893. //订单详情
  894. xiangqing(id) {
  895. $.ajax({
  896. method: "get",
  897. dataType: "json",
  898. crossDomain: false,
  899. url: globalConfig.context + "/api/admin/orderProject/orderTaskDetail",
  900. data: {
  901. id: id,
  902. },
  903. success: function (data) {
  904. let thisdata = data.data;
  905. if (data.error.length || data.data.list == "") {
  906. if (data.error && data.error.length) {
  907. message.warning(data.error[0].message);
  908. }
  909. } else {
  910. this.setState({
  911. id: thisdata.id, //ID
  912. orderNo: thisdata.orderNo, //订单编号
  913. userName: thisdata.userName, //客户名称
  914. taskName: thisdata.taskName, //项目名称
  915. cname: thisdata.cname, //项目品类
  916. contractNo: thisdata.contractNo, //合同编号
  917. projectStatus: thisdata.projectStatus.toString(), //项目状态
  918. taskStatus: thisdata.taskStatus.toString(), //项目状态
  919. taskDate: thisdata.taskDate, //分配时间
  920. taskComment: thisdata.taskComment, //说明
  921. attachmentUrl: thisdata.attachmentUrl
  922. ? splitUrl(
  923. thisdata.attachmentUrl,
  924. ",",
  925. globalConfig.avatarHost + "/upload"
  926. )
  927. : [], //图片地址
  928. salesmanName: thisdata.salesmanName, //订单负责人
  929. startDate: thisdata.startDate, //启动日期
  930. endDate: thisdata.endDate, //结束日期
  931. acceptDate: thisdata.acceptDate, //受理日期
  932. reviewDate: thisdata.reviewDate, //评审日期
  933. publicityDate: thisdata.publicityDate, //公示日期
  934. licenceDate: thisdata.licenceDate, //发证日期
  935. contacts: thisdata.contacts, //联系人
  936. contactMobile: thisdata.contactMobile, //联系人电话
  937. legalPerson: thisdata.legalPerson, //法人
  938. legalPersonTel: thisdata.legalPersonTel, //法人电话
  939. certificateNumber: thisdata.certificateNumber, //证书编号
  940. status: thisdata.status, //状态
  941. formRetrieve: thisdata.formRetrieve, //满意度表格
  942. taskRefund: thisdata.taskRefund, //退单
  943. refundContent: thisdata.refundContent, //退单信息
  944. retrieveContent: thisdata.retrieveContent, //回收信息
  945. arrivalMoney: thisdata.arrivalMoney, //是否到款
  946. setUpAmount: thisdata.setUpAmount, //立项金额
  947. declareUser: thisdata.declareUser, //账号
  948. declarePwd: thisdata.declarePwd, //密码
  949. outsourceName: thisdata.outsourceName, //外包公司
  950. outsourcePrice: thisdata.outsourcePrice, //外包价格
  951. declarationBatch: thisdata.declarationBatch,
  952. });
  953. }
  954. }.bind(this),
  955. }).always(
  956. function () {
  957. this.setState({
  958. loading: false,
  959. });
  960. }.bind(this)
  961. );
  962. },
  963. //订单详情
  964. xiangqings(orderNos) {
  965. $.ajax({
  966. method: "get",
  967. dataType: "json",
  968. crossDomain: false,
  969. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  970. data: {
  971. orderNo: orderNos,
  972. },
  973. success: function (data) {
  974. let thisdata = data.data;
  975. let ProvinceCityArr = [];
  976. let ProvinceS = thisdata.locationProvince; //省
  977. let citys = thisdata.locationCity; //市
  978. let Areas = thisdata.locationArea; //区
  979. ProvinceCityArr.push(ProvinceS, citys, Areas);
  980. if (data.error.length || data.data.list == "") {
  981. if (data.error && data.error.length) {
  982. message.warning(data.error[0].message);
  983. }
  984. } else {
  985. this.setState({
  986. processStatus: thisdata.processStatus, //流程状态
  987. liquidationStatus: thisdata.liquidationStatus, //结算状态
  988. approval: thisdata.approval, //特批状态
  989. orderRemarks: thisdata.orderRemarks, //订单留言
  990. salesmanName: thisdata.salesmanName, //营销员名称
  991. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  992. financeName: thisdata.financeName, //财务名称
  993. financeMobile: thisdata.financeMobile, //财务电话
  994. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  995. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  996. nowFinance: thisdata.nowFinance, //财务名称
  997. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  998. depName: thisdata.depName, //订单部门
  999. ProvinceCity: ProvinceCityArr[0] === null ? [] : ProvinceCityArr,
  1000. postalAddress: thisdata.postalAddress, //详细地址
  1001. });
  1002. }
  1003. }.bind(this),
  1004. }).always(
  1005. function () {
  1006. this.setState({
  1007. loading: false,
  1008. });
  1009. }.bind(this)
  1010. );
  1011. },
  1012. //项目列表
  1013. xiangmu(orderNos) {
  1014. $.ajax({
  1015. method: "get",
  1016. dataType: "json",
  1017. crossDomain: false,
  1018. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  1019. data: {
  1020. orderNo: orderNos,
  1021. },
  1022. success: function (data) {
  1023. let theArr = [];
  1024. if (data.error.length || data.data.list == "") {
  1025. if (data.error && data.error.length) {
  1026. message.warning(data.error[0].message);
  1027. }
  1028. } else {
  1029. for (let i = 0; i < data.data.length; i++) {
  1030. let thisdata = data.data[i];
  1031. theArr.push({
  1032. key: i,
  1033. id: thisdata.id,
  1034. orderNo: thisdata.orderNo, //订单编号
  1035. commodityId: thisdata.commodityId, //项目ID
  1036. commodityName: thisdata.commodityName, //项目名称
  1037. cname: thisdata.cname, //项目类别
  1038. commodityPrice: thisdata.commodityPrice, //项目价格
  1039. commodityQuantity: thisdata.commodityQuantity, //项目数量
  1040. main: thisdata.main, //是否为主要项目
  1041. taskComment: thisdata.taskComment, //项目说明
  1042. contacts: thisdata.contacts, //联系人
  1043. contactsMobile: thisdata.contactsMobile, //联系人电话
  1044. taskStatus: thisdata.taskStatus, //是否分配
  1045. contractNo: thisdata.contractNo, //合同编号
  1046. certificateNumber: thisdata.certificateNumber,
  1047. splitStatus: thisdata.splitStatus,
  1048. officialCost: thisdata.officialCost,
  1049. costReduction: thisdata.costReduction,
  1050. type: thisdata.type,
  1051. cSort: thisdata.cSort,
  1052. });
  1053. }
  1054. }
  1055. this.setState({
  1056. dataSourceX: theArr,
  1057. type: theArr[0].type,
  1058. cSort: theArr[0].cSort,
  1059. });
  1060. }.bind(this),
  1061. }).always(
  1062. function () {
  1063. this.setState({
  1064. loading: false,
  1065. });
  1066. }.bind(this)
  1067. );
  1068. },
  1069. //导出
  1070. exportExec() {
  1071. let departmentName = "",
  1072. depart = this.state.departmentArr || [];
  1073. depart.map((item) => {
  1074. if (this.state.departmentId == item.id) {
  1075. departmentName = item.name;
  1076. return;
  1077. }
  1078. });
  1079. let data = {
  1080. departmentId: this.state.departmentId,
  1081. departmentName: departmentName,
  1082. salesName: this.state.orderRefundSearch, //订单负责人
  1083. startTime: this.state.releaseDate[0],
  1084. endTime: this.state.releaseDate[1],
  1085. grantStatus: this.state.grantStatus,
  1086. };
  1087. window.location.href =
  1088. globalConfig.context +
  1089. "/api/admin/orderProject/exportMyTaskList?" +
  1090. $.param(data);
  1091. },
  1092. //关闭详情
  1093. visitCancel() {
  1094. this.setState({
  1095. visible: false,
  1096. speVisible: false,
  1097. activeKey: "1",
  1098. });
  1099. this.reset();
  1100. },
  1101. visitOk() {
  1102. this.setState({
  1103. visible: false,
  1104. speVisible: false,
  1105. });
  1106. this.reset();
  1107. },
  1108. closeDesc(e, s) {
  1109. this.state.showDesc = e;
  1110. if (s) {
  1111. this.loadData(this.state.page);
  1112. }
  1113. },
  1114. closeAssign(e, s) {
  1115. this.state.roleName = "";
  1116. this.state.assignVisible = e;
  1117. if (s) {
  1118. this.loadData(this.state.page);
  1119. }
  1120. },
  1121. //添加工时
  1122. okCancel(record) {
  1123. this.setState({
  1124. lookVisible: true,
  1125. taskId: record.id,
  1126. });
  1127. },
  1128. //测试
  1129. getOrgCodeUrl(e) {
  1130. this.setState({ orgCodeUrl: e });
  1131. },
  1132. //查看下证信息
  1133. loaduserss(record) {
  1134. $.ajax({
  1135. method: "get",
  1136. dataType: "json",
  1137. crossDomain: false,
  1138. url: globalConfig.context + "/api/admin/orderProject/selectTaskProgress",
  1139. data: {
  1140. tid: record.id,
  1141. },
  1142. success: function (data) {
  1143. let theArr = [];
  1144. let thisData = [];
  1145. if (!thisData) {
  1146. if (data.error && data.error.length) {
  1147. message.warning(data.error[0].message);
  1148. }
  1149. thisData = {};
  1150. } else {
  1151. for (let i = 0; i < data.data.length; i++) {
  1152. thisData = data.data[i];
  1153. theArr.push({
  1154. num: i + 1,
  1155. key: i,
  1156. id: thisData.id, //编号
  1157. alreadyNumber: thisData.alreadyNumber, //下证数
  1158. licenceTimes: thisData.licenceTimes, //下证时间
  1159. notCount: thisData.notCount, //未下证数
  1160. flag: true,
  1161. });
  1162. }
  1163. this.setState({
  1164. contactList: theArr,
  1165. tid: record.id,
  1166. });
  1167. }
  1168. }.bind(this),
  1169. }).always(
  1170. function () {
  1171. this.setState({
  1172. loading: false,
  1173. });
  1174. }.bind(this)
  1175. );
  1176. },
  1177. // 拆分详细
  1178. showRes(record) {
  1179. this.setState({
  1180. resVisible: true,
  1181. resRecord: record,
  1182. });
  1183. },
  1184. resCancel() {
  1185. this.setState({
  1186. resVisible: false,
  1187. });
  1188. },
  1189. //下证信息保存
  1190. contactSave(record) {
  1191. if (!record.licenceTimes) {
  1192. message.warning("下证日期不能为空");
  1193. return;
  1194. }
  1195. if (!record.alreadyNumber) {
  1196. message.warning("下证数量不能为空");
  1197. return;
  1198. }
  1199. this.setState({
  1200. loading: true,
  1201. });
  1202. $.ajax({
  1203. url: globalConfig.context + "/api/admin/orderProject/createTaskProgress",
  1204. method: "post",
  1205. data: {
  1206. taskId: this.state.id,
  1207. licenceTimes: record.licenceTimes,
  1208. alreadyNumber: record.alreadyNumber,
  1209. },
  1210. }).done(
  1211. function (data) {
  1212. this.setState({
  1213. loading: false,
  1214. });
  1215. if (!data.error.length) {
  1216. message.success("保存成功!");
  1217. record.flag = true;
  1218. this.loaduserss(this.state.dataArr);
  1219. } else {
  1220. message.warning(data.error[0].message);
  1221. }
  1222. }.bind(this)
  1223. );
  1224. },
  1225. //下证信息删除
  1226. contactDele(record) {
  1227. this.setState({
  1228. loading: true,
  1229. });
  1230. $.ajax({
  1231. url: globalConfig.context + "/api/admin/orderProject/delectTaskProgress",
  1232. method: "post",
  1233. data: {
  1234. id: record.id,
  1235. },
  1236. }).done(
  1237. function (data) {
  1238. this.setState({
  1239. loading: false,
  1240. });
  1241. if (!data.error.length) {
  1242. this.loaduserss(this.state.dataArr);
  1243. } else {
  1244. message.warning(data.error[0].message);
  1245. }
  1246. }.bind(this)
  1247. );
  1248. },
  1249. //点击新增下证信息
  1250. addcontact() {
  1251. this.state.contactList.push({
  1252. num: this.state.contactList.length + 1,
  1253. key: this.state.contactList.length,
  1254. licenceTimes: "",
  1255. alreadyNumber: "",
  1256. notCount: "",
  1257. dels: "",
  1258. flag: false,
  1259. aflag: false,
  1260. });
  1261. this.setState({
  1262. contactList: this.state.contactList,
  1263. });
  1264. },
  1265. //删除下证信息
  1266. confirmDelet(record) {
  1267. this.state.contactList.splice(record.key, 1);
  1268. this.setState({
  1269. contactList: this.state.contactList,
  1270. });
  1271. if (record.id) {
  1272. this.contactDele(record);
  1273. }
  1274. },
  1275. caozuorizhi() {
  1276. this.setState({
  1277. visibleA: true,
  1278. });
  1279. $.ajax({
  1280. method: "get",
  1281. dataType: "json",
  1282. crossDomain: false,
  1283. url: globalConfig.context + "/api/admin/orderProject/TaskLogList",
  1284. data: {
  1285. id: this.state.id,
  1286. },
  1287. success: function (data) {
  1288. let theArr = [];
  1289. if (data.error.length || data.data.list == "") {
  1290. if (data.error && data.error.length) {
  1291. message.warning(data.error[0].message);
  1292. }
  1293. } else {
  1294. for (let i = 0; i < data.data.length; i++) {
  1295. let thisdata = data.data[i];
  1296. theArr.push({
  1297. key: i,
  1298. id: thisdata.id, //日志ID
  1299. content: thisdata.content, //流程
  1300. taskId: thisdata.taskId, //项目ID
  1301. aName: thisdata.aName, //负责人
  1302. createTimes: thisdata.createTimes, //时间
  1303. });
  1304. }
  1305. }
  1306. this.setState({
  1307. dataSourceA: theArr,
  1308. });
  1309. }.bind(this),
  1310. }).always(
  1311. function () {
  1312. this.setState({
  1313. loading: false,
  1314. });
  1315. }.bind(this)
  1316. );
  1317. },
  1318. //关闭操作工时
  1319. visitCancelA() {
  1320. this.setState({
  1321. visibleA: false,
  1322. });
  1323. },
  1324. nextCancel() {
  1325. this.setState({
  1326. addnextVisible: false,
  1327. displayFees: "none",
  1328. officialCost: "", //是否有官费
  1329. costReduction: "", //是否有费减
  1330. });
  1331. },
  1332. //点击打卡项目详情
  1333. tableRowClickX(record) {
  1334. if (record.type == "1") {
  1335. this.setState({
  1336. displayFees: "block",
  1337. costReduction: record.costReduction,
  1338. officialCost: record.officialCost,
  1339. });
  1340. }
  1341. this.setState({
  1342. jid: record.id, //项目ID
  1343. kid: record.commodityId, //商品ID
  1344. commodityName: record.commodityName, //金额
  1345. commodityPrice: record.commodityPrice, //金额
  1346. commodityQuantity: record.commodityQuantity, //数量
  1347. taskComment: record.taskComment, //备注
  1348. main: record.main.toString(), //是否为主要
  1349. addnextVisible: true,
  1350. addState: 0,
  1351. });
  1352. },
  1353. //关闭添加工时
  1354. noCancel() {
  1355. this.setState({
  1356. lookVisible: false,
  1357. });
  1358. this.reset();
  1359. },
  1360. search() {
  1361. this.loadData();
  1362. },
  1363. reset(flag) {
  1364. if (flag) {
  1365. this.state.nameSearch = "";
  1366. this.state.orderNoSearch = "";
  1367. this.state.contractNoSearch = undefined;
  1368. this.state.taskNoSearch = "";
  1369. this.state.departmenttSearch = undefined;
  1370. this.state.projectStatusSearch = undefined; //项目状态
  1371. this.state.approvalSearch = undefined;
  1372. this.state.outsourceStatusSearch = [];
  1373. }
  1374. this.state.id = ""; //项目编号
  1375. this.state.orderNo = ""; //订单编号
  1376. this.state.projectStatus = undefined; //项目状态
  1377. this.state.taskStatuSearch = undefined; //项目状态
  1378. this.state.taskComment = ""; //说明
  1379. this.state.startDate = ""; //启动日期
  1380. this.state.endDate = ""; //结束日期
  1381. this.state.acceptDate = ""; //受理日期
  1382. this.state.reviewDate = ""; //评审日期
  1383. this.state.publicityDate = ""; //公示日期
  1384. this.state.licenceDate = ""; //发证日期
  1385. attachmentUrl: []; //附件
  1386. this.state.contacts = ""; //联系人
  1387. this.state.contactMobile = ""; //联系人电话
  1388. this.state.legalPerson = ""; //法人
  1389. this.state.legalPersonTel = ""; //法人电话
  1390. this.state.taskId = ""; //项目编号
  1391. this.state.hours = ""; //工时
  1392. this.state.remarks = ""; //说明
  1393. this.state.taskDate = ""; //日期
  1394. this.state.taskComment = ""; //说明
  1395. this.state.releaseDate = [];
  1396. this.state.outsourceName = "";
  1397. this.state.outsourcePrice = undefined;
  1398. this.state.distribution = undefined;
  1399. this.loadData(this.state.page);
  1400. this.state.companyName = undefined;
  1401. this.state.unitPrice = undefined;
  1402. this.state.unitNumber = undefined;
  1403. this.state.amount = undefined;
  1404. this.state.outsourceRemarks = undefined;
  1405. this.state.pictureUrl = [];
  1406. },
  1407. searchSwitch() {
  1408. this.setState({
  1409. searchMore: !this.state.searchMore,
  1410. });
  1411. },
  1412. //部门
  1413. departmentList() {
  1414. this.setState({
  1415. loading: true,
  1416. });
  1417. $.ajax({
  1418. method: "get",
  1419. dataType: "json",
  1420. crossDomain: false,
  1421. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  1422. data: {},
  1423. success: function (data) {
  1424. let thedata = data.data;
  1425. let theArr = [];
  1426. if (!thedata) {
  1427. if (data.error && data.error.length) {
  1428. message.warning(data.error[0].message);
  1429. }
  1430. thedata = {};
  1431. } else {
  1432. thedata.map(function (item, index) {
  1433. theArr.push({
  1434. key: index,
  1435. name: item.name,
  1436. id: item.id,
  1437. });
  1438. });
  1439. }
  1440. this.setState({
  1441. departmentArr: theArr,
  1442. });
  1443. }.bind(this),
  1444. }).always(
  1445. function () {
  1446. this.setState({
  1447. loading: false,
  1448. });
  1449. }.bind(this)
  1450. );
  1451. },
  1452. changeList(arr) {
  1453. const newArr = [];
  1454. this.state.columns.forEach((item) => {
  1455. arr.forEach((val) => {
  1456. if (val === item.title) {
  1457. newArr.push(item);
  1458. }
  1459. });
  1460. });
  1461. this.setState({
  1462. changeList: newArr,
  1463. });
  1464. },
  1465. timeClose() {
  1466. this.setState({
  1467. timeVisible: false,
  1468. });
  1469. },
  1470. timeDetail(record) {
  1471. console.log(record);
  1472. this.setState({
  1473. loading: true,
  1474. recordHour: record.hours,
  1475. });
  1476. $.ajax({
  1477. method: "get",
  1478. dataType: "json",
  1479. crossDomain: false,
  1480. url:
  1481. globalConfig.context + "/api/admin/orderProject/taskHoursDetailsList",
  1482. data: {
  1483. taskId: record.id,
  1484. },
  1485. success: function (data) {
  1486. if (data.error && data.error.length) {
  1487. message.warning(data.error[0].message);
  1488. } else {
  1489. this.setState({
  1490. dataSourceTime: data.data,
  1491. });
  1492. console.log(this.state.dataSourceTime);
  1493. }
  1494. }.bind(this),
  1495. }).always(
  1496. function () {
  1497. this.setState({
  1498. loading: false,
  1499. });
  1500. }.bind(this)
  1501. );
  1502. },
  1503. showDeleteConfirm(num, fn) {
  1504. let text = getProjectStatus(num);
  1505. confirm({
  1506. title: <p style={{ fontSize: 16, fontWeight: 900 }}>注意</p>,
  1507. content: (
  1508. <p style={{ fontWeight: 900, color: "red" }}>
  1509. 当前的项目状态为{text},保存后将触发对应的催款节点!!!您确定保存?
  1510. </p>
  1511. ),
  1512. okText: "确定",
  1513. okType: "danger",
  1514. cancelText: "取消",
  1515. onOk() {
  1516. fn();
  1517. },
  1518. onCancel() {},
  1519. });
  1520. },
  1521. // 项目发起外包
  1522. sureOut() {
  1523. if (!this.state.startType) {
  1524. message.warning("请选择类型");
  1525. return;
  1526. }
  1527. if (this.state.type == 1) {
  1528. //专利
  1529. if (!this.state.patentType) {
  1530. message.warning("请选择专利类型");
  1531. return;
  1532. }
  1533. if (!this.state.patentNameType) {
  1534. message.warning("请选择专利类型名称");
  1535. return;
  1536. }
  1537. if (this.state.patentNameType == 3) {
  1538. if (!this.state.patentName) {
  1539. message.warning("请填写专利名称");
  1540. return;
  1541. }
  1542. }
  1543. }
  1544. if (!this.state.outsourceRemarks) {
  1545. message.warning("备注不能为空");
  1546. return;
  1547. }
  1548. if (this.state.pictureUrl.length === 0) {
  1549. message.warning("合同扫描件不能为空");
  1550. return;
  1551. }
  1552. this.setState({
  1553. loading: true,
  1554. });
  1555. $.ajax({
  1556. method: "POST",
  1557. dataType: "json",
  1558. crossDomain: false,
  1559. url:
  1560. globalConfig.context + "/api/admin/outsourceOrg/outsourceProjectAudit",
  1561. data: {
  1562. tid: this.state.id,
  1563. orderNo: this.state.orderNo,
  1564. type: 1,
  1565. companyName: this.state.companyName,
  1566. amount: this.state.amount,
  1567. pictureUrl: this.getUrl(this.state.pictureUrl).length
  1568. ? this.getUrl(this.state.pictureUrl)
  1569. : "",
  1570. outsourceRemarks: this.state.outsourceRemarks,
  1571. unitNumber: this.state.unitNumber,
  1572. unitPrice: this.state.unitPrice,
  1573. id: this.state.refundStatus == 2 ? this.state.mid : undefined,
  1574. },
  1575. }).done(
  1576. function (data) {
  1577. this.setState({
  1578. loading: false,
  1579. });
  1580. if (!data.error.length) {
  1581. message.success("提交成功!");
  1582. this.visitCancel();
  1583. } else {
  1584. message.warning(data.error[0].message);
  1585. }
  1586. }.bind(this)
  1587. );
  1588. },
  1589. callback(e) {
  1590. this.setState({
  1591. activeKey: e,
  1592. });
  1593. if (e == 3) {
  1594. this.orderDetailData(this.state.orderNo);
  1595. this.xiangmu(this.state.orderNo);
  1596. this.jiedian(this.state.orderNo);
  1597. this.jiedianNew(this.state.orderNo);
  1598. }
  1599. },
  1600. getOrgCodeUrlWai(e) {
  1601. this.setState({ pictureUrl: e });
  1602. },
  1603. getUrl(url) {
  1604. let theorgCodeUrl = [];
  1605. if (url.length) {
  1606. let picArr = [];
  1607. url.map(function (item) {
  1608. if (item.response && item.response.data && item.response.data.length) {
  1609. picArr.push(item.response.data);
  1610. }
  1611. });
  1612. theorgCodeUrl = picArr.join(",");
  1613. }
  1614. return theorgCodeUrl;
  1615. },
  1616. waiDetail() {
  1617. let url = window.location.href.substring(7);
  1618. this.setState({
  1619. loading: true,
  1620. });
  1621. $.ajax({
  1622. method: "get",
  1623. dataType: "json",
  1624. crossDomain: false,
  1625. url:
  1626. globalConfig.context + "/api/admin/outsourceOrg/orderOutsourceDtails",
  1627. data: {
  1628. tid: this.state.id,
  1629. orderNo: this.state.orderNo,
  1630. },
  1631. }).done(
  1632. function (data) {
  1633. this.setState({
  1634. loading: false,
  1635. });
  1636. if (!data.error.length && data.data) {
  1637. this.setState({
  1638. startType: data.data.startType, //类型
  1639. patentType: data.data.patentType, //专利类型
  1640. patentNameType: data.data.patentNameType, //专利名称类型
  1641. patentName: data.data.patentName, //专利名称
  1642. outsourceRemarks: data.data.outsourceRemarks,
  1643. remarks: data.data.remarks,
  1644. companyName: data.data.companyName,
  1645. amount: data.data.amount,
  1646. mid: data.data.id,
  1647. unitPrice: data.data.unitPrice,
  1648. refundStatus: data.data.refundStatus,
  1649. unitNumber: data.data.unitNumber,
  1650. pictureUrl: data.data.pictureUrl
  1651. ? splitUrl(
  1652. data.data.pictureUrl,
  1653. ",",
  1654. globalConfig.avatarHost + "/upload",
  1655. url
  1656. )
  1657. : [], //图片地址
  1658. createTimes: data.data.createTimes,
  1659. auditTimes: data.data.auditTimes,
  1660. });
  1661. } else if (data.error && data.error.length) {
  1662. message.warning(data.error[0].message);
  1663. } else if (!data.data) {
  1664. this.setState({
  1665. refundStatus: undefined,
  1666. });
  1667. }
  1668. }.bind(this)
  1669. );
  1670. },
  1671. rizhi() {
  1672. this.setState({
  1673. loading: true,
  1674. });
  1675. $.ajax({
  1676. method: "get",
  1677. dataType: "json",
  1678. crossDomain: false,
  1679. url: "/api/admin/newOrder/selectOrderLog",
  1680. data: {
  1681. orderNo: this.state.orderNo,
  1682. },
  1683. success: function (data) {
  1684. let theArr = [];
  1685. let thisData = data.data;
  1686. if (!thisData.length) {
  1687. if (data.error && data.error.length) {
  1688. message.warning(data.error[0].message);
  1689. }
  1690. thisData = {};
  1691. } else {
  1692. for (let i = 0; i < data.data.length; i++) {
  1693. let thisdata = data.data[i];
  1694. theArr.push({
  1695. processName: thisdata.processName,
  1696. adminName: thisdata.adminName,
  1697. createDate: thisdata.createDate,
  1698. remarks: thisdata.remarks,
  1699. });
  1700. }
  1701. }
  1702. this.setState({
  1703. dataSourceY: theArr,
  1704. });
  1705. }.bind(this),
  1706. }).always(
  1707. function () {
  1708. this.setState({
  1709. loading: false,
  1710. });
  1711. }.bind(this)
  1712. );
  1713. },
  1714. closeOrderLog() {
  1715. this.setState({
  1716. avisible: false,
  1717. });
  1718. },
  1719. getOrderLog() {
  1720. this.setState({
  1721. avisible: true,
  1722. });
  1723. this.rizhi();
  1724. },
  1725. orderChange(key) {
  1726. this.setState({
  1727. activeKey: key,
  1728. });
  1729. if (key == 3) {
  1730. this.orderDetailData(this.state.orderNo);
  1731. this.xiangmu(this.state.orderNo);
  1732. this.jiedian(this.state.orderNo);
  1733. this.jiedianNew(this.state.orderNo);
  1734. }
  1735. if (key == 2) {
  1736. this.waiDetail();
  1737. }
  1738. },
  1739. //节点列表
  1740. jiedian(orderNos) {
  1741. $.ajax({
  1742. method: "get",
  1743. dataType: "json",
  1744. crossDomain: false,
  1745. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  1746. data: {
  1747. orderNo: orderNos,
  1748. },
  1749. success: function (data) {
  1750. let theArr = [];
  1751. let thisData = [];
  1752. if (data.error.length || data.data.list == "") {
  1753. if (data.error && data.error.length) {
  1754. message.warning(data.error[0].message);
  1755. }
  1756. } else {
  1757. for (let i = 0; i < data.data.length; i++) {
  1758. thisData = data.data[i];
  1759. theArr.push({
  1760. key: i,
  1761. dunSubject: thisData.dunSubject
  1762. ? thisData.dunSubject.toString()
  1763. : "", //催款科目
  1764. id: thisData.id, //节点Id
  1765. money: thisData.money, //催款金额
  1766. dunStatus: thisData.dunStatus, //催款状态
  1767. });
  1768. }
  1769. this.setState({
  1770. jiedian: theArr,
  1771. });
  1772. }
  1773. }.bind(this),
  1774. });
  1775. },
  1776. jiedianNew(orderNos) {
  1777. $.ajax({
  1778. method: "get",
  1779. dataType: "json",
  1780. crossDomain: false,
  1781. url:
  1782. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  1783. data: {
  1784. orderNo: orderNos,
  1785. },
  1786. success: function (data) {
  1787. if (data.error && data.error.length) {
  1788. message.warning(data.error[0].message);
  1789. } else {
  1790. let theArr = [];
  1791. let thisData = [];
  1792. let arr = data.data || [];
  1793. let totalCui = 0;
  1794. for (let i = 0; i < arr.length; i++) {
  1795. thisData = arr[i];
  1796. totalCui += +thisData.money;
  1797. theArr.push({
  1798. key: i,
  1799. dunSubject: thisData.dunSubject
  1800. ? thisData.dunSubject.toString()
  1801. : "", //催款科目
  1802. id: thisData.id, //节点Id
  1803. money: thisData.money, //催款金额
  1804. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  1805. commodityName: thisData.commodityName,
  1806. projectType: thisData.projectType,
  1807. dunTypeName: thisData.dunTypeName,
  1808. status: thisData.status,
  1809. waitDay: thisData.waitDay,
  1810. effectiveCount: thisData.effectiveCount,
  1811. startDate: thisData.startDate,
  1812. dunType: thisData.dunType,
  1813. appropriationRatio: thisData.appropriationRatio,
  1814. customizeName: thisData.customizeName,
  1815. customizeTimes: thisData.customizeTimes,
  1816. });
  1817. }
  1818. if (!totalCui) {
  1819. totalCui = 0;
  1820. }
  1821. totalCui = (Math.round(totalCui * 10000) / 10000).toFixed(4);
  1822. this.setState({
  1823. jiedianNew: theArr,
  1824. totalCui,
  1825. });
  1826. }
  1827. }.bind(this),
  1828. }).always(
  1829. function () {
  1830. this.setState({
  1831. loading: false,
  1832. });
  1833. }.bind(this)
  1834. );
  1835. },
  1836. orderDetailData(orderNos) {
  1837. this.setState({
  1838. loading: true,
  1839. });
  1840. $.ajax({
  1841. method: "get",
  1842. dataType: "json",
  1843. crossDomain: false,
  1844. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  1845. data: {
  1846. orderNo: orderNos,
  1847. },
  1848. success: function (data) {
  1849. if (data.error.length || data.data.list == "") {
  1850. if (data.error && data.error.length) {
  1851. message.warning(data.error[0].message);
  1852. this.setState({
  1853. loading: false,
  1854. });
  1855. }
  1856. } else {
  1857. let thisdata = data.data;
  1858. this.setState({
  1859. loading: false,
  1860. userName: thisdata.userName,
  1861. primaryOrderNo: thisdata.primaryOrder,
  1862. additionalOrder: thisdata.additionalOrder,
  1863. contractNo: thisdata.contractNo,
  1864. orderData: thisdata,
  1865. isAddition: thisdata.additionalOrder ? true : false,
  1866. contractPictureUrl: thisdata.contractPictureUrl
  1867. ? splitUrl(
  1868. thisdata.contractPictureUrl,
  1869. ",",
  1870. globalConfig.avatarHost + "/upload"
  1871. )
  1872. : [],
  1873. });
  1874. }
  1875. }.bind(this),
  1876. });
  1877. },
  1878. //点击新增供应商
  1879. addcontactNew() {
  1880. this.state.contactListNew.push({
  1881. key: this.state.contactListNew.length,
  1882. money: "",
  1883. dunSubject: undefined,
  1884. orderNo: this.state.orderNo,
  1885. dunTarget: this.state.kehuId,
  1886. });
  1887. this.setState({
  1888. contactListNew: this.state.contactListNew,
  1889. cuiFlag: true,
  1890. });
  1891. },
  1892. //查看第三方信息表格
  1893. thirdTable(id) {
  1894. this.setState({
  1895. loadData: true,
  1896. });
  1897. $.ajax({
  1898. method: "get",
  1899. dataType: "json",
  1900. crossDomain: false,
  1901. url: globalConfig.context + "/api/admin/company/selectCompany",
  1902. data: {
  1903. tid: id,
  1904. },
  1905. success: function (data) {
  1906. if (data.error && data.error.length) {
  1907. message.warning(data.error[0].message);
  1908. } else {
  1909. let theArr = [];
  1910. let thisData = [];
  1911. let arr = data.data || [];
  1912. let allTotalAmount = 0;
  1913. for (let i = 0; i < arr.length; i++) {
  1914. thisData = arr[i];
  1915. allTotalAmount += +thisData.totalAmount;
  1916. theArr.push({
  1917. key: i,
  1918. id: thisData.id, //节点Id
  1919. tid: thisData.tid,
  1920. companyName: thisData.companyName, //供应商名称
  1921. unitPrice: thisData.unitPrice, //单价
  1922. quantity: thisData.quantity, //数量
  1923. totalAmount: thisData.totalAmount, //总价
  1924. material: thisData.material, //材料 0无 1有
  1925. urgent: thisData.urgent, // 0无加急(系统默认)1加急3天 2加急4天 3加急5-10天 4加急11-15天 5加急16-20天 6加急21-25天 7加急26-30天
  1926. audit: thisData.audit, //0无审计 1年审 2专审
  1927. assets: thisData.assets, //资产
  1928. income: thisData.income, //收入
  1929. remarks: thisData.remarks, //备注
  1930. cid: thisData.cid, //机构id
  1931. });
  1932. }
  1933. if (!allTotalAmount) {
  1934. allTotalAmount = 0;
  1935. }
  1936. console.log(theArr);
  1937. this.setState({
  1938. tid: id,
  1939. thirdInfoList: theArr,
  1940. allTotalAmount: allTotalAmount,
  1941. });
  1942. }
  1943. }.bind(this),
  1944. }).always(
  1945. function () {
  1946. this.setState({
  1947. loading: false,
  1948. });
  1949. }.bind(this)
  1950. );
  1951. },
  1952. // 新增第三方供应商信息
  1953. addThirdList() {
  1954. this.setState({
  1955. ThirdListVisible: true,
  1956. });
  1957. },
  1958. // 新增支付节点
  1959. addPayNode() {
  1960. console.log('dianji')
  1961. this.setState({
  1962. PayNodeVisible: true,
  1963. });
  1964. },
  1965. // 自动计算总金额
  1966. calculatedAmount() {
  1967. let currentTotalPrice;
  1968. currentTotalPrice = this.state.thirdUnitPrice * this.state.thirdQuantity;
  1969. currentTotalPrice = currentTotalPrice.toFixed(4);
  1970. this.setState({
  1971. currentTotalPrice: currentTotalPrice,
  1972. });
  1973. },
  1974. //服务值改变时请求供应商名称
  1975. httpChange(e) {
  1976. if (e.length >= 1) {
  1977. this.supervisor(e);
  1978. }
  1979. this.setState({
  1980. thirdCompanyName: e,
  1981. });
  1982. },
  1983. //加载(自动补全)
  1984. supervisor(e) {
  1985. $.ajax({
  1986. method: "get",
  1987. dataType: "json",
  1988. crossDomain: false,
  1989. url: globalConfig.context + "/api/admin/company/selectVague",
  1990. data: { name: e },
  1991. success: function (data) {
  1992. let thedata = data.data;
  1993. if (!thedata) {
  1994. if (data.error && data.error.length) {
  1995. message.warning(data.error[0].message);
  1996. }
  1997. thedata = {};
  1998. }
  1999. this.setState({
  2000. customerArr: thedata,
  2001. });
  2002. }.bind(this),
  2003. }).always(
  2004. function () {
  2005. this.setState({
  2006. loading: false,
  2007. });
  2008. }.bind(this)
  2009. );
  2010. },
  2011. // 保存供应商信息
  2012. handleCancelq() {
  2013. let api;
  2014. if (this.state.ThirdId) {
  2015. //修改
  2016. api = "/api/admin/company/updateCompany";
  2017. } else {
  2018. //新增
  2019. api = "/api/admin/company/addCompany";
  2020. }
  2021. this.setState({
  2022. loading: true,
  2023. });
  2024. $.ajax({
  2025. url: globalConfig.context + api,
  2026. method: "post",
  2027. dataType: "json",
  2028. crossDomain: false,
  2029. data: {
  2030. id: this.state.ThirdId, //id
  2031. tid: this.state.tid, //订单编号
  2032. companyName: this.state.thirdCompanyName, //第三方名称
  2033. unitPrice: this.state.thirdUnitPrice, //单价
  2034. quantity: this.state.thirdQuantity, //数量
  2035. totalAmount: this.state.currentTotalPrice, //总价
  2036. material: this.state.thirdMaterial, //材料
  2037. urgent: this.state.thirdUrgent, //加急
  2038. remarks: this.state.thirdRemarks,
  2039. },
  2040. }).done(
  2041. function (data) {
  2042. this.setState({
  2043. loading: false,
  2044. });
  2045. if (!data.error.length) {
  2046. message.success("保存成功!");
  2047. this.setState({
  2048. ThirdId: "",
  2049. ThirdListVisible: false,
  2050. thirdCompanyName: "", //第三方名称
  2051. thirdUnitPrice: "", //单价
  2052. thirdQuantity: "", //数量
  2053. currentTotalPrice: "", //总价
  2054. thirdRemarks: "",
  2055. });
  2056. // this.visitCancel();
  2057. this.thirdTable(this.state.tid);
  2058. } else {
  2059. message.warning(data.error[0].message);
  2060. }
  2061. }.bind(this)
  2062. );
  2063. },
  2064. // 取消
  2065. handleCancelclose() {
  2066. this.setState({
  2067. PayNodeVisible: false,
  2068. ThirdListVisible: false,
  2069. thirdCompanyName: "", //第三方名称
  2070. thirdUnitPrice: "", //单价
  2071. thirdQuantity: 1, //数量
  2072. currentTotalPrice: "", //总价
  2073. thirdRemarks: "",
  2074. ThirdId: "",
  2075. });
  2076. },
  2077. // 删除供应商信息
  2078. confirmDeletNew(index) {
  2079. this.setState({
  2080. loading: true,
  2081. ThirdListVisible: false,
  2082. });
  2083. $.ajax({
  2084. url: globalConfig.context + "/api/admin/company/deleteCompany",
  2085. method: "post",
  2086. data: {
  2087. id: index.id,
  2088. },
  2089. }).done(
  2090. function (data) {
  2091. this.setState({
  2092. loading: false,
  2093. });
  2094. if (!data.error.length) {
  2095. message.success("删除成功!");
  2096. this.thirdTable(this.state.tid);
  2097. } else {
  2098. message.warning(data.error[0].message);
  2099. }
  2100. }.bind(this)
  2101. );
  2102. },
  2103. //点击供应商详情
  2104. tableRowClickOne(record) {
  2105. this.setState({
  2106. ThirdListVisible: true,
  2107. ThirdId: record.id, //供应商id
  2108. thirdCompanyName: record.companyName, //第三方名称
  2109. thirdUnitPrice: record.unitPrice, //单价
  2110. thirdQuantity: record.quantity, //数量
  2111. currentTotalPrice: record.totalAmount, //总价
  2112. thirdMaterial: record.material, //有无材料
  2113. thirdUrgent: record.urgent, //加急情况
  2114. thirdRemarks: record.remarks,
  2115. });
  2116. },
  2117. render() {
  2118. const dataSources = this.state.customerArr || [];
  2119. console.log(dataSources);
  2120. const options = dataSources.map((group) => (
  2121. <Select.Option key={group.id} value={group.companyName}>
  2122. {group.companyName}
  2123. </Select.Option>
  2124. ));
  2125. const formItemLayout = {
  2126. labelCol: { span: 8 },
  2127. wrapperCol: { span: 14 },
  2128. };
  2129. let departmentArr = this.state.departmentArr || [];
  2130. return (
  2131. <div className="user-content">
  2132. {this.state.resVisible ? (
  2133. <ResolutionDetail
  2134. cancel={this.resCancel}
  2135. detail={this.state.resRecord}
  2136. visible={this.state.resVisible}
  2137. id={this.state.resRecord.orderNo}
  2138. />
  2139. ) : (
  2140. ""
  2141. )}
  2142. <ShowModalDiv ShowModal={this.state.showModal} />
  2143. <div className="content-title" style={{ marginBottom: 10 }}>
  2144. <span style={{ fontWeight: 900, fontSize: 16 }}>项目任务</span>
  2145. </div>
  2146. <Tabs defaultActiveKey="2" className="test" bordered>
  2147. <TabPane tab="更改表格显示数据" key="1">
  2148. <div style={{ marginLeft: 10 }}>
  2149. <ChooseList
  2150. columns={this.state.columns}
  2151. changeFn={this.changeList}
  2152. changeList={this.state.changeList}
  2153. top={55}
  2154. margin={11}
  2155. />
  2156. </div>
  2157. </TabPane>
  2158. <TabPane tab="搜索" key="2">
  2159. <div className="user-search" style={{ marginLeft: 10 }}>
  2160. <Input
  2161. placeholder="客户名称"
  2162. value={this.state.nameSearch}
  2163. onChange={(e) => {
  2164. this.setState({ nameSearch: e.target.value });
  2165. }}
  2166. />
  2167. <Input
  2168. placeholder="订单编号"
  2169. value={this.state.orderNoSearch}
  2170. onChange={(e) => {
  2171. this.setState({ orderNoSearch: e.target.value });
  2172. }}
  2173. />
  2174. <Input
  2175. placeholder="合同编号"
  2176. value={this.state.contractNoSearch}
  2177. onChange={(e) => {
  2178. this.setState({ contractNoSearch: e.target.value });
  2179. }}
  2180. />
  2181. <Input
  2182. placeholder="项目编号"
  2183. value={this.state.taskNoSearch}
  2184. onChange={(e) => {
  2185. this.setState({ taskNoSearch: e.target.value });
  2186. }}
  2187. />
  2188. <Select
  2189. placeholder="选择部门"
  2190. style={{ width: 150, marginRight: "10px" }}
  2191. value={this.state.departmenttSearch}
  2192. onChange={(e) => {
  2193. this.setState({ departmenttSearch: e });
  2194. }}
  2195. >
  2196. {departmentArr.map(function (item) {
  2197. return (
  2198. <Select.Option key={item.id}>{item.name}</Select.Option>
  2199. );
  2200. })}
  2201. </Select>
  2202. <Select
  2203. placeholder="项目状态"
  2204. style={{ width: 150, marginRight: "10px" }}
  2205. value={this.state.projectStatusSearch}
  2206. onChange={(e) => {
  2207. this.setState({ projectStatusSearch: e });
  2208. console.log(this.state.projectStatusSearch);
  2209. }}
  2210. >
  2211. {projectStatus.map(function (item) {
  2212. return (
  2213. <Select.Option key={item.value}>{item.key}</Select.Option>
  2214. );
  2215. })}
  2216. </Select>
  2217. <Select
  2218. placeholder="特批状态"
  2219. style={{ width: 150, marginRight: "10px" }}
  2220. value={this.state.approvalSearch}
  2221. onChange={(e) => {
  2222. this.setState({ approvalSearch: e });
  2223. console.log(this.state.approvalSearch);
  2224. }}
  2225. >
  2226. <Select.Option key={0}>非特批</Select.Option>
  2227. <Select.Option key={1}>特批</Select.Option>
  2228. </Select>
  2229. <Select
  2230. placeholder="外包状态"
  2231. style={{ width: 150, marginRight: "10px" }}
  2232. value={this.state.outsourceStatusSearch}
  2233. onChange={(e) => {
  2234. this.setState({ outsourceStatusSearch: e });
  2235. console.log(this.state.outsourceStatusSearch);
  2236. }}
  2237. >
  2238. <Select.Option key={0}>外包待审核</Select.Option>
  2239. {/* <Select.Option key={1}>外包审核通过</Select.Option> */}
  2240. <Select.Option key={2}>外包审核驳回</Select.Option>
  2241. <Select.Option key={999}>全部</Select.Option>
  2242. </Select>
  2243. <Button type="primary" onClick={this.search}>
  2244. 搜索
  2245. </Button>
  2246. <Button
  2247. onClick={(e) => {
  2248. this.reset(true);
  2249. }}
  2250. >
  2251. 重置
  2252. </Button>
  2253. {/* <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  2254. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  2255. <span>订单时间 :</span>
  2256. <RangePicker
  2257. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  2258. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  2259. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  2260. </div> */}
  2261. </div>
  2262. </TabPane>
  2263. <TabPane tab="导出Excel" key="3">
  2264. <Button
  2265. type="primary"
  2266. style={{ margin: "11px 0 10px 10px" }}
  2267. onClick={this.exportExec}
  2268. >
  2269. 导出Excel
  2270. </Button>
  2271. </TabPane>
  2272. {/* <TabPane tab="批量操作" key="6">
  2273. <Button
  2274. type="primary"
  2275. disabled={this.state.selectedRowKeys.length == 0}
  2276. style={{ margin: "0px 0px 10px 10px" }}
  2277. onClick={e => {
  2278. e.stopPropagation(),
  2279. this.evaluateY(this.state.selectedRowKeys, "财务专员");
  2280. }}
  2281. >
  2282. 转交
  2283. </Button>
  2284. </TabPane> */}
  2285. </Tabs>
  2286. {/* <div className="user-search">
  2287. <Input
  2288. placeholder="客户名称"
  2289. value={this.state.nameSearch}
  2290. onChange={e => {
  2291. this.setState({ nameSearch: e.target.value });
  2292. }}
  2293. />
  2294. <Input
  2295. placeholder="订单编号"
  2296. value={this.state.orderNoSearch}
  2297. onChange={e => {
  2298. this.setState({ orderNoSearch: e.target.value });
  2299. }}
  2300. />
  2301. <Input
  2302. placeholder="项目编号"
  2303. value={this.state.taskNoSearch}
  2304. onChange={e => {
  2305. this.setState({ taskNoSearch: e.target.value });
  2306. }}
  2307. />
  2308. <Select
  2309. placeholder="选择部门"
  2310. style={{ width: 150, marginRight: "10px" }}
  2311. value={this.state.departmenttSearch}
  2312. onChange={e => {
  2313. this.setState({ departmenttSearch: e });
  2314. }}
  2315. >
  2316. {departmentArr.map(function(item) {
  2317. return <Select.Option key={item.id}>{item.name}</Select.Option>;
  2318. })}
  2319. </Select>
  2320. <Button type="primary" onClick={this.search}>
  2321. 搜索
  2322. </Button>
  2323. <Button onClick={this.reset}>重置</Button>
  2324. <Button
  2325. type="primary"
  2326. style={{ marginLeft: "10px" }}
  2327. onClick={this.exportExec}
  2328. >
  2329. 导出Excel
  2330. </Button>
  2331. <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  2332. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  2333. <span>订单时间 :</span>
  2334. <RangePicker
  2335. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  2336. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  2337. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  2338. </div>
  2339. </div> */}
  2340. <div className="patent-table">
  2341. <Spin spinning={this.state.loading}>
  2342. <Table
  2343. columns={
  2344. this.state.changeList == undefined
  2345. ? this.state.columns
  2346. : this.state.changeList
  2347. }
  2348. dataSource={this.state.dataSource}
  2349. pagination={this.state.pagination}
  2350. scroll={{ x: "max-content", y: 0 }}
  2351. onRowClick={this.tableRowClick.bind(this)}
  2352. bordered
  2353. size={"small"}
  2354. />
  2355. </Spin>
  2356. </div>
  2357. <Assign
  2358. title="项目"
  2359. selApi={"/api/admin/orderProject/projectDistribution"}
  2360. data={this.state.assignData}
  2361. showDesc={this.state.assignVisible}
  2362. closeDesc={this.closeAssign.bind(this)}
  2363. fenpaiData={8}
  2364. specially={0}
  2365. roleName={this.state.nub}
  2366. requestMethod={"post"}
  2367. flag={this.state.flag}
  2368. all={this.state}
  2369. />
  2370. <Modal
  2371. className="customeDetails"
  2372. footer=""
  2373. title=""
  2374. width="900px"
  2375. visible={this.state.visible}
  2376. onOk={this.visitOk}
  2377. onCancel={this.visitCancel}
  2378. >
  2379. <Tabs
  2380. activeKey={this.state.activeKey}
  2381. onChange={(e) => {
  2382. this.callback(e);
  2383. if (e == 2) {
  2384. this.waiDetail();
  2385. }
  2386. }}
  2387. >
  2388. <TabPane tab="项目概况" key="1">
  2389. <Form
  2390. layout="horizontal"
  2391. onSubmit={this.handleSubmit}
  2392. id="demand-form"
  2393. style={{ paddingBottom: "00px" }}
  2394. >
  2395. <Spin spinning={this.state.loading}>
  2396. <div className="clearfix">
  2397. <div className="clearfix">
  2398. <FormItem
  2399. className="half-item"
  2400. {...formItemLayout}
  2401. label="当前项目情况"
  2402. >
  2403. <Radio.Group
  2404. value={this.state.status}
  2405. onChange={(e) => {
  2406. this.setState({ status: e.target.value });
  2407. }}
  2408. >
  2409. <Radio value={0}>开启</Radio>
  2410. <Radio value={1}>暂停</Radio>
  2411. </Radio.Group>
  2412. <Button
  2413. type="primary"
  2414. size="small"
  2415. style={{ marginTop: "5px", position: "absolute" }}
  2416. onClick={this.caozuorizhi}
  2417. >
  2418. 操作日志
  2419. </Button>
  2420. </FormItem>
  2421. <FormItem
  2422. className="half-item"
  2423. {...formItemLayout}
  2424. label="合同编号"
  2425. >
  2426. <span>{this.state.contractNo}</span>
  2427. </FormItem>
  2428. </div>
  2429. <div className="clearfix">
  2430. <FormItem
  2431. className="half-item"
  2432. {...formItemLayout}
  2433. label="项目状态"
  2434. >
  2435. <Select
  2436. placeholder="选择项目状态"
  2437. style={{ width: "200px" }}
  2438. value={this.state.projectStatus}
  2439. onChange={(e) => {
  2440. this.setState({ projectStatus: e });
  2441. }}
  2442. >
  2443. {projectStatus.map(function (item) {
  2444. return (
  2445. <Select.Option key={item.value}>
  2446. {item.key}
  2447. </Select.Option>
  2448. );
  2449. })}
  2450. </Select>
  2451. </FormItem>
  2452. <FormItem
  2453. className="half-item"
  2454. {...formItemLayout}
  2455. label="是否特批"
  2456. >
  2457. <span>{getApproval(this.state.approval)}</span>
  2458. </FormItem>
  2459. <FormItem
  2460. className="half-item"
  2461. {...formItemLayout}
  2462. label="结算状态"
  2463. >
  2464. <span>
  2465. {getLiquidationStatus(this.state.liquidationStatus)}
  2466. </span>
  2467. </FormItem>
  2468. <FormItem
  2469. className="half-item"
  2470. {...formItemLayout}
  2471. label="流程状态"
  2472. >
  2473. <span>
  2474. {getProcessStatus(this.state.processStatus)}
  2475. </span>
  2476. </FormItem>
  2477. <FormItem
  2478. className="half-item"
  2479. {...formItemLayout}
  2480. label="订单编号"
  2481. >
  2482. <span>{this.state.orderNo}</span>
  2483. </FormItem>
  2484. </div>
  2485. <div className="clearfix">
  2486. <FormItem
  2487. className="half-item"
  2488. {...formItemLayout}
  2489. label="满意度表格"
  2490. >
  2491. <Radio.Group
  2492. value={this.state.formRetrieve}
  2493. onChange={(e) => {
  2494. this.setState({ formRetrieve: e.target.value });
  2495. }}
  2496. >
  2497. <Radio value={0}>未收回</Radio>
  2498. <Radio value={1}>已收回</Radio>
  2499. <Radio value={2}>其他</Radio>
  2500. </Radio.Group>
  2501. </FormItem>
  2502. <FormItem
  2503. className="half-item"
  2504. {...formItemLayout}
  2505. label="退单"
  2506. >
  2507. <Radio.Group
  2508. value={this.state.taskRefund}
  2509. onChange={(e) => {
  2510. this.setState({ taskRefund: e.target.value });
  2511. }}
  2512. >
  2513. <Radio value={0}>已完成</Radio>
  2514. <Radio value={1}>未完成</Radio>
  2515. <Radio value={2}>其他</Radio>
  2516. </Radio.Group>
  2517. </FormItem>
  2518. </div>
  2519. <div className="clearfix">
  2520. {
  2521. <FormItem
  2522. className="half-item"
  2523. {...formItemLayout}
  2524. label="(满意度)备注"
  2525. >
  2526. <Input
  2527. type="textarea"
  2528. placeholder="请输入备注"
  2529. rows={2}
  2530. value={this.state.retrieveContent}
  2531. onChange={(e) => {
  2532. this.setState({
  2533. retrieveContent: e.target.value,
  2534. });
  2535. }}
  2536. />
  2537. </FormItem>
  2538. }
  2539. {
  2540. <FormItem
  2541. className="half-item"
  2542. {...formItemLayout}
  2543. label="(退单)备注"
  2544. >
  2545. <Input
  2546. type="textarea"
  2547. placeholder="请输入备注"
  2548. rows={2}
  2549. value={this.state.refundContent}
  2550. onChange={(e) => {
  2551. this.setState({ refundContent: e.target.value });
  2552. }}
  2553. />
  2554. </FormItem>
  2555. }
  2556. </div>
  2557. <div className="clearfix">
  2558. <h3 className="sub-title">订单负责人信息</h3>
  2559. <FormItem
  2560. className="half-item"
  2561. {...formItemLayout}
  2562. label="负责人"
  2563. >
  2564. <span>
  2565. {this.state.salesmanName +
  2566. "(" +
  2567. this.state.depName +
  2568. ")"}
  2569. </span>
  2570. </FormItem>
  2571. <FormItem
  2572. className="half-item"
  2573. {...formItemLayout}
  2574. label="负责人电话"
  2575. >
  2576. <span>{this.state.salesmanMobile}</span>
  2577. </FormItem>
  2578. <FormItem
  2579. className="half-item"
  2580. {...formItemLayout}
  2581. label="当前财务负责人"
  2582. >
  2583. <span>{this.state.nowFinance}</span>
  2584. </FormItem>
  2585. <FormItem
  2586. className="half-item"
  2587. {...formItemLayout}
  2588. label="当前财务负责人电话"
  2589. >
  2590. <span>{this.state.nowFinanceMobile}</span>
  2591. </FormItem>
  2592. <FormItem
  2593. className="half-item"
  2594. {...formItemLayout}
  2595. style={{ opacity: ".5" }}
  2596. label="原负责人"
  2597. >
  2598. <span>{this.state.oldSalesmanName}</span>
  2599. </FormItem>
  2600. <FormItem
  2601. className="half-item"
  2602. {...formItemLayout}
  2603. style={{ opacity: ".5" }}
  2604. label="原负责人电话"
  2605. >
  2606. <span>{this.state.oldSalesmanMobile}</span>
  2607. </FormItem>
  2608. <FormItem
  2609. className="half-item"
  2610. {...formItemLayout}
  2611. style={{ opacity: ".5" }}
  2612. label="实际财务操作人"
  2613. >
  2614. <span>{this.state.financeName}</span>
  2615. </FormItem>
  2616. <FormItem
  2617. className="half-item"
  2618. {...formItemLayout}
  2619. style={{ opacity: ".5" }}
  2620. label="实际财务操作人电话"
  2621. >
  2622. <span>{this.state.financeMobile}</span>
  2623. </FormItem>
  2624. <FormItem
  2625. className="half-item"
  2626. {...formItemLayout}
  2627. label="订单留言"
  2628. >
  2629. <span>{this.state.orderRemarks}</span>
  2630. </FormItem>
  2631. <FormItem
  2632. className="half-item"
  2633. {...formItemLayout}
  2634. label=""
  2635. >
  2636. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  2637. </FormItem>
  2638. <OrderRiZi
  2639. dataSourcerizhi={this.state.dataSourceY}
  2640. closeOrderLog={this.closeOrderLog}
  2641. visible={this.state.avisible}
  2642. loading={this.state.loading}
  2643. />
  2644. </div>
  2645. <div className="clearfix">
  2646. <h3 className="sub-title">外包信息</h3>
  2647. <FormItem
  2648. className="half-item"
  2649. {...formItemLayout}
  2650. label="外包公司"
  2651. >
  2652. <Input
  2653. value={this.state.outsourceName}
  2654. onChange={(e) => {
  2655. this.setState({
  2656. outsourceName: e.target.value,
  2657. });
  2658. }}
  2659. placeholder="请输入外包公司"
  2660. style={{ width: "200px" }}
  2661. />
  2662. </FormItem>
  2663. <FormItem
  2664. className="half-item"
  2665. {...formItemLayout}
  2666. label="外包成本(万元)"
  2667. >
  2668. <Input
  2669. value={this.state.outsourcePrice}
  2670. onChange={(e) => {
  2671. this.setState({
  2672. outsourcePrice: e.target.value,
  2673. });
  2674. }}
  2675. placeholder="请输入外包成本"
  2676. style={{ width: "200px" }}
  2677. />
  2678. </FormItem>
  2679. </div>
  2680. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  2681. <div className="clearfix">
  2682. <h3 className="sub-title">联系信息</h3>
  2683. <FormItem
  2684. className="half-item"
  2685. {...formItemLayout}
  2686. label="客户名称"
  2687. >
  2688. <span>{this.state.userName}</span>
  2689. </FormItem>
  2690. <FormItem
  2691. className="half-item"
  2692. {...formItemLayout}
  2693. label="企业法人"
  2694. >
  2695. <Input
  2696. placeholder="请输入法人名称"
  2697. value={this.state.legalPerson}
  2698. style={{ width: "200px" }}
  2699. onChange={(e) => {
  2700. this.setState({ legalPerson: e.target.value });
  2701. }}
  2702. ref="commodityQuantity"
  2703. />
  2704. </FormItem>
  2705. <FormItem
  2706. className="half-item"
  2707. {...formItemLayout}
  2708. label="法人电话"
  2709. >
  2710. <Input
  2711. placeholder="请输入法人电话"
  2712. value={this.state.legalPersonTel}
  2713. style={{ width: "200px" }}
  2714. onChange={(e) => {
  2715. this.setState({ legalPersonTel: e.target.value });
  2716. }}
  2717. ref="commodityQuantity"
  2718. />
  2719. </FormItem>
  2720. <FormItem
  2721. className="half-item"
  2722. {...formItemLayout}
  2723. label="客户联系人"
  2724. >
  2725. <Input
  2726. placeholder="请输入联系人名称"
  2727. value={this.state.contacts}
  2728. style={{ width: "200px" }}
  2729. onChange={(e) => {
  2730. this.setState({ contacts: e.target.value });
  2731. }}
  2732. ref="commodityQuantity"
  2733. />
  2734. </FormItem>
  2735. <FormItem
  2736. className="half-item"
  2737. {...formItemLayout}
  2738. label="联系人电话"
  2739. >
  2740. <Input
  2741. placeholder="请输入联系人电话"
  2742. value={this.state.contactMobile}
  2743. style={{ width: "200px" }}
  2744. onChange={(e) => {
  2745. this.setState({ contactMobile: e.target.value });
  2746. }}
  2747. ref="commodityQuantity"
  2748. />
  2749. </FormItem>
  2750. <FormItem
  2751. className="half-item"
  2752. {...formItemLayout}
  2753. label="企业地址"
  2754. >
  2755. <Cascader
  2756. options={areaSelect()}
  2757. value={this.state.ProvinceCity}
  2758. placeholder="选择城市"
  2759. style={{ width: "200px" }}
  2760. onChange={(e) => {
  2761. this.setState({ ProvinceCity: e });
  2762. }}
  2763. />
  2764. </FormItem>
  2765. <FormItem
  2766. className="half-item"
  2767. {...formItemLayout}
  2768. label=""
  2769. ></FormItem>
  2770. <FormItem
  2771. className="half-item"
  2772. {...formItemLayout}
  2773. label=""
  2774. >
  2775. <Input
  2776. placeholder="请输入详细地址"
  2777. value={this.state.postalAddress}
  2778. style={{ width: "200px", marginLeft: "12em" }}
  2779. onChange={(e) => {
  2780. this.setState({ postalAddress: e.target.value });
  2781. }}
  2782. ref="commodityQuantity"
  2783. />
  2784. </FormItem>
  2785. </div>
  2786. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  2787. <div className="clearfix">
  2788. <h3 className="sub-title">项目信息</h3>
  2789. <FormItem
  2790. className="half-item"
  2791. {...formItemLayout}
  2792. label="项目编号"
  2793. >
  2794. <span>
  2795. {this.state.splitStatus == 2
  2796. ? this.state.splitSuper + "-" + this.state.splitId
  2797. : this.state.id}
  2798. </span>
  2799. </FormItem>
  2800. <FormItem
  2801. className="half-item"
  2802. {...formItemLayout}
  2803. label="项目名称"
  2804. >
  2805. <span>{this.state.taskName}</span>
  2806. </FormItem>
  2807. <FormItem
  2808. className="half-item"
  2809. {...formItemLayout}
  2810. label="项目状态"
  2811. >
  2812. <Select
  2813. placeholder="选择项目状态"
  2814. style={{ width: "200px" }}
  2815. value={this.state.taskStatus}
  2816. onChange={(e) => {
  2817. this.setState({ taskStatus: e });
  2818. }}
  2819. >
  2820. {taskStatus.map(function (item) {
  2821. return (
  2822. <Select.Option key={item.value}>
  2823. {item.key}
  2824. </Select.Option>
  2825. );
  2826. })}
  2827. </Select>
  2828. </FormItem>
  2829. <FormItem
  2830. className="half-item"
  2831. {...formItemLayout}
  2832. label="项目类别"
  2833. >
  2834. <span>{this.state.cname}</span>
  2835. </FormItem>
  2836. <FormItem
  2837. className="half-item"
  2838. {...formItemLayout}
  2839. label="证书编号"
  2840. >
  2841. <Input
  2842. placeholder="请输入证书编号"
  2843. value={this.state.certificateNumber}
  2844. style={{ width: "200px" }}
  2845. onChange={(e) => {
  2846. this.setState({
  2847. certificateNumber: e.target.value,
  2848. });
  2849. }}
  2850. ref="commodityQuantity"
  2851. />
  2852. </FormItem>
  2853. </div>
  2854. <div className="clearfix">
  2855. <h3 className="sub-title">申报系统账户信息</h3>
  2856. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  2857. <FormItem
  2858. className="half-item"
  2859. {...formItemLayout}
  2860. label="用户名"
  2861. >
  2862. <Input
  2863. placeholder="请输入用户名"
  2864. value={this.state.declareUser}
  2865. style={{ width: "200px" }}
  2866. onChange={(e) => {
  2867. this.setState({ declareUser: e.target.value });
  2868. }}
  2869. />
  2870. </FormItem>
  2871. <FormItem
  2872. className="half-item"
  2873. {...formItemLayout}
  2874. label="密码"
  2875. >
  2876. <Input
  2877. placeholder="请输入密码"
  2878. value={this.state.declarePwd}
  2879. style={{ width: "200px" }}
  2880. onChange={(e) => {
  2881. this.setState({ declarePwd: e.target.value });
  2882. }}
  2883. />
  2884. </FormItem>
  2885. </div>
  2886. <div className="clearfix">
  2887. <h3 className="sub-title">项目申报进度</h3>
  2888. <FormItem
  2889. className="half-item"
  2890. {...formItemLayout}
  2891. label="申报批次"
  2892. >
  2893. <Select
  2894. style={{ width: 200 }}
  2895. placeholder="请选择批次"
  2896. value={
  2897. this.state.declarationBatch
  2898. ? this.state.declarationBatch
  2899. : undefined
  2900. }
  2901. onChange={(e) => {
  2902. this.setState({
  2903. declarationBatch: e,
  2904. });
  2905. }}
  2906. >
  2907. <Option value={1}>第一批</Option>
  2908. <Option value={2}>第二批</Option>
  2909. <Option value={3}>第三批</Option>
  2910. <Option value={4}>第四批</Option>
  2911. </Select>
  2912. </FormItem>
  2913. <FormItem
  2914. className="half-item"
  2915. {...formItemLayout}
  2916. label="启动时间"
  2917. >
  2918. <DatePicker
  2919. style={{
  2920. marginTop: "2px",
  2921. width: "200px",
  2922. height: "32px",
  2923. }}
  2924. showTime
  2925. format="YYYY-MM-DD"
  2926. onOk={() => {}}
  2927. value={
  2928. this.state.startDate
  2929. ? moment(this.state.startDate)
  2930. : null
  2931. }
  2932. onChange={(data, dataString) => {
  2933. this.setState({ startDate: dataString });
  2934. }}
  2935. />
  2936. </FormItem>
  2937. <FormItem
  2938. className="half-item"
  2939. {...formItemLayout}
  2940. label="完成时间"
  2941. >
  2942. <DatePicker
  2943. style={{
  2944. marginTop: "2px",
  2945. width: "200px",
  2946. height: "32px",
  2947. }}
  2948. showTime
  2949. format="YYYY-MM-DD"
  2950. onOk={() => {}}
  2951. value={
  2952. this.state.endDate
  2953. ? moment(this.state.endDate)
  2954. : null
  2955. }
  2956. onChange={(data, dataString) => {
  2957. this.setState({ endDate: dataString });
  2958. }}
  2959. />
  2960. </FormItem>
  2961. <FormItem
  2962. className="half-item"
  2963. {...formItemLayout}
  2964. label="受理时间"
  2965. >
  2966. <DatePicker
  2967. style={{
  2968. marginTop: "2px",
  2969. width: "200px",
  2970. height: "32px",
  2971. }}
  2972. showTime
  2973. format="YYYY-MM-DD"
  2974. onOk={() => {}}
  2975. value={
  2976. this.state.acceptDate
  2977. ? moment(this.state.acceptDate)
  2978. : null
  2979. }
  2980. onChange={(data, dataString) => {
  2981. this.setState({ acceptDate: dataString });
  2982. }}
  2983. />
  2984. </FormItem>
  2985. <FormItem
  2986. className="half-item"
  2987. {...formItemLayout}
  2988. label="评审时间"
  2989. >
  2990. <DatePicker
  2991. style={{
  2992. marginTop: "2px",
  2993. width: "200px",
  2994. height: "32px",
  2995. }}
  2996. showTime
  2997. format="YYYY-MM-DD"
  2998. onOk={() => {}}
  2999. value={
  3000. this.state.reviewDate
  3001. ? moment(this.state.reviewDate)
  3002. : null
  3003. }
  3004. onChange={(data, dataString) => {
  3005. this.setState({ reviewDate: dataString });
  3006. }}
  3007. />
  3008. </FormItem>
  3009. <FormItem
  3010. className="half-item"
  3011. {...formItemLayout}
  3012. label="公示时间"
  3013. >
  3014. <DatePicker
  3015. style={{
  3016. marginTop: "2px",
  3017. width: "200px",
  3018. height: "32px",
  3019. }}
  3020. showTime
  3021. format="YYYY-MM-DD"
  3022. onOk={() => {}}
  3023. value={
  3024. this.state.publicityDate
  3025. ? moment(this.state.publicityDate)
  3026. : null
  3027. }
  3028. onChange={(data, dataString) => {
  3029. this.setState({ publicityDate: dataString });
  3030. }}
  3031. />
  3032. </FormItem>
  3033. <FormItem
  3034. className="half-item"
  3035. {...formItemLayout}
  3036. label="发证时间"
  3037. >
  3038. <DatePicker
  3039. style={{
  3040. marginTop: "2px",
  3041. width: "200px",
  3042. height: "32px",
  3043. }}
  3044. showTime
  3045. format="YYYY-MM-DD"
  3046. onOk={() => {}}
  3047. value={
  3048. this.state.licenceDate
  3049. ? moment(this.state.licenceDate)
  3050. : null
  3051. }
  3052. onChange={(data, dataString) => {
  3053. this.setState({ licenceDate: dataString });
  3054. }}
  3055. />
  3056. </FormItem>
  3057. <FormItem
  3058. className="half-item"
  3059. {...formItemLayout}
  3060. label="立项金额(万元)"
  3061. >
  3062. <Input
  3063. placeholder="请输入立项金额"
  3064. value={this.state.setUpAmount}
  3065. style={{ width: "200px" }}
  3066. onChange={(e) => {
  3067. this.setState({ setUpAmount: e.target.value });
  3068. }}
  3069. ref="commodityQuantity"
  3070. />
  3071. </FormItem>
  3072. <FormItem
  3073. className="half-item"
  3074. {...formItemLayout}
  3075. label="是否到款"
  3076. >
  3077. <Radio.Group
  3078. value={this.state.arrivalMoney}
  3079. onChange={(e) => {
  3080. this.setState({ arrivalMoney: e.target.value });
  3081. }}
  3082. >
  3083. <Radio value={0}>未到企业</Radio>
  3084. <Radio value={1}>已到企业</Radio>
  3085. </Radio.Group>
  3086. </FormItem>
  3087. </div>
  3088. <div className="clearfix">
  3089. <FormItem
  3090. labelCol={{ span: 3 }}
  3091. wrapperCol={{ span: 16 }}
  3092. label="附件"
  3093. >
  3094. <Picture
  3095. fileList={(e) => {
  3096. this.setState({ attachmentUrl: e });
  3097. }}
  3098. pictureUrl={this.state.attachmentUrl}
  3099. visible={this.props.visible}
  3100. data={{
  3101. sign: "order_task_file",
  3102. url: "/api/admin/orderProject/uploadOrderTaskFile",
  3103. number: 8,
  3104. }}
  3105. />
  3106. </FormItem>
  3107. </div>
  3108. <div className="clearfix">
  3109. <FormItem
  3110. labelCol={{ span: 3 }}
  3111. wrapperCol={{ span: 16 }}
  3112. label="备注"
  3113. >
  3114. <Input
  3115. type="textarea"
  3116. placeholder="请输入备注"
  3117. rows={4}
  3118. value={this.state.taskComment}
  3119. onChange={(e) => {
  3120. this.setState({ taskComment: e.target.value });
  3121. }}
  3122. />
  3123. </FormItem>
  3124. </div>
  3125. <div>
  3126. <h3 className="sub-title">项目业务</h3>
  3127. {this.state.processStatus == 0 ? (
  3128. <Button
  3129. type="primary"
  3130. onClick={this.addDetailed}
  3131. style={{
  3132. float: "right",
  3133. marginRight: "50px",
  3134. marginBottom: "15px",
  3135. }}
  3136. >
  3137. 添加项目明细
  3138. </Button>
  3139. ) : (
  3140. ""
  3141. )}
  3142. </div>
  3143. <div className="patent-table">
  3144. <Spin spinning={this.state.loading}>
  3145. <Table
  3146. columns={this.state.columnsX}
  3147. dataSource={this.state.dataSourceX}
  3148. pagination={this.state.paginations}
  3149. onRowClick={this.tableRowClickX}
  3150. bordered
  3151. size="small"
  3152. />
  3153. </Spin>
  3154. </div>
  3155. <div className="clearfix">
  3156. <Button
  3157. className="cancel"
  3158. type="primary"
  3159. // onClick={this.tijiaoOk}
  3160. onClick={() => {
  3161. let num = this.state.projectStatus;
  3162. if (
  3163. num != 0 &&
  3164. num != 10 &&
  3165. num != 11 &&
  3166. num != 12 &&
  3167. num != 2 &&
  3168. num != 5 &&
  3169. num != 6
  3170. ) {
  3171. this.showDeleteConfirm(num, this.tijiaoOk);
  3172. } else {
  3173. this.tijiaoOk();
  3174. }
  3175. }}
  3176. style={{ marginLeft: "200px", marginTop: "10px" }}
  3177. htmlType="submit"
  3178. >
  3179. 保存
  3180. </Button>
  3181. <Button
  3182. className="cancel"
  3183. type="ghost"
  3184. onClick={this.visitCancel}
  3185. style={{ marginLeft: "50px", marginTop: "10px" }}
  3186. >
  3187. 取消
  3188. </Button>
  3189. </div>
  3190. </div>
  3191. </Spin>
  3192. </Form>
  3193. </TabPane>
  3194. <TabPane tab="外包/供应商信息" key="2">
  3195. {this.state.refundStatus != 0 && this.state.refundStatus != 1 ? (
  3196. <div style={{ marginTop: 10 }}>
  3197. <div className="clearfix">
  3198. <FormItem
  3199. className="half-item"
  3200. {...formItemLayout}
  3201. label={
  3202. <span>
  3203. <strong style={{ color: "#f00" }}>*</strong>
  3204. 类型:
  3205. </span>
  3206. }
  3207. >
  3208. <Radio.Group
  3209. value={this.state.startType}
  3210. onChange={(e) => {
  3211. this.setState({ startType: e.target.value });
  3212. }}
  3213. >
  3214. <Radio value={0}>外包(不走总部)</Radio>
  3215. <Radio value={1}>供应商信息</Radio>
  3216. </Radio.Group>
  3217. </FormItem>
  3218. </div>
  3219. {/* 专利类型 */}
  3220. <div
  3221. className="clearfix"
  3222. style={{
  3223. display: this.state.type == 1 ? "block" : "none",
  3224. }}
  3225. >
  3226. <FormItem
  3227. className="half-item"
  3228. {...formItemLayout}
  3229. label={
  3230. <span>
  3231. <strong style={{ color: "#f00" }}>*</strong>
  3232. 专利类型:
  3233. </span>
  3234. }
  3235. >
  3236. <Radio.Group
  3237. value={this.state.patentType}
  3238. onChange={(e) => {
  3239. this.setState({ patentType: e.target.value });
  3240. }}
  3241. >
  3242. <Radio value={0}>专利申请/变更/转让</Radio>
  3243. <Radio value={1}>专利买卖</Radio>
  3244. </Radio.Group>
  3245. </FormItem>
  3246. </div>
  3247. <div
  3248. className="clearfix"
  3249. style={{
  3250. display: this.state.type == 1 ? "block" : "none",
  3251. }}
  3252. >
  3253. <FormItem
  3254. className="half-item"
  3255. {...formItemLayout}
  3256. label={
  3257. <span>
  3258. <strong style={{ color: "#f00" }}>*</strong>
  3259. 专利名称:
  3260. </span>
  3261. }
  3262. >
  3263. <Radio.Group
  3264. value={this.state.patentNameType}
  3265. onChange={(e) => {
  3266. this.setState({ patentNameType: e.target.value });
  3267. }}
  3268. >
  3269. <Radio value={0}>实用新型专利</Radio>
  3270. <Radio value={1}>发明专利</Radio>
  3271. <Radio value={2}>外观专利</Radio>
  3272. <Radio value={3}>
  3273. 其他
  3274. <Input
  3275. value={this.state.patentName}
  3276. style={{ marginLeft: "15px" }}
  3277. onChange={(e) => {
  3278. this.setState({
  3279. patentName: e.target.value,
  3280. });
  3281. }}
  3282. placeholder="请填写专利名称"
  3283. />
  3284. </Radio>
  3285. </Radio.Group>
  3286. </FormItem>
  3287. </div>
  3288. {/* 第三方信息专利 */}
  3289. <div
  3290. style={{
  3291. // display: this.state.type == 1 ? "block" : "none",
  3292. display: this.state.type == 1 ? "block" : "block",
  3293. }}
  3294. >
  3295. <span
  3296. style={{
  3297. marginLeft: "50px",
  3298. fontSize: "18px",
  3299. }}
  3300. >
  3301. 第三方信息
  3302. </span>
  3303. <span
  3304. style={{
  3305. display: "inline-block",
  3306. marginLeft: 10,
  3307. color: "red",
  3308. }}
  3309. >
  3310. 金额总计(万元): {this.state.allTotalAmount}
  3311. </span>
  3312. <Button
  3313. type="primary"
  3314. onClick={(e) => {
  3315. this.addThirdList();
  3316. }}
  3317. style={{
  3318. float: "right",
  3319. marginRight: "50px",
  3320. marginBottom: "15px",
  3321. }}
  3322. >
  3323. +新增供应商名称
  3324. </Button>
  3325. </div>
  3326. <div
  3327. className="clearfix"
  3328. style={{
  3329. // display: this.state.type == 1 ? "block" : "none",
  3330. display: this.state.type == 1 ? "block" : "block",
  3331. }}
  3332. >
  3333. <Spin spinning={this.state.loading}>
  3334. <Form layout="horizontal">
  3335. <Table
  3336. pagination={false}
  3337. columns={this.state.ContactsListsNew}
  3338. dataSource={this.state.thirdInfoList}
  3339. onRowClick={this.tableRowClickOne}
  3340. scroll={{ x: "max-content", y: 0 }}
  3341. bordered
  3342. size="small"
  3343. />
  3344. <Col
  3345. span={24}
  3346. offset={9}
  3347. style={{ marginTop: "15px" }}
  3348. ></Col>
  3349. </Form>
  3350. </Spin>
  3351. </div>
  3352. <div
  3353. style={{
  3354. // display: this.state.type == 1 ? "block" : "none",
  3355. display: this.state.type == 1 ? "block" : "block",
  3356. }}
  3357. >
  3358. <span
  3359. style={{
  3360. marginLeft: "50px",
  3361. fontSize: "18px",
  3362. }}
  3363. >
  3364. 付款节点
  3365. </span>
  3366. <span
  3367. style={{
  3368. display: "inline-block",
  3369. marginLeft: 10,
  3370. color: "red",
  3371. }}
  3372. ></span>
  3373. <Button
  3374. type="primary"
  3375. onClick={(e) => {
  3376. this.addPayNode();
  3377. }}
  3378. style={{
  3379. float: "right",
  3380. marginRight: "50px",
  3381. marginBottom: "15px",
  3382. }}
  3383. >
  3384. +新增付款节点
  3385. </Button>
  3386. </div>
  3387. <div className="clearfix">
  3388. <FormItem
  3389. className="half-item"
  3390. {...formItemLayout}
  3391. label={
  3392. <span>
  3393. <strong style={{ color: "#f00" }}>*</strong>备注
  3394. </span>
  3395. }
  3396. >
  3397. <TextArea
  3398. rows={4}
  3399. value={this.state.outsourceRemarks}
  3400. onChange={(e) => {
  3401. this.setState({
  3402. outsourceRemarks: e.target.value,
  3403. });
  3404. }}
  3405. placeholder="请输入备注"
  3406. />
  3407. </FormItem>
  3408. </div>
  3409. {/*<div className="clearfix">
  3410. <FormItem className="half-item"
  3411. {...formItemLayout}
  3412. label="上传协议文件" style={{height:"auto"}}>
  3413. <Upload header={{authorization: 'authorization-text'}} action={globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"}
  3414. data={(e)=>{
  3415. return {
  3416. 'sign': e.name.substring(0,e.name.lastIndexOf("."))
  3417. }
  3418. }}
  3419. fileList={this.state.fileUrl}
  3420. onChange={(e)=>{
  3421. this.setState({
  3422. attachmentUrl:e.fileList,
  3423. fileUrl:e.fileList
  3424. })
  3425. }}>
  3426. {fileUrl.length>1?null:<Button>
  3427. <Icon type="upload" /> 点击上传
  3428. </Button>}
  3429. </Upload>
  3430. <span className="tip" style={{display:"inline-block"}}>支持文件格式: doc,excel,ppt</span>
  3431. </FormItem>
  3432. </div>*/}
  3433. <p
  3434. className="tip"
  3435. style={{
  3436. paddingBottom: "12px",
  3437. width: "240px",
  3438. marginLeft: "145px",
  3439. color: "red",
  3440. }}
  3441. >
  3442. 首次派单项目,需上传协议,第2次起,同项目,只需写外包公司
  3443. </p>
  3444. <div className="clearfix">
  3445. <FormItem
  3446. labelCol={{ span: 4 }}
  3447. wrapperCol={{ span: 18 }}
  3448. label={
  3449. <span>
  3450. <strong style={{ color: "#f00" }}>*</strong>
  3451. 合同/协议扫描件
  3452. </span>
  3453. }
  3454. >
  3455. <PicturesWall
  3456. fileList={this.getOrgCodeUrlWai}
  3457. pictureUrl={this.state.pictureUrl}
  3458. />
  3459. <p style={{ color: "red" }}>图片建议:要清晰。</p>
  3460. </FormItem>
  3461. </div>
  3462. <div className="clearfix">
  3463. <div
  3464. style={{
  3465. display: "inline-black",
  3466. textAlign: "center",
  3467. }}
  3468. >
  3469. <Button
  3470. type="primary"
  3471. loading={this.state.loading}
  3472. onClick={this.sureOut}
  3473. >
  3474. 确认发起外包,不通过总部
  3475. </Button>
  3476. <p className="tip" style={{ color: "red" }}>
  3477. 提示:高于总部价格,费用个人承担
  3478. </p>
  3479. </div>
  3480. </div>
  3481. </div>
  3482. ) : (
  3483. <div>
  3484. <div className="clearfix">
  3485. <FormItem
  3486. className="half-item"
  3487. {...formItemLayout}
  3488. label="外包公司"
  3489. >
  3490. <span>{this.state.companyName}</span>
  3491. </FormItem>
  3492. </div>
  3493. <div className="clearfix">
  3494. <FormItem
  3495. className="half-item"
  3496. {...formItemLayout}
  3497. label="单价(万元)"
  3498. >
  3499. <span>{this.state.unitPrice}</span>
  3500. </FormItem>
  3501. </div>
  3502. <div className="clearfix">
  3503. <FormItem
  3504. className="half-item"
  3505. {...formItemLayout}
  3506. label="数量(个)"
  3507. >
  3508. <span>{this.state.unitNumber}</span>
  3509. </FormItem>
  3510. </div>
  3511. <div className="clearfix">
  3512. <FormItem
  3513. className="half-item"
  3514. {...formItemLayout}
  3515. label="总金额(万元)"
  3516. >
  3517. <span>{this.state.amount}</span>
  3518. </FormItem>
  3519. </div>
  3520. <div className="clearfix">
  3521. <FormItem
  3522. className="half-item"
  3523. {...formItemLayout}
  3524. label="备注"
  3525. >
  3526. <span>{this.state.outsourceRemarks}</span>
  3527. </FormItem>
  3528. </div>
  3529. {/*<div className="clearfix">
  3530. <FormItem className="half-item" style={{height:'auto'}}
  3531. {...formItemLayout}
  3532. label="上传协议文件" >
  3533. <Upload header={{authorization: 'authorization-text'}} action={globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"}
  3534. data={(e)=>{
  3535. return {
  3536. 'sign': e.name.substring(0,e.name.lastIndexOf("."))
  3537. }
  3538. }}
  3539. fileList={this.state.fileUrl}
  3540. showUploadList={{showRemoveIcon:false}}
  3541. onPreview={(e)=>{
  3542. let url = window.location.href.substring(7)
  3543. window.location.href="http://"+url.substring(0,url.indexOf("/"))+"/api/admin/outsourceOrg//downloadFile?path="+e.response.data
  3544. }}
  3545. >
  3546. </Upload>
  3547. </FormItem>
  3548. </div>*/}
  3549. <div className="clearfix">
  3550. <FormItem
  3551. labelCol={{ span: 4 }}
  3552. wrapperCol={{ span: 18 }}
  3553. label="合同/协议扫描件"
  3554. >
  3555. <Upload
  3556. className="demandDetailShow-upload"
  3557. listType="picture-card"
  3558. fileList={this.state.pictureUrl}
  3559. onPreview={(file) => {
  3560. this.setState({
  3561. previewImage: file.url || file.thumbUrl,
  3562. previewVisible: true,
  3563. });
  3564. }}
  3565. ></Upload>
  3566. <Modal
  3567. maskClosable={false}
  3568. footer={null}
  3569. visible={this.state.previewVisible}
  3570. onCancel={() => {
  3571. this.setState({ previewVisible: false });
  3572. }}
  3573. >
  3574. <img
  3575. alt=""
  3576. style={{ width: "100%" }}
  3577. src={this.state.previewImage || ""}
  3578. />
  3579. </Modal>
  3580. </FormItem>
  3581. </div>
  3582. </div>
  3583. )}
  3584. {this.state.refundStatus == 1 ||
  3585. this.state.refundStatus == 0 ||
  3586. this.state.refundStatus == 2 ? (
  3587. <div className="clearfix">
  3588. <hr className="division" />
  3589. <div
  3590. className="clearfix"
  3591. style={{
  3592. display: this.state.refundStatus == 0 ? "none" : "block",
  3593. }}
  3594. >
  3595. <FormItem
  3596. className="half-item"
  3597. {...formItemLayout}
  3598. label="审核意见"
  3599. >
  3600. <span>{this.state.remarks}</span>
  3601. </FormItem>
  3602. </div>
  3603. <div className="clearfix">
  3604. <FormItem
  3605. className="half-item"
  3606. {...formItemLayout}
  3607. label="审核结果"
  3608. >
  3609. <span>{getRefundStatus(this.state.refundStatus)}</span>
  3610. </FormItem>
  3611. </div>
  3612. <div
  3613. className="clearfix"
  3614. style={{
  3615. display: this.state.refundStatus == 0 ? "none" : "block",
  3616. }}
  3617. >
  3618. <FormItem
  3619. className="half-item"
  3620. {...formItemLayout}
  3621. label="审核时间"
  3622. >
  3623. <span>{this.state.auditTimes}</span>
  3624. </FormItem>
  3625. </div>
  3626. </div>
  3627. ) : (
  3628. ""
  3629. )}
  3630. </TabPane>
  3631. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  3632. <TabPane tab="订单详情" key="3">
  3633. <Spin spinning={this.state.loading}>
  3634. <OrderDetail
  3635. orderData={this.state.orderData}
  3636. getOrderLog={this.getOrderLog}
  3637. dataSourceX={this.state.dataSourceX}
  3638. contactList={this.state.jiedian}
  3639. orderNo={this.state.orderNo}
  3640. totalCui={this.state.totalCui}
  3641. contactListNew={this.state.jiedianNew}
  3642. pictureUrl={this.state.contractPictureUrl}
  3643. />
  3644. </Spin>
  3645. </TabPane>
  3646. ) : (
  3647. ""
  3648. )}
  3649. </Tabs>
  3650. </Modal>
  3651. <Modal
  3652. maskClosable={false}
  3653. visible={this.state.lookVisible}
  3654. onOk={this.noCancel}
  3655. onCancel={this.noCancel}
  3656. width="500px"
  3657. title={"添加工时"}
  3658. footer=""
  3659. className="admin-desc-content"
  3660. >
  3661. <Form layout="horizontal" id="demand-form">
  3662. <Spin spinning={this.state.loading}>
  3663. <div className="clearfix">
  3664. <FormItem {...formItemLayout} label="工作日期">
  3665. <DatePicker
  3666. style={{ marginTop: "2px", width: "200px", height: "32px" }}
  3667. showTime
  3668. format="YYYY-MM-DD"
  3669. onOk={() => {}}
  3670. value={
  3671. this.state.taskDate ? moment(this.state.taskDate) : null
  3672. }
  3673. onChange={(data, dataString) => {
  3674. this.setState({ taskDate: dataString });
  3675. }}
  3676. />
  3677. </FormItem>
  3678. </div>
  3679. <div className="clearfix">
  3680. <FormItem {...formItemLayout} label="工作时长">
  3681. <Input
  3682. placeholder="请输入工作时长"
  3683. value={this.state.hours}
  3684. style={{ width: "200px" }}
  3685. onChange={(e) => {
  3686. this.setState({ hours: e.target.value });
  3687. }}
  3688. ref="commodityQuantity"
  3689. />
  3690. </FormItem>
  3691. </div>
  3692. <div className="clearfix">
  3693. <FormItem {...formItemLayout} label="工作内容">
  3694. <Input
  3695. type="textarea"
  3696. placeholder="请输入备注"
  3697. rows={4}
  3698. value={this.state.remarks}
  3699. onChange={(e) => {
  3700. this.setState({ remarks: e.target.value });
  3701. }}
  3702. />
  3703. </FormItem>
  3704. </div>
  3705. <div className="clearfix">
  3706. <Button
  3707. className="cancel"
  3708. type="primary"
  3709. onClick={this.tianjiaOk}
  3710. style={{ marginLeft: "100px" }}
  3711. htmlType="submit"
  3712. >
  3713. 确定
  3714. </Button>
  3715. <Button
  3716. className="cancel"
  3717. type="ghost"
  3718. onClick={this.noCancel}
  3719. style={{ marginLeft: "50px" }}
  3720. >
  3721. 取消
  3722. </Button>
  3723. </div>
  3724. </Spin>
  3725. </Form>
  3726. </Modal>
  3727. <Modal
  3728. maskClosable={false}
  3729. visible={this.state.addnextVisible}
  3730. onOk={this.nextCancel}
  3731. onCancel={this.nextCancel}
  3732. width="800px"
  3733. title="项目详情"
  3734. footer=""
  3735. className="admin-desc-content"
  3736. >
  3737. <Form layout="horizontal" onSubmit={this.nextSubmit} id="demand-form">
  3738. <Spin spinning={this.state.loading}>
  3739. <div className="clearfix">
  3740. <FormItem
  3741. className="half-item"
  3742. {...formItemLayout}
  3743. label="项目名称"
  3744. >
  3745. <span>{this.state.commodityName}</span>
  3746. </FormItem>
  3747. <FormItem
  3748. className="half-item"
  3749. {...formItemLayout}
  3750. label="项目数量"
  3751. >
  3752. <span>{this.state.commodityQuantity}</span>
  3753. </FormItem>
  3754. <FormItem
  3755. className="half-item"
  3756. {...formItemLayout}
  3757. label="官费"
  3758. style={{ display: this.state.displayFees }}
  3759. >
  3760. <span>
  3761. {this.state.officialCost == 0 ? "无官费" : "有官费"}
  3762. </span>
  3763. </FormItem>
  3764. <FormItem
  3765. className="half-item"
  3766. {...formItemLayout}
  3767. label="费减"
  3768. style={{ display: this.state.displayFees }}
  3769. >
  3770. <span>
  3771. {this.state.costReduction == 0 ? "无费减" : "有费减"}
  3772. </span>
  3773. </FormItem>
  3774. <FormItem
  3775. className="half-item"
  3776. {...formItemLayout}
  3777. label="金额(万元)"
  3778. >
  3779. <span>{this.state.commodityPrice ? "***" : 0}</span>
  3780. </FormItem>
  3781. <FormItem
  3782. className="half-item"
  3783. {...formItemLayout}
  3784. label="主要项目"
  3785. >
  3786. <span>{getboutique(this.state.main)}</span>
  3787. </FormItem>
  3788. <div className="clearfix">
  3789. <FormItem
  3790. labelCol={{ span: 3 }}
  3791. wrapperCol={{ span: 18 }}
  3792. label="服务说明"
  3793. >
  3794. <span>{this.state.taskComment}</span>
  3795. </FormItem>
  3796. </div>
  3797. </div>
  3798. </Spin>
  3799. </Form>
  3800. </Modal>
  3801. <Modal
  3802. maskClosable={false}
  3803. visible={this.state.speVisible}
  3804. onOk={this.visitOk}
  3805. onCancel={this.visitCancel}
  3806. width="900px"
  3807. title=""
  3808. footer=""
  3809. className="admin-desc-content"
  3810. >
  3811. <Tabs activeKey={this.state.activeKey} onChange={this.orderChange}>
  3812. <TabPane tab="项目概况" key="1">
  3813. <div className="clearfix">
  3814. <FormItem
  3815. className="half-item"
  3816. {...formItemLayout}
  3817. label="当前项目情况"
  3818. >
  3819. <Radio.Group
  3820. value={this.state.status}
  3821. onChange={(e) => {
  3822. this.setState({ status: e.target.value });
  3823. }}
  3824. >
  3825. <Radio value={0}>开启</Radio>
  3826. <Radio value={1}>暂停</Radio>
  3827. </Radio.Group>
  3828. <Button
  3829. type="primary"
  3830. size="small"
  3831. style={{ marginTop: "5px", position: "absolute" }}
  3832. onClick={this.caozuorizhi}
  3833. >
  3834. 操作日志
  3835. </Button>
  3836. </FormItem>
  3837. <FormItem
  3838. className="half-item"
  3839. {...formItemLayout}
  3840. label="合同编号"
  3841. >
  3842. <span>{this.state.contractNo}</span>
  3843. </FormItem>
  3844. </div>
  3845. <div className="clearfix">
  3846. <FormItem
  3847. className="half-item"
  3848. {...formItemLayout}
  3849. label="项目状态"
  3850. >
  3851. <Select
  3852. placeholder="选择项目状态"
  3853. style={{ width: "200px" }}
  3854. value={this.state.projectStatus}
  3855. onChange={(e) => {
  3856. this.setState({ projectStatus: e });
  3857. }}
  3858. >
  3859. {projectStatus.map(function (item) {
  3860. return (
  3861. <Select.Option key={item.value}>
  3862. {item.key}
  3863. </Select.Option>
  3864. );
  3865. })}
  3866. </Select>
  3867. </FormItem>
  3868. <FormItem
  3869. className="half-item"
  3870. {...formItemLayout}
  3871. label="是否特批"
  3872. >
  3873. <span>{getApproval(this.state.approval)}</span>
  3874. </FormItem>
  3875. <FormItem
  3876. className="half-item"
  3877. {...formItemLayout}
  3878. label="结算状态"
  3879. >
  3880. <span>
  3881. {getLiquidationStatus(this.state.liquidationStatus)}
  3882. </span>
  3883. </FormItem>
  3884. <FormItem
  3885. className="half-item"
  3886. {...formItemLayout}
  3887. label="流程状态"
  3888. >
  3889. <span>{getProcessStatus(this.state.processStatus)}</span>
  3890. </FormItem>
  3891. <FormItem
  3892. className="half-item"
  3893. {...formItemLayout}
  3894. label="订单编号"
  3895. >
  3896. <span>{this.state.orderNo}</span>
  3897. </FormItem>
  3898. </div>
  3899. <div className="clearfix">
  3900. <FormItem
  3901. className="half-item"
  3902. {...formItemLayout}
  3903. label="满意度表格"
  3904. >
  3905. <Radio.Group
  3906. value={this.state.formRetrieve}
  3907. onChange={(e) => {
  3908. this.setState({ formRetrieve: e.target.value });
  3909. }}
  3910. >
  3911. <Radio value={0}>未收回</Radio>
  3912. <Radio value={1}>已收回</Radio>
  3913. <Radio value={2}>其他</Radio>
  3914. </Radio.Group>
  3915. </FormItem>
  3916. <FormItem
  3917. className="half-item"
  3918. {...formItemLayout}
  3919. label="退单"
  3920. >
  3921. <Radio.Group
  3922. value={this.state.taskRefund}
  3923. onChange={(e) => {
  3924. this.setState({ taskRefund: e.target.value });
  3925. }}
  3926. >
  3927. <Radio value={0}>已完成</Radio>
  3928. <Radio value={1}>未完成</Radio>
  3929. <Radio value={2}>其他</Radio>
  3930. </Radio.Group>
  3931. </FormItem>
  3932. </div>
  3933. <div className="clearfix">
  3934. {
  3935. <FormItem
  3936. className="half-item"
  3937. {...formItemLayout}
  3938. label="(满意度)备注"
  3939. >
  3940. <Input
  3941. type="textarea"
  3942. placeholder="请输入备注"
  3943. rows={2}
  3944. value={this.state.retrieveContent}
  3945. onChange={(e) => {
  3946. this.setState({ retrieveContent: e.target.value });
  3947. }}
  3948. />
  3949. </FormItem>
  3950. }
  3951. {
  3952. <FormItem
  3953. className="half-item"
  3954. {...formItemLayout}
  3955. label="(退单)备注"
  3956. >
  3957. <Input
  3958. type="textarea"
  3959. placeholder="请输入备注"
  3960. rows={2}
  3961. value={this.state.refundContent}
  3962. onChange={(e) => {
  3963. this.setState({ refundContent: e.target.value });
  3964. }}
  3965. />
  3966. </FormItem>
  3967. }
  3968. </div>
  3969. <div className="clearfix">
  3970. <h3 className="sub-title">订单负责人信息</h3>
  3971. <FormItem
  3972. className="half-item"
  3973. {...formItemLayout}
  3974. label="负责人"
  3975. >
  3976. <span>
  3977. {this.state.salesmanName + "(" + this.state.depName + ")"}
  3978. </span>
  3979. </FormItem>
  3980. <FormItem
  3981. className="half-item"
  3982. {...formItemLayout}
  3983. label="负责人电话"
  3984. >
  3985. <span>{this.state.salesmanMobile}</span>
  3986. </FormItem>
  3987. <FormItem
  3988. className="half-item"
  3989. {...formItemLayout}
  3990. label="当前财务负责人"
  3991. >
  3992. <span>{this.state.nowFinance}</span>
  3993. </FormItem>
  3994. <FormItem
  3995. className="half-item"
  3996. {...formItemLayout}
  3997. label="当前财务负责人电话"
  3998. >
  3999. <span>{this.state.nowFinanceMobile}</span>
  4000. </FormItem>
  4001. <FormItem
  4002. className="half-item"
  4003. {...formItemLayout}
  4004. style={{ opacity: ".5" }}
  4005. label="原负责人"
  4006. >
  4007. <span>{this.state.oldSalesmanName}</span>
  4008. </FormItem>
  4009. <FormItem
  4010. className="half-item"
  4011. {...formItemLayout}
  4012. style={{ opacity: ".5" }}
  4013. label="原负责人电话"
  4014. >
  4015. <span>{this.state.oldSalesmanMobile}</span>
  4016. </FormItem>
  4017. <FormItem
  4018. className="half-item"
  4019. {...formItemLayout}
  4020. style={{ opacity: ".5" }}
  4021. label="实际财务操作人"
  4022. >
  4023. <span>{this.state.financeName}</span>
  4024. </FormItem>
  4025. <FormItem
  4026. className="half-item"
  4027. {...formItemLayout}
  4028. style={{ opacity: ".5" }}
  4029. label="实际财务操作人电话"
  4030. >
  4031. <span>{this.state.financeMobile}</span>
  4032. </FormItem>
  4033. <FormItem
  4034. className="half-item"
  4035. {...formItemLayout}
  4036. label="订单留言"
  4037. >
  4038. <span>{this.state.orderRemarks}</span>
  4039. </FormItem>
  4040. <FormItem className="half-item" {...formItemLayout} label="">
  4041. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  4042. </FormItem>
  4043. <OrderRiZi
  4044. dataSourcerizhi={this.state.dataSourceY}
  4045. closeOrderLog={this.closeOrderLog}
  4046. visible={this.state.avisible}
  4047. loading={this.state.loading}
  4048. />
  4049. </div>
  4050. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  4051. <div className="clearfix">
  4052. <h3 className="sub-title">联系信息</h3>
  4053. <FormItem
  4054. className="half-item"
  4055. {...formItemLayout}
  4056. label="客户名称"
  4057. >
  4058. <span>{this.state.userName}</span>
  4059. </FormItem>
  4060. <FormItem
  4061. className="half-item"
  4062. {...formItemLayout}
  4063. label="企业法人"
  4064. >
  4065. <Input
  4066. placeholder="请输入法人名称"
  4067. value={this.state.legalPerson}
  4068. style={{ width: "200px" }}
  4069. onChange={(e) => {
  4070. this.setState({ legalPerson: e.target.value });
  4071. }}
  4072. ref="commodityQuantity"
  4073. />
  4074. </FormItem>
  4075. <FormItem
  4076. className="half-item"
  4077. {...formItemLayout}
  4078. label="法人电话"
  4079. >
  4080. <Input
  4081. placeholder="请输入法人电话"
  4082. value={this.state.legalPersonTel}
  4083. style={{ width: "200px" }}
  4084. onChange={(e) => {
  4085. this.setState({ legalPersonTel: e.target.value });
  4086. }}
  4087. ref="commodityQuantity"
  4088. />
  4089. </FormItem>
  4090. <FormItem
  4091. className="half-item"
  4092. {...formItemLayout}
  4093. label="客户联系人"
  4094. >
  4095. <Input
  4096. placeholder="请输入联系人名称"
  4097. value={this.state.contacts}
  4098. style={{ width: "200px" }}
  4099. onChange={(e) => {
  4100. this.setState({ contacts: e.target.value });
  4101. }}
  4102. ref="commodityQuantity"
  4103. />
  4104. </FormItem>
  4105. <FormItem
  4106. className="half-item"
  4107. {...formItemLayout}
  4108. label="联系人电话"
  4109. >
  4110. <Input
  4111. placeholder="请输入联系人电话"
  4112. value={this.state.contactMobile}
  4113. style={{ width: "200px" }}
  4114. onChange={(e) => {
  4115. this.setState({ contactMobile: e.target.value });
  4116. }}
  4117. ref="commodityQuantity"
  4118. />
  4119. </FormItem>
  4120. <FormItem
  4121. className="half-item"
  4122. {...formItemLayout}
  4123. label="企业地址"
  4124. >
  4125. <Cascader
  4126. options={areaSelect()}
  4127. value={this.state.ProvinceCity}
  4128. placeholder="选择城市"
  4129. style={{ width: "200px" }}
  4130. onChange={(e) => {
  4131. this.setState({ ProvinceCity: e });
  4132. }}
  4133. />
  4134. </FormItem>
  4135. <FormItem
  4136. className="half-item"
  4137. {...formItemLayout}
  4138. label=""
  4139. ></FormItem>
  4140. <FormItem className="half-item" {...formItemLayout} label="">
  4141. <Input
  4142. placeholder="请输入详细地址"
  4143. value={this.state.postalAddress}
  4144. style={{ width: "200px", marginLeft: "12em" }}
  4145. onChange={(e) => {
  4146. this.setState({ postalAddress: e.target.value });
  4147. }}
  4148. ref="commodityQuantity"
  4149. />
  4150. </FormItem>
  4151. </div>
  4152. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  4153. <div className="clearfix">
  4154. <h3 className="sub-title">项目信息</h3>
  4155. <FormItem
  4156. className="half-item"
  4157. {...formItemLayout}
  4158. label="项目编号"
  4159. >
  4160. <span>
  4161. {this.state.splitStatus == 2
  4162. ? this.state.splitSuper + "-" + this.state.splitId
  4163. : this.state.id}
  4164. </span>
  4165. </FormItem>
  4166. <FormItem
  4167. className="half-item"
  4168. {...formItemLayout}
  4169. label="项目名称"
  4170. >
  4171. <span>{this.state.taskName}</span>
  4172. </FormItem>
  4173. <FormItem
  4174. className="half-item"
  4175. {...formItemLayout}
  4176. label="项目状态"
  4177. >
  4178. <Select
  4179. placeholder="选择项目状态"
  4180. style={{ width: "200px" }}
  4181. value={this.state.taskStatus}
  4182. onChange={(e) => {
  4183. this.setState({ taskStatus: e });
  4184. }}
  4185. >
  4186. {taskStatus.map(function (item) {
  4187. return (
  4188. <Select.Option key={item.value}>
  4189. {item.key}
  4190. </Select.Option>
  4191. );
  4192. })}
  4193. </Select>
  4194. </FormItem>
  4195. <FormItem
  4196. className="half-item"
  4197. {...formItemLayout}
  4198. label="项目类别"
  4199. >
  4200. <span>{this.state.cname}</span>
  4201. </FormItem>
  4202. <FormItem
  4203. className="half-item"
  4204. {...formItemLayout}
  4205. label="证书编号"
  4206. >
  4207. <Input
  4208. placeholder="请输入证书编号"
  4209. value={this.state.certificateNumber}
  4210. style={{ width: "200px" }}
  4211. onChange={(e) => {
  4212. this.setState({ certificateNumber: e.target.value });
  4213. }}
  4214. ref="commodityQuantity"
  4215. />
  4216. </FormItem>
  4217. </div>
  4218. <div className="clearfix" style={{ marginTop: "10px" }}>
  4219. <FormItem
  4220. labelCol={{ span: 3 }}
  4221. wrapperCol={{ span: 14 }}
  4222. label="附件"
  4223. >
  4224. <Picture
  4225. fileList={(e) => {
  4226. this.setState({ attachmentUrl: e });
  4227. }}
  4228. pictureUrl={this.state.attachmentUrl}
  4229. visible={this.props.visible}
  4230. data={{
  4231. sign: "order_task_file",
  4232. url: "/api/admin/orderProject/uploadOrderTaskFile",
  4233. number: 8,
  4234. }}
  4235. />
  4236. </FormItem>
  4237. </div>
  4238. <div className="clearfix">
  4239. <FormItem
  4240. labelCol={{ span: 3 }}
  4241. wrapperCol={{ span: 16 }}
  4242. label="备注"
  4243. >
  4244. <Input
  4245. type="textarea"
  4246. placeholder="请输入备注"
  4247. rows={4}
  4248. value={this.state.taskComment}
  4249. onChange={(e) => {
  4250. this.setState({ taskComment: e.target.value });
  4251. }}
  4252. />
  4253. </FormItem>
  4254. </div>
  4255. <div className="clearfix">
  4256. <h3 className="sub-title">项目申报进度</h3>
  4257. <FormItem
  4258. className="half-item"
  4259. {...formItemLayout}
  4260. label="申报批次"
  4261. >
  4262. <Select
  4263. value={
  4264. this.state.declarationBatch
  4265. ? this.state.declarationBatch
  4266. : undefined
  4267. }
  4268. placeholder="请选择批次"
  4269. style={{ width: 200 }}
  4270. onChange={(e) => {
  4271. this.setState({
  4272. declarationBatch: e,
  4273. });
  4274. }}
  4275. >
  4276. <Option value={1}>第一批</Option>
  4277. <Option value={2}>第二批</Option>
  4278. <Option value={3}>第三批</Option>
  4279. <Option value={4}>第四批</Option>
  4280. </Select>
  4281. </FormItem>
  4282. <FormItem
  4283. className="half-item"
  4284. {...formItemLayout}
  4285. label="软著派单数量"
  4286. >
  4287. <span>{this.state.commodityQuantity}</span>
  4288. <Button
  4289. type="primary"
  4290. size="small"
  4291. style={{ marginLeft: "45px" }}
  4292. onClick={this.addcontact}
  4293. >
  4294. +增加下证信息
  4295. </Button>
  4296. </FormItem>
  4297. <div className="patent-table">
  4298. <Spin spinning={this.state.loading}>
  4299. <Table
  4300. columns={this.state.ContactsLists}
  4301. dataSource={this.state.contactList}
  4302. pagination={false}
  4303. bordered
  4304. size="small"
  4305. />
  4306. </Spin>
  4307. </div>
  4308. </div>
  4309. <div className="clearfix">
  4310. <h3 className="sub-title">项目业务</h3>
  4311. <div className="patent-table">
  4312. <Spin spinning={this.state.loading}>
  4313. <Table
  4314. columns={this.state.columnsX}
  4315. dataSource={this.state.dataSourceX}
  4316. pagination={this.state.paginations}
  4317. onRowClick={this.tableRowClickX}
  4318. bordered
  4319. size="small"
  4320. />
  4321. </Spin>
  4322. </div>
  4323. </div>
  4324. <div className="clearfix">
  4325. <Button
  4326. className="cancel"
  4327. type="primary"
  4328. onClick={this.tijiaoOk}
  4329. style={{ marginLeft: "200px", marginTop: "10px" }}
  4330. htmlType="submit"
  4331. >
  4332. 保存
  4333. </Button>
  4334. <Button
  4335. className="cancel"
  4336. type="ghost"
  4337. onClick={this.visitCancel}
  4338. style={{ marginLeft: "50px", marginTop: "10px" }}
  4339. >
  4340. 取消
  4341. </Button>
  4342. </div>
  4343. </TabPane>
  4344. <TabPane tab="外包(不走本部)" key="2">
  4345. {this.state.refundStatus != 0 && this.state.refundStatus != 1 ? (
  4346. <div style={{ marginTop: 10 }}>
  4347. <div className="clearfix">
  4348. <FormItem
  4349. className="half-item"
  4350. {...formItemLayout}
  4351. label={
  4352. <span>
  4353. <strong style={{ color: "#f00" }}>*</strong>
  4354. 外包公司
  4355. </span>
  4356. }
  4357. >
  4358. <Input
  4359. value={this.state.companyName}
  4360. onChange={(e) => {
  4361. this.setState({
  4362. companyName: e.target.value,
  4363. });
  4364. }}
  4365. placeholder="请填写外包公司名称"
  4366. />
  4367. </FormItem>
  4368. <span className="tip" style={{ color: "red" }}>
  4369. 如多个公司,请用间隔
  4370. </span>
  4371. </div>
  4372. <div className="clearfix">
  4373. <FormItem
  4374. className="half-item"
  4375. {...formItemLayout}
  4376. label={
  4377. <span>
  4378. <strong style={{ color: "#f00" }}>*</strong>
  4379. 单价(万元)
  4380. </span>
  4381. }
  4382. >
  4383. <Input
  4384. value={this.state.unitPrice}
  4385. onChange={(e) => {
  4386. this.setState({
  4387. unitPrice: e.target.value,
  4388. });
  4389. }}
  4390. placeholder="请填写本次外包公司的价格"
  4391. />
  4392. </FormItem>
  4393. </div>
  4394. <div className="clearfix">
  4395. <FormItem
  4396. className="half-item"
  4397. {...formItemLayout}
  4398. label={
  4399. <span>
  4400. <strong style={{ color: "#f00" }}>*</strong>
  4401. 数量(个)
  4402. </span>
  4403. }
  4404. >
  4405. <Input
  4406. value={this.state.unitNumber}
  4407. onChange={(e) => {
  4408. this.setState({
  4409. unitNumber: e.target.value,
  4410. });
  4411. }}
  4412. placeholder="请填写本次外包公司的价格"
  4413. />
  4414. </FormItem>
  4415. </div>
  4416. <div className="clearfix">
  4417. <FormItem
  4418. className="half-item"
  4419. {...formItemLayout}
  4420. label={
  4421. <span>
  4422. <strong style={{ color: "#f00" }}>*</strong>
  4423. 总金额(万元)
  4424. </span>
  4425. }
  4426. >
  4427. <Input
  4428. value={this.state.amount}
  4429. onChange={(e) => {
  4430. this.setState({
  4431. amount: e.target.value,
  4432. });
  4433. }}
  4434. placeholder="请填写本次外包公司的价格"
  4435. />
  4436. </FormItem>
  4437. </div>
  4438. <div className="clearfix">
  4439. <FormItem
  4440. className="half-item"
  4441. {...formItemLayout}
  4442. label={
  4443. <span>
  4444. <strong style={{ color: "#f00" }}>*</strong>备注
  4445. </span>
  4446. }
  4447. >
  4448. <TextArea
  4449. rows={4}
  4450. value={this.state.outsourceRemarks}
  4451. onChange={(e) => {
  4452. this.setState({
  4453. outsourceRemarks: e.target.value,
  4454. });
  4455. }}
  4456. placeholder="请输入备注"
  4457. />
  4458. </FormItem>
  4459. </div>
  4460. {/*<div className="clearfix">
  4461. <FormItem className="half-item"
  4462. {...formItemLayout}
  4463. label="上传协议文件" style={{height:"auto"}}>
  4464. <Upload header={{authorization: 'authorization-text'}} action={globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"}
  4465. data={(e)=>{
  4466. return {
  4467. 'sign': e.name.substring(0,e.name.lastIndexOf("."))
  4468. }
  4469. }}
  4470. fileList={this.state.fileUrl}
  4471. onChange={(e)=>{
  4472. this.setState({
  4473. attachmentUrl:e.fileList,
  4474. fileUrl:e.fileList
  4475. })
  4476. }}>
  4477. {fileUrl.length>1?null:<Button>
  4478. <Icon type="upload" /> 点击上传
  4479. </Button>}
  4480. </Upload>
  4481. <span className="tip" style={{display:"inline-block"}}>支持文件格式: doc,excel,ppt</span>
  4482. </FormItem>
  4483. </div>*/}
  4484. <p
  4485. className="tip"
  4486. style={{
  4487. paddingBottom: "12px",
  4488. width: "240px",
  4489. marginLeft: "145px",
  4490. color: "red",
  4491. }}
  4492. >
  4493. 首次派单项目,需上传协议,第2次起,同项目,只需写外包公司
  4494. </p>
  4495. <div className="clearfix">
  4496. <FormItem
  4497. labelCol={{ span: 4 }}
  4498. wrapperCol={{ span: 18 }}
  4499. label={
  4500. <span>
  4501. <strong style={{ color: "#f00" }}>*</strong>
  4502. 合同/协议扫描件
  4503. </span>
  4504. }
  4505. >
  4506. <PicturesWall
  4507. fileList={this.getOrgCodeUrlWai}
  4508. pictureUrl={this.state.pictureUrl}
  4509. />
  4510. <p style={{ color: "red" }}>图片建议:要清晰。</p>
  4511. </FormItem>
  4512. </div>
  4513. <div className="clearfix">
  4514. <div
  4515. style={{
  4516. display: "inline-black",
  4517. textAlign: "center",
  4518. }}
  4519. >
  4520. <Button
  4521. type="primary"
  4522. loading={this.state.loading}
  4523. onClick={this.sureOut}
  4524. >
  4525. 确认发起外包,不通过总部
  4526. </Button>
  4527. <p className="tip" style={{ color: "red" }}>
  4528. 提示:高于总部价格,费用个人承担
  4529. </p>
  4530. </div>
  4531. </div>
  4532. </div>
  4533. ) : (
  4534. <div>
  4535. <div className="clearfix">
  4536. <FormItem
  4537. className="half-item"
  4538. {...formItemLayout}
  4539. label="外包公司"
  4540. >
  4541. <span>{this.state.companyName}</span>
  4542. </FormItem>
  4543. </div>
  4544. <div className="clearfix">
  4545. <FormItem
  4546. className="half-item"
  4547. {...formItemLayout}
  4548. label="单价(万元)"
  4549. >
  4550. <span>{this.state.unitPrice}</span>
  4551. </FormItem>
  4552. </div>
  4553. <div className="clearfix">
  4554. <FormItem
  4555. className="half-item"
  4556. {...formItemLayout}
  4557. label="数量(个)"
  4558. >
  4559. <span>{this.state.unitNumber}</span>
  4560. </FormItem>
  4561. </div>
  4562. <div className="clearfix">
  4563. <FormItem
  4564. className="half-item"
  4565. {...formItemLayout}
  4566. label="总金额(万元)"
  4567. >
  4568. <span>{this.state.amount}</span>
  4569. </FormItem>
  4570. </div>
  4571. <div className="clearfix">
  4572. <FormItem
  4573. className="half-item"
  4574. {...formItemLayout}
  4575. label="备注"
  4576. >
  4577. <span>{this.state.outsourceRemarks}</span>
  4578. </FormItem>
  4579. </div>
  4580. {/*<div className="clearfix">
  4581. <FormItem className="half-item" style={{height:'auto'}}
  4582. {...formItemLayout}
  4583. label="上传协议文件" >
  4584. <Upload header={{authorization: 'authorization-text'}} action={globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"}
  4585. data={(e)=>{
  4586. return {
  4587. 'sign': e.name.substring(0,e.name.lastIndexOf("."))
  4588. }
  4589. }}
  4590. fileList={this.state.fileUrl}
  4591. showUploadList={{showRemoveIcon:false}}
  4592. onPreview={(e)=>{
  4593. let url = window.location.href.substring(7)
  4594. window.location.href="http://"+url.substring(0,url.indexOf("/"))+"/api/admin/outsourceOrg//downloadFile?path="+e.response.data
  4595. }}
  4596. >
  4597. </Upload>
  4598. </FormItem>
  4599. </div>*/}
  4600. <div className="clearfix">
  4601. <FormItem
  4602. labelCol={{ span: 4 }}
  4603. wrapperCol={{ span: 18 }}
  4604. label="合同/协议扫描件"
  4605. >
  4606. <Upload
  4607. className="demandDetailShow-upload"
  4608. listType="picture-card"
  4609. fileList={this.state.pictureUrl}
  4610. onPreview={(file) => {
  4611. this.setState({
  4612. previewImage: file.url || file.thumbUrl,
  4613. previewVisible: true,
  4614. });
  4615. }}
  4616. ></Upload>
  4617. <Modal
  4618. maskClosable={false}
  4619. footer={null}
  4620. visible={this.state.previewVisible}
  4621. onCancel={() => {
  4622. this.setState({ previewVisible: false });
  4623. }}
  4624. >
  4625. <img
  4626. alt=""
  4627. style={{ width: "100%" }}
  4628. src={this.state.previewImage || ""}
  4629. />
  4630. </Modal>
  4631. </FormItem>
  4632. </div>
  4633. </div>
  4634. )}
  4635. {this.state.refundStatus == 1 ||
  4636. this.state.refundStatus == 0 ||
  4637. this.state.refundStatus == 2 ? (
  4638. <div className="clearfix">
  4639. <hr className="division" />
  4640. <div
  4641. className="clearfix"
  4642. style={{
  4643. display: this.state.refundStatus == 0 ? "none" : "block",
  4644. }}
  4645. >
  4646. <FormItem
  4647. className="half-item"
  4648. {...formItemLayout}
  4649. label="审核意见"
  4650. >
  4651. <span>{this.state.remarks}</span>
  4652. </FormItem>
  4653. </div>
  4654. <div className="clearfix">
  4655. <FormItem
  4656. className="half-item"
  4657. {...formItemLayout}
  4658. label="审核结果"
  4659. >
  4660. <span>{getRefundStatus(this.state.refundStatus)}</span>
  4661. </FormItem>
  4662. </div>
  4663. <div
  4664. className="clearfix"
  4665. style={{
  4666. display: this.state.refundStatus == 0 ? "none" : "block",
  4667. }}
  4668. >
  4669. <FormItem
  4670. className="half-item"
  4671. {...formItemLayout}
  4672. label="审核时间"
  4673. >
  4674. <span>{this.state.auditTimes}</span>
  4675. </FormItem>
  4676. </div>
  4677. </div>
  4678. ) : (
  4679. ""
  4680. )}
  4681. </TabPane>
  4682. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  4683. <TabPane tab="订单详情" key="3">
  4684. <Spin spinning={this.state.loading}>
  4685. <OrderDetail
  4686. orderData={this.state.orderData}
  4687. getOrderLog={this.getOrderLog}
  4688. dataSourceX={this.state.dataSourceX}
  4689. contactList={this.state.jiedian}
  4690. orderNo={this.state.orderNo}
  4691. totalCui={this.state.totalCui}
  4692. contactListNew={this.state.jiedianNew}
  4693. pictureUrl={this.state.contractPictureUrl}
  4694. />
  4695. </Spin>
  4696. </TabPane>
  4697. ) : (
  4698. ""
  4699. )}
  4700. </Tabs>
  4701. </Modal>
  4702. <Modal
  4703. width="800px"
  4704. visible={this.state.visibleA}
  4705. onCancel={this.visitCancelA}
  4706. title="操作日志"
  4707. footer=""
  4708. className="admin-desc-content"
  4709. >
  4710. <div className="patent-table patent-table-center">
  4711. <Spin spinning={this.state.loading}>
  4712. <Table
  4713. columns={this.state.columnsA}
  4714. dataSource={this.state.dataSourceA}
  4715. pagination={false}
  4716. bordered
  4717. size="small"
  4718. />
  4719. </Spin>
  4720. </div>
  4721. </Modal>
  4722. <Modal
  4723. title="工时记录"
  4724. visible={this.state.timeVisible}
  4725. onCancel={this.timeClose}
  4726. width={800}
  4727. footer={null}
  4728. >
  4729. <Spin spinning={this.state.loading}>
  4730. <Table
  4731. columns={this.state.columnsTime}
  4732. dataSource={this.state.dataSourceTime}
  4733. pagination={false}
  4734. scroll={{ x: "max-content", y: 0 }}
  4735. bordered
  4736. size={"small"}
  4737. />
  4738. <p style={{ marginTop: 10, color: "red" }}>
  4739. 累计工时(小时):{this.state.recordHour}
  4740. </p>
  4741. </Spin>
  4742. </Modal>
  4743. <Modal
  4744. visible={this.state.ThirdListVisible}
  4745. onCancel={this.handleCancelclose}
  4746. width={800}
  4747. title="新增供应商"
  4748. footer=""
  4749. // width={1300}
  4750. className="admin-desc-content"
  4751. >
  4752. <Form
  4753. layout="horizontal"
  4754. // onSubmit={this.handleSubmit1}
  4755. // id="demand-form"
  4756. style={{ paddingBottom: "40px" }}
  4757. >
  4758. <Spin spinning={this.state.loading}>
  4759. <div className="clearfix">
  4760. <div className="clearfix">
  4761. <FormItem {...formItemLayout} label="供应商名称">
  4762. <AutoComplete
  4763. className="certain-category-search"
  4764. dropdownClassName="certain-category-search-dropdown"
  4765. dropdownMatchSelectWidth={false}
  4766. dropdownStyle={{ width: 220 }}
  4767. style={{ width: "220px" }}
  4768. dataSource={options}
  4769. placeholder="请输入供应商名称"
  4770. value={this.state.thirdCompanyName}
  4771. onChange={this.httpChange}
  4772. filterOption={true}
  4773. onBlur={this.blurChange}
  4774. onSelect={this.selectAuto}
  4775. required="required"
  4776. ></AutoComplete>
  4777. <span className="mandatory">*</span>
  4778. </FormItem>
  4779. </div>
  4780. <div className="clearfix">
  4781. <FormItem {...formItemLayout} label="单价(万元)">
  4782. <Input
  4783. value={this.state.thirdUnitPrice}
  4784. placeholder="请输入金额(必填项)"
  4785. required="required"
  4786. onBlur={this.calculatedAmount}
  4787. onChange={(e) => {
  4788. this.setState({
  4789. thirdUnitPrice: e.target.value,
  4790. });
  4791. }}
  4792. style={{ width: "220px" }}
  4793. />
  4794. <span className="mandatory">*</span>
  4795. </FormItem>
  4796. </div>
  4797. <div className="clearfix">
  4798. <FormItem {...formItemLayout} label="数量">
  4799. <Input
  4800. value={this.state.thirdQuantity}
  4801. placeholder="请输入数量(必填项)"
  4802. required="required"
  4803. onBlur={this.calculatedAmount}
  4804. onChange={(e) => {
  4805. this.setState({
  4806. thirdQuantity: e.target.value,
  4807. });
  4808. }}
  4809. style={{ width: "220px" }}
  4810. />
  4811. <span className="mandatory">*</span>
  4812. </FormItem>
  4813. </div>
  4814. <div className="clearfix">
  4815. <FormItem {...formItemLayout} label="总价(万元)">
  4816. <span>{this.state.currentTotalPrice}</span>
  4817. </FormItem>
  4818. </div>
  4819. <div className="clearfix">
  4820. <FormItem {...formItemLayout} label="材料">
  4821. <Select
  4822. value={getMaterialStatus(this.state.thirdMaterial)}
  4823. onChange={(val) => {
  4824. this.setState({
  4825. thirdMaterial: val,
  4826. });
  4827. }}
  4828. style={{ width: "220px" }}
  4829. defaultValue="0"
  4830. >
  4831. <Option value="1">有材料</Option>
  4832. <Option value="0">无材料</Option>
  4833. </Select>
  4834. <span className="mandatory">*</span>
  4835. </FormItem>
  4836. </div>
  4837. <div className="clearfix">
  4838. <FormItem {...formItemLayout} label="加急">
  4839. {/* <Input
  4840. value={this.state.thirdQuantity}
  4841. placeholder="请输入数量(必填项)"
  4842. required="required"
  4843. onBlur={this.calculatedAmount}
  4844. onChange={(e) => {
  4845. this.setState({
  4846. thirdQuantity: e.target.value,
  4847. });
  4848. }}
  4849. style={{ width: "220px" }}
  4850. /> */}
  4851. <Select
  4852. value={getUrgentStatus(this.state.thirdUrgent)}
  4853. onChange={(val) => {
  4854. this.setState({
  4855. thirdUrgent: val,
  4856. });
  4857. }}
  4858. style={{ width: "220px" }}
  4859. defaultValue="0"
  4860. >
  4861. <Option value="0">无加急</Option>
  4862. <Option value="1">加急3天</Option>
  4863. <Option value="2">加急4天</Option>
  4864. <Option value="3">加急5-10天</Option>
  4865. <Option value="4">加急11-15天</Option>
  4866. <Option value="5">加急16-20天</Option>
  4867. <Option value="6">加急21-25天</Option>
  4868. <Option value="7">加急26-30天</Option>
  4869. </Select>
  4870. <span className="mandatory">*</span>
  4871. </FormItem>
  4872. </div>
  4873. <div className="clearfix">
  4874. <FormItem
  4875. style={{ height: "auto" }}
  4876. labelCol={{ span: 4 }}
  4877. wrapperCol={{ span: 18 }}
  4878. label="备注"
  4879. >
  4880. <TextArea
  4881. rows={4}
  4882. placeholder="请输入备注"
  4883. ref="signTotalAmount"
  4884. style={{ width: "95%" }}
  4885. value={this.state.thirdRemarks}
  4886. onChange={(e) => {
  4887. this.setState({
  4888. thirdRemarks: e.target.value,
  4889. });
  4890. }}
  4891. />
  4892. </FormItem>
  4893. </div>
  4894. <div className="clearfix">
  4895. <div className="addSave" style={{ marginTop: "15px" }}>
  4896. <Button
  4897. className="cancel"
  4898. type="primary"
  4899. onClick={this.handleCancelq}
  4900. style={{ marginLeft: "300px" }}
  4901. htmlType="submit"
  4902. >
  4903. 保存
  4904. </Button>
  4905. <Button
  4906. className="cancel"
  4907. type="ghost"
  4908. onClick={this.handleCancelclose}
  4909. style={{ marginLeft: "50px" }}
  4910. >
  4911. 取消
  4912. </Button>
  4913. </div>
  4914. </div>
  4915. </div>
  4916. </Spin>
  4917. </Form>
  4918. </Modal>
  4919. <Modal
  4920. visible={this.state.PayNodeVisible}
  4921. onCancel={this.handleCancelclose}
  4922. width={800}
  4923. title="新增付款节点"
  4924. footer=""
  4925. // width={1300}
  4926. className="admin-desc-content"
  4927. >
  4928. <Form
  4929. layout="horizontal"
  4930. // onSubmit={this.handleSubmit1}
  4931. // id="demand-form"
  4932. style={{ paddingBottom: "40px" }}
  4933. >
  4934. <Spin spinning={this.state.loading}>
  4935. <div className="clearfix">
  4936. <div className="clearfix">
  4937. <FormItem {...formItemLayout} label="供应商名称">
  4938. <AutoComplete
  4939. className="certain-category-search"
  4940. dropdownClassName="certain-category-search-dropdown"
  4941. dropdownMatchSelectWidth={false}
  4942. dropdownStyle={{ width: 220 }}
  4943. style={{ width: "220px" }}
  4944. dataSource={options}
  4945. placeholder="请输入供应商名称"
  4946. value={this.state.thirdCompanyName}
  4947. onChange={this.httpChange}
  4948. filterOption={true}
  4949. onBlur={this.blurChange}
  4950. onSelect={this.selectAuto}
  4951. required="required"
  4952. ></AutoComplete>
  4953. <span className="mandatory">*</span>
  4954. </FormItem>
  4955. </div>
  4956. <div className="clearfix">
  4957. <FormItem {...formItemLayout} label="付款科目">
  4958. <Input
  4959. value={this.state.thirdUnitPrice}
  4960. placeholder="请选择付款科目(必填项)"
  4961. required="required"
  4962. onBlur={this.calculatedAmount}
  4963. onChange={(e) => {
  4964. this.setState({
  4965. thirdUnitPrice: e.target.value,
  4966. });
  4967. }}
  4968. style={{ width: "220px" }}
  4969. />
  4970. <span className="mandatory">*</span>
  4971. </FormItem>
  4972. </div>
  4973. <div className="clearfix">
  4974. <FormItem {...formItemLayout} label="付款时间">
  4975. <Input
  4976. value={this.state.thirdQuantity}
  4977. placeholder="请输入数量(必填项)"
  4978. required="required"
  4979. onBlur={this.calculatedAmount}
  4980. onChange={(e) => {
  4981. this.setState({
  4982. thirdQuantity: e.target.value,
  4983. });
  4984. }}
  4985. style={{ width: "220px" }}
  4986. />
  4987. <span className="mandatory">*</span>
  4988. </FormItem>
  4989. </div>
  4990. <div className="clearfix">
  4991. <FormItem {...formItemLayout} label="数量">
  4992. <Input
  4993. value={this.state.thirdQuantity}
  4994. placeholder="请输入数量(必填项)"
  4995. required="required"
  4996. onBlur={this.calculatedAmount}
  4997. onChange={(e) => {
  4998. this.setState({
  4999. thirdQuantity: e.target.value,
  5000. });
  5001. }}
  5002. style={{ width: "220px" }}
  5003. />
  5004. <span className="mandatory">*</span>
  5005. </FormItem>
  5006. </div>
  5007. <div className="clearfix">
  5008. <FormItem {...formItemLayout} label="总价(万元)">
  5009. <span>{this.state.currentTotalPrice}</span>
  5010. </FormItem>
  5011. </div>
  5012. <div className="clearfix">
  5013. <div className="addSave" style={{ marginTop: "15px" }}>
  5014. <Button
  5015. className="cancel"
  5016. type="primary"
  5017. onClick={this.handleCancelq}
  5018. style={{ marginLeft: "300px" }}
  5019. htmlType="submit"
  5020. >
  5021. 保存
  5022. </Button>
  5023. <Button
  5024. className="cancel"
  5025. type="ghost"
  5026. onClick={this.handleCancelclose}
  5027. style={{ marginLeft: "50px" }}
  5028. >
  5029. 取消
  5030. </Button>
  5031. </div>
  5032. </div>
  5033. </div>
  5034. </Spin>
  5035. </Form>
  5036. </Modal>
  5037. </div>
  5038. );
  5039. },
  5040. });
  5041. export default Task;