myTaskOutsource.jsx 128 KB

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