myTask.jsx 145 KB

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