|
@@ -1,5 +1,131 @@
|
|
<template>
|
|
<template>
|
|
<div class="SuppliesInventory-all">
|
|
<div class="SuppliesInventory-all">
|
|
|
|
+ <el-dialog top="10vh" width="1500px" title="领用记录" :visible.sync="ReceiptRecord">
|
|
|
|
+ <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-option
|
|
|
|
+ v-for="item in groupNameData"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ :label="item.groupName"
|
|
|
|
+ :value="item.id">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="ReceiptRecord-search-li">
|
|
|
|
+ <label>领用人员:</label>
|
|
|
|
+ <el-select multiple collapse-tags filterable style="width: 180px;" size="small" v-model="personnelID" placeholder="请选择">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in userNameData"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ :label="item.userName"
|
|
|
|
+ :value="item.id">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="ReceiptRecord-search-li">
|
|
|
|
+ <label>审核状态:</label>
|
|
|
|
+ <el-select style="width: 120px;" size="small" v-model="RSAuditStatus" placeholder="请选择">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in options"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.value">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="ReceiptRecord-search-li">
|
|
|
|
+ <label>物品名称:</label>
|
|
|
|
+ <el-input style="width: 160px;" size="small" placeholder="请输入物品名称" v-model="RSAuditname" clearable></el-input>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="ReceiptRecord-search-li">
|
|
|
|
+ <label>领用时间段:</label>
|
|
|
|
+ <el-date-picker
|
|
|
|
+ size="small"
|
|
|
|
+ style="width: 240px;"
|
|
|
|
+ v-model="RSAudittime"
|
|
|
|
+ type="daterange"
|
|
|
|
+ align="right"
|
|
|
|
+ unlink-panels
|
|
|
|
+ range-separator="至"
|
|
|
|
+ start-placeholder="开始日期"
|
|
|
|
+ end-placeholder="结束日期"
|
|
|
|
+ :picker-options="pickerOptionss">
|
|
|
|
+ </el-date-picker>
|
|
|
|
+ </div>
|
|
|
|
+ <el-button style="margin-left: 10px;" @click="inquireRecords" size="small" type="primary">查询</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="ReceiptRecord-table">
|
|
|
|
+ <el-table
|
|
|
|
+ :data="ApprovalData"
|
|
|
|
+ border
|
|
|
|
+ style="width: 100%">
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="goodsName"
|
|
|
|
+ label="物品名称"
|
|
|
|
+ width="180">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="quantity"
|
|
|
|
+ label="数量"
|
|
|
|
+ width="50">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="createTime"
|
|
|
|
+ label="申请时间"
|
|
|
|
+ width="150">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="createUserName"
|
|
|
|
+ label="申请人"
|
|
|
|
+ width="70">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="reason"
|
|
|
|
+ label="申请原因"
|
|
|
|
+ width="80">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-popover
|
|
|
|
+ placement="top"
|
|
|
|
+ width="300"
|
|
|
|
+ trigger="hover">
|
|
|
|
+ {{scope.row.reason}}
|
|
|
|
+ <span style="display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden;cursor: pointer;color: #48a2ff;" slot="reference">{{scope.row.reason}}</span>
|
|
|
|
+ </el-popover>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="remark"
|
|
|
|
+ label="备注">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-popover
|
|
|
|
+ placement="top"
|
|
|
|
+ width="300"
|
|
|
|
+ trigger="hover">
|
|
|
|
+ {{scope.row.remark}}
|
|
|
|
+ <span style="display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden;cursor: pointer;color: #48a2ff;" slot="reference">{{scope.row.remark}}</span>
|
|
|
|
+ </el-popover>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="auditStatusText"
|
|
|
|
+ label="审核状态"
|
|
|
|
+ width="100">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="操作"
|
|
|
|
+ width="250">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-button v-if="scope.row.auditStatus==0||scope.row.auditStatus==2" size="mini" type="primary" title="通过" @click="GoodsReceiveAudit(scope.row.id,1)" >通过</el-button>
|
|
|
|
+ <el-button v-if="scope.row.auditStatus==0" size="mini" type="info" title="不通过" @click="GoodsReceiveAudit(scope.row.id,2)">不通过</el-button>
|
|
|
|
+ <el-button v-if="scope.row.auditStatus==1" size="mini" type="warning" title="取消通过" @click="GoodsReceiveAudit(scope.row.id,0)">取消通过</el-button>
|
|
|
|
+ <el-button size="mini" title="删除" type="danger" @click="Deleteintolibraryreceives(scope.row)">删除</el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ </div>
|
|
|
|
+ </el-dialog>
|
|
<el-dialog top="10vh" class="Approval-dialog" width="1100px" title="领用审核" :visible.sync="ApprovalVisible">
|
|
<el-dialog top="10vh" class="Approval-dialog" width="1100px" title="领用审核" :visible.sync="ApprovalVisible">
|
|
<el-select @change="typevaluechange" style="width: 150px;margin-bottom: 10px;" size="small" v-model="typevalue" placeholder="请选择">
|
|
<el-select @change="typevaluechange" style="width: 150px;margin-bottom: 10px;" size="small" v-model="typevalue" placeholder="请选择">
|
|
<el-option
|
|
<el-option
|
|
@@ -509,6 +635,33 @@
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ pickerOptionss: {
|
|
|
|
+ shortcuts: [{
|
|
|
|
+ text: '最近一周',
|
|
|
|
+ onClick(picker) {
|
|
|
|
+ const end = new Date();
|
|
|
|
+ const start = new Date();
|
|
|
|
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
|
|
|
+ picker.$emit('pick', [start, end]);
|
|
|
|
+ }
|
|
|
|
+ }, {
|
|
|
|
+ text: '最近一个月',
|
|
|
|
+ onClick(picker) {
|
|
|
|
+ const end = new Date();
|
|
|
|
+ const start = new Date();
|
|
|
|
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
|
|
|
+ picker.$emit('pick', [start, end]);
|
|
|
|
+ }
|
|
|
|
+ }, {
|
|
|
|
+ text: '最近三个月',
|
|
|
|
+ onClick(picker) {
|
|
|
|
+ const end = new Date();
|
|
|
|
+ const start = new Date();
|
|
|
|
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
|
|
|
+ picker.$emit('pick', [start, end]);
|
|
|
|
+ }
|
|
|
|
+ }]
|
|
|
|
+ },
|
|
pickerOptions: {
|
|
pickerOptions: {
|
|
shortcuts: [{
|
|
shortcuts: [{
|
|
text: '今天',
|
|
text: '今天',
|
|
@@ -663,6 +816,16 @@ export default {
|
|
Editpermission:false,
|
|
Editpermission:false,
|
|
Addpermission:false,
|
|
Addpermission:false,
|
|
Deletepermission:false,
|
|
Deletepermission:false,
|
|
|
|
+ //领用记录
|
|
|
|
+ ReceiptRecord:true,
|
|
|
|
+ groupID:[],
|
|
|
|
+ groupIDarr:[],
|
|
|
|
+ personnelID:[],
|
|
|
|
+ personnelIDarr:[],
|
|
|
|
+ RSAuditStatus:'',
|
|
|
|
+ RSAuditname:'',
|
|
|
|
+ RSAudittime:''
|
|
|
|
+
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
@@ -1126,6 +1289,7 @@ export default {
|
|
goodsName:'',
|
|
goodsName:'',
|
|
beginDt:'',
|
|
beginDt:'',
|
|
endDt:'',
|
|
endDt:'',
|
|
|
|
+ groupLabel:'',
|
|
typeLabel:'',
|
|
typeLabel:'',
|
|
auditLabel:that.typevalue+'',
|
|
auditLabel:that.typevalue+'',
|
|
}
|
|
}
|
|
@@ -1140,6 +1304,56 @@ export default {
|
|
that.$message.error("操作错误,联系信息部!");
|
|
that.$message.error("操作错误,联系信息部!");
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ //查询领用记录
|
|
|
|
+ inquireRecords(){
|
|
|
|
+ for(let g=0;g<this.groupID.length;g++){
|
|
|
|
+ this.groupID+=this.groupID[g]+','
|
|
|
|
+ }
|
|
|
|
+ // this.groupID=this.groupID.substring(0, this.groupID.length - 1);
|
|
|
|
+ // for (let p = 0; p < this.personnelID.length; p++) {
|
|
|
|
+ // this.personnelID += this.personnelID[p]+',';
|
|
|
|
+ // }
|
|
|
|
+ // this.personnelID=this.personnelID.substring(0, this.personnelID.length - 1);
|
|
|
|
+ console.log(this.groupID);
|
|
|
|
+ console.log(this.personnelID);
|
|
|
|
+ console.log(this.RSAuditStatus);
|
|
|
|
+ console.log(this.RSAuditname);
|
|
|
|
+ console.log(this.RSAudittime);
|
|
|
|
+ },
|
|
|
|
+ //领用记录
|
|
|
|
+ RecordsGoodsReceiveList(){
|
|
|
|
+ var url = "/api/PersonnelModule/GoodsReceiveList"
|
|
|
|
+ var that = this
|
|
|
|
+ this.$axios({
|
|
|
|
+ method: 'POST',
|
|
|
|
+ url: url,
|
|
|
|
+ headers: {
|
|
|
|
+ Authorization: 'Bearer ' +that.token
|
|
|
|
+ },
|
|
|
|
+ data:{
|
|
|
|
+ portType:1,
|
|
|
|
+ pageIndex:1,
|
|
|
|
+ pageSize:10,
|
|
|
|
+ goodsId:0,
|
|
|
|
+ userLabel:that.Userid+'',
|
|
|
|
+ goodsName:'',
|
|
|
|
+ beginDt:'',
|
|
|
|
+ endDt:'',
|
|
|
|
+ groupLabel:'',
|
|
|
|
+ typeLabel:'',
|
|
|
|
+ auditLabel:'',
|
|
|
|
+ }
|
|
|
|
+ }).then(function (res) {
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ that.ClaimitemData=res.data.data;
|
|
|
|
+ that.Claimitemcount=res.data.count;
|
|
|
|
+ }else{
|
|
|
|
+ that.$message.error(res.data.msg);
|
|
|
|
+ }
|
|
|
|
+ }).catch(function (error) {
|
|
|
|
+ that.$message.error("操作错误,联系信息部!");
|
|
|
|
+ });
|
|
|
|
+ },
|
|
//领用列表
|
|
//领用列表
|
|
GoodsReceiveList(row){
|
|
GoodsReceiveList(row){
|
|
this.Claimitemlabel="";
|
|
this.Claimitemlabel="";
|
|
@@ -1168,6 +1382,7 @@ export default {
|
|
goodsName:'',
|
|
goodsName:'',
|
|
beginDt:'',
|
|
beginDt:'',
|
|
endDt:'',
|
|
endDt:'',
|
|
|
|
+ groupLabel:'',
|
|
typeLabel:'',
|
|
typeLabel:'',
|
|
auditLabel:'',
|
|
auditLabel:'',
|
|
}
|
|
}
|
|
@@ -1500,8 +1715,30 @@ export default {
|
|
text-align: center;
|
|
text-align: center;
|
|
margin-top: 10px;
|
|
margin-top: 10px;
|
|
}
|
|
}
|
|
|
|
+.ReceiptRecord-table .el-table th.el-table__cell>.cell{
|
|
|
|
+ text-align: center;
|
|
|
|
+ font-size: 12px;
|
|
|
|
+}
|
|
|
|
+.ReceiptRecord-table .el-table td.el-table__cell div{
|
|
|
|
+ font-size: 12px;
|
|
|
|
+}
|
|
|
|
+.ReceiptRecord-table .block{
|
|
|
|
+ text-align: center;
|
|
|
|
+ margin-top: 10px;
|
|
|
|
+}
|
|
.Approval-dialog .el-dialog__body{
|
|
.Approval-dialog .el-dialog__body{
|
|
padding-top: 0px;
|
|
padding-top: 0px;
|
|
|
|
|
|
}
|
|
}
|
|
-</style>
|
|
|
|
|
|
+.ReceiptRecord-search{
|
|
|
|
+ display: flex;
|
|
|
|
+}
|
|
|
|
+.ReceiptRecord-search-li label{
|
|
|
|
+ margin-left: 10px;
|
|
|
|
+}
|
|
|
|
+.ReceiptRecord-table{
|
|
|
|
+ margin-top: 15px;
|
|
|
|
+}
|
|
|
|
+</style>
|
|
|
|
+
|
|
|
|
+
|