myTaskOutsource.jsx 124 KB

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