index.vue 62 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083
  1. <template>
  2. <div class="app-container">
  3. <el-form
  4. :model="queryParams"
  5. ref="queryForm"
  6. :inline="true"
  7. v-show="showSearch"
  8. label-width="68px"
  9. >
  10. <el-form-item prop="name">
  11. <el-input
  12. v-model="queryParams.name"
  13. placeholder="请输入文件名称"
  14. clearable
  15. size="small"
  16. @input="handleQuery"
  17. />
  18. </el-form-item>
  19. <!-- <el-form-item label="类型" prop="type">
  20. <el-select v-model="queryParams.type" placeholder="请选择类型" clearable size="small">
  21. <el-option label="请选择字典生成" value />
  22. </el-select>
  23. </el-form-item>-->
  24. <!-- <el-form-item label="大小" prop="size">
  25. <el-input
  26. v-model="queryParams.size"
  27. placeholder="请输入大小"
  28. clearable
  29. size="small"
  30. @keyup.enter.native="handleQuery"
  31. />
  32. </el-form-item>
  33. <el-form-item label="单位ID" prop="unitId">
  34. <el-input
  35. v-model="queryParams.unitId"
  36. placeholder="请输入单位ID"
  37. clearable
  38. size="small"
  39. @keyup.enter.native="handleQuery"
  40. />
  41. </el-form-item>-->
  42. <!-- <el-form-item label="单位名称" prop="unitName">
  43. <el-input
  44. v-model="queryParams.unitName"
  45. placeholder="请输入单位名称"
  46. clearable
  47. size="small"
  48. @keyup.enter.native="handleQuery"
  49. />
  50. </el-form-item>
  51. <el-form-item label="级别" prop="levelM">
  52. <el-input
  53. v-model="queryParams.levelM"
  54. placeholder="请输入级别"
  55. clearable
  56. size="small"
  57. @keyup.enter.native="handleQuery"
  58. />
  59. </el-form-item>-->
  60. <!-- <el-form-item label="发送人ID" prop="sendId">
  61. <el-input
  62. v-model="queryParams.sendId"
  63. placeholder="请输入发送人ID"
  64. clearable
  65. size="small"
  66. @keyup.enter.native="handleQuery"
  67. />
  68. </el-form-item>
  69. <el-form-item label="发送人" prop="sendName">
  70. <el-input
  71. v-model="queryParams.sendName"
  72. placeholder="请输入发送人"
  73. clearable
  74. size="small"
  75. @keyup.enter.native="handleQuery"
  76. />
  77. </el-form-item>
  78. <el-form-item label="创建时间" prop="creattime">
  79. <el-date-picker clearable size="small"
  80. v-model="queryParams.creattime"
  81. type="date"
  82. value-format="yyyy-MM-dd"
  83. placeholder="选择创建时间">
  84. </el-date-picker>
  85. </el-form-item>
  86. <el-form-item label="更新时间" prop="updatetime">
  87. <el-date-picker clearable size="small"
  88. v-model="queryParams.updatetime"
  89. type="date"
  90. value-format="yyyy-MM-dd"
  91. placeholder="选择更新时间">
  92. </el-date-picker>
  93. </el-form-item>
  94. <el-form-item label="打印说明" prop="explainInfo">
  95. <el-input
  96. v-model="queryParams.explainInfo"
  97. placeholder="请输入打印说明"
  98. clearable
  99. size="small"
  100. @keyup.enter.native="handleQuery"
  101. />
  102. </el-form-item>
  103. <el-form-item label="打印状态(1 打印中 2 已打印)" prop="printStatus">
  104. <el-select v-model="queryParams.printStatus" placeholder="请选择打印状态(1 打印中 2 已打印)" clearable size="small">
  105. <el-option label="请选择字典生成" value="" />
  106. </el-select>
  107. </el-form-item>
  108. <el-form-item label="接收人ID" prop="receiveId">
  109. <el-input
  110. v-model="queryParams.receiveId"
  111. placeholder="请输入接收人ID"
  112. clearable
  113. size="small"
  114. @keyup.enter.native="handleQuery"
  115. />
  116. </el-form-item>
  117. <el-form-item label="接收人" prop="receiveName">
  118. <el-input
  119. v-model="queryParams.receiveName"
  120. placeholder="请输入接收人"
  121. clearable
  122. size="small"
  123. @keyup.enter.native="handleQuery"
  124. />
  125. </el-form-item>
  126. <el-form-item label="打印回复信息" prop="printInfo">
  127. <el-input
  128. v-model="queryParams.printInfo"
  129. placeholder="请输入打印回复信息"
  130. clearable
  131. size="small"
  132. @keyup.enter.native="handleQuery"
  133. />
  134. </el-form-item>-->
  135. <el-form-item>
  136. <!-- <el-button type="primary" size="btn" @click="handleQuery"
  137. >搜索</el-button
  138. > -->
  139. <el-button size="btr" @click="resetQuery">重置</el-button>
  140. </el-form-item>
  141. </el-form>
  142. <el-row :gutter="10" class="mb8">
  143. <el-col :span="1.5">
  144. <el-button
  145. type="primary"
  146. plain
  147. size="mini"
  148. @click="handleAdd"
  149. v-hasPermi="['PrintsManage:manage:add']"
  150. >发送文件</el-button
  151. >
  152. </el-col>
  153. <!-- <el-col :span="1.5">
  154. <el-button
  155. type="success"
  156. plain
  157. icon="el-icon-edit"
  158. size="mini"
  159. :disabled="single"
  160. @click="handleUpdate"
  161. v-hasPermi="['PrintsManage:manage:edit']"
  162. >修改</el-button>
  163. </el-col>-->
  164. <el-col :span="1.5">
  165. <el-button
  166. type="danger"
  167. plain
  168. icon="el-icon-delete"
  169. size="mini"
  170. :disabled="multiple"
  171. @click="handleDelete"
  172. v-hasPermi="['PrintsManage:manage:remove']"
  173. >删除</el-button
  174. >
  175. </el-col>
  176. <!-- <el-col :span="1.5">
  177. <el-button
  178. type="warning"
  179. plain
  180. icon="el-icon-download"
  181. size="mini"
  182. :loading="exportLoading"
  183. @click="handleExport"
  184. v-hasPermi="['PrintsManage:manage:export']"
  185. >导出</el-button>
  186. </el-col>-->
  187. <!-- <right-toolbar
  188. :showSearch.sync="showSearch"
  189. @queryTable="getList"
  190. ></right-toolbar> -->
  191. </el-row>
  192. <el-table
  193. v-loading="loading"
  194. :header-cell-style="{ background: '#003C69', color: 'white' }"
  195. :data="manageList"
  196. @selection-change="handleSelectionChange"
  197. >
  198. <el-table-column type="selection" width="55" align="center" />
  199. <!-- <el-table-column label="打印回复信息" align="center" prop="id" /> -->
  200. <el-table-column label="序号" align="center" type="index" />
  201. <el-table-column label="文件名称" align="center" prop="name" />
  202. <!-- <el-table-column label="路径" align="center" prop="file" /> -->
  203. <el-table-column label="类型" align="center" prop="type" />
  204. <el-table-column label="是否彩打" align="center" prop="isPrintColor">
  205. <template slot-scope="scope">
  206. <span>{{ scope.row.isPrintColor == 0 ? "否" : "是" }}</span>
  207. </template>
  208. </el-table-column>
  209. <el-table-column label="是否双面打" align="center" prop="isPrintTwo">
  210. <template slot-scope="scope">
  211. <span>{{ scope.row.isPrintTwo == 0 ? "否" : "是" }}</span>
  212. </template>
  213. </el-table-column>
  214. <el-table-column label="打印状态" align="center" prop="printStatus">
  215. <template slot-scope="scope">
  216. <span
  217. style="color: #90da90"
  218. v-if="
  219. (scope.row.printStatus == 1 &&
  220. scope.row.printRoom == 0 &&
  221. roles == '15号文印室') ||
  222. (scope.row.printStatus == 1 &&
  223. scope.row.printRoom == 1 &&
  224. roles == '19号文印室')
  225. "
  226. >待打印</span
  227. >
  228. <span
  229. style="color: #90da90"
  230. v-if="
  231. scope.row.printStatus == 1 &&
  232. roles != '19号文印室' &&
  233. roles != '15号文印室'
  234. "
  235. >打印中</span
  236. >
  237. <span style="color: #00ff00" v-if="scope.row.printStatus == 2"
  238. >已打印</span
  239. >
  240. </template>
  241. </el-table-column>
  242. <!-- <el-table-column label="大小" align="center" prop="size" /> -->
  243. <!-- <el-table-column label="单位ID" align="center" prop="unitId" /> -->
  244. <!-- <el-table-column label="单位名称" align="center" prop="unitName" /> -->
  245. <el-table-column label="级别" align="center" prop="levelM">
  246. <template slot-scope="scope">
  247. <dict-tag :options="dict.type.level" :value="scope.row.levelM" />
  248. </template>
  249. </el-table-column>
  250. <!-- <el-table-column label="发送人ID" align="center" prop="sendId" /> -->
  251. <el-table-column label="发送人" align="center" prop="sendName" />
  252. <!-- <el-table-column label="创建时间" align="center" prop="creattime" width="180">
  253. <template slot-scope="scope">
  254. <span>{{ parseTime(scope.row.creattime, "{y}-{m}-{d}") }}</span>
  255. </template>
  256. </el-table-column>-->
  257. <!-- <el-table-column label="更新时间" align="center" prop="updatetime" width="180">
  258. <template slot-scope="scope">
  259. <span>{{ parseTime(scope.row.updatetime, '{y}-{m}-{d}') }}</span>
  260. </template>
  261. </el-table-column>-->
  262. <!-- <el-table-column label="打印说明" align="center" prop="explainInfo" />
  263. <el-table-column label="接收人ID" align="center" prop="receiveId" />
  264. <el-table-column label="接收人" align="center" prop="receiveName" />
  265. <el-table-column label="生成路径" align="center" prop="sFile" />
  266. <el-table-column label="打印回复信息" align="center" prop="printInfo" />-->
  267. <el-table-column
  268. label="操作"
  269. align="center"
  270. class-name="small-padding fixed-width"
  271. width="280px"
  272. >
  273. <template slot-scope="scope">
  274. <el-button
  275. size="btu"
  276. type="text"
  277. @click="handleok(scope.row)"
  278. v-hasPermi="['PrintsLog:printlog:edit']"
  279. v-if="scope.row.isShow == 1"
  280. >确定</el-button
  281. >
  282. <el-button
  283. size="btk"
  284. type="text"
  285. @click="handlelook(scope.row)"
  286. v-hasPermi="['PrintsLog:printlog:edit']"
  287. >查看</el-button
  288. >
  289. <el-button
  290. size="btk"
  291. type="text"
  292. @click="handlePrint(scope.row)"
  293. v-hasPermi="['PrintsLog:printlog:edit']"
  294. >打印</el-button
  295. >
  296. <el-button
  297. size="btu"
  298. type="text"
  299. @click="handleUpdate(scope.row)"
  300. v-hasPermi="['PrintsManage:manage:edit']"
  301. >修改</el-button
  302. >
  303. <el-button
  304. size="btd"
  305. type="text"
  306. @click="handleDelete(scope.row)"
  307. v-hasPermi="['PrintsManage:manage:remove']"
  308. >删除</el-button
  309. >
  310. </template>
  311. </el-table-column>
  312. </el-table>
  313. <pagination
  314. v-show="total > 0"
  315. :total="total"
  316. :page.sync="queryParams.pageNum"
  317. :limit.sync="queryParams.pageSize"
  318. @pagination="getList"
  319. />
  320. <!-- 添加或修改集中文印主对话框 -->
  321. <el-dialog
  322. :title="title"
  323. :visible.sync="open"
  324. width="1010px"
  325. append-to-body
  326. :close-on-click-modal="false"
  327. >
  328. <div class="userAgree">
  329. <el-form
  330. ref="form"
  331. :model="form"
  332. :inline="true"
  333. :rules="rules"
  334. label-width="120px"
  335. >
  336. <div class="jiben">发送人信息</div>
  337. <el-form-item label="发送人" prop="sendName">
  338. <el-input
  339. v-model="form.sendName"
  340. disabled
  341. placeholder="请输入发送人"
  342. />
  343. </el-form-item>
  344. <el-form-item label="文印室" prop="printRoom">
  345. <el-select
  346. v-model="form.printRoom"
  347. clearable
  348. placeholder="请选择文印室"
  349. >
  350. <el-option
  351. v-for="dict in printRooms"
  352. :key="dict.dictValue"
  353. :label="dict.dictLabel"
  354. :value="parseInt(dict.dictValue)"
  355. ></el-option>
  356. </el-select>
  357. </el-form-item>
  358. <div class="jiben">打印说明</div>
  359. <el-form-item label prop="explainInfo">
  360. <el-input
  361. v-model="form.explainInfo"
  362. type="textarea"
  363. placeholder="请输入打印说明"
  364. class="textarea-explainInfo"
  365. />
  366. </el-form-item>
  367. <div class="jiben">文件信息</div>
  368. <!-- <el-form-item label="文件名称">
  369. <el-input v-model="form.name" placeholder="请输入文件名称" />
  370. </el-form-item>
  371. <el-form-item label="打印份数" prop="printNumber">
  372. <el-input
  373. v-model="form.printNumber"
  374. :min="0"
  375. placeholder="请输入打印份数"
  376. />
  377. </el-form-item>
  378. <el-form-item label="文件大小" prop="size">
  379. <el-input v-model="form.size" placeholder="请输入文件大小" />
  380. </el-form-item> -->
  381. <!-- <el-form-item label="单位ID" prop="unitId">
  382. <el-input v-model="form.unitId" placeholder="请输入单位ID" />
  383. </el-form-item>-->
  384. <!-- <el-form-item label="单位名称" prop="unitName">
  385. <el-input v-model="form.unitName" placeholder="请输入单位名称" />
  386. </el-form-item>-->
  387. <!-- <el-form-item label="文件类型" prop="type">
  388. <el-input v-model="form.type" placeholder="请输入文件类型" />
  389. </el-form-item> -->
  390. <!-- <el-form-item label="级别" prop="levelM">
  391. <el-select v-model="form.levelM" clearable placeholder="请选择级别">
  392. <el-option
  393. v-for="dict in levelMs"
  394. :key="dict.dictValue"
  395. :label="dict.dictLabel"
  396. :value="parseInt(dict.dictValue)"
  397. ></el-option>
  398. </el-select>
  399. </el-form-item> -->
  400. <!-- <el-form-item label="是否需要归还" prop="isReturn">
  401. <el-radio-group v-model="form.isReturn" style="width:200px;" size="mini">
  402. <el-radio label="1">归还</el-radio>
  403. <el-radio label="0">无需归还</el-radio>
  404. </el-radio-group>
  405. </el-form-item>-->
  406. <!-- <el-form-item label="是否为彩打" prop="isPrintColor">
  407. <el-radio-group
  408. v-model="form.isPrintColor"
  409. style="width: 200px"
  410. size="mini"
  411. >
  412. <el-radio label="1">是</el-radio>
  413. <el-radio label="0">否</el-radio>
  414. </el-radio-group>
  415. </el-form-item>
  416. <el-form-item label="是否为双面打" prop="isPrintTwo">
  417. <el-radio-group
  418. v-model="form.isPrintTwo"
  419. style="width: 200px"
  420. size="mini"
  421. >
  422. <el-radio label="1">是</el-radio>
  423. <el-radio label="0">否</el-radio>
  424. </el-radio-group>
  425. </el-form-item> -->
  426. <div class="box3" v-for="(item, i) in tomList" :key="i">
  427. <el-form
  428. ref="refform"
  429. :model="form"
  430. :rules="rules"
  431. label-width="80px"
  432. :inline="true"
  433. style="margin-left: 20px"
  434. >
  435. <el-form-item prop="type">
  436. <el-input
  437. class="forEach"
  438. disabled
  439. v-model="item.type"
  440. placeholder="请输入文件类型"
  441. />
  442. <!-- <el-select v-model="form.type" placeholder="请选择类型">
  443. <el-option label="请选择字典生成" value />
  444. </el-select>-->
  445. </el-form-item>
  446. <el-form-item prop="size">
  447. <el-input
  448. class="forEach"
  449. disabled
  450. v-model="item.size"
  451. placeholder="请输入文件大小"
  452. />
  453. </el-form-item>
  454. <el-form-item prop="levelM">
  455. <el-select
  456. v-model="item.levelM"
  457. clearable
  458. class="forEach"
  459. placeholder="请选择级别"
  460. >
  461. <el-option
  462. v-for="dict in levelMs"
  463. :key="dict.dictValue"
  464. :label="dict.dictLabel"
  465. :value="parseInt(dict.dictValue)"
  466. ></el-option>
  467. </el-select>
  468. </el-form-item>
  469. <el-form-item prop="printNumber">
  470. <el-input
  471. class="forEach"
  472. v-model="item.printNumber"
  473. :min="0"
  474. placeholder="请输入打印份数"
  475. />
  476. </el-form-item>
  477. <el-form-item>
  478. <!-- <el-button
  479. type="primary"
  480. icon="el-icon-plus"
  481. size="mini"
  482. style="padding: 11px 10px 10px 10px"
  483. @click="addForms"
  484. v-if="i == tomList.length - 1"
  485. ></el-button> -->
  486. <el-button
  487. type="danger"
  488. icon="el-icon-close"
  489. size="mini"
  490. style="padding: 11px 10px 10px 10px"
  491. v-if="i >= 0"
  492. @click="delForms(i)"
  493. ></el-button>
  494. </el-form-item>
  495. <el-form-item>
  496. <el-input
  497. class="fileName"
  498. suffix-icon="el-icon-document"
  499. disabled
  500. v-model="item.name"
  501. placeholder="请输入文件名称"
  502. />
  503. </el-form-item>
  504. <!-- <el-form-item label="单位ID" prop="unitId">
  505. <el-input v-model="form.unitId" placeholder="请输入单位ID" />
  506. </el-form-item>-->
  507. <!-- <el-form-item label="单位名称" prop="unitName">
  508. <el-input v-model="form.unitName" placeholder="请输入单位名称" />
  509. </el-form-item>-->
  510. <!-- <el-form-item label="是否需要归还" prop="isReturn">
  511. <el-radio-group v-model="form.isReturn" style="width:200px;" size="mini">
  512. <el-radio label="1">归还</el-radio>
  513. <el-radio label="0">无需归还</el-radio>
  514. </el-radio-group>
  515. </el-form-item>-->
  516. <el-form-item
  517. label="是否为彩打"
  518. label-width="150px"
  519. prop="isPrintColor"
  520. >
  521. <!-- <el-radio-group
  522. v-model="item.isPrintColor"
  523. style="width: 200px"
  524. size="mini"
  525. >
  526. <el-radio label="1">是</el-radio>
  527. <el-radio label="0">否</el-radio>
  528. </el-radio-group> -->
  529. <el-switch
  530. v-model="item.isPrintColor"
  531. active-color="#13ce66"
  532. inactive-color="#ccc"
  533. active-value="1"
  534. inactive-value="0"
  535. >
  536. </el-switch>
  537. <span class="greed" v-if="item.isPrintColor == '1'"></span>
  538. <span class="CCC" v-if="item.isPrintColor == '0'"></span>
  539. </el-form-item>
  540. <el-form-item
  541. label="是否为双面打"
  542. label-width="150px"
  543. prop="isPrintTwo"
  544. >
  545. <!-- <el-radio-group
  546. v-model="item.isPrintTwo"
  547. style="width: 200px"
  548. size="mini"
  549. >
  550. <el-radio label="1">是</el-radio>
  551. <el-radio label="0">否</el-radio>
  552. </el-radio-group> -->
  553. <el-switch
  554. v-model="item.isPrintTwo"
  555. active-color="#13ce66"
  556. inactive-color="#ccc"
  557. active-value="1"
  558. inactive-value="0"
  559. >
  560. </el-switch>
  561. <span class="greed" v-if="item.isPrintTwo == '1'"></span>
  562. <span class="CCC" v-if="item.isPrintTwo == '0'"></span>
  563. </el-form-item>
  564. </el-form>
  565. </div>
  566. <el-form-item style="margin-left: 20px" prop="name">
  567. <!-- <fileUpload v-model="form.file" /> -->
  568. <el-upload
  569. :action="uploadFileUrl"
  570. :before-upload="handleBeforeUpload"
  571. :file-list="fileList"
  572. :limit="limit"
  573. :on-error="handleUploadError"
  574. :on-exceed="handleExceed"
  575. :on-success="handleUploadSuccess"
  576. :show-file-list="false"
  577. :headers="headers"
  578. class="upload-file-uploader"
  579. ref="upload"
  580. style="width: 200px"
  581. name="pfile"
  582. >
  583. <!-- 上传按钮 -->
  584. <el-button size="mini" type="primary" class="select_file"
  585. >选取文件</el-button
  586. >
  587. </el-upload>
  588. </el-form-item>
  589. <!-- <el-form-item label="发送人ID" prop="sendId">
  590. <el-input v-model="form.sendId" placeholder="请输入发送人ID" />
  591. </el-form-item>-->
  592. <!-- <el-form-item label="创建时间" prop="creattime">
  593. <el-date-picker
  594. clearable
  595. size="small"
  596. v-model="form.creattime"
  597. type="date"
  598. value-format="yyyy-MM-dd"
  599. placeholder="选择创建时间"
  600. ></el-date-picker>
  601. </el-form-item>-->
  602. <!-- <el-form-item label="打印状态(1 打印中 2 已打印)">
  603. <el-radio-group v-model="form.printStatus">
  604. <el-radio label="1">请选择字典生成</el-radio>
  605. </el-radio-group>
  606. </el-form-item>
  607. <el-form-item label="接收人ID" prop="receiveId">
  608. <el-input v-model="form.receiveId" placeholder="请输入接收人ID" />
  609. </el-form-item>
  610. <el-form-item label="接收人" prop="receiveName">
  611. <el-input v-model="form.receiveName" placeholder="请输入接收人" />
  612. </el-form-item>
  613. <el-form-item label="生成路径">
  614. <fileUpload v-model="form.sFile" />
  615. </el-form-item>
  616. <el-form-item label="打印回复信息" prop="printInfo">
  617. <el-input v-model="form.printInfo" placeholder="请输入打印回复信息" />
  618. </el-form-item>-->
  619. </el-form>
  620. </div>
  621. <div slot="footer" class="dialog-footer">
  622. <el-button type="primary" @click="submitForm">确 定</el-button>
  623. <el-button @click="cancel" size="btn">取 消</el-button>
  624. </div>
  625. </el-dialog>
  626. <!-- 修改集中文印 -->
  627. <el-dialog
  628. :title="title1"
  629. :visible.sync="open1"
  630. width="900px"
  631. append-to-body
  632. :close-on-click-modal="false"
  633. >
  634. <el-form
  635. ref="form1"
  636. :model="form1"
  637. :inline="true"
  638. :rules="rules"
  639. label-width="120px"
  640. style="margin-left: 15px"
  641. >
  642. <div class="jiben">发送人信息</div>
  643. <el-form-item label="发送人" prop="sendName">
  644. <el-input
  645. v-model="form1.sendName"
  646. disabled
  647. placeholder="请输入发送人"
  648. />
  649. </el-form-item>
  650. <el-form-item label="文印室" prop="printRoom">
  651. <el-select
  652. v-model="form1.printRoom"
  653. clearable
  654. placeholder="请选择文印室"
  655. >
  656. <el-option
  657. v-for="dict in printRooms"
  658. :key="dict.dictValue"
  659. :label="dict.dictLabel"
  660. :value="parseInt(dict.dictValue)"
  661. ></el-option>
  662. </el-select>
  663. </el-form-item>
  664. <div class="jiben">打印说明</div>
  665. <el-form-item label prop="explainInfo">
  666. <el-input
  667. v-model="form1.explainInfo"
  668. type="textarea"
  669. placeholder="请输入打印说明"
  670. class="textarea-explainInfo1"
  671. />
  672. </el-form-item>
  673. <div class="jiben">文件信息</div>
  674. <el-form-item prop="type">
  675. <el-input
  676. class="forEach"
  677. disabled
  678. v-model="form1.type"
  679. placeholder="请输入文件类型"
  680. />
  681. <!-- <el-select v-model="form.type" placeholder="请选择类型">
  682. <el-option label="请选择字典生成" value />
  683. </el-select>-->
  684. </el-form-item>
  685. <el-form-item prop="size">
  686. <el-input
  687. class="forEach"
  688. disabled
  689. v-model="form1.size"
  690. placeholder="请输入文件大小"
  691. />
  692. </el-form-item>
  693. <el-form-item prop="levelM">
  694. <el-select
  695. v-model="form1.levelM"
  696. clearable
  697. class="forEach"
  698. placeholder="请选择级别"
  699. >
  700. <el-option
  701. v-for="dict in levelMs"
  702. :key="dict.dictValue"
  703. :label="dict.dictLabel"
  704. :value="parseInt(dict.dictValue)"
  705. ></el-option>
  706. </el-select>
  707. </el-form-item>
  708. <el-form-item prop="printNumber">
  709. <el-input
  710. class="forEach"
  711. v-model="form1.printNumber"
  712. :min="0"
  713. placeholder="请输入打印份数"
  714. />
  715. </el-form-item>
  716. <el-form-item>
  717. <el-input
  718. class="fileName"
  719. suffix-icon="el-icon-document"
  720. disabled
  721. v-model="form1.name"
  722. placeholder="请输入文件名称"
  723. />
  724. </el-form-item>
  725. <el-form-item
  726. label="是否为彩打"
  727. label-width="150px"
  728. prop="isPrintColor"
  729. >
  730. <el-switch
  731. v-model="form1.isPrintColor"
  732. active-color="#13ce66"
  733. inactive-color="#ccc"
  734. active-value="1"
  735. inactive-value="0"
  736. >
  737. </el-switch>
  738. <span class="greed" v-if="form1.isPrintColor == '1'"></span>
  739. <span class="CCC" v-if="form1.isPrintColor == '0'"></span>
  740. </el-form-item>
  741. <el-form-item
  742. label="是否为双面打"
  743. label-width="150px"
  744. prop="isPrintTwo"
  745. >
  746. <!-- <el-radio-group
  747. v-model="item.isPrintTwo"
  748. style="width: 200px"
  749. size="mini"
  750. >
  751. <el-radio label="1">是</el-radio>
  752. <el-radio label="0">否</el-radio>
  753. </el-radio-group> -->
  754. <el-switch
  755. v-model="form1.isPrintTwo"
  756. active-color="#13ce66"
  757. inactive-color="#ccc"
  758. active-value="1"
  759. inactive-value="0"
  760. >
  761. </el-switch>
  762. <span class="greed" v-if="form1.isPrintTwo == '1'"></span>
  763. <span class="CCC" v-if="form1.isPrintTwo == '0'"></span>
  764. </el-form-item>
  765. <el-form-item prop="name">
  766. <!-- <fileUpload v-model="form.file" /> -->
  767. <el-upload
  768. :action="uploadFileUrl"
  769. :before-upload="handleBeforeUpload"
  770. :file-list="fileList"
  771. :limit="limit"
  772. :on-error="handleUploadError"
  773. :on-exceed="handleExceed"
  774. :on-success="handleUploadSuccess"
  775. :show-file-list="false"
  776. :headers="headers"
  777. class="upload-file-uploader"
  778. ref="upload"
  779. style="width: 200px"
  780. name="pfile"
  781. >
  782. <!-- 上传按钮 -->
  783. <el-button size="mini" type="primary" class="select_file"
  784. >选取文件</el-button
  785. >
  786. </el-upload>
  787. </el-form-item>
  788. </el-form>
  789. <div slot="footer" class="dialog-footer">
  790. <el-button type="primary" @click="updatesubmit">确 定</el-button>
  791. <el-button @click="open1 = false" size="btn">取 消</el-button>
  792. </div>
  793. </el-dialog>
  794. <el-dialog
  795. :title="title"
  796. :visible.sync="dyopen"
  797. append-to-body
  798. width="700px"
  799. style="padding-top: 100px"
  800. :close-on-click-modal="false"
  801. @close="close"
  802. >
  803. <el-form
  804. ref="dyform"
  805. :model="dyform"
  806. :inline="true"
  807. :rules="rules"
  808. label-width="120px"
  809. >
  810. <div class="jiben jiben2">打印信息</div>
  811. <el-form-item label="打印文件" prop="printName">
  812. <el-input v-model="dyform.printName" placeholder="请输入打印文件" />
  813. </el-form-item>
  814. <el-form-item label="打印份数" prop="printNumber">
  815. <el-input
  816. v-model="dyform.printNumber"
  817. :min="0"
  818. placeholder="请输入打印份数"
  819. />
  820. </el-form-item>
  821. <el-form-item label="是否需要归还" prop="isReturn">
  822. <el-radio-group
  823. v-model="dyform.isReturn"
  824. style="width: 200px"
  825. size="mini"
  826. @change="dianji"
  827. >
  828. <el-radio label="1">归还</el-radio>
  829. <el-radio label="0">无需归还</el-radio>
  830. </el-radio-group>
  831. </el-form-item>
  832. <!-- <el-form-item label="是否为彩打" prop="isPrintColor">
  833. <el-radio-group v-model="dyform.isPrintColor" style="width:200px;" size="mini">
  834. <el-radio label="1">是</el-radio>
  835. <el-radio label="0">否</el-radio>
  836. </el-radio-group>
  837. </el-form-item>
  838. <el-form-item label="是否为双面打" prop="isPrintTwo">
  839. <el-radio-group v-model="dyform.isPrintTwo" style="width:200px;" size="mini">
  840. <el-radio label="1">是</el-radio>
  841. <el-radio label="0">否</el-radio>
  842. </el-radio-group>
  843. </el-form-item>-->
  844. <!-- <div class="jiben">打印人信息</div> -->
  845. <el-form-item label="打印人" prop="printfileName">
  846. <el-select
  847. v-model="dyform.printfileName"
  848. filterable
  849. clearable
  850. placeholder="请选择打印人"
  851. >
  852. <el-option
  853. v-for="item in rylist"
  854. :key="item.id"
  855. :label="item.name"
  856. :value="item.id"
  857. ></el-option>
  858. </el-select>
  859. </el-form-item>
  860. <div class="jiben jiben2">打印说明</div>
  861. <div
  862. style="
  863. width: 98.5%;
  864. height: 45px;
  865. font-size: 14px;
  866. line-height: 45px;
  867. color: #fff;
  868. border-bottom: 1px solid #fff;
  869. margin-bottom: 20px;
  870. padding-left: 15px;
  871. "
  872. v-if="yaoqiuflg"
  873. >
  874. 其他要求:{{ yaoqiu }}
  875. </div>
  876. <el-form-item label prop="explainInfo">
  877. <el-input
  878. v-model="dyform.explainInfo"
  879. type="textarea"
  880. placeholder="请输入打印说明"
  881. class="dyform-textarea"
  882. />
  883. </el-form-item>
  884. <div class="jiben jiben2" v-if="ramrk">备注</div>
  885. <el-form-item label prop="" v-if="ramrk">
  886. <el-input
  887. v-model="dyform.remark"
  888. type="textarea"
  889. placeholder="请输入备注"
  890. class="dyform-textarea"
  891. />
  892. </el-form-item>
  893. </el-form>
  894. <div slot="footer" class="dialog-footer">
  895. <el-button type="primary" @click="dysubmitForm">打 印</el-button>
  896. <el-button @click="dycancel" size="btn">取 消</el-button>
  897. </div>
  898. </el-dialog>
  899. <!-- <el-dialog
  900. :title="title"
  901. :visible.sync="dyopen2"
  902. append-to-body
  903. width="1500px"
  904. style="padding-top:100px;"
  905. >
  906. <div ref="file" v-html="tableau" style="width:100%;"></div>
  907. </el-dialog> -->
  908. <!-- 添加预览doc文件弹框 -->
  909. <el-dialog
  910. style="color: pink"
  911. :title="title3"
  912. :visible.sync="open33"
  913. width="1100px"
  914. append-to-body
  915. id="fileinfodocx"
  916. class="el-dialog__header"
  917. :close-on-click-modal="false"
  918. >
  919. <div ref="file"></div>
  920. <div slot="footer" class="dialog-footer">
  921. <el-button type="primary" @click="submitForm3">关 闭</el-button>
  922. <!-- <el-button @click="open33 = false" size="" class="aa1">
  923. 取 消</el-button
  924. > -->
  925. </div>
  926. </el-dialog>
  927. <!-- 预览PDF文件弹框 -->
  928. <el-dialog
  929. :title="title3"
  930. :visible.sync="previewDialog"
  931. width="850px"
  932. append-to-body
  933. id="fileinfopdf"
  934. class="el-dialog__header"
  935. :close-on-click-modal="false"
  936. >
  937. <template>
  938. <!-- <div style="margin-bottom:20px"> -->
  939. <div style="display: flex">
  940. <el-button
  941. :class="gopage == true ? 'bg' : ''"
  942. class="gopage"
  943. :theme="'default'"
  944. type="submit"
  945. :title="'上一页'"
  946. @click.native="prePage"
  947. >
  948. 上一页</el-button
  949. >
  950. <div
  951. style="
  952. width: 50px;
  953. height: 28px;
  954. background: #f4f4f4;
  955. text-align: center;
  956. line-height: 28px;
  957. "
  958. >
  959. {{ pageNum }}/{{ pageTotalNum }}
  960. </div>
  961. <el-button
  962. :class="gopage == false ? 'bg' : ''"
  963. :theme="'default'"
  964. class="downpage"
  965. type="submit"
  966. :title="'下一页'"
  967. @click.native="nextPage"
  968. >
  969. 下一页</el-button
  970. >
  971. <!-- <el-button :theme="'default'" type="submit" :title="'顺时针旋转'" @click.native="clock" > 顺时针旋转</el-button>
  972. <el-button :theme="'default'" type="submit" :title="'逆时针旋转'" @click.native="counterClock" > 逆时针旋转</el-button>
  973. <el-button :theme="'default'" type="submit" :title="'打印'" @click.native="pdfPrintAll"> 打印</el-button> -->
  974. </div>
  975. <PDF
  976. ref="pdf"
  977. :src="pdfurl"
  978. :page="pageNum"
  979. :rotate="pageRotate"
  980. @progress="loadedRatio = $event"
  981. @page-loaded="pageLoaded($event)"
  982. @num-pages="pageTotalNum = $event"
  983. @error="pdfError($event)"
  984. @link-clicked="page = $event"
  985. ></PDF>
  986. <!-- </div> -->
  987. <!-- <div class="el-dialog__footer"> -->
  988. <div slot="footer" class="dialog-footer">
  989. <el-button type="primary" @click="previewDialog = false"
  990. >关 闭</el-button
  991. >
  992. <!-- <el-button @click="previewDialog = false" size="" class="aa1"
  993. >取 消</el-button
  994. > -->
  995. </div>
  996. <!-- </div> -->
  997. </template>
  998. </el-dialog>
  999. <el-dialog
  1000. :title="title3"
  1001. :visible.sync="open44"
  1002. width="1100px"
  1003. append-to-body
  1004. id="fileinfopdf"
  1005. class="el-dialog__header"
  1006. :close-on-click-modal="false"
  1007. >
  1008. <template>
  1009. <div class="home">
  1010. <div v-html="tableau"></div>
  1011. </div>
  1012. <div slot="footer" class="dialog-footer">
  1013. <el-button type="primary" @click="open44 = false">关 闭</el-button>
  1014. <!-- <el-button @click="open44 = false" size="" class="aa1"
  1015. >取 消</el-button
  1016. > -->
  1017. </div>
  1018. </template>
  1019. </el-dialog>
  1020. </div>
  1021. </template>
  1022. <script>
  1023. import {
  1024. listManage,
  1025. getManage,
  1026. delManage,
  1027. addManage,
  1028. updateManage,
  1029. exportManage,
  1030. printFile,
  1031. listPeople,
  1032. printCode,
  1033. tkbox,
  1034. } from "@/api/PrintsManage/manage";
  1035. import { getToken } from "@/utils/auth";
  1036. import Cookies from "js-cookie";
  1037. import axios from "axios";
  1038. var XLSX = require("xlsx");
  1039. const docx = require("docx-preview");
  1040. window.JSZip = require("jszip");
  1041. import PDF from "vue-pdf";
  1042. export default {
  1043. name: "Manage",
  1044. dicts: ["level", "print_room"],
  1045. props: {
  1046. // 值
  1047. value: [String, Object, Array],
  1048. // 数量限制
  1049. limit: {
  1050. type: Number,
  1051. default: 10,
  1052. },
  1053. // 大小限制(MB)
  1054. fileSize: {
  1055. type: Number,
  1056. default: 50,
  1057. },
  1058. // 文件类型, 例如['png', 'jpg', 'jpeg']
  1059. fileType: {
  1060. type: Array,
  1061. default: () => ["doc", "xls", "ppt", "pdf"],
  1062. },
  1063. // 是否显示提示
  1064. isShowTip: {
  1065. type: Boolean,
  1066. default: true,
  1067. },
  1068. },
  1069. components: {
  1070. PDF,
  1071. },
  1072. data() {
  1073. return {
  1074. // 遮罩层
  1075. loading: true,
  1076. // 导出遮罩层
  1077. exportLoading: false,
  1078. // 选中数组
  1079. ids: [],
  1080. // 非单个禁用
  1081. single: true,
  1082. // 非多个禁用
  1083. multiple: true,
  1084. // 显示搜索条件
  1085. showSearch: true,
  1086. // 总条数
  1087. total: 0,
  1088. // 集中文印主表格数据
  1089. manageList: [],
  1090. // 弹出层标题
  1091. title: "",
  1092. // 是否显示弹出层
  1093. open: false,
  1094. dyopen: false,
  1095. // 查询参数
  1096. queryParams: {
  1097. pageNum: 1,
  1098. pageSize: 10,
  1099. name: null,
  1100. file: null,
  1101. type: null,
  1102. size: null,
  1103. unitId: null,
  1104. unitName: null,
  1105. levelM: null,
  1106. sendId: null,
  1107. sendName: null,
  1108. creattime: null,
  1109. updatetime: null,
  1110. explainInfo: null,
  1111. printStatus: null,
  1112. receiveId: null,
  1113. receiveName: null,
  1114. sFile: null,
  1115. printInfo: null,
  1116. printRoom: null,
  1117. },
  1118. // 表单参数
  1119. form: {
  1120. printsManageList: [],
  1121. },
  1122. dyform: {},
  1123. // 表单校验
  1124. rules: {
  1125. // name: [
  1126. // // { required: true, message: "发送文件不能为空", trigger: "click" },
  1127. // { required: true },
  1128. // ],
  1129. printRoom: [
  1130. { required: true, message: "打印室不能为空", trigger: "change" },
  1131. ],
  1132. isReturn: [
  1133. { required: true, message: "是否归还需要选择", trigger: "change" },
  1134. ],
  1135. printName: [
  1136. { required: true, message: "打印文件不能为空", trigger: "change" },
  1137. ],
  1138. printfileName: [
  1139. { required: true, message: "打印人不能为空", trigger: "change" },
  1140. ],
  1141. },
  1142. //级别
  1143. levelMs: [],
  1144. //文印室
  1145. printRooms: [],
  1146. baseUrl: process.env.VUE_APP_BASE_API,
  1147. uploadFileUrl:
  1148. process.env.VUE_APP_BASE_API + "/PrintsManage/manage/printFile", // 上传的图片服务器地址
  1149. headers: {
  1150. Authorization: "Bearer " + getToken(),
  1151. },
  1152. fileList: [],
  1153. faith: null,
  1154. rylist: [],
  1155. islist: [],
  1156. yaoqiu: "",
  1157. dyopen2: false,
  1158. tableau: null,
  1159. yaoqiuflg: false,
  1160. roles: "",
  1161. // 虚拟字段
  1162. fid: "",
  1163. open33: false,
  1164. title3: "预览文件",
  1165. // 下载文件路径
  1166. downurl: process.env.VUE_APP_BASE_API,
  1167. // pdf文件
  1168. previewDialog: false,
  1169. pdfurl: "",
  1170. pageNum: 1,
  1171. pageTotalNum: 1,
  1172. pageRotate: 0,
  1173. // 加载进度
  1174. loadedRatio: 0,
  1175. curPageNum: 0,
  1176. gopage: true,
  1177. // excel表格
  1178. tableau: null,
  1179. open44: false,
  1180. // 确定按钮
  1181. printshow: false,
  1182. printManage: {},
  1183. //添加文件为空
  1184. tomList: [
  1185. {
  1186. // 文件名称
  1187. name: null,
  1188. // 打印份数
  1189. printNumber: null,
  1190. // 文件大小
  1191. size: null,
  1192. // 级别
  1193. levelM: null,
  1194. // 是否为彩打
  1195. isPrintColor: null,
  1196. // 是否为双面打
  1197. isPrintTwo: null,
  1198. },
  1199. ],
  1200. // 上传文件
  1201. tomLists: [],
  1202. form1: {},
  1203. open1: false,
  1204. title1: "",
  1205. // 打印备注
  1206. ramrk:false
  1207. };
  1208. },
  1209. created() {
  1210. // if (Cookies.get("shuaxin") != "true") {
  1211. // window.location.reload();
  1212. // }
  1213. // Cookies.set("shuaxin", "true");
  1214. this.getList();
  1215. //级别
  1216. this.getDicts("level").then((response) => {
  1217. this.levelMs = response.data;
  1218. });
  1219. //文印室
  1220. this.getDicts("print_room").then((response) => {
  1221. this.printRooms = response.data;
  1222. });
  1223. //是否
  1224. this.getDicts("sys_is").then((response) => {
  1225. this.islist = response.data;
  1226. });
  1227. },
  1228. mounted() {
  1229. this.roles = Cookies.get("roles");
  1230. },
  1231. methods: {
  1232. // 打印点击叉号关闭事件
  1233. close(){
  1234. this.ramrk=false
  1235. },
  1236. // 点击是否需要归还触发
  1237. dianji(data){
  1238. if(data=='1') {
  1239. this.ramrk =false
  1240. }else if(data=='0'){
  1241. this.ramrk=true
  1242. }
  1243. },
  1244. // 增加工作登记
  1245. addForms() {
  1246. this.tomList.push({
  1247. // 文件名称
  1248. name: null,
  1249. // 打印份数
  1250. printNumber: null,
  1251. // 文件大小
  1252. size: null,
  1253. // 级别
  1254. levelM: null,
  1255. // 是否为彩打
  1256. isPrintColor: null,
  1257. // 是否为双面打
  1258. isPrintTwo: null,
  1259. });
  1260. },
  1261. // 删除对话框工作登记
  1262. delForms(i) {
  1263. this.tomList.splice(i, 1);
  1264. },
  1265. /** 查询集中文印主列表 */
  1266. getList() {
  1267. this.loading = true;
  1268. listManage(this.queryParams).then((response) => {
  1269. this.manageList = response.rows;
  1270. this.total = response.total;
  1271. this.loading = false;
  1272. });
  1273. },
  1274. // 取消按钮
  1275. cancel() {
  1276. this.open = false;
  1277. this.reset();
  1278. },
  1279. dycancel() {
  1280. this.dyopen = false;
  1281. this.ramrk=false
  1282. this.dyreset();
  1283. },
  1284. // 表单重置
  1285. reset() {
  1286. this.form = {
  1287. id: null,
  1288. name: null,
  1289. file: null,
  1290. type: null,
  1291. size: null,
  1292. unitId: null,
  1293. unitName: null,
  1294. levelM: null,
  1295. sendId: null,
  1296. sendName: null,
  1297. creattime: null,
  1298. updatetime: null,
  1299. explainInfo: null,
  1300. printStatus: 0,
  1301. receiveId: null,
  1302. receiveName: null,
  1303. sFile: null,
  1304. printInfo: null,
  1305. isReturn: null,
  1306. printNumber: null,
  1307. isPrintTwo: null,
  1308. isPrintColor: null,
  1309. printRoom: null,
  1310. };
  1311. this.resetForm("form");
  1312. },
  1313. // 表单重置
  1314. dyreset() {
  1315. this.dyform = {
  1316. id: null,
  1317. printName: null,
  1318. printNumber: null,
  1319. isReturn: null,
  1320. printfileName: null,
  1321. explainInfo: null,
  1322. file: null,
  1323. printId: null,
  1324. statusG: null,
  1325. isPrintTwo: null,
  1326. isPrintColor: null,
  1327. printRoom: null,
  1328. };
  1329. this.resetForm("dyform");
  1330. },
  1331. /** 搜索按钮操作 */
  1332. handleQuery() {
  1333. this.queryParams.pageNum = 1;
  1334. this.getList();
  1335. },
  1336. /** 重置按钮操作 */
  1337. resetQuery() {
  1338. this.resetForm("queryForm");
  1339. this.handleQuery();
  1340. },
  1341. // 多选框选中数据
  1342. handleSelectionChange(selection) {
  1343. this.ids = selection.map((item) => item.id);
  1344. this.single = selection.length !== 1;
  1345. this.multiple = !selection.length;
  1346. },
  1347. /** 新增按钮操作 */
  1348. handleAdd() {
  1349. (this.tomList = [
  1350. {
  1351. // 文件名称
  1352. name: null,
  1353. // 打印份数
  1354. printNumber: null,
  1355. // 文件大小
  1356. size: null,
  1357. // 级别
  1358. levelM: null,
  1359. // 是否为彩打
  1360. isPrintColor: null,
  1361. // 是否为双面打
  1362. isPrintTwo: null,
  1363. },
  1364. ]),
  1365. (this.fileList = []);
  1366. this.reset();
  1367. this.open = true;
  1368. this.title = "添加集中文印";
  1369. this.form.sendName = Cookies.get("nickName");
  1370. this.form.sendId = Cookies.get("userId");
  1371. },
  1372. /** 修改按钮操作 */
  1373. handleUpdate(row) {
  1374. // this.tomList=[]
  1375. (this.tomList = [
  1376. {
  1377. // 文件名称
  1378. name: null,
  1379. // 打印份数
  1380. printNumber: null,
  1381. // 文件大小
  1382. size: null,
  1383. // 级别
  1384. levelM: null,
  1385. // 是否为彩打
  1386. isPrintColor: null,
  1387. // 是否为双面打
  1388. isPrintTwo: null,
  1389. },
  1390. ]),
  1391. (this.fileList = []);
  1392. this.reset();
  1393. const id = row.id || this.ids;
  1394. getManage(id).then((response) => {
  1395. this.form1 = response.data;
  1396. this.form1.isPrintColor = response.data.isPrintColor + "";
  1397. this.form1.isPrintTwo = response.data.isPrintTwo + "";
  1398. // this.tomList[0].name=this.form.name
  1399. // this.tomList[0].type=this.form.type
  1400. // this.tomList[0].file=this.form.file
  1401. // this.tomList[0].printNumber=this.form.printNumber
  1402. // this.tomList[0].size=this.form.size
  1403. // this.tomList[0].levelM=this.form.levelM
  1404. // this.tomList[0].isPrintColor=this.form.isPrintColor
  1405. // this.tomList[0].isPrintTwo=this.form.isPrintTwo
  1406. this.open1 = true;
  1407. this.title1 = "修改集中文印";
  1408. });
  1409. },
  1410. // 修改提交
  1411. updatesubmit() {
  1412. this.$refs["form1"].validate((valid) => {
  1413. if (valid) {
  1414. updateManage(this.form1).then((response) => {
  1415. this.$modal.msgSuccess("修改成功");
  1416. this.open1 = false;
  1417. this.getList();
  1418. });
  1419. }
  1420. });
  1421. },
  1422. /** 提交按钮 */
  1423. submitForm() {
  1424. this.$refs["form"].validate((valid) => {
  1425. if (valid) {
  1426. if (this.form.id != null) {
  1427. updateManage(this.form).then((response) => {
  1428. this.$modal.msgSuccess("修改成功");
  1429. this.open = false;
  1430. this.getList();
  1431. });
  1432. } else {
  1433. this.form.printsManageList = this.tomList;
  1434. var num = 0;
  1435. var num1 = this.tomList.length;
  1436. for (let index = 0; index < this.tomList.length; index++) {
  1437. if (this.tomList[index].levelM) {
  1438. num += 1;
  1439. } else {
  1440. return this.$modal.msgWarning("请选择级别");
  1441. }
  1442. }
  1443. // this.tomList.forEach((item,i)=>{
  1444. // if(item.levelM){
  1445. // num+=1
  1446. // }else{
  1447. // return this.$modal.msgWarning("请选择级别");
  1448. // }
  1449. // })
  1450. if (num1 == num) {
  1451. addManage(this.form).then((response) => {
  1452. this.$modal.msgSuccess("新增成功");
  1453. this.open = false;
  1454. this.getList();
  1455. });
  1456. }
  1457. }
  1458. }
  1459. });
  1460. },
  1461. /** 删除按钮操作 */
  1462. handleDelete(row) {
  1463. const ids = row.id || this.ids;
  1464. this.$modal
  1465. .confirm("是否确认删除该数据项?")
  1466. .then(function () {
  1467. return delManage(ids);
  1468. })
  1469. .then(() => {
  1470. this.getList();
  1471. this.$modal.msgSuccess("删除成功");
  1472. })
  1473. .catch(() => {});
  1474. },
  1475. /** 导出按钮操作 */
  1476. handleExport() {
  1477. const queryParams = this.queryParams;
  1478. this.$modal
  1479. .confirm("是否确认导出所有集中文印主数据项?")
  1480. .then(() => {
  1481. this.exportLoading = true;
  1482. return exportManage(queryParams);
  1483. })
  1484. .then((response) => {
  1485. this.$download.name(response.msg);
  1486. this.exportLoading = false;
  1487. })
  1488. .catch(() => {});
  1489. },
  1490. // 上传前校检格式和大小
  1491. handleBeforeUpload(file) {
  1492. // 校检文件类型
  1493. this.tomLists.name = file.name;
  1494. this.form1.name = file.name;
  1495. if (file.size == 0) {
  1496. this.tomLists.size = "0 B";
  1497. this.form1.size = "0 B";
  1498. }
  1499. var k = 1024;
  1500. var sizes = ["B", "KB", "MB", "GB", "TB", "EB", "ZB", "YB"];
  1501. var i = Math.floor(Math.log(file.size) / Math.log(k));
  1502. this.tomLists.size = file.size;
  1503. this.form1.size = file.size;
  1504. this.tomLists.size =
  1505. (file.size / Math.pow(k, i)).toPrecision(3) + "" + sizes[i];
  1506. this.form1.size =
  1507. (file.size / Math.pow(k, i)).toPrecision(3) + "" + sizes[i];
  1508. if (this.fileType) {
  1509. let fileExtension = "";
  1510. if (file.name.lastIndexOf(".") > -1) {
  1511. fileExtension = file.name.slice(file.name.lastIndexOf(".") + 1);
  1512. this.tomLists.type = fileExtension;
  1513. this.form1.type = fileExtension;
  1514. }
  1515. const isTypeOk = this.fileType.some((type) => {
  1516. if (file.type.indexOf(type) > -1) return true;
  1517. if (fileExtension && fileExtension.indexOf(type) > -1) return true;
  1518. return false;
  1519. });
  1520. if (!isTypeOk) {
  1521. this.$message.error(
  1522. `文件格式不正确, 请上传${this.fileType.join("/")}格式文件!`
  1523. );
  1524. this.tomLists.name = null;
  1525. this.tomLists.size = null;
  1526. this.tomLists.type = null;
  1527. this.form1.name = null;
  1528. this.form1.size = null;
  1529. this.form1.type = null;
  1530. return false;
  1531. }
  1532. }
  1533. // 校检文件大小
  1534. if (this.fileSize) {
  1535. const isLt = file.size / 1024 / 1024 < this.fileSize;
  1536. if (!isLt) {
  1537. this.$message.error(`上传文件大小不能超过 ${this.fileSize} MB!`);
  1538. return false;
  1539. }
  1540. }
  1541. return true;
  1542. },
  1543. // 文件个数超出
  1544. handleExceed() {
  1545. this.$message.error(`上传文件数量不能超过 ${this.limit} 个!`);
  1546. },
  1547. // 上传失败
  1548. handleUploadError(err) {
  1549. this.$message.error("上传失败, 请重试");
  1550. },
  1551. // 上传成功回调
  1552. handleUploadSuccess(res, file) {
  1553. this.$message.success("上传成功");
  1554. this.fileList.push({
  1555. name: file.name,
  1556. file: res.url,
  1557. size: this.tomLists.size,
  1558. type: this.tomLists.type,
  1559. });
  1560. this.$emit("input", this.fileList);
  1561. this.tomList = this.fileList;
  1562. this.form1.file = res.url;
  1563. // this.tomList.push(this.form)
  1564. },
  1565. //打印
  1566. handlePrint(row) {
  1567. this.dyreset();
  1568. this.dyopen = true;
  1569. this.title = "打印";
  1570. this.dyform.printName = row.name;
  1571. this.dyform.explainInfo = row.explainInfo;
  1572. this.dyform.printId = row.id;
  1573. this.dyform.file = row.file;
  1574. this.dyform.statusG = 0;
  1575. this.dyform.printfileName = row.sendName;
  1576. this.dyform.printNumber = row.printNumber;
  1577. this.dyform.printRoom = row.printRoom;
  1578. this.dyform.type = row.type;
  1579. // this.dyform.isReturn = row.isReturn + "";
  1580. if (row.isPrintColor == 1) {
  1581. this.yaoqiu = "彩打";
  1582. this.yaoqiuflg = true;
  1583. }
  1584. if (row.isPrintTwo == 1) {
  1585. this.yaoqiuflg = true;
  1586. if (this.yaoqiu) {
  1587. this.yaoqiu += " 双面打";
  1588. } else {
  1589. this.yaoqiu = "双面打";
  1590. }
  1591. }
  1592. if (row.isPrintTwo != 1 && row.isPrintColor != 1) {
  1593. this.yaoqiuflg = false;
  1594. }
  1595. this.getrylist();
  1596. },
  1597. // 查看按钮预览
  1598. handlelook(row) {
  1599. if (row.type == "docx" || row.type == "doc") {
  1600. this.open33 = true;
  1601. axios({
  1602. method: "get",
  1603. responseType: "blob", // 设置响应文件格式
  1604. url: row.file,
  1605. }).then(({ data }) => {
  1606. $(".docx").attr("id", "printArea");
  1607. docx.renderAsync(data, this.$refs.file); // 渲染到页面预览
  1608. });
  1609. } else if (row.type == "pdf") {
  1610. this.previewDialog = true;
  1611. this.pdfurl = row.file;
  1612. this.pageNum = 1;
  1613. } else if (row.type == "xlsx") {
  1614. axios
  1615. .get(row.file, {
  1616. responseType: "arraybuffer", // 设置响应体类型为arraybuffer
  1617. })
  1618. .then(({ data }) => {
  1619. let workbook = XLSX.read(new Uint8Array(data), { type: "array" }); // 解析数据
  1620. this.open44 = true;
  1621. var worksheet = workbook.Sheets[workbook.SheetNames[0]]; // workbook.SheetNames 下存的是该文件每个工作表名字,这里取出第一个工作表
  1622. this.tableau = XLSX.utils.sheet_to_html(worksheet); // 渲染
  1623. });
  1624. }
  1625. },
  1626. // 预览弹框
  1627. submitForm3() {
  1628. this.open33 = false;
  1629. },
  1630. //获取人员
  1631. getrylist() {
  1632. listPeople().then((res) => {
  1633. if (res.code == 200) {
  1634. this.rylist = res.rows;
  1635. }
  1636. });
  1637. },
  1638. //打印提交
  1639. dysubmitForm() {
  1640. this.$refs["dyform"].validate((valid) => {
  1641. if (valid) {
  1642. if (this.dyform.isReturn == 0) {
  1643. this.dyform.statusG = 1;
  1644. } else {
  1645. this.dyform.statusG = 0;
  1646. }
  1647. printCode(this.dyform).then((res) => {
  1648. if (res.code == 200) {
  1649. if (this.dyform.type == "pdf") {
  1650. // let blob = new Blob([res]);
  1651. // let objectUrl = URL.createObjectURL(blob);
  1652. // let link = document.createElement("a");
  1653. // link.download =this.dyform.file;
  1654. // link.href = objectUrl;
  1655. // link.click();
  1656. // link.remove();
  1657. let xhr = new XMLHttpRequest();
  1658. xhr.open(
  1659. "get",
  1660. process.env.VUE_APP_BASE_API +
  1661. "/profile/print/" +
  1662. res.printFileName,
  1663. true
  1664. );
  1665. xhr.setRequestHeader("Content-Type", `application/pdf`);
  1666. xhr.responseType = "blob";
  1667. let that = this;
  1668. xhr.onload = function () {
  1669. if (this.status == 200) {
  1670. //接受二进制文件流
  1671. var blob = this.response;
  1672. // that.downloadExportFile(blob, fileName);
  1673. let downloadElement = document.createElement("a");
  1674. let href = blob;
  1675. if (typeof blob == "string") {
  1676. downloadElement.target = "_blank";
  1677. } else {
  1678. href = window.URL.createObjectURL(blob); //创建下载的链接
  1679. }
  1680. downloadElement.href = href;
  1681. downloadElement.download = that.dyform.printName;
  1682. // tagFileName +
  1683. //下载后文件名
  1684. document.body.appendChild(downloadElement);
  1685. downloadElement.click(); //点击下载
  1686. document.body.removeChild(downloadElement); //下载完成移除元素
  1687. if (typeof blob != "string") {
  1688. window.URL.revokeObjectURL(href); //释放掉blob对象
  1689. }
  1690. }
  1691. };
  1692. xhr.send();
  1693. this.dyopen = false;
  1694. this.ramrk=false
  1695. this.getList();
  1696. } else {
  1697. let downloadElement = document.createElement("a");
  1698. downloadElement.href =
  1699. process.env.VUE_APP_BASE_API +
  1700. "/profile/print/" +
  1701. res.printFileName;
  1702. downloadElement.download = this.dyform.printName;
  1703. document.body.appendChild(downloadElement);
  1704. downloadElement.click(); //点击下载
  1705. document.body.removeChild(downloadElement);
  1706. this.dyopen = false;
  1707. this.ramrk=false
  1708. this.printshow = true;
  1709. this.getList();
  1710. }
  1711. // var open=window.open();
  1712. // location.href =res.file;
  1713. }
  1714. });
  1715. }
  1716. });
  1717. // open.location.href="http://192.168.5.188:8080/priofile/print/202203211244.docx";
  1718. // window.open( `https://view.officeapps.live.com/op/view.aspx?src=http://192.168.5.188:8080/profile/print/202203211428.docx`, "_blank");
  1719. },
  1720. // 确定
  1721. handleok(row) {
  1722. // this.dyform.printName = row.name;
  1723. // this.dyform.explainInfo = row.explainInfo;
  1724. // this.dyform.printId = row.id;
  1725. // this.dyform.file = row.file;
  1726. // this.dyform.statusG = 0;
  1727. // this.dyform.printfileName = row.sendName;
  1728. // this.dyform.printNumber = row.printNumber;
  1729. // this.dyform.printRoom = row.printRoom;
  1730. // this.dyform.type = row.type;
  1731. this.printManage = row;
  1732. tkbox(this.printManage).then((res) => {
  1733. this.printshow = false;
  1734. this.getList();
  1735. });
  1736. },
  1737. /**
  1738. * 预览PDF
  1739. */
  1740. previewPDF(row, index) {
  1741. this.previewDialog = true;
  1742. },
  1743. // 上一页函数,
  1744. prePage() {
  1745. this.gopage = true;
  1746. var page = this.pageNum;
  1747. page = page > 1 ? page - 1 : this.pageTotalNum;
  1748. this.pageNum = page;
  1749. },
  1750. // 下一页函数
  1751. nextPage() {
  1752. this.gopage = false;
  1753. var page = this.pageNum;
  1754. page = page < this.pageTotalNum ? page + 1 : 1;
  1755. this.pageNum = page;
  1756. },
  1757. // 页面顺时针翻转90度。
  1758. clock() {
  1759. this.pageRotate += 90;
  1760. },
  1761. // 页面逆时针翻转90度。
  1762. counterClock() {
  1763. this.pageRotate -= 90;
  1764. },
  1765. // 页面加载回调函数,其中e为当前页数
  1766. pageLoaded(e) {
  1767. this.curPageNum = e;
  1768. },
  1769. // 错误时回调函数。
  1770. pdfError(error) {
  1771. console.error(error);
  1772. },
  1773. // 打印全部
  1774. pdfPrintAll() {
  1775. /**
  1776. * 打印界面字符乱码是因为你pdf中使用了自定义字体导致的,谷歌浏览器打印的时候预览界面真的变成了真·方块字 ,解决方案如下:
  1777. * 用文章最后的pdfjsWrapper.js在替换掉node_modules/vue-pdf/src/pdfjsWrapper.js
  1778. */
  1779. this.$refs.pdf.print();
  1780. },
  1781. },
  1782. };
  1783. </script>
  1784. <style scoped>
  1785. ::v-deep .el-dialog {
  1786. background-color: #004d86;
  1787. }
  1788. ::v-deep .el-dialog__header {
  1789. border-bottom: 1px solid #718a9d;
  1790. }
  1791. ::v-deep .el-dialog__title {
  1792. color: #fff;
  1793. font: 18px;
  1794. }
  1795. ::v-deep .el-dialog__headerbtn .el-dialog__close {
  1796. color: #fff;
  1797. }
  1798. .el-form-item ::v-deep .el-input__inner {
  1799. width: 200px;
  1800. height: 36px;
  1801. background: transparent;
  1802. color: #fff;
  1803. border: 1px solid #fff !important;
  1804. }
  1805. ::v-deep .el-date-editor.el-input {
  1806. width: 200px;
  1807. height: 36px;
  1808. }
  1809. .pictureUploading-img img {
  1810. width: 60px;
  1811. height: 210px;
  1812. margin-right: 10px;
  1813. }
  1814. ::v-deep .el-upload--picture-card {
  1815. height: 210px;
  1816. width: 170px;
  1817. line-height: 210px;
  1818. background-image: url("../../../assets/images/头像.png");
  1819. background-repeat: no-repeat;
  1820. background-size: 100% 100%;
  1821. }
  1822. ::v-deep .el-upload--picture-card .el-icon-plus {
  1823. display: none;
  1824. }
  1825. .el-upload--picture-card /deep/ .el-upload--picture-card i {
  1826. font-size: 48px;
  1827. }
  1828. ::v-deep .el-upload__tip {
  1829. display: none;
  1830. }
  1831. ::v-deep .textarea-explainInfo .el-textarea__inner {
  1832. margin-left: 20px;
  1833. width: 880px;
  1834. height: 104px;
  1835. }
  1836. ::v-deep .textarea-explainInfo1 .el-textarea__inner {
  1837. /* margin-left: 20px; */
  1838. width: 833px;
  1839. height: 104px;
  1840. }
  1841. ::v-deep .dyform-textarea .el-textarea__inner {
  1842. width: 650px;
  1843. height: 64px;
  1844. }
  1845. .jiben2 {
  1846. width: 650px;
  1847. }
  1848. .jiben span {
  1849. width: 25px;
  1850. height: 25px;
  1851. display: inline-block;
  1852. background-color: #1c86e1;
  1853. line-height: 25px;
  1854. text-align: center;
  1855. font-size: 16px;
  1856. cursor: pointer;
  1857. /* margin-left: 851px; */
  1858. position: absolute;
  1859. right: 20px;
  1860. }
  1861. .el-select-dropdown__item:hover {
  1862. color: #1c86e1;
  1863. }
  1864. .el-select-dropdown__item {
  1865. color: #000;
  1866. }
  1867. .el-tree {
  1868. background-color: #00365f;
  1869. color: #fff;
  1870. }
  1871. ::v-deep .el-tree-node__content:hover {
  1872. color: #1c86e1;
  1873. }
  1874. ::v-deep .el-upload-list--picture-card .el-upload-list__item {
  1875. height: 210px;
  1876. width: 170px;
  1877. }
  1878. .dadui {
  1879. height: 40px;
  1880. background: #003156;
  1881. /* border-bottom: 1px solid #718A9D ; */
  1882. background-image: url(../../../images/矩形底部边框.png);
  1883. background-repeat: no-repeat;
  1884. background-position: 0px 39px;
  1885. font-size: 16px;
  1886. color: #1d96ff;
  1887. }
  1888. .dadui img {
  1889. margin: 10px 10px 0px 10px;
  1890. }
  1891. .data {
  1892. height: 40px;
  1893. background: #003156;
  1894. margin-bottom: 12px;
  1895. color: #fff;
  1896. display: flex;
  1897. font-size: 13px;
  1898. line-height: 25px;
  1899. position: relative;
  1900. }
  1901. .el-tree {
  1902. padding: 10px;
  1903. background: #003156;
  1904. color: #fff;
  1905. }
  1906. .data p {
  1907. position: absolute;
  1908. top: -5px;
  1909. left: 15px;
  1910. }
  1911. .data .a1 {
  1912. width: 128px;
  1913. height: 26px;
  1914. background: rgba(23, 74, 112, 0.4);
  1915. border-radius: 13px;
  1916. position: absolute;
  1917. top: 7px;
  1918. left: 60px;
  1919. }
  1920. ::v-deep .data .el-date-editor.el-input {
  1921. width: 100%;
  1922. border: none;
  1923. }
  1924. ::v-deep .data .el-input__inner {
  1925. width: 100% !important;
  1926. border: none;
  1927. }
  1928. ::v-deep .data .el-input--medium .el-input__icon {
  1929. line-height: 36px;
  1930. position: absolute;
  1931. right: -223px;
  1932. top: 2px;
  1933. }
  1934. ::v-deep .data .el-input__inner {
  1935. background-color: transparent;
  1936. color: #fff;
  1937. text-align: center;
  1938. margin-top: 2px;
  1939. }
  1940. ::v-deep .data .el-input__suffix {
  1941. position: absolute;
  1942. right: 281px;
  1943. }
  1944. ::v-deep
  1945. .el-tree--highlight-current
  1946. .el-tree-node.is-current
  1947. > .el-tree-node__content {
  1948. color: #00365f !important;
  1949. /* background-color: #003156 !important; */
  1950. }
  1951. ::v-deep .el-radio-group .el-radio {
  1952. color: #fff;
  1953. }
  1954. /* ::v-deep .el-radio:last-child {
  1955. margin-left: 35px;
  1956. } */
  1957. /* 调整输入框提示文字颜色 */
  1958. ::v-deep .vue-treeselect__placeholder {
  1959. color: #bdbdbd4f !important;
  1960. }
  1961. ::v-deep input::-webkit-input-placeholder {
  1962. color: #bdbdbd4f !important;
  1963. }
  1964. ::v-deep input:-moz-placeholder {
  1965. color: #bdbdbd4f !important;
  1966. }
  1967. /* 文本域提示文字颜色 */
  1968. ::v-deep ::-webkit-input-placeholder {
  1969. color: #bdbdbd4f !important;
  1970. }
  1971. ::v-deep .el-dialog__footer {
  1972. padding-right: 30px !important;
  1973. }
  1974. ::v-deep .el-input__inner {
  1975. border: 1px solid white !important;
  1976. }
  1977. /* 预览弹框背景去除 */
  1978. ::v-deep .docx-wrapper {
  1979. padding: 0 !important;
  1980. background: none !important;
  1981. }
  1982. /* excel表格样式 */
  1983. ::v-deep .home table tr td {
  1984. text-align: right;
  1985. height: 20px;
  1986. min-width: 60px;
  1987. text-align: center;
  1988. /* margin-left: -5px ; */
  1989. /* width: 70px !important; */
  1990. border-right: 1px solid black;
  1991. border-bottom: 1px solid black !important;
  1992. }
  1993. ::v-deep .home table {
  1994. width: 100%;
  1995. border-spacing: 0px !important;
  1996. border-top: 1px solid black;
  1997. border-left: 1px solid black;
  1998. /* border-collapse: collapse !important;
  1999. border-color:#b6ff00 !important; */
  2000. }
  2001. ::v-deep .docx-wrapper table tr td {
  2002. border-bottom: 1px solid black !important;
  2003. }
  2004. ::v-deep .docx {
  2005. width: 100% !important;
  2006. }
  2007. /* 文件关闭小叉号 */
  2008. ::v-deep .el-dialog__headerbtn .el-dialog__close {
  2009. color: #ccc !important;
  2010. }
  2011. /* 上一页样式 */
  2012. .gopage {
  2013. width: 60px;
  2014. height: 28px;
  2015. background: #f4f4f4;
  2016. color: #60627d;
  2017. border-radius: 14px 0px 0px 14px;
  2018. padding: 6px 9px;
  2019. }
  2020. /* 下一页样式 */
  2021. .downpage {
  2022. width: 60px;
  2023. height: 28px;
  2024. background: #f4f4f4;
  2025. border-radius: 0px 14px 14px 0px;
  2026. padding: 6px 9px;
  2027. }
  2028. .bg {
  2029. background: #1d96ff;
  2030. color: white;
  2031. }
  2032. .greed {
  2033. position: absolute;
  2034. top: 26px;
  2035. right: -10px;
  2036. color: #13ce66;
  2037. }
  2038. .CCC {
  2039. position: absolute;
  2040. top: 26px;
  2041. right: 118px;
  2042. color: #cccccc;
  2043. }
  2044. /* 文件名称表格 */
  2045. ::v-deep .fileName .el-input__inner {
  2046. width: 316px !important;
  2047. text-indent: 1em;
  2048. /* background-color: #196299; */
  2049. }
  2050. ::v-deep .fileName .el-input__suffix {
  2051. left: -280px;
  2052. }
  2053. </style>