Commit 2c4057ca by 王志慧

commit

1 parent ebb7c92a
......@@ -204,7 +204,7 @@ const exportaAllocateExcel = (params) => {
}
const exportaInventExcel = (params) => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.smartcarlife.MerchantGoodsStockMonthReport.export`
params.routerMethod = `dj.api.life.InventoryWarningInfo.exportExcel`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
......
......@@ -11,7 +11,7 @@ let router = null
let instance = null
Vue.use(ElementUI)
Vue.use(GLTable)
export async function bootstrap({ history, common, messenger, globalState }) {
export async function bootstrap({ history, common, messenger, globalState,routerBase }) {
const { response, request, sign, secret, sign_common, request_common } = await fetchConfig()
Vue.prototype.$history = history
Vue.prototype.$messenger = messenger
......@@ -22,10 +22,10 @@ export async function bootstrap({ history, common, messenger, globalState }) {
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, signWay: "md5", request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData)
subscribe({ messenger })
Vue.use(GLButton, { routes, routerBase })
}
export async function mount(props) {
const insts = render(props.routerBase, routes)
......
<template>
<div class="addWrap">
<div class="d2-container-content" style="padding: 10px 20px">
<div class="d2-container-content gl-form-min" style="padding: 10px 20px">
<el-form :inline="true" size="small" :model="editAllocationForm" ref="editAllocationFormRef" :rules="formRules" class="demo-form-inline">
<el-form-item label="调出门店:" prop="callOutYqMerchantId">
<el-select v-model="editAllocationForm.callOutYqMerchantId" style="width: 300px">
......@@ -17,9 +17,13 @@
</div>
<div class="d2-container-content">
<div style="padding: 15px 0">
<div>
<el-input v-model="searchForm.searchName" style="width: 200px" placeholder="请输入商品名称/系列" maxlength="20" clearable />
<el-button @click="handleSearch" size="small" type="primary" style="marginleft: 15px">查询</el-button>
<div class="gl-form-page gl-form-min">
<el-form :inline="true" size="small" :model="editAllocationForm">
<el-form-item label="">
<el-input v-model="searchForm.searchName" style="width: 200px" placeholder="请输入商品名称/系列" maxlength="20" clearable />
</el-form-item>
<el-button @click="handleSearch" size="small" type="primary" style="marginleft: 15px">查询</el-button>
</el-form>
</div>
</div>
<GLTable ref="allocationTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn">
......@@ -187,14 +191,11 @@ export default {
},
created() {
if (window.__POWERED_BY_QIANKUN__) {
this.callOutYqMerchantList = [
{ merchantNo: this.$globalState.session.merchantId+'',
merchantName: this.$globalState.session.merchantName }]
this.callOutYqMerchantList = [{ merchantNo: this.$globalState.session.merchantId + '', merchantName: this.$globalState.session.merchantName }]
}
},
mounted() {
this.editAllocationForm.callOutYqMerchantId =
this.callOutYqMerchantList[0].merchantNo
this.editAllocationForm.callOutYqMerchantId = this.callOutYqMerchantList[0].merchantNo
//调入门店
this.$apis.stockManage.yqRelatedList({ includeSelf: false }).then(res => {
this.callInYqMerchantList = res
......
......@@ -4,7 +4,8 @@
<div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header">
<el-button type="primary" size="small" @click="handleAdd">创建调拨</el-button>
<GLButton type="primary" size="small" @click="handleAdd" fn="创建调拨">创建调拨</GLButton>
<!-- <el-button type="primary" size="small" @click="handleAdd">创建调拨</el-button> -->
<!-- <h2>调拨列表</h2> -->
<el-button type="primary" size="small" @click="exportExcel">导出</el-button>
</div>
......
......@@ -3,7 +3,7 @@
<div class="addWrap">
<div class="d2-container-content">
<div style="padding: 15px 0">
<div class="gl-form-page">
<div class="gl-form-page gl-form-min">
<el-form ref="ruleForm" :model="searchForm" size="small" inline="true">
<el-form-item label="">
<el-input v-model="searchForm.searchName" style="width: 200px" placeholder="请输入商品名称/系列" maxlength="20" clearable />
......
......@@ -4,7 +4,8 @@
<div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header">
<el-button type="primary" size="small" @click="handleAdd">创建盘点</el-button>
<GLButton type="primary" size="small" @click="handleAdd" fn="创建盘点">创建盘点</GLButton>
<!-- <el-button type="primary" size="small" @click="handleAdd">创建盘点</el-button> -->
<!-- <h2>盘点列表</h2> -->
<el-button type="primary" size="small" @click="exportExcel">导出</el-button>
</div>
......
......@@ -12,15 +12,13 @@
</div>
<!-- 表格区域 开始 -->
<GLTable ref="earlyWarningRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
</GLTable>
<GLTable ref="earlyWarningRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"></GLTable>
<!-- 表格区域 end -->
</div>
</div>
</template>
<script>
import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
import { membraneTypeList } from '@/utils/constants.js'
export default {
......@@ -181,15 +179,14 @@ export default {
this.$refs.earlyWarningRef.data.length ? (this.$refs.earlyWarningRef.tableHeightValues = '') : this.$refs.earlyWarningRef.setTableHeightFun()
},
exportExcel() {
var params = this.getParams()
var params = this.searchForm
this.$apis.stockManage.exportaInventExcel(params).then(res => {
window.location.href = res
})
},
//去补货
//去补货
gotoReplenishment() {
// this.close({ tagName: '/orderList' })
this.$router.push({ name: 'purchasingMall' })
this.$history.push(`/purchase/purchaseOrder/add`)
},
handleSearch() {
this.$refs.earlyWarningRef.refreshTable()
......
......@@ -22,7 +22,6 @@
</template>
<script>
import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
import { membraneTypeList } from '@/utils/constants.js'
import stockMonthDialog from './stockMonthDialog'
......@@ -193,10 +192,10 @@ export default {
},
exportExcel() {
this.exportLoading = true
var params = this.getParams()
var params = this.searchForm
this.$apis.stockManage.exportMerchantExcel(params).then(res => {
// window.location.href = res
window.location.href = res
})
},
......
......@@ -282,6 +282,7 @@ export default {
this.$router.push('/purchaseOrder/add')
},
exportExcel() {
// this.$messenger.send('ssssssssssssssss')
var params = this.getParams()
this.$apis.stockManage.exportExcel(params).then(res => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!