index.vue 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247
  1. <template>
  2. <div class="app-container">
  3. <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="88px">
  4. <el-row>
  5. <el-form-item label="客户名称" prop="fCorpid">
  6. <el-select
  7. v-model="queryParams.fCorpid"
  8. filterable
  9. remote
  10. clearable
  11. style="width: 200px"
  12. @keyup.enter.native="handleQuery"
  13. :remote-method="corpsRemoteMethod"
  14. placeholder="请输入客户名称"
  15. >
  16. <el-option
  17. v-for="(dict, index) in fMblnoOptions"
  18. :key="index.fId"
  19. :label="dict.fName"
  20. :value="dict.fId"
  21. ></el-option>
  22. </el-select>
  23. </el-form-item>
  24. <el-form-item label="制单部门" prop="fDeptid">
  25. <el-input
  26. v-model="queryParams.fDeptid"
  27. placeholder="请输入制单部门"
  28. clearable
  29. size="small"
  30. @keyup.enter.native="handleQuery"
  31. />
  32. </el-form-item>
  33. <el-form-item label="有效期起" prop="fBegindate">
  34. <el-date-picker clearable size="small" style="width: 200px"
  35. v-model="queryParams.fBegindate"
  36. type="date"
  37. value-format="yyyy-MM-dd"
  38. placeholder="选择有效期起"
  39. >
  40. </el-date-picker>
  41. </el-form-item>
  42. <el-form-item label="有效期至" prop="fEnddate">
  43. <el-date-picker clearable size="small" style="width: 200px"
  44. v-model="queryParams.fEnddate"
  45. type="date"
  46. value-format="yyyy-MM-dd"
  47. placeholder="选择有效期至"
  48. >
  49. </el-date-picker>
  50. </el-form-item>
  51. <el-form-item label="协议编号" prop="fContractno">
  52. <el-input
  53. v-model="queryParams.fContractno"
  54. placeholder="请输入协议编号"
  55. clearable
  56. size="small"
  57. @keyup.enter.native="handleQuery"
  58. />
  59. </el-form-item>
  60. <el-form-item label="作业费类型" prop="fTaskType" label-width="90px">
  61. <el-select v-model="queryParams.fTaskType" clearable placeholder="请选择作业费类型" :disabled="browseStatus">
  62. <el-option label="车队作业费" value="1"/>
  63. <el-option label="劳务作业费" value="2"/>
  64. </el-select>
  65. </el-form-item>
  66. <el-form-item label="商品类别" prop="tPackages">
  67. <el-select v-model="queryParams.tPackages" clearable placeholder="请选择商品类别" :disabled="browseStatus">
  68. <el-option
  69. v-for="dict in fTypeidOptions"
  70. :key="dict.dictValue"
  71. :label="dict.dictLabel"
  72. :value="dict.dictValue"
  73. style="width: 200px;"
  74. ></el-option>
  75. </el-select>
  76. </el-form-item>
  77. <el-form-item label="费用类型" prop="fDc">
  78. <el-select v-model="queryParams.fDc" clearable placeholder="请选择费用类型" style="width: 200px;" :disabled="browseStatus">
  79. <el-option label="收" value="D"></el-option>
  80. <el-option label="付" value="C"></el-option>
  81. </el-select>
  82. </el-form-item>
  83. <el-form-item>
  84. <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  85. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  86. </el-form-item>
  87. </el-row>
  88. </el-form>
  89. <el-row :gutter="10" class="mb8">
  90. <el-col :span="1.5">
  91. <el-button
  92. type="primary"
  93. icon="el-icon-plus"
  94. size="mini"
  95. @click="handleAdd()"
  96. v-hasPermi="['agreement:agreementTask:add']"
  97. >新增
  98. </el-button>
  99. </el-col>
  100. <!-- <el-col :span="1.5">-->
  101. <!-- <el-button-->
  102. <!-- type="success"-->
  103. <!-- icon="el-icon-edit"-->
  104. <!-- size="mini"-->
  105. <!-- :disabled="single"-->
  106. <!-- @click="handleUpdate"-->
  107. <!-- v-hasPermi="['agreement:agreementTask:edit']"-->
  108. <!-- >修改-->
  109. <!-- </el-button>-->
  110. <!-- </el-col>-->
  111. <!-- <el-col :span="1.5">-->
  112. <!-- <el-button-->
  113. <!-- type="danger"-->
  114. <!-- icon="el-icon-delete"-->
  115. <!-- size="mini"-->
  116. <!-- :disabled="multiple"-->
  117. <!-- @click="handleDelete"-->
  118. <!-- v-hasPermi="['agreement:agreementTask:remove']"-->
  119. <!-- >删除-->
  120. <!-- </el-button>-->
  121. <!-- </el-col>-->
  122. <el-col :span="1.5">
  123. <el-button
  124. type="warning"
  125. icon="el-icon-download"
  126. size="mini"
  127. @click="handleExport"
  128. v-hasPermi="['agreement:agreementTask:export']"
  129. >导出
  130. </el-button>
  131. </el-col>
  132. <el-col :span="1.5">
  133. <el-button
  134. type="info"
  135. icon="el-icon-download"
  136. size="mini"
  137. :disabled="single"
  138. @click="handleUpdate(null,2)"
  139. v-hasPermi="['agreement:agreementStorage:export']"
  140. >复制新增
  141. </el-button>
  142. </el-col>
  143. <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
  144. </el-row>
  145. <el-table v-loading="loading" :data="agreementList" @selection-change="handleSelectionChange">
  146. <el-table-column type="selection" width="55" align="center"/>
  147. <el-table-column type="index" label="行号" align="center" fixed/>
  148. <el-table-column label="客户名称" sortable align="center" prop="fCorpid" fixed width="220"/>
  149. <el-table-column label="作业费类型" sortable align="center" prop="fTaskType" fixed width="220">
  150. <template slot-scope="scope">
  151. <span v-if="scope.row.fTaskType === 1">车队作业费</span>
  152. <span v-if="scope.row.fTaskType === 2">劳务作业费</span>
  153. </template>
  154. </el-table-column>
  155. <el-table-column label="商品类别" sortable align="center" prop="tPackages" fixed width="220" :formatter="tPackagesFormat"/>
  156. <el-table-column label="费用类型" sortable align="center" prop="fDc" fixed width="220">
  157. <template slot-scope="scope">
  158. <span v-if="scope.row.fDc === 'D'">收</span>
  159. <span v-if="scope.row.fDc === 'C'">付</span>
  160. </template>
  161. </el-table-column>
  162. <el-table-column label="协议编号" sortable align="center" prop="fContractno" show-overflow-tooltip/>
  163. <!-- <el-table-column label="费用名称" align="center" prop="fFeeid"/>-->
  164. <el-table-column label="有效期起" sortable align="center" prop="fBegindate" width="180">
  165. <template slot-scope="scope">
  166. <span>{{ parseTime(scope.row.fBegindate, '{y}-{m}-{d}') }}</span>
  167. </template>
  168. </el-table-column>
  169. <el-table-column label="有效期至" sortable align="center" prop="fEnddate" width="180">
  170. <template slot-scope="scope">
  171. <span>{{ parseTime(scope.row.fEnddate, '{y}-{m}-{d}') }}</span>
  172. </template>
  173. </el-table-column>
  174. <!-- <el-table-column label="状态" align="center" prop="fId" />-->
  175. <el-table-column label="是否启用" align="center" prop="fStatus">
  176. <template slot-scope="scope">
  177. <el-switch
  178. v-model="scope.row.fStatus"
  179. active-value="0"
  180. inactive-value="1"
  181. @change="handleStatusChange(scope.row)"
  182. ></el-switch>
  183. </template>
  184. </el-table-column>
  185. <el-table-column label="状态" align="center" prop="fBillstatus">
  186. <template slot-scope="scope">
  187. <span v-if="scope.row.fBillstatus == '1'">保存</span>
  188. <span v-else-if="scope.row.fBillstatus == '2'">暂存</span>
  189. <span v-else-if="scope.row.fBillstatus == '3'">审批驳回</span>
  190. <span v-else-if="scope.row.fBillstatus == '4'">提交审核</span>
  191. <span v-else-if="scope.row.fBillstatus == '5'">审核中</span>
  192. <span v-else-if="scope.row.fBillstatus == '6'">审核完成</span>
  193. </template>
  194. </el-table-column>
  195. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" min-width="250px">
  196. <template slot-scope="scope">
  197. <el-button
  198. size="mini"
  199. type="text"
  200. icon="el-icon-view"
  201. @click="speed_s(scope.row,0)"
  202. v-hasPermi="['agreement:agreementTask:remove']"
  203. >查看
  204. </el-button>
  205. <el-button
  206. size="mini"
  207. type="text"
  208. icon="el-icon-edit"
  209. @click="handleUpdate(scope.row)"
  210. v-if="scope.row.fBillstatus <= 3"
  211. v-hasPermi="['agreement:agreementTask:edit']"
  212. >修改
  213. </el-button>
  214. <el-button
  215. size="mini"
  216. type="text"
  217. icon="el-icon-delete"
  218. @click="handleDelete(scope.row)"
  219. v-if="scope.row.fBillstatus <= 3"
  220. v-hasPermi="['agreement:agreementTask:remove']"
  221. >删除
  222. </el-button>
  223. <el-button
  224. size="mini"
  225. type="text"
  226. icon="el-icon-delete"
  227. @click="speed(scope.row,1)"
  228. v-if="scope.row.fBillstatus === '4' || scope.row.fBillstatus === '5'"
  229. v-hasPermi="['agreement:agreementTask:remove']"
  230. >审批进度
  231. </el-button>
  232. </template>
  233. </el-table-column>
  234. <!-- <el-table-column label="业务编号" align="center" prop="fBillno" />-->
  235. <!-- <el-table-column label="制单部门" align="center" prop="fDeptid" />-->
  236. <!-- <el-table-column label="结算方式" align="center" prop="fStltypeid" :formatter="fStltypeidFormat" />-->
  237. <!-- <el-table-column label="费用类型" align="center" prop="fFeetypeid" />-->
  238. <!-- <el-table-column label="货物类别" align="center" prop="tPackages" :formatter="tPackagesFormat" />-->
  239. <!-- <el-table-column label="贸易方式" align="center" prop="fTrademodeid" :formatter="fTrademodeidFormat" />-->
  240. <!-- <el-table-column label="免堆天数" align="center" prop="fFreedays" />-->
  241. <!-- <el-table-column label="备注" align="center" prop="remark" />-->
  242. </el-table>
  243. <pagination
  244. v-show="total>0"
  245. :total="total"
  246. :page.sync="queryParams.pageNum"
  247. :limit.sync="queryParams.pageSize"
  248. @pagination="getList"
  249. />
  250. <!-- 添加或修改作业费对话框 -->
  251. <el-dialog
  252. v-dialogDrag
  253. :fullscreen="dialogFull"
  254. :title="title"
  255. :visible.sync="open"
  256. :show-close="Xbutton"
  257. width="65%" append-to-body
  258. :before-close="handleClose"
  259. :close-on-click-modal="false">
  260. <template slot="title">
  261. <div class="avue-crud__dialog__header">
  262. <span class="el-dialog__title">
  263. <span style="display:inline-block;width:3px;height:20px;margin-right:5px; float: left;margin-top:2px"></span>
  264. </span>
  265. <div class="avue-crud__dialog__menu enlarge" @click="full">
  266. <i style="cursor: pointer;display: block;width:12px;height:12px;border:1px solid #909399;border-top:3px solid #909399;margin-top: -3px;"></i>
  267. </div>
  268. </div>
  269. </template>
  270. <el-form ref="form" :model="form" :rules="rules" label-width="80px"
  271. style="display: flex;flex-wrap: wrap;">
  272. <el-form-item label="客户名称" prop="fCorpid">
  273. <el-select
  274. v-model="form.fCorpid"
  275. filterable
  276. remote
  277. clearable
  278. :disabled="browseStatus"
  279. style="width: 200px"
  280. @keyup.enter.native="handleQuery"
  281. :remote-method="corpsRemoteMethod"
  282. placeholder="请输入客户名称"
  283. >
  284. <el-option
  285. v-for="(dict, index) in fMblnoOptions"
  286. :key="index.fId"
  287. :label="dict.fName"
  288. :value="dict.fId"
  289. ></el-option>
  290. </el-select>
  291. </el-form-item>
  292. <el-form-item label="制单部门">
  293. <el-input v-model="deptName" :disabled="true" placeholder="请输入制单部门" style="width: 200px"/>
  294. </el-form-item>
  295. <el-form-item label="有效期起" prop="fBegindate">
  296. <el-date-picker clearable size="small" style="width: 200px"
  297. v-model="form.fBegindate"
  298. type="date"
  299. :disabled="browseStatus"
  300. value-format="timestamp"
  301. placeholder="选择有效期起"
  302. >
  303. </el-date-picker>
  304. </el-form-item>
  305. <el-form-item label="有效期至" prop="fEnddate">
  306. <el-date-picker clearable size="small" style="width: 200px"
  307. v-model="form.fEnddate"
  308. type="date"
  309. :disabled="browseStatus"
  310. value-format="timestamp"
  311. placeholder="选择有效期至"
  312. >
  313. </el-date-picker>
  314. </el-form-item>
  315. <el-form-item label="协议编号" prop="fContractno">
  316. <el-input v-model="form.fContractno" placeholder="请输入协议编号" :disabled="browseStatus" style="width: 200px"/>
  317. </el-form-item>
  318. <el-form-item label="商品类别" prop="tPackages">
  319. <el-select v-model="form.tPackages" placeholder="请选择商品类别" :disabled="browseStatus">
  320. <el-option
  321. v-for="dict in fTypeidOptions"
  322. :key="dict.dictValue"
  323. :label="dict.dictLabel"
  324. :value="dict.dictValue"
  325. style="width: 210px;"
  326. ></el-option>
  327. </el-select>
  328. </el-form-item>
  329. <el-form-item label="作业费类型" prop="fTaskType" label-width="90px">
  330. <el-select v-model="form.fTaskType" placeholder="请选择作业费类型" :disabled="browseStatus">
  331. <el-option label="车队作业费" value="1"/>
  332. <el-option label="劳务作业费" value="2"/>
  333. </el-select>
  334. </el-form-item>
  335. <el-form-item label="费用类型" prop="fDc">
  336. <el-select v-model="form.fDc" @change="changefDc" placeholder="请选择费用类型" :disabled="browseStatus">
  337. <el-option label="收" value="D"></el-option>
  338. <el-option label="付" value="C"></el-option>
  339. </el-select>
  340. </el-form-item>
  341. <el-form-item label="业务类型" prop="">
  342. <el-select
  343. v-model="form.fBilltype"
  344. placeholder="请选择业务类型"
  345. clearable
  346. style="width:200px"
  347. size="small"
  348. multiple
  349. @keyup.enter.native="handleQuery"
  350. >
  351. <el-option
  352. v-for="(dict,index) in options"
  353. :key="index.key"
  354. :label="dict.name"
  355. :value="dict.key"/>
  356. </el-select>
  357. </el-form-item>
  358. </el-form>
  359. <el-button @click="confirmCharge" :disabled="stop" v-if="form.fBillstatus < 4" type="primary">请 核</el-button>
  360. <el-button @click="revokeCharge" v-if="form.fBillstatus === '6'" type="danger">撤销请核</el-button>
  361. <el-button @click="revocationApproval" :disabled="tablefilter" v-if="form.fBillstatus === '4' && operator === lander" type="danger">撤销审批</el-button>
  362. <div class="dialogTableTitle flex a-center jlr">
  363. <h2>作业费明细</h2>
  364. <el-button @click="getList_s" :disabled="browseStatus">新增</el-button>
  365. </div>
  366. <el-table v-loading="loading_s" :data="agreementitemsList">
  367. <el-table-column label="行号" align="center" type="index"/>
  368. <el-table-column
  369. prop="fFeeid"
  370. header-align="center"
  371. align="center"
  372. width="180px"
  373. label="费用名称"
  374. >
  375. <template slot-scope="scope">
  376. <el-select
  377. v-model="scope.row.fFeeid"
  378. filterable
  379. :disabled="browseStatus"
  380. remote
  381. :remote-method="fWRemoteMethod"
  382. placeholder="费用名称"
  383. >
  384. <el-option
  385. v-for="(dict, index) in fWbuOptions"
  386. :key="index.fId"
  387. :label="dict.fName"
  388. :value="dict.fId"
  389. ></el-option>
  390. </el-select>
  391. </template>
  392. </el-table-column>
  393. <el-table-column
  394. prop="fFeeunitid"
  395. header-align="center"
  396. align="center"
  397. width="180px"
  398. label="计价单位"
  399. >
  400. <template slot-scope="scope">
  401. <el-select
  402. v-model="scope.row.fFeeunitid"
  403. placeholder="请选择计价单位"
  404. @change="changeFeeUnit(scope.row)"
  405. clearable
  406. :disabled="browseStatus"
  407. >
  408. <el-option
  409. v-for="(dict, index) in jFeetunitOptions"
  410. :key="index.dictValue"
  411. :label="dict.dictLabel"
  412. :value="dict.dictValue"
  413. />
  414. </el-select>
  415. </template>
  416. </el-table-column>
  417. <el-table-column label="单价" align="center">
  418. <el-input
  419. slot-scope="scope"
  420. v-model="scope.row.fPrice"
  421. placeholder="请输入单价"
  422. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  423. :disabled="browseStatus"
  424. clearable
  425. size="small"
  426. />
  427. </el-table-column>
  428. <el-table-column label="录入人" align="center">
  429. <el-input
  430. slot-scope="scope"
  431. v-model="scope.row.createBy"
  432. :disabled="true"
  433. placeholder="默认录入人"
  434. clearable
  435. size="small"
  436. />
  437. </el-table-column>
  438. <el-table-column label="录入时间" align="center">
  439. <el-input
  440. slot-scope="scope"
  441. v-model="scope.row.createTime"
  442. placeholder="默认录入时间"
  443. :disabled="true"
  444. clearable
  445. size="small"
  446. />
  447. </el-table-column>
  448. <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
  449. <template slot-scope="scope">
  450. <el-button
  451. size="mini"
  452. type="text"
  453. icon="el-icon-delete"
  454. :disabled="browseStatus"
  455. @click.native.prevent="deleteRow(scope.$index, agreementitemsList)"
  456. >删除
  457. </el-button>
  458. </template>
  459. </el-table-column>
  460. </el-table>
  461. <div slot="footer" class="dialog-footer">
  462. <el-button v-if="approvalProhibit" @click="immediateApproval">审批</el-button>
  463. <el-button v-if="form.fBillstatus > 2" @click="viewAudit">查看审批</el-button>
  464. <el-button type="primary" @click="submitForm" :disabled="determine || browseStatus">保 存</el-button>
  465. <el-button v-if="cancelButton === true" @click="cancel">取 消</el-button>
  466. <el-button v-if="cancelButton === false" @click="homePage">取 消</el-button>
  467. <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
  468. <approval-comments v-if="addOrUpdateVisib" ref="ApprovalComments" @refreshDataList="returnData"></approval-comments>
  469. </div>
  470. </el-dialog>
  471. </div>
  472. </template>
  473. <script>
  474. import moment from 'moment'
  475. import {
  476. listAgreement,
  477. getAgreement,
  478. delAgreement,
  479. addAgreement,
  480. exportAgreement,
  481. listAgreementitems,
  482. queryUserVal,
  483. updateAgreements,
  484. collecTask,
  485. backCharge,
  486. revocation
  487. } from '@/api/agreement/agreement'
  488. import { listCorps } from '@/api/basicdata/corps'
  489. import { listGoods } from '@/api/basicdata/goods'
  490. import { listFees } from '@/api/basicdata/fees'
  491. import AddOrUpdate from '@/views/viewApproval'
  492. import ApprovalComments from '@/views/startApproval'
  493. import Global from '@/layout/components/global.js'
  494. import Vue from 'vue'
  495. Vue.directive('dialogDrag', {
  496. bind(el, binding, vnode, oldVnode) {
  497. const dialogHeaderEl = el.querySelector('.el-dialog__header')
  498. const dragDom = el.querySelector('.el-dialog')
  499. const enlarge = el.querySelector('.enlarge')
  500. dialogHeaderEl.style.cursor = 'move'
  501. // 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null);
  502. const sty = dragDom.currentStyle || window.getComputedStyle(dragDom, null)
  503. if(enlarge){
  504. enlarge.onclick = (e) => {
  505. dragDom.style.top = '0px'
  506. dragDom.style.left = '0px'
  507. }
  508. }
  509. dialogHeaderEl.onmousedown = (e) => {
  510. // 鼠标按下,计算当前元素距离可视区的距离
  511. const disX = e.clientX - dialogHeaderEl.offsetLeft
  512. const disY = e.clientY - dialogHeaderEl.offsetTop
  513. // 获取到的值带px 正则匹配替换
  514. let styL, styT
  515. // 注意在ie中 第一次获取到的值为组件自带50% 移动之后赋值为px
  516. if (sty.left.includes('%')) {
  517. styL = +document.body.clientWidth * (+sty.left.replace(/\%/g, '') / 100)
  518. styT = +document.body.clientHeight * (+sty.top.replace(/\%/g, '') / 100)
  519. } else {
  520. styL = +sty.left.replace(/\px/g, '')
  521. styT = +sty.top.replace(/\px/g, '')
  522. }
  523. document.onmousemove = function(e) {
  524. // 通过事件委托,计算移动的距离
  525. const l = e.clientX - disX
  526. const t = e.clientY - disY
  527. // 移动当前元素
  528. if ((t + styT) >= 0){
  529. dragDom.style.top = `${t + styT}px`
  530. }
  531. dragDom.style.left = `${l + styL}px`
  532. // 将此时的位置传出去
  533. // binding.value({x:e.pageX,y:e.pageY})
  534. }
  535. document.onmouseup = function(e) {
  536. document.onmousemove = null
  537. document.onmouseup = null
  538. }
  539. }
  540. }
  541. })
  542. export default {
  543. name: 'Agreement',
  544. components: {
  545. AddOrUpdate,
  546. ApprovalComments
  547. },
  548. data() {
  549. return {
  550. options:[{
  551. name:'出库',
  552. key:'SJCK'
  553. },{
  554. name:'入库',
  555. key:'SJRK'
  556. },{
  557. name:'调拨',
  558. key:'CKDB'
  559. }],
  560. //全屏放大
  561. dialogFull:false,
  562. addOrEdid:1,
  563. idCopy:'',
  564. stop:false,
  565. lander:'',
  566. operator:'',
  567. dataList: '',
  568. // 遮罩层
  569. loading: true,
  570. determine:false,
  571. cancelButton:true,
  572. approvalProhibit:false,
  573. loading_s: false,
  574. Xbutton:true,
  575. browseStatus:false,
  576. addOrUpdateVisible:false,
  577. addOrUpdateVisib:false,
  578. tablefilter:false,
  579. // 计价单位
  580. jFeetunitOptions: [
  581. /*{ dictLabel: "件数", dictValue: "1" },
  582. { dictLabel: "毛重", dictValue: "2" },
  583. { dictLabel: "净重", dictValue: "3" },
  584. { dictLabel: "尺码", dictValue: "4" },
  585. { dictLabel: "固定", dictValue: "5" },*/
  586. ],
  587. goodsOptions:[],
  588. fTypeidOptions: [],
  589. // 选中数组
  590. ids: [],
  591. deptName:'',
  592. // 客户(客户数据)
  593. fMblnoOptions: [],
  594. fFeeunitidOptions: [],
  595. fWbuOptions: [],
  596. // 非单个禁用
  597. single: true,
  598. // 非多个禁用
  599. multiple: true,
  600. // 显示搜索条件
  601. showSearch: true,
  602. // 总条数
  603. total: 0,
  604. // 仓储费表格数据
  605. agreementList: [],
  606. // 弹出层标题
  607. title: '',
  608. // 是否显示弹出层
  609. open: false,
  610. // 结算方式,也可以从表t_stltypes中下拉选择,存储id,显示name字典
  611. fStltypeidOptions: [],
  612. // 货物类别,存储t_packages,f_id 显示名称,可以多选t_packages 中的no或 name,模糊查找选择后,存储f_id,显示name字典
  613. tPackagesOptions: [],
  614. // 贸易方式,对应t_trademodels 字典
  615. fTrademodeidOptions: [],
  616. // 仓储费明细表表格数据
  617. agreementitemsList: [],
  618. // 查询参数
  619. queryParams: {
  620. pageNum: 1,
  621. pageSize: 10,
  622. fBillno: null,
  623. fDeptid: null,
  624. fContractno: null,
  625. fCorpid: null,
  626. fStltypeid: null,
  627. fGoodsid: null,
  628. fFeetypeid: null,
  629. tPackages: null,
  630. fTrademodeid: null,
  631. fFreedays: null,
  632. fBegindate: null,
  633. fEnddate: null,
  634. fBillstatus: null,
  635. fTaskType:null,
  636. fDc:null,
  637. },
  638. // 表单参数
  639. form: {
  640. fTaskType: '1',
  641. fDc : "D",
  642. fBilltype:''
  643. },
  644. // 表单校验
  645. rules: {
  646. fBillno: [
  647. {
  648. required: true,
  649. message: ' ',
  650. trigger: 'blur'
  651. }
  652. ],
  653. fCorpid: [
  654. { required: true, message: ' ', trigger: 'blur' }
  655. ],
  656. tPackages:[
  657. { required: true, message: ' ', trigger: 'blur' }
  658. ],
  659. fBegindate:[
  660. { required: true, message: ' ', trigger: 'blur' }
  661. ],
  662. fEnddate:[
  663. { required: true, message: ' ', trigger: 'blur' }
  664. ]
  665. }
  666. }
  667. },
  668. created() {
  669. this.getList()
  670. this.getDicts('data_settlement_method').then(response => {
  671. this.fStltypeidOptions = response.data
  672. })
  673. this.getDicts('data_package_unit').then(response => {
  674. this.tPackagesOptions = response.data
  675. })
  676. this.getDicts('data_trademodes').then(response => {
  677. this.fTrademodeidOptions = response.data
  678. })
  679. this.getDicts("data_goods_category").then(response => {
  680. this.fTypeidOptions = response.data;
  681. });
  682. this.getDicts("data_unitfees").then(response => {
  683. this.jFeetunitOptions = response.data;
  684. });
  685. let queryParams = { pageNum: 1, type: 1 };
  686. listCorps(queryParams).then((response) => {
  687. this.fMblnoOptions = response.rows;
  688. });
  689. this.register()
  690. },
  691. activated(){
  692. this.adoPt()
  693. },
  694. methods: {
  695. full(){
  696. this.dialogFull = !this.dialogFull
  697. },
  698. changefDc(){
  699. if(this.form.fDc === 'D'){
  700. let queryParams = { pageNum: 1, pageSize: 10, fDc:'D'};
  701. listFees(queryParams).then((response) => {
  702. this.fWbuOptions = response.rows;
  703. });
  704. }else if(this.form.fDc === 'C'){
  705. let queryParams = { pageNum: 1, pageSize: 10, fDc:'C'};
  706. listFees(queryParams).then((response) => {
  707. this.fWbuOptions = response.rows;
  708. });
  709. }
  710. if(this.agreementitemsList.length){
  711. this.$message.error("请重新选择费用名称")
  712. for(let item in this.agreementitemsList){
  713. this.agreementitemsList[item].fFeeid = ''
  714. }
  715. }
  716. },
  717. // 默认录入人
  718. register() {
  719. queryUserVal().then((response)=>{
  720. this.lander = response.user.userName
  721. })
  722. },
  723. immediateApproval(){
  724. this.addOrUpdateVisib = true
  725. this.$nextTick(() => {
  726. this.$refs.ApprovalComments.init(this.approval.billId,320)
  727. })
  728. },
  729. adoPt(){
  730. this.tablefilter = true
  731. this.approval = this.$route.query.data
  732. if (this.approval){
  733. this.cancelButton = false
  734. this.determine = true
  735. this.Xbutton = false
  736. this.tablefilter = true
  737. this.browseStatus = true
  738. this.approval = JSON.parse(this.approval)
  739. this.approvalProhibit = true
  740. this.pass = {
  741. fAmtdr: '', //应收合计
  742. fAmtcr: '', //应付合计
  743. fMblno: '', //提单号
  744. fName: '', //货权方
  745. fFeesName: '', //结算单位
  746. fCorpid: '' //结算单位ID
  747. }
  748. getAgreement(this.approval.billId).then(response => {
  749. this.deptName = response.data.dept.deptName
  750. this.form = response.data.tWarehouseAgreement
  751. this.$set(this.form, 'fEnddate', Date.parse(this.form.fEnddate))
  752. this.$set(this.form, 'fBegindate', Date.parse(this.form.fBegindate))
  753. this.agreementitemsList = response.data.tWarehouseAgreementitems
  754. for (let item in this.agreementitemsList) {
  755. this.$set(this.agreementitemsList[item], 'fFeeunitid', this.agreementitemsList[item].fFeeunitid + '')
  756. }
  757. this.fWbuOptions = response.data.feesList
  758. this.open = true
  759. this.title = '修改作业费'
  760. })
  761. }
  762. },
  763. viewAudit(){
  764. this.addOrUpdateVisible = true
  765. this.addOrUpdateVisib = false
  766. let id = '448'
  767. let actId = '110'
  768. this.$nextTick(() => {
  769. this.$refs.addOrUpdate.init(this.form.fId,320)
  770. })
  771. },
  772. returnData(){
  773. this.open = false
  774. this.addOrUpdateVisib = false
  775. this.homePage()
  776. },
  777. getDataList(){
  778. this.addOrUpdateVisible = false
  779. },
  780. homePage(){
  781. let view = {
  782. fullPath: "/agreement/agreementTask",
  783. hash: "",
  784. matched: Array(2),
  785. meta: Object,
  786. name: "AgreementTask",
  787. params: Object,
  788. path: "/agreement/agreementTask",
  789. query: Object,
  790. title: "作业费协议",
  791. }
  792. this.$router.push({ path: '/index' })
  793. this.$store.dispatch('tagsView/delView', view).then(({ visitedViews }) => {
  794. if (this.isActive(view)) {
  795. this.toLastView(visitedViews, view)
  796. }
  797. })
  798. Global.$emit('removeCache', 'closeSelectedTag', view)
  799. },
  800. /** 创建仓储费明细表列表 */
  801. getList_s() {
  802. queryUserVal().then((response) => {
  803. this.agreementitemsList.push({
  804. //行号
  805. fLineno: '',
  806. //计价单位
  807. fFeeunitid: '',
  808. //费用名称
  809. fFeeid: '',
  810. //开始天数
  811. fFromdays: '',
  812. //结束天数
  813. fEndays: '',
  814. //单价
  815. fPrice: '',
  816. //录入人
  817. createBy: response.user.userName,
  818. //创建时间
  819. createTime: moment(Date.parse(new Date())).format('YYYY-MM-DD HH:mm:ss')
  820. })
  821. this.deptName = response.dept.deptName
  822. this.form.fDeptid = response.dept.deptId
  823. this.agreementitemsList.createBy = response.user.userName
  824. })
  825. },
  826. speed_s(row, res) {
  827. this.stop = true
  828. this.determine = true
  829. this.tablefilter = true
  830. this.browseStatus = true
  831. this.approvalProhibit = false
  832. const fId = row.fId || this.ids
  833. getAgreement(fId).then(response => {
  834. this.deptName = response.data.dept.deptName
  835. this.form = response.data.tWarehouseAgreement
  836. this.$set(this.form, 'fTaskType', this.form.fTaskType + '')
  837. this.$set(this.form, 'fEnddate', Date.parse(this.form.fEnddate))
  838. this.$set(this.form, 'fBegindate', Date.parse(this.form.fBegindate))
  839. this.operator = this.form.createBy
  840. this.agreementitemsList = response.data.tWarehouseAgreementitems
  841. for (let item in this.agreementitemsList) {
  842. this.$set(this.agreementitemsList[item], 'fFeeunitid', this.agreementitemsList[item].fFeeunitid + '')
  843. }
  844. this.fWbuOptions = response.data.feesList
  845. this.open = true
  846. this.title = '查看作业费'
  847. })
  848. },
  849. speed(row, res) {
  850. this.register()
  851. if (res === 1) {
  852. this.tablefilter = false
  853. }
  854. this.determine = true
  855. this.browseStatus = true
  856. this.approvalProhibit = false
  857. const fId = row.fId || this.ids
  858. getAgreement(fId).then(response => {
  859. this.deptName = response.data.dept.deptName
  860. this.form = response.data.tWarehouseAgreement
  861. this.$set(this.form, 'fEnddate', Date.parse(this.form.fEnddate))
  862. this.$set(this.form, 'fBegindate', Date.parse(this.form.fBegindate))
  863. this.operator = this.form.createBy
  864. this.agreementitemsList = response.data.tWarehouseAgreementitems
  865. for (let item in this.agreementitemsList) {
  866. this.$set(this.agreementitemsList[item], 'fFeeunitid', this.agreementitemsList[item].fFeeunitid + '')
  867. }
  868. this.fWbuOptions = response.data.feesList
  869. this.open = true
  870. this.title = '查看作业费'
  871. })
  872. },
  873. revocationApproval(){
  874. let data = {
  875. id:this.form.fId,
  876. actId: 320,
  877. billId:this.form.fId
  878. }
  879. revocation(data).then(data =>{
  880. if (data.code === 200){
  881. this.$message.success('撤销成功');
  882. this.open = false
  883. this.getList()
  884. }
  885. })
  886. },
  887. // 请核
  888. confirmCharge() {
  889. if (this.agreementitemsList.length <= 0) {
  890. this.$message.error('作业费明细为空无法操作')
  891. return false
  892. }
  893. for (let agr = 0; agr < this.agreementitemsList.length; agr ++) {
  894. if (!this.agreementitemsList[agr].fFeeid) {
  895. this.$message.error('请维护费用名称')
  896. return false
  897. }
  898. if (!this.agreementitemsList[agr].fFeeunitid) {
  899. this.$message.error('请维计价单位')
  900. return false
  901. }
  902. if (!this.agreementitemsList[agr].fPrice) {
  903. this.$message.error('请维单价')
  904. return false
  905. }
  906. }
  907. this.$refs['form'].validate(valid => {
  908. if (valid) {
  909. let formData = new window.FormData()
  910. formData.append('agreement', JSON.stringify(this.form))
  911. formData.append('agreementitems', JSON.stringify(this.agreementitemsList))
  912. collecTask(formData).then(response => {
  913. this.msgSuccess('请核成功')
  914. this.open = false
  915. this.agreementitemsList = []
  916. this.getList()
  917. })
  918. }
  919. })
  920. },
  921. // 撤销作业费
  922. revokeCharge(){
  923. this.form.fBillstatus = '1'
  924. let formDate = new window.FormData()
  925. formDate.append('agreement', JSON.stringify(this.form))
  926. formDate.append('agreementitems', JSON.stringify(this.agreementitemsList))
  927. backCharge(formDate).then(response => {
  928. this.open = false
  929. this.msgSuccess('操作成功')
  930. this.getList()
  931. })
  932. },
  933. /* 远程模糊查询商品 */
  934. goodsRemoteMethod(name) {
  935. if (name == null || name === "") {
  936. return false;
  937. }
  938. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  939. listGoods(queryParams).then((response) => {
  940. this.goodsOptions = response.rows;
  941. });
  942. },
  943. // 计价单位
  944. fFeeunitidFormat(row, column) {
  945. return this.selectDictLabel(this.fFeeunitidOptions, row.fFeeunitid);
  946. },
  947. /** 查询作业费列表 */
  948. getList() {
  949. this.loading = true
  950. listAgreement(this.queryParams).then(response => {
  951. this.agreementList = response.rows
  952. this.total = response.total
  953. this.loading = false
  954. })
  955. },
  956. // 结算方式,也可以从表t_stltypes中下拉选择,存储id,显示name字典翻译
  957. fStltypeidFormat(row, column) {
  958. return this.selectDictLabel(this.fStltypeidOptions, row.fStltypeid)
  959. },
  960. // 货物类别,存储t_packages,f_id 显示名称,可以多选t_packages 中的no或 name,模糊查找选择后,存储f_id,显示name字典翻译
  961. tPackagesFormat(row, column) {
  962. return this.selectDictLabel(this.fTypeidOptions, row.tPackages)
  963. },
  964. // 贸易方式,对应t_trademodels 字典翻译
  965. fTrademodeidFormat(row, column) {
  966. return this.selectDictLabel(this.fTrademodeidOptions, row.fTrademodeid)
  967. },
  968. // 取消按钮
  969. cancel() {
  970. this.idCopy = null
  971. this.reset()
  972. this.getList()
  973. this.open = false
  974. },
  975. handleClose(){
  976. this.reset()
  977. this.getList()
  978. this.open = false
  979. },
  980. // 表单重置
  981. reset() {
  982. this.determine = false
  983. this.browseStatus = false
  984. this.agreementitemsList = []
  985. this.form = {
  986. fId: null,
  987. fBillno: null,
  988. fDeptid: null,
  989. fContractno: null,
  990. fCorpid: null,
  991. fStltypeid: null,
  992. fGoodsid: null,
  993. fFeetypeid: null,
  994. tPackages: null,
  995. fTrademodeid: null,
  996. fFreedays: null,
  997. fBegindate: null,
  998. fEnddate: null,
  999. fBillstatus: '0',
  1000. delFlag: null,
  1001. createBy: null,
  1002. createTime: null,
  1003. updateBy: null,
  1004. updateTime: null,
  1005. remark: null
  1006. }
  1007. this.resetForm('form')
  1008. },
  1009. /** 搜索按钮操作 */
  1010. handleQuery() {
  1011. this.queryParams.pageNum = 1
  1012. this.getList()
  1013. },
  1014. // 变更计价单位
  1015. changeFeeUnit(row) {
  1016. if (!row.fFeeUnitid) {
  1017. return false;
  1018. }
  1019. if (row.fFeeUnitid === "0") {
  1020. this.$set(row, "fQty", this.fCntqty);
  1021. } else if (row.fFeeUnitid === "1") {
  1022. this.$set(row, "fQty", this.fGrossweight);
  1023. }
  1024. if (row.fUnitprice) {
  1025. this.$set(row, "fAmount", parseFloat(Number(row.fUnitprice) * Number(row.fQty)).toFixed(2));
  1026. }
  1027. },
  1028. /** 重置按钮操作 */
  1029. resetQuery() {
  1030. this.resetForm('queryForm')
  1031. this.handleQuery()
  1032. },
  1033. // 多选框选中数据
  1034. handleSelectionChange(selection) {
  1035. this.ids = selection.map(item => item.fId)
  1036. this.idCopy = this.ids[0]
  1037. this.single = selection.length !== 1
  1038. this.multiple = !selection.length
  1039. },
  1040. // 远程模糊查询费用名称
  1041. fWRemoteMethod(name) {
  1042. this.fWbuOptions = []
  1043. if (name == null || name === "") {
  1044. return false;
  1045. }
  1046. let fDc = this.form.fDc
  1047. let queryParams = { pageNum: 1, pageSize: 10, fName: name, fDc:fDc};
  1048. listFees(queryParams).then((response) => {
  1049. this.fWbuOptions = response.rows
  1050. });
  1051. },
  1052. // 作业费状态修改
  1053. handleStatusChange(row) {
  1054. if (row.fBillstatus == '6'){
  1055. let text = row.fStatus === "0" ? "启用" : "停用";
  1056. this.$confirm('确认要"' + text + '""' + row.fCorpid + '"用户吗?', "警告", {
  1057. confirmButtonText: "确定",
  1058. cancelButtonText: "取消",
  1059. type: "warning"
  1060. }).then(function() {
  1061. return updateAgreements(row.fId, row.fStatus);
  1062. }).then(() => {
  1063. this.msgSuccess(text + "成功");
  1064. }).catch(function() {
  1065. row.fStatus = row.fStatus === "0" ? "1" : "0";
  1066. });
  1067. }else {
  1068. row.fStatus = 0
  1069. this.$message.error('审核完成时才能启用');
  1070. }
  1071. },
  1072. /** 新增按钮操作 */
  1073. handleAdd() {
  1074. this.stop = false
  1075. this.determine = false
  1076. this.browseStatus = false
  1077. this.reset()
  1078. this.open = true
  1079. this.title = '添加作业费'
  1080. this.form = {
  1081. fTaskType :'1',
  1082. fDc:"D"
  1083. }
  1084. queryUserVal().then((response) => {
  1085. this.deptName = response.dept.deptName
  1086. this.form.fDeptid = response.dept.deptId
  1087. });
  1088. },
  1089. /** 修改按钮操作 */
  1090. handleUpdate(row,num) {
  1091. if(num === 2){
  1092. console.log("111")
  1093. getAgreement(this.idCopy).then(response => {
  1094. this.register()
  1095. this.deptName = response.data.dept.deptName
  1096. this.form = response.data.tWarehouseAgreement
  1097. this.form.fId = null
  1098. this.form.fBillstatus = ''
  1099. this.$set(this.form, 'fTaskType', this.form.fTaskType + '')
  1100. this.$set(this.form, 'fEnddate', Date.parse(this.form.fEnddate))
  1101. this.$set(this.form, 'fBegindate', Date.parse(this.form.fBegindate))
  1102. this.operator = this.form.createBy
  1103. this.agreementitemsList = response.data.tWarehouseAgreementitems
  1104. for (let item in this.agreementitemsList) {
  1105. this.$set(this.agreementitemsList[item], 'fFeeunitid', this.agreementitemsList[item].fFeeunitid + '')
  1106. }
  1107. this.form.fBilltype = response.data.tWarehouseAgreement.fBilltype.replace(/\[|]/g, '').replace(/\"/g, "").split(",")
  1108. this.fWbuOptions = response.data.feesList
  1109. this.open = true
  1110. this.title = '修改作业费'
  1111. })
  1112. }else{
  1113. this.stop = false
  1114. this.browseStatus = false
  1115. this.determine = false
  1116. this.reset()
  1117. this.cancelButton = true
  1118. const fId = row.fId || this.ids
  1119. getAgreement(fId).then(response => {
  1120. this.register()
  1121. this.deptName = response.data.dept.deptName
  1122. this.form = response.data.tWarehouseAgreement
  1123. this.$set(this.form, 'fTaskType', this.form.fTaskType + '')
  1124. this.$set(this.form, 'fEnddate', Date.parse(this.form.fEnddate))
  1125. this.$set(this.form, 'fBegindate', Date.parse(this.form.fBegindate))
  1126. this.operator = this.form.createBy
  1127. this.agreementitemsList = response.data.tWarehouseAgreementitems
  1128. for (let item in this.agreementitemsList) {
  1129. this.$set(this.agreementitemsList[item], 'fFeeunitid', this.agreementitemsList[item].fFeeunitid + '')
  1130. }
  1131. this.form.fBilltype = response.data.tWarehouseAgreement.fBilltype.replace(/\[|]/g, '').replace(/\"/g, "").split(",")
  1132. this.fWbuOptions = response.data.feesList
  1133. this.open = true
  1134. this.title = '修改作业费'
  1135. })
  1136. }
  1137. },
  1138. /** 远程模糊查询用户 */
  1139. corpsRemoteMethod(name) {
  1140. if (name == null || name === "") {
  1141. return false;
  1142. }
  1143. let queryParams = { pageNum: 1, fName: name, type: 1 };
  1144. listCorps(queryParams).then((response) => {
  1145. this.fMblnoOptions = response.rows;
  1146. this.KHblnoOptions = response.rows;
  1147. });
  1148. },
  1149. /** 提交按钮 */
  1150. submitForm() {
  1151. if(this.addOrEdid == 2){
  1152. this.$set(this.form, 'fId', null)
  1153. }
  1154. this.$refs['form'].validate(valid => {
  1155. if (valid) {
  1156. let formData = new window.FormData()
  1157. formData.append('agreement', JSON.stringify(this.form))
  1158. formData.append('agreementitems', JSON.stringify(this.agreementitemsList))
  1159. addAgreement(formData).then(response => {
  1160. this.msgSuccess('操作成功')
  1161. this.form = response.data.tWarehouseAgreement
  1162. this.$set(this.form, 'fTaskType', this.form.fTaskType + '')
  1163. this.$set(this.form, 'fEnddate', Date.parse(this.form.fEnddate))
  1164. this.$set(this.form, 'fBegindate', Date.parse(this.form.fBegindate))
  1165. this.form.fBilltype = response.data.tWarehouseAgreement.fBilltype.replace(/\[|]/g, '').replace(/\"/g, "").split(",")
  1166. })
  1167. }
  1168. })
  1169. },
  1170. /** 删除按钮操作 */
  1171. handleDelete(row) {
  1172. const fIds = row.fId || this.ids;
  1173. this.$confirm('是否确认删除作业费编号为"' + fIds + '"的数据项?', "警告", {
  1174. confirmButtonText: "确定",
  1175. cancelButtonText: "取消",
  1176. type: "warning"
  1177. }).then(function() {
  1178. return delAgreement(fIds);
  1179. }).then(() => {
  1180. this.getList();
  1181. this.msgSuccess("删除成功");
  1182. })
  1183. },
  1184. /** 导出按钮操作 */
  1185. handleExport() {
  1186. const queryParams = this.queryParams
  1187. this.$confirm('是否确认导出所有作业费数据项?', '警告', {
  1188. confirmButtonText: '确定',
  1189. cancelButtonText: '取消',
  1190. type: 'warning'
  1191. }).then(function() {
  1192. return exportAgreement(queryParams)
  1193. }).then(response => {
  1194. this.download(response.msg)
  1195. })
  1196. },
  1197. deleteRow(index, rows) {
  1198. rows.splice(index, 1);
  1199. },
  1200. }
  1201. }
  1202. </script>
  1203. <style lang="scss">
  1204. .avue-crud__dialog__header {
  1205. display: -webkit-box;
  1206. display: -ms-flexbox;
  1207. display: flex;
  1208. -webkit-box-align: center;
  1209. -ms-flex-align: center;
  1210. align-items: center;
  1211. -webkit-box-pack: justify;
  1212. -ms-flex-pack: justify;
  1213. justify-content: space-between;
  1214. }
  1215. .el-dialog__title {
  1216. color: rgba(0,0,0,.85);
  1217. font-weight: 500;
  1218. word-wrap: break-word;
  1219. }
  1220. .avue-crud__dialog__menu {
  1221. padding-right: 20px;
  1222. float: left;
  1223. }
  1224. .avue-crud__dialog__menu i {
  1225. color: #909399;
  1226. font-size: 15px;
  1227. }
  1228. .el-icon-full-screen{
  1229. cursor: pointer;
  1230. }
  1231. .el-icon-full-screen:before {
  1232. content: "\e719";
  1233. }
  1234. </style>