myTaskOutsource.jsx 128 KB

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