myTaskOutsource.jsx 124 KB

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