purchaseReceiptStatisticsList.vue 47 KB

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