warehouseManagementRecord.vue 26 KB

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