myTaskOutsource.jsx 103 KB

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