Commit f51cb7b3 by wangql

物料管理增加导出

1 parent 61422b4f
...@@ -679,6 +679,15 @@ export const PAGEMATERIALINFO = (params) => { ...@@ -679,6 +679,15 @@ export const PAGEMATERIALINFO = (params) => {
}) })
} }
// 设备配置管理-导出物料列表
export const EXPORTMATERIALINFO = (params) => {
return axios({
url: 'JXCCommon/exportMaterialInfo',
method: 'GET',
params,
})
}
// 设备配置管理-创建设备配置-获取设备型号 // 设备配置管理-创建设备配置-获取设备型号
export const GETLISTATTRIBINFOLIST = (params) => { export const GETLISTATTRIBINFOLIST = (params) => {
return axios({ return axios({
......
...@@ -51,6 +51,9 @@ ...@@ -51,6 +51,9 @@
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-refresh" plain @click="rest()">重置</el-button> <el-button type="primary" icon="el-icon-refresh" plain @click="rest()">重置</el-button>
</el-form-item> </el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-download" :loading="exportLoading" @click="exportInfo()">导出</el-button>
</el-form-item>
</el-form> </el-form>
</el-card> </el-card>
...@@ -101,7 +104,7 @@ ...@@ -101,7 +104,7 @@
</template> </template>
<script> <script>
import { PAGEMATERIALINFO, PAGEKCWAREHOUSE } from '@/http/interface' import { PAGEMATERIALINFO, PAGEKCWAREHOUSE, EXPORTMATERIALINFO } from '@/http/interface'
import { import {
GETJXCCOMMONLISTMATERIALTYPE, GETJXCCOMMONLISTMATERIALTYPE,
GETJXCCOMMONLISTDEVICETYPE, GETJXCCOMMONLISTDEVICETYPE,
...@@ -190,6 +193,22 @@ export default { ...@@ -190,6 +193,22 @@ export default {
this.getList() this.getList()
}, },
/**
* 导出列表
*/
exportInfo: function () {
const _this = this
const oParams = _this.getParams()
_this.exportLoading = true
EXPORTMATERIALINFO(oParams)
.then((res) => {
_this.exportLoading = false
})
.catch((error) => {
_this.exportLoading = false
})
},
/** 获取服务商列表 */ /** 获取服务商列表 */
getService: function () { getService: function () {
let _this = this let _this = this
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!