purchaseReceiptStatisticsList.vue 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447
  1. //采购入库报表
  2. <template>
  3. <div class="container">
  4. <el-scrollbar style="height: 100%">
  5. <el-row>
  6. <el-col style="padding-left: 15px" :span="16">
  7. <ws-button :type="searchType == 1 ? 'primary' : ''" @click="handlestatus(1)">待审核</ws-button>
  8. <ws-button :type="searchType == 2 ? 'primary' : ''" @click="handlestatus(2)">待结算</ws-button>
  9. <ws-button :type="searchType == 3 ? 'primary' : ''" @click="handlestatus(3)">已结算</ws-button>
  10. <ws-button :type="searchType == '' ? 'primary' : ''" @click="handlestatus('')">全部</ws-button>
  11. <ws-button type="primary" v-hasPermission="`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 type='number' 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 type='number' 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. this.$confirm(`是否确定驳回?`, {
  671. cancelButtonText: '取消',
  672. confirmButtonText: '确定',
  673. type: 'warning',
  674. }).then(() => {
  675. that.audit(this.modification[0], 0, false, true, '已驳回')
  676. })
  677. }
  678. },
  679. dataFilter(val) {
  680. // console.log(val,"名")
  681. this.contractNo = val
  682. if (val) {
  683. //val存在
  684. this.options = this.contractNoList.filter(item => {
  685. if (
  686. !!~item.contractNo.indexOf(val) ||
  687. !!~item.contractNo.toUpperCase().indexOf(val.toUpperCase())
  688. ) {
  689. return true
  690. }
  691. })
  692. } else {
  693. //val为空时,还原数组
  694. this.options = this.contractNoList
  695. }
  696. },
  697. handlepass() {
  698. var that = this
  699. if (this.modification.length == 0) {
  700. this.$message.warning('请选择要通过的条目')
  701. } else {
  702. this.$confirm(`是否确定通过?`, {
  703. cancelButtonText: '取消',
  704. confirmButtonText: '确定',
  705. type: 'warning',
  706. }).then(() => {
  707. that.audit(this.modification[0], 0, true, 2)
  708. })
  709. }
  710. },
  711. carryoverconfirm() {
  712. var data = {}
  713. if (!this.carryoverlist.carryOverWeight) {
  714. this.$message.warning('结转重量不能为空')
  715. return
  716. }
  717. if (this.carryoverlist.carryOverWeight > this.modification[0].netWeight) {
  718. this.$message.warning('结转重量不能超过净重')
  719. return
  720. }
  721. if (this.currect == true) {
  722. data = {
  723. customerConfirmationStatusFlag: this.modification[0].customerConfirmationStatusFlag,
  724. id: this.modification[0].id,
  725. contractNo: this.modification[0].contractNo,
  726. carryOverWeight: this.carryoverlist.carryOverWeight,
  727. purchaseReceiptReport: {
  728. id: this.carryoverlist.id,
  729. contractNo: this.carryoverlist.contractNo,
  730. carryOverWeight: this.carryoverlist.carryOverWeight,
  731. },
  732. amountNotPayable: this.modification[0].amountNotPayable,
  733. }
  734. } else {
  735. data = {
  736. customerConfirmationStatusFlag: this.modification[0].customerConfirmationStatusFlag,
  737. id: this.modification[0].id,
  738. contractNo: this.carryoverlist.contractNo,
  739. carryOverWeight: this.carryoverlist.carryOverWeight,
  740. purchaseReceiptReport: {
  741. id: this.carryoverlist.id,
  742. contractNo: this.carryoverlist.contractNo,
  743. carryOverWeight: this.carryoverlist.carryOverWeight,
  744. },
  745. amountNotPayable: this.modification[0].amountNotPayable,
  746. }
  747. }
  748. postreplanishent(data)
  749. .toPromise()
  750. .then((response) => {
  751. this.dialogFormVisible11 = false
  752. this.$message.success('结转成功')
  753. this.getList()
  754. })
  755. },
  756. amendconfirm() {
  757. this.amendlist.id = this.modification[0].id
  758. this.amendlist.statusFlag = this.modification[0].statusFlag
  759. postamend(this.amendlist)
  760. .toPromise()
  761. .then((response) => {
  762. this.$message.success('修改成功')
  763. this.dialogFormVisible5 = false
  764. this.getList()
  765. })
  766. },
  767. amend() {
  768. if (this.modification.length > 1) {
  769. this.$message.warning('一次仅可修改一条数据')
  770. } else if (this.modification.length == 0) {
  771. this.$message.warning('请选择一条要修改的条目')
  772. } else {
  773. this.dialogFormVisible5 = true
  774. }
  775. },
  776. carryover() {
  777. if (this.modification.length > 1) {
  778. this.$message.warning('一次仅可结转一条数据')
  779. } else if (this.modification.length == 0) {
  780. this.$message.warning('请选择一条要结转的条目')
  781. } else {
  782. this.dialogFormVisible11 = true
  783. }
  784. },
  785. handleSelectionChange(val) {
  786. this.modification = val
  787. },
  788. handlestatus(status) {
  789. this.searchType = status
  790. this.getList()
  791. },
  792. contractchange(e) {
  793. this.contractNo = e
  794. getorder({
  795. contractNo: this.contractNo,
  796. })
  797. .toPromise()
  798. .then((response) => {
  799. if (response != null) {
  800. this.orderList = response
  801. }
  802. })
  803. this.getList()
  804. },
  805. carryovercontractchange(e) {
  806. for (let i = 0; i < this.carryovercontractnolist.length; i++) {
  807. if (this.carryovercontractnolist[i].contractNo == e) {
  808. this.carryoverlist.netWeight =
  809. this.carryovercontractnolist[i].netWeight,
  810. this.carryoverlist.id =
  811. this.carryovercontractnolist[i].id
  812. }
  813. }
  814. },
  815. updated() {
  816. this.$nextTick(() => {
  817. this.$refs.warehouseList.doLayout()
  818. })
  819. },
  820. //合计
  821. getSummaries(param) {
  822. const {
  823. columns,
  824. data
  825. } = param
  826. const sums = []
  827. columns.forEach((column, index) => {
  828. if (index === 0) {
  829. sums[index] = '合计'
  830. } else if (
  831. index === 15 ||
  832. index === 16 ||
  833. index === 17 ||
  834. index === 18 ||
  835. index === 25
  836. ) {
  837. const values = data.map((item) => Number(item[column.property]))
  838. if (!values.every((value) => isNaN(value))) {
  839. sums[index] = values.reduce((prev, curr) => {
  840. const value = Number(curr)
  841. if (!isNaN(value)) {
  842. return prev + curr
  843. } else {
  844. return prev
  845. }
  846. }, 0)
  847. } else {
  848. sums[index] = '--'
  849. }
  850. } else {
  851. sums[index] = '--'
  852. }
  853. })
  854. console.log(sums)
  855. if(typeof sums[sums.length - 2] =='number'){
  856. sums[sums.length - 2] = sums[sums.length - 2].toFixed(2)
  857. }
  858. if(typeof sums[sums.length - 9] =='number'){
  859. sums[sums.length - 9] = sums[sums.length - 9].toFixed(2)
  860. }
  861. if(typeof sums[sums.length - 10] =='number'){
  862. sums[sums.length - 10] = sums[sums.length - 10].toFixed(2)
  863. }
  864. if(typeof sums[sums.length - 11] =='number'){
  865. sums[sums.length - 11] = sums[sums.length - 11].toFixed(2)
  866. }
  867. if(typeof sums[sums.length - 2] =='number'){
  868. sums[sums.length - 12] = sums[sums.length - 12].toFixed(2)
  869. }
  870. return sums
  871. },
  872. //成交
  873. submit() {
  874. if (!this.warehouseList.transactionPrice) {
  875. this.$message({
  876. message: '成交价不能为空',
  877. type: 'warning',
  878. })
  879. return
  880. }
  881. this.$confirm(`确定提交成交信息`, {
  882. cancelButtonText: '取消',
  883. confirmButtonText: '确定',
  884. type: 'warning',
  885. }).then(() => {
  886. console.log(23456678790)
  887. // chengList({
  888. // id: this.id,
  889. // compId: localStorage.getItem('ws-pf_compId'),
  890. // transactionPrice: this.transactionPrice,
  891. // transactionsNumber: this.transactionsNumber,
  892. // basis: this.basis,
  893. // })
  894. chengList(this.warehouseList)
  895. .toPromise()
  896. .then((response) => {
  897. this.$message.success('添加成功')
  898. this.getList()
  899. })
  900. .catch(() => {
  901. return false
  902. })
  903. })
  904. },
  905. getList() {
  906. // if(this.roleId=='4c2d50d8ff2943c1b7a1e947feefe048'){
  907. // this.roleFlag=1
  908. // }else if(this.roleId=='cca3cf0ca2814d1e918f5b0a4380fe69'){
  909. // this.roleFlag=2
  910. // }else if(this.roleId=='9ad8abb997714ef29068f23c2ad3b125'){
  911. // this.roleFlag=3
  912. // }else if(this.roleId=='3d7b9179552b4c3e9c2d7af43962e2e4'){
  913. // this.roleFlag=4
  914. // }else if(this.roleId=="4ef070439cd64784bce8844fd3f0f8e1"){
  915. // this.roleFlag=''
  916. // }
  917. getpurchreceipt({
  918. compId: localStorage.getItem('ws-pf_compId'),
  919. currentPage: this.currentPage,
  920. pageSize: this.pageSize,
  921. searchType: this.searchType,
  922. contractNo: this.contractNo,
  923. // roleFlag: this.roleFlag,
  924. })
  925. .toPromise()
  926. .then((response) => {
  927. for (var i = 0; i < response.records.length; i++) {
  928. response.records[i].identification = 'false'
  929. response.records[i].settlementPrice =
  930. // response.records[i].unitPrice -
  931. // Math.abs(response.records[i].basisPrice) -
  932. // Math.abs(response.records[i].unloadingCharge) -
  933. // Math.abs(response.records[i].invoiceFee) -
  934. // Math.abs(response.records[i].deductionAmount)
  935. response.records[i].unitPrice +
  936. response.records[i].basisPrice +
  937. response.records[i].unloadingCharge +
  938. response.records[i].invoiceFee +
  939. response.records[i].deductionAmount
  940. }
  941. this.deptBudgetTotal = response.total
  942. this.warehouseList = response
  943. })
  944. getpurchaseincontractno({
  945. compId: localStorage.getItem('ws-pf_compId'),
  946. currentPage: this.currentPage,
  947. pageSize: this.pageSize,
  948. roleFlag: this.roleFlag,
  949. })
  950. .toPromise()
  951. .then((response) => {
  952. this.contractNoList = response
  953. this.contractNoList.unshift({
  954. contractNo: '全部合同'
  955. })
  956. this.options = this.contractNoList
  957. })
  958. },
  959. handleRemove(file) {
  960. console.log(file)
  961. },
  962. handlePictureCardPreview(file) {
  963. this.paymentScreenshot = file.url
  964. this.dialogVisible = true
  965. },
  966. handleDownload(file) {
  967. console.log(file)
  968. },
  969. getSpanArr(data) {
  970. let that = this
  971. //页面展示的数据,不一定是全部的数据,所以每次都清空之前存储的 保证遍历的数据是最新的数据。以免造成数据渲染混乱
  972. that.spanArr = []
  973. that.pos = 0
  974. // //遍历数据
  975. data.forEach((item, index) => {
  976. //判断是否是第一项
  977. if (index === 0) {
  978. this.spanArr.push(1)
  979. this.pos = 0
  980. } else {
  981. //不是第一项时,就根据标识去存储
  982. if (data[index].warehouseNumViewList.length > 1) {
  983. 查找到符合条件的数据时每次要把之前存储的数据 + 1
  984. this.spanArr[this.pos] = data[index].warehouseNumViewList.length
  985. this.spanArr.push(0)
  986. } else {
  987. // 没有符合的数据时,要记住当前的index
  988. this.spanArr.push(1)
  989. this.pos = index
  990. }
  991. }
  992. })
  993. },
  994. //查看
  995. handleLook(row) {
  996. this.$router.push({
  997. path: 'warehouseManagementPutOutLook',
  998. query: {
  999. relevanceId: row.relevanceId,
  1000. },
  1001. })
  1002. },
  1003. //返回
  1004. revert() {
  1005. this.$router.push({
  1006. path: 'warehouseManagementList'
  1007. })
  1008. },
  1009. dateFormat(fmt, date) {
  1010. let ret
  1011. const opt = {
  1012. 'Y+': date.getFullYear().toString(), // 年
  1013. 'm+': (date.getMonth() + 1).toString(), // 月
  1014. 'd+': date.getDate().toString(), // 日
  1015. 'H+': date.getHours().toString(), // 时
  1016. // "M+": date.getMinutes().toString(), // 分
  1017. // "S+": date.getSeconds().toString() // 秒
  1018. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  1019. }
  1020. for (let k in opt) {
  1021. ret = new RegExp('(' + k + ')').exec(fmt)
  1022. if (ret) {
  1023. fmt = fmt.replace(
  1024. ret[1],
  1025. ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, '0')
  1026. )
  1027. }
  1028. }
  1029. return fmt
  1030. },
  1031. handleClose() {
  1032. this.accessoryTFs = false
  1033. },
  1034. handleSizeChange(val) {
  1035. console.log(`每页 ${val} 条`)
  1036. this.pageSize = val
  1037. this.getList()
  1038. },
  1039. handleCurrentChange(val) {
  1040. this.currentPage = val
  1041. console.log(`当前页: ${val}`)
  1042. this.getList()
  1043. },
  1044. editClick(row) {
  1045. var status = ''
  1046. if (row.status == '待审核' || row.status == '已完成') {
  1047. status = '执行中'
  1048. } else if (row.status == '执行中') {
  1049. status = '已完成'
  1050. }
  1051. //cancelButtonClass: "btn-custom-cancel"
  1052. this.$confirm(`是否将状态改为${status}`, {
  1053. confirmButtonText: '确定',
  1054. cancelButtonText: '取消',
  1055. type: 'warning',
  1056. })
  1057. .then(() => {
  1058. alsostate({
  1059. id: row.id
  1060. })
  1061. .toPromise()
  1062. .then((response) => {
  1063. this.$notify.success({
  1064. title: '成功',
  1065. message: '状态修改成功',
  1066. })
  1067. this.getList()
  1068. })
  1069. .catch((response) => {
  1070. // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1071. })
  1072. })
  1073. .catch(() => {
  1074. return false
  1075. })
  1076. },
  1077. selecttaskType(e) {
  1078. for (var i = 0; i < this.taskTypeList.length; i++) {
  1079. if (this.taskTypeList[i].value == e) {
  1080. this.searchType = this.taskTypeList[i].type
  1081. }
  1082. }
  1083. },
  1084. handleExamine(row) {
  1085. this.$router.push({
  1086. name: 'salesContractExamine',
  1087. query: {
  1088. id: row.id
  1089. },
  1090. })
  1091. },
  1092. // 关闭 dialog时 处理文件url 初始化upload组件
  1093. handleCloe() {
  1094. this.dialogViewSpareMoney = false
  1095. },
  1096. history(row) {
  1097. billoperatehis({
  1098. id: row.id
  1099. })
  1100. .toPromise()
  1101. .then((response) => {
  1102. this.historyList = response
  1103. })
  1104. },
  1105. //查找
  1106. find() {
  1107. this.currentPage = 1
  1108. this.getList()
  1109. },
  1110. async exportlist() {
  1111. const {
  1112. data
  1113. } = await export1({
  1114. compId: localStorage.getItem('ws-pf_compId'),
  1115. contractType: this.contractType,
  1116. currentPage: this.currentPage,
  1117. pageSize: this.pageSize,
  1118. searchType: this.searchType,
  1119. searchKeyWord: this.searchKeyWord,
  1120. startDate: this.startDate,
  1121. endDate: this.endDate,
  1122. }, {}, {
  1123. responseType: 'blob'
  1124. }).toPromise()
  1125. downloadFile({
  1126. res: data,
  1127. fileName: `${
  1128. this.date.year + (this.date.month ? `-${this.date.month}` : '')
  1129. }_采购合同`,
  1130. type: 'xls',
  1131. })
  1132. },
  1133. total() {},
  1134. },
  1135. }
  1136. </script>
  1137. <style lang="scss" scoped>
  1138. .connert {
  1139. width: 90%;
  1140. margin: 0 auto;
  1141. }
  1142. .vertical-text-left {
  1143. width: 62px;
  1144. text-align: right;
  1145. }
  1146. //分页
  1147. .el-pagination {
  1148. padding: 10px 15px;
  1149. margin-bottom: 0;
  1150. text-align: center;
  1151. }
  1152. /deep/.el-pager li.active {
  1153. color: #5878e8;
  1154. cursor: default;
  1155. }
  1156. /deep/.el-pager li:hover {
  1157. color: #5878e8;
  1158. cursor: default;
  1159. }
  1160. .el-button--default {
  1161. color: #8890b1;
  1162. border-color: #e8eaf1;
  1163. }
  1164. /deep/.base_header_layout .grid-content.right .find.el-button--primary {
  1165. width: 30px;
  1166. margin-left: 0;
  1167. border-top-left-radius: 0px;
  1168. border-bottom-left-radius: 0px;
  1169. }
  1170. /deep/.findValue .el-input__inner {
  1171. border-top-right-radius: 0px;
  1172. border-bottom-right-radius: 0px;
  1173. width: 385px;
  1174. }
  1175. .completed.el-button--default {
  1176. border-color: #5878e8;
  1177. background-color: #f6f7fc;
  1178. color: #5878e8;
  1179. }
  1180. .putstorage.el-button--default,
  1181. .deliverystorage.el-button--default {
  1182. border-color: #8890b1;
  1183. background-color: #fff;
  1184. color: #8890b1;
  1185. }
  1186. /deep/.el-table td,
  1187. /deep/.el-table th.is-leaf {
  1188. border-right: 1px solid #e9ecf7;
  1189. text-align: center;
  1190. }
  1191. /deep/.el-table tr td:first-child,
  1192. /deep/.el-table tr th.is-leaf:first-child {
  1193. border-left: 1px solid #e9ecf7;
  1194. }
  1195. .record,
  1196. .adjustment {
  1197. display: inline-block;
  1198. color: #5878e8;
  1199. padding: 0 4px !important;
  1200. position: relative;
  1201. }
  1202. .record:after {
  1203. position: absolute;
  1204. content: '';
  1205. display: block;
  1206. top: 5px;
  1207. right: -2px;
  1208. width: 1px;
  1209. height: 12px;
  1210. background: #e9ecf7;
  1211. }
  1212. // .el-row{
  1213. // height: 150px;
  1214. // }
  1215. .base_header_layout .grid-content {
  1216. margin-top: 80px;
  1217. }
  1218. .el-input--small .el-input__inner {
  1219. margin-left: 20px;
  1220. }
  1221. .el-range-editor--small.el-input__inner {
  1222. height: 32px;
  1223. margin-left: -20%;
  1224. }
  1225. //执行样式
  1226. .executory,
  1227. .inExecution,
  1228. .done {
  1229. width: 6px;
  1230. height: 6px;
  1231. display: inline-block;
  1232. border-radius: 50%;
  1233. position: relative;
  1234. top: -1px;
  1235. font-size: 14px;
  1236. }
  1237. .executory {
  1238. background: #ff9f24;
  1239. }
  1240. .inExecution {
  1241. background: #5878e8;
  1242. }
  1243. .done {
  1244. background: #50cad4;
  1245. }
  1246. .record,
  1247. .adjustment {
  1248. display: inline-block;
  1249. color: #5878e8;
  1250. padding: 0 4px !important;
  1251. position: relative;
  1252. font-size: 14px;
  1253. }
  1254. .container {
  1255. overflow: scroll;
  1256. height: 93vh;
  1257. }
  1258. .button-container {
  1259. display: flex;
  1260. flex-wrap: nowrap;
  1261. justify-content: space-between;
  1262. align-items: center;
  1263. background-color: #fff;
  1264. width: 100%;
  1265. height: 50px;
  1266. padding: 0 10px;
  1267. &>div {
  1268. margin-left: 10px;
  1269. display: flex;
  1270. flex-wrap: nowrap;
  1271. flex-direction: row;
  1272. &>span {
  1273. line-height: 50px;
  1274. }
  1275. }
  1276. /deep/.auditFlow-box {
  1277. position: unset;
  1278. margin-left: 10px;
  1279. &/deep/.auditFlow-icon {
  1280. width: auto;
  1281. padding-right: 30px;
  1282. }
  1283. &/deep/.auditFlow-main {
  1284. position: absolute;
  1285. }
  1286. }
  1287. }
  1288. .bg-left {
  1289. padding-left: 30px;
  1290. }
  1291. .title {
  1292. position: relative;
  1293. }
  1294. .title::before {
  1295. content: '';
  1296. display: inline-block;
  1297. width: 5px;
  1298. height: 30px;
  1299. background: #5473e8;
  1300. position: absolute;
  1301. left: 0;
  1302. }
  1303. .el-button--primary {
  1304. background-color: #5878e8;
  1305. border-color: #5878e8;
  1306. // margin-left: 85%;
  1307. margin-top: 13px;
  1308. }
  1309. //导航条样式
  1310. .el-col-12 {
  1311. width: 50%;
  1312. height: 60px;
  1313. background: #f6f7fc;
  1314. border-radius: 4px 4px 1px 1px;
  1315. }
  1316. .el-input--small .el-input__inner {
  1317. height: 32px;
  1318. line-height: 32px;
  1319. width: 385px;
  1320. margin-top: 10px;
  1321. }
  1322. .bg-bottom {
  1323. margin-left: 85%;
  1324. }
  1325. .but {
  1326. margin-left: 30%;
  1327. /* margin-top: -32px; */
  1328. overflow: auto;
  1329. /* float: left; */
  1330. /* margin-left: 1px; */
  1331. margin-left: -10px;
  1332. }
  1333. .el-input--small {
  1334. font-size: 13px;
  1335. width: 390px;
  1336. margin-left: 74%;
  1337. }
  1338. /deep/.el-table .el-table__header .cell,
  1339. .el-table .el-table__body .cell {
  1340. text-align: center;
  1341. }
  1342. .el-scrollbar__wrap {
  1343. overflow-y: hidden;
  1344. }
  1345. /deep/.deal {
  1346. margin-left: 0%;
  1347. width: 64%;
  1348. }
  1349. .photo {
  1350. padding: 0% 34%;
  1351. }
  1352. .photo1 {
  1353. padding: 0 10%;
  1354. }
  1355. .photo2 {
  1356. padding: 0 12%;
  1357. }
  1358. /deep/.el-form-item--small .el-form-item__label,
  1359. .el-form-item--small .el-form-item__content {
  1360. text-align: center;
  1361. }
  1362. hr {
  1363. width: 91%;
  1364. }
  1365. /deep/.deaal {
  1366. width: 66%;
  1367. margin-left: 9%;
  1368. }
  1369. .el-date-editor.el-input,
  1370. .el-date-editor.el-input__inner,
  1371. .el-input-number--small {
  1372. width: 123% !important;
  1373. }
  1374. /deep/.el-table td,
  1375. .el-table th.is-leaf {
  1376. border-right: 1px solid #e9ecf7;
  1377. text-align: center;
  1378. height: 40px;
  1379. }
  1380. </style>