myTaskOutsource.jsx 128 KB

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