purchaseReceiptStatisticsList.vue 46 KB

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