myTaskOutsource.jsx 128 KB

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