632ff24069f716b1491f7d63394f252190c4e920.svn-base 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  1. <template>
  2. <div class="app-container">
  3. <div class="operation">
  4. <el-button class="success" @click="handleCreate">新增盘点单</el-button>
  5. <el-button class="success" @click="handleInventoryList">下载盘点单</el-button>
  6. <el-button class="import" style="float: right;" @click="handleExport(1)">导出</el-button>
  7. </div>
  8. <div class="search">
  9. <el-date-picker v-model="table.getdataListParm.parammaps.inputDatetime" class="inputDatetime filter-item" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" style="width: 250px;" />
  10. <el-button class="el-icon-arrow-left elIconArrowLeft" @click="handleBefore" />
  11. <el-button class="el-icon-arrow-right elIconArrowRight" @click="handleNext" />
  12. <el-button class="successBorder" @click="handleSearch">查询</el-button>
  13. </div>
  14. <div class="table">
  15. <el-table
  16. :key="table.tableKey"
  17. v-loading="table.listLoading"
  18. element-loading-text="给我一点时间"
  19. :data="table.list"
  20. border
  21. fit
  22. highlight-current-row
  23. style="width: 100%;"
  24. :row-style="rowStyle"
  25. :cell-style="cellStyle"
  26. class="elTable table-fixed"
  27. >
  28. <el-table-column label="序号" align="center" type="index" width="50px">
  29. <template slot-scope="scope">
  30. <span>{{ scope.$index + (table.pageNum-1) * table.pageSize + 1 }}</span>
  31. </template>
  32. </el-table-column>
  33. <el-table-column label="盘点日期" min-width="130px" align="center">
  34. <template slot-scope="scope">
  35. <span>{{ scope.row.inventorydate }}</span>
  36. </template>
  37. </el-table-column>
  38. <el-table-column label="盘点人" min-width="130px" align="center">
  39. <template slot-scope="scope">
  40. <span>{{ scope.row.createuser }}</span>
  41. </template>
  42. </el-table-column>
  43. <el-table-column label="盘盈库存(kg)" min-width="110px" align="center">
  44. <template slot-scope="scope">
  45. <span>{{ scope.row.moreWeight }}</span>
  46. </template>
  47. </el-table-column>
  48. <el-table-column label="盘亏库存(kg)" min-width="110px" align="center">
  49. <template slot-scope="scope">
  50. <span>{{ scope.row.lessWeight }}</span>
  51. </template>
  52. </el-table-column>
  53. <el-table-column label="盈亏净值(kg)" min-width="110px" align="center">
  54. <template slot-scope="scope">
  55. <span>{{ scope.row.differWeight }}</span>
  56. </template>
  57. </el-table-column>
  58. <el-table-column label="备注" min-width="110px" align="center">
  59. <template slot-scope="scope">
  60. <span>{{ scope.row.remark }}</span>
  61. </template>
  62. </el-table-column>
  63. <el-table-column label="操作" align="center" width="320" class-name="small-padding fixed-width" fixed="right">
  64. <template slot-scope="scope">
  65. <el-button class="miniPrimary" :disabled="isokDisable" @click="handleSee(scope.row)">查看</el-button>
  66. <el-button v-if="scope.$index + (table.pageNum-1) * table.pageSize + 1 == 1" class="miniDanger" @click="handleRowDelete(scope.row)">删除</el-button>
  67. </template>
  68. </el-table-column>
  69. </el-table>
  70. <pagination v-show="table.total>=0" :total="table.total" :page.sync="table.getdataListParm.offset" :limit.sync="table.getdataListParm.pagecount" @pagination="getList" />
  71. </div>
  72. <!-- 新增盘点单 -->
  73. <el-dialog :title="textMap[create.dialogStatus]" :visible.sync="create.dialogFormVisible" :close-on-click-modal="false" width="90%">
  74. <div class="app-add">
  75. <el-form ref="createTemp" :rules="create.rules" :model="create.createTemp" label-position="right" label-width="160px" style="width: 90%;margin:0 auto">
  76. <el-row>
  77. <el-col :span="8">
  78. <el-form-item label="盘点日期:" prop="inventorydate">
  79. <!-- :picker-options="create.pickerOptions2" -->
  80. <el-date-picker v-model="create.createTemp.inventorydate" class="filter-item" type="date" placeholder="盘点日期" :disabled="create.dialogStatus==='see'" :picker-options="create.pickerOptions1" :clearable="false" />
  81. </el-form-item>
  82. </el-col>
  83. <el-col :span="8">
  84. <el-form-item label="盘点人:" prop="createuser">
  85. <el-input ref="createuser" v-model="create.createTemp.createuser" class="filter-item" placeholder="盘点人" type="text" disabled />
  86. </el-form-item>
  87. </el-col>
  88. <el-col :span="8">
  89. <el-form-item label="备注:" prop="remark">
  90. <el-input ref="remark" v-model="create.createTemp.remark" class="filter-item" placeholder="备注" type="text" :disabled="create.dialogStatus==='see'" />
  91. </el-form-item>
  92. </el-col>
  93. </el-row>
  94. </el-form>
  95. <el-table
  96. :key="create.tableKey"
  97. v-loading="create.listLoading"
  98. element-loading-text="给我一点时间"
  99. :data="create.list"
  100. border
  101. fit
  102. highlight-current-row
  103. style="width: 100%;margin-bottom: 50px;"
  104. :row-style="rowStyle"
  105. :cell-style="cellStyle"
  106. class="elTable table-fixed"
  107. >
  108. <el-table-column label="饲料名称" min-width="130px" align="center">
  109. <template slot-scope="scope">
  110. <span>{{ scope.row.feedname }}</span>
  111. </template>
  112. </el-table-column>
  113. <el-table-column label="库存重量(kg)" min-width="130px" align="center">
  114. <template slot-scope="scope">
  115. <span>{{ scope.row.stockweight }}</span>
  116. </template>
  117. </el-table-column>
  118. <el-table-column label="实际重量(kg)" min-width="110px" align="center">
  119. <template slot-scope="scope">
  120. <el-input v-if="create.dialogStatus==='create'" ref="input" v-model="scope.row.factweight" style="width:80%;padding:10px 0;" @blur="blurFactweight(scope.row)" />
  121. <span v-else> {{ scope.row.factweight }}</span>
  122. </template>
  123. </el-table-column>
  124. <el-table-column label="差值(kg)" min-width="110px" align="center">
  125. <template slot-scope="scope">
  126. <span>{{ scope.row.differ }}</span>
  127. </template>
  128. </el-table-column>
  129. </el-table>
  130. <div slot="footer" class="dialog-footer">
  131. <el-button v-if="create.dialogStatus==='see'" class="success" :disabled="isokDisable" @click="handleExport(2)">导出</el-button>
  132. <el-button class="cancelClose" @click="create.dialogFormVisible = false; ">关闭</el-button>
  133. <el-button v-if="create.dialogStatus==='create'" class="success" :disabled="isokDisable" @click="createData()">确认</el-button>
  134. </div>
  135. </div>
  136. </el-dialog>
  137. </div>
  138. </template>
  139. <script>
  140. import { GetDataByName, ExecDataByConfig, failproccess, PostDataByName } from '@/api/common'
  141. import Pagination from '@/components/Pagination'
  142. import { parseTime, json2excel } from '@/utils/index.js'
  143. import { MessageBox } from 'element-ui'
  144. import Cookies from 'js-cookie'
  145. import axios from 'axios'
  146. import { getToken } from '@/utils/auth'
  147. export default {
  148. name: 'InventoryList',
  149. components: { Pagination },
  150. data() {
  151. return {
  152. table: {
  153. getdataListParm: {
  154. name: 'getBigInventoryList',
  155. page: 1,
  156. offset: 1,
  157. pagecount: 10,
  158. returntype: 'Map',
  159. parammaps: {
  160. pastureid: Cookies.get('pastureid'),
  161. startTime: '',
  162. stopTime: '',
  163. inputDatetime: ''
  164. }
  165. },
  166. tableKey: 0,
  167. list: [],
  168. total: 0,
  169. listLoading: true
  170. },
  171. textMap: {
  172. create: '新增',
  173. see: '查看盘点单'
  174. },
  175. create: {
  176. pickerOptions1: {
  177. disabledDate: this.disabledDate
  178. },
  179. dialogFormVisible: false,
  180. dialogStatus: '',
  181. createTemp: {
  182. pastureid: Cookies.get('pastureid'),
  183. remark: '',
  184. inventorydate: parseTime(new Date(), '{y}-{m}-{d}'),
  185. createuser: Cookies.get('employename')
  186. },
  187. rules: {},
  188. getdataListParm: {
  189. name: 'getFeedstorageWeightList',
  190. page: 1,
  191. offset: 1,
  192. pagecount: '',
  193. returntype: 'Map',
  194. parammaps: {
  195. pastureid: Cookies.get('pastureid'),
  196. emp: Cookies.get('employename')
  197. }
  198. },
  199. tableKey: 0,
  200. list: [],
  201. total: 0,
  202. listLoading: true,
  203. getMaxdataParm: {
  204. name: 'getInventoryMaxdate',
  205. page: 1,
  206. offset: 1,
  207. pagecount: '',
  208. returntype: 'Map',
  209. parammaps: {
  210. pastureid: Cookies.get('pastureid')
  211. }
  212. },
  213. maxDate: ''
  214. },
  215. see: {
  216. getdataListParm: {
  217. name: 'getInventoryList',
  218. page: 1,
  219. offset: 1,
  220. pagecount: 10,
  221. returntype: 'Map',
  222. parammaps: {}
  223. }
  224. },
  225. requestParam: {},
  226. download: {
  227. getdataListParm: {
  228. name: 'getBigInventoryList',
  229. page: 1,
  230. offset: 1,
  231. pagecount: 0,
  232. returntype: 'Map',
  233. parammaps: {
  234. pastureid: Cookies.get('pastureid'),
  235. startTime: '',
  236. stopTime: '',
  237. inputDatetime: ''
  238. }
  239. },
  240. list: []
  241. },
  242. isokDisable: false,
  243. rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
  244. cellStyle: { padding: 0 + 'px' }
  245. }
  246. },
  247. created() {
  248. this.getList()
  249. },
  250. methods: {
  251. handleBefore() {
  252. if (this.table.getdataListParm.parammaps.inputDatetime !== '' && this.table.getdataListParm.parammaps.inputDatetime !== null) {
  253. var start = new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate() - 1))
  254. var stop = new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate() - 1))
  255. this.table.getdataListParm.parammaps.inputDatetime.length = 0
  256. this.table.getdataListParm.parammaps.inputDatetime.push(start, stop)
  257. this.table.getdataListParm.parammaps.startTime = parseTime(start, '{y}-{m}-{d}')
  258. this.table.getdataListParm.parammaps.stopTime = parseTime(stop, '{y}-{m}-{d}')
  259. this.$forceUpdate()
  260. }
  261. },
  262. handleNext() {
  263. if (this.table.getdataListParm.parammaps.inputDatetime !== '' && this.table.getdataListParm.parammaps.inputDatetime !== null) {
  264. var start = new Date(this.table.getdataListParm.parammaps.inputDatetime[0].setDate(this.table.getdataListParm.parammaps.inputDatetime[0].getDate() + 1))
  265. var stop = new Date(this.table.getdataListParm.parammaps.inputDatetime[1].setDate(this.table.getdataListParm.parammaps.inputDatetime[1].getDate() + 1))
  266. this.table.getdataListParm.parammaps.inputDatetime.length = 0
  267. this.table.getdataListParm.parammaps.inputDatetime.push(start, stop)
  268. this.table.getdataListParm.parammaps.startTime = parseTime(start, '{y}-{m}-{d}')
  269. this.table.getdataListParm.parammaps.stopTime = parseTime(stop, '{y}-{m}-{d}')
  270. this.$forceUpdate()
  271. }
  272. },
  273. handleSearch() {
  274. console.log('点击了查询')
  275. if (this.table.getdataListParm.parammaps.inputDatetime !== '' && this.table.getdataListParm.parammaps.inputDatetime !== null) {
  276. this.table.getdataListParm.parammaps.startTime = parseTime(this.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
  277. this.table.getdataListParm.parammaps.stopTime = parseTime(this.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
  278. } else {
  279. this.table.getdataListParm.parammaps.inputDatetime = ''
  280. this.table.getdataListParm.parammaps.startTime = ''
  281. this.table.getdataListParm.parammaps.stopTime = ''
  282. }
  283. this.table.getdataListParm.offset = 1
  284. this.getList()
  285. },
  286. getList() {
  287. this.table.listLoading = true
  288. GetDataByName(this.table.getdataListParm).then(response => {
  289. console.log('table数据', response.data.list)
  290. if (response.data.list !== null) {
  291. this.table.list = response.data.list
  292. this.table.pageNum = response.data.pageNum
  293. this.table.pageSize = response.data.pageSize
  294. this.table.total = response.data.total
  295. } else {
  296. this.table.list = []
  297. }
  298. setTimeout(() => {
  299. this.table.listLoading = false
  300. }, 100)
  301. })
  302. },
  303. resetCreateTemp() {
  304. this.create.createTemp = { pastureid: Cookies.get('pastureid'), remark: '', inventorydate: parseTime(new Date(), '{y}-{m}-{d}'), createuser: Cookies.get('employename') }
  305. },
  306. handleCreate() {
  307. console.log('点击了新增盘点单')
  308. this.resetCreateTemp()
  309. this.create.dialogStatus = 'create'
  310. this.create.dialogFormVisible = true
  311. this.getMaxDate()
  312. this.getCreateList()
  313. },
  314. disabledDate(time) {
  315. return time.getTime() < new Date(this.create.maxDate) || time.getTime() > Date.now()
  316. },
  317. getMaxDate() {
  318. GetDataByName(this.create.getMaxdataParm).then(response => {
  319. this.create.maxDate = response.data.list[0].maxdate
  320. console.log(response.data.list[0])
  321. })
  322. },
  323. getCreateList() {
  324. this.create.listLoading = true
  325. GetDataByName(this.create.getdataListParm).then(response => {
  326. console.log('table数据', response.data.list)
  327. if (response.data.list !== null) {
  328. for (let i = 0; i < response.data.list.length; i++) {
  329. this.$set(response.data.list[i], 'factweight', '')
  330. this.$set(response.data.list[i], 'differ', '')
  331. }
  332. this.create.list = response.data.list
  333. this.create.pageNum = response.data.pageNum
  334. this.create.pageSize = response.data.pageSize
  335. this.create.total = response.data.total
  336. } else {
  337. this.create.list = []
  338. }
  339. setTimeout(() => {
  340. this.create.listLoading = false
  341. }, 100)
  342. })
  343. },
  344. // 实际重量
  345. blurFactweight(row) {
  346. if (row.factweight !== '' && row.stockweight !== '') {
  347. row.differ = parseFloat(row.factweight) - parseFloat(row.stockweight)
  348. }
  349. },
  350. createData() {
  351. this.$refs['createTemp'].validate(valid => {
  352. if (valid) {
  353. this.isokDisable = true
  354. setTimeout(() => {
  355. this.isokDisable = false
  356. }, 1000)
  357. var createList = []
  358. for (let i = 0; i < this.create.list.length; i++) {
  359. if (this.create.list[i].factweight !== '') {
  360. createList.push(this.create.list[i])
  361. }
  362. }
  363. for (let i = 0; i < createList.length; i++) {
  364. const keepTwoNum = /^\d+(\.\d{1,2})?$/
  365. // 实际重量
  366. if (!keepTwoNum.test(parseFloat(createList[i].factweight))) {
  367. this.$message({ type: 'error', message: '实际重量请输入自然数并保留两位小数', duration: 2000 })
  368. return false
  369. }
  370. }
  371. this.requestParam.common = { 'returnmap': '0' }
  372. this.requestParam.data = []
  373. this.requestParam.data[0] = { 'name': 'insertBigInventory', 'type': 'e', 'parammaps': {
  374. 'pastureid': this.create.createTemp.pastureid,
  375. 'inventorydate': parseTime(this.create.createTemp.inventorydate, '{y}-{m}-{d}'),
  376. 'createuser': this.create.createTemp.createuser,
  377. 'remark': this.create.createTemp.remark
  378. }}
  379. this.requestParam.data[1] = { 'name': 'insertSpotList', 'resultmaps': { 'list': createList }}
  380. this.requestParam.data[1].children = []
  381. this.requestParam.data[1].children[0] = { 'name': 'insertInventory', 'type': 'e', 'parammaps': {
  382. invid: '@insertBigInventory.LastInsertId',
  383. pastureid: '@insertSpotList.pastureid',
  384. feedname: '@insertSpotList.feedname',
  385. feedid: '@insertSpotList.feedid',
  386. stockweight: '@insertSpotList.stockweight',
  387. factweight: '@insertSpotList.factweight'
  388. }}
  389. ExecDataByConfig(this.requestParam).then(response => {
  390. if (response.msg === 'fail') {
  391. const inventorydate = new RegExp("key 'inventorydate'")
  392. if (inventorydate.test(response.data)) {
  393. this.$message({ type: 'error', message: '当前日期已盘点,不可重复录入', duration: 2000 })
  394. } else {
  395. this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
  396. }
  397. } else {
  398. this.$notify({ title: '', message: '成功', type: 'success', duration: 2000 })
  399. this.create.dialogFormVisible = false
  400. this.getList()
  401. }
  402. })
  403. }
  404. })
  405. },
  406. handleInventoryList() {
  407. console.log('点击了下载盘点单')
  408. const requestParam = this.requestParam
  409. const url = process.env.VUE_APP_BASE_API + 'file/导入导出模板/库存管理/盘点单导入模板.xlsx' // 请求下载文件的地址
  410. console.log(url)
  411. axios({
  412. method: 'GET',
  413. url: url,
  414. data: requestParam,
  415. headers: { token: getToken(), optname: 'insertcustomdoc' },
  416. responseType: 'blob'
  417. }).then(res => {
  418. if (!res) return
  419. this.percentage = 99
  420. setTimeout(() => {
  421. this.isPercentage = false
  422. }, 2000)
  423. const blob = new Blob([res.data], {
  424. type: 'application/octet-stream;charset=utf-8'
  425. })
  426. const url = window.URL.createObjectURL(blob)
  427. const aLink = document.createElement('a')
  428. aLink.style.display = 'none'
  429. aLink.href = url
  430. const docname = '盘点单导入模板.xlsx'
  431. aLink.setAttribute('download', docname) // 下载的文件
  432. document.body.appendChild(aLink)
  433. aLink.click()
  434. document.body.removeChild(aLink)
  435. window.URL.revokeObjectURL(url)
  436. })
  437. },
  438. handleSee(row) {
  439. console.log('点击了查看')
  440. this.create.dialogStatus = 'see'
  441. this.create.dialogFormVisible = true
  442. this.create.createTemp = Object.assign({}, row)
  443. this.see.getdataListParm.parammaps.pastureid = row.pastureid
  444. this.see.getdataListParm.parammaps.id = row.id
  445. this.getSeeList()
  446. },
  447. getSeeList() {
  448. this.create.listLoading = true
  449. GetDataByName(this.see.getdataListParm).then(response => {
  450. console.log('table数据', response.data.list)
  451. if (response.data.list !== null) {
  452. this.create.list = response.data.list
  453. this.create.pageNum = response.data.pageNum
  454. this.create.pageSize = response.data.pageSize
  455. this.create.total = response.data.total
  456. } else {
  457. this.create.list = []
  458. }
  459. setTimeout(() => {
  460. this.create.listLoading = false
  461. }, 100)
  462. })
  463. },
  464. handleRowDelete(row) {
  465. MessageBox.confirm('是否确认删除此信息?', {
  466. confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning'
  467. }).then(() => {
  468. this.requestParam.name = 'deleteBigInventory'
  469. this.requestParam.parammaps = {}
  470. this.requestParam.parammaps.pastureid = row.pastureid
  471. this.requestParam.parammaps.id = row.id
  472. PostDataByName(this.requestParam).then(response => {
  473. if (response.msg === 'fail') {
  474. this.$notify({ title: '删除失败', message: response.data, type: 'warning', duration: 2000 })
  475. } else {
  476. this.$notify({ title: '成功', message: '删除成功', type: 'success', duration: 2000 })
  477. this.getList()
  478. }
  479. })
  480. }).catch(() => {
  481. this.$message({ type: 'info', message: '已取消删除' })
  482. })
  483. },
  484. handleExport(item) {
  485. if (item == 1) {
  486. this.download.getdataListParm.parammaps.inputDatetime = this.table.getdataListParm.parammaps.inputDatetime
  487. if (this.download.getdataListParm.parammaps.inputDatetime !== '' && this.download.getdataListParm.parammaps.inputDatetime !== null) {
  488. this.download.getdataListParm.parammaps.startTime = parseTime(this.download.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
  489. this.download.getdataListParm.parammaps.stopTime = parseTime(this.download.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
  490. } else {
  491. this.download.getdataListParm.parammaps.inputDatetime = ''
  492. this.download.getdataListParm.parammaps.startTime = ''
  493. this.download.getdataListParm.parammaps.stopTime = ''
  494. }
  495. this.download.getdataListParm.name = 'getBigInventoryList'
  496. GetDataByName(this.download.getdataListParm).then(response => {
  497. if (response.data.list !== null) {
  498. this.download.list = response.data.list
  499. } else {
  500. this.download.list = []
  501. }
  502. var excelDatas = [
  503. {
  504. tHeader: ['盘点日期', '盘点人', '盘盈库存(kg)', '盘亏库存(kg)', '盈亏净值(kg)', '备注'],
  505. filterVal: ['inventorydate', 'createuser', 'moreWeight', 'lessWeight', 'differWeight', 'remark'],
  506. tableDatas: this.download.list,
  507. sheetName: 'Sheet1'
  508. }
  509. ]
  510. json2excel(excelDatas, '盘点单', true, 'xlsx')
  511. })
  512. } else {
  513. this.download.getdataListParm.name = 'getInventoryList'
  514. this.download.getdataListParm.parammaps = this.see.getdataListParm.parammaps
  515. GetDataByName(this.download.getdataListParm).then(response => {
  516. for (let i = 0; i < response.data.list.length; i++) {
  517. this.$set(response.data.list[i], 'inventorydate', this.create.createTemp.inventorydate)
  518. this.$set(response.data.list[i], 'createuser', this.create.createTemp.createuser)
  519. this.$set(response.data.list[i], 'remark', this.create.createTemp.remark)
  520. }
  521. if (response.data.list !== null) {
  522. this.download.list = response.data.list
  523. } else {
  524. this.download.list = []
  525. }
  526. var excelDatas = [
  527. {
  528. tHeader: ['盘点日期', '盘点人', '备注', '饲料名称', '库存重量(kg)', '实际重量(kg)', '差值(kg)'],
  529. filterVal: ['inventorydate', 'createuser', 'remark', 'feedname', 'stockweight', 'factweight', 'differ'],
  530. tableDatas: this.download.list,
  531. sheetName: 'Sheet1'
  532. }
  533. ]
  534. json2excel(excelDatas, '盘点-查看', true, 'xlsx')
  535. })
  536. }
  537. }
  538. }
  539. }
  540. </script>
  541. <style lang="scss" scoped>
  542. .search{margin-top:10px;}
  543. .table{margin-top:10px;}
  544. </style>
  545. <style>
  546. .inputDatetime .el-range-separator{ padding: 0; margin: 0 10px; }
  547. </style>