purchaseReceiptStatisticsList.vue 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664
  1. //采购入库报表
  2. <template>
  3. <div class="container">
  4. <el-scrollbar style="height: 100%">
  5. <el-row>
  6. <el-col style="padding-left: 15px" :span="16">
  7. <ws-button
  8. :type="searchType == 1 ? 'primary' : ''"
  9. @click="handlestatus(1)"
  10. >待审核</ws-button
  11. >
  12. <ws-button
  13. :type="searchType == 2 ? 'primary' : ''"
  14. @click="handlestatus(2)"
  15. >待结算</ws-button
  16. >
  17. <ws-button
  18. :type="searchType == 3 ? 'primary' : ''"
  19. @click="handlestatus(3)"
  20. >已结算</ws-button
  21. >
  22. <ws-button
  23. :type="searchType == '' ? 'primary' : ''"
  24. @click="handlestatus('')"
  25. >全部</ws-button
  26. >
  27. <ws-button
  28. type="primary"
  29. v-hasPermission="`report.procurementInReport.view`"
  30. @click="handlepass()"
  31. >通过</ws-button
  32. >
  33. <ws-button
  34. type="primary"
  35. v-hasPermission="`report.procurementInReport.view`"
  36. @click="handlereject()"
  37. >驳回</ws-button
  38. >
  39. <ws-button
  40. type="primary"
  41. v-hasPermission="`report.procurementInReport.payment`"
  42. @click="handlepayment"
  43. >付款</ws-button
  44. >
  45. <ws-button
  46. type="primary"
  47. v-hasPermission="`report.procurementInReport.draw`"
  48. @click="handleninvoice"
  49. >开发票</ws-button
  50. >
  51. <ws-button
  52. type="primary"
  53. v-hasPermission="`report.procurementInReport.edit`"
  54. @click="amend()"
  55. >修改</ws-button
  56. >
  57. <ws-button
  58. type="primary"
  59. v-hasPermission="`report.procurementInReport.carry`"
  60. @click="carryover"
  61. >补货结转</ws-button
  62. >
  63. </el-col>
  64. <el-col
  65. style="text-align: right; line-height: 60px; padding-right: 10px"
  66. :span="8"
  67. >
  68. <el-select
  69. v-model="contractNo"
  70. placeholder="请选择合同"
  71. clearable
  72. filterable
  73. :filter-method="dataFilter"
  74. @change="contractchange"
  75. maxlength="500"
  76. type="input"
  77. class="findValue"
  78. >
  79. <el-option
  80. v-if="item.reportStatus"
  81. v-for="item in options"
  82. :key="item.constKey"
  83. :label="item.contractNo + '(' + item.reportStatus + ')'"
  84. :value="item.contractNo"
  85. />
  86. <el-option
  87. v-if="!item.reportStatus"
  88. v-for="item in options"
  89. :key="item.constKey"
  90. :label="item.contractNo"
  91. :value="item.contractNo"
  92. />
  93. </el-select>
  94. </el-col>
  95. </el-row>
  96. <div v-if="contractNo != ''">
  97. <span v-if="orderList.transactionsNumber"
  98. >合同重量: {{ orderList.transactionsNumber }} 吨</span
  99. >
  100. <span v-else>合同重量: 0 吨</span>
  101. <span v-if="orderList.cumulativeTurnover"
  102. >成交量: {{ orderList.cumulativeTurnover }} 吨</span
  103. >
  104. <span v-else>成交量: 0 吨</span>
  105. <span v-if="orderList.closedPosition"
  106. >已平仓: {{ orderList.closedPosition }} 吨</span
  107. >
  108. <span v-else>已平仓: 0 吨</span>
  109. <span v-if="orderList.stockInQuantity"
  110. >入库量: {{ orderList.stockInQuantity }} 吨</span
  111. >
  112. <span v-else>入库量: 0 吨</span>
  113. </div>
  114. <el-table
  115. class="wenzi"
  116. :data="warehouseList.records"
  117. style="width: 100%; margin-top: 20px"
  118. ref="warehouseList"
  119. border
  120. :summary-method="getSummaries"
  121. show-summary
  122. @row-click="handleRowClick"
  123. @selection-change="handleSelectionChange"
  124. >
  125. <el-table-column
  126. :selectable="selectInit"
  127. type="selection"
  128. width="55"
  129. ></el-table-column>
  130. <el-table-column type="index" label="序号" width="50"></el-table-column>
  131. <el-table-column
  132. class="table_td"
  133. prop="contractNo"
  134. width="120"
  135. label="合同编号"
  136. ></el-table-column>
  137. <el-table-column
  138. class="table_td"
  139. prop="goodsName"
  140. label="货名"
  141. ></el-table-column>
  142. <el-table-column
  143. class="table_td"
  144. prop="positionNumber"
  145. label="仓位号"
  146. ></el-table-column>
  147. <el-table-column class="table_td" prop="carNo" label="车牌号" width="140"
  148. ><template slot-scope="scope">
  149. {{ scope.row.carNo }}({{ scope.row.tranCarNo }})
  150. </template></el-table-column
  151. >
  152. <el-table-column
  153. class="table_td"
  154. prop="warehousingDate"
  155. width="100"
  156. label="入库日期"
  157. ></el-table-column>
  158. <el-table-column
  159. width="100"
  160. class="table_td"
  161. prop="protein"
  162. label="蛋白(%)>="
  163. ></el-table-column>
  164. <el-table-column
  165. width="100"
  166. class="table_td"
  167. prop="waterContent"
  168. label="水分(%)<="
  169. ></el-table-column>
  170. <el-table-column
  171. width="100"
  172. class="table_td"
  173. prop="unitPrice"
  174. label="单价(元/吨)"
  175. ></el-table-column>
  176. <el-table-column
  177. width="100"
  178. class="table_td"
  179. prop="basisPrice"
  180. label="基差(元/吨)"
  181. ></el-table-column>
  182. <el-table-column
  183. width="120"
  184. class="table_td"
  185. prop="unloadingCharge"
  186. label="卸车费(元/吨)"
  187. ></el-table-column>
  188. <el-table-column
  189. width="120"
  190. class="table_td"
  191. prop="invoiceFee"
  192. label="发票费(元/吨)"
  193. ></el-table-column>
  194. <el-table-column
  195. width="100"
  196. class="table_td"
  197. prop="deductionAmount"
  198. label="扣款(元/吨)"
  199. ></el-table-column>
  200. <el-table-column
  201. width="140"
  202. class="table_td"
  203. prop="settlementPrice"
  204. label="结算单价(元/吨)"
  205. ></el-table-column>
  206. <el-table-column
  207. class="table_td"
  208. prop="netWeight"
  209. label="净重(吨)"
  210. ></el-table-column>
  211. <el-table-column
  212. width="100"
  213. class="table_td"
  214. label="应付金额(元)"
  215. prop="amountIngPayable"
  216. ></el-table-column>
  217. <el-table-column
  218. width="100"
  219. class="table_td"
  220. label="已付金额(元)"
  221. prop="amountEdPayable"
  222. ></el-table-column>
  223. <el-table-column
  224. width="100"
  225. class="table_td"
  226. label="未付金额(元)"
  227. prop="amountNotPayable"
  228. ></el-table-column>
  229. <el-table-column
  230. class="table_td"
  231. label="付款日期"
  232. prop="paymentDate"
  233. ></el-table-column>
  234. <el-table-column
  235. class="table_td"
  236. label="结转"
  237. prop="carryForward"
  238. ></el-table-column>
  239. <el-table-column
  240. class="table_td"
  241. label="客户确认"
  242. prop="customerConfirmationStatus"
  243. ></el-table-column>
  244. <el-table-column
  245. class="table_td"
  246. label="客户"
  247. prop="customerName"
  248. ></el-table-column>
  249. <el-table-column
  250. class="table_td"
  251. label="库点"
  252. prop="warehouseName"
  253. ></el-table-column>
  254. <el-table-column
  255. class="table_td"
  256. label="发票类型"
  257. prop="invoiceType"
  258. ></el-table-column>
  259. <el-table-column
  260. width="100"
  261. class="table_td"
  262. v-hasPermission="`report.procurementInReport.draw`"
  263. prop="alreadyInvoice"
  264. label="已开发票(元)"
  265. >
  266. <template slot-scope="scope">
  267. {{ scope.row.alreadyInvoice }}
  268. <img
  269. v-if="
  270. scope.row.amountEdPayable > 0
  271. "
  272. width="17"
  273. height="18"
  274. style="vertical-align: text-top; position: relative; top: -1px"
  275. src="../../../public/img/edit.png"
  276. @click="editClickInvoice(scope.row)"
  277. alt=""
  278. />
  279. </template>
  280. </el-table-column>
  281. <el-table-column label="状态" prop="status">
  282. <template slot-scope="scope">
  283. <span v-if="scope.row.approveStatus != null">{{
  284. scope.row.approveStatus
  285. }}</span>
  286. <span v-else>{{ scope.row.status }}</span>
  287. </template>
  288. </el-table-column>
  289. </el-table>
  290. <!-- 页数 -->
  291. <el-pagination
  292. @size-change="handleSizeChange"
  293. @current-change="handleCurrentChange"
  294. :current-page="currentPage"
  295. :page-size="pageSize"
  296. layout="total, sizes, prev, pager, next, jumper"
  297. :total="deptBudgetTotal"
  298. ></el-pagination>
  299. </el-scrollbar>
  300. <el-dialog
  301. width="25%"
  302. title="付款"
  303. :visible.sync="dialogFormVisible1"
  304. :append-to-body="true"
  305. >
  306. <el-form :model="form">
  307. <el-form-item label="未付金额(元)" :label-width="formLabelWidth">
  308. <template>
  309. <span>{{ amountNotPayable }}</span>
  310. </template>
  311. </el-form-item>
  312. <el-form-item label="本次付款金额" :label-width="formLabelWidth">
  313. <el-input
  314. v-model="money"
  315. autocomplete="off"
  316. placeholder="请输入本次付款金额"
  317. class="deal"
  318. ></el-input>
  319. </el-form-item>
  320. <el-form-item
  321. label="付款日期"
  322. prop="paymentDate"
  323. :label-width="formLabelWidth"
  324. class="deal"
  325. >
  326. <ws-date-picker
  327. v-model="paymentDate"
  328. type="date"
  329. placeholder="请选择付款日期"
  330. value-format="yyyy-MM-dd"
  331. class="deal"
  332. />
  333. </el-form-item>
  334. <el-form-item label="上传付款截图" :label-width="formLabelWidth">
  335. <el-upload
  336. action="https://www.zthymaoyi.com/upload/admin"
  337. list-type="picture-card"
  338. :on-success="handlePictureCardPreview"
  339. :on-remove="handleRemove"
  340. class="photo2"
  341. >
  342. <i class="el-icon-plus"></i>
  343. </el-upload>
  344. </el-form-item>
  345. </el-form>
  346. <div slot="footer" class="dialog-footer">
  347. <el-button @click="dialogFormVisible1 = false">取 消</el-button>
  348. <el-button type="primary" @click="submitMoney()">提 交</el-button>
  349. </div>
  350. </el-dialog>
  351. <el-dialog
  352. width="30%"
  353. title="批量开发票"
  354. :visible.sync="dialogFormVisible2"
  355. :append-to-body="true"
  356. >
  357. <el-form :model="form">
  358. <el-form-item label="发票类型" :label-width="formLabelWidth">
  359. <el-select
  360. v-model="invoiceType"
  361. data="1"
  362. autocomplete="off"
  363. class="deal"
  364. >
  365. <el-option
  366. v-for="item in invoiceTypeList"
  367. :key="item.value"
  368. :label="item.value"
  369. :value="item.value"
  370. >
  371. </el-option>
  372. </el-select>
  373. </el-form-item>
  374. <el-form-item label="发票金额(元)" :label-width="formLabelWidth">
  375. <span> {{ amountEdPayable }}</span>
  376. </el-form-item>
  377. </el-form>
  378. <div slot="footer" class="dialog-footer">
  379. <el-button @click="dialogFormVisible2 = false">取 消</el-button>
  380. <el-button type="primary" @click="submitBatchInvoice">提 交</el-button>
  381. </div>
  382. </el-dialog>
  383. <!-- 开发票 -->
  384. <el-dialog
  385. width="30%"
  386. title="开发票"
  387. :visible.sync="dialogFormVisible3"
  388. :append-to-body="true"
  389. >
  390. <el-form :model="form">
  391. <el-form-item label="发票类型" :label-width="formLabelWidth">
  392. <el-select v-model="invoiceType" autocomplete="off" class="deal">
  393. <el-option
  394. v-for="item in invoiceTypeList"
  395. :key="item.value"
  396. :label="item.value"
  397. :value="item.value"
  398. >
  399. </el-option>
  400. </el-select>
  401. </el-form-item>
  402. <el-form-item label="可开发票金额(元)" :label-width="formLabelWidth">
  403. {{ amountEdPayable }}
  404. </el-form-item>
  405. <el-form-item label="实际发票金额(元)" :label-width="formLabelWidth">
  406. <el-input
  407. v-model="alreadyInvoice"
  408. autocomplete="off"
  409. class="deal"
  410. ></el-input>
  411. </el-form-item>
  412. </el-form>
  413. <div slot="footer" class="dialog-footer">
  414. <el-button @click="dialogFormVisible3 = false">取 消</el-button>
  415. <el-button type="primary" @click="submitInvoice()">提 交</el-button>
  416. </div>
  417. </el-dialog>
  418. <el-dialog
  419. width="30%"
  420. title="修改"
  421. :visible.sync="dialogFormVisible5"
  422. :append-to-body="true"
  423. >
  424. <el-form>
  425. <el-form-item label="单价" :label-width="formLabelWidth">
  426. <el-input
  427. v-model="amendlist.unitPrice"
  428. autocomplete="off"
  429. class="deal"
  430. ></el-input>
  431. </el-form-item>
  432. <el-form-item label="基差" :label-width="formLabelWidth">
  433. <el-input
  434. v-model="amendlist.basisPrice"
  435. autocomplete="off"
  436. class="deal"
  437. ></el-input>
  438. </el-form-item>
  439. <el-form-item label="卸车费" :label-width="formLabelWidth">
  440. <el-input
  441. v-model="amendlist.unloadingCharge"
  442. autocomplete="off"
  443. class="deal"
  444. ></el-input>
  445. </el-form-item>
  446. <el-form-item label="发票费" :label-width="formLabelWidth">
  447. <el-input
  448. v-model="amendlist.invoiceFee"
  449. autocomplete="off"
  450. class="deal"
  451. ></el-input>
  452. </el-form-item>
  453. <el-form-item label="扣款" :label-width="formLabelWidth">
  454. <el-input
  455. v-model="amendlist.deductionAmount"
  456. autocomplete="off"
  457. class="deal"
  458. ></el-input>
  459. </el-form-item>
  460. </el-form>
  461. <div slot="footer" class="dialog-footer">
  462. <el-button @click="dialogFormVisible5 = false">取 消</el-button>
  463. <el-button type="primary" @click="amendconfirm">提 交</el-button>
  464. </div>
  465. </el-dialog>
  466. <el-dialog
  467. width="30%"
  468. title="补货结转"
  469. :visible.sync="dialogFormVisible11"
  470. :append-to-body="true"
  471. >
  472. <el-form :model="form">
  473. <el-button :type="currect ? 'primary' : ''" @click="cur(0)"
  474. >本合同</el-button
  475. >
  476. <el-button :type="!currect ? 'primary' : ''" @click="cur(1)"
  477. >其他合同</el-button
  478. >
  479. <el-form-item
  480. v-if="!currect"
  481. label="合同编号"
  482. :label-width="formLabelWidth"
  483. >
  484. <ws-select
  485. v-if="carryovercontractnolist"
  486. v-model="carryoverlist.contractNo"
  487. placeholder="请选择合同"
  488. clearable
  489. @change="carryovercontractchange"
  490. maxlength="500"
  491. type="input"
  492. >
  493. <ws-option
  494. v-for="item in carryovercontractnolist"
  495. :key="item.constKey"
  496. :label="item.contractNo + '(' + item.closeaccountstatus + ')'"
  497. :value="item.contractNo"
  498. />
  499. </ws-select>
  500. <div v-else>无可结转的其他合同</div>
  501. </el-form-item>
  502. <el-form-item label="结转重量" :label-width="formLabelWidth">
  503. <el-input
  504. v-model="carryoverlist.carryOverWeight"
  505. autocomplete="off"
  506. class="deal"
  507. placeholder="请输入结转重量"
  508. ></el-input>
  509. </el-form-item>
  510. </el-form>
  511. <div slot="footer" class="dialog-footer">
  512. <el-button @click="dialogFormVisible11 = false">取 消</el-button>
  513. <el-button type="primary" @click="carryoverconfirm()">确认</el-button>
  514. </div>
  515. </el-dialog>
  516. </div>
  517. <!-- </div> -->
  518. </template>
  519. <script>
  520. import {
  521. getpurchreceipt,
  522. getpurchaseincontractno,
  523. postamend,
  524. getorder,
  525. postreplanishent,
  526. postaudit,
  527. postpaymoney,
  528. postopeninvoice,
  529. postbatchopeninvoice,
  530. getselectctcontractno,
  531. } from '@/model/statisticalReport/index'
  532. import { posthandle } from '@/model/purchasingManagement/index'
  533. import { downloadFile } from '@/utils/batchDown'
  534. import Pagination from '@/components/Pagination'
  535. import WsUpload from '@/components/WsUpload'
  536. import { dayjs, fmoney, EventBus } from 'base-core-lib'
  537. export default {
  538. name: 'viewSpareMoney',
  539. components: {
  540. WsUpload,
  541. Pagination,
  542. },
  543. watch: {
  544. vesselId(val) {
  545. this.getList()
  546. },
  547. isShow(val) {
  548. this.showType = val
  549. },
  550. },
  551. data() {
  552. return {
  553. checked: true,
  554. invoiceType: '自开发票',
  555. // invoiceTypeKey:'',
  556. alreadyInvoice: '',
  557. needReapply: true,
  558. dialogFormVisible1: false,
  559. dialogFormVisible2: false,
  560. dialogFormVisible3: false,
  561. dialogFormVisible4: false,
  562. dialogFormVisible5: false,
  563. dialogFormVisible6: false,
  564. dialogFormVisible7: false,
  565. dialogFormVisible8: false,
  566. dialogFormVisible11: false,
  567. dialogVisible: false,
  568. form: {
  569. transactionPrice: '',
  570. transactionsNumber: '',
  571. basis: '',
  572. },
  573. currect: true,
  574. formLabelWidth: '120px',
  575. barWidth: 0,
  576. barHeight: 0,
  577. retioX: 1,
  578. ratioY: 1,
  579. isTaped: false,
  580. isHover: false,
  581. isShow: !this.autohide,
  582. //弹出框
  583. dialogViewSpareMoney: false,
  584. contractNoList: [],
  585. // 是否显示
  586. showType: true,
  587. // 年
  588. year: '',
  589. options:[],
  590. pickerOptions: {},
  591. invoiceTypeList: [
  592. { value: '自开发票', type: 1 },
  593. { value: '对方开具', type: 2 },
  594. ],
  595. invoiceTypeKey: '',
  596. value2: '',
  597. deptBudgetTotal: 0,
  598. currentPage: 1,
  599. pageSize: 10,
  600. searchType: '1',
  601. searchTypeText: '未完成',
  602. searchKeyWord: '',
  603. contractType: 2,
  604. enter: {
  605. closePositionList: [],
  606. },
  607. // 提交类型
  608. submitType: true,
  609. size: 10,
  610. spanArr: [],
  611. contractNo: '全部合同',
  612. inOutTaskNo: '',
  613. compId: sessionStorage.getItem('ws-pf_compId'),
  614. roleId: sessionStorage.getItem('ws-pf_roleId'),
  615. deptCircularPage: {},
  616. warehouseList: [],
  617. orderList: {},
  618. deptBudgetList: {},
  619. id: '',
  620. pcFlag: 1,
  621. carryoverlist: {},
  622. modification: [],
  623. amendlist: {},
  624. roleFlag: 1,
  625. alreadyInvoice1: 0,
  626. money: '',
  627. paymentDate: '',
  628. purchaseReceiptReportList: [],
  629. purchaseReceiptReport: {
  630. purchaseReceiptReportList: [],
  631. money: '',
  632. amountNotPayable: 0,
  633. amountEdPayable: 0,
  634. paymentDate: '',
  635. paymentScreenshot: '',
  636. id: '',
  637. invoiceType: '',
  638. },
  639. amountNotPayable: 0,
  640. amountEdPayable: 0,
  641. paymentScreenshotUrls: [],
  642. carryovercontractnolist: [],
  643. historyList: [],
  644. pickerBeginDateBefore: {
  645. disabledDate: (time) => {
  646. return time.getTime() > Date.now()
  647. },
  648. },
  649. accessoryTFs: false,
  650. }
  651. },
  652. activated() {
  653. this.getList()
  654. this.showType = this.isShow
  655. },
  656. methods: {
  657. cur(status) {
  658. if (status == 0) {
  659. this.currect = true
  660. } else {
  661. var that = this
  662. this.currect = false
  663. getselectctcontractno({
  664. customerName: this.modification[0].customerName,
  665. contractNo: this.modification[0].contractNo,
  666. })
  667. .toPromise()
  668. .then((response) => {
  669. that.carryovercontractnolist = response
  670. for (var i = 0; i < that.carryovercontractnolist.length; i++) {
  671. if (that.carryovercontractnolist[i].amountNotPayable > 0) {
  672. that.carryovercontractnolist[i].closeaccountstatus = '待结算'
  673. } else {
  674. that.carryovercontractnolist[i].closeaccountstatus = '已结算'
  675. }
  676. }
  677. })
  678. .catch((response) => {
  679. console.log(response)
  680. EventBus.$emit('error', response.message)
  681. })
  682. }
  683. },
  684. handleRowClick(row) {
  685. if (row.approveStatus == null) {
  686. this.$refs.warehouseList.toggleRowSelection(row)
  687. return true
  688. } else if (row.approveStatus != null) {
  689. if (row.taskId == null) {
  690. return false
  691. } else {
  692. this.$refs.warehouseList.toggleRowSelection(row)
  693. return true
  694. }
  695. }
  696. },
  697. selectInit(row) {
  698. //在这里一定要记得类型匹配的上。
  699. if (row.approveStatus == null) {
  700. return true
  701. } else if (row.approveStatus != null) {
  702. if (row.taskId == null) {
  703. return false
  704. } else {
  705. return true
  706. }
  707. }
  708. },
  709. //付款
  710. handlepayment() {
  711. this.amountNotPayable = 0
  712. this.money = this.money
  713. this.purchaseReceiptReportList =
  714. this.warehouseList.records[0].purchaseReceiptReportList
  715. this.amountEdPayable = this.warehouseList.records[0].amountEdPayable
  716. this.paymentDate = this.paymentDate
  717. if (this.modification.length == 0) {
  718. this.$message.warning('请选择一条要付款的条目')
  719. } else {
  720. for (var i = 0; i < this.modification.length; i++) {
  721. if (
  722. this.modification[i].status != '已通过' &&
  723. this.modification[i].status != '部分付款'
  724. ) {
  725. this.$message.warning('只有已通过或部分付款的条目才可进行付款操作')
  726. return
  727. }
  728. this.amountNotPayable += this.modification[i].amountNotPayable
  729. }
  730. this.dialogFormVisible1 = true
  731. }
  732. },
  733. submitMoney() {
  734. this.purchaseReceiptReport.money = this.money
  735. this.purchaseReceiptReport.paymentDate = this.paymentDate
  736. if (this.modification.length == 0) {
  737. this.$message.warning('请选择一条要付款的条目')
  738. } else {
  739. if (
  740. this.money < 0 ||
  741. (String(this.money).indexOf('.') != -1 &&
  742. String(this.money).length - (String(this.money).indexOf('.') + 1) >
  743. 2)
  744. ) {
  745. this.$message({
  746. message: '付款金额输入错误',
  747. type: 'warning',
  748. })
  749. return
  750. }
  751. if (this.money) {
  752. if (isNaN(this.money)) {
  753. this.$message({
  754. message: '付款金额非数字!',
  755. type: 'warning',
  756. })
  757. return
  758. }
  759. }
  760. if (!this.money) {
  761. this.$message({
  762. message: '付款金额不能为空!',
  763. type: 'warning',
  764. })
  765. return
  766. }
  767. if (this.money > this.modification[0].amountNotPayable) {
  768. this.$message({
  769. message: '付款金额不能大于未付金额!',
  770. type: 'warning',
  771. })
  772. return
  773. }
  774. this.$confirm(`确定提交付款信息?`, {
  775. cancelButtonText: '取消',
  776. confirmButtonText: '确定',
  777. type: 'warning',
  778. }).then(() => {
  779. postpaymoney({
  780. purchaseReceiptReportList: this.modification,
  781. amountEdPayable: this.modification[0].amountEdPayable,
  782. amountNotPayable: this.modification[0].amountNotPayable,
  783. money: this.money,
  784. paymentDate: this.paymentDate,
  785. paymentScreenshot: this.paymentScreenshot,
  786. })
  787. .toPromise()
  788. .then((response) => {
  789. this.$notify.success({
  790. title: '成功',
  791. message: '付款成功',
  792. })
  793. this.purchaseReceiptReportList = {}
  794. this.money = ''
  795. // this.paymentScreenshot = ''
  796. this.paymentDate = ''
  797. this.dialogFormVisible1 = false
  798. this.getList()
  799. })
  800. .catch((response) => {
  801. console.log(response)
  802. EventBus.$emit('error', response.message)
  803. })
  804. })
  805. }
  806. },
  807. //开发票
  808. editClickInvoice(row) {
  809. this.id = row.id
  810. this.alreadyInvoice1 = row.alreadyInvoice
  811. this.amountEdPayable = row.amountEdPayable
  812. this.amountNotPayable = row.amountNotPayable
  813. this.dialogFormVisible3 = 'true'
  814. },
  815. submitInvoice() {
  816. if (this.amountEdPayable < 0) {
  817. this.$message.warning('请选择一条已付款的条目')
  818. } else {
  819. if (
  820. this.alreadyInvoice < 0 ||
  821. this.alreadyInvoice > this.amountEdPayable - this.alreadyInvoice1 ||
  822. (String(this.alreadyInvoice).indexOf('.') != -1 &&
  823. String(this.alreadyInvoice).length -
  824. (String(this.alreadyInvoice).indexOf('.') + 1) >
  825. 2)
  826. ) {
  827. this.$message({
  828. message: '金额输入错误',
  829. type: 'warning',
  830. })
  831. return
  832. }
  833. if (this.alreadyInvoice) {
  834. if (isNaN(this.alreadyInvoice)) {
  835. this.$message({
  836. message: '金额非数字!',
  837. type: 'warning',
  838. })
  839. return
  840. }
  841. }
  842. if (!this.alreadyInvoice) {
  843. this.$message({
  844. message: '金额不能为空!',
  845. type: 'warning',
  846. })
  847. return
  848. }
  849. this.$confirm(`确定提交发票信息?`, {
  850. cancelButtonText: '取消',
  851. confirmButtonText: '确定',
  852. type: 'warning',
  853. }).then(() => {
  854. postopeninvoice({
  855. id: this.id,
  856. invoiceType: this.invoiceType,
  857. alreadyInvoice: this.alreadyInvoice,
  858. amountEdPayable: this.amountEdPayable,
  859. amountNotPayable: this.amountNotPayable,
  860. })
  861. .toPromise()
  862. .then((response) => {
  863. this.$notify.success({
  864. title: '成功',
  865. message: '提交成功',
  866. })
  867. this.dialogFormVisible3 = false
  868. this.getList()
  869. })
  870. .catch((response) => {
  871. console.log(response)
  872. EventBus.$emit('error', response.message)
  873. })
  874. })
  875. }
  876. },
  877. //批量开发票
  878. handleninvoice() {
  879. this.amountEdPayable = 0
  880. this.purchaseReceiptReportList =
  881. this.warehouseList.records[0].purchaseReceiptReportList
  882. for (var i = 0; i < this.modification.length; i++) {
  883. this.amountEdPayable += this.modification[i].amountEdPayable
  884. }
  885. this.dialogFormVisible2 = true
  886. },
  887. submitBatchInvoice() {
  888. if (this.modification.length == 0) {
  889. this.$message.warning('请选择一条要开发票的条目')
  890. } else if (this.modification[0].amountEdPayable < 0) {
  891. this.$message.warning('请选择一条已付款的条目')
  892. } else {
  893. this.$confirm(`确定提交发票信息?`, {
  894. cancelButtonText: '取消',
  895. confirmButtonText: '确定',
  896. type: 'warning',
  897. }).then(() => {
  898. postbatchopeninvoice({
  899. purchaseReceiptReportList: this.modification,
  900. })
  901. .toPromise()
  902. .then((response) => {
  903. this.$notify.success({
  904. title: '成功',
  905. message: '提交成功',
  906. })
  907. this.dialogFormVisible2 = false
  908. this.getList()
  909. })
  910. .catch((response) => {
  911. console.log(response)
  912. EventBus.$emit('error', response.message)
  913. })
  914. })
  915. }
  916. },
  917. //审核
  918. handleAudit() {
  919. var that = this
  920. if (this.modification.length == 0) {
  921. this.$message.warning('请选择一条要审核的条目')
  922. } else {
  923. this.$confirm(`审核通过后,任务将发送给财务,是否确定通过?`, {
  924. cancelButtonText: '取消',
  925. confirmButtonText: '确定',
  926. type: 'warning',
  927. }).then(() => {
  928. that.audit(this.modification[0], 0, true)
  929. })
  930. }
  931. },
  932. audit(item, index, status, status2, reason) {
  933. if (index < this.modification.length) {
  934. posthandle({
  935. taskId: item.taskId,
  936. approved: status,
  937. auditMind: reason != undefined ? '已驳回' : '34',
  938. needReapply: status2 != undefined ? true : false,
  939. })
  940. .toPromise()
  941. .then((response) => {
  942. this.audit(this.modification[index + 1], index + 1, status,status2,reason)
  943. })
  944. .catch((req) => {
  945. this.$message.warning(req.message)
  946. })
  947. } else {
  948. if (status==true) {
  949. this.$message.success('通过成功')
  950. this.getList()
  951. } else if (status==false) {
  952. this.$message.success('驳回成功')
  953. this.getList()
  954. }
  955. }
  956. },
  957. handlereject(status) {
  958. var that = this
  959. if (this.modification.length == 0) {
  960. this.$message.warning('请选择要驳回的条目')
  961. } else {
  962. this.$confirm(`是否确定驳回?`, {
  963. cancelButtonText: '取消',
  964. confirmButtonText: '确定',
  965. type: 'warning',
  966. }).then(() => {
  967. that.audit(this.modification[0], 0, false, true, '已驳回')
  968. })
  969. }
  970. },
  971. dataFilter(val) {
  972. // console.log(val,"名")
  973. this.contractNo = val
  974. if (val) {
  975. //val存在
  976. this.options = this.contractNoList.filter(item => {
  977. if (
  978. !!~item.contractNo.indexOf(val) ||
  979. !!~item.contractNo.toUpperCase().indexOf(val.toUpperCase())
  980. ) {
  981. return true
  982. }
  983. })
  984. } else {
  985. //val为空时,还原数组
  986. this.options =this.contractNoList
  987. }
  988. },
  989. handlepass() {
  990. var that = this
  991. if (this.modification.length == 0) {
  992. this.$message.warning('请选择要通过的条目')
  993. } else {
  994. this.$confirm(`是否确定通过?`, {
  995. cancelButtonText: '取消',
  996. confirmButtonText: '确定',
  997. type: 'warning',
  998. }).then(() => {
  999. that.audit(this.modification[0], 0, true, 2)
  1000. })
  1001. }
  1002. },
  1003. carryoverconfirm() {
  1004. var data = {}
  1005. if (!this.carryoverlist.carryOverWeight) {
  1006. this.$message.warning('结转重量不能为空')
  1007. return
  1008. }
  1009. if (this.carryoverlist.carryOverWeight > this.modification[0].netWeight) {
  1010. this.$message.warning('结转重量不能超过净重')
  1011. return
  1012. }
  1013. if (this.currect == true) {
  1014. data = {
  1015. customerConfirmationStatusFlag:
  1016. this.modification[0].customerConfirmationStatusFlag,
  1017. id: this.modification[0].id,
  1018. contractNo: this.modification[0].contractNo,
  1019. carryOverWeight: this.carryoverlist.carryOverWeight,
  1020. purchaseReceiptReport: {
  1021. id: this.carryoverlist.id,
  1022. contractNo: this.carryoverlist.contractNo,
  1023. carryOverWeight: this.carryoverlist.carryOverWeight,
  1024. },
  1025. amountNotPayable: this.modification[0].amountNotPayable,
  1026. }
  1027. } else {
  1028. data = {
  1029. customerConfirmationStatusFlag:
  1030. this.modification[0].customerConfirmationStatusFlag,
  1031. id: this.modification[0].id,
  1032. contractNo: this.carryoverlist.contractNo,
  1033. carryOverWeight: this.carryoverlist.carryOverWeight,
  1034. purchaseReceiptReport: {
  1035. id: this.carryoverlist.id,
  1036. contractNo: this.carryoverlist.contractNo,
  1037. carryOverWeight: this.carryoverlist.carryOverWeight,
  1038. },
  1039. amountNotPayable: this.modification[0].amountNotPayable,
  1040. }
  1041. }
  1042. postreplanishent(data)
  1043. .toPromise()
  1044. .then((response) => {
  1045. this.dialogFormVisible11 = false
  1046. this.$message.success('结转成功')
  1047. this.getList()
  1048. })
  1049. },
  1050. amendconfirm() {
  1051. this.amendlist.id = this.modification[0].id
  1052. this.amendlist.statusFlag = this.modification[0].statusFlag
  1053. postamend(this.amendlist)
  1054. .toPromise()
  1055. .then((response) => {
  1056. this.$message.success('修改成功')
  1057. this.dialogFormVisible5 = false
  1058. this.getList()
  1059. })
  1060. },
  1061. amend() {
  1062. if (this.modification.length > 1) {
  1063. this.$message.warning('一次仅可修改一条数据')
  1064. } else if (this.modification.length == 0) {
  1065. this.$message.warning('请选择一条要修改的条目')
  1066. } else {
  1067. this.dialogFormVisible5 = true
  1068. }
  1069. },
  1070. carryover() {
  1071. if (this.modification.length > 1) {
  1072. this.$message.warning('一次仅可结转一条数据')
  1073. } else if (this.modification.length == 0) {
  1074. this.$message.warning('请选择一条要结转的条目')
  1075. } else {
  1076. this.dialogFormVisible11 = true
  1077. }
  1078. },
  1079. handleSelectionChange(val) {
  1080. this.modification = val
  1081. },
  1082. handlestatus(status) {
  1083. this.searchType = status
  1084. this.getList()
  1085. },
  1086. contractchange(e) {
  1087. this.contractNo = e
  1088. getorder({
  1089. contractNo: this.contractNo,
  1090. })
  1091. .toPromise()
  1092. .then((response) => {
  1093. if (response != null) {
  1094. this.orderList = response
  1095. }
  1096. })
  1097. this.getList()
  1098. },
  1099. carryovercontractchange(e) {
  1100. for (let i = 0; i < this.carryovercontractnolist.length; i++) {
  1101. if (this.carryovercontractnolist[i].contractNo == e) {
  1102. this.carryoverlist.netWeight =
  1103. this.carryovercontractnolist[i].netWeight,
  1104. this.carryoverlist.id =
  1105. this.carryovercontractnolist[i].id
  1106. }
  1107. }
  1108. },
  1109. updated() {
  1110. this.$nextTick(() => {
  1111. this.$refs.warehouseList.doLayout()
  1112. })
  1113. },
  1114. //合计
  1115. getSummaries(param) {
  1116. const { columns, data } = param
  1117. const sums = []
  1118. columns.forEach((column, index) => {
  1119. if (index === 0) {
  1120. sums[index] = '合计'
  1121. } else if (
  1122. index === 15 ||
  1123. index === 17 ||
  1124. index === 18 ||
  1125. index === 16 ||
  1126. index === 25
  1127. ) {
  1128. const values = data.map((item) => Number(item[column.property]))
  1129. if (!values.every((value) => isNaN(value))) {
  1130. sums[index] = values.reduce((prev, curr) => {
  1131. const value = Number(curr)
  1132. if (!isNaN(value)) {
  1133. return prev + curr
  1134. } else {
  1135. return prev
  1136. }
  1137. }, 0)
  1138. } else {
  1139. sums[index] = '元'
  1140. }
  1141. } else {
  1142. sums[index] = '--'
  1143. }
  1144. })
  1145. return sums
  1146. },
  1147. //成交
  1148. submit() {
  1149. if (!this.warehouseList.transactionPrice) {
  1150. this.$message({
  1151. message: '成交价不能为空',
  1152. type: 'warning',
  1153. })
  1154. return
  1155. }
  1156. this.$confirm(`确定提交成交信息`, {
  1157. cancelButtonText: '取消',
  1158. confirmButtonText: '确定',
  1159. type: 'warning',
  1160. }).then(() => {
  1161. console.log(23456678790)
  1162. // chengList({
  1163. // id: this.id,
  1164. // compId: sessionStorage.getItem('ws-pf_compId'),
  1165. // transactionPrice: this.transactionPrice,
  1166. // transactionsNumber: this.transactionsNumber,
  1167. // basis: this.basis,
  1168. // })
  1169. chengList(this.warehouseList)
  1170. .toPromise()
  1171. .then((response) => {
  1172. this.$message.success('添加成功')
  1173. this.getList()
  1174. })
  1175. .catch(() => {
  1176. return false
  1177. })
  1178. })
  1179. },
  1180. getList() {
  1181. // if(this.roleId=='4c2d50d8ff2943c1b7a1e947feefe048'){
  1182. // this.roleFlag=1
  1183. // }else if(this.roleId=='cca3cf0ca2814d1e918f5b0a4380fe69'){
  1184. // this.roleFlag=2
  1185. // }else if(this.roleId=='9ad8abb997714ef29068f23c2ad3b125'){
  1186. // this.roleFlag=3
  1187. // }else if(this.roleId=='3d7b9179552b4c3e9c2d7af43962e2e4'){
  1188. // this.roleFlag=4
  1189. // }else if(this.roleId=="4ef070439cd64784bce8844fd3f0f8e1"){
  1190. // this.roleFlag=''
  1191. // }
  1192. getpurchreceipt({
  1193. compId: sessionStorage.getItem('ws-pf_compId'),
  1194. currentPage: this.currentPage,
  1195. pageSize: this.pageSize,
  1196. searchType: this.searchType,
  1197. contractNo: this.contractNo,
  1198. // roleFlag: this.roleFlag,
  1199. })
  1200. .toPromise()
  1201. .then((response) => {
  1202. for (var i = 0; i < response.records.length; i++) {
  1203. response.records[i].identification = 'false'
  1204. response.records[i].settlementPrice =
  1205. // response.records[i].unitPrice -
  1206. // Math.abs(response.records[i].basisPrice) -
  1207. // Math.abs(response.records[i].unloadingCharge) -
  1208. // Math.abs(response.records[i].invoiceFee) -
  1209. // Math.abs(response.records[i].deductionAmount)
  1210. response.records[i].unitPrice +
  1211. response.records[i].basisPrice+
  1212. response.records[i].unloadingCharge+
  1213. response.records[i].invoiceFee+
  1214. response.records[i].deductionAmount
  1215. }
  1216. this.deptBudgetTotal = response.total
  1217. this.warehouseList = response
  1218. })
  1219. getpurchaseincontractno({
  1220. compId: sessionStorage.getItem('ws-pf_compId'),
  1221. currentPage: this.currentPage,
  1222. pageSize: this.pageSize,
  1223. roleFlag: this.roleFlag,
  1224. })
  1225. .toPromise()
  1226. .then((response) => {
  1227. this.contractNoList = response
  1228. this.contractNoList.unshift({contractNo:'全部合同'})
  1229. this.options=this.contractNoList
  1230. })
  1231. },
  1232. handleRemove(file) {
  1233. console.log(file)
  1234. },
  1235. handlePictureCardPreview(file) {
  1236. this.paymentScreenshot = file.url
  1237. this.dialogVisible = true
  1238. },
  1239. handleDownload(file) {
  1240. console.log(file)
  1241. },
  1242. getSpanArr(data) {
  1243. let that = this
  1244. //页面展示的数据,不一定是全部的数据,所以每次都清空之前存储的 保证遍历的数据是最新的数据。以免造成数据渲染混乱
  1245. that.spanArr = []
  1246. that.pos = 0
  1247. // //遍历数据
  1248. data.forEach((item, index) => {
  1249. //判断是否是第一项
  1250. if (index === 0) {
  1251. this.spanArr.push(1)
  1252. this.pos = 0
  1253. } else {
  1254. //不是第一项时,就根据标识去存储
  1255. if (data[index].warehouseNumViewList.length > 1) {
  1256. 查找到符合条件的数据时每次要把之前存储的数据 + 1
  1257. this.spanArr[this.pos] = data[index].warehouseNumViewList.length
  1258. this.spanArr.push(0)
  1259. } else {
  1260. // 没有符合的数据时,要记住当前的index
  1261. this.spanArr.push(1)
  1262. this.pos = index
  1263. }
  1264. }
  1265. })
  1266. },
  1267. //查看
  1268. handleLook(row) {
  1269. this.$router.push({
  1270. path: 'warehouseManagementPutOutLook',
  1271. query: {
  1272. relevanceId: row.relevanceId,
  1273. },
  1274. })
  1275. },
  1276. //返回
  1277. revert() {
  1278. this.$router.push({ path: 'warehouseManagementList' })
  1279. },
  1280. dateFormat(fmt, date) {
  1281. let ret
  1282. const opt = {
  1283. 'Y+': date.getFullYear().toString(), // 年
  1284. 'm+': (date.getMonth() + 1).toString(), // 月
  1285. 'd+': date.getDate().toString(), // 日
  1286. 'H+': date.getHours().toString(), // 时
  1287. // "M+": date.getMinutes().toString(), // 分
  1288. // "S+": date.getSeconds().toString() // 秒
  1289. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  1290. }
  1291. for (let k in opt) {
  1292. ret = new RegExp('(' + k + ')').exec(fmt)
  1293. if (ret) {
  1294. fmt = fmt.replace(
  1295. ret[1],
  1296. ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, '0')
  1297. )
  1298. }
  1299. }
  1300. return fmt
  1301. },
  1302. handleClose() {
  1303. this.accessoryTFs = false
  1304. },
  1305. handleSizeChange(val) {
  1306. console.log(`每页 ${val} 条`)
  1307. this.pageSize = val
  1308. this.getList()
  1309. },
  1310. handleCurrentChange(val) {
  1311. this.currentPage = val
  1312. console.log(`当前页: ${val}`)
  1313. this.getList()
  1314. },
  1315. editClick(row) {
  1316. var status = ''
  1317. if (row.status == '待审核' || row.status == '已完成') {
  1318. status = '执行中'
  1319. } else if (row.status == '执行中') {
  1320. status = '已完成'
  1321. }
  1322. //cancelButtonClass: "btn-custom-cancel"
  1323. this.$confirm(`是否将状态改为${status}`, {
  1324. confirmButtonText: '确定',
  1325. cancelButtonText: '取消',
  1326. type: 'warning',
  1327. })
  1328. .then(() => {
  1329. alsostate({ id: row.id })
  1330. .toPromise()
  1331. .then((response) => {
  1332. this.$notify.success({
  1333. title: '成功',
  1334. message: '状态修改成功',
  1335. })
  1336. this.getList()
  1337. })
  1338. .catch((response) => {
  1339. // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1340. })
  1341. })
  1342. .catch(() => {
  1343. return false
  1344. })
  1345. },
  1346. selecttaskType(e) {
  1347. for (var i = 0; i < this.taskTypeList.length; i++) {
  1348. if (this.taskTypeList[i].value == e) {
  1349. this.searchType = this.taskTypeList[i].type
  1350. }
  1351. }
  1352. },
  1353. handleExamine(row) {
  1354. this.$router.push({
  1355. name: 'salesContractExamine',
  1356. query: { id: row.id },
  1357. })
  1358. },
  1359. // 关闭 dialog时 处理文件url 初始化upload组件
  1360. handleCloe() {
  1361. this.dialogViewSpareMoney = false
  1362. },
  1363. history(row) {
  1364. billoperatehis({ id: row.id })
  1365. .toPromise()
  1366. .then((response) => {
  1367. this.historyList = response
  1368. })
  1369. },
  1370. //查找
  1371. find() {
  1372. this.currentPage = 1
  1373. this.getList()
  1374. },
  1375. async exportlist() {
  1376. const { data } = await export1(
  1377. {
  1378. compId: sessionStorage.getItem('ws-pf_compId'),
  1379. contractType: this.contractType,
  1380. currentPage: this.currentPage,
  1381. pageSize: this.pageSize,
  1382. searchType: this.searchType,
  1383. searchKeyWord: this.searchKeyWord,
  1384. startDate: this.startDate,
  1385. endDate: this.endDate,
  1386. },
  1387. {},
  1388. { responseType: 'blob' }
  1389. ).toPromise()
  1390. downloadFile({
  1391. res: data,
  1392. fileName: `${
  1393. this.date.year + (this.date.month ? `-${this.date.month}` : '')
  1394. }_采购合同`,
  1395. type: 'xls',
  1396. })
  1397. },
  1398. total() {},
  1399. },
  1400. }
  1401. </script>
  1402. <style lang="scss" scoped>
  1403. .connert {
  1404. width: 90%;
  1405. margin: 0 auto;
  1406. }
  1407. .vertical-text-left {
  1408. width: 62px;
  1409. text-align: right;
  1410. }
  1411. //分页
  1412. .el-pagination {
  1413. padding: 10px 15px;
  1414. margin-bottom: 0;
  1415. text-align: center;
  1416. }
  1417. /deep/.el-pager li.active {
  1418. color: #5878e8;
  1419. cursor: default;
  1420. }
  1421. /deep/.el-pager li:hover {
  1422. color: #5878e8;
  1423. cursor: default;
  1424. }
  1425. .el-button--default {
  1426. color: #8890b1;
  1427. border-color: #e8eaf1;
  1428. }
  1429. /deep/.base_header_layout .grid-content.right .find.el-button--primary {
  1430. width: 30px;
  1431. margin-left: 0;
  1432. border-top-left-radius: 0px;
  1433. border-bottom-left-radius: 0px;
  1434. }
  1435. /deep/.findValue .el-input__inner {
  1436. border-top-right-radius: 0px;
  1437. border-bottom-right-radius: 0px;
  1438. width: 385px;
  1439. }
  1440. .completed.el-button--default {
  1441. border-color: #5878e8;
  1442. background-color: #f6f7fc;
  1443. color: #5878e8;
  1444. }
  1445. .putstorage.el-button--default,
  1446. .deliverystorage.el-button--default {
  1447. border-color: #8890b1;
  1448. background-color: #fff;
  1449. color: #8890b1;
  1450. }
  1451. /deep/.el-table td,
  1452. /deep/.el-table th.is-leaf {
  1453. border-right: 1px solid #e9ecf7;
  1454. text-align: center;
  1455. }
  1456. /deep/.el-table tr td:first-child,
  1457. /deep/.el-table tr th.is-leaf:first-child {
  1458. border-left: 1px solid #e9ecf7;
  1459. }
  1460. .record,
  1461. .adjustment {
  1462. display: inline-block;
  1463. color: #5878e8;
  1464. padding: 0 4px !important;
  1465. position: relative;
  1466. }
  1467. .record:after {
  1468. position: absolute;
  1469. content: '';
  1470. display: block;
  1471. top: 5px;
  1472. right: -2px;
  1473. width: 1px;
  1474. height: 12px;
  1475. background: #e9ecf7;
  1476. }
  1477. // .el-row{
  1478. // height: 150px;
  1479. // }
  1480. .base_header_layout .grid-content {
  1481. margin-top: 80px;
  1482. }
  1483. .el-input--small .el-input__inner {
  1484. margin-left: 20px;
  1485. }
  1486. .el-range-editor--small.el-input__inner {
  1487. height: 32px;
  1488. margin-left: -20%;
  1489. }
  1490. //执行样式
  1491. .executory,
  1492. .inExecution,
  1493. .done {
  1494. width: 6px;
  1495. height: 6px;
  1496. display: inline-block;
  1497. border-radius: 50%;
  1498. position: relative;
  1499. top: -1px;
  1500. font-size: 14px;
  1501. }
  1502. .executory {
  1503. background: #ff9f24;
  1504. }
  1505. .inExecution {
  1506. background: #5878e8;
  1507. }
  1508. .done {
  1509. background: #50cad4;
  1510. }
  1511. .record,
  1512. .adjustment {
  1513. display: inline-block;
  1514. color: #5878e8;
  1515. padding: 0 4px !important;
  1516. position: relative;
  1517. font-size: 14px;
  1518. }
  1519. .container {
  1520. overflow: scroll;
  1521. height: 93vh;
  1522. }
  1523. .button-container {
  1524. display: flex;
  1525. flex-wrap: nowrap;
  1526. justify-content: space-between;
  1527. align-items: center;
  1528. background-color: #fff;
  1529. width: 100%;
  1530. height: 50px;
  1531. padding: 0 10px;
  1532. & > div {
  1533. margin-left: 10px;
  1534. display: flex;
  1535. flex-wrap: nowrap;
  1536. flex-direction: row;
  1537. & > span {
  1538. line-height: 50px;
  1539. }
  1540. }
  1541. /deep/.auditFlow-box {
  1542. position: unset;
  1543. margin-left: 10px;
  1544. &/deep/.auditFlow-icon {
  1545. width: auto;
  1546. padding-right: 30px;
  1547. }
  1548. &/deep/.auditFlow-main {
  1549. position: absolute;
  1550. }
  1551. }
  1552. }
  1553. .bg-left {
  1554. padding-left: 30px;
  1555. }
  1556. .title {
  1557. position: relative;
  1558. }
  1559. .title::before {
  1560. content: '';
  1561. display: inline-block;
  1562. width: 5px;
  1563. height: 30px;
  1564. background: #5473e8;
  1565. position: absolute;
  1566. left: 0;
  1567. }
  1568. .el-button--primary {
  1569. background-color: #5878e8;
  1570. border-color: #5878e8;
  1571. // margin-left: 85%;
  1572. margin-top: 13px;
  1573. }
  1574. //导航条样式
  1575. .el-col-12 {
  1576. width: 50%;
  1577. height: 60px;
  1578. background: #f6f7fc;
  1579. border-radius: 4px 4px 1px 1px;
  1580. }
  1581. .el-input--small .el-input__inner {
  1582. height: 32px;
  1583. line-height: 32px;
  1584. width: 385px;
  1585. margin-top: 10px;
  1586. }
  1587. .bg-bottom {
  1588. margin-left: 85%;
  1589. }
  1590. .but {
  1591. margin-left: 30%;
  1592. /* margin-top: -32px; */
  1593. overflow: auto;
  1594. /* float: left; */
  1595. /* margin-left: 1px; */
  1596. margin-left: -10px;
  1597. }
  1598. .el-input--small {
  1599. font-size: 13px;
  1600. width: 390px;
  1601. margin-left: 74%;
  1602. }
  1603. /deep/.el-table .el-table__header .cell,
  1604. .el-table .el-table__body .cell {
  1605. text-align: center;
  1606. }
  1607. .el-scrollbar__wrap {
  1608. overflow-y: hidden;
  1609. }
  1610. /deep/.deal {
  1611. margin-left: 0%;
  1612. width: 64%;
  1613. }
  1614. .photo {
  1615. padding: 0% 34%;
  1616. }
  1617. .photo1 {
  1618. padding: 0 10%;
  1619. }
  1620. .photo2 {
  1621. padding: 0 12%;
  1622. }
  1623. /deep/.el-form-item--small .el-form-item__label,
  1624. .el-form-item--small .el-form-item__content {
  1625. text-align: center;
  1626. }
  1627. hr {
  1628. width: 91%;
  1629. }
  1630. /deep/.deaal {
  1631. width: 66%;
  1632. margin-left: 9%;
  1633. }
  1634. .el-date-editor.el-input,
  1635. .el-date-editor.el-input__inner,
  1636. .el-input-number--small {
  1637. width: 123% !important;
  1638. }
  1639. /deep/.el-table td,
  1640. .el-table th.is-leaf {
  1641. border-right: 1px solid #e9ecf7;
  1642. text-align: center;
  1643. height: 40px;
  1644. }
  1645. </style>