Browse Source

批发数据导入,接口

master
liupopo 2 years ago
parent
commit
d65ab1e868
  1. 6
      base-ui/src/api/kucun/wholesale.js
  2. 6
      base-ui/src/views/kucun/pfsjgl/index.vue

6
base-ui/src/api/kucun/wholesale.js

@ -1,10 +1,8 @@
import request from '@/utils/request' import request from '@/utils/request'
// 条件查询 // 条件查询
export function exportExcel(data) { export function exportExcel(logId) {
return request({ return request({
url: '/kucun/kchz', url: '/wholesale/buildExcel/' + logId
method: 'get',
data: data
}) })
} }

6
base-ui/src/views/kucun/pfsjgl/index.vue

@ -108,6 +108,7 @@
</template> </template>
<script> <script>
import { exportExcel } from '@/api/kucun/wholesale'
import ButtonBar from '@/components/ButtonBar' import ButtonBar from '@/components/ButtonBar'
import Pagination from '@/components/pagination' import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye' import pageye from '@/components/pagination/pageye'
@ -237,12 +238,11 @@ export default {
_this.fullscreenloading.text = '数据导入完成,进行数据整理' _this.fullscreenloading.text = '数据导入完成,进行数据整理'
_this.currentLog = resp.data _this.currentLog = resp.data
kchz() exportExcel(_this.currentLog.idStr)
.then(res => { .then(res => {
if (this.fullscreenloading) this.fullscreenloading.close() if (this.fullscreenloading) this.fullscreenloading.close()
this.fullscreenloading = null this.fullscreenloading = null
console.log('333', res) _this.currentLog = resp.data
_this.hzFilePath = res.data
}) })
.catch(e => { .catch(e => {
if (this.fullscreenloading) this.fullscreenloading.close() if (this.fullscreenloading) this.fullscreenloading.close()

Loading…
Cancel
Save