purchaseOrderList.vue 64 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206
  1. //采购订单
  2. <template>
  3. <div>
  4. <BaseHeaderLayout :leftSpan="15">
  5. <template slot="left"></template>
  6. <template slot="right">
  7. <ws-select
  8. v-model="searchTypeText"
  9. placeholder=""
  10. class="typeselect"
  11. @change="selecttaskType"
  12. :value="searchType"
  13. >
  14. <ws-option
  15. v-for="item in taskTypeList"
  16. :key="item.value"
  17. :label="item.value"
  18. :value="item.value"
  19. style="color: #8890b1"
  20. />
  21. </ws-select>
  22. <ws-input
  23. class='findinput'
  24. v-model="searchKeyWord"
  25. placeholder="可按合同编号或客户查找"
  26. clearable
  27. maxlength="500"
  28. type="input"
  29. ></ws-input>
  30. <ws-button class="find" type="primary" @click="find()"
  31. ><img
  32. width="16"
  33. height="16"
  34. style="
  35. vertical-align: text-top;
  36. position: relative;
  37. top: 0px;
  38. left: -8px;
  39. "
  40. src="../../../public/img/sousuo.png"
  41. alt=""
  42. /></ws-button>
  43. <!-- </div> -->
  44. </template>
  45. </BaseHeaderLayout>
  46. <el-table
  47. :data="warehouseList.records"
  48. size="small"
  49. element-loading-text="正在查询中。。。"
  50. border
  51. fit
  52. highlight-current-row
  53. height="700"
  54. >
  55. <el-table-column type="index" label="序号" width="50"></el-table-column>
  56. <el-table-column
  57. class="table_td"
  58. prop="contractNo"
  59. label="合同编号"
  60. width="100"
  61. >
  62. <template slot-scope="scope">
  63. <div class="record"
  64. @click="lookContract(scope.row)">{{ scope.row.contractNo}}</div>
  65. </template></el-table-column>
  66. <el-table-column
  67. class="table_td"
  68. prop="procurementPlan"
  69. label="采购计划"
  70. width="125"
  71. >
  72. <template slot-scope="scope">
  73. <div class="record"
  74. @click="lookPlan(scope.row)">{{ scope.row.procurementPlan}}</div>
  75. </template></el-table-column>
  76. <el-table-column class="table_td" prop="customer" label="客户">
  77. <template slot-scope="scope">
  78. <div class="record" @click="customer(scope.row)">
  79. {{ scope.row.customer }}
  80. </div>
  81. </template>
  82. </el-table-column>
  83. <el-table-column
  84. class="table_td"
  85. width="100"
  86. prop="unitPrice"
  87. label="单价(元/吨)"
  88. >
  89. <template slot-scope="scope">
  90. {{ scope.row.unitPrice }}
  91. <i
  92. v-if="scope.row.procurementPlanType == '期货'"
  93. @click="Changepricerecord(scope.row)"
  94. class="iconfont icon-lishi"
  95. ></i>
  96. </template>
  97. </el-table-column>
  98. <el-table-column
  99. class="table_td"
  100. prop="basis"
  101. label="基差(元/吨)"
  102. width="100"
  103. >
  104. <template slot-scope="scope">
  105. <div class="inputChenge">
  106. <span v-if="scope.row.procurementPlanType == '现货'">--</span>
  107. <span
  108. v-if="
  109. scope.row.identification == 'false' &&
  110. String(scope.row.basis) &&
  111. scope.row.procurementPlanType == '期货'&&
  112. String(scope.row.basis)>0
  113. "
  114. >{{'+'+scope.row.basis }}</span
  115. >
  116. <span
  117. v-else-if="
  118. scope.row.identification == 'false' &&
  119. String(scope.row.basis) &&
  120. scope.row.procurementPlanType == '期货'&&
  121. String(scope.row.basis)<=0
  122. "
  123. >{{scope.row.basis }}</span
  124. >
  125. <input
  126. v-if="scope.row.identification == 'true'&&scope.row.procurementPlanType == '期货'"
  127. style="width: 60px"
  128. v-model="scope.row.basis"
  129. type="text"
  130. />
  131. </div>
  132. <img
  133. width="17"
  134. height="18"
  135. style="vertical-align: text-top; position: relative; top: -1px"
  136. src="../../../public/img/edit.png"
  137. @click="whether(scope.row)"
  138. v-if="scope.row.identification == 'false'&&scope.row.procurementPlanType == '期货'"
  139. alt=""
  140. />
  141. <i
  142. class="el-icon-check"
  143. style="line-height: 29px; margin-left: 10px"
  144. v-if="scope.row.identification == 'true'&&scope.row.procurementPlanType == '期货'"
  145. @click="varietyClick(scope.row)"
  146. ></i>
  147. </template>
  148. </el-table-column>
  149. <el-table-column
  150. class="table_td"
  151. prop="freezingDeposit"
  152. label="冻结定金(元)"
  153. width="90"
  154. >
  155. <template slot-scope="scope">
  156. <span v-if="scope.row.procurementPlanType == '现货'">--</span>
  157. <span v-if="scope.row.procurementPlanType == '期货'">{{
  158. scope.row.freezingDeposit
  159. }}</span>
  160. </template>
  161. </el-table-column>
  162. <el-table-column
  163. class="table_td"
  164. prop="defaultDeposit"
  165. label="拖欠定金(元)"
  166. width="100"
  167. >
  168. <template slot-scope="scope">
  169. <span v-if="scope.row.procurementPlanType == '现货'">--</span>
  170. <span v-if="scope.row.procurementPlanType == '期货'">{{
  171. scope.row.defaultDeposit
  172. }}</span>
  173. </template></el-table-column>
  174. <el-table-column
  175. width="100"
  176. class="table_td"
  177. prop="unloadingCharge"
  178. label="卸车费(元/吨)"
  179. >
  180. <template slot-scope="scope">
  181. <span v-if="scope.row.procurementPlanType == '现货'">--</span>
  182. <span v-if="scope.row.procurementPlanType == '期货'">{{
  183. scope.row.unloadingCharge
  184. }}</span>
  185. </template></el-table-column>
  186. <el-table-column
  187. width="100"
  188. class="table_td"
  189. prop="invoiceFee"
  190. label="发票费(元/吨)"
  191. >
  192. <template slot-scope="scope">
  193. <span v-if="scope.row.procurementPlanType == '现货'">--</span>
  194. <span v-if="scope.row.procurementPlanType == '期货'">{{
  195. scope.row.invoiceFee
  196. }}</span>
  197. </template></el-table-column>
  198. <el-table-column
  199. class="table_td"
  200. prop="transactionsNumber"
  201. label="合同重量(吨)"
  202. width="100"
  203. ></el-table-column>
  204. <el-table-column
  205. class="table_td"
  206. prop="stockInQuantity"
  207. label="已入库量(吨)"
  208. width="90"
  209. >
  210. <template slot-scope="scope">
  211. <span v-if="scope.row.procurementPlanType == '现货'">--</span>
  212. <span v-if="scope.row.procurementPlanType == '期货'">{{
  213. scope.row.stockInQuantity
  214. }}</span>
  215. </template></el-table-column>
  216. <el-table-column
  217. class="table_td"
  218. prop="openPosition"
  219. label="可平仓量(吨)"
  220. width="90"
  221. >
  222. <template slot-scope="scope">
  223. <span v-if="scope.row.procurementPlanType == '现货'">--</span>
  224. <span v-if="scope.row.procurementPlanType == '期货'">{{
  225. scope.row.openPosition
  226. }}</span>
  227. </template>
  228. </el-table-column>
  229. <el-table-column
  230. class="table_td"
  231. prop="closedPosition"
  232. label="已平仓量(吨)"
  233. width="90"
  234. >
  235. <template slot-scope="scope">
  236. <span v-if="scope.row.procurementPlanType == '现货'">--</span>
  237. <span v-if="scope.row.procurementPlanType == '期货'">{{
  238. scope.row.closedPosition
  239. }}</span>
  240. <i
  241. v-if="scope.row.procurementPlanType == '期货'"
  242. @click="closedPositionLook(scope.row)"
  243. class="iconfont icon-lishi"
  244. ></i>
  245. </template>
  246. </el-table-column>
  247. <el-table-column
  248. class="table_td"
  249. prop="cumulativeTurnover"
  250. label="已成交量(吨)"
  251. width="90"
  252. >
  253. <template slot-scope="scope">
  254. <span v-if="scope.row.procurementPlanType == '现货'">--</span>
  255. <span v-if="scope.row.procurementPlanType == '期货'">{{
  256. scope.row.cumulativeTurnover
  257. }}</span>
  258. <i
  259. v-if="scope.row.procurementPlanType == '期货'"
  260. @click="transactionRecord(scope.row)"
  261. class="iconfont icon-lishi"
  262. ></i>
  263. </template>
  264. </el-table-column>
  265. <el-table-column
  266. class="table_td"
  267. label="发票类型"
  268. prop="type"
  269. ></el-table-column>
  270. <el-table-column prop="packingType" label="包装方式">
  271. <template slot-scope="scope">
  272. <el-popover
  273. v-if="scope.row.packingType != '散装'"
  274. placement="top"
  275. :width="160"
  276. trigger="hover"
  277. visible-arrow="false"
  278. >
  279. <template>
  280. <span slot="reference">
  281. {{ scope.row.packingType }}
  282. </span>
  283. </template>
  284. <div>
  285. <span
  286. style="margin-left: 6px"
  287. >
  288. {{ scope.row.baggingNotes }}</span
  289. >
  290. </div>
  291. </el-popover>
  292. <span v-else>{{ scope.row.packingType }}</span>
  293. </template>
  294. </el-table-column>
  295. <el-table-column prop="status" label="状态">
  296. <template slot-scope="scope">
  297. <template>
  298. <span slot="reference">
  299. <span
  300. v-if="scope.row.status == '待审核'"
  301. class="executory"
  302. ></span>
  303. <span
  304. v-if="scope.row.status == '已成交'"
  305. class="inExecution"
  306. ></span>
  307. <span v-if="scope.row.status == '已完成'" class="done"></span>
  308. {{ scope.row.status }}
  309. </span>
  310. </template>
  311. </template>
  312. </el-table-column>
  313. <el-table-column
  314. class="table_td"
  315. label="更新时间"
  316. prop="updateDate"
  317. width="130"
  318. ></el-table-column>
  319. <el-table-column
  320. class="table_td"
  321. label="入库结算"
  322. prop="updateDate"
  323. width="130"
  324. >
  325. <template slot-scope="scope" >
  326. <div
  327. class="record"
  328. @click="nocomplete1(scope.row)"
  329. v-if="scope.row.procurementPlanType != '现货'&&scope.row.receiptUnpaid != null&&scope.row.receiptUnpaid >0">去结算</div>
  330. <div
  331. class="record"
  332. @click="nocomplete1(scope.row)"
  333. v-else-if="scope.row.procurementPlanType != '现货'&&scope.row.receiptUnpaid != null&&scope.row.receiptUnpaid==0">已结算</div>
  334. <div v-else>--</div>
  335. </template>
  336. </el-table-column >
  337. <el-table-column
  338. class="table_td"
  339. label="平仓结算"
  340. prop="updateDate"
  341. width="130">
  342. <template slot-scope="scope">
  343. <div
  344. class="record"
  345. @click="nocomplete(scope.row)"
  346. v-if="scope.row.procurementPlanType != '现货'&&scope.row.closedUnpaid != null&&scope.row.closedUnpaid >0">去结算</div>
  347. <div
  348. class="record"
  349. @click="nocomplete(scope.row)"
  350. v-else-if="scope.row.procurementPlanType != '现货'&&scope.row.closedUnpaid != null&&scope.row.closedUnpaid ==0">已结算</div>
  351. <div v-else>--</div>
  352. </template>
  353. </el-table-column >
  354. <el-table-column prop="seller" label="操作" width="310">
  355. <template slot-scope="scope">
  356. <!-- <div v-if="scope.row.procurementPlanType != '现货'"> -->
  357. <div
  358. v-if="
  359. (scope.row.status == '已通过' || scope.row.status == '已成交') &&
  360. scope.row.procurementPlanType != '现货'
  361. "
  362. class="record"
  363. @click="makeabargain(scope.row)"
  364. v-hasPermission="
  365. `procurement.procurementOrder.deal`
  366. "
  367. >
  368. 成交
  369. </div>
  370. <!-- 补充定金 -->
  371. <div
  372. v-if="
  373. scope.row.defaultDeposit > 0 &&
  374. scope.row.procurementPlanType != '现货'
  375. "
  376. class="record"
  377. @click="addthedeposit(scope.row)"
  378. v-hasPermission="
  379. `procurement.procurementOrder.deposit`
  380. "
  381. >
  382. 补充定金
  383. </div>
  384. <div
  385. v-if="
  386. scope.row.freezingDeposit > 0 &&
  387. scope.row.procurementPlanType != '现货'
  388. "
  389. class="record"
  390. @click="unfreeze(scope.row)"
  391. v-hasPermission="
  392. `procurement.procurementOrder.thaw`
  393. "
  394. >
  395. 解冻定金
  396. </div>
  397. <!-- 平仓 -->
  398. <div
  399. v-if="
  400. scope.row.openPosition > 0 &&
  401. scope.row.procurementPlanType != '现货'
  402. "
  403. class="record"
  404. @click="cloaeposition1(scope.row)"
  405. v-hasPermission="
  406. `procurement.procurementOrder.close`
  407. "
  408. >
  409. 平仓
  410. </div>
  411. <div
  412. v-if="
  413. (scope.row.status == '已通过' || scope.row.status == '已成交') &&
  414. scope.row.procurementPlanType != '现货'
  415. "
  416. class="record"
  417. @click="handle(scope.row)"
  418. v-hasPermission="
  419. `procurement.procurementOrder.complete`
  420. "
  421. >
  422. 完成
  423. </div>
  424. <!-- </div> -->
  425. <!-- 审核 -->
  426. <!-- "(scope.row.status == '已通过' || scope.row.status == '已成交') && scope.row.procurementPlanType != '现货'" -->
  427. <div
  428. v-if="scope.row.status == '待审核'&&scope.row.taskId!=null"
  429. type="text"
  430. class="record"
  431. @click="aduit(scope.row)"
  432. v-hasPermission="
  433. `procurement.procurementOrder.view`
  434. "
  435. >
  436. 审核
  437. </div>
  438. <div
  439. v-if="scope.row.status == '待审核'"
  440. class="record"
  441. @click="deletehandle(scope.row)"
  442. v-hasPermission="
  443. `procurement.procurementOrder.delete`
  444. "
  445. >
  446. 删除
  447. </div>
  448. </template>
  449. </el-table-column>
  450. </el-table>
  451. <!-- 页数 -->
  452. <el-pagination
  453. @size-change="handleSizeChange"
  454. @current-change="handleCurrentChange"
  455. :current-page="currentPage"
  456. :page-size="pageSize"
  457. layout="total, sizes, prev, pager, next, jumper"
  458. :total="deptBudgetTotal"
  459. ></el-pagination>
  460. <!--成交-->
  461. <el-dialog
  462. width="25%"
  463. title="成交"
  464. :visible.sync="dialogFormVisible1"
  465. :append-to-body="true"
  466. >
  467. <el-form ref="warehouseList">
  468. <el-form-item
  469. label="成交价(元/吨)"
  470. prop="transactionPrice"
  471. :label-width="formLabelWidth"
  472. >
  473. <el-input
  474. v-model="clinchdeal1.transactionPrice"
  475. autocomplete="off"
  476. placeholder="请输入成交价"
  477. class="deal"
  478. ></el-input>
  479. </el-form-item>
  480. <el-form-item
  481. label="成交量(吨)"
  482. prop="transactionsNumber"
  483. :label-width="formLabelWidth"
  484. >
  485. <el-input
  486. v-model="clinchdeal1.turnover"
  487. autocomplete="off"
  488. placeholder="请输入成交量(吨)"
  489. class="deal"
  490. ></el-input>
  491. </el-form-item>
  492. <el-form-item
  493. label="基差(元/吨)"
  494. prop="basis"
  495. :label-width="formLabelWidth"
  496. >
  497. <el-input
  498. v-model="clinchdeal1.basis"
  499. autocomplete="off"
  500. placeholder="请输入基差"
  501. class="deal"
  502. ></el-input>
  503. </el-form-item>
  504. <el-form-item
  505. label="成交日期"
  506. prop="dealDate"
  507. :label-width="formLabelWidth"
  508. class="deal"
  509. >
  510. <el-date-picker
  511. v-model="clinchdeal1.dealDate"
  512. type="date"
  513. placeholder="请选择成交日期"
  514. value-format="yyyy-MM-dd"
  515. class="chengjiaoriqi"
  516. />
  517. </el-form-item>
  518. </el-form>
  519. <div slot="footer" class="dialog-footer">
  520. <el-button @click="dialogFormVisible1 = false">取 消</el-button>
  521. <el-button type="primary" @click="chengjiao()">确 定</el-button>
  522. </div>
  523. </el-dialog>
  524. <el-dialog
  525. width="20%"
  526. title="补充定金"
  527. :visible.sync="dialogFormVisible3"
  528. :append-to-body="true"
  529. >
  530. <el-form :model="form">
  531. <h5 style="margin-left: 30px">{{ replenishlist.customer }}</h5>
  532. <el-form-item label="拖欠定金" :label-width="formLabelWidth">
  533. {{ replenishlist.defaultDeposit }}元
  534. </el-form-item>
  535. <el-form-item label="可用定金" :label-width="formLabelWidth">
  536. {{ replenishlist.totalDeposit - replenishlist.freezingDeposit }}元
  537. </el-form-item>
  538. <el-form-item label="补充金额" :label-width="formLabelWidth">
  539. <el-input
  540. v-model="replenishlist.money"
  541. autocomplete="off"
  542. placeholder="请输入补充金额"
  543. class="deal"
  544. ></el-input>
  545. </el-form-item>
  546. </el-form>
  547. <div slot="footer" class="dialog-footer">
  548. <el-button @click="dialogFormVisible3 = false">取 消</el-button>
  549. <el-button type="primary" @click="replenish">确 定</el-button>
  550. </div>
  551. </el-dialog>
  552. <!--平仓 -->
  553. <el-dialog
  554. width="40%"
  555. title="平仓"
  556. :visible.sync="dialogFormVisible2"
  557. :append-to-body="true"
  558. >
  559. <el-form class="closeposition">
  560. <el-form-item label="成交价格(元/吨)" prop="transactionPrice">
  561. <ws-select
  562. v-model="closePositionList1.transactionPrice"
  563. placeholder
  564. class="deal"
  565. @change='transaction'
  566. >
  567. <ws-option
  568. v-for="item in transactionRecordList1"
  569. :key="item.constKey"
  570. :label="item.key"
  571. :value="item.key"
  572. />
  573. </ws-select>
  574. </el-form-item>
  575. <el-form-item label="可平仓数量(吨)" prop="openPosition">
  576. <el-input
  577. v-model="closePositionList1.openPosition"
  578. autocomplete="off"
  579. class="deal"
  580. ></el-input>
  581. </el-form-item>
  582. <el-form-item label="平仓数量(吨)" prop="closingQuantity">
  583. <el-input
  584. @input="closingPositionPayable"
  585. v-model="closePositionList1.closingQuantity"
  586. autocomplete="off"
  587. placeholder="请输入平仓数量"
  588. class="deal"
  589. ></el-input>
  590. </el-form-item>
  591. <el-form-item label="平仓价格(元/吨)" prop="closeRate">
  592. <el-input
  593. @input="closingPositionPayable"
  594. v-model="closePositionList1.closeRate"
  595. autocomplete="off"
  596. placeholder="请输入平仓价格"
  597. class="deal"
  598. ></el-input>
  599. </el-form-item>
  600. <el-form-item label="平仓基差(元/吨)" prop="closingBasis">
  601. <el-input
  602. @input="closingPositionPayable"
  603. v-model="closePositionList1.closingBasis"
  604. autocomplete="off"
  605. placeholder="请输入平仓基差"
  606. class="deal"
  607. ></el-input>
  608. </el-form-item>
  609. <el-form-item label="平仓应付(元)" prop="closingPositionPayable">
  610. <el-input
  611. readonly="readonly"
  612. v-model="closePositionList1.closingPositionPayable"
  613. autocomplete="off"
  614. placeholder="请输入平仓应付"
  615. class="deal"
  616. ></el-input>
  617. </el-form-item>
  618. <el-form-item label="平仓日期" prop="closePositionDate">
  619. <el-date-picker
  620. v-model="closePositionList1.closePositionDate"
  621. type="date"
  622. placeholder="选择平仓日期"
  623. format="yyyy 年 MM 月 dd 日"
  624. value-format="yyyy-MM-dd"
  625. class="pingcangriqi"
  626. />
  627. </el-form-item>
  628. </el-form>
  629. <div slot="footer" class="dialog-footer">
  630. <el-button @click="dialogFormVisible2 = false">取 消</el-button>
  631. <el-button type="primary" @click="closepositionconfirm()"
  632. >确 定</el-button
  633. >
  634. </div>
  635. </el-dialog>
  636. <!--审核-->
  637. <el-dialog
  638. width="40%"
  639. title="审核"
  640. :visible.sync="dialogFormVisible4"
  641. :append-to-body="true"
  642. >
  643. <el-form>
  644. <el-form-item label="交易类型" :label-width="formLabelWidth">
  645. <span>采购</span>
  646. </el-form-item>
  647. <el-form-item label="交易目标" :label-width="formLabelWidth">
  648. {{ aduitlist.tradingTarget }}
  649. </el-form-item>
  650. <el-form-item label="卖方" :label-width="formLabelWidth">
  651. {{ aduitlist.seller }}
  652. </el-form-item>
  653. <el-form-item label="卖方电话" :label-width="formLabelWidth">
  654. {{ aduitlist.sellerPhone }}
  655. </el-form-item>
  656. <el-form-item label="交易数量(吨)" :label-width="formLabelWidth">
  657. {{ aduitlist.transactionsNumber }}
  658. </el-form-item>
  659. <el-form-item label="提交时间" :label-width="formLabelWidth">
  660. {{ aduitlist.createDate }}
  661. </el-form-item>
  662. <el-form-item label="包装方式" :label-width="formLabelWidth">
  663. <ws-select
  664. v-model="aduitlist.packingType"
  665. placeholder
  666. class="deal"
  667. @change="selectpackingType"
  668. >
  669. <ws-option
  670. v-for="item in packingTypeList"
  671. :key="item.constKey"
  672. :label="item.constValue"
  673. :value="item.constValue"
  674. />
  675. </ws-select>
  676. </el-form-item>
  677. <el-form-item
  678. v-if="aduitlist.packingType != '散装'"
  679. label="袋装备注"
  680. :label-width="formLabelWidth"
  681. >
  682. <el-input
  683. maxlength="30"
  684. v-model="aduitlist.baggingNotes"
  685. autocomplete="off"
  686. placeholder="请输入袋装备注,最多30个字"
  687. class="deal"
  688. ></el-input>
  689. </el-form-item>
  690. <el-form-item label="发票类型" :label-width="formLabelWidth">
  691. <ws-select
  692. v-model="aduitlist.type"
  693. placeholder
  694. class="deal"
  695. @change="selectType"
  696. >
  697. <ws-option
  698. v-for="item in invoiceList"
  699. :key="item.constKey"
  700. :label="item.constValue"
  701. :value="item.constValue"
  702. />
  703. </ws-select>
  704. </el-form-item>
  705. <el-form-item label="单价(元/吨)" :label-width="formLabelWidth">
  706. <el-input
  707. v-model="aduitlist.unitPrice"
  708. autocomplete="off"
  709. placeholder="请输入单价"
  710. class="deal"
  711. ></el-input>
  712. </el-form-item>
  713. <el-form-item v-if='aduitlist.procurementPlanType=="期货"' label="基差(元/吨)" :label-width="formLabelWidth">
  714. <el-input
  715. v-model="aduitlist.basis"
  716. autocomplete="off"
  717. placeholder="请输入基差"
  718. class="deal"
  719. ></el-input>
  720. </el-form-item>
  721. <el-form-item v-if='aduitlist.procurementPlanType=="期货"' label="发票费用(元/吨)" :label-width="formLabelWidth">
  722. <el-input
  723. v-model="aduitlist.invoiceFee"
  724. autocomplete="off"
  725. placeholder="请输入发票费用"
  726. class="deal"
  727. ></el-input>
  728. </el-form-item>
  729. <el-form-item v-if='aduitlist.procurementPlanType=="期货"' label="卸车费用(元/吨)" :label-width="formLabelWidth">
  730. <el-input
  731. v-model="aduitlist.unloadingCharge"
  732. autocomplete="off"
  733. placeholder="请输入卸车费用"
  734. class="deal"
  735. ></el-input>
  736. </el-form-item>
  737. <el-form-item label="合同编号" :label-width="formLabelWidth">
  738. <el-select
  739. v-model="aduitlist.contractNo"
  740. placeholder="请选择合同编号"
  741. class="deal"
  742. filterable
  743. >
  744. <el-option
  745. v-for="item in options"
  746. :key="item.constKey"
  747. :label="item.contractNo"
  748. :value="item.contractNo"
  749. />
  750. </el-select>
  751. </el-form-item>
  752. </el-form>
  753. <div slot="footer" class="dialog-footer">
  754. <el-button @click="dialogFormVisible4 = false">取 消</el-button>
  755. <el-button type="primary" @click="aduitconfirm">通过</el-button>
  756. </div>
  757. </el-dialog>
  758. <!--客户信息-->
  759. <el-dialog
  760. width="30%"
  761. title="客户信息"
  762. :visible.sync="dialogFormVisible8"
  763. :append-to-body="true"
  764. >
  765. <el-form class="customer" :model="form">
  766. <div v-if="customerlist.customerTypeFlag == '2'">
  767. <h4>营业执照</h4>
  768. <img width="50%" :src="customerlist.businessLicenseAddressUrl" alt />
  769. <el-form-item label="公司名称" :label-width="formLabelWidth">
  770. {{ customerlist.compName }}
  771. </el-form-item>
  772. <el-form-item label="纳税人识别号" :label-width="formLabelWidth">
  773. {{ customerlist.payTaxesCard }}
  774. </el-form-item>
  775. </div>
  776. <div class="flex">
  777. <div style="flex: 1; text-align: center">
  778. <h4>身份证正面</h4>
  779. <img width="100%" :src="customerlist.cardAddressUrl1" alt />
  780. </div>
  781. <div style="flex: 1; text-align: center">
  782. <h4>身份证反面</h4>
  783. <img width="100%" :src="customerlist.cardAddressUrl2" alt />
  784. </div>
  785. </div>
  786. <el-form-item label="姓名" :label-width="formLabelWidth">
  787. {{ customerlist.customerName }}
  788. </el-form-item>
  789. <el-form-item label="身份证号" :label-width="formLabelWidth">
  790. {{ customerlist.customerNumberCard }}
  791. </el-form-item>
  792. <div class="flex">
  793. <div style="flex: 1; text-align: center">
  794. <h4>银行卡正面</h4>
  795. <img width="100%" :src="customerlist.payeeAddressUrl1" alt />
  796. </div>
  797. <div style="flex: 1; text-align: center">
  798. <h4>银行卡反面</h4>
  799. <img width="100%" :src="customerlist.payeeAddressUrl2" alt />
  800. </div>
  801. </div>
  802. <el-form-item label="银行卡号" :label-width="formLabelWidth">
  803. {{ customerlist.bankCard }}
  804. </el-form-item>
  805. <el-form-item label="开户行" :label-width="formLabelWidth">
  806. {{ customerlist.bankDeposit }}
  807. </el-form-item>
  808. <el-form-item label="开户支行" :label-width="formLabelWidth">
  809. {{ customerlist.bankDepositBranch }}
  810. </el-form-item>
  811. <el-form-item
  812. label="收款人姓名"
  813. :label-width="formLabelWidth"
  814. v-if="customerlist.customerTypeFlag == '1'"
  815. >
  816. {{ customerlist.payeeName }}
  817. </el-form-item>
  818. <el-form-item
  819. label="收款人身份证号"
  820. :label-width="formLabelWidth"
  821. v-if="customerlist.customerTypeFlag == '1'"
  822. >
  823. {{ customerlist.payeeNumberCard }}
  824. </el-form-item>
  825. <el-form-item label="手机号" :label-width="formLabelWidth">
  826. {{ customerlist.customerPhone }}
  827. </el-form-item>
  828. <el-form-item label="联系地址" :label-width="formLabelWidth">
  829. {{ customerlist.compAddress }}
  830. </el-form-item>
  831. </el-form>
  832. <div slot="footer" class="dialog-footer">
  833. <el-button @click="cancel">取 消</el-button>
  834. </div>
  835. </el-dialog>
  836. <!--成交记录-->
  837. <el-dialog
  838. width="40%"
  839. title="成交记录"
  840. :visible.sync="dialogFormVisible6"
  841. :append-to-body="true"
  842. >
  843. <el-table :data="transactionRecordList">
  844. <el-table-column prop="transactionPrice" label="成交价(元)">
  845. </el-table-column>
  846. <el-table-column prop="basis" label="基差(元)"> </el-table-column>
  847. <el-table-column prop="turnover" label="成交量(吨)"> </el-table-column>
  848. <el-table-column prop="dealDate" label="成交日期"> </el-table-column>
  849. </el-table>
  850. </el-dialog>
  851. <!-- 平仓记录 -->
  852. <el-dialog
  853. width="40%"
  854. title="平仓记录"
  855. :visible.sync="dialogFormVisible7"
  856. :append-to-body="true"
  857. >
  858. <el-table :data="closePositionList">
  859. <el-table-column prop="transactionPrice" label="成交价">
  860. </el-table-column>
  861. <el-table-column prop="closingPrice" label="平仓价(元)"> </el-table-column>
  862. <el-table-column prop="basis" label="基差(元)"> </el-table-column>
  863. <el-table-column prop="turnover" label="平仓量(吨)"> </el-table-column>
  864. <el-table-column prop="dealDate" label="平仓日期"> </el-table-column>
  865. </el-table>
  866. </el-dialog>
  867. <!--改价记录-->
  868. <el-dialog
  869. width="10%"
  870. title="改价记录"
  871. :visible.sync="dialogFormVisible5"
  872. :append-to-body="true"
  873. >
  874. <div v-for="item in pricechange">
  875. <div>
  876. {{ item.priceType }}
  877. </div>
  878. <div class="price">
  879. {{ item.price }}
  880. </div>
  881. <div>{{ item.updateDate }}</div>
  882. </div>
  883. </el-dialog>
  884. </div>
  885. <!-- </div> -->
  886. </template>
  887. <script>
  888. import { packList } from '@/model/contarct/index'
  889. import {
  890. detailsList,
  891. chengList,
  892. getTransactionPriceList,
  893. closePositionList,
  894. aduitpurchase,
  895. aduitcontractno,
  896. editStatus,
  897. deletepurchase,
  898. postsubmit,
  899. posthandle
  900. } from '@/model/purchasingManagement/index'
  901. import { downloadFile } from '@/utils/batchDown'
  902. import Pagination from '@/components/Pagination'
  903. import WsUpload from '@/components/WsUpload'
  904. export default {
  905. name: 'viewSpareMoney',
  906. components: {
  907. WsUpload,
  908. Pagination,
  909. },
  910. watch: {
  911. vesselId(val) {
  912. this.getList()
  913. },
  914. isShow(val) {
  915. this.showType = val
  916. },
  917. },
  918. data() {
  919. return {
  920. dialogFormVisible1: false,
  921. dialogFormVisible2: false,
  922. dialogFormVisible3: false,
  923. dialogFormVisible4: false,
  924. dialogFormVisible5: false,
  925. dialogFormVisible6: false,
  926. dialogFormVisible7: false,
  927. dialogFormVisible8: false,
  928. dialogVisible: false,
  929. dialogImageUrl: '',
  930. form: {
  931. transactionPrice: '',
  932. transactionsNumber: '',
  933. basis: '',
  934. submissionDate: '',
  935. // delivery: false,
  936. // type: [],
  937. // resource: '',
  938. // desc: ''
  939. },
  940. formLabelWidth: '120px',
  941. basischange: false,
  942. barWidth: 0,
  943. barHeight: 0,
  944. retioX: 1,
  945. ratioY: 1,
  946. isTaped: false,
  947. isHover: false,
  948. isShow: !this.autohide,
  949. clinchdeal: {},
  950. clinchdeal1: {},
  951. //弹出框
  952. dialogViewSpareMoney: false,
  953. dialogApproveFormVisible: false,
  954. // 船舶类型
  955. monetaryKey: null,
  956. // 表格显示数据
  957. tableDate: [],
  958. // 是否显示
  959. showType: true,
  960. // 年
  961. year: '',
  962. pickerOptions: {},
  963. value2: '',
  964. options:[],
  965. deptBudgetTotal: 0,
  966. currentPage: 1,
  967. tranTypeKey: 1,
  968. pageSize: 10,
  969. searchType: '',
  970. searchTypeText: '全部订单',
  971. procurementPlanType: '',
  972. searchKeyWord: '',
  973. contractType: 2,
  974. enter: {
  975. closePositionList: [],
  976. },
  977. taskTypeList: [
  978. { value: '待审核', type: 1 },
  979. { value: '执行中', type: 2 },
  980. { value: '已完成', type: 3 },
  981. { value: '全部订单', type: '' },
  982. ],
  983. // 提交类型
  984. submitType: true,
  985. size: 10,
  986. spanArr: [],
  987. contractNo: '',
  988. customerlist: {},
  989. packingTypeList: [],
  990. inOutTaskNo: '',
  991. compId: localStorage.getItem('ws-pf_compId'),
  992. deptCircularPage: {},
  993. warehouseList: [],
  994. deptBudgetList: {},
  995. pcFlag: 1,
  996. invoiceList: [],
  997. contractNoList: [],
  998. pricechange: [],
  999. aduitlist: {
  1000. unloadingCharge: 0,
  1001. basis: 0,
  1002. },
  1003. basis: 0,
  1004. replenishlist: {},
  1005. closePositionList1: {},
  1006. transactionRecordList1: [],
  1007. transactionRecordList: {},
  1008. closePositionList: [],
  1009. historyList: [],
  1010. openPositionTmp:0,
  1011. pickerBeginDateBefore: {
  1012. disabledDate: (time) => {
  1013. return time.getTime() > Date.now()
  1014. },
  1015. },
  1016. accessoryTFs: false,
  1017. }
  1018. },
  1019. activated() {
  1020. // this.loaddata()
  1021. this.getList()
  1022. this.showType = this.isShow
  1023. },
  1024. methods: {
  1025. handletest(){
  1026. postsubmit({ id: 'b1df1547e79e4d4aaa92b4ce8793d0a1'})
  1027. .toPromise()
  1028. .then((response) => {
  1029. console.log(111)
  1030. })
  1031. .catch((req) => {
  1032. })
  1033. },
  1034. transaction(e){
  1035. for (let i = 0; i < this.transactionRecordList1.length; i++) {
  1036. if(this.transactionRecordList1[i].key==e){
  1037. if(this.openPositionTmp>this.transactionRecordList1[i].value){
  1038. this.closePositionList1.openPosition=this.transactionRecordList1[i].value
  1039. }
  1040. else{
  1041. this.closePositionList1.openPosition = this.openPositionTmp
  1042. }
  1043. }
  1044. }
  1045. },
  1046. cancel() {
  1047. this.dialogFormVisible8 = false
  1048. this.customerlist.cardAddressUrl1 = ''
  1049. this.customerlist.cardAddressUrl2 = ''
  1050. this.customerlist.customerName = ''
  1051. this.customerlist.customerNumberCard = ''
  1052. this.customerlist.payeeAddressUrl1 = ''
  1053. this.customerlist.payeeAddressUrl2 = ''
  1054. this.customerlist.bankCard = ''
  1055. this.customerlist.bankDeposit = ''
  1056. this.customerlist.bankDepositBranch = ''
  1057. this.customerlist.payeeName = ''
  1058. this.customerlist.payeeName = ''
  1059. this.customerlist.payeeNumberCard = ''
  1060. this.customerlist.customerPhone = ''
  1061. this.customerlist.compAddress = ''
  1062. this.customerlist.businessLicenseAddressUrl = ''
  1063. this.customerlist.compName = ''
  1064. this.customerlist.payTaxesCard = ''
  1065. },
  1066. dataFilter(val) {
  1067. // console.log(val,"名")
  1068. this.aduitlist.contractNo = val
  1069. if (val) {
  1070. //val存在
  1071. this.options = this.contractNoList.filter(item => {
  1072. if (
  1073. !!~item.contractNo.indexOf(val) ||
  1074. !!~item.contractNo.toUpperCase().indexOf(val.toUpperCase())
  1075. ) {
  1076. return true
  1077. }
  1078. })
  1079. } else {
  1080. //val为空时,还原数组
  1081. this.options =this.contractNoList
  1082. }
  1083. },
  1084. //修改基差
  1085. varietyClick(row) {
  1086. if (row.basis) {
  1087. if (isNaN(row.basis)) {
  1088. this.$message({
  1089. message: '基差非数字!',
  1090. type: 'warning',
  1091. })
  1092. return
  1093. }
  1094. }
  1095. if (
  1096. (row.basis&&
  1097. String(row.basis).indexOf('.') != -1 &&
  1098. String(row.basis).length -
  1099. (String(row.basis).indexOf('.') + 1) >
  1100. 2) ||
  1101. row.basis > 100000 ||
  1102. row.basis < -100000
  1103. ) {
  1104. this.$message({
  1105. message: '基差输入错误',
  1106. type: 'warning',
  1107. })
  1108. return
  1109. }
  1110. if (!String(row.basis)) {
  1111. this.$message({
  1112. message: '基差不能为空!',
  1113. type: 'warning',
  1114. })
  1115. return
  1116. }
  1117. this.$confirm(`确定要修改基差?`, {
  1118. confirmButtonText: '确定',
  1119. cancelButtonText: '取消',
  1120. type: 'warning',
  1121. })
  1122. .then(() => {
  1123. editStatus({
  1124. flag: 3,
  1125. // basis: '-'+Math.abs(row.basis),
  1126. basis: row.basis,
  1127. id: row.id,
  1128. })
  1129. .toPromise()
  1130. .then((response) => {
  1131. this.$notify.success({
  1132. title: '成功',
  1133. message: '修改成功',
  1134. })
  1135. this.getList()
  1136. })
  1137. .catch((response) => {})
  1138. })
  1139. .catch(() => {
  1140. return false
  1141. })
  1142. },
  1143. whether(row) {
  1144. row.identification = 'true'
  1145. },
  1146. nocomplete1(row) {
  1147. this.$router.push({
  1148. name: 'purchaseReceiptStatisticsList',
  1149. query: {
  1150. compId: localStorage.getItem('ws-pf_compId'),
  1151. currentPage: this.currentPage,
  1152. pageSize: this.pageSize
  1153. },
  1154. })
  1155. },
  1156. nocomplete(row) {
  1157. this.$router.push({
  1158. name: 'purchaseClosingCashierList',
  1159. query: {
  1160. compId: localStorage.getItem('ws-pf_compId'),
  1161. currentPage: this.currentPage,
  1162. pageSize: this.pageSize
  1163. },
  1164. })
  1165. },
  1166. handle(item) {
  1167. this.$confirm(`状态修改为已完成后不可再进行交易操作,是否确定修改?`, {
  1168. confirmButtonText: '确定',
  1169. cancelButtonText: '取消',
  1170. type: 'warning',
  1171. }).then(() => {
  1172. editStatus({ id: item.id, flag: 2 })
  1173. .toPromise()
  1174. .then((response) => {
  1175. this.$message.success('修改成功')
  1176. this.getList()
  1177. })
  1178. .catch((req) => {
  1179. this.$message.success('修改失败')
  1180. })
  1181. })
  1182. },
  1183. makeabargain(item) {
  1184. this.dialogFormVisible1 = true
  1185. this.clinchdeal.id = item.id
  1186. this.clinchdeal.commonId = item.commonId
  1187. },
  1188. deletehandle(item) {
  1189. this.$confirm(`采购订单删除后不可恢复,是否确定删除?`, {
  1190. confirmButtonText: '确定',
  1191. cancelButtonText: '取消',
  1192. type: 'warning',
  1193. }).then(() => {
  1194. deletepurchase({ id: item.id })
  1195. .toPromise()
  1196. .then((response) => {
  1197. this.$message.success('删除订单成功')
  1198. this.getList()
  1199. })
  1200. .catch((req) => {
  1201. this.$message.success('删除订单失败')
  1202. })
  1203. })
  1204. },
  1205. //修改基差
  1206. changebasis(item) {
  1207. editStatus({ basis: this.basis, id: item.id, flag: 3 })
  1208. .toPromise()
  1209. .then((response) => {
  1210. this.$message.success('修改基差成功')
  1211. this.getList()
  1212. })
  1213. .catch((req) => {
  1214. this.$message.success('修改基差失败')
  1215. })
  1216. },
  1217. editbasis(item) {
  1218. this.basis = item.basis
  1219. item.basischange = true
  1220. },
  1221. closepositionconfirm() {
  1222. this.closePositionList1.compId = localStorage.getItem('ws-pf_compId')
  1223. if (!this.closePositionList1.transactionPrice) {
  1224. this.$message({
  1225. message: '成交价不能为空!',
  1226. type: 'warning',
  1227. })
  1228. return
  1229. }
  1230. if (!this.closePositionList1.closingQuantity) {
  1231. this.$message({
  1232. message: '平仓数量不能为空!',
  1233. type: 'warning',
  1234. })
  1235. return
  1236. }
  1237. if (
  1238. (this.closePositionList1.closingQuantity &&
  1239. String(this.closePositionList1.closingQuantity).indexOf('.') != -1 &&
  1240. String(this.closePositionList1.closingQuantity).length -
  1241. (String(this.closePositionList1.closingQuantity).indexOf('.') + 1) >
  1242. 2) ||
  1243. this.closePositionList1.closingQuantity >
  1244. this.closePositionList1.openPosition ||
  1245. this.closePositionList1.closingQuantity < 1
  1246. ) {
  1247. this.$message({
  1248. message: '平仓数量超出上限',
  1249. type: 'warning',
  1250. })
  1251. return
  1252. }
  1253. if (!this.closePositionList1.closeRate) {
  1254. this.$message({
  1255. message: '平仓价格不能为空!',
  1256. type: 'warning',
  1257. })
  1258. return
  1259. }
  1260. if (
  1261. (this.closePositionList1.closeRate &&
  1262. String(this.closePositionList1.closeRate).indexOf('.') != -1 &&
  1263. String(this.closePositionList1.closeRate).length -
  1264. (String(this.closePositionList1.closeRate).indexOf('.') + 1) >
  1265. 2) ||
  1266. this.closePositionList1.closeRate > 100000 ||
  1267. this.closePositionList1.closeRate < 0
  1268. ) {
  1269. this.$message({
  1270. message: '平仓价格输入错误',
  1271. type: 'warning',
  1272. })
  1273. return
  1274. }
  1275. if (!String(this.closePositionList1.closingBasis)) {
  1276. this.$message({
  1277. message: '平仓基差不能为空!',
  1278. type: 'warning',
  1279. })
  1280. return
  1281. }
  1282. // if (
  1283. // (this.closePositionList1.closingBasis &&
  1284. // String(this.closePositionList1.closingBasis).indexOf('.') != -1 &&
  1285. // String(this.closePositionList1.closingBasis).length -
  1286. // (String(this.closePositionList1.closingBasis).indexOf('.') + 1) >
  1287. // 2) ||
  1288. // this.closePositionList1.closingBasis > 10000 ||
  1289. // this.closePositionList1.closingBasis < 1
  1290. // ) {
  1291. // this.$message({
  1292. // message: '平仓基差输入错误',
  1293. // type: 'warning',
  1294. // })
  1295. // return
  1296. // }
  1297. if (!this.closePositionList1.closePositionDate) {
  1298. this.$message({
  1299. message: '平仓日期不能为空!',
  1300. type: 'warning',
  1301. })
  1302. return
  1303. }
  1304. // this.closePositionList1.closingBasis='-'+Math.abs(this.closePositionList1.closingBasis)
  1305. closePositionList(this.closePositionList1)
  1306. .toPromise()
  1307. .then((response) => {
  1308. this.$message.success('平仓成功')
  1309. this.closePositionList1 = {}
  1310. this.dialogFormVisible2 = false
  1311. this.getList()
  1312. })
  1313. .catch((req) => {
  1314. this.$message.warning('平仓失败')
  1315. })
  1316. },
  1317. //计算平仓应付
  1318. closingPositionPayable() {
  1319. if(this.closePositionList1.transactionPrice
  1320. && this.closePositionList1.closeRate && this.closePositionList1.closingBasis && this.closePositionList1.closingQuantity)
  1321. {
  1322. // this.closePositionList1.closingPositionPayable =
  1323. // (this.closePositionList1.transactionPrice -
  1324. // this.closePositionList1.closeRate-
  1325. // Math.abs(this.closePositionList1.closingBasis)) *
  1326. // this.closePositionList1.closingQuantity
  1327. this.closePositionList1.closingPositionPayable =
  1328. (this.closePositionList1.transactionPrice -
  1329. this.closePositionList1.closeRate+
  1330. this.closePositionList1.closingBasis) *
  1331. this.closePositionList1.closingQuantity
  1332. }
  1333. },
  1334. cloaeposition1(item) {
  1335. this.dialogFormVisible2 = true
  1336. this.openPositionTmp = item.openPosition
  1337. this.$set(this.closePositionList1, 'id', item.id)
  1338. this.$set(this.closePositionList1, 'openPosition', item.openPosition)
  1339. this.$set(
  1340. this.closePositionList1,
  1341. 'transactionsNumber',
  1342. item.transactionsNumber
  1343. )
  1344. this.$set(this.closePositionList1, 'contractNo', item.contractNo)
  1345. this.$set(this.closePositionList1, 'planId', item.planId)
  1346. this.$set(this.closePositionList1, 'closeRate', item.closeRate)
  1347. this.$set(this.closePositionList1, 'seller', item.seller)
  1348. this.$set(this.closePositionList1, 'commonId', item.commonId)
  1349. getTransactionPriceList({
  1350. id: item.id,
  1351. })
  1352. .toPromise()
  1353. .then((response) => {
  1354. this.transactionRecordList1 = response
  1355. })
  1356. },
  1357. unfreeze(item) {
  1358. this.$confirm(`确定解冻订单(${item.procurementPlan})的定金?`, {
  1359. confirmButtonText: '确定',
  1360. cancelButtonText: '取消',
  1361. type: 'warning',
  1362. }).then(() => {
  1363. editStatus({ id: item.id, flag: 1 })
  1364. .toPromise()
  1365. .then((response) => {
  1366. this.$message.success('解冻定金成功')
  1367. this.getList()
  1368. })
  1369. .catch((req) => {
  1370. this.$message.success('解冻定金失败')
  1371. })
  1372. })
  1373. },
  1374. replenish() {
  1375. this.dialogFormVisible3 = false
  1376. if (!this.replenishlist.money) {
  1377. this.$message({
  1378. message: '补充金额不能为空!',
  1379. type: 'warning',
  1380. })
  1381. return
  1382. }
  1383. if (
  1384. String(this.replenishlist.money).indexOf('.') != -1 &&
  1385. String(this.replenishlist.money).length -
  1386. (String(this.replenishlist.money).indexOf('.') + 1) >
  1387. 2
  1388. ) {
  1389. this.$message({
  1390. message: '补充金额输入错误!',
  1391. type: 'warning',
  1392. })
  1393. return
  1394. }
  1395. if (this.replenishlist.money > this.replenishlist.defaultDeposit) {
  1396. this.$message({
  1397. message: '补充金额不能超过拖欠定金!',
  1398. type: 'warning',
  1399. })
  1400. return
  1401. }
  1402. if (
  1403. this.replenishlist.money >
  1404. this.replenishlist.totalDeposit - this.replenishlist.freezingDeposit
  1405. ) {
  1406. this.$message({
  1407. message: '补充金额不能超过可用定金!',
  1408. type: 'warning',
  1409. })
  1410. return
  1411. }
  1412. editStatus({
  1413. money: this.replenishlist.money,
  1414. id: this.replenishlist.id,
  1415. flag: 0,
  1416. })
  1417. .toPromise()
  1418. .then((response) => {
  1419. this.$message.success('补充成功')
  1420. this.getList()
  1421. })
  1422. .catch((req) => {
  1423. this.$message.success('补充失败')
  1424. })
  1425. },
  1426. addthedeposit(item) {
  1427. this.dialogFormVisible3 = true
  1428. this.$set(this.replenishlist, 'id', item.id)
  1429. this.$set(this.replenishlist, 'customer', item.customer)
  1430. this.$set(this.replenishlist, 'defaultDeposit', item.defaultDeposit)
  1431. this.$set(this.replenishlist,'totalDeposit', item.customerInfo.totalDeposit)
  1432. this.$set(this.replenishlist, 'freezingDeposit', item.freezingDeposit)
  1433. },
  1434. aduit(item) {
  1435. this.dialogFormVisible4 = true
  1436. this.aduitlist.id = item.id
  1437. this.aduitlist.taskId=item.taskId
  1438. this.aduitlist.type = '采购'
  1439. this.$set(this.aduitlist, 'seller', item.seller)
  1440. this.$set(this.aduitlist, 'sellerPhone', item.sellerPhone)
  1441. this.$set(this.aduitlist, 'tradingTarget', item.tradingTarget)
  1442. this.$set(this.aduitlist, 'transactionsNumber', item.transactionsNumber)
  1443. this.$set(this.aduitlist, 'createDate', item.createDate)
  1444. this.$set(this.aduitlist, 'packingType', item.packingType)
  1445. this.$set(this.aduitlist, 'packingTypeKey', item.packingTypeKey)
  1446. this.$set(this.aduitlist, 'taskId', item.taskId)
  1447. this.$set(this.aduitlist, 'type', item.type)
  1448. this.$set(this.aduitlist, 'typeKey', item.typeKey)
  1449. this.$set(this.aduitlist, 'procurementPlanType', item.procurementPlanType)
  1450. this.$set(this.aduitlist, 'unitPrice', item.unitPrice)
  1451. this.$set(this.aduitlist, 'invoiceFee', item.invoiceFee)
  1452. // this.$set(this.aduitlist, 'basis', Math.abs(item.basis))
  1453. this.$set(this.aduitlist, 'basis', item.basis)
  1454. this.$set(this.aduitlist, 'depositRatio', item.customerInfo.depositRatio)
  1455. this.$set(this.aduitlist, 'totalDeposit', item.customerInfo.totalDeposit)
  1456. this.$set(this.aduitlist, 'baggingNotes', item.baggingNotes)
  1457. },
  1458. aduitconfirm() {
  1459. if (!this.aduitlist.unitPrice) {
  1460. this.$message({
  1461. message: '单价不能为空!',
  1462. type: 'warning',
  1463. })
  1464. return
  1465. }
  1466. if (
  1467. !String(this.aduitlist.basis) &&
  1468. this.aduitlist.procurementPlanType != '现货'
  1469. ) {
  1470. this.$message({
  1471. message: '基差不能为空!',
  1472. type: 'warning',
  1473. })
  1474. return
  1475. }
  1476. if (!this.aduitlist.contractNo) {
  1477. this.$message({
  1478. message: '合同编号不能为空!',
  1479. type: 'warning',
  1480. })
  1481. return
  1482. }
  1483. if (
  1484. this.aduitlist.packingTypeKey != 1 &&
  1485. this.aduitlist.baggingNotes.length > 30
  1486. ) {
  1487. this.$message({
  1488. message: '袋装备注最长不能超过30字!',
  1489. type: 'warning',
  1490. })
  1491. return
  1492. }
  1493. if (
  1494. (this.aduitlist.unitPrice &&
  1495. String(this.aduitlist.unitPrice).indexOf('.') != -1 &&
  1496. String(this.aduitlist.unitPrice).length -
  1497. (String(this.aduitlist.unitPrice).indexOf('.') + 1) >
  1498. 2) ||
  1499. this.aduitlist.unitPrice > 100000 ||
  1500. this.aduitlist.unitPrice < 1
  1501. ) {
  1502. this.$message({
  1503. message: '单价输入错误',
  1504. type: 'warning',
  1505. })
  1506. return
  1507. }
  1508. if(this.aduitlist.procurementPlanType != '现货'){
  1509. if (
  1510. (!this.aduitlist.basis &&
  1511. String(this.aduitlist.basis).indexOf('.') != -1 &&
  1512. String(this.aduitlist.basis).length -
  1513. (String(this.aduitlist.basis).indexOf('.') + 1) >
  1514. 2) ||
  1515. this.aduitlist.basis > 10000 ||
  1516. this.aduitlist.basis < 0
  1517. ) {
  1518. this.$message({
  1519. message: '基差输入错误',
  1520. type: 'warning',
  1521. })
  1522. return
  1523. }
  1524. if (
  1525. (!this.aduitlist.unloadingCharge &&
  1526. String(this.aduitlist.unloadingCharge).indexOf('.') != -1 &&
  1527. String(this.aduitlist.unloadingCharge).length -
  1528. (String(this.aduitlist.unloadingCharge).indexOf('.') + 1) >
  1529. 2) ||
  1530. this.aduitlist.unloadingCharge > 1000 ||
  1531. this.aduitlist.unloadingCharge < 0
  1532. ) {
  1533. this.$message({
  1534. message: '卸车费用输入错误',
  1535. type: 'warning',
  1536. })
  1537. return
  1538. }
  1539. }
  1540. this.aduitlist.procurementPlanType = this.aduitlist.procurementPlanType
  1541. if (this.aduitlist.procurementPlanType == '期货') {
  1542. this.aduitlist.freezingDeposit = this.aduitlist.transactionsNumber*this.aduitlist.depositRatio
  1543. // if(this.aduitlist.invoiceFee){
  1544. // this.aduitlist.invoiceFee=-Math.abs(this.aduitlist.invoiceFee)
  1545. // }
  1546. }
  1547. this.dialogFormVisible4 = false
  1548. this.$confirm(`审核通过后,将通知客户订单生效,是否确定通过审核?`, {
  1549. confirmButtonText: '确定',
  1550. cancelButtonText: '取消',
  1551. type: 'warning',
  1552. }).then(() => {
  1553. aduitpurchase(this.aduitlist)
  1554. .toPromise()
  1555. .then((response) => {
  1556. posthandle({ taskId: this.aduitlist.taskId,
  1557. approved: true,
  1558. auditMind: '34',
  1559. needReapply: false,})
  1560. .toPromise()
  1561. .then((response) => {
  1562. this.$message.success('审核成功')
  1563. this.aduitlist = {}
  1564. this.getList()
  1565. })
  1566. })
  1567. })
  1568. },
  1569. Changepricerecord(item) {
  1570. this.dialogFormVisible5 = true
  1571. this.pricechange = item.priceChangeRecordList
  1572. },
  1573. closedPositionLook(item) {
  1574. this.dialogFormVisible7 = true
  1575. this.closePositionList = item.closePositionList
  1576. },
  1577. transactionRecord(item) {
  1578. this.dialogFormVisible6 = true
  1579. this.transactionRecordList = item.transactionRecordList
  1580. },
  1581. customer(item) {
  1582. this.dialogFormVisible8 = true
  1583. if (item.customerInfo) {
  1584. this.customerlist = item.customerInfo
  1585. this.customerlist.cardAddressUrl1 =
  1586. this.customerlist.cardAddressUrl.split(',')[0]
  1587. this.customerlist.cardAddressUrl2 =
  1588. this.customerlist.cardAddressUrl.split(',')[1]
  1589. this.customerlist.payeeAddressUrl1 =
  1590. this.customerlist.payeeAddressUrl.split(',')[0]
  1591. this.customerlist.payeeAddressUrl2 =
  1592. this.customerlist.payeeAddressUrl.split(',')[1]
  1593. }
  1594. },
  1595. //成交
  1596. chengjiao() {
  1597. if (!this.clinchdeal1.transactionPrice) {
  1598. this.$message({
  1599. message: '成交价不能为空',
  1600. type: 'warning',
  1601. })
  1602. return
  1603. }
  1604. if (
  1605. (this.clinchdeal1.transactionPrice &&
  1606. String(this.clinchdeal1.transactionPrice).indexOf('.') != -1 &&
  1607. String(this.clinchdeal1.transactionPrice).length -
  1608. (String(this.clinchdeal1.transactionPrice).indexOf('.') + 1) >
  1609. 2) ||
  1610. this.clinchdeal1.transactionPrice > 100000 ||
  1611. this.clinchdeal1.transactionPrice < 0
  1612. ) {
  1613. this.$message({
  1614. message: '成交价输入错误',
  1615. type: 'warning',
  1616. })
  1617. return
  1618. }
  1619. if (!this.clinchdeal1.turnover) {
  1620. this.$message({
  1621. message: '成交量不能为空',
  1622. type: 'warning',
  1623. })
  1624. return
  1625. }
  1626. if (
  1627. (this.clinchdeal1.turnover &&
  1628. String(this.clinchdeal1.turnover).indexOf('.') != -1 &&
  1629. String(this.clinchdeal1.turnover).length -
  1630. (String(this.clinchdeal1.turnover).indexOf('.') + 1) >
  1631. 2) ||
  1632. this.clinchdeal1.turnover > 1000000 ||
  1633. this.clinchdeal1.turnover < 1
  1634. ) {
  1635. this.$message({
  1636. message: '成交量输入错误',
  1637. type: 'warning',
  1638. })
  1639. return
  1640. }
  1641. if (!String(this.clinchdeal1.basis)) {
  1642. this.$message({
  1643. message: '基差不能为空',
  1644. type: 'warning',
  1645. })
  1646. return
  1647. }
  1648. if (
  1649. (this.clinchdeal1.basis &&
  1650. String(this.clinchdeal1.basis).indexOf('.') != -1 &&
  1651. String(this.clinchdeal1.basis).length -
  1652. (String(this.clinchdeal1.basis).indexOf('.') + 1) >
  1653. 2) ||
  1654. this.clinchdeal1.basis > 10000 ||
  1655. this.clinchdeal1.basis < 0
  1656. ) {
  1657. this.$message({
  1658. message: '基差输入错误',
  1659. type: 'warning',
  1660. })
  1661. return
  1662. }
  1663. if (!this.clinchdeal1.dealDate) {
  1664. this.$message({
  1665. message: '成交日期不能为空',
  1666. type: 'warning',
  1667. })
  1668. return
  1669. }
  1670. this.$confirm(`确定提交成交信息`, {
  1671. cancelButtonText: '取消',
  1672. confirmButtonText: '确定',
  1673. type: 'warning',
  1674. }).then(() => {
  1675. chengList({
  1676. transactionRecord: this.clinchdeal1,
  1677. id: this.clinchdeal.id,
  1678. commonId: this.clinchdeal.commonId,
  1679. compId: localStorage.getItem('ws-pf_compId'),
  1680. // basis:'-'+Math.abs(this.clinchdeal1.basis)
  1681. basis:this.clinchdeal1.basis
  1682. })
  1683. .toPromise()
  1684. .then((response) => {
  1685. this.$message.success('成交成功')
  1686. this.dialogFormVisible1 = false
  1687. this.clinchdeal1 = {}
  1688. this.getList()
  1689. })
  1690. .catch(() => {
  1691. return false
  1692. })
  1693. })
  1694. },
  1695. selectpackingType(e) {
  1696. for (var i = 0; i < this.packingTypeList.length; i++) {
  1697. if (this.packingTypeList[i].constValue == e) {
  1698. this.aduitlist.packingTypeKey = this.packingTypeList[i].constKey
  1699. }
  1700. }
  1701. },
  1702. selectType(e) {
  1703. for (var i = 0; i < this.invoiceList.length; i++) {
  1704. if (this.invoiceList[i].constValue == e) {
  1705. this.aduitlist.typeKey = this.invoiceList[i].constKey
  1706. }
  1707. }
  1708. },
  1709. getList() {
  1710. detailsList({
  1711. compId: localStorage.getItem('ws-pf_compId'),
  1712. currentPage: this.currentPage,
  1713. pageSize: this.pageSize,
  1714. pcFlag: this.pcFlag,
  1715. searchType: this.searchType,
  1716. searchKeyWord: this.searchKeyWord,
  1717. })
  1718. .toPromise()
  1719. .then((response) => {
  1720. for (var i = 0; i < response.records.length; i++) {
  1721. response.records[i].basischange = false
  1722. response.records[i].identification = 'false'
  1723. response.records[i].openPosition =
  1724. response.records[i].cumulativeTurnover -
  1725. response.records[i].closedPosition -
  1726. response.records[i].stockInQuantity
  1727. response.records[i].shouldFreeze =
  1728. response.records[i].depositRatio * response.records[i].transactionsNumber
  1729. }
  1730. this.warehouseList = response
  1731. this.deptCircularPage.currentPage = response.current
  1732. this.deptCircularPage.pageSize = response.size
  1733. this.deptBudgetTotal = response.total
  1734. })
  1735. //包装方式
  1736. packList({ constId: 'PRO2' })
  1737. .toPromise()
  1738. .then((response) => {
  1739. this.packingTypeList = response
  1740. })
  1741. // 发票
  1742. packList({ constId: 'PRO5' })
  1743. .toPromise()
  1744. .then((response) => {
  1745. this.invoiceList = response
  1746. })
  1747. // 合同编号
  1748. aduitcontractno({
  1749. compId: localStorage.getItem('ws-pf_compId'),
  1750. flag: 3,
  1751. })
  1752. .toPromise()
  1753. .then((response) => {
  1754. this.contractNoList = response
  1755. this.options=response
  1756. })
  1757. },
  1758. handleRemove(file) {
  1759. console.log(file)
  1760. },
  1761. handlePictureCardPreview(file) {
  1762. this.dialogImageUrl = file.url
  1763. this.dialogVisible = true
  1764. },
  1765. handleDownload(file) {
  1766. console.log(file)
  1767. },
  1768. getSpanArr(data) {
  1769. let that = this
  1770. //页面展示的数据,不一定是全部的数据,所以每次都清空之前存储的 保证遍历的数据是最新的数据。以免造成数据渲染混乱
  1771. that.spanArr = []
  1772. that.pos = 0
  1773. // //遍历数据
  1774. data.forEach((item, index) => {
  1775. //判断是否是第一项
  1776. if (index === 0) {
  1777. this.spanArr.push(1)
  1778. this.pos = 0
  1779. } else {
  1780. //不是第一项时,就根据标识去存储
  1781. if (data[index].warehouseNumViewList.length > 1) {
  1782. 查找到符合条件的数据时每次要把之前存储的数据 + 1
  1783. this.spanArr[this.pos] = data[index].warehouseNumViewList.length
  1784. this.spanArr.push(0)
  1785. } else {
  1786. // 没有符合的数据时,要记住当前的index
  1787. this.spanArr.push(1)
  1788. this.pos = index
  1789. }
  1790. }
  1791. })
  1792. },
  1793. //查看计划
  1794. lookPlan(row) {
  1795. this.$router.push({
  1796. path: 'procurementPlanLook',
  1797. query: {
  1798. id: row.planId,
  1799. },
  1800. })
  1801. },
  1802. //查看合同
  1803. lookContract(row) {
  1804. if(row.goodsType==1){
  1805. this.$router.push({
  1806. name: 'purchaseContractExamine',
  1807. query: {
  1808. id: row.contractId,
  1809. },
  1810. })
  1811. }
  1812. else{
  1813. this.$router.push({
  1814. name: 'futuresPurchaseContractExamine',
  1815. query: {
  1816. id: row.contractId,
  1817. },
  1818. })
  1819. }
  1820. },
  1821. //返回
  1822. revert() {
  1823. this.$router.push({ path: 'warehouseManagementList' })
  1824. },
  1825. dateFormat(fmt, date) {
  1826. let ret
  1827. const opt = {
  1828. 'Y+': date.getFullYear().toString(), // 年
  1829. 'm+': (date.getMonth() + 1).toString(), // 月
  1830. 'd+': date.getDate().toString(), // 日
  1831. 'H+': date.getHours().toString(), // 时
  1832. // "M+": date.getMinutes().toString(), // 分
  1833. // "S+": date.getSeconds().toString() // 秒
  1834. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  1835. }
  1836. for (let k in opt) {
  1837. ret = new RegExp('(' + k + ')').exec(fmt)
  1838. if (ret) {
  1839. fmt = fmt.replace(
  1840. ret[1],
  1841. ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, '0')
  1842. )
  1843. }
  1844. }
  1845. return fmt
  1846. },
  1847. handleClose() {
  1848. this.accessoryTFs = false
  1849. },
  1850. handleSizeChange(val) {
  1851. console.log(`每页 ${val} 条`)
  1852. this.pageSize = val
  1853. this.getList()
  1854. },
  1855. handleCurrentChange(val) {
  1856. this.currentPage = val
  1857. console.log(`当前页: ${val}`)
  1858. this.getList()
  1859. },
  1860. selecttaskType(e) {
  1861. for (var i = 0; i < this.taskTypeList.length; i++) {
  1862. if (this.taskTypeList[i].value == e) {
  1863. this.searchType = this.taskTypeList[i].type
  1864. }
  1865. }
  1866. },
  1867. handleExamine(row) {
  1868. this.$router.push({
  1869. name: 'salesContractExamine',
  1870. query: { id: row.id },
  1871. })
  1872. },
  1873. // 关闭 dialog时 处理文件url 初始化upload组件
  1874. handleCloe() {
  1875. this.dialogViewSpareMoney = false
  1876. },
  1877. //查找
  1878. find() {
  1879. this.currentPage = 1
  1880. this.getList()
  1881. },
  1882. async exportlist() {
  1883. const { data } = await export1(
  1884. {
  1885. compId: localStorage.getItem('ws-pf_compId'),
  1886. contractType: this.contractType,
  1887. currentPage: this.currentPage,
  1888. pageSize: this.pageSize,
  1889. searchType: this.searchType,
  1890. searchKeyWord: this.searchKeyWord,
  1891. startDate: this.startDate,
  1892. endDate: this.endDate,
  1893. },
  1894. {},
  1895. { responseType: 'blob' }
  1896. ).toPromise()
  1897. downloadFile({
  1898. res: data,
  1899. fileName: `${
  1900. this.date.year + (this.date.month ? `-${this.date.month}` : '')
  1901. }_采购合同`,
  1902. type: 'xls',
  1903. })
  1904. },
  1905. total() {},
  1906. },
  1907. }
  1908. </script>
  1909. <style lang="scss" scoped>
  1910. .connert {
  1911. width: 90%;
  1912. margin: 0 auto;
  1913. }
  1914. .vertical-text-left {
  1915. width: 62px;
  1916. text-align: right;
  1917. }
  1918. //分页
  1919. .el-pagination {
  1920. padding: 10px 15px;
  1921. margin-bottom: 0;
  1922. text-align: center;
  1923. }
  1924. /deep/.el-pager li.active {
  1925. color: #5878e8;
  1926. cursor: default;
  1927. }
  1928. /deep/.el-pager li:hover {
  1929. color: #5878e8;
  1930. cursor: default;
  1931. }
  1932. .el-button--primary {
  1933. background-color: #5878e8;
  1934. border-color: #5878e8;
  1935. }
  1936. .el-button--default {
  1937. color: #8890b1;
  1938. border-color: #e8eaf1;
  1939. }
  1940. /deep/.base_header_layout .findinput input {
  1941. border-top-right-radius: 0px;
  1942. border-bottom-right-radius: 0px;
  1943. }
  1944. /deep/.base_header_layout .grid-content.right .find.el-button--primary {
  1945. width: 30px;
  1946. margin: 0;
  1947. border-top-left-radius: 0px;
  1948. border-bottom-left-radius: 0px;
  1949. }
  1950. /deep/.findValue .el-input__inner {
  1951. border-top-right-radius: 0px;
  1952. border-bottom-right-radius: 0px;
  1953. width: 385px;
  1954. margin-left: 53.5%;
  1955. }
  1956. .completed.el-button--default {
  1957. border-color: #5878e8;
  1958. background-color: #f6f7fc;
  1959. color: #5878e8;
  1960. }
  1961. .putstorage.el-button--default,
  1962. .deliverystorage.el-button--default {
  1963. border-color: #8890b1;
  1964. background-color: #fff;
  1965. color: #8890b1;
  1966. }
  1967. /deep/.el-table td,
  1968. /deep/.el-table th.is-leaf {
  1969. border-right: 1px solid #e9ecf7;
  1970. text-align: center;
  1971. }
  1972. /deep/.el-table tr td:first-child,
  1973. /deep/.el-table tr th.is-leaf:first-child {
  1974. border-left: 1px solid #e9ecf7;
  1975. }
  1976. .record,
  1977. .adjustment {
  1978. display: inline-block;
  1979. color: #5878e8;
  1980. padding: 0 4px !important;
  1981. position: relative;
  1982. font-size: 14px;
  1983. }
  1984. .record:after {
  1985. position: absolute;
  1986. content: '';
  1987. display: block;
  1988. top: 5px;
  1989. right: -2px;
  1990. width: 1px;
  1991. height: 12px;
  1992. // background: #e9ecf7;
  1993. }
  1994. .base_header_layout{
  1995. padding:10px;
  1996. }
  1997. .base_header_layout .grid-content {
  1998. margin-top: 80px;
  1999. }
  2000. .el-input--small .el-input__inner {
  2001. margin-left: 20px;
  2002. }
  2003. .el-range-editor--small.el-input__inner {
  2004. height: 32px;
  2005. margin-left: -20%;
  2006. }
  2007. //执行样式
  2008. .executory,
  2009. .inExecution,
  2010. .done {
  2011. width: 6px;
  2012. height: 6px;
  2013. display: inline-block;
  2014. border-radius: 50%;
  2015. position: relative;
  2016. top: -1px;
  2017. font-size: 14px;
  2018. }
  2019. .executory {
  2020. background: #ff9f24;
  2021. }
  2022. .inExecution {
  2023. background: #5878e8;
  2024. }
  2025. .done {
  2026. background: #50cad4;
  2027. }
  2028. .container {
  2029. overflow: scroll;
  2030. height: 93vh;
  2031. }
  2032. .button-container {
  2033. display: flex;
  2034. flex-wrap: nowrap;
  2035. justify-content: space-between;
  2036. align-items: center;
  2037. background-color: #fff;
  2038. width: 100%;
  2039. height: 50px;
  2040. padding: 0 10px;
  2041. & > div {
  2042. margin-left: 10px;
  2043. display: flex;
  2044. flex-wrap: nowrap;
  2045. flex-direction: row;
  2046. & > span {
  2047. line-height: 50px;
  2048. }
  2049. }
  2050. /deep/.auditFlow-box {
  2051. position: unset;
  2052. margin-left: 10px;
  2053. &/deep/.auditFlow-icon {
  2054. width: auto;
  2055. padding-right: 30px;
  2056. }
  2057. &/deep/.auditFlow-main {
  2058. position: absolute;
  2059. }
  2060. }
  2061. }
  2062. .bg-left {
  2063. padding-left: 30px;
  2064. }
  2065. .title {
  2066. position: relative;
  2067. }
  2068. .title::before {
  2069. content: '';
  2070. display: inline-block;
  2071. width: 5px;
  2072. height: 30px;
  2073. background: #5473e8;
  2074. position: absolute;
  2075. left: 0;
  2076. }
  2077. .el-button--primary {
  2078. background-color: #5878e8;
  2079. border-color: #5878e8;
  2080. // margin-left: 85%;
  2081. margin-top: 20px;
  2082. }
  2083. //导航条样式
  2084. .el-col-12 {
  2085. width: 50%;
  2086. height: 60px;
  2087. background: #f6f7fc;
  2088. border-radius: 4px 4px 1px 1px;
  2089. }
  2090. .el-input--small .el-input__inner {
  2091. height: 32px;
  2092. line-height: 32px;
  2093. width: 385px;
  2094. margin-top: 10px;
  2095. }
  2096. .bg-bottom {
  2097. margin-left: 85%;
  2098. }
  2099. .but {
  2100. margin-left: 30%;
  2101. overflow: auto;
  2102. margin-left: -10px;
  2103. }
  2104. /deep/.el-table .el-table__header .cell,
  2105. .el-table .el-table__body .cell {
  2106. text-align: center;
  2107. }
  2108. .el-scrollbar__wrap {
  2109. overflow-y: hidden;
  2110. }
  2111. .deal {
  2112. width: 66%;
  2113. }
  2114. .photo {
  2115. padding: 0% 34%;
  2116. }
  2117. .pingcangriqi {
  2118. width: 66% !important;
  2119. }
  2120. .chengjiaoriqi {
  2121. width: 117% !important;
  2122. }
  2123. .photo1 {
  2124. padding: 0 10%;
  2125. }
  2126. .photo2 {
  2127. padding: 0 55%;
  2128. }
  2129. /deep/.el-form-item--small .el-form-item__label,
  2130. .el-form-item--small .el-form-item__content {
  2131. text-align: center;
  2132. }
  2133. hr {
  2134. width: 91%;
  2135. }
  2136. /deep/.deaal {
  2137. width: 66%;
  2138. margin-left: 9%;
  2139. }
  2140. /deep/.closeposition .el-form-item__label {
  2141. width: 160px;
  2142. }
  2143. .customer .el-form-item {
  2144. border-bottom: 1px solid #ccc;
  2145. }
  2146. /deep/.base_header_layout .grid-content {
  2147. border-radius: 4px;
  2148. height: 36px;
  2149. line-height: 30px;
  2150. display: -webkit-box;
  2151. display: -ms-flexbox;
  2152. display: flex;
  2153. -webkit-box-align: center;
  2154. -ms-flex-align: center;
  2155. align-items: center;
  2156. text-align: justify;
  2157. margin: 0 auto;
  2158. }
  2159. /deep/.typeselect{
  2160. margin-right:10px;
  2161. }
  2162. /deep/.typeselect .el-input__inner {
  2163. color: #8890b1;
  2164. }
  2165. .inputChenge {
  2166. width: 40%;
  2167. display: inline-flex;
  2168. }
  2169. .price {
  2170. margin-left: 97px;
  2171. margin-top: -19px;
  2172. }
  2173. .chenglu {
  2174. font-size: 14px;
  2175. font-family: PingFangSC-Medium, PingFang SC;
  2176. font-weight: 500;
  2177. color: #8890b1;
  2178. line-height: 20px;
  2179. }
  2180. </style>