purchaseReceiptStatisticsList.vue 47 KB

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