index.vue 52 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829
  1. <template>
  2. <fullscreen :fullscreen.sync="fullscreen" class="container">
  3. <div class="container-box">
  4. <toolList @iconCli="iconCli" :tooltit="tooltit"></toolList>
  5. <div style="overflow: hidden">
  6. <el-button
  7. style="float: right; margin-top: 10px"
  8. type="primary"
  9. @click="dialogCheck(3)"
  10. >添加</el-button
  11. >
  12. <el-button
  13. style="float: right; margin-top: 10px; margin-right: 20px"
  14. type="primary"
  15. @click="getStanding"
  16. >台账</el-button
  17. >
  18. </div>
  19. <div class="tabbox">
  20. <el-table
  21. height="calc(100% - 40px)"
  22. class="com-table"
  23. ref="multipleTable"
  24. :data="tableData"
  25. tooltip-effect="dark"
  26. size="small"
  27. border
  28. style="width: 100%"
  29. v-loading="loading"
  30. >
  31. <el-table-column prop="busiSubject" label="业务名称">
  32. </el-table-column>
  33. <el-table-column prop="createName" label="申请姓名">
  34. </el-table-column>
  35. <el-table-column prop="createTimeStr" label="申请时间">
  36. </el-table-column>
  37. <el-table-column prop="stsDesc" label="状态">
  38. <template slot-scope="scope">
  39. {{
  40. scope.row.taskName == "信息补填" && scope.row.stsDesc == "待办"
  41. ? "未办结"
  42. : scope.row.stsDesc
  43. }}
  44. </template>
  45. </el-table-column>
  46. <el-table-column label="操作" width="120px" align="center">
  47. <template slot-scope="scope">
  48. <el-button
  49. size="mini"
  50. type="primary"
  51. @click="dialogCheck(1, scope.row)"
  52. >查看</el-button
  53. >
  54. <el-button
  55. size="mini"
  56. type="danger"
  57. v-if="scope.row.sts != 1"
  58. @click="dialogCheck(2, scope.row)"
  59. >处理</el-button
  60. >
  61. <!-- <el-button size="mini" type="danger" @click="delLine(scope.row)">删除</el-button> -->
  62. </template>
  63. </el-table-column>
  64. </el-table>
  65. <el-pagination
  66. class="pageBox"
  67. @current-change="currchange"
  68. layout="prev, pager, next"
  69. background
  70. :total="total"
  71. >
  72. </el-pagination>
  73. </div>
  74. </div>
  75. <el-dialog
  76. :title="titname"
  77. :visible.sync="dialogStatus"
  78. width="50%"
  79. :destroy-on-close="true"
  80. :modal-append-to-body="false"
  81. :close-on-click-modal="false"
  82. :before-close="closedia"
  83. :fullscreen="true"
  84. :key="number"
  85. >
  86. <div v-loading="loadinged" class="simple-dialog">
  87. <el-form :model="infolist" ref="infolist" :rules="rules">
  88. <div class="info-line">
  89. <el-form-item prop="demandName">
  90. <span>需求名称</span>
  91. <el-input
  92. v-model="infolist.demandName"
  93. placeholder="需求名称"
  94. :disabled="disableStatus"
  95. >
  96. </el-input>
  97. </el-form-item>
  98. <el-form-item>
  99. <span>需求编号</span>
  100. <el-input v-model="infolist.woNo" placeholder="需求编号" disabled>
  101. </el-input>
  102. </el-form-item>
  103. <!-- <el-form-item prop="terminal">
  104. <span>申请流程</span>
  105. <el-select clearable v-model="terminal" placeholder="申请流程" :disabled="disableStatus">
  106. <el-option v-for="items in options" :key="items.procId" :label="items.procName"
  107. :value="items.procId">
  108. </el-option>
  109. </el-select>
  110. </el-form-item> -->
  111. <el-form-item>
  112. <span>紧急程度</span>
  113. <el-select
  114. clearable
  115. v-model="infolist.urgDegree"
  116. placeholder="紧急程度"
  117. :disabled="disableStatus"
  118. >
  119. <el-option
  120. v-for="items in urgDegreeopt"
  121. :key="items.id"
  122. :label="items.name"
  123. :value="items.name"
  124. >
  125. </el-option>
  126. </el-select>
  127. </el-form-item>
  128. <el-form-item>
  129. <span>业务主题</span>
  130. <el-input
  131. v-model="infolist.busiSubject"
  132. placeholder="业务主题"
  133. :disabled="disableStatus"
  134. >
  135. </el-input>
  136. </el-form-item>
  137. <el-form-item>
  138. <span>需求类别</span>
  139. <el-select
  140. clearable
  141. v-model="infolist.demandTypeCode"
  142. placeholder="需求类别"
  143. :disabled="disableStatus"
  144. >
  145. <el-option
  146. v-for="items in demandTypeopt"
  147. :key="items.dataCode"
  148. :label="items.dataName"
  149. :value="items.dataCode"
  150. >
  151. </el-option>
  152. </el-select>
  153. </el-form-item>
  154. <el-form-item>
  155. <span>承载渠道</span>
  156. <!-- //multiple -->
  157. <el-select
  158. clearable
  159. multiple
  160. v-model="infolist.carryChannelCode"
  161. placeholder="承载渠道"
  162. :disabled="disableStatus"
  163. >
  164. <el-option
  165. v-for="items in carryChannelopt"
  166. :key="items.dataCode"
  167. :label="items.dataName"
  168. :value="items.dataCode"
  169. >
  170. </el-option>
  171. </el-select>
  172. </el-form-item>
  173. <el-form-item>
  174. <span>加载周期</span>
  175. <el-date-picker
  176. :disabled="disableStatus"
  177. v-model="busiTime"
  178. type="daterange"
  179. placeholder="加载周期"
  180. style="display: inline-flex; width: calc(100% - 120px)"
  181. >
  182. </el-date-picker>
  183. </el-form-item>
  184. </div>
  185. <el-form-item class="info-line online">
  186. <span>需求背景</span>
  187. <el-input
  188. v-model="infolist.demandBackground"
  189. placeholder="需求背景"
  190. type="textarea"
  191. :autosize="{ minRows: 3, maxRows: 10 }"
  192. :disabled="disableStatus"
  193. >
  194. </el-input>
  195. </el-form-item>
  196. <el-form-item class="info-line online">
  197. <span>需求描述</span>
  198. <el-input
  199. v-model="infolist.demandDesc"
  200. placeholder="需求描述"
  201. type="textarea"
  202. :autosize="{ minRows: 3, maxRows: 10 }"
  203. :disabled="disableStatus"
  204. >
  205. </el-input>
  206. </el-form-item>
  207. <!-- 附件展示 -->
  208. <div
  209. style="padding: 0 20px 0 120px; margin-bottom: 20px"
  210. v-if="disableStatus"
  211. >
  212. <uploadDown
  213. :datalist="datalist"
  214. :dialogStatus="uploadstatus"
  215. ></uploadDown>
  216. </div>
  217. <!-- 附件上传 -->
  218. <div v-if="!disableStatus" class="info-line online">
  219. <span style="width: 80px">附件</span>
  220. <el-upload
  221. class="info-upload"
  222. :limit="3"
  223. action=""
  224. :on-preview="handlePreview"
  225. :on-remove="handleRemove"
  226. :http-request="handleSuccess"
  227. :file-list="file"
  228. drag
  229. multiple
  230. >
  231. <div class="upload">
  232. <i class="el-icon-upload"></i>
  233. <p class="el-upload__text">
  234. 将文件拖到此处,或<em>点击上传</em>
  235. </p>
  236. </div>
  237. </el-upload>
  238. </div>
  239. <!-- 信息补填的情况 -->
  240. <myUpload
  241. v-if="vision == '信息补填'"
  242. style="float: right; margin-bottom: 20px"
  243. @uploadBack="uploadBackin"
  244. :fileInfo="fileInfoin"
  245. :fileList="fileInfoin.fileList"
  246. ></myUpload>
  247. <div
  248. style="margin: 20px 0; padding: 0 20px"
  249. v-if="vision == '信息补填'"
  250. >
  251. <el-table
  252. class="com-table"
  253. ref="multipleTable"
  254. :data="infodatas"
  255. tooltip-effect="dark"
  256. size="small"
  257. border
  258. style="width: 100%"
  259. >
  260. <el-table-column prop="infoName" label="需求承接支撑方">
  261. <template slot-scope="scope">
  262. <el-input
  263. v-model="scope.row.factoryName"
  264. :disabled="titname != '审批'"
  265. ></el-input>
  266. </template>
  267. </el-table-column>
  268. <el-table-column prop="infoName" label="涉及发生工作量">
  269. <template slot-scope="scope">
  270. <el-input
  271. v-model="scope.row.workLoad"
  272. :disabled="titname != '审批'"
  273. ></el-input>
  274. </template>
  275. </el-table-column>
  276. <el-table-column
  277. label="操作"
  278. width="120px"
  279. align="center"
  280. v-if="titname == '审批'"
  281. >
  282. <template slot-scope="scope">
  283. <el-button
  284. size="mini"
  285. type="primary"
  286. @click="choline(1, scope)"
  287. >添加</el-button
  288. >
  289. <el-button
  290. size="mini"
  291. type="danger"
  292. @click="choline(2, scope)"
  293. >删除</el-button
  294. >
  295. </template>
  296. </el-table-column>
  297. </el-table>
  298. </div>
  299. <el-form-item class="info-line online" v-if="visionsts == '2'">
  300. <span>审批说明</span>
  301. <el-input
  302. v-model="remark"
  303. placeholder="审批说明"
  304. type="textarea"
  305. :rows="3"
  306. :disabled="titname == '查看'"
  307. >
  308. </el-input>
  309. </el-form-item>
  310. <div
  311. style="margin-bottom: 20px; padding: 0 20px"
  312. v-if="titname !== '添加'"
  313. >
  314. <el-table
  315. class="com-table"
  316. :data="rovaList"
  317. tooltip-effect="dark"
  318. size="small"
  319. border
  320. style="width: 100%"
  321. >
  322. <el-table-column prop="logNo" label="编号"> </el-table-column>
  323. <el-table-column prop="stepName" label="环节"> </el-table-column>
  324. <el-table-column prop="processName" label="处理人">
  325. </el-table-column>
  326. <el-table-column prop="processWorkNo" label="处理人工号">
  327. </el-table-column>
  328. <el-table-column prop="updateTimeStr" label="处理时间">
  329. </el-table-column>
  330. <el-table-column prop="remark" label="备注"> </el-table-column>
  331. </el-table>
  332. </div>
  333. </el-form>
  334. <div slot="footer" class="info-footer">
  335. <div v-if="titname === '添加' || step === '0'">
  336. <el-button type="primary" @click="handleApprove('送部门人员审核')"
  337. >送部门人员审核</el-button
  338. >
  339. <el-button type="primary" @click="handleApprove('送领导审核')"
  340. >送领导审核</el-button
  341. >
  342. <el-button @click="handleApprove('取消')">取消</el-button>
  343. </div>
  344. <div v-else>
  345. <el-button
  346. v-for="(item, index) in buttonList"
  347. :key="index"
  348. type="primary"
  349. @click="handleApprove(item)"
  350. >{{ item }}</el-button
  351. >
  352. <el-button @click="handleApprove('取消')">取消</el-button>
  353. </div>
  354. </div>
  355. </div>
  356. </el-dialog>
  357. <el-dialog
  358. title="选择审批领导"
  359. :visible.sync="checkLaeder"
  360. width="500px"
  361. :destroy-on-close="true"
  362. :modal-append-to-body="false"
  363. :close-on-click-modal="false"
  364. >
  365. <div>
  366. <el-form>
  367. <el-form-item
  368. label="审批领导"
  369. :rules="{
  370. required: true,
  371. message: '请选择审批领导',
  372. trigger: 'change',
  373. }"
  374. >
  375. <el-select v-model="leader">
  376. <el-option
  377. v-for="(item, index) in leaderList"
  378. :key="index"
  379. :label="item.label"
  380. :value="item.value"
  381. >
  382. </el-option>
  383. </el-select> </el-form-item
  384. ></el-form>
  385. </div>
  386. <div slot="footer">
  387. <el-button type="primary" size="small" @click="formSubmit(2)"
  388. >确 定</el-button
  389. >
  390. <el-button @click="checkLaeder = false" size="small">取 消</el-button>
  391. </div>
  392. </el-dialog>
  393. <el-dialog
  394. title="选择审批人"
  395. :visible.sync="checkexa"
  396. width="50%"
  397. :destroy-on-close="true"
  398. :modal-append-to-body="false"
  399. :close-on-click-modal="false"
  400. >
  401. <div>
  402. <el-form :model="infolist" ref="infolist" :rules="rules">
  403. <el-form-item prop="visiblec" class="info-line online">
  404. <span>审批人员</span>
  405. <deptTreeOnly
  406. class="tree"
  407. @treeCheck="treeCheckonly"
  408. :defaultList="defaultList"
  409. :type="depttype"
  410. :closeList="closeList"
  411. :reset-list="treeList"
  412. :only="only"
  413. ></deptTreeOnly>
  414. <div class="tree treeUser">
  415. <p v-for="(item, index) in treeList" :key="index">
  416. {{ item.label }}
  417. <i
  418. v-if="item.label"
  419. @click="deletes(item)"
  420. class="el-icon-error"
  421. ></i>
  422. </p>
  423. </div>
  424. </el-form-item>
  425. </el-form>
  426. <div slot="footer" style="text-align: right; padding-bottom: 20px">
  427. <el-button type="primary" @click="formSubmit(1)">确 定</el-button>
  428. <el-button @click="checkexa = false">取 消</el-button>
  429. </div>
  430. </div>
  431. </el-dialog>
  432. <myMessage
  433. :messTit="messTit"
  434. @closeMessage="closeMessage"
  435. :centerDialogVisible="centerDialogVisible"
  436. v-if="centerDialogVisible"
  437. ></myMessage>
  438. </fullscreen>
  439. </template>
  440. <script>
  441. import myMessage from "../../../components/myMessage.vue";
  442. import toolList from "../../../components/toolList";
  443. import myUpload from "../../../components/upload";
  444. import uploadDown from "../../../components/uploadDown.vue";
  445. import deptTreeOnly from "../performance/components/deptTreeOnly.vue";
  446. export default {
  447. components: {
  448. // mySearch,
  449. myMessage,
  450. toolList,
  451. myUpload,
  452. uploadDown,
  453. deptTreeOnly,
  454. },
  455. data() {
  456. return {
  457. rules: {
  458. demandName: [
  459. {
  460. required: true,
  461. trigger: "blur",
  462. message: "不能为空",
  463. },
  464. ],
  465. },
  466. // 操作名称
  467. operateName: "",
  468. woNo: "",
  469. // 当前进行到的步骤计数
  470. step: "",
  471. tooltit: "线上渠道业务需求",
  472. fullscreen: false,
  473. total: 0,
  474. // pageSize: 1,
  475. tableData: [],
  476. disableStatus: true,
  477. // 查看 审批 添加 弹出层 状态
  478. page: 1,
  479. pageSize: 10,
  480. file: [], // 附件数组
  481. titname: "",
  482. dialogStatus: false,
  483. number: 0,
  484. // 按钮标识
  485. type: "",
  486. // 联系人
  487. checkLaeder: false,
  488. checkexa: false,
  489. // 审核人组件只可选一人
  490. leader: "",
  491. leaderList: [
  492. {
  493. label: "王其侠(二级经理正职)",
  494. value: "wangqixia",
  495. },
  496. {
  497. label: "张志伟(二级经理副职)",
  498. value: "zhangzhiwei",
  499. },
  500. {
  501. label: "金鑫(二级经理副职)",
  502. value: "jinxin",
  503. },
  504. {
  505. label: "于洋(二级经理副职)",
  506. value: "yuyang01",
  507. },
  508. ],
  509. // 用来控制多选里的单选
  510. only:true,
  511. // 信息回显
  512. infolist: {},
  513. // 用户信息
  514. userInfo: {},
  515. buttonList: [
  516. "送部门人员审核",
  517. "送领导审核",
  518. "送申请人编号发送",
  519. "确认编号",
  520. "确认需求",
  521. "电商接口人阅办",
  522. "项目组送电商接口人阅办",
  523. "送其他人办理",
  524. "打回",
  525. ],
  526. params: {},
  527. centerDialogVisible: false,
  528. messTit: "",
  529. delid: "",
  530. loading: false,
  531. loadinged: false,
  532. fileInfo: {
  533. limit: 5,
  534. url: "/bpm/api/upload",
  535. fileList: [],
  536. },
  537. rovaList: [],
  538. vision: "",
  539. datalist: {
  540. url: "/bpm/api/download",
  541. type: 1,
  542. },
  543. uploadstatus: false,
  544. mydisable: 1,
  545. opname: "",
  546. opno: "",
  547. attList: [],
  548. options: [],
  549. terminal: "729289304205336576",
  550. // terminal: '722743473704595456',//722743473704595456省722748981018685440
  551. remark: "",
  552. visionsts: "1",
  553. visionchonly: false,
  554. ifopt: [
  555. {
  556. id: 1,
  557. name: "是",
  558. },
  559. {
  560. id: 0,
  561. name: "否",
  562. },
  563. ],
  564. infodatas: [{}, {}],
  565. busiTime: [],
  566. urgDegreeopt: [
  567. {
  568. id: 1,
  569. name: "正常",
  570. },
  571. {
  572. id: 2,
  573. name: "紧急",
  574. },
  575. {
  576. id: 3,
  577. name: "非常紧急",
  578. },
  579. ],
  580. demandTypeopt: [],
  581. carryChannelopt: [],
  582. treeList: [],
  583. treeListonly: {},
  584. defaultList: [],
  585. closeList: false,
  586. depttype: 0,
  587. fileInfoin: {
  588. type: "btn",
  589. typename: "导入",
  590. btntype: "primary",
  591. limit: 1,
  592. url: "/market/cChannelDemand/demandCarryImport",
  593. fileList: [],
  594. },
  595. tempSave: false,
  596. };
  597. },
  598. watch: {
  599. "datalist.attList"() {
  600. this.number++;
  601. },
  602. // tempSave(value) {
  603. // if (value) {
  604. // // 监听编辑状态,每20秒请求一次,注意函数不加()
  605. // this.timer = window.setInterval(this.temp, 20000);
  606. // } else {
  607. // // 停止监听
  608. // clearInterval(this.timer);
  609. // }
  610. // },
  611. },
  612. methods: {
  613. // 新的处理方法
  614. handlePreview(file) {
  615. console.log(file, "Preview");
  616. },
  617. handleRemove(file) {
  618. this.file = this.file.filter((el) => el.uid !== file.uid);
  619. },
  620. handleSuccess({ file }) {
  621. this.file.push(file);
  622. },
  623. handleApprove(type) {
  624. if (type === "取消") {
  625. this.dialogStatus = false;
  626. this.disableStatus = false;
  627. this.number++;
  628. this.infolist = {};
  629. return;
  630. }
  631. this.$refs.infolist.validate((val) => {
  632. if (val) {
  633. switch (type) {
  634. case "送部门人员审核":
  635. this.checkexa = true;
  636. this.type = "0";
  637. console.log("送部门人员审核");
  638. break;
  639. case "送领导审核":
  640. this.type = "1";
  641. // this.formSubmit()
  642. this.checkLaeder = true;
  643. console.log("送领导审核");
  644. break;
  645. case "送申请人编号发送":
  646. this.handleSendNo();
  647. break;
  648. case "确认编号":
  649. this.handleComfirmNo();
  650. break;
  651. case "打回":
  652. this.handleBackRecord();
  653. break;
  654. case "确认需求":
  655. this.checkexa = true;
  656. this.type = "0";
  657. this.operateName = "确认需求";
  658. break;
  659. case "电商接口人阅办":
  660. this.checkexa = true;
  661. this.type = "0";
  662. this.operateName = "电商接口人阅办";
  663. break;
  664. case "项目组送电商接口人阅办":
  665. this.checkexa = true;
  666. this.type = "0";
  667. this.operateName = "项目组送电商接口人阅办";
  668. break;
  669. case "送其他人办理":
  670. this.operateName = "送其他人办理";
  671. this.handleDeliverReadOfficeOrOtherDo("2");
  672. break;
  673. }
  674. }
  675. });
  676. },
  677. // 项目组送电商接口人阅办或送其他人办理
  678. handleDeliverReadOfficeOrOtherDo(type) {
  679. console.log(this.operateName, type);
  680. let receiveId = [];
  681. let receiveName = [];
  682. // console.log(this.treeList);
  683. this.treeList.forEach((item) => {
  684. receiveId.push(item.id);
  685. receiveName.push(item.loginNoStr);
  686. });
  687. let reqdata = {};
  688. if (type === "2") {
  689. reqdata = {
  690. countersignedId: "",
  691. operateName: this.operateName,
  692. reviewOpinion: this.operateName + "," + this.remark,
  693. type,
  694. };
  695. } else {
  696. this.only = false
  697. reqdata = {
  698. countersignedId: "",
  699. receiveId: receiveId.join(","),
  700. receiveName: receiveName.join(","),
  701. reviewOpinion: this.operateName + "," + this.remark,
  702. type,
  703. };
  704. }
  705. console.log(reqdata);
  706. this.$http({
  707. url: "/mkOnlineChannel/deliverReadOfficeOrOtherDo",
  708. method: "post",
  709. headers: {
  710. "Content-Type": "application/json",
  711. },
  712. data: reqdata,
  713. }).then(({ data: { desc } }) => {
  714. console.log(desc);
  715. if (desc === "操作成功") {
  716. this.$message.success("操作成功");
  717. this.checkexa = false;
  718. this.dialogStatus = false;
  719. this.handleInit();
  720. } else {
  721. this.$message.error("操作失败");
  722. }
  723. });
  724. },
  725. // 电商接口人阅办---管理项目组会签
  726. handleCountersigned() {
  727. let receiveId = [];
  728. let receiveName = [];
  729. // console.log(this.treeList);
  730. this.treeList.forEach((item) => {
  731. receiveId.push(item.id);
  732. receiveName.push(item.loginNoStr);
  733. });
  734. let reqdata = {
  735. operateName: this.operateName,
  736. receiveId: receiveId.join(","),
  737. receiveName: receiveName.join(","),
  738. reviewOpinion: this.operateName + "," + this.remark,
  739. woNo: this.woNo + "",
  740. };
  741. console.log(reqdata);
  742. this.$http({
  743. url: "/market/mkOnlineChannel/countersigned",
  744. method: "post",
  745. headers: {
  746. "Content-Type": "application/json",
  747. },
  748. data: reqdata,
  749. }).then(({ data: { desc } }) => {
  750. console.log(desc);
  751. if (desc === "操作成功") {
  752. this.$message.success("操作成功");
  753. this.checkexa = false;
  754. this.dialogStatus = false;
  755. this.handleInit();
  756. } else {
  757. this.$message.error("操作失败");
  758. }
  759. });
  760. },
  761. // 确认需求
  762. handleNeedyComfirm() {
  763. let receiveId = [];
  764. let receiveName = [];
  765. // console.log(this.treeList);
  766. this.treeList.forEach((item) => {
  767. receiveId.push(item.id);
  768. receiveName.push(item.loginNoStr);
  769. });
  770. let reqdata = {
  771. operateName: this.operateName,
  772. receiveId: receiveId.join(","),
  773. receiveName: receiveName.join(","),
  774. reviewOpinion: this.operateName + "," + this.remark,
  775. woNo: this.woNo + "",
  776. };
  777. console.log(reqdata);
  778. this.$http({
  779. url: "/market/mkOnlineChannel/confirmDemand",
  780. method: "post",
  781. headers: {
  782. "Content-Type": "application/json",
  783. },
  784. data: reqdata,
  785. }).then(({ data: { desc } }) => {
  786. console.log(desc);
  787. if (desc === "操作成功") {
  788. this.$message.success("操作成功");
  789. this.checkexa = false;
  790. this.dialogStatus = false;
  791. this.handleInit();
  792. } else {
  793. this.$message.error("操作失败");
  794. }
  795. });
  796. },
  797. // 打回方法
  798. handleBackRecord() {
  799. this.$http({
  800. url: "/market/mkOnlineChannel/backRecord",
  801. method: "get",
  802. headers: {
  803. "Content-Type": "application/json",
  804. },
  805. params: {
  806. woNo: this.woNo,
  807. remark: this.remark,
  808. },
  809. }).then(({ data: { desc } }) => {
  810. console.log(desc);
  811. if (desc === "操作成功") {
  812. this.$message.success("操作成功");
  813. this.dialogStatus = false;
  814. this.handleInit();
  815. } else {
  816. this.$message.error("操作失败");
  817. }
  818. });
  819. },
  820. // 表单提交
  821. formSubmit(type) {
  822. if (type === 1) {
  823. if (!this.treeList.length) {
  824. this.$message.error("请选择审核人员");
  825. return;
  826. }
  827. } else {
  828. if (!this.leader) {
  829. this.$message.error("请选择审核领导");
  830. return;
  831. }
  832. }
  833. let request = 0;
  834. let formData = new FormData();
  835. let origin_params = {};
  836. if (this.infolist.woNo) {
  837. origin_params = {
  838. // 需求编号
  839. woNo: this.infolist.woNo,
  840. createId: this.infolist.createId,
  841. createName: this.infolist.createName,
  842. id:this.infolist.id,
  843. };
  844. }
  845. let params = {
  846. ...origin_params,
  847. // 需求名称
  848. demandName: this.infolist.demandName,
  849. // 紧急程度
  850. urgDegree: this.infolist.urgDegree,
  851. // 业务主题
  852. busiSubject: this.infolist.busiSubject,
  853. // 需求类别
  854. demandTypeCode: this.infolist.busiSubject,
  855. //承载渠道
  856. carryChannelCode: this.infolist.carryChannelCode.join(","),
  857. // 加载周期 起止
  858. busiStartTime: this.busiTime[0]
  859. ? this.$formatDate(this.busiTime[0], "YYYY-MM-DD HH:mm:ss")
  860. : "",
  861. busiEndTime: this.busiTime[1]
  862. ? this.$formatDate(this.busiTime[1], "YYYY-MM-DD HH:mm:ss")
  863. : "",
  864. // 需求背景
  865. demandBackground: this.infolist.demandBackground,
  866. // 需求描述
  867. demandDesc: this.infolist.demandDesc,
  868. // 审批说明
  869. remark: this.remark,
  870. // 审核人员
  871. loginNameList: this.treeList.length
  872. ? this.treeList.map((el) => {
  873. return el.label;
  874. })
  875. : [this.leader],
  876. loginNoList: this.treeList.length
  877. ? this.treeList.map((el) => {
  878. return el.loginNoStr;
  879. })
  880. : [this.leader],
  881. type: this.type,
  882. // fileList: this.file,
  883. };
  884. // 处理其他参数
  885. for (let key in params) {
  886. formData.append(key, params[key]);
  887. }
  888. // 这是处理文件的参数
  889. if (this.file.length) {
  890. this.file.forEach((el, index) => {
  891. if (el.constructor.name === "File") {
  892. formData.append(`file${index + 1}`, el);
  893. }
  894. });
  895. }
  896. if (this.operateName === "确认需求") {
  897. this.handleNeedyComfirm();
  898. return;
  899. }
  900. if (this.operateName === "电商接口人阅办") {
  901. this.handleCountersigned();
  902. return;
  903. }
  904. if (this.operateName === "项目组送电商接口人阅办") {
  905. this.handleDeliverReadOfficeOrOtherDo("1");
  906. return;
  907. }
  908. request = 1;
  909. if (request) {
  910. this.$http({
  911. url: "/market/mkOnlineChannel/saveOrUpdate",
  912. method: "post",
  913. headers: {
  914. "Content-Type": "multipart/form-data",
  915. },
  916. data: formData,
  917. }).then(({ data }) => {
  918. if (data && data.desc === "操作成功") {
  919. this.$message({
  920. type: "success",
  921. message: data.desc,
  922. });
  923. this.dialogStatus = false;
  924. this.disableStatus = false;
  925. this.checkexa = false;
  926. this.checkLaeder = false;
  927. this.leader = "";
  928. this.infolist = {};
  929. this.handleInit();
  930. }
  931. });
  932. }
  933. },
  934. // 送申请人编号发送
  935. handleSendNo() {
  936. this.$http({
  937. url: "/market/mkOnlineChannel/createDemandNo",
  938. method: "get",
  939. headers: {
  940. "Content-Type": "application/json",
  941. },
  942. params: {
  943. woNo: this.woNo,
  944. },
  945. }).then(({ data: { desc } }) => {
  946. console.log(desc);
  947. if (desc === "操作成功") {
  948. this.$message.success("操作成功");
  949. this.dialogStatus = false;
  950. this.handleInit();
  951. } else {
  952. this.$message.error("操作失败");
  953. }
  954. });
  955. },
  956. // 确认编号
  957. handleComfirmNo() {
  958. this.$http({
  959. url: "/market/mkOnlineChannel/confirmNumber",
  960. method: "post",
  961. headers: {
  962. "Content-Type": "application/json",
  963. },
  964. data: { woNo: this.woNo + "" },
  965. }).then(({ data: { desc } }) => {
  966. console.log(desc);
  967. if (desc === "操作成功") {
  968. this.$message.success("操作成功");
  969. this.dialogStatus = false;
  970. this.handleInit();
  971. } else {
  972. this.$message.error("操作失败");
  973. }
  974. });
  975. },
  976. // 初始化列表接口
  977. handleInit() {
  978. this.$http({
  979. url: "/market/mkOnlineChannel/queryPage",
  980. method: "post",
  981. headers: {
  982. "Content-Type": "application/json",
  983. },
  984. data: {
  985. page: this.page,
  986. pageSize: this.pageSize,
  987. },
  988. }).then(
  989. ({
  990. data: {
  991. body: { data },
  992. },
  993. }) => {
  994. this.tableData = data;
  995. }
  996. );
  997. },
  998. // 查看详情接口封装
  999. queryDetails(id) {
  1000. this.$http({
  1001. url: "/market/mkOnlineChannel/getMkOnlineChannelById",
  1002. method: "post",
  1003. headers: {
  1004. "Content-Type": "application/json",
  1005. },
  1006. data: id,
  1007. }).then(
  1008. ({
  1009. data: {
  1010. body: { mkOnlineChannel },
  1011. },
  1012. }) => {
  1013. this.infolist = {
  1014. ...mkOnlineChannel,
  1015. carryChannelCode: mkOnlineChannel.carryChannelCode.split(","),
  1016. };
  1017. this.busiTime = [
  1018. mkOnlineChannel.busiStartTime,
  1019. mkOnlineChannel.busiEndTime,
  1020. ];
  1021. this.rovaList = mkOnlineChannel.logList;
  1022. this.datalist = {
  1023. ...this.datalist,
  1024. attList: mkOnlineChannel.attList,
  1025. };
  1026. //表单编号
  1027. this.woNo = mkOnlineChannel.woNo;
  1028. // 步骤
  1029. this.step = mkOnlineChannel.step;
  1030. // 数组回显
  1031. this.infodatas = mkOnlineChannel.logList;
  1032. this.dialogStatus = true;
  1033. if (this.titname === "添加") {
  1034. // 审批说明
  1035. this.visionsts = "";
  1036. this.disableStatus = false;
  1037. } else {
  1038. // this.disableStatus = true;
  1039. this.disableStatus = true;
  1040. if (this.titname === "查看") {
  1041. this.visionsts = "";
  1042. } else {
  1043. this.visionsts = "2";
  1044. }
  1045. }
  1046. }
  1047. );
  1048. },
  1049. // 老方法
  1050. temp() {
  1051. if (JSON.stringify(this.infolist) == "{}") {
  1052. return;
  1053. }
  1054. let params = {};
  1055. params.infolist = this.infolist;
  1056. params.fileList = [];
  1057. params.attList = [];
  1058. this.attList.forEach((item) => {
  1059. let file = {
  1060. id: item.fileCode,
  1061. fileCode: item.fileCode,
  1062. fileName: item.fileName,
  1063. name: item.fileName,
  1064. };
  1065. params.fileList.push(file);
  1066. params.attList.push(file);
  1067. });
  1068. this.$http({
  1069. url: "/market/bpmTemp/temp",
  1070. method: "post",
  1071. headers: {
  1072. "Content-Type": "application/json",
  1073. },
  1074. data: {
  1075. bpmType: "1",
  1076. content: JSON.stringify(params),
  1077. },
  1078. }).then((res) => {
  1079. //console.log(res)
  1080. });
  1081. },
  1082. deletes(v) {
  1083. // this.treeListonly = {};
  1084. this.treeList = this.treeList.filter(
  1085. (el) => el.loginNoStr !== v.loginNoStr
  1086. );
  1087. this.closeList = !this.closeList;
  1088. },
  1089. treeCheckonly(v) {
  1090. this.treeList = v;
  1091. // this.treeListonly = v;
  1092. },
  1093. choline(v, n) {
  1094. if (v == 1) {
  1095. this.infodatas.push({});
  1096. } else {
  1097. this.infodatas.splice(n.$index, 1);
  1098. }
  1099. },
  1100. closedia() {
  1101. this.infolist = {};
  1102. this.attList = [];
  1103. this.file = [];
  1104. delete this.datalist.attList;
  1105. this.fileInfo.fileList = [];
  1106. this.dialogStatus = false;
  1107. this.checkexa = false;
  1108. this.busiTime = [];
  1109. },
  1110. //获取列表
  1111. getList(v, n) {
  1112. this.pageSize = n;
  1113. let _this = this;
  1114. this.loading = true;
  1115. v.procName = "业务需求申请(地市公司),业务需求申请(省公司)";
  1116. this.$http({
  1117. url: "/bpm/api/queryToDoAndFinishTaskList",
  1118. method: "post",
  1119. headers: {
  1120. "Content-Type": "application/json",
  1121. page: '{"pageNo":"' + n + '","pageSize":"10"}',
  1122. },
  1123. data: v,
  1124. }).then((res) => {
  1125. this.tableData = res.data.data;
  1126. this.total = res.data.totalRecord;
  1127. this.loading = false;
  1128. });
  1129. },
  1130. // 分页
  1131. currchange(v) {
  1132. this.pageSize = v;
  1133. this.getList(this.params, this.pageSize);
  1134. },
  1135. //申请 // 打开弹出层
  1136. dialogCheck(type, data) {
  1137. // let infolist = Object.assign({}, n);
  1138. this.vision = "";
  1139. this.visionsts = "";
  1140. this.infodatas = [{}, {}];
  1141. if (type === 1) {
  1142. this.titname = "查看";
  1143. this.visionsts = "2";
  1144. this.queryDetails(data.woNo);
  1145. } else if (type === 2) {
  1146. this.titname = "审批";
  1147. this.visionsts = "2";
  1148. this.queryDetails(data.woNo);
  1149. } else if (type === 3) {
  1150. this.titname = "添加";
  1151. this.dialogStatus = true;
  1152. this.visionchonly = false;
  1153. this.disableStatus = false;
  1154. // this.$http({
  1155. // url: "/market/bpmTemp/query",
  1156. // method: "post",
  1157. // headers: { "Content-Type": "application/json" },
  1158. // data: { bpmType: "1" },
  1159. // }).then((res) => {
  1160. // if (res.data) {
  1161. // let content = JSON.parse(res.data.content);
  1162. // this.infolist = content.infolist;
  1163. // this.attList = content.attList;
  1164. // this.fileInfo.fileList = content.fileList;
  1165. // }
  1166. // // this.tempSave = true;
  1167. // });
  1168. // return;
  1169. }
  1170. // this.$http({
  1171. // url: "/bpm/api/taskInit",
  1172. // method: "post",
  1173. // headers: {
  1174. // "Content-Type": "application/json",
  1175. // },
  1176. // data: {
  1177. // woNo: n.woNo,
  1178. // },
  1179. // }).then((res) => {
  1180. // // this.infolist = Object.assign({}, res.data);
  1181. // this.terminal = infolist.procId;
  1182. // this.opname = res.data.opName;
  1183. // this.opno = res.data.opNo;
  1184. // this.infolist = JSON.parse(res.data.params.terminalRes);
  1185. // res.data.params.fillList
  1186. // ? (this.infodatas = JSON.parse(res.data.params.fillList))
  1187. // : "";
  1188. // this.infolist.procId = infolist.procId;
  1189. // this.infolist.procVersion = infolist.procVersion;
  1190. // this.remark = infolist.remark;
  1191. // this.infolist.stepId = infolist.stepId;
  1192. // this.infolist.taskId = infolist.taskId;
  1193. // this.infolist.taskName = infolist.taskName;
  1194. // this.infolist.opName = infolist.opName;
  1195. // this.infolist.opNo = infolist.opNo;
  1196. // this.infolist.opTime = infolist.opTime;
  1197. // this.infolist.woNo = infolist.woNo;
  1198. // this.busiTime = [];
  1199. // this.busiTime[0] = this.infolist.busiStartTime;
  1200. // this.busiTime[1] = this.infolist.busiEndTime;
  1201. // this.visionchonly = false;
  1202. // if (
  1203. // res.data.taskList[res.data.taskList.length - 1].taskName == "流程发起"
  1204. // ) {
  1205. // this.vision = "流程发起";
  1206. // if (this.titname == "审批") {
  1207. // this.disableStatus = false;
  1208. // }
  1209. // this.visionchonly = true;
  1210. // } else if (
  1211. // res.data.taskList[res.data.taskList.length - 1].taskName ==
  1212. // "科室主任初审"
  1213. // ) {
  1214. // this.vision = "科室主任初审";
  1215. // this.visionsts = "2";
  1216. // this.visionchonly = true;
  1217. // } else if (
  1218. // res.data.taskList[res.data.taskList.length - 1].taskName ==
  1219. // "部门副主任复审"
  1220. // ) {
  1221. // this.vision = "部门副主任复审";
  1222. // this.visionsts = "2";
  1223. // this.visionchonly = true;
  1224. // } else if (
  1225. // res.data.taskList[res.data.taskList.length - 1].taskName ==
  1226. // "主管副总终审" ||
  1227. // res.data.taskList[res.data.taskList.length - 1].taskName ==
  1228. // "部门副主任终审"
  1229. // ) {
  1230. // this.vision = "主管副总终审";
  1231. // this.visionsts = "2";
  1232. // this.visionchonly = true;
  1233. // } else if (
  1234. // res.data.taskList[res.data.taskList.length - 1].taskName ==
  1235. // "需求预评估"
  1236. // ) {
  1237. // this.vision = "需求预评估";
  1238. // this.visionsts = "2";
  1239. // this.visionchonly = true;
  1240. // } else if (
  1241. // res.data.taskList[res.data.taskList.length - 1].taskName ==
  1242. // "需求预评估初审"
  1243. // ) {
  1244. // this.vision = "需求预评估初审";
  1245. // this.visionsts = "2";
  1246. // this.visionchonly = true;
  1247. // } else if (
  1248. // res.data.taskList[res.data.taskList.length - 1].taskName ==
  1249. // "需求预评估复审"
  1250. // ) {
  1251. // this.vision = "需求预评估复审";
  1252. // this.visionsts = "2";
  1253. // this.visionchonly = true;
  1254. // } else if (
  1255. // res.data.taskList[res.data.taskList.length - 1].taskName ==
  1256. // "渠道经理会签"
  1257. // ) {
  1258. // this.vision = "渠道经理会签";
  1259. // this.visionsts = "2";
  1260. // this.visionchonly = true;
  1261. // } else if (
  1262. // res.data.taskList[res.data.taskList.length - 1].taskName == "需求确认"
  1263. // ) {
  1264. // this.vision = "需求确认";
  1265. // this.visionsts = "3";
  1266. // this.visionchonly = true;
  1267. // } else if (
  1268. // res.data.taskList[res.data.taskList.length - 1].taskName == "上线管理"
  1269. // ) {
  1270. // this.vision = "上线管理";
  1271. // this.visionsts = "3";
  1272. // this.visionchonly = true;
  1273. // } else if (
  1274. // res.data.taskList[res.data.taskList.length - 1].taskName == "上线验证"
  1275. // ) {
  1276. // this.vision = "上线验证";
  1277. // this.visionsts = "3";
  1278. // this.visionchonly = true;
  1279. // } else if (
  1280. // res.data.taskList[res.data.taskList.length - 1].taskName == "信息补填"
  1281. // ) {
  1282. // this.vision = "信息补填";
  1283. // this.visionsts = "4";
  1284. // }
  1285. // this.datalist.attList = JSON.parse(res.data.params.attList);
  1286. // this.attList = [];
  1287. // this.fileInfo.fileList = [];
  1288. // this.datalist.attList.forEach((item) => {
  1289. // item.id = item.attchFileId;
  1290. // this.fileInfo.fileList.push({
  1291. // name: item.fileName,
  1292. // url: "",
  1293. // id: item.id,
  1294. // attchFileId: item.attchFileId,
  1295. // fileName: item.fileName,
  1296. // });
  1297. // this.attList.push({
  1298. // name: item.fileName,
  1299. // url: "",
  1300. // id: item.id,
  1301. // attchFileId: item.attchFileId,
  1302. // fileName: item.fileName,
  1303. // });
  1304. // });
  1305. // this.rovaList = res.data.taskList;
  1306. // this.uploadstatus = true;
  1307. // });
  1308. },
  1309. //审批
  1310. dialogCli(v) {
  1311. this.dialogStatus = false;
  1312. if (v === 3) {
  1313. this.infolist = {};
  1314. this.attList = [];
  1315. this.fileInfo.fileList = [];
  1316. this.checkexa = false;
  1317. this.tempSave = false;
  1318. return;
  1319. }
  1320. let _this = this;
  1321. this.infolist.opTime = _this.$formatDate(new Date(), "YYYY-MM-DD");
  1322. if (v === 1) {
  1323. let params = {
  1324. dealType: "1",
  1325. dealTypeDesc: "打回",
  1326. procId: this.infolist.procId,
  1327. procVersion: this.infolist.procVersion,
  1328. remark: this.remark,
  1329. stepId: this.infolist.stepId,
  1330. taskId: this.infolist.taskId,
  1331. taskName: this.infolist.taskName,
  1332. opName: this.infolist.opName,
  1333. opNo: this.opno,
  1334. opTime: this.infolist.opTime,
  1335. params: {
  1336. procExeCondiVal: "不同意",
  1337. terminalRes: JSON.stringify(this.infolist),
  1338. assigneeNo: this.opno,
  1339. assigneeName: this.opname,
  1340. },
  1341. woNo: this.infolist.woNo,
  1342. };
  1343. this.submitInfo("/bpm/api/submitTask", params);
  1344. } else if (v === 2) {
  1345. let param = {
  1346. dealType: "0",
  1347. dealTypeDesc: "提交",
  1348. procId: this.infolist.procId,
  1349. procVersion: this.infolist.procVersion,
  1350. remark: this.remark,
  1351. stepId: this.infolist.stepId,
  1352. taskId: this.infolist.taskId,
  1353. taskName: this.infolist.taskName,
  1354. opName: this.infolist.opName,
  1355. opNo: this.opno,
  1356. opTime: this.infolist.opTime,
  1357. params: {
  1358. woType: this.infolist.woType,
  1359. terminalRes: JSON.stringify(this.infolist),
  1360. },
  1361. woNo: this.infolist.woNo,
  1362. };
  1363. if (this.visionchonly) {
  1364. param.params.assigneeNo = this.treeListonly.leaderAuditNo;
  1365. param.params.assigneeName = this.treeListonly.leaderAuditName;
  1366. }
  1367. // if(this.vision == '科室主任初审'||this.vision == '部门副主任复审'){
  1368. // this.$http({
  1369. // url: "/sysmgr/csysuserinfo/queryUserListByLoginNoAndDuty",
  1370. // method: "post",
  1371. // headers: {
  1372. // "Content-Type": "application/json",
  1373. // "page": '{"pageNo":"' + 1 + '","pageSize":"100"}'
  1374. // },
  1375. // data: {"duty":"7,12"},
  1376. // }).then((res) => {
  1377. // if(res.data.length == 0){
  1378. // this.$message({
  1379. // message: '暂无领导审批,发起失败!',
  1380. // type: 'error'
  1381. // });
  1382. // return
  1383. // }else{
  1384. // param.params.assigneeNo=res.data[0].loginNoStr;
  1385. // param.params.assigneeName=res.data[0].loginNameStr;
  1386. // _this.submitInfo("/bpm/api/submitTask", param);
  1387. // return
  1388. // }
  1389. // });
  1390. // }else if(this.vision == '渠道经理会签'||this.vision == '上线管理'){
  1391. // param.params.assigneeNo= this.opno;
  1392. // param.params.assigneeName= this.opname;
  1393. // this.submitInfo("/bpm/api/submitTask", param);
  1394. // }
  1395. if (this.vision == "信息补填") {
  1396. param.params.fillList = JSON.stringify(this.infodatas);
  1397. this.submitInfo("/bpm/api/submitTask", param);
  1398. } else {
  1399. if (this.vision == "流程发起") {
  1400. let attList = [];
  1401. for (let i = 0; i < this.attList.length; i++) {
  1402. attList.push({
  1403. id: this.attList[i].id,
  1404. fileCode: this.attList[i].fileCode,
  1405. fileName: this.attList[i].fileName,
  1406. opName: this.attList[i].opName,
  1407. opNo: this.attList[i].opNo,
  1408. opTime: this.attList[i].opTime,
  1409. woNo: this.infolist.woNo,
  1410. attchFileId: this.attList[i].attchFileId,
  1411. });
  1412. }
  1413. param.params.attList = JSON.stringify(attList);
  1414. this.$http({
  1415. url: "/market/bpmTemp/del",
  1416. method: "post",
  1417. headers: {
  1418. "Content-Type": "application/json",
  1419. },
  1420. data: {
  1421. bpmType: "1",
  1422. },
  1423. }).then((res) => {
  1424. //console.log(res)
  1425. });
  1426. }
  1427. this.submitInfo("/bpm/api/submitTask", param);
  1428. }
  1429. }
  1430. this.checkexa = false;
  1431. },
  1432. //添加
  1433. dialogCliadd(v) {
  1434. let _this = this;
  1435. let info = {};
  1436. info.params = {};
  1437. info.opTime = _this.$formatDate(new Date(), "YYYY-MM-DD");
  1438. info.opNo = this.userInfo.loginNo;
  1439. info.opName = this.userInfo.loginName;
  1440. info.woTitle = this.infolist.demandName;
  1441. info.params.terminalRes = this.infolist;
  1442. info.params.terminalRes.busiStartTime = this.busiTime[0]
  1443. ? _this.$formatDate(this.busiTime[0], "YYYY-MM-DD")
  1444. : "";
  1445. info.params.terminalRes.busiEndTime = this.busiTime[1]
  1446. ? _this.$formatDate(this.busiTime[1], "YYYY-MM-DD")
  1447. : "";
  1448. info.procId = this.terminal;
  1449. info.params.assigneeNo = this.treeListonly.leaderAuditNo;
  1450. info.params.assigneeName = this.treeListonly.leaderAuditName;
  1451. for (let i = 0; i < this.options.length; i++) {
  1452. if (this.terminal == this.options[i].procId) {
  1453. info.procName = this.options[i].procName;
  1454. info.procVersion = this.options[i].procVersion;
  1455. }
  1456. }
  1457. let attList = [];
  1458. for (let i = 0; i < this.attList.length; i++) {
  1459. attList.push({
  1460. id: this.attList[i].id,
  1461. fileCode: this.attList[i].fileCode,
  1462. fileName: this.attList[i].fileName,
  1463. opName: this.attList[i].opName,
  1464. opNo: this.attList[i].opNo,
  1465. opTime: this.attList[i].opTime,
  1466. woNo: this.infolist.woNo,
  1467. attchFileId: this.attList[i].attchFileId,
  1468. });
  1469. }
  1470. let fillList = [{}, {}];
  1471. info.params.fillList = JSON.stringify(fillList);
  1472. info.params.attList = JSON.stringify(attList);
  1473. info.params.terminalRes = JSON.stringify(info.params.terminalRes);
  1474. this.checkexa = false;
  1475. this.visionchonly = false;
  1476. this.submitInfo("/bpm/api/startProc", info);
  1477. },
  1478. submitInfo(u, v) {
  1479. let _this = this;
  1480. this.$refs.infolist.validate((valid) => {
  1481. if (valid) {
  1482. this.$http({
  1483. url: u,
  1484. method: "post",
  1485. headers: {
  1486. "Content-Type": "application/json",
  1487. },
  1488. data: v,
  1489. }).then((res) => {
  1490. if (res.data.result === 1) {
  1491. _this.$message({
  1492. message: res.data.desc,
  1493. type: "error",
  1494. });
  1495. } else {
  1496. _this.$message({
  1497. message: "成功",
  1498. type: "success",
  1499. });
  1500. _this.closedia();
  1501. _this.infolist = {};
  1502. _this.attList = [];
  1503. _this.fileInfo.fileList = [];
  1504. _this.getList(this.params, this.pageSize);
  1505. }
  1506. });
  1507. }
  1508. });
  1509. },
  1510. getStanding() {
  1511. this.$router.push({
  1512. path: "/ywStanding",
  1513. });
  1514. this.setabList("线上业务需求台账", "/ywStanding");
  1515. },
  1516. setabList(n, p) {
  1517. let params = {
  1518. children: "",
  1519. name: n,
  1520. rountPath: p,
  1521. target: "_self",
  1522. };
  1523. for (let i = 0; i < this.$store.state.tabList.length; i++) {
  1524. if (this.$store.state.tabList[i].name === params.name) {
  1525. this.$store.state.tabList[i] = params;
  1526. }
  1527. }
  1528. let set = new Set([...this.$store.state.tabList, params]);
  1529. set.add(params);
  1530. this.$store.commit("setDefaultActive", params.rountPath);
  1531. this.$store.commit("setTabList", Array.from(set));
  1532. },
  1533. //流程
  1534. getTermianl() {
  1535. this.$http({
  1536. url: "/bpm/api/queryBpmProcList",
  1537. method: "post",
  1538. headers: {
  1539. "Content-Type": "application/json",
  1540. page: '{"pageNo":"' + 1 + '","pageSize":"100"}',
  1541. },
  1542. data: {},
  1543. }).then((res) => {
  1544. this.options = res.data.data;
  1545. });
  1546. },
  1547. closeMessage(v) {
  1548. this.centerDialogVisible = false;
  1549. let _this = this;
  1550. if (v === 1) {
  1551. _this
  1552. .$http({
  1553. url: "/bpm/api/deleteBpmPrePlugin",
  1554. method: "post",
  1555. headers: {
  1556. "Content-Type": "application/json",
  1557. },
  1558. data: {
  1559. id: this.delid,
  1560. },
  1561. })
  1562. .then((res) => {
  1563. if (res.data.result === 1) {
  1564. _this.$message({
  1565. message: res.data.desc,
  1566. type: "error",
  1567. });
  1568. } else {
  1569. _this.$message({
  1570. message: "删除成功",
  1571. type: "success",
  1572. });
  1573. _this.getList(this.params, this.pageSize);
  1574. }
  1575. });
  1576. }
  1577. },
  1578. //删除
  1579. delLine(v) {
  1580. this.centerDialogVisible = true;
  1581. this.messTit = "即将删除此条数据, 是否删除?";
  1582. this.delid = v.id;
  1583. },
  1584. //文件返回值
  1585. uploadBack(v) {
  1586. this.attList = v;
  1587. },
  1588. uploadBackin(v) {
  1589. let x = [];
  1590. for (let i = 1; i < v.data.body.length; i++) {
  1591. x.push({
  1592. factoryName: v.data.body[i].factoryName,
  1593. workLoad: v.data.body[i].workLoad,
  1594. });
  1595. }
  1596. this.infodatas = x;
  1597. },
  1598. //功能栏
  1599. iconCli(v) {
  1600. if (v === 1) {
  1601. this.getList(this.params, this.pageSize);
  1602. }
  1603. if (v === 2) {
  1604. this.fullscreen = !this.fullscreen;
  1605. }
  1606. },
  1607. getUser() {
  1608. this.userInfo = JSON.parse(window.sessionStorage.userInfo);
  1609. },
  1610. // 字典
  1611. // 需求类别 demandType
  1612. // 承载渠道 demandChnl
  1613. getsaleChnl() {
  1614. this.$http({
  1615. url: "/market/cfgDataDict/queryList",
  1616. method: "post",
  1617. headers: {
  1618. "Content-Type": "application/json",
  1619. },
  1620. data: {
  1621. dictCode: "demandType",
  1622. },
  1623. }).then((res) => {
  1624. this.demandTypeopt = res.data;
  1625. });
  1626. this.$http({
  1627. url: "/market/cfgDataDict/queryList",
  1628. method: "post",
  1629. headers: {
  1630. "Content-Type": "application/json",
  1631. },
  1632. data: {
  1633. dictCode: "demandChnl",
  1634. },
  1635. }).then((res) => {
  1636. this.carryChannelopt = res.data;
  1637. });
  1638. },
  1639. },
  1640. mounted() {
  1641. // 调用初始化接口
  1642. this.handleInit();
  1643. // this.getList({}, 1);
  1644. this.getUser();
  1645. this.getTermianl();
  1646. this.getsaleChnl();
  1647. },
  1648. created() {},
  1649. };
  1650. </script>
  1651. <style scoped lang="scss">
  1652. .onetab {
  1653. margin-bottom: 20px;
  1654. padding: 0 20px;
  1655. }
  1656. .simple-dialog {
  1657. position: relative;
  1658. min-height: 90vh;
  1659. }
  1660. .info {
  1661. &-footer {
  1662. display: flex;
  1663. margin-top: 50px;
  1664. justify-content: flex-end;
  1665. margin-bottom: 50px;
  1666. }
  1667. &-upload {
  1668. width: 500px !important;
  1669. }
  1670. }
  1671. .titbox {
  1672. div {
  1673. float: right;
  1674. i {
  1675. font-size: 22px;
  1676. margin-left: 20px;
  1677. cursor: pointer;
  1678. }
  1679. }
  1680. }
  1681. .upload {
  1682. position: relative;
  1683. left: calc(50% - 229px / 2);
  1684. vertical-align: middle;
  1685. display: flex !important;
  1686. flex-direction: column;
  1687. }
  1688. .tabbox {
  1689. margin-top: 15px;
  1690. }
  1691. .pageBox {
  1692. text-align: right;
  1693. margin-top: 10px;
  1694. }
  1695. .info-line {
  1696. width: 100%;
  1697. display: block;
  1698. padding-left: 20px;
  1699. div {
  1700. width: 50%;
  1701. display: inline-block;
  1702. }
  1703. span {
  1704. width: 100px;
  1705. display: inline-block;
  1706. text-align: left;
  1707. i {
  1708. color: red;
  1709. display: inline-block;
  1710. padding-right: 5px;
  1711. }
  1712. }
  1713. .el-select,
  1714. .el-input {
  1715. width: calc(100% - 120px);
  1716. }
  1717. }
  1718. .online {
  1719. width: 100%;
  1720. .el-select {
  1721. width: calc(100% - 100px);
  1722. }
  1723. span {
  1724. vertical-align: top;
  1725. }
  1726. .el-textarea {
  1727. width: calc(100% - 120px);
  1728. }
  1729. .tree {
  1730. width: calc(50% - 60px);
  1731. display: inline-block;
  1732. margin-right: 20px;
  1733. height: 300px;
  1734. overflow-y: scroll;
  1735. .el-icon-error {
  1736. float: right;
  1737. font-size: 20px;
  1738. margin-top: 9px;
  1739. cursor: pointer;
  1740. }
  1741. }
  1742. .treeUser {
  1743. margin: 0;
  1744. border: 1px solid #ddd;
  1745. p {
  1746. background: #f4f4f4;
  1747. padding: 0 20px;
  1748. border-bottom: 1px solid #fff;
  1749. }
  1750. }
  1751. .treeUserb {
  1752. width: calc(100% - 100px);
  1753. border: 1px solid #ddd;
  1754. background: #f4f4f4;
  1755. border-radius: 3px;
  1756. height: auto;
  1757. overflow: hidden;
  1758. p {
  1759. display: inline-block;
  1760. padding: 0 20px;
  1761. // margin-bottom: 5px;
  1762. }
  1763. }
  1764. }
  1765. .adv-type {
  1766. margin-top: 20px;
  1767. display: flex;
  1768. justify-content: space-between;
  1769. flex-wrap: wrap;
  1770. // border: 1px solid #ddd;
  1771. border-radius: 5px;
  1772. padding: 20px;
  1773. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  1774. div {
  1775. width: 33%;
  1776. text-align: center;
  1777. height: 80px;
  1778. overflow: hidden;
  1779. min-width: 100px;
  1780. cursor: pointer;
  1781. padding-top: 10px;
  1782. margin: 10px 0;
  1783. }
  1784. div:hover {
  1785. background: #cfe8fc;
  1786. border-radius: 5px;
  1787. }
  1788. span {
  1789. width: 100%;
  1790. display: inline-block;
  1791. height: 40px;
  1792. // line-height: 40px;
  1793. i {
  1794. color: #0074d9;
  1795. font-size: 36px;
  1796. }
  1797. }
  1798. }
  1799. </style>