warehouseManagementRecord.vue 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000
  1. <template>
  2. <div class="container">
  3. <el-row>
  4. <el-col :span="18">
  5. <h2 class="bg-left title">流转记录</h2>
  6. </el-col>
  7. <el-col :span="6" class="bg-right">
  8. <el-button class="bg-bottom adjustment" type="primary" size="small" @click="iossrecord()"
  9. v-show="this.warehouseType != 2">盘损记录</el-button>
  10. <el-button class="bg-bottom" type="primary" size="small" @click="returnWarehouse()">返回</el-button>
  11. </el-col>
  12. </el-row>
  13. <div class="center">
  14. <h2 style="padding-left: 20px">
  15. <img style="position: relative; top: 2px" width="19" height="19" src="../../../public/img/cangku.png"
  16. alt="" />
  17. <span style="color: #323233">{{ deptBudgetList.warehouseName }}</span>
  18. <span class="ware" v-show="warehouseType==1">{{binNumber}}仓位(容量{{capacity}}吨)</span>
  19. <span v-show="warehouseType==2">(临)</span>
  20. </h2>
  21. <p style="
  22. margin-left: 42px;
  23. background: #f6f7fc;
  24. color: #afb5cb;
  25. width: 245px;
  26. ">
  27. 备注:{{remark }}
  28. </p>
  29. <ws-form ref="deptBudgetList" :model="deptBudgetList">
  30. <div class="record" :class="{ active: status == 1 }" @click="record('', 1)">
  31. <img v-if="status != 1" width="14" height="14" src="../../../public/img/radio.png" alt="" />
  32. <img v-if="status == 1" width="18" height="18" src="../../../public/img/radio-check.png"
  33. alt="" />全部记录
  34. </div>
  35. <div class="record" :class="{ active: status == 2 }" @click="record(2, 2)">
  36. <img v-if="status != 2" width="14" height="14" src="../../../public/img/radio.png" alt="" />
  37. <img v-if="status == 2" width="18" height="18" src="../../../public/img/radio-check.png"
  38. alt="" />出库记录
  39. </div>
  40. <div class="record" :class="{ active: status == 3 }" @click="record(3, 3)">
  41. <img v-if="status != 3" width="14" height="14" src="../../../public/img/radio.png" alt="" />
  42. <img v-if="status == 3" width="18" height="18" src="../../../public/img/radio-check.png"
  43. alt="" />入库记录
  44. </div>
  45. <el-table show-summary :summary-method="getSummaries" :data="warehouseList.records" height="560" v-show="this.warehouseType== '1'">
  46. <el-table-column type="expand">
  47. <template #default="props">
  48. <ws-form ref="deptBudgetList" :model="deptBudgetList">
  49. <ws-info-table>
  50. <ws-form-item label="水分(%)" span="1" prop="waterContent">
  51. {{ props.row.waterContent }}
  52. </ws-form-item>
  53. <ws-form-item label="容重(克/升)" span="1" prop="bulkDensity">
  54. {{ props.row.bulkDensity }}
  55. </ws-form-item>
  56. <ws-form-item label="热损伤(%)" span="1" prop="jiaorenli">
  57. {{ props.row.jiaorenli }}
  58. </ws-form-item>
  59. <ws-form-item label="杂质(%)" span="1" prop="impurity">
  60. {{ props.row.impurity }}
  61. </ws-form-item>
  62. <ws-form-item label="霉变粒(%)" span="1" prop="mildewGrain">
  63. {{ props.row.mildewGrain }}
  64. </ws-form-item>
  65. <ws-form-item label="不完善粒(%)" span="1" prop="imperfectGrain">
  66. {{ props.row.imperfectGrain }}
  67. </ws-form-item>
  68. <ws-form-item label="质检员" span="1" prop="qualityInspector">
  69. {{ props.row.qualityInspector }}
  70. </ws-form-item>
  71. <ws-form-item label="扣重比" span="1" prop="buckleWeightRatio">
  72. {{ props.row.buckleWeightRatio }}
  73. </ws-form-item>
  74. <ws-form-item label="干粮水分(%)" span="1" prop="solidGrainWater">
  75. {{ props.row.solidGrainWater }}
  76. </ws-form-item>
  77. </ws-info-table>
  78. </ws-form>
  79. </template>
  80. </el-table-column>
  81. <el-table-column type="index" label="序号">
  82. <template scope="scope">
  83. <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
  84. <span v-else>{{ scope.$index + 1 }}</span>
  85. </template>
  86. </el-table-column>
  87. <el-table-column prop="goodsName" label="货名" width="60px"> </el-table-column>
  88. <el-table-column prop="type" label="类型" width="60px"> </el-table-column>
  89. <el-table-column prop="grossWeight" label="毛重(吨)" >
  90. </el-table-column>
  91. <el-table-column prop="tare" label="皮重(吨)"> </el-table-column>
  92. <el-table-column prop="deductionWeight" label="扣重(吨)"> </el-table-column>
  93. <el-table-column prop="netWeight" label="净重(吨)"></el-table-column>
  94. <el-table-column prop="pureWeight" label="纯重(吨)"> </el-table-column>
  95. <el-table-column prop="deductionAmount" label="扣款(元/吨)" width="150"> </el-table-column>
  96. <el-table-column prop="grade" label="品级" width="80px">
  97. <template slot-scope="scope">
  98. <span v-if="scope.row.grade == '一等品'" class="top-grade">{{
  99. scope.row.grade
  100. }}</span>
  101. <span v-if="scope.row.grade == '二等品'" class="second-class">{{
  102. scope.row.grade
  103. }}</span>
  104. <span v-if="scope.row.grade == '三等品'" class="third-class">{{
  105. scope.row.grade
  106. }}</span>
  107. <span v-if="scope.row.grade == '等外'" class="substandard">{{
  108. scope.row.grade
  109. }}</span>
  110. </template>
  111. </el-table-column>
  112. <el-table-column prop="inOutDate" label="出入库日期">
  113. <template slot-scope="scope">
  114. <span style="color: #8890b1">{{ scope.row.inOutDate }}</span>
  115. </template>
  116. </el-table-column>
  117. <el-table-column prop="inOutType" label="类型"> </el-table-column>
  118. <el-table-column prop="contractNo" label="合同编号">
  119. <template slot-scope="scope">
  120. <span style="color: #8890b1">{{ scope.row.contractNo }}</span>
  121. </template>
  122. </el-table-column>
  123. <el-table-column prop="carNo" label="车牌号">
  124. <template slot-scope="scope">
  125. <span style="color: #8890b1">{{ scope.row.carNo }}</span>
  126. </template>
  127. </el-table-column>
  128. <el-table-column prop="agent" label="经办人">
  129. </el-table-column>
  130. <el-table-column prop="backOffice" label="操作人" width="120px">
  131. </el-table-column>
  132. <el-table-column prop="addressUrl" label="操作" width="100px">
  133. <template slot-scope="scope">
  134. <!-- <img width="18" height="20" style="vertical-align: text-top; position: relative; top: -1px"
  135. src="../../../public/img/fujian.png" @click="fujian(scope.row)" alt="" /> -->
  136. <el-button @click="print(scope.row)" v-if="scope.row.inOutType != '收购入库'" v-hasPermission="`acquisitionManagement.acquisitionWeight.print`">打印</el-button >
  137. </template>
  138. </el-table-column>
  139. <el-table-column prop="createDate" label="录入时间">
  140. <template slot-scope="scope">
  141. <span style="color: #8890b1">{{ scope.row.createDate }}</span>
  142. </template>
  143. </el-table-column>
  144. </el-table>
  145. <el-table show-summary :summary-method="getSummaries" :data="warehouseList.records" height="560" v-show="this.warehouseType== '2'">
  146. <el-table-column type="expand">
  147. <template #default="props">
  148. <ws-form ref="deptBudgetList" :model="deptBudgetList">
  149. <ws-info-table>
  150. <ws-form-item label="水分(%)" span="1" prop="waterContent">
  151. {{ props.row.waterContent }}
  152. </ws-form-item>
  153. <ws-form-item label="容重(g/l)" span="1" prop="bulkDensity">
  154. {{ props.row.bulkDensity }}
  155. </ws-form-item>
  156. <ws-form-item label="热损伤(%)" span="1" prop="jiaorenli">
  157. {{ props.row.jiaorenli }}
  158. </ws-form-item>
  159. <ws-form-item label="杂质(%)" span="1" prop="impurity">
  160. {{ props.row.impurity }}
  161. </ws-form-item>
  162. <ws-form-item label="霉变粒(%)" span="1" prop="mildewGrain">
  163. {{ props.row.mildewGrain }}
  164. </ws-form-item>
  165. <ws-form-item label="不完善粒(%)" span="1" prop="imperfectGrain">
  166. {{ props.row.imperfectGrain }}
  167. </ws-form-item>
  168. <ws-form-item label="质检员" span="1" prop="qualityInspector">
  169. {{ props.row.qualityInspector }}
  170. </ws-form-item>
  171. </ws-info-table>
  172. </ws-form>
  173. </template>
  174. </el-table-column>
  175. <el-table-column type="index" label="序号">
  176. <template scope="scope">
  177. <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
  178. <span v-else>{{ scope.$index + 1 }}</span>
  179. </template>
  180. </el-table-column>
  181. <el-table-column prop="goodsName" label="货名"> </el-table-column>
  182. <el-table-column prop="grossWeight" label="毛重(吨)"></el-table-column>
  183. <el-table-column prop="tare" label="皮重(吨)"> </el-table-column>
  184. <el-table-column prop="netWeight" label="净重(吨)"></el-table-column>
  185. <el-table-column prop="grade" label="品级">
  186. <template slot-scope="scope">
  187. <span v-if="scope.row.grade == '一等品'" class="top-grade">{{
  188. scope.row.grade
  189. }}</span>
  190. <span v-if="scope.row.grade == '二等品'" class="second-class">{{
  191. scope.row.grade
  192. }}</span>
  193. <span v-if="scope.row.grade == '三等品'" class="third-class">{{
  194. scope.row.grade
  195. }}</span>
  196. <span v-if="scope.row.grade == '等外'" class="substandard">{{
  197. scope.row.grade
  198. }}</span>
  199. </template>
  200. </el-table-column>
  201. <el-table-column prop="inOutDate" label="出入库日期">
  202. <template slot-scope="scope">
  203. <span style="color: #8890b1">{{ scope.row.inOutDate }}</span>
  204. </template>
  205. </el-table-column>
  206. <el-table-column prop="inOutType" label="类型"> </el-table-column>
  207. <el-table-column prop="contractNo" label="合同编号">
  208. <template slot-scope="scope">
  209. <span style="color: #8890b1">{{ scope.row.contractNo }}</span>
  210. </template>
  211. </el-table-column>
  212. <el-table-column prop="carNo" label="车牌号">
  213. <template slot-scope="scope">
  214. <span style="color: #8890b1">{{ scope.row.carNo }}</span>
  215. </template>
  216. </el-table-column>
  217. <el-table-column prop="agent" label="经办人">
  218. </el-table-column>
  219. <el-table-column prop="backOffice" label="内勤"> </el-table-column>
  220. <el-table-column prop="addressUrl" label="附件">
  221. <template slot-scope="scope">
  222. <img width="18" height="20" style="vertical-align: text-top; position: relative; top: -1px"
  223. src="../../../public/img/fujian.png" @click="fujian(scope.row)" alt="" />
  224. <!-- <span v-if="scope.row.addressUrlArray.length > 0">{{
  225. scope.row.addressUrlArray.length
  226. }}</span> -->
  227. <!-- <i @click="fujian(scope.row)" class="el-icon-paperclip iconCss"></i> -->
  228. </template>
  229. </el-table-column>
  230. <el-table-column prop="createDate" label="录入时间">
  231. <template slot-scope="scope">
  232. <span style="color: #8890b1">{{ scope.row.createDate }}</span>
  233. </template>
  234. </el-table-column>
  235. </el-table>
  236. <div style="text-align: center; padding: 10px">
  237. <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
  238. :current-page="currentPage" :page-size="deptCircularPage.pageSize"
  239. layout="total, sizes, prev, pager, next, jumper" :total="deptBudgetTotal">
  240. </el-pagination>
  241. </div>
  242. </ws-form>
  243. </div>
  244. <WinseaContentModal v-model="accessoryTFs" :title="$t('system.noticeCircular.information')"
  245. @on-cancel="handleClose">
  246. <p>查看附件</p>
  247. <ws-upload ref="upload" table-name="maintain_work_order" oss-key="mainPlan" :comp-id="compId"
  248. :appendix-ids="appendixIdsAdd" :vesselId="deptBudgetList.addressUrl" :size-limit="size"
  249. @uploadSuccess="uploadSuccess" accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" />
  250. </WinseaContentModal>
  251. </div>
  252. </template>
  253. <script>
  254. import {
  255. addselectinfoList,
  256. recordss,
  257. getPrintInfo
  258. } from '@/model/warehouse/index'
  259. import {
  260. downloadFile
  261. } from '@/utils/batchDown'
  262. import Pagination from '@/components/Pagination'
  263. import WsUpload from '@/components/WsUpload'
  264. import {
  265. dayjs,
  266. fmoney,
  267. EventBus
  268. } from 'base-core-lib'
  269. export default {
  270. name: 'viewSpareMoney',
  271. components: {
  272. WsUpload,
  273. Pagination,
  274. },
  275. watch: {
  276. vesselId(val) {
  277. this.getList()
  278. },
  279. isShow(val) {
  280. this.showType = val
  281. },
  282. },
  283. data() {
  284. return {
  285. //弹出框
  286. dialogViewSpareMoney: false,
  287. dialogApproveFormVisible: false,
  288. // 船舶类型
  289. monetaryKey: null,
  290. // 表格显示数据
  291. tableDate: [],
  292. appendixIdsAdd: '',
  293. // 是否显示
  294. showType: true,
  295. // 年
  296. year: '',
  297. deptBudgetTotal: 0,
  298. currentPage: 1,
  299. pageSize: 10,
  300. radiostatus: 1,
  301. capacity: '',
  302. searchKeyWord: '',
  303. contractType: 2,
  304. startDate: null,
  305. endDate: null,
  306. remark: '',
  307. binNumber: '',
  308. status: 1,
  309. // 提交类型
  310. submitType: true,
  311. selectpackingMethod: {},
  312. size: 10,
  313. warehouseType: '1',
  314. deptBudgetList1: {},
  315. compId: localStorage.getItem('ws-pf_compId'),
  316. deptCircularPage: {},
  317. packtypeList: {},
  318. pcFlag: 1,
  319. date: {
  320. year: dayjs().format('YYYY'),
  321. month: dayjs().format('MM'),
  322. },
  323. warehouseList: [],
  324. deptBudgetList: {},
  325. historyList: [],
  326. searchType: '',
  327. allurl: '../../../public/img/radio.png',
  328. pickerBeginDateBefore: {
  329. disabledDate: (time) => {
  330. return time.getTime() > Date.now()
  331. },
  332. },
  333. accessoryTFs: false,
  334. }
  335. },
  336. activated() {
  337. this.deptBudgetList.baseId = this.$route.query.baseId
  338. this.deptBudgetList.positionId = this.$route.query.positionId
  339. this.deptBudgetList.warehouseName = this.$route.query.warehouseName
  340. this.remark = this.$route.query.remark
  341. this.binNumber = this.$route.query.binNumber
  342. this.capacity = this.$route.query.capacity
  343. this.warehouseType = this.$route.query.warehouseType
  344. this.getList()
  345. this.showType = this.isShow
  346. },
  347. methods: {
  348. //合计
  349. getSummaries(param) {
  350. const { columns, data } = param
  351. const sums = []
  352. columns.forEach((column, index) => {
  353. if (index === 0) {
  354. sums[index] = '合计'
  355. } else if (
  356. index === 7
  357. ) {
  358. const values = data.map((item) => Number(item[column.property]))
  359. if (!values.every((value) => isNaN(value))) {
  360. sums[index] = values.reduce((prev, curr) => {
  361. const value = Number(curr)
  362. if (!isNaN(value)) {
  363. return prev + curr
  364. } else {
  365. return prev
  366. }
  367. }, 0)
  368. sums[index] = sums[index].toFixed(3)
  369. }
  370. } else {
  371. sums[index] = '--'
  372. }
  373. })
  374. return sums
  375. },
  376. print(row){
  377. getPrintInfo({
  378. id: row.id
  379. })
  380. .toPromise()
  381. .then((response) => {
  382. window.open( '../../../../static/weightCheckInOut.html?type=2&tableData=' +JSON.stringify(response))
  383. })
  384. },
  385. //返回按钮
  386. returnWarehouse() {
  387. this.$router.push({
  388. path: 'warehouseManagementList'
  389. })
  390. },
  391. //
  392. iossrecord() {
  393. this.$router.push({
  394. path: 'warehouseManagementIossRecord',
  395. query: {
  396. baseId: this.deptBudgetList.baseId,
  397. positionId: this.deptBudgetList.positionId,
  398. warehouseName: this.deptBudgetList.warehouseName,
  399. binNumber: this.binNumber,
  400. },
  401. })
  402. },
  403. dateFormat(fmt, date) {
  404. let ret
  405. const opt = {
  406. 'Y+': date.getFullYear().toString(), // 年
  407. 'm+': (date.getMonth() + 1).toString(), // 月
  408. 'd+': date.getDate().toString(), // 日
  409. 'H+': date.getHours().toString(), // 时
  410. // "M+": date.getMinutes().toString(), // 分
  411. // "S+": date.getSeconds().toString() // 秒
  412. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  413. }
  414. for (let k in opt) {
  415. ret = new RegExp('(' + k + ')').exec(fmt)
  416. if (ret) {
  417. fmt = fmt.replace(
  418. ret[1],
  419. ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, '0')
  420. )
  421. }
  422. }
  423. return fmt
  424. },
  425. handleClose() {
  426. this.accessoryTFs = false
  427. },
  428. handleSizeChange(val) {
  429. console.log(`每页 ${val} 条`)
  430. this.pageSize = val
  431. this.getList()
  432. },
  433. handleCurrentChange(val) {
  434. this.currentPage = val
  435. console.log(`当前页: ${val}`)
  436. this.getList()
  437. },
  438. record(status, status1) {
  439. this.status = status1
  440. this.searchType = status
  441. this.currentPage = '1'
  442. this.getList()
  443. },
  444. // 上传附件
  445. uploadSuccess(data, files, url) {
  446. console.log(data, files, url)
  447. // this.deptBudgetList.
  448. // this.formData.append('files', files)
  449. // this.feedbackObj.uploadNameAttachment = data.appendixName
  450. // this.feedbackObj.pathUploadAttachment = data.appendixPath
  451. // // this.newAppendixs = files
  452. // this.onChangeFlag = true
  453. },
  454. getList() {
  455. if (this.warehouseType == 1) {
  456. addselectinfoList({
  457. compId: localStorage.getItem('ws-pf_compId'),
  458. baseId: this.deptBudgetList.baseId,
  459. positionId: this.deptBudgetList.positionId,
  460. warehouseName: this.deptBudgetList.warehouseName,
  461. searchType: this.searchType,
  462. currentPage: this.currentPage,
  463. pcFlag: this.pcFlag,
  464. pageSize: this.pageSize
  465. })
  466. .toPromise()
  467. .then((response) => {
  468. for (var i = 0; i < response.records.length; i++) {
  469. if (response.records[i].addressUrl != null) {
  470. response.records[i].addressUrlArray = response.records[
  471. i
  472. ].addressUrl.split(',')
  473. } else {
  474. response.records[i].addressUrlArray = []
  475. }
  476. }
  477. this.deptCircularPage.currentPage = response.current
  478. this.deptCircularPage.pageSize = response.size
  479. this.deptBudgetTotal = response.total
  480. this.warehouseList = response
  481. })
  482. } else if (this.warehouseType == 2) {
  483. recordss({
  484. compId: localStorage.getItem('ws-pf_compId'),
  485. baseId: this.deptBudgetList.baseId,
  486. positionId: this.deptBudgetList.positionId,
  487. warehouseName: this.deptBudgetList.warehouseName,
  488. searchType: this.searchType,
  489. currentPage: this.currentPage,
  490. pageSize: this.pageSize,
  491. })
  492. .toPromise()
  493. .then((response) => {
  494. for (var i = 0; i < response.records.length; i++) {
  495. if (response.records[i].addressUrl != null) {
  496. response.records[i].addressUrlArray = response.records[
  497. i
  498. ].addressUrl.split(',')
  499. } else {
  500. response.records[i].addressUrlArray = []
  501. }
  502. }
  503. this.deptCircularPage.currentPage = response.current
  504. this.deptCircularPage.pageSize = response.size
  505. this.deptBudgetTotal = response.total
  506. this.warehouseList = response
  507. })
  508. }
  509. },
  510. selecttaskType(e) {
  511. for (var i = 0; i < this.taskTypeList.length; i++) {
  512. if (this.taskTypeList[i].value == e) {
  513. this.searchType = this.taskTypeList[i].type
  514. }
  515. }
  516. },
  517. fujian(row) {
  518. if (
  519. row.receiveAttachmentPath === null ||
  520. row.receiveAttachmentPath === ''
  521. ) {
  522. EventBus.$emit(
  523. 'warning',
  524. this.$t('system.noticeCircular.NoInformation')
  525. )
  526. } else {
  527. this.accessoryTFs = true
  528. }
  529. this.appendixIdss = row.receiveAttachmentPath
  530. },
  531. handleExamine(row) {
  532. this.$router.push({
  533. name: 'salesContractExamine',
  534. query: {
  535. id: row.id
  536. },
  537. })
  538. },
  539. // 关闭 dialog时 处理文件url 初始化upload组件
  540. handleCloe() {
  541. this.dialogViewSpareMoney = false
  542. },
  543. history(row) {
  544. console.log(row)
  545. billoperatehis({
  546. id: row.id
  547. })
  548. .toPromise()
  549. .then((response) => {
  550. this.historyList = response
  551. })
  552. },
  553. find() {
  554. this.startDate = this.dateFormat('YYYY-mm-dd', this.value2[0])
  555. this.endDate = this.dateFormat('YYYY-mm-dd', this.value2[1])
  556. this.currentPage = 1
  557. this.getList()
  558. },
  559. // async exportlist() {
  560. // const { data } = await export1(
  561. // {
  562. // compId: localStorage.getItem('ws-pf_compId'),
  563. // contractType: this.contractType,
  564. // currentPage: this.currentPage,
  565. // pageSize: this.pageSize,
  566. // searchType: this.searchType,
  567. // searchKeyWord: this.searchKeyWord,
  568. // startDate: this.startDate,
  569. // endDate: this.endDate,
  570. // },
  571. // {},
  572. // { responseType: 'blob' }
  573. // ).toPromise()
  574. // downloadFile({
  575. // res: data,
  576. // fileName: `${
  577. // this.date.year + (this.date.month ? `-${this.date.month}` : '')
  578. // }_采购合同`,
  579. // type: 'xls',
  580. // })
  581. // },
  582. // deletecontract(){},
  583. //删除
  584. approve() {},
  585. listQuery() {},
  586. total() {},
  587. clearfiltQuery() {},
  588. selectCrtDuty() {},
  589. },
  590. }
  591. </script>
  592. <style lang="scss" scoped>
  593. /deep/.totalStorage .el-input__inner {
  594. color: #afb5cb;
  595. background: #f5f7fa;
  596. }
  597. .small-title {
  598. position: relative;
  599. padding: 10px;
  600. font-weight: 600;
  601. }
  602. .small-title::before {
  603. position: absolute;
  604. content: '';
  605. display: block;
  606. background: #5473e8;
  607. width: 4px;
  608. height: 14px;
  609. left: 0px;
  610. top: 13px;
  611. }
  612. .position {
  613. position: relative;
  614. }
  615. .add,
  616. .del {
  617. position: absolute;
  618. right: -38px;
  619. top: 9px;
  620. cursor: pointer;
  621. }
  622. .del {
  623. right: -70px;
  624. }
  625. .amap-page-container {
  626. width: 300px;
  627. height: 300px;
  628. }
  629. .ware {
  630. font-size: 12px;
  631. color: rgb(255, 255, 255);
  632. background: rgb(175, 181, 203);
  633. padding: 3px;
  634. position: relative;
  635. top: -1px;
  636. border-radius: 3px;
  637. text-align: center;
  638. }
  639. .title {
  640. position: relative;
  641. }
  642. .title::before {
  643. content: '';
  644. display: inline-block;
  645. width: 5px;
  646. height: 30px;
  647. background: #5473e8;
  648. position: absolute;
  649. left: 0;
  650. }
  651. .ws-info-table {
  652. border-left: 1px solid transparent;
  653. border-top: 1px solid transparent;
  654. }
  655. .el-button--primary {
  656. background-color: #5878e8;
  657. border-color: #5878e8;
  658. }
  659. .adjustment.el-button--primary {
  660. background-color: #51cdd9;
  661. border-color: #51cdd9;
  662. }
  663. .el-col {
  664. background: #f6f7fc;
  665. }
  666. .record {
  667. background: #fff;
  668. color: #8890b1;
  669. border-color: #fff;
  670. display: inline-block;
  671. margin-bottom: 10px;
  672. cursor: pointer;
  673. margin-left: 5px;
  674. margin-right: 5px;
  675. }
  676. .record img {
  677. position: relative;
  678. top: 2px;
  679. }
  680. .record.active img {
  681. position: relative;
  682. top: 4px;
  683. }
  684. .record.active {
  685. color: #262626;
  686. }
  687. .button-container {
  688. display: flex;
  689. flex-wrap: nowrap;
  690. justify-content: space-between;
  691. align-items: center;
  692. background-color: #fff;
  693. width: 100%;
  694. height: 50px;
  695. padding: 0 10px;
  696. &>div {
  697. margin-left: 10px;
  698. display: flex;
  699. flex-wrap: nowrap;
  700. flex-direction: row;
  701. &>span {
  702. line-height: 50px;
  703. }
  704. }
  705. /deep/.auditFlow-box {
  706. position: unset;
  707. margin-left: 10px;
  708. &/deep/.auditFlow-icon {
  709. width: auto;
  710. padding-right: 30px;
  711. }
  712. &/deep/.auditFlow-main {
  713. position: absolute;
  714. }
  715. }
  716. }
  717. .box-app {
  718. display: inline-block;
  719. float: left;
  720. margin-left: 30px;
  721. line-height: 50px;
  722. }
  723. /deep/.el-dialog {
  724. .el-form-item {
  725. margin-bottom: 0 !important;
  726. .el-input--medium {
  727. textarea {
  728. min-height: 100px !important;
  729. }
  730. }
  731. }
  732. }
  733. .top-grade {
  734. background: linear-gradient(90deg, #5678e9, #7993f6);
  735. color: #fff;
  736. padding: 3px;
  737. border-radius: 2px;
  738. }
  739. .second-class {
  740. background: linear-gradient(90deg, #50cdd9, #82e2ea);
  741. color: #fff;
  742. padding: 3px;
  743. border-radius: 2px;
  744. }
  745. .third-class {
  746. background: linear-gradient(90deg, #ffa735, #ffbf70);
  747. color: #fff;
  748. padding: 3px;
  749. border-radius: 2px;
  750. }
  751. .substandard {
  752. background: linear-gradient(90deg, #b2b4bb, #ced0d5);
  753. color: #fff;
  754. padding: 3px;
  755. border-radius: 2px;
  756. }
  757. .collapse-bottom {
  758. margin-bottom: 20px;
  759. }
  760. .input-main .textarea .el-textarea__inner {
  761. width: 100%;
  762. z-index: 1;
  763. }
  764. .bg-left {
  765. padding-left: 30px;
  766. }
  767. .bg-right {
  768. padding-right: 10px;
  769. text-align: right;
  770. }
  771. .bg-bottom {
  772. margin: 15px 0px;
  773. }
  774. .wenzi {
  775. width: 900px;
  776. margin: 0 auto;
  777. }
  778. .wenzi h3 {
  779. display: inline-block;
  780. left: 10px;
  781. }
  782. .wenzi p {
  783. display: inline-block;
  784. }
  785. .center {
  786. padding: 0 1%;
  787. }
  788. .el-form-item {
  789. width: 50%;
  790. }
  791. .el-form-item__label {
  792. text-align: center;
  793. }
  794. .ce {
  795. width: 900px;
  796. margin: 0 auto;
  797. }
  798. /*.crt-main .textarea /deep/ .el-form-item__label {*/
  799. /* height: 82px;*/
  800. /*}*/
  801. // 控制select为只读的时候显示样式
  802. .hide-sel {
  803. .el-input__inner {
  804. border: 0px;
  805. }
  806. .el-icon-arrow-up {
  807. display: none;
  808. }
  809. .el-textarea__inner {
  810. background-color: #fff !important;
  811. border: 0;
  812. }
  813. .el-date-editor {
  814. i {
  815. display: none;
  816. }
  817. }
  818. .is-disabled {
  819. .el-input__inner:hover {
  820. background-color: #fff !important;
  821. border: 0;
  822. }
  823. color: #606266;
  824. .el-input__inner {
  825. background-color: #fff !important;
  826. border: 0;
  827. color: #606266;
  828. }
  829. .el-textarea__inner {
  830. background-color: #fff !important;
  831. border: 0;
  832. color: #606266;
  833. }
  834. }
  835. }
  836. // 控制select为只读的时候显示样式
  837. /deep/.ws-class-table-col {
  838. height: auto;
  839. padding: 0px 2px;
  840. /deep/.el-input__inner {
  841. padding: 0px 2px;
  842. }
  843. }
  844. /deep/.is-disabled {
  845. .el-input__prefix,
  846. .el-input__suffix {
  847. display: none;
  848. }
  849. .el-input__inner {
  850. background-color: #fff;
  851. border-color: #fff !important;
  852. color: #000 !important;
  853. font-size: 14px;
  854. cursor: text;
  855. padding: 0 !important;
  856. }
  857. }
  858. .winseaview-view {
  859. padding: 0 0 20px;
  860. }
  861. .container {
  862. overflow: scroll;
  863. height: 93vh;
  864. }
  865. .el-textarea__inner {
  866. display: none;
  867. }
  868. .readonly {
  869. width: 16%;
  870. }
  871. .ws-info-table .el-form-item {
  872. width: 14.28%;
  873. }
  874. /deep/.ws-info-table .el-form-item .el-form-item__label {
  875. background-color: #f6f7fc;
  876. font-size: 12px;
  877. height: 45px;
  878. }
  879. //去边框
  880. /deep/.el-form-item {
  881. border-right: 0px;
  882. border-bottom: 0px;
  883. }
  884. /deep/.ws-info-table {
  885. border-left: 0px;
  886. border-top: 0px;
  887. }
  888. .ws-info-table .el-form-item .el-form-item__content {
  889. border-right: 0px;
  890. border-bottom: 0px;
  891. border-left: 0px;
  892. border-top: 0px;
  893. }
  894. /deep/.ws-info-table .el-form-item {
  895. border-right: 0px;
  896. border-bottom: 0px;
  897. border-left: 0px;
  898. border-top: 0px;
  899. }
  900. /deep/.ws-info-table .el-form-item .el-form-item__content {
  901. background: #f5f7fa;
  902. border-radius: 4px;
  903. border: 1px solid #d8dce6;
  904. font-family: PingFangSC-Regular, PingFang SC;
  905. margin-bottom: 5px;
  906. background-color: #fff;
  907. font-size: 14px;
  908. font-weight: 400;
  909. color: #8890b1;
  910. line-height: 16px;
  911. }
  912. /deep/.ws-info-table .el-form-item .el-form-item__content {
  913. border: 0px;
  914. }
  915. /deep/.el-table td , /deep/.el-table .el-table__header .cell{
  916. text-align: center;
  917. }
  918. </style>