purchaseReceiptStatisticsList.vue 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637
  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. this.dialogFormVisible1 = true
  637. for (var i = 0; i < this.modification.length; i++) {
  638. this.amountNotPayable += this.modification[i].amountNotPayable
  639. }
  640. },
  641. submitMoney() {
  642. this.purchaseReceiptReport.money = this.money
  643. this.purchaseReceiptReport.paymentDate = this.paymentDate
  644. if (this.modification.length == 0) {
  645. this.$message.warning('请选择一条要付款的条目')
  646. } else {
  647. if (
  648. this.money < 0 ||
  649. (String(this.money).indexOf('.') != -1 &&
  650. String(this.money).length - (String(this.money).indexOf('.') + 1) >
  651. 2)
  652. ) {
  653. this.$message({
  654. message: '付款金额输入错误',
  655. type: 'warning',
  656. })
  657. return
  658. }
  659. if (this.money) {
  660. if (isNaN(this.money)) {
  661. this.$message({
  662. message: '付款金额非数字!',
  663. type: 'warning',
  664. })
  665. return
  666. }
  667. }
  668. if (!this.money) {
  669. this.$message({
  670. message: '付款金额不能为空!',
  671. type: 'warning',
  672. })
  673. return
  674. }
  675. if (this.money > this.modification[0].amountNotPayable) {
  676. this.$message({
  677. message: '付款金额不能大于未付金额!',
  678. type: 'warning',
  679. })
  680. return
  681. }
  682. this.$confirm(`确定提交付款信息?`, {
  683. cancelButtonText: '取消',
  684. confirmButtonText: '确定',
  685. type: 'warning',
  686. }).then(() => {
  687. postpaymoney({
  688. purchaseReceiptReportList: this.modification,
  689. amountEdPayable: this.modification[0].amountEdPayable,
  690. amountNotPayable: this.modification[0].amountNotPayable,
  691. money: this.money,
  692. paymentDate: this.paymentDate,
  693. paymentScreenshot: this.paymentScreenshot,
  694. })
  695. .toPromise()
  696. .then((response) => {
  697. this.$notify.success({
  698. title: '成功',
  699. message: '付款成功',
  700. })
  701. this.purchaseReceiptReportList = {}
  702. this.money = ''
  703. // this.paymentScreenshot = ''
  704. this.paymentDate = ''
  705. this.dialogFormVisible1 = false
  706. this.getList()
  707. })
  708. .catch((response) => {
  709. console.log(response)
  710. EventBus.$emit('error', response.message)
  711. })
  712. })
  713. }
  714. },
  715. //开发票
  716. editClickInvoice(row) {
  717. this.id = row.id
  718. this.alreadyInvoice1 = row.alreadyInvoice
  719. this.amountEdPayable = row.amountEdPayable
  720. this.amountNotPayable = row.amountNotPayable
  721. this.dialogFormVisible3 = 'true'
  722. },
  723. submitInvoice() {
  724. if (this.amountEdPayable < 0) {
  725. this.$message.warning('请选择一条已付款的条目')
  726. } else {
  727. if (
  728. this.alreadyInvoice < 0 ||
  729. this.alreadyInvoice > this.amountEdPayable - this.alreadyInvoice1 ||
  730. (String(this.alreadyInvoice).indexOf('.') != -1 &&
  731. String(this.alreadyInvoice).length -
  732. (String(this.alreadyInvoice).indexOf('.') + 1) >
  733. 2)
  734. ) {
  735. this.$message({
  736. message: '金额输入错误',
  737. type: 'warning',
  738. })
  739. return
  740. }
  741. if (this.alreadyInvoice) {
  742. if (isNaN(this.alreadyInvoice)) {
  743. this.$message({
  744. message: '金额非数字!',
  745. type: 'warning',
  746. })
  747. return
  748. }
  749. }
  750. if (!this.alreadyInvoice) {
  751. this.$message({
  752. message: '金额不能为空!',
  753. type: 'warning',
  754. })
  755. return
  756. }
  757. this.$confirm(`确定提交发票信息?`, {
  758. cancelButtonText: '取消',
  759. confirmButtonText: '确定',
  760. type: 'warning',
  761. }).then(() => {
  762. postopeninvoice({
  763. id: this.id,
  764. invoiceType: this.invoiceType,
  765. alreadyInvoice: this.alreadyInvoice,
  766. amountEdPayable: this.amountEdPayable,
  767. amountNotPayable: this.amountNotPayable,
  768. })
  769. .toPromise()
  770. .then((response) => {
  771. this.$notify.success({
  772. title: '成功',
  773. message: '提交成功',
  774. })
  775. this.dialogFormVisible3 = false
  776. this.getList()
  777. })
  778. .catch((response) => {
  779. console.log(response)
  780. EventBus.$emit('error', response.message)
  781. })
  782. })
  783. }
  784. },
  785. //批量开发票
  786. handleninvoice() {
  787. this.amountEdPayable = 0
  788. this.purchaseReceiptReportList =
  789. this.warehouseList.records[0].purchaseReceiptReportList
  790. for (var i = 0; i < this.modification.length; i++) {
  791. this.amountEdPayable += this.modification[i].amountEdPayable
  792. }
  793. this.dialogFormVisible2 = true
  794. },
  795. submitBatchInvoice() {
  796. if (this.modification.length == 0) {
  797. this.$message.warning('请选择一条要开发票的条目')
  798. } else if (this.modification[0].amountEdPayable < 0) {
  799. this.$message.warning('请选择一条已付款的条目')
  800. } else {
  801. this.$confirm(`确定提交发票信息?`, {
  802. cancelButtonText: '取消',
  803. confirmButtonText: '确定',
  804. type: 'warning',
  805. }).then(() => {
  806. postbatchopeninvoice({
  807. purchaseReceiptReportList: this.modification,
  808. })
  809. .toPromise()
  810. .then((response) => {
  811. this.$notify.success({
  812. title: '成功',
  813. message: '提交成功',
  814. })
  815. this.dialogFormVisible2 = false
  816. this.getList()
  817. })
  818. .catch((response) => {
  819. console.log(response)
  820. EventBus.$emit('error', response.message)
  821. })
  822. })
  823. }
  824. },
  825. //审核
  826. handleAudit() {
  827. var that=this
  828. if (this.modification.length == 0) {
  829. this.$message.warning('请选择一条要审核的条目')
  830. } else {
  831. this.$confirm(`审核通过后,任务将发送给财务,是否确定通过?`, {
  832. cancelButtonText: '取消',
  833. confirmButtonText: '确定',
  834. type: 'warning',
  835. }).then(() => {
  836. // postaudit({
  837. // roleFlag: 1,
  838. // purchaseReceiptReportList: this.modification,
  839. // })
  840. // .toPromise()
  841. // .then((response) => {
  842. // this.$message.success('审核成功')
  843. // this.getList()
  844. // })
  845. that.audit(this.modification[0],0,true)
  846. })
  847. }
  848. },
  849. audit(item,index,status){
  850. if(index<this.modification.length){
  851. posthandle({ taskId: item.taskId,
  852. approved: status,
  853. auditMind: '34',
  854. needReapply: false,})
  855. .toPromise()
  856. .then((response) => {
  857. this.audit(this.modification[index+1],index+1,status)
  858. }).catch((req) => {
  859. this.$message.warning(req.message)
  860. })
  861. }else{
  862. if(status){
  863. this.$message.success('通过成功')
  864. this.getList()
  865. }else if(!status){
  866. if(status1==2){
  867. postaudit({
  868. flag: 2,
  869. purchaseReceiptReportList: this.modification,
  870. })
  871. .toPromise()
  872. .then((response) => {
  873. this.$message.success('驳回成功')
  874. this.getList()
  875. })
  876. .catch((req) => {
  877. this.$message.success('驳回失败')
  878. })
  879. }
  880. }
  881. }
  882. },
  883. handlereject(status) {
  884. var that=this
  885. if (this.modification.length == 0) {
  886. this.$message.warning('请选择要驳回的条目')
  887. } else {
  888. this.$confirm(`是否确定驳回?`, {
  889. cancelButtonText: '取消',
  890. confirmButtonText: '确定',
  891. type: 'warning',
  892. }).then(() => {
  893. // postaudit({
  894. // roleFlag: status,
  895. // flag: 2,
  896. // purchaseReceiptReportList: this.modification,
  897. // })
  898. // .toPromise()
  899. // .then((response) => {
  900. // this.$message.success('驳回成功')
  901. // this.getList()
  902. // })
  903. // .catch((req) => {
  904. // this.$message.success('驳回失败')
  905. // })
  906. that.audit(this.modification[0],0,false)
  907. })
  908. }
  909. },
  910. handlepass() {
  911. var that=this
  912. if (this.modification.length == 0) {
  913. this.$message.warning('请选择要通过的条目')
  914. } else {
  915. this.$confirm(`是否确定通过?`, {
  916. cancelButtonText: '取消',
  917. confirmButtonText: '确定',
  918. type: 'warning',
  919. }).then(() => {
  920. that.audit(this.modification[0],0,true,2)
  921. })
  922. }
  923. },
  924. handlepass1() {
  925. var that=this
  926. if (this.modification.length == 0) {
  927. this.$message.warning('请选择要通过的条目')
  928. } else {
  929. this.$confirm(`审核通过后,任务将发送给出纳,是否确定通过?`, {
  930. cancelButtonText: '取消',
  931. confirmButtonText: '确定',
  932. type: 'warning',
  933. }).then(() => {
  934. // postaudit({
  935. // roleFlag: 3,
  936. // flag: 1,
  937. // purchaseReceiptReportList: this.modification,
  938. // })
  939. // .toPromise()
  940. // .then((response) => {
  941. // this.$message.success('通过成功')
  942. // this.getList()
  943. // })
  944. // .catch((req) => {
  945. // this.$message.success('通过失败')
  946. // })
  947. that.audit(this.modification[0],0,true,3)
  948. })
  949. }
  950. },
  951. carryoverconfirm() {
  952. var data={}
  953. if(!this.carryoverlist.carryOverWeight){
  954. this.$message.warning('结转重量不能为空')
  955. return
  956. }
  957. if(this.carryoverlist.carryOverWeight>this.modification[0].netWeight){
  958. this.$message.warning('结转重量不能超过净重')
  959. return
  960. }
  961. if (this.currect == true) {
  962. data={
  963. customerConfirmationStatusFlag:
  964. this.modification[0].customerConfirmationStatusFlag,
  965. id:this.modification[0].id,
  966. contractNo:this.modification[0].contractNo,
  967. carryOverWeight: this.carryoverlist.carryOverWeight,
  968. purchaseReceiptReport: {
  969. contractNo: this.carryoverlist.contractNo,
  970. carryOverWeight: this.carryoverlist.carryOverWeight,
  971. },
  972. amountNotPayable: this.modification[0].amountNotPayable,
  973. }
  974. }else{
  975. data={
  976. customerConfirmationStatusFlag:
  977. this.modification[0].customerConfirmationStatusFlag,
  978. id:this.modification[0].id,
  979. contractNo:this.carryoverlist.contractNo,
  980. carryOverWeight: this.carryoverlist.carryOverWeight,
  981. purchaseReceiptReport: {
  982. contractNo: this.carryoverlist.contractNo,
  983. carryOverWeight: this.carryoverlist.carryOverWeight,
  984. },
  985. amountNotPayable: this.modification[0].amountNotPayable,
  986. }
  987. }
  988. postreplanishent(data)
  989. .toPromise()
  990. .then((response) => {
  991. this.dialogFormVisible11=false
  992. this.$message.success('结转成功')
  993. this.getList()
  994. })
  995. },
  996. amendconfirm() {
  997. this.amendlist.id = this.modification[0].id
  998. postamend(this.amendlist)
  999. .toPromise()
  1000. .then((response) => {
  1001. this.$message.success('修改成功')
  1002. this.dialogFormVisible5 = false
  1003. this.getList()
  1004. })
  1005. },
  1006. amend() {
  1007. if (this.modification.length > 1) {
  1008. this.$message.warning('一次仅可修改一条数据')
  1009. } else if (this.modification.length == 0) {
  1010. this.$message.warning('请选择一条要修改的条目')
  1011. } else {
  1012. this.dialogFormVisible5 = true
  1013. }
  1014. },
  1015. carryover() {
  1016. if (this.modification.length > 1) {
  1017. this.$message.warning('一次仅可结转一条数据')
  1018. } else if (this.modification.length == 0) {
  1019. this.$message.warning('请选择一条要结转的条目')
  1020. } else {
  1021. this.dialogFormVisible11 = true
  1022. }
  1023. },
  1024. handleSelectionChange(val) {
  1025. this.modification = val
  1026. },
  1027. handlestatus(status) {
  1028. this.searchType = status
  1029. this.getList()
  1030. },
  1031. contractchange(e) {
  1032. this.contractNo = e
  1033. getorder({
  1034. contractNo: this.contractNo
  1035. })
  1036. .toPromise()
  1037. .then((response) => {
  1038. if(response!=null){
  1039. this.orderList = response
  1040. }
  1041. })
  1042. this.getList()
  1043. },
  1044. carryovercontractchange(e) {
  1045. for (let i = 0; i < this.carryovercontractnolist.length; i++) {
  1046. if(this.carryovercontractnolist[i].contractNo==e){
  1047. this.carryoverlist.netWeight=this.carryovercontractnolist[i].netWeight
  1048. }
  1049. }
  1050. },
  1051. updated() {
  1052. this.$nextTick(() => {
  1053. this.$refs.warehouseList.doLayout()
  1054. })
  1055. },
  1056. //合计
  1057. getSummaries(param) {
  1058. const { columns, data } = param
  1059. const sums = []
  1060. columns.forEach((column, index) => {
  1061. if (index === 0) {
  1062. sums[index] = '合计'
  1063. } else if (index === 15 || index === 17 || index === 18 || index === 16 || index === 25) {
  1064. const values = data.map((item) => Number(item[column.property]))
  1065. if (!values.every((value) => isNaN(value))) {
  1066. sums[index] = values.reduce((prev, curr) => {
  1067. const value = Number(curr)
  1068. if (!isNaN(value)) {
  1069. return prev + curr
  1070. } else {
  1071. return prev
  1072. }
  1073. }, 0)
  1074. } else {
  1075. sums[index] = '元'
  1076. }
  1077. } else {
  1078. sums[index] = '--'
  1079. }
  1080. })
  1081. return sums
  1082. },
  1083. //成交
  1084. submit() {
  1085. if (!this.warehouseList.transactionPrice) {
  1086. this.$message({
  1087. message: '成交价不能为空',
  1088. type: 'warning',
  1089. })
  1090. return
  1091. }
  1092. this.$confirm(`确定提交成交信息`, {
  1093. cancelButtonText: '取消',
  1094. confirmButtonText: '确定',
  1095. type: 'warning',
  1096. }).then(() => {
  1097. console.log(23456678790)
  1098. // chengList({
  1099. // id: this.id,
  1100. // compId: sessionStorage.getItem('ws-pf_compId'),
  1101. // transactionPrice: this.transactionPrice,
  1102. // transactionsNumber: this.transactionsNumber,
  1103. // basis: this.basis,
  1104. // })
  1105. chengList(this.warehouseList)
  1106. .toPromise()
  1107. .then((response) => {
  1108. this.$message.success('添加成功')
  1109. // this.$router.go(-1)
  1110. })
  1111. .catch(() => {
  1112. console.log(1111111111)
  1113. return false
  1114. })
  1115. })
  1116. },
  1117. getList() {
  1118. // if(this.roleId=='4c2d50d8ff2943c1b7a1e947feefe048'){
  1119. // this.roleFlag=1
  1120. // }else if(this.roleId=='cca3cf0ca2814d1e918f5b0a4380fe69'){
  1121. // this.roleFlag=2
  1122. // }else if(this.roleId=='9ad8abb997714ef29068f23c2ad3b125'){
  1123. // this.roleFlag=3
  1124. // }else if(this.roleId=='3d7b9179552b4c3e9c2d7af43962e2e4'){
  1125. // this.roleFlag=4
  1126. // }else if(this.roleId=="4ef070439cd64784bce8844fd3f0f8e1"){
  1127. // this.roleFlag=''
  1128. // }
  1129. getpurchreceipt({
  1130. compId: sessionStorage.getItem('ws-pf_compId'),
  1131. currentPage: this.currentPage,
  1132. pageSize: this.pageSize,
  1133. searchType: this.searchType,
  1134. contractNo: this.contractNo,
  1135. // roleFlag: this.roleFlag,
  1136. })
  1137. .toPromise()
  1138. .then((response) => {
  1139. for (var i = 0; i < response.records.length; i++) {
  1140. response.records[i].identification = 'false'
  1141. response.records[i].settlementPrice = response.records[i].unitPrice
  1142. - Math.abs(response.records[i].basisPrice)
  1143. - Math.abs(response.records[i].unloadingCharge)
  1144. - Math.abs(response.records[i].invoiceFee)
  1145. - Math.abs(response.records[i].deductionAmount)
  1146. }
  1147. this.deptBudgetTotal=response.total
  1148. this.warehouseList = response
  1149. })
  1150. getpurchaseincontractno({
  1151. compId: sessionStorage.getItem('ws-pf_compId'),
  1152. currentPage: this.currentPage,
  1153. pageSize: this.pageSize,
  1154. roleFlag: this.roleFlag,
  1155. })
  1156. .toPromise()
  1157. .then((response) => {
  1158. this.contractNoList = response
  1159. })
  1160. },
  1161. handleRemove(file) {
  1162. console.log(file)
  1163. },
  1164. handlePictureCardPreview(file) {
  1165. this.paymentScreenshot = file.url
  1166. this.dialogVisible = true
  1167. },
  1168. handleDownload(file) {
  1169. console.log(file)
  1170. },
  1171. // statusquery(state) {
  1172. // this.searchType = state
  1173. // this.getList()
  1174. // },
  1175. // delivery(item) {
  1176. // this.$router.push({
  1177. // path: 'warehouseManagementDelivery',
  1178. // query: {
  1179. // baseId: item.warehouseId,
  1180. // positionId: item.binNumberId,
  1181. // warehouseName: item.warehouseName,
  1182. // binNumber: item.binNumber,
  1183. // capacity: item.capacity
  1184. // }
  1185. // })
  1186. // },
  1187. getSpanArr(data) {
  1188. let that = this
  1189. //页面展示的数据,不一定是全部的数据,所以每次都清空之前存储的 保证遍历的数据是最新的数据。以免造成数据渲染混乱
  1190. that.spanArr = []
  1191. that.pos = 0
  1192. // //遍历数据
  1193. data.forEach((item, index) => {
  1194. //判断是否是第一项
  1195. if (index === 0) {
  1196. this.spanArr.push(1)
  1197. this.pos = 0
  1198. } else {
  1199. //不是第一项时,就根据标识去存储
  1200. if (data[index].warehouseNumViewList.length > 1) {
  1201. 查找到符合条件的数据时每次要把之前存储的数据 + 1
  1202. this.spanArr[this.pos] = data[index].warehouseNumViewList.length
  1203. this.spanArr.push(0)
  1204. } else {
  1205. // 没有符合的数据时,要记住当前的index
  1206. this.spanArr.push(1)
  1207. this.pos = index
  1208. }
  1209. }
  1210. })
  1211. },
  1212. //查看
  1213. handleLook(row) {
  1214. this.$router.push({
  1215. path: 'warehouseManagementPutOutLook',
  1216. query: {
  1217. relevanceId: row.relevanceId,
  1218. },
  1219. })
  1220. },
  1221. //返回
  1222. revert() {
  1223. this.$router.push({ path: 'warehouseManagementList' })
  1224. },
  1225. dateFormat(fmt, date) {
  1226. let ret
  1227. const opt = {
  1228. 'Y+': date.getFullYear().toString(), // 年
  1229. 'm+': (date.getMonth() + 1).toString(), // 月
  1230. 'd+': date.getDate().toString(), // 日
  1231. 'H+': date.getHours().toString(), // 时
  1232. // "M+": date.getMinutes().toString(), // 分
  1233. // "S+": date.getSeconds().toString() // 秒
  1234. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  1235. }
  1236. for (let k in opt) {
  1237. ret = new RegExp('(' + k + ')').exec(fmt)
  1238. if (ret) {
  1239. fmt = fmt.replace(
  1240. ret[1],
  1241. ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, '0')
  1242. )
  1243. }
  1244. }
  1245. return fmt
  1246. },
  1247. handleClose() {
  1248. this.accessoryTFs = false
  1249. },
  1250. handleSizeChange(val) {
  1251. console.log(`每页 ${val} 条`)
  1252. this.pageSize = val
  1253. this.getList()
  1254. },
  1255. handleCurrentChange(val) {
  1256. this.currentPage = val
  1257. console.log(`当前页: ${val}`)
  1258. this.getList()
  1259. },
  1260. editClick(row) {
  1261. var status = ''
  1262. if (row.status == '待审核' || row.status == '已完成') {
  1263. status = '执行中'
  1264. } else if (row.status == '执行中') {
  1265. status = '已完成'
  1266. }
  1267. //cancelButtonClass: "btn-custom-cancel"
  1268. this.$confirm(`是否将状态改为${status}`, {
  1269. confirmButtonText: '确定',
  1270. cancelButtonText: '取消',
  1271. type: 'warning',
  1272. })
  1273. .then(() => {
  1274. alsostate({ id: row.id })
  1275. .toPromise()
  1276. .then((response) => {
  1277. this.$notify.success({
  1278. title: '成功',
  1279. message: '状态修改成功',
  1280. })
  1281. this.getList()
  1282. })
  1283. .catch((response) => {
  1284. // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1285. })
  1286. })
  1287. .catch(() => {
  1288. return false
  1289. })
  1290. },
  1291. selecttaskType(e) {
  1292. for (var i = 0; i < this.taskTypeList.length; i++) {
  1293. if (this.taskTypeList[i].value == e) {
  1294. this.searchType = this.taskTypeList[i].type
  1295. }
  1296. }
  1297. },
  1298. // fujian(row) {
  1299. // if (
  1300. // row.receiveAttachmentPath === null ||
  1301. // row.receiveAttachmentPath === ''
  1302. // ) {
  1303. // EventBus.$emit(
  1304. // 'warning',
  1305. // this.$t('system.noticeCircular.NoInformation')
  1306. // )
  1307. // } else {
  1308. // this.accessoryTFs = true
  1309. // }
  1310. // this.appendixIdss = row.receiveAttachmentPath
  1311. // },
  1312. handleExamine(row) {
  1313. this.$router.push({
  1314. name: 'salesContractExamine',
  1315. query: { id: row.id },
  1316. })
  1317. },
  1318. // 关闭 dialog时 处理文件url 初始化upload组件
  1319. handleCloe() {
  1320. this.dialogViewSpareMoney = false
  1321. },
  1322. history(row) {
  1323. billoperatehis({ id: row.id })
  1324. .toPromise()
  1325. .then((response) => {
  1326. this.historyList = response
  1327. })
  1328. },
  1329. //查找
  1330. find() {
  1331. this.currentPage = 1
  1332. this.getList()
  1333. },
  1334. async exportlist() {
  1335. const { data } = await export1(
  1336. {
  1337. compId: sessionStorage.getItem('ws-pf_compId'),
  1338. contractType: this.contractType,
  1339. currentPage: this.currentPage,
  1340. pageSize: this.pageSize,
  1341. searchType: this.searchType,
  1342. searchKeyWord: this.searchKeyWord,
  1343. startDate: this.startDate,
  1344. endDate: this.endDate,
  1345. },
  1346. {},
  1347. { responseType: 'blob' }
  1348. ).toPromise()
  1349. downloadFile({
  1350. res: data,
  1351. fileName: `${
  1352. this.date.year + (this.date.month ? `-${this.date.month}` : '')
  1353. }_采购合同`,
  1354. type: 'xls',
  1355. })
  1356. },
  1357. total() {},
  1358. },
  1359. }
  1360. </script>
  1361. <style lang="scss" scoped>
  1362. .connert {
  1363. width: 90%;
  1364. margin: 0 auto;
  1365. }
  1366. .vertical-text-left {
  1367. width: 62px;
  1368. text-align: right;
  1369. }
  1370. //分页
  1371. .el-pagination {
  1372. padding: 10px 15px;
  1373. margin-bottom: 0;
  1374. text-align: center;
  1375. }
  1376. /deep/.el-pager li.active {
  1377. color: #5878e8;
  1378. cursor: default;
  1379. }
  1380. /deep/.el-pager li:hover {
  1381. color: #5878e8;
  1382. cursor: default;
  1383. }
  1384. .el-button--default {
  1385. color: #8890b1;
  1386. border-color: #e8eaf1;
  1387. }
  1388. /deep/.base_header_layout .grid-content.right .find.el-button--primary {
  1389. width: 30px;
  1390. margin-left: 0;
  1391. border-top-left-radius: 0px;
  1392. border-bottom-left-radius: 0px;
  1393. }
  1394. /deep/.findValue .el-input__inner {
  1395. border-top-right-radius: 0px;
  1396. border-bottom-right-radius: 0px;
  1397. width: 385px;
  1398. }
  1399. .completed.el-button--default {
  1400. border-color: #5878e8;
  1401. background-color: #f6f7fc;
  1402. color: #5878e8;
  1403. }
  1404. .putstorage.el-button--default,
  1405. .deliverystorage.el-button--default {
  1406. border-color: #8890b1;
  1407. background-color: #fff;
  1408. color: #8890b1;
  1409. }
  1410. /deep/.el-table td,
  1411. /deep/.el-table th.is-leaf {
  1412. border-right: 1px solid #e9ecf7;
  1413. text-align: center;
  1414. }
  1415. /deep/.el-table tr td:first-child,
  1416. /deep/.el-table tr th.is-leaf:first-child {
  1417. border-left: 1px solid #e9ecf7;
  1418. }
  1419. .record,
  1420. .adjustment {
  1421. display: inline-block;
  1422. color: #5878e8;
  1423. padding: 0 4px !important;
  1424. position: relative;
  1425. }
  1426. .record:after {
  1427. position: absolute;
  1428. content: '';
  1429. display: block;
  1430. top: 5px;
  1431. right: -2px;
  1432. width: 1px;
  1433. height: 12px;
  1434. background: #e9ecf7;
  1435. }
  1436. // .el-row{
  1437. // height: 150px;
  1438. // }
  1439. .base_header_layout .grid-content {
  1440. margin-top: 80px;
  1441. }
  1442. .el-input--small .el-input__inner {
  1443. margin-left: 20px;
  1444. }
  1445. .el-range-editor--small.el-input__inner {
  1446. height: 32px;
  1447. margin-left: -20%;
  1448. }
  1449. //执行样式
  1450. .executory,
  1451. .inExecution,
  1452. .done {
  1453. width: 6px;
  1454. height: 6px;
  1455. display: inline-block;
  1456. border-radius: 50%;
  1457. position: relative;
  1458. top: -1px;
  1459. font-size: 14px;
  1460. }
  1461. .executory {
  1462. background: #ff9f24;
  1463. }
  1464. .inExecution {
  1465. background: #5878e8;
  1466. }
  1467. .done {
  1468. background: #50cad4;
  1469. }
  1470. .record,
  1471. .adjustment {
  1472. display: inline-block;
  1473. color: #5878e8;
  1474. padding: 0 4px !important;
  1475. position: relative;
  1476. font-size: 14px;
  1477. }
  1478. .container {
  1479. overflow: scroll;
  1480. height: 93vh;
  1481. }
  1482. .button-container {
  1483. display: flex;
  1484. flex-wrap: nowrap;
  1485. justify-content: space-between;
  1486. align-items: center;
  1487. background-color: #fff;
  1488. width: 100%;
  1489. height: 50px;
  1490. padding: 0 10px;
  1491. & > div {
  1492. margin-left: 10px;
  1493. display: flex;
  1494. flex-wrap: nowrap;
  1495. flex-direction: row;
  1496. & > span {
  1497. line-height: 50px;
  1498. }
  1499. }
  1500. /deep/.auditFlow-box {
  1501. position: unset;
  1502. margin-left: 10px;
  1503. &/deep/.auditFlow-icon {
  1504. width: auto;
  1505. padding-right: 30px;
  1506. }
  1507. &/deep/.auditFlow-main {
  1508. position: absolute;
  1509. }
  1510. }
  1511. }
  1512. .bg-left {
  1513. padding-left: 30px;
  1514. }
  1515. .title {
  1516. position: relative;
  1517. }
  1518. .title::before {
  1519. content: '';
  1520. display: inline-block;
  1521. width: 5px;
  1522. height: 30px;
  1523. background: #5473e8;
  1524. position: absolute;
  1525. left: 0;
  1526. }
  1527. .el-button--primary {
  1528. background-color: #5878e8;
  1529. border-color: #5878e8;
  1530. // margin-left: 85%;
  1531. margin-top: 13px;
  1532. }
  1533. //导航条样式
  1534. .el-col-12 {
  1535. width: 50%;
  1536. height: 60px;
  1537. background: #f6f7fc;
  1538. border-radius: 4px 4px 1px 1px;
  1539. }
  1540. .el-input--small .el-input__inner {
  1541. height: 32px;
  1542. line-height: 32px;
  1543. width: 385px;
  1544. margin-top: 10px;
  1545. }
  1546. .bg-bottom {
  1547. margin-left: 85%;
  1548. }
  1549. .but {
  1550. margin-left: 30%;
  1551. /* margin-top: -32px; */
  1552. overflow: auto;
  1553. /* float: left; */
  1554. /* margin-left: 1px; */
  1555. margin-left: -10px;
  1556. }
  1557. .el-input--small {
  1558. font-size: 13px;
  1559. width: 390px;
  1560. margin-left: 74%;
  1561. }
  1562. /deep/.el-table .el-table__header .cell,
  1563. .el-table .el-table__body .cell {
  1564. text-align: center;
  1565. }
  1566. .el-scrollbar__wrap {
  1567. overflow-y: hidden;
  1568. }
  1569. /deep/.deal {
  1570. margin-left: 0%;
  1571. width: 64%;
  1572. }
  1573. .photo {
  1574. padding: 0% 34%;
  1575. }
  1576. .photo1 {
  1577. padding: 0 10%;
  1578. }
  1579. .photo2 {
  1580. padding: 0 12%;
  1581. }
  1582. /deep/.el-form-item--small .el-form-item__label,
  1583. .el-form-item--small .el-form-item__content {
  1584. text-align: center;
  1585. }
  1586. hr {
  1587. width: 91%;
  1588. }
  1589. /deep/.deaal {
  1590. width: 66%;
  1591. margin-left: 9%;
  1592. }
  1593. .el-date-editor.el-input,
  1594. .el-date-editor.el-input__inner,
  1595. .el-input-number--small {
  1596. width: 123% !important;
  1597. }
  1598. /deep/.el-table td,
  1599. .el-table th.is-leaf {
  1600. border-right: 1px solid #e9ecf7;
  1601. text-align: center;
  1602. height: 40px;
  1603. }
  1604. // .danjia{
  1605. // width: 9px;
  1606. // height: 9px;
  1607. // margin-left: 40px;
  1608. // }
  1609. </style>