myTaskOutsource.jsx 130 KB

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