myTaskOutsource.jsx 126 KB

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