myTaskOutsource.jsx 128 KB

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