myTaskOutsource.jsx 105 KB

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