|
@@ -4,7 +4,7 @@
|
|
|
<div class="ReceiptRecord-search">
|
|
|
<div class="ReceiptRecord-search-li">
|
|
|
<label style="margin-left: 0px;">关联团组:</label>
|
|
|
- <el-select multiple collapse-tags filterable style="width: 300px;" size="small" v-model="groupID" placeholder="请选择">
|
|
|
+ <el-select multiple collapse-tags filterable style="width: 235px;" size="small" v-model="groupID" placeholder="请选择">
|
|
|
<el-option
|
|
|
:style="item.id==0||item.id==-1?'color:#67c23a;':''"
|
|
|
v-for="item in groupNameData"
|
|
@@ -66,7 +66,8 @@
|
|
|
:picker-options="pickerOptionss">
|
|
|
</el-date-picker>
|
|
|
</div>
|
|
|
- <el-button style="margin-left: 10px;" @click="RecordsGoodsReceiveList" size="small" type="primary">查询</el-button>
|
|
|
+ <el-button style="margin-left: 10px;" @click="RecordsGoodsReceiveList(false)" size="small" type="primary">查询</el-button>
|
|
|
+ <el-button style="margin-left: 10px;" @click="RecordsGoodsReceiveList(true)" size="small" type="primary">导出</el-button>
|
|
|
</div>
|
|
|
<div class="ReceiptRecord-table">
|
|
|
<el-table
|
|
@@ -607,6 +608,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>
|
|
@@ -923,16 +925,16 @@ export default {
|
|
|
that.AddMaterialTypearr=res.data.data.goodsTypeData;
|
|
|
that.userNameData=res.data.data.userNameData;
|
|
|
that.groupNameData=res.data.data.groupNameData;
|
|
|
- that.groupNameData.unshift(
|
|
|
- {
|
|
|
- id:0,
|
|
|
- groupName:"其他物资(公司内部物资)"
|
|
|
- },
|
|
|
- {
|
|
|
- id:-1,
|
|
|
- groupName:"拜访客户所使用的物资"
|
|
|
- }
|
|
|
- )
|
|
|
+ // that.groupNameData.unshift(
|
|
|
+ // {
|
|
|
+ // id:0,
|
|
|
+ // groupName:"其他物资(公司内部物资)"
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // id:-1,
|
|
|
+ // groupName:"拜访客户所使用的物资"
|
|
|
+ // }
|
|
|
+ // )
|
|
|
// that.MaterialType=that.MaterialTypearr[0].id;
|
|
|
that.MaterialTypechange();
|
|
|
for (let k = 0; k < that.MaterialTypearr.length; k++) {
|
|
@@ -978,6 +980,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"
|
|
@@ -1044,11 +1068,11 @@ export default {
|
|
|
RSAuditSizeChange(val) {
|
|
|
this.RSAuditcurrentPage=1;
|
|
|
this.RSAuditpagesize=val;
|
|
|
- this.RecordsGoodsReceiveList();
|
|
|
+ this.RecordsGoodsReceiveList(false);
|
|
|
},
|
|
|
RSAuditCurrentChange(val) {
|
|
|
this.RSAuditcurrentPage=val;
|
|
|
- this.RecordsGoodsReceiveList();
|
|
|
+ this.RecordsGoodsReceiveList(false);
|
|
|
},
|
|
|
//新增按钮
|
|
|
addbtnclick(){
|
|
@@ -1397,10 +1421,10 @@ export default {
|
|
|
//查询领用记录
|
|
|
inquireRecords(){
|
|
|
this.ReceiptRecord=true;
|
|
|
- this.RecordsGoodsReceiveList();
|
|
|
+ this.RecordsGoodsReceiveList(false);
|
|
|
},
|
|
|
//领用记录
|
|
|
- RecordsGoodsReceiveList(){
|
|
|
+ RecordsGoodsReceiveList(isExcelDownload){
|
|
|
let groupID="";
|
|
|
for(let g=0;g<this.groupID.length;g++){
|
|
|
groupID+=this.groupID[g]+',';
|
|
@@ -1436,10 +1460,15 @@ export default {
|
|
|
groupLabel:groupID,
|
|
|
typeLabel:RSAuditTypes,
|
|
|
auditLabel:that.RSAuditStatus+"",
|
|
|
+ isExcelDownload:isExcelDownload,
|
|
|
}
|
|
|
}).then(function (res) {
|
|
|
if (res.data.code == 200) {
|
|
|
let Datalist=res.data;
|
|
|
+ if (isExcelDownload==true) {
|
|
|
+ window.open(Datalist.data.url)
|
|
|
+ return
|
|
|
+ }
|
|
|
that.RSAuditData=Datalist.data;
|
|
|
that.RSAuditcount=Datalist.count;
|
|
|
}else{
|
|
@@ -1480,6 +1509,7 @@ export default {
|
|
|
groupLabel:'',
|
|
|
typeLabel:'',
|
|
|
auditLabel:'',
|
|
|
+ isExcelDownload:false,
|
|
|
}
|
|
|
}).then(function (res) {
|
|
|
if (res.data.code == 200) {
|