|
@@ -65,7 +65,7 @@
|
|
|
<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="Deleteintolibraryreceive(scope.row)">删除</el-button>
|
|
|
+ <el-button size="mini" title="删除" type="danger" @click="Deleteintolibraryreceives(scope.row)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -433,7 +433,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <el-button @click="GoodsReceiveLists" type="primary">审核</el-button>
|
|
|
+ <el-button v-if="evocationdownloadqx" @click="GoodsReceiveLists" type="primary">审核</el-button>
|
|
|
<el-button @click="addbtnclick" type="primary">新增物品</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -629,6 +629,8 @@ export default {
|
|
|
//审核参数
|
|
|
ApprovalVisible:false,
|
|
|
ApprovalData:[],
|
|
|
+ //shqx
|
|
|
+ evocationdownloadqx:false,
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
@@ -803,7 +805,7 @@ export default {
|
|
|
},
|
|
|
//删除
|
|
|
handleDelete(index,row){
|
|
|
- this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
|
|
|
+ this.$confirm('此操作将永久删除, 是否继续?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
@@ -997,7 +999,7 @@ export default {
|
|
|
},
|
|
|
//删除入裤
|
|
|
Deleteintolibrary(row){
|
|
|
- this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
|
|
|
+ this.$confirm('此操作将永久删除, 是否继续?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
@@ -1079,7 +1081,7 @@ export default {
|
|
|
pageIndex:that.ApprovalcurrentPage,
|
|
|
pageSize:that.Approvalpagesize,
|
|
|
goodsId:0,
|
|
|
- currUserId:that.Userid,
|
|
|
+ currUserId:0,
|
|
|
}
|
|
|
}).then(function (res) {
|
|
|
if (res.data.code == 200) {
|
|
@@ -1104,7 +1106,7 @@ export default {
|
|
|
method: 'POST',
|
|
|
url: url,
|
|
|
headers: {
|
|
|
- Authorization: 'Bearer '
|
|
|
+ Authorization: 'Bearer ' +that.token
|
|
|
},
|
|
|
data:{
|
|
|
portType:1,
|
|
@@ -1192,9 +1194,45 @@ export default {
|
|
|
that.$message.error("操作错误,联系信息部!");
|
|
|
});
|
|
|
},
|
|
|
+ //审核列表删除
|
|
|
+ Deleteintolibraryreceives(row){
|
|
|
+ this.$confirm('此操作将永久删除, 是否继续?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ var url = "/api/PersonnelModule/GoodsReceiveDel/"+row.id
|
|
|
+ var that = this
|
|
|
+ this.$axios({
|
|
|
+ method: 'delete',
|
|
|
+ url: url,
|
|
|
+ headers: {
|
|
|
+ Authorization: 'Bearer ' +that.token
|
|
|
+ }
|
|
|
+ }).then(function (res) {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ that.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.msg
|
|
|
+ });
|
|
|
+ that.GoodsReceiveLists();
|
|
|
+ }else{
|
|
|
+ that.$message.error(res.data.msg);
|
|
|
+ }
|
|
|
+ }).catch(function (error) {
|
|
|
+ that.$message.error("操作错误,联系信息部!");
|
|
|
+ });
|
|
|
+
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消删除'
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
//删除领用
|
|
|
Deleteintolibraryreceive(row){
|
|
|
- this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
|
|
|
+ this.$confirm('此操作将永久删除, 是否继续?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
@@ -1259,6 +1297,22 @@ export default {
|
|
|
},
|
|
|
|
|
|
mounted(){
|
|
|
+ //权限
|
|
|
+ let authData=JSON.parse(localStorage.getItem('userinif')).authData;
|
|
|
+ let Permissions=[];
|
|
|
+ for(let k=0;k<authData.length;k++){
|
|
|
+ for(let m=0;m<authData[k].pageList.length;m++){
|
|
|
+ if (authData[k].pageList[m].webUrl=='/SuppliesInventory') {
|
|
|
+ Permissions=authData[k].pageList[m].pageAuth;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ for (let r = 0; r < Permissions.length; r++) {
|
|
|
+ if (Permissions[r].funid==12) {
|
|
|
+ this.evocationdownloadqx=true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
this.Userid=JSON.parse(localStorage.getItem('userinif')).userInfo.userId;
|
|
|
this.token=JSON.parse(localStorage.getItem('userinif')).token;
|
|
|
this.GoodsInitDataSource();
|