|
@@ -607,6 +607,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div>
|
|
|
+ <el-button v-if="Auditauthority" @click="GoodsStorageExcelDownload" type="primary">入库记录导出</el-button>
|
|
|
<el-button v-if="Auditauthority" @click="inquireRecords" type="primary">领用记录</el-button>
|
|
|
<el-button v-if="Auditauthority" @click="GoodsReceiveLists" type="primary">审核</el-button>
|
|
|
<el-button v-if="Addpermission" @click="addbtnclick" type="primary">新增物品</el-button>
|
|
@@ -978,6 +979,28 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ //入库导出
|
|
|
+ GoodsStorageExcelDownload(){
|
|
|
+ var url = "/api/PersonnelModule/GoodsStorageExcelDownload"
|
|
|
+ var that = this
|
|
|
+ this.$axios({
|
|
|
+ method: 'post',
|
|
|
+ url: url,
|
|
|
+ headers: {
|
|
|
+ Authorization: 'Bearer '+ that.token
|
|
|
+ },
|
|
|
+ }).then(function (res) {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ window.open(res.data.data.url);
|
|
|
+ that.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.msg
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }).catch(function (error) {
|
|
|
+ that.$message.error("操作错误,联系信息部!");
|
|
|
+ });
|
|
|
+ },
|
|
|
//获取列表
|
|
|
GoodsList() {
|
|
|
var url = "/api/PersonnelModule/GoodsList"
|