Merge remote-tracking branch 'origin/master'
commit
60beeb8244
@ -0,0 +1,27 @@
|
|||||||
|
import axios from "../../utils/request";
|
||||||
|
|
||||||
|
export function filterList(params) {
|
||||||
|
return axios({
|
||||||
|
url: "/udiwms/inv/device/inspect/plan/filter",
|
||||||
|
method: "get",
|
||||||
|
params: params
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getRepairList(params) {
|
||||||
|
return axios({
|
||||||
|
url: "/udiwms/inv/device/repair/order/filter",
|
||||||
|
method: "get",
|
||||||
|
params: params
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getMaintenanceList(params) {
|
||||||
|
return axios({
|
||||||
|
url: "/udiwms/inv/device/inspect/order/filter",
|
||||||
|
method: "get",
|
||||||
|
params: params
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
|||||||
|
import axios from "@/utils/request";
|
||||||
|
|
||||||
|
export function findInspectSet(params) {
|
||||||
|
return axios({
|
||||||
|
url: "/udiwms/inv/device/inspect/set/findInspectSet",
|
||||||
|
method: "get",
|
||||||
|
params: params
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export function saveDeviceInspect(data, type) {
|
||||||
|
return axios({
|
||||||
|
url: type == "add" ?"/udiwms/inv/device/inspect/set/addDeviceInspect" : "/udiwms/inv/device/inspect/set/updateInspectSet",
|
||||||
|
method: "post",
|
||||||
|
data: data
|
||||||
|
});
|
||||||
|
}
|
@ -0,0 +1,306 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-card class="el-card">
|
||||||
|
<el-form :model="filterQuery" class="query-form" size="mini" :inline="true">
|
||||||
|
<el-form-item class="query-form-item" label="领用记录号:">
|
||||||
|
<el-input v-model="filterQuery.orderId" placeholder="请输入领用记录号"
|
||||||
|
clearable="true"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="query-form-item" label="领用部门:">
|
||||||
|
<el-select v-model="filterQuery.deptCode" placeholder="请选择部门" clearable="true"
|
||||||
|
@change="deptChange"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in deptList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="query-form-item" label="出库仓库:">
|
||||||
|
<el-select v-model="filterQuery.fromInvCode" placeholder="请选择仓库" clearable="true"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in invList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<!--<el-form-item class="query-form-item" label="领用货位:">
|
||||||
|
<el-select v-model="filterQuery.fromInvSpaceCode" placeholder="请选择货位" clearable="true"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in spaceList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>-->
|
||||||
|
<el-form-item>
|
||||||
|
<el-button-group style="margin-left: 10px;display:flex;">
|
||||||
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
||||||
|
<el-button type="primary" icon="el-icon-search" @click="onSubmit">查询</el-button>
|
||||||
|
<el-button type="primary" icon="el-icon-plus" @click="addReceiveOrder">新增领用记录</el-button>
|
||||||
|
</el-button-group>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row
|
||||||
|
border>
|
||||||
|
<el-table-column label="序号" type="index"></el-table-column>
|
||||||
|
<el-table-column label="设备领用记录号" prop="orderId"></el-table-column>
|
||||||
|
<el-table-column label="领用部门" prop="fromDeptName"></el-table-column>
|
||||||
|
<el-table-column label="出库仓库" prop="fromInvName"></el-table-column>
|
||||||
|
<!-- <el-table-column label="领用货位" prop="fromInvSpaceName"></el-table-column>-->
|
||||||
|
<el-table-column label="领用日期" prop="createTime"></el-table-column>
|
||||||
|
<el-table-column label="领用人" prop="receiveUserName"></el-table-column>
|
||||||
|
<el-table-column label="创建人" prop="createUser"></el-table-column>
|
||||||
|
<el-table-column label="状态" prop="status" show-overflow-tooltip width="120">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tag>{{ statusMap[scope.row.status] }}</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
@click.native.stop="editOrder(scope.row)"
|
||||||
|
>编辑
|
||||||
|
</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
@click.native.stop="submitAudit(scope.row)"
|
||||||
|
>提交审核
|
||||||
|
</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
@click.native.stop="deleteDialog(scope.row.id)"
|
||||||
|
>删除
|
||||||
|
</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:limit.sync="filterQuery.limit"
|
||||||
|
:page.sync="filterQuery.page"
|
||||||
|
@pagination="getList"
|
||||||
|
></pagination>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
<el-dialog
|
||||||
|
:title="formMap[formName]"
|
||||||
|
:visible.sync="formVisible"
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
:close-on-press-escape="false"
|
||||||
|
width="85%"
|
||||||
|
v-if="formVisible"
|
||||||
|
>
|
||||||
|
<deviceReceiveOrderModify
|
||||||
|
:deviceReceiveOrder="deviceReceiveOrder"
|
||||||
|
:closeDialog="closeDialog"
|
||||||
|
></deviceReceiveOrderModify>
|
||||||
|
</el-dialog>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {getDeptListByUser} from "@/api/auth/authDept";
|
||||||
|
import {findInvByUser} from "@/api/system/invSubWarehouse";
|
||||||
|
import {getInvSpaceList} from "@/api/inventory/invSpace";
|
||||||
|
import deviceReceiveOrderModify from "@/views/inventory/DeviceReceiveOrderModify.vue";
|
||||||
|
import {submitAudit, deleteDeviceReceiveOrder, getDeviceReceiveOrderList} from "@/api/inventory/deviceReceiveOrder";
|
||||||
|
import {getMaintenanceList} from "@/api/inventory/InspectionPlan";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "DeviceReceiveOrderNew",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
filterQuery: {
|
||||||
|
orderId: null,
|
||||||
|
deptCode: this.$store.getters.locDeptCode,
|
||||||
|
fromInvCode: null,
|
||||||
|
fromInvSpaceCode: null,
|
||||||
|
status: 0,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
},
|
||||||
|
list: [],
|
||||||
|
total: 0,
|
||||||
|
deptList: [],
|
||||||
|
invList: [],
|
||||||
|
spaceList: [],
|
||||||
|
loading: false,
|
||||||
|
formVisible: false,
|
||||||
|
codeTableLoading: false,
|
||||||
|
statusMap: {
|
||||||
|
0: "草稿",
|
||||||
|
1: "未审核",
|
||||||
|
2: "已审核"
|
||||||
|
},
|
||||||
|
formName: null,
|
||||||
|
formMap: {
|
||||||
|
add: "新增设备领用记录",
|
||||||
|
edit: "编辑设备领用记录"
|
||||||
|
},
|
||||||
|
deviceReceiveOrder: {},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
onReset() {
|
||||||
|
this.$router.push({
|
||||||
|
path: "",
|
||||||
|
});
|
||||||
|
this.filterQuery = {
|
||||||
|
orderId: null,
|
||||||
|
deptCode: this.$store.getters.locDeptCode,
|
||||||
|
fromInvCode: null,
|
||||||
|
fromInvSpaceCode: null,
|
||||||
|
status: 0,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
};
|
||||||
|
this.spaceList = [];
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
onSubmit() {
|
||||||
|
this.filterQuery.page = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
getMaintenanceList(this.filterQuery).then((res) => {
|
||||||
|
this.loading = false;
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.list = res.data.list || [];
|
||||||
|
this.total = res.data.total || 0;
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
this.loading = false;
|
||||||
|
this.$message.error(error.message);
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
deptChange() {
|
||||||
|
this.invList = [];
|
||||||
|
this.spaceList = [];
|
||||||
|
this.filterQuery.fromInvCode = null;
|
||||||
|
this.filterQuery.fromInvSpaceCode = null;
|
||||||
|
this.getInvList();
|
||||||
|
},
|
||||||
|
getDeptList() {
|
||||||
|
getDeptListByUser().then((res) => {
|
||||||
|
this.deptList = res.data || [];
|
||||||
|
this.getInvList();
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
invChange() {
|
||||||
|
this.spaceList = [];
|
||||||
|
this.filterQuery.fromInvSpaceCode = null;
|
||||||
|
this.getSpaceList();
|
||||||
|
},
|
||||||
|
getInvList() {
|
||||||
|
let params = {deptCode: this.filterQuery.deptCode};
|
||||||
|
findInvByUser(params)
|
||||||
|
.then((response) => {
|
||||||
|
this.invList = response.data || [];
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getSpaceList() {
|
||||||
|
let params = {invWarehouseCode: this.filterQuery.fromInvCode,invStorageCode:this.filterQuery.fromInvCode.deptCode, status: 1};
|
||||||
|
getInvSpaceList(params).then((res) => {
|
||||||
|
this.spaceList = res.data.list || [];
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
},
|
||||||
|
addReceiveOrder() {
|
||||||
|
this.formVisible = true;
|
||||||
|
this.formName = 'add';
|
||||||
|
this.deviceReceiveOrder = {};
|
||||||
|
},
|
||||||
|
editOrder(row) {
|
||||||
|
this.formVisible = true;
|
||||||
|
this.formName = 'edit';
|
||||||
|
this.deviceReceiveOrder = row;
|
||||||
|
},
|
||||||
|
submitAudit(row) {
|
||||||
|
let params = {id: row.id};
|
||||||
|
submitAudit(params).then((res) => {
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.$message.success("提交成功!");
|
||||||
|
this.getList();
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$message.error(error.message);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
deleteDialog(rowId) {
|
||||||
|
this.$confirm('此操作将永久删除该领用记录, 是否继续?', '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
let params = {id: rowId};
|
||||||
|
this.loading = true;
|
||||||
|
deleteDeviceReceiveOrder(params).then((res) => {
|
||||||
|
this.loading = false;
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.$message.success("删除成功!");
|
||||||
|
this.getList();
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
closeDialog() {
|
||||||
|
this.formVisible = false;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
deviceReceiveOrderModify
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
document.body.ondrop = function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getDeptList();
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style type="text/scss" lang="scss">
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,352 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-card class="el-card">
|
||||||
|
<el-form :model="filterQuery" class="query-form" size="mini" :inline="true">
|
||||||
|
<el-form-item class="query-form-item" label="领用记录号:">
|
||||||
|
<el-input v-model="filterQuery.orderId" placeholder="请输入领用记录号"
|
||||||
|
clearable="true"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="query-form-item" label="领用部门:">
|
||||||
|
<el-select v-model="filterQuery.deptCode" placeholder="请选择部门" clearable="true"
|
||||||
|
@change="deptChange"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in deptList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="query-form-item" label="领用仓库:">
|
||||||
|
<el-select v-model="filterQuery.fromInvCode" placeholder="请选择仓库" clearable="true"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in invList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item class="query-form-item" label="领用货位:">
|
||||||
|
<el-select v-model="filterQuery.fromInvSpaceCode" placeholder="请选择货位" clearable="true"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in spaceList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>-->
|
||||||
|
<el-form-item>
|
||||||
|
<el-button-group style="margin-left: 10px;display:flex;">
|
||||||
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
||||||
|
<el-button type="primary" icon="el-icon-search" @click="onSubmit">查询</el-button>
|
||||||
|
</el-button-group>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row
|
||||||
|
@current-change="handleChange"
|
||||||
|
border>
|
||||||
|
<el-table-column label="序号" type="index"></el-table-column>
|
||||||
|
<el-table-column label="设备领用记录号" prop="orderId"></el-table-column>
|
||||||
|
<el-table-column label="领用部门" prop="fromDeptName"></el-table-column>
|
||||||
|
<el-table-column label="领用仓库" prop="fromInvName"></el-table-column>
|
||||||
|
<!-- <el-table-column label="领用货位" prop="fromInvSpaceName"></el-table-column>-->
|
||||||
|
<el-table-column label="领用日期" prop="createTime"></el-table-column>
|
||||||
|
<el-table-column label="领用人" prop="receiveUserName"></el-table-column>
|
||||||
|
<el-table-column label="创建人" prop="createUser"></el-table-column>
|
||||||
|
<el-table-column label="状态" prop="status" show-overflow-tooltip width="120">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tag>{{ statusMap[scope.row.status] }}</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
@click.native.stop="auditOrder(scope.row)"
|
||||||
|
>审核
|
||||||
|
</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
@click.native.stop="deleteDialog(scope.row.id)"
|
||||||
|
>删除
|
||||||
|
</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:limit.sync="filterQuery.limit"
|
||||||
|
:page.sync="filterQuery.page"
|
||||||
|
@pagination="getList"
|
||||||
|
></pagination>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
<el-card>
|
||||||
|
<el-table v-loading="detailLoading" :data="detailList" style="width: 100%; margin-top: 10px;">
|
||||||
|
<el-table-column label="序号" type="index" width="50"></el-table-column>
|
||||||
|
<el-table-column label="条码" width="200" prop="code" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="产品通用名" prop="productName" width="200"></el-table-column>
|
||||||
|
<el-table-column label="规格型号" prop="ggxh" width="200" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="批次号" prop="batchNo" width="200"></el-table-column>
|
||||||
|
<el-table-column label="序列号" prop="serialNo" width="150"></el-table-column>
|
||||||
|
<el-table-column label="领用日期" prop="createTime" width="150"></el-table-column>
|
||||||
|
<el-table-column label="生产日期" prop="productionDate" width="150"></el-table-column>
|
||||||
|
<el-table-column label="失效日期" prop="expireDate" width="150"></el-table-column>
|
||||||
|
<el-table-column label="注册/备案凭证号" prop="zczbhhzbapzbh" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="生产企业" prop="ylqxzcrbarmc" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="供应商" prop="supName" show-overflow-tooltip></el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="detailTotal>0"
|
||||||
|
:total="detailTotal"
|
||||||
|
:limit.sync="detailQuery.limit"
|
||||||
|
:page.sync="detailQuery.page"
|
||||||
|
@pagination="getDetailList"
|
||||||
|
></pagination>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {getDeptListByUser} from "@/api/auth/authDept";
|
||||||
|
import {findInvByUser} from "@/api/system/invSubWarehouse";
|
||||||
|
import {getInvSpaceList} from "@/api/inventory/invSpace";
|
||||||
|
import {
|
||||||
|
getDeviceReceiveOrderDetailList,
|
||||||
|
updateDeviceReceiveOrderStatus,
|
||||||
|
deleteDeviceReceiveOrder,
|
||||||
|
getDeviceReceiveOrderList
|
||||||
|
} from "@/api/inventory/deviceReceiveOrder";
|
||||||
|
import {getMaintenanceList} from "@/api/inventory/InspectionPlan";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "DeviceReceiveOrderAudit",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
filterQuery: {
|
||||||
|
orderId: null,
|
||||||
|
deptCode: this.$store.getters.locDeptCode,
|
||||||
|
fromInvCode: null,
|
||||||
|
fromInvSpaceCode: null,
|
||||||
|
status: 1,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
},
|
||||||
|
list: [],
|
||||||
|
total: 0,
|
||||||
|
deptList: [],
|
||||||
|
invList: [],
|
||||||
|
spaceList: [],
|
||||||
|
loading: false,
|
||||||
|
statusMap: {
|
||||||
|
0: "草稿",
|
||||||
|
1: "未审核",
|
||||||
|
2: "已审核"
|
||||||
|
},
|
||||||
|
detailQuery: {
|
||||||
|
orderIdFk: null,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
},
|
||||||
|
detailList: [],
|
||||||
|
detailLoading: false,
|
||||||
|
detailTotal: 0
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
onReset() {
|
||||||
|
this.$router.push({
|
||||||
|
path: "",
|
||||||
|
});
|
||||||
|
this.filterQuery = {
|
||||||
|
orderId: null,
|
||||||
|
deptCode: this.$store.getters.locDeptCode,
|
||||||
|
fromInvCode: null,
|
||||||
|
fromInvSpaceCode: null,
|
||||||
|
status: 1,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
};
|
||||||
|
this.spaceList = [];
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
onSubmit() {
|
||||||
|
this.filterQuery.page = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
getMaintenanceList(this.filterQuery).then((res) => {
|
||||||
|
this.loading = false;
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.list = res.data.list || [];
|
||||||
|
this.total = res.data.total || 0;
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
this.loading = false;
|
||||||
|
this.$message.error(error.message);
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
deptChange() {
|
||||||
|
this.invList = [];
|
||||||
|
this.spaceList = [];
|
||||||
|
this.filterQuery.fromInvCode = null;
|
||||||
|
this.filterQuery.fromInvSpaceCode = null;
|
||||||
|
this.getInvList();
|
||||||
|
},
|
||||||
|
getDeptList() {
|
||||||
|
getDeptListByUser().then((res) => {
|
||||||
|
this.deptList = res.data || [];
|
||||||
|
this.getInvList();
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
invChange() {
|
||||||
|
this.spaceList = [];
|
||||||
|
this.filterQuery.fromInvSpaceCode = null;
|
||||||
|
this.getSpaceList();
|
||||||
|
},
|
||||||
|
getInvList() {
|
||||||
|
let params = {deptCode: this.filterQuery.deptCode};
|
||||||
|
findInvByUser(params)
|
||||||
|
.then((response) => {
|
||||||
|
this.invList = response.data || [];
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getSpaceList() {
|
||||||
|
let params = {invWarehouseCode: this.filterQuery.fromInvCode,invStorageCode:this.filterQuery.fromInvCode.deptCode, status: 1};
|
||||||
|
getInvSpaceList(params).then((res) => {
|
||||||
|
this.spaceList = res.data.list || [];
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
},
|
||||||
|
auditOrder(row) {
|
||||||
|
this.$confirm('请选择审核意见', '提示', {
|
||||||
|
confirmButtonText: '通过',
|
||||||
|
cancelButtonText: '驳回',
|
||||||
|
type: 'warning',
|
||||||
|
center: true,
|
||||||
|
closeOnPressEscape: false,//按下 ESC 键关闭弹窗
|
||||||
|
closeOnClickModal: false,//点击遮罩关闭弹窗
|
||||||
|
distinguishCancelAndClose: true,//区分取消与关闭
|
||||||
|
}).then(() => {
|
||||||
|
let params = {
|
||||||
|
id: row.id,
|
||||||
|
status: 2
|
||||||
|
};
|
||||||
|
updateDeviceReceiveOrderStatus(params).then((res) => {
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.$message.success("审核通过!");
|
||||||
|
this.getList();
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$message.error(error.message);
|
||||||
|
})
|
||||||
|
}).catch((action) => {
|
||||||
|
if (action === "cancel") {
|
||||||
|
let params = {
|
||||||
|
id: row.id,
|
||||||
|
status: 0
|
||||||
|
};
|
||||||
|
updateDeviceReceiveOrderStatus(params).then((res) => {
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.$message.success("已驳回!")
|
||||||
|
this.getList();
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$message.error(error.message);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleChange(row) {
|
||||||
|
this.detailQuery.orderIdFk = row.orderId;
|
||||||
|
this.detailQuery.page = 1;
|
||||||
|
this.getDetailList();
|
||||||
|
},
|
||||||
|
getDetailList() {
|
||||||
|
getDeviceReceiveOrderDetailList(this.detailQuery).then((res) => {
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.detailList = res.data.list || [];
|
||||||
|
this.detailTotal = res.data.total || 0;
|
||||||
|
} else {
|
||||||
|
this.detailList = [];
|
||||||
|
this.detailTotal = 0;
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.detailList = [];
|
||||||
|
this.detailTotal = 0;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
deleteDialog(rowId) {
|
||||||
|
this.$confirm('此操作将永久删除该领用记录, 是否继续?', '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
let params = {id: rowId};
|
||||||
|
this.loading = true;
|
||||||
|
deleteDeviceReceiveOrder(params).then((res) => {
|
||||||
|
this.loading = false;
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.$message.success("删除成功!");
|
||||||
|
this.getList();
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
closeDialog() {
|
||||||
|
this.formVisible = false;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
document.body.ondrop = function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getDeptList();
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style type="text/scss" lang="scss">
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,272 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-card class="el-card">
|
||||||
|
<el-form :model="filterQuery" class="query-form" size="mini" :inline="true">
|
||||||
|
<el-form-item class="query-form-item" label="领用记录号:">
|
||||||
|
<el-input v-model="filterQuery.orderId" placeholder="请输入领用记录号"
|
||||||
|
clearable="true"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="query-form-item" label="领用部门:">
|
||||||
|
<el-select v-model="filterQuery.deptCode" placeholder="请选择部门" clearable="true"
|
||||||
|
@change="deptChange"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in deptList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="query-form-item" label="领用仓库:">
|
||||||
|
<el-select v-model="filterQuery.fromInvCode" placeholder="请选择仓库" clearable="true"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in invList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item class="query-form-item" label="领用货位:">
|
||||||
|
<el-select v-model="filterQuery.fromInvSpaceCode" placeholder="请选择货位" clearable="true"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in spaceList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>-->
|
||||||
|
<el-form-item>
|
||||||
|
<el-button-group style="margin-left: 10px;display:flex;">
|
||||||
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
||||||
|
<el-button type="primary" icon="el-icon-search" @click="onSubmit">查询</el-button>
|
||||||
|
</el-button-group>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row
|
||||||
|
@current-change="handleChange"
|
||||||
|
border>
|
||||||
|
<el-table-column label="序号" type="index"></el-table-column>
|
||||||
|
<el-table-column label="设备领用记录号" prop="orderId"></el-table-column>
|
||||||
|
<el-table-column label="领用部门" prop="fromDeptName"></el-table-column>
|
||||||
|
<el-table-column label="领用仓库" prop="fromInvName"></el-table-column>
|
||||||
|
<!-- <el-table-column label="领用货位" prop="fromInvSpaceName"></el-table-column>-->
|
||||||
|
<el-table-column label="领用日期" prop="createTime"></el-table-column>
|
||||||
|
<el-table-column label="领用人" prop="receiveUserName"></el-table-column>
|
||||||
|
<el-table-column label="创建人" prop="createUser"></el-table-column>
|
||||||
|
<el-table-column label="状态" prop="status" show-overflow-tooltip width="120">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tag>{{ statusMap[scope.row.status] }}</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:limit.sync="filterQuery.limit"
|
||||||
|
:page.sync="filterQuery.page"
|
||||||
|
@pagination="getList"
|
||||||
|
></pagination>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
<el-card>
|
||||||
|
<el-table v-loading="detailLoading" :data="detailList" style="width: 100%; margin-top: 10px;">
|
||||||
|
<el-table-column label="序号" type="index" width="50"></el-table-column>
|
||||||
|
<el-table-column label="条码" width="200" prop="code" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="产品通用名" prop="productName" width="200"></el-table-column>
|
||||||
|
<el-table-column label="规格型号" prop="ggxh" width="200" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="批次号" prop="batchNo" width="200"></el-table-column>
|
||||||
|
<el-table-column label="序列号" prop="serialNo" width="150"></el-table-column>
|
||||||
|
<el-table-column label="领用日期" prop="createTime" width="150"></el-table-column>
|
||||||
|
<el-table-column label="生产日期" prop="productionDate" width="150"></el-table-column>
|
||||||
|
<el-table-column label="失效日期" prop="expireDate" width="150"></el-table-column>
|
||||||
|
<el-table-column label="注册/备案凭证号" prop="zczbhhzbapzbh" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="生产企业" prop="ylqxzcrbarmc" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="供应商" prop="supName" show-overflow-tooltip></el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="detailTotal>0"
|
||||||
|
:total="detailTotal"
|
||||||
|
:limit.sync="detailQuery.limit"
|
||||||
|
:page.sync="detailQuery.page"
|
||||||
|
@pagination="getDetailList"
|
||||||
|
></pagination>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {getDeptListByUser} from "@/api/auth/authDept";
|
||||||
|
import {findInvByUser} from "@/api/system/invSubWarehouse";
|
||||||
|
import {getInvSpaceList} from "@/api/inventory/invSpace";
|
||||||
|
import {
|
||||||
|
getDeviceReceiveOrderDetailList,
|
||||||
|
getDeviceReceiveOrderList
|
||||||
|
} from "@/api/inventory/deviceReceiveOrder";
|
||||||
|
import {getMaintenanceList} from "@/api/inventory/InspectionPlan";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "DeviceReceiveOrderCompleted",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
filterQuery: {
|
||||||
|
orderId: null,
|
||||||
|
deptCode: this.$store.getters.locDeptCode,
|
||||||
|
fromInvCode: null,
|
||||||
|
fromInvSpaceCode: null,
|
||||||
|
status: 2,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
},
|
||||||
|
list: [],
|
||||||
|
total: 0,
|
||||||
|
deptList: [],
|
||||||
|
invList: [],
|
||||||
|
spaceList: [],
|
||||||
|
loading: false,
|
||||||
|
statusMap: {
|
||||||
|
0: "草稿",
|
||||||
|
1: "未审核",
|
||||||
|
2: "已审核"
|
||||||
|
},
|
||||||
|
detailQuery: {
|
||||||
|
orderIdFk: null,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
},
|
||||||
|
detailList: [],
|
||||||
|
detailLoading: false,
|
||||||
|
detailTotal: 0
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
onReset() {
|
||||||
|
this.$router.push({
|
||||||
|
path: "",
|
||||||
|
});
|
||||||
|
this.filterQuery = {
|
||||||
|
orderId: null,
|
||||||
|
deptCode: this.$store.getters.locDeptCode,
|
||||||
|
fromInvCode: null,
|
||||||
|
fromInvSpaceCode: null,
|
||||||
|
status: 2,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
};
|
||||||
|
this.spaceList = [];
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
onSubmit() {
|
||||||
|
this.filterQuery.page = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
this.detailList = [];
|
||||||
|
this.detailTotal = 0;
|
||||||
|
getMaintenanceList(this.filterQuery).then((res) => {
|
||||||
|
this.loading = false;
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.list = res.data.list || [];
|
||||||
|
this.total = res.data.total || 0;
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
this.loading = false;
|
||||||
|
this.$message.error(error.message);
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
deptChange() {
|
||||||
|
this.invList = [];
|
||||||
|
this.spaceList = [];
|
||||||
|
this.filterQuery.fromInvCode = null;
|
||||||
|
this.filterQuery.fromInvSpaceCode = null;
|
||||||
|
this.getInvList();
|
||||||
|
},
|
||||||
|
getDeptList() {
|
||||||
|
getDeptListByUser().then((res) => {
|
||||||
|
this.deptList = res.data || [];
|
||||||
|
this.getInvList();
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
invChange() {
|
||||||
|
this.spaceList = [];
|
||||||
|
this.filterQuery.fromInvSpaceCode = null;
|
||||||
|
this.getSpaceList();
|
||||||
|
},
|
||||||
|
getInvList() {
|
||||||
|
let params = {deptCode: this.filterQuery.fromDeptCode};
|
||||||
|
findInvByUser(params)
|
||||||
|
.then((response) => {
|
||||||
|
this.invList = response.data || [];
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getSpaceList() {
|
||||||
|
let params = {
|
||||||
|
invWarehouseCode: this.filterQuery.fromInvCode,
|
||||||
|
invStorageCode: this.filterQuery.fromInvCode.fromDeptCode,
|
||||||
|
status: 1
|
||||||
|
};
|
||||||
|
getInvSpaceList(params).then((res) => {
|
||||||
|
this.spaceList = res.data.list || [];
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleChange(row) {
|
||||||
|
this.detailQuery.orderIdFk = row.orderId;
|
||||||
|
this.detailQuery.page = 1;
|
||||||
|
this.getDetailList();
|
||||||
|
},
|
||||||
|
getDetailList() {
|
||||||
|
getDeviceReceiveOrderDetailList(this.detailQuery).then((res) => {
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.detailList = res.data.list || [];
|
||||||
|
this.detailTotal = res.data.total || 0;
|
||||||
|
} else {
|
||||||
|
this.detailList = [];
|
||||||
|
this.detailTotal = 0;
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.detailList = [];
|
||||||
|
this.detailTotal = 0;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
closeDialog() {
|
||||||
|
this.formVisible = false;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
document.body.ondrop = function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getDeptList();
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style type="text/scss" lang="scss">
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,306 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-card class="el-card">
|
||||||
|
<el-form :model="filterQuery" class="query-form" size="mini" :inline="true">
|
||||||
|
<el-form-item class="query-form-item" label="领用记录号:">
|
||||||
|
<el-input v-model="filterQuery.orderId" placeholder="请输入领用记录号"
|
||||||
|
clearable="true"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="query-form-item" label="领用部门:">
|
||||||
|
<el-select v-model="filterQuery.deptCode" placeholder="请选择部门" clearable="true"
|
||||||
|
@change="deptChange"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in deptList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="query-form-item" label="出库仓库:">
|
||||||
|
<el-select v-model="filterQuery.fromInvCode" placeholder="请选择仓库" clearable="true"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in invList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<!--<el-form-item class="query-form-item" label="领用货位:">
|
||||||
|
<el-select v-model="filterQuery.fromInvSpaceCode" placeholder="请选择货位" clearable="true"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in spaceList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>-->
|
||||||
|
<el-form-item>
|
||||||
|
<el-button-group style="margin-left: 10px;display:flex;">
|
||||||
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
||||||
|
<el-button type="primary" icon="el-icon-search" @click="onSubmit">查询</el-button>
|
||||||
|
<el-button type="primary" icon="el-icon-plus" @click="addReceiveOrder">新增领用记录</el-button>
|
||||||
|
</el-button-group>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row
|
||||||
|
border>
|
||||||
|
<el-table-column label="序号" type="index"></el-table-column>
|
||||||
|
<el-table-column label="设备领用记录号" prop="orderId"></el-table-column>
|
||||||
|
<el-table-column label="领用部门" prop="fromDeptName"></el-table-column>
|
||||||
|
<el-table-column label="出库仓库" prop="fromInvName"></el-table-column>
|
||||||
|
<!-- <el-table-column label="领用货位" prop="fromInvSpaceName"></el-table-column>-->
|
||||||
|
<el-table-column label="领用日期" prop="createTime"></el-table-column>
|
||||||
|
<el-table-column label="领用人" prop="receiveUserName"></el-table-column>
|
||||||
|
<el-table-column label="创建人" prop="createUser"></el-table-column>
|
||||||
|
<el-table-column label="状态" prop="status" show-overflow-tooltip width="120">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tag>{{ statusMap[scope.row.status] }}</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
@click.native.stop="editOrder(scope.row)"
|
||||||
|
>编辑
|
||||||
|
</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
@click.native.stop="submitAudit(scope.row)"
|
||||||
|
>提交审核
|
||||||
|
</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
@click.native.stop="deleteDialog(scope.row.id)"
|
||||||
|
>删除
|
||||||
|
</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:limit.sync="filterQuery.limit"
|
||||||
|
:page.sync="filterQuery.page"
|
||||||
|
@pagination="getList"
|
||||||
|
></pagination>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
<el-dialog
|
||||||
|
:title="formMap[formName]"
|
||||||
|
:visible.sync="formVisible"
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
:close-on-press-escape="false"
|
||||||
|
width="85%"
|
||||||
|
v-if="formVisible"
|
||||||
|
>
|
||||||
|
<deviceReceiveOrderModify
|
||||||
|
:deviceReceiveOrder="deviceReceiveOrder"
|
||||||
|
:closeDialog="closeDialog"
|
||||||
|
></deviceReceiveOrderModify>
|
||||||
|
</el-dialog>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {getDeptListByUser} from "@/api/auth/authDept";
|
||||||
|
import {findInvByUser} from "@/api/system/invSubWarehouse";
|
||||||
|
import {getInvSpaceList} from "@/api/inventory/invSpace";
|
||||||
|
import deviceReceiveOrderModify from "@/views/inventory/DeviceReceiveOrderModify.vue";
|
||||||
|
import {submitAudit, deleteDeviceReceiveOrder, getDeviceReceiveOrderList} from "@/api/inventory/deviceReceiveOrder";
|
||||||
|
import {getRepairList} from "@/api/inventory/InspectionPlan";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "DeviceReceiveOrderNew",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
filterQuery: {
|
||||||
|
orderId: null,
|
||||||
|
fromDeptCode: this.$store.getters.locDeptCode,
|
||||||
|
fromInvCode: null,
|
||||||
|
fromInvSpaceCode: null,
|
||||||
|
status: 0,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
},
|
||||||
|
list: [],
|
||||||
|
total: 0,
|
||||||
|
deptList: [],
|
||||||
|
invList: [],
|
||||||
|
spaceList: [],
|
||||||
|
loading: false,
|
||||||
|
formVisible: false,
|
||||||
|
codeTableLoading: false,
|
||||||
|
statusMap: {
|
||||||
|
0: "草稿",
|
||||||
|
1: "未审核",
|
||||||
|
2: "已审核"
|
||||||
|
},
|
||||||
|
formName: null,
|
||||||
|
formMap: {
|
||||||
|
add: "新增设备领用记录",
|
||||||
|
edit: "编辑设备领用记录"
|
||||||
|
},
|
||||||
|
deviceReceiveOrder: {},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
onReset() {
|
||||||
|
this.$router.push({
|
||||||
|
path: "",
|
||||||
|
});
|
||||||
|
this.filterQuery = {
|
||||||
|
orderId: null,
|
||||||
|
fromDeptCode: this.$store.getters.locDeptCode,
|
||||||
|
fromInvCode: null,
|
||||||
|
fromInvSpaceCode: null,
|
||||||
|
status: 0,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
};
|
||||||
|
this.spaceList = [];
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
onSubmit() {
|
||||||
|
this.filterQuery.page = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
getRepairList(this.filterQuery).then((res) => {
|
||||||
|
this.loading = false;
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.list = res.data.list || [];
|
||||||
|
this.total = res.data.total || 0;
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
this.loading = false;
|
||||||
|
this.$message.error(error.message);
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
deptChange() {
|
||||||
|
this.invList = [];
|
||||||
|
this.spaceList = [];
|
||||||
|
this.filterQuery.fromInvCode = null;
|
||||||
|
this.filterQuery.fromInvSpaceCode = null;
|
||||||
|
this.getInvList();
|
||||||
|
},
|
||||||
|
getDeptList() {
|
||||||
|
getDeptListByUser().then((res) => {
|
||||||
|
this.deptList = res.data || [];
|
||||||
|
this.getInvList();
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
invChange() {
|
||||||
|
this.spaceList = [];
|
||||||
|
this.filterQuery.fromInvSpaceCode = null;
|
||||||
|
this.getSpaceList();
|
||||||
|
},
|
||||||
|
getInvList() {
|
||||||
|
let params = {deptCode: this.filterQuery.fromDeptCode};
|
||||||
|
findInvByUser(params)
|
||||||
|
.then((response) => {
|
||||||
|
this.invList = response.data || [];
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getSpaceList() {
|
||||||
|
let params = {invWarehouseCode: this.filterQuery.fromInvCode,invStorageCode:this.filterQuery.fromInvCode.fromDeptCode, status: 1};
|
||||||
|
getInvSpaceList(params).then((res) => {
|
||||||
|
this.spaceList = res.data.list || [];
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
},
|
||||||
|
addReceiveOrder() {
|
||||||
|
this.formVisible = true;
|
||||||
|
this.formName = 'add';
|
||||||
|
this.deviceReceiveOrder = {};
|
||||||
|
},
|
||||||
|
editOrder(row) {
|
||||||
|
this.formVisible = true;
|
||||||
|
this.formName = 'edit';
|
||||||
|
this.deviceReceiveOrder = row;
|
||||||
|
},
|
||||||
|
submitAudit(row) {
|
||||||
|
let params = {id: row.id};
|
||||||
|
submitAudit(params).then((res) => {
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.$message.success("提交成功!");
|
||||||
|
this.getList();
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$message.error(error.message);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
deleteDialog(rowId) {
|
||||||
|
this.$confirm('此操作将永久删除该领用记录, 是否继续?', '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
let params = {id: rowId};
|
||||||
|
this.loading = true;
|
||||||
|
deleteDeviceReceiveOrder(params).then((res) => {
|
||||||
|
this.loading = false;
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.$message.success("删除成功!");
|
||||||
|
this.getList();
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
closeDialog() {
|
||||||
|
this.formVisible = false;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
deviceReceiveOrderModify
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
document.body.ondrop = function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getDeptList();
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style type="text/scss" lang="scss">
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,352 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-card class="el-card">
|
||||||
|
<el-form :model="filterQuery" class="query-form" size="mini" :inline="true">
|
||||||
|
<el-form-item class="query-form-item" label="领用记录号:">
|
||||||
|
<el-input v-model="filterQuery.orderId" placeholder="请输入领用记录号"
|
||||||
|
clearable="true"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="query-form-item" label="领用部门:">
|
||||||
|
<el-select v-model="filterQuery.deptCode" placeholder="请选择部门" clearable="true"
|
||||||
|
@change="deptChange"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in deptList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="query-form-item" label="领用仓库:">
|
||||||
|
<el-select v-model="filterQuery.fromInvCode" placeholder="请选择仓库" clearable="true"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in invList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item class="query-form-item" label="领用货位:">
|
||||||
|
<el-select v-model="filterQuery.fromInvSpaceCode" placeholder="请选择货位" clearable="true"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in spaceList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>-->
|
||||||
|
<el-form-item>
|
||||||
|
<el-button-group style="margin-left: 10px;display:flex;">
|
||||||
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
||||||
|
<el-button type="primary" icon="el-icon-search" @click="onSubmit">查询</el-button>
|
||||||
|
</el-button-group>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row
|
||||||
|
@current-change="handleChange"
|
||||||
|
border>
|
||||||
|
<el-table-column label="序号" type="index"></el-table-column>
|
||||||
|
<el-table-column label="设备领用记录号" prop="orderId"></el-table-column>
|
||||||
|
<el-table-column label="领用部门" prop="fromDeptName"></el-table-column>
|
||||||
|
<el-table-column label="领用仓库" prop="fromInvName"></el-table-column>
|
||||||
|
<!-- <el-table-column label="领用货位" prop="fromInvSpaceName"></el-table-column>-->
|
||||||
|
<el-table-column label="领用日期" prop="createTime"></el-table-column>
|
||||||
|
<el-table-column label="领用人" prop="receiveUserName"></el-table-column>
|
||||||
|
<el-table-column label="创建人" prop="createUser"></el-table-column>
|
||||||
|
<el-table-column label="状态" prop="status" show-overflow-tooltip width="120">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tag>{{ statusMap[scope.row.status] }}</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
@click.native.stop="auditOrder(scope.row)"
|
||||||
|
>审核
|
||||||
|
</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
@click.native.stop="deleteDialog(scope.row.id)"
|
||||||
|
>删除
|
||||||
|
</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:limit.sync="filterQuery.limit"
|
||||||
|
:page.sync="filterQuery.page"
|
||||||
|
@pagination="getList"
|
||||||
|
></pagination>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
<el-card>
|
||||||
|
<el-table v-loading="detailLoading" :data="detailList" style="width: 100%; margin-top: 10px;">
|
||||||
|
<el-table-column label="序号" type="index" width="50"></el-table-column>
|
||||||
|
<el-table-column label="条码" width="200" prop="code" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="产品通用名" prop="productName" width="200"></el-table-column>
|
||||||
|
<el-table-column label="规格型号" prop="ggxh" width="200" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="批次号" prop="batchNo" width="200"></el-table-column>
|
||||||
|
<el-table-column label="序列号" prop="serialNo" width="150"></el-table-column>
|
||||||
|
<el-table-column label="领用日期" prop="createTime" width="150"></el-table-column>
|
||||||
|
<el-table-column label="生产日期" prop="productionDate" width="150"></el-table-column>
|
||||||
|
<el-table-column label="失效日期" prop="expireDate" width="150"></el-table-column>
|
||||||
|
<el-table-column label="注册/备案凭证号" prop="zczbhhzbapzbh" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="生产企业" prop="ylqxzcrbarmc" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="供应商" prop="supName" show-overflow-tooltip></el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="detailTotal>0"
|
||||||
|
:total="detailTotal"
|
||||||
|
:limit.sync="detailQuery.limit"
|
||||||
|
:page.sync="detailQuery.page"
|
||||||
|
@pagination="getDetailList"
|
||||||
|
></pagination>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {getDeptListByUser} from "@/api/auth/authDept";
|
||||||
|
import {findInvByUser} from "@/api/system/invSubWarehouse";
|
||||||
|
import {getInvSpaceList} from "@/api/inventory/invSpace";
|
||||||
|
import {
|
||||||
|
getDeviceReceiveOrderDetailList,
|
||||||
|
updateDeviceReceiveOrderStatus,
|
||||||
|
deleteDeviceReceiveOrder,
|
||||||
|
getDeviceReceiveOrderList
|
||||||
|
} from "@/api/inventory/deviceReceiveOrder";
|
||||||
|
import {getRepairList} from "@/api/inventory/InspectionPlan";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "DeviceReceiveOrderAudit",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
filterQuery: {
|
||||||
|
orderId: null,
|
||||||
|
fromDeptCode: this.$store.getters.locDeptCode,
|
||||||
|
fromInvCode: null,
|
||||||
|
fromInvSpaceCode: null,
|
||||||
|
status: 1,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
},
|
||||||
|
list: [],
|
||||||
|
total: 0,
|
||||||
|
deptList: [],
|
||||||
|
invList: [],
|
||||||
|
spaceList: [],
|
||||||
|
loading: false,
|
||||||
|
statusMap: {
|
||||||
|
0: "草稿",
|
||||||
|
1: "未审核",
|
||||||
|
2: "已审核"
|
||||||
|
},
|
||||||
|
detailQuery: {
|
||||||
|
orderIdFk: null,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
},
|
||||||
|
detailList: [],
|
||||||
|
detailLoading: false,
|
||||||
|
detailTotal: 0
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
onReset() {
|
||||||
|
this.$router.push({
|
||||||
|
path: "",
|
||||||
|
});
|
||||||
|
this.filterQuery = {
|
||||||
|
orderId: null,
|
||||||
|
fromDeptCode: this.$store.getters.locDeptCode,
|
||||||
|
fromInvCode: null,
|
||||||
|
fromInvSpaceCode: null,
|
||||||
|
status: 1,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
};
|
||||||
|
this.spaceList = [];
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
onSubmit() {
|
||||||
|
this.filterQuery.page = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
getRepairList(this.filterQuery).then((res) => {
|
||||||
|
this.loading = false;
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.list = res.data.list || [];
|
||||||
|
this.total = res.data.total || 0;
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
this.loading = false;
|
||||||
|
this.$message.error(error.message);
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
deptChange() {
|
||||||
|
this.invList = [];
|
||||||
|
this.spaceList = [];
|
||||||
|
this.filterQuery.fromInvCode = null;
|
||||||
|
this.filterQuery.fromInvSpaceCode = null;
|
||||||
|
this.getInvList();
|
||||||
|
},
|
||||||
|
getDeptList() {
|
||||||
|
getDeptListByUser().then((res) => {
|
||||||
|
this.deptList = res.data || [];
|
||||||
|
this.getInvList();
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
invChange() {
|
||||||
|
this.spaceList = [];
|
||||||
|
this.filterQuery.fromInvSpaceCode = null;
|
||||||
|
this.getSpaceList();
|
||||||
|
},
|
||||||
|
getInvList() {
|
||||||
|
let params = {deptCode: this.filterQuery.fromDeptCode};
|
||||||
|
findInvByUser(params)
|
||||||
|
.then((response) => {
|
||||||
|
this.invList = response.data || [];
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getSpaceList() {
|
||||||
|
let params = {invWarehouseCode: this.filterQuery.fromInvCode,invStorageCode:this.filterQuery.fromInvCode.fromDeptCode, status: 1};
|
||||||
|
getInvSpaceList(params).then((res) => {
|
||||||
|
this.spaceList = res.data.list || [];
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
},
|
||||||
|
auditOrder(row) {
|
||||||
|
this.$confirm('请选择审核意见', '提示', {
|
||||||
|
confirmButtonText: '通过',
|
||||||
|
cancelButtonText: '驳回',
|
||||||
|
type: 'warning',
|
||||||
|
center: true,
|
||||||
|
closeOnPressEscape: false,//按下 ESC 键关闭弹窗
|
||||||
|
closeOnClickModal: false,//点击遮罩关闭弹窗
|
||||||
|
distinguishCancelAndClose: true,//区分取消与关闭
|
||||||
|
}).then(() => {
|
||||||
|
let params = {
|
||||||
|
id: row.id,
|
||||||
|
status: 2
|
||||||
|
};
|
||||||
|
updateDeviceReceiveOrderStatus(params).then((res) => {
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.$message.success("审核通过!");
|
||||||
|
this.getList();
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$message.error(error.message);
|
||||||
|
})
|
||||||
|
}).catch((action) => {
|
||||||
|
if (action === "cancel") {
|
||||||
|
let params = {
|
||||||
|
id: row.id,
|
||||||
|
status: 0
|
||||||
|
};
|
||||||
|
updateDeviceReceiveOrderStatus(params).then((res) => {
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.$message.success("已驳回!")
|
||||||
|
this.getList();
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$message.error(error.message);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleChange(row) {
|
||||||
|
this.detailQuery.orderIdFk = row.orderId;
|
||||||
|
this.detailQuery.page = 1;
|
||||||
|
this.getDetailList();
|
||||||
|
},
|
||||||
|
getDetailList() {
|
||||||
|
getDeviceReceiveOrderDetailList(this.detailQuery).then((res) => {
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.detailList = res.data.list || [];
|
||||||
|
this.detailTotal = res.data.total || 0;
|
||||||
|
} else {
|
||||||
|
this.detailList = [];
|
||||||
|
this.detailTotal = 0;
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.detailList = [];
|
||||||
|
this.detailTotal = 0;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
deleteDialog(rowId) {
|
||||||
|
this.$confirm('此操作将永久删除该领用记录, 是否继续?', '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
let params = {id: rowId};
|
||||||
|
this.loading = true;
|
||||||
|
deleteDeviceReceiveOrder(params).then((res) => {
|
||||||
|
this.loading = false;
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.$message.success("删除成功!");
|
||||||
|
this.getList();
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
closeDialog() {
|
||||||
|
this.formVisible = false;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
document.body.ondrop = function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getDeptList();
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style type="text/scss" lang="scss">
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,272 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-card class="el-card">
|
||||||
|
<el-form :model="filterQuery" class="query-form" size="mini" :inline="true">
|
||||||
|
<el-form-item class="query-form-item" label="领用记录号:">
|
||||||
|
<el-input v-model="filterQuery.orderId" placeholder="请输入领用记录号"
|
||||||
|
clearable="true"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="query-form-item" label="领用部门:">
|
||||||
|
<el-select v-model="filterQuery.deptCode" placeholder="请选择部门" clearable="true"
|
||||||
|
@change="deptChange"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in deptList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="query-form-item" label="领用仓库:">
|
||||||
|
<el-select v-model="filterQuery.fromInvCode" placeholder="请选择仓库" clearable="true"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in invList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item class="query-form-item" label="领用货位:">
|
||||||
|
<el-select v-model="filterQuery.fromInvSpaceCode" placeholder="请选择货位" clearable="true"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in spaceList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>-->
|
||||||
|
<el-form-item>
|
||||||
|
<el-button-group style="margin-left: 10px;display:flex;">
|
||||||
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
||||||
|
<el-button type="primary" icon="el-icon-search" @click="onSubmit">查询</el-button>
|
||||||
|
</el-button-group>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row
|
||||||
|
@current-change="handleChange"
|
||||||
|
border>
|
||||||
|
<el-table-column label="序号" type="index"></el-table-column>
|
||||||
|
<el-table-column label="设备领用记录号" prop="orderId"></el-table-column>
|
||||||
|
<el-table-column label="领用部门" prop="fromDeptName"></el-table-column>
|
||||||
|
<el-table-column label="领用仓库" prop="fromInvName"></el-table-column>
|
||||||
|
<!-- <el-table-column label="领用货位" prop="fromInvSpaceName"></el-table-column>-->
|
||||||
|
<el-table-column label="领用日期" prop="createTime"></el-table-column>
|
||||||
|
<el-table-column label="领用人" prop="receiveUserName"></el-table-column>
|
||||||
|
<el-table-column label="创建人" prop="createUser"></el-table-column>
|
||||||
|
<el-table-column label="状态" prop="status" show-overflow-tooltip width="120">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tag>{{ statusMap[scope.row.status] }}</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:limit.sync="filterQuery.limit"
|
||||||
|
:page.sync="filterQuery.page"
|
||||||
|
@pagination="getList"
|
||||||
|
></pagination>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
<el-card>
|
||||||
|
<el-table v-loading="detailLoading" :data="detailList" style="width: 100%; margin-top: 10px;">
|
||||||
|
<el-table-column label="序号" type="index" width="50"></el-table-column>
|
||||||
|
<el-table-column label="条码" width="200" prop="code" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="产品通用名" prop="productName" width="200"></el-table-column>
|
||||||
|
<el-table-column label="规格型号" prop="ggxh" width="200" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="批次号" prop="batchNo" width="200"></el-table-column>
|
||||||
|
<el-table-column label="序列号" prop="serialNo" width="150"></el-table-column>
|
||||||
|
<el-table-column label="领用日期" prop="createTime" width="150"></el-table-column>
|
||||||
|
<el-table-column label="生产日期" prop="productionDate" width="150"></el-table-column>
|
||||||
|
<el-table-column label="失效日期" prop="expireDate" width="150"></el-table-column>
|
||||||
|
<el-table-column label="注册/备案凭证号" prop="zczbhhzbapzbh" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="生产企业" prop="ylqxzcrbarmc" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="供应商" prop="supName" show-overflow-tooltip></el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="detailTotal>0"
|
||||||
|
:total="detailTotal"
|
||||||
|
:limit.sync="detailQuery.limit"
|
||||||
|
:page.sync="detailQuery.page"
|
||||||
|
@pagination="getDetailList"
|
||||||
|
></pagination>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {getDeptListByUser} from "@/api/auth/authDept";
|
||||||
|
import {findInvByUser} from "@/api/system/invSubWarehouse";
|
||||||
|
import {getInvSpaceList} from "@/api/inventory/invSpace";
|
||||||
|
import {
|
||||||
|
getDeviceReceiveOrderDetailList,
|
||||||
|
getDeviceReceiveOrderList
|
||||||
|
} from "@/api/inventory/deviceReceiveOrder";
|
||||||
|
import {getRepairList} from "@/api/inventory/InspectionPlan";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "DeviceReceiveOrderCompleted",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
filterQuery: {
|
||||||
|
orderId: null,
|
||||||
|
fromDeptCode: this.$store.getters.locDeptCode,
|
||||||
|
fromInvCode: null,
|
||||||
|
fromInvSpaceCode: null,
|
||||||
|
status: 2,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
},
|
||||||
|
list: [],
|
||||||
|
total: 0,
|
||||||
|
deptList: [],
|
||||||
|
invList: [],
|
||||||
|
spaceList: [],
|
||||||
|
loading: false,
|
||||||
|
statusMap: {
|
||||||
|
0: "草稿",
|
||||||
|
1: "未审核",
|
||||||
|
2: "已审核"
|
||||||
|
},
|
||||||
|
detailQuery: {
|
||||||
|
orderIdFk: null,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
},
|
||||||
|
detailList: [],
|
||||||
|
detailLoading: false,
|
||||||
|
detailTotal: 0
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
onReset() {
|
||||||
|
this.$router.push({
|
||||||
|
path: "",
|
||||||
|
});
|
||||||
|
this.filterQuery = {
|
||||||
|
orderId: null,
|
||||||
|
fromDeptCode: this.$store.getters.locDeptCode,
|
||||||
|
fromInvCode: null,
|
||||||
|
fromInvSpaceCode: null,
|
||||||
|
status: 2,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
};
|
||||||
|
this.spaceList = [];
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
onSubmit() {
|
||||||
|
this.filterQuery.page = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
this.detailList = [];
|
||||||
|
this.detailTotal = 0;
|
||||||
|
getRepairList(this.filterQuery).then((res) => {
|
||||||
|
this.loading = false;
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.list = res.data.list || [];
|
||||||
|
this.total = res.data.total || 0;
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
this.loading = false;
|
||||||
|
this.$message.error(error.message);
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
deptChange() {
|
||||||
|
this.invList = [];
|
||||||
|
this.spaceList = [];
|
||||||
|
this.filterQuery.fromInvCode = null;
|
||||||
|
this.filterQuery.fromInvSpaceCode = null;
|
||||||
|
this.getInvList();
|
||||||
|
},
|
||||||
|
getDeptList() {
|
||||||
|
getDeptListByUser().then((res) => {
|
||||||
|
this.deptList = res.data || [];
|
||||||
|
this.getInvList();
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
invChange() {
|
||||||
|
this.spaceList = [];
|
||||||
|
this.filterQuery.fromInvSpaceCode = null;
|
||||||
|
this.getSpaceList();
|
||||||
|
},
|
||||||
|
getInvList() {
|
||||||
|
let params = {deptCode: this.filterQuery.fromDeptCode};
|
||||||
|
findInvByUser(params)
|
||||||
|
.then((response) => {
|
||||||
|
this.invList = response.data || [];
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getSpaceList() {
|
||||||
|
let params = {
|
||||||
|
invWarehouseCode: this.filterQuery.fromInvCode,
|
||||||
|
invStorageCode: this.filterQuery.fromInvCode.fromDeptCode,
|
||||||
|
status: 1
|
||||||
|
};
|
||||||
|
getInvSpaceList(params).then((res) => {
|
||||||
|
this.spaceList = res.data.list || [];
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleChange(row) {
|
||||||
|
this.detailQuery.orderIdFk = row.orderId;
|
||||||
|
this.detailQuery.page = 1;
|
||||||
|
this.getDetailList();
|
||||||
|
},
|
||||||
|
getDetailList() {
|
||||||
|
getDeviceReceiveOrderDetailList(this.detailQuery).then((res) => {
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.detailList = res.data.list || [];
|
||||||
|
this.detailTotal = res.data.total || 0;
|
||||||
|
} else {
|
||||||
|
this.detailList = [];
|
||||||
|
this.detailTotal = 0;
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.detailList = [];
|
||||||
|
this.detailTotal = 0;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
closeDialog() {
|
||||||
|
this.formVisible = false;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
document.body.ondrop = function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getDeptList();
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style type="text/scss" lang="scss">
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,307 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-card class="el-card">
|
||||||
|
<el-form :model="filterQuery" class="query-form" size="mini" :inline="true">
|
||||||
|
<el-form-item class="query-form-item" label="领用记录号:">
|
||||||
|
<el-input v-model="filterQuery.orderId" placeholder="请输入领用记录号"
|
||||||
|
clearable="true"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="query-form-item" label="领用部门:">
|
||||||
|
<el-select v-model="filterQuery.deptCode" placeholder="请选择部门" clearable="true"
|
||||||
|
@change="deptChange"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in deptList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="query-form-item" label="出库仓库:">
|
||||||
|
<el-select v-model="filterQuery.fromInvCode" placeholder="请选择仓库" clearable="true"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in invList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<!--<el-form-item class="query-form-item" label="领用货位:">
|
||||||
|
<el-select v-model="filterQuery.fromInvSpaceCode" placeholder="请选择货位" clearable="true"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in spaceList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>-->
|
||||||
|
<el-form-item>
|
||||||
|
<el-button-group style="margin-left: 10px;display:flex;">
|
||||||
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
||||||
|
<el-button type="primary" icon="el-icon-search" @click="onSubmit">查询</el-button>
|
||||||
|
<el-button type="primary" icon="el-icon-plus" @click="addReceiveOrder">新增领用记录</el-button>
|
||||||
|
</el-button-group>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row
|
||||||
|
border>
|
||||||
|
<el-table-column label="序号" type="index"></el-table-column>
|
||||||
|
<el-table-column label="设备领用记录号" prop="orderId"></el-table-column>
|
||||||
|
<el-table-column label="领用部门" prop="fromDeptName"></el-table-column>
|
||||||
|
<el-table-column label="出库仓库" prop="fromInvName"></el-table-column>
|
||||||
|
<!-- <el-table-column label="领用货位" prop="fromInvSpaceName"></el-table-column>-->
|
||||||
|
<el-table-column label="领用日期" prop="createTime"></el-table-column>
|
||||||
|
<el-table-column label="领用人" prop="receiveUserName"></el-table-column>
|
||||||
|
<el-table-column label="创建人" prop="createUser"></el-table-column>
|
||||||
|
<el-table-column label="状态" prop="status" show-overflow-tooltip width="120">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tag>{{ statusMap[scope.row.status] }}</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
@click.native.stop="editOrder(scope.row)"
|
||||||
|
>编辑
|
||||||
|
</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
@click.native.stop="submitAudit(scope.row)"
|
||||||
|
>提交审核
|
||||||
|
</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
@click.native.stop="deleteDialog(scope.row.id)"
|
||||||
|
>删除
|
||||||
|
</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:limit.sync="filterQuery.limit"
|
||||||
|
:page.sync="filterQuery.page"
|
||||||
|
@pagination="getList"
|
||||||
|
></pagination>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
<el-dialog
|
||||||
|
:title="formMap[formName]"
|
||||||
|
:visible.sync="formVisible"
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
:close-on-press-escape="false"
|
||||||
|
width="85%"
|
||||||
|
v-if="formVisible"
|
||||||
|
>
|
||||||
|
<deviceReceiveOrderModify
|
||||||
|
:deviceReceiveOrder="deviceReceiveOrder"
|
||||||
|
:closeDialog="closeDialog"
|
||||||
|
></deviceReceiveOrderModify>
|
||||||
|
</el-dialog>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {getDeptListByUser} from "@/api/auth/authDept";
|
||||||
|
import {findInvByUser} from "@/api/system/invSubWarehouse";
|
||||||
|
import {getInvSpaceList} from "@/api/inventory/invSpace";
|
||||||
|
import deviceReceiveOrderModify from "@/views/inventory/DeviceReceiveOrderModify.vue";
|
||||||
|
import {submitAudit, deleteDeviceReceiveOrder, getDeviceReceiveOrderList} from "@/api/inventory/deviceReceiveOrder";
|
||||||
|
import {filterList} from "@/api/inventory/InspectionPlan";
|
||||||
|
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "DeviceReceiveOrderNew",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
filterQuery: {
|
||||||
|
orderId: null,
|
||||||
|
deptCode: this.$store.getters.locDeptCode,
|
||||||
|
fromInvCode: null,
|
||||||
|
fromInvSpaceCode: null,
|
||||||
|
status: 0,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
},
|
||||||
|
list: [],
|
||||||
|
total: 0,
|
||||||
|
deptList: [],
|
||||||
|
invList: [],
|
||||||
|
spaceList: [],
|
||||||
|
loading: false,
|
||||||
|
formVisible: false,
|
||||||
|
codeTableLoading: false,
|
||||||
|
statusMap: {
|
||||||
|
0: "草稿",
|
||||||
|
1: "未审核",
|
||||||
|
2: "已审核"
|
||||||
|
},
|
||||||
|
formName: null,
|
||||||
|
formMap: {
|
||||||
|
add: "新增设备领用记录",
|
||||||
|
edit: "编辑设备领用记录"
|
||||||
|
},
|
||||||
|
deviceReceiveOrder: {},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
onReset() {
|
||||||
|
this.$router.push({
|
||||||
|
path: "",
|
||||||
|
});
|
||||||
|
this.filterQuery = {
|
||||||
|
orderId: null,
|
||||||
|
deptCode: this.$store.getters.locDeptCode,
|
||||||
|
fromInvCode: null,
|
||||||
|
fromInvSpaceCode: null,
|
||||||
|
status: 0,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
};
|
||||||
|
this.spaceList = [];
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
onSubmit() {
|
||||||
|
this.filterQuery.page = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
filterList(this.filterQuery).then((res) => {
|
||||||
|
this.loading = false;
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.list = res.data.list || [];
|
||||||
|
this.total = res.data.total || 0;
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
this.loading = false;
|
||||||
|
this.$message.error(error.message);
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
deptChange() {
|
||||||
|
this.invList = [];
|
||||||
|
this.spaceList = [];
|
||||||
|
this.filterQuery.fromInvCode = null;
|
||||||
|
this.filterQuery.fromInvSpaceCode = null;
|
||||||
|
this.getInvList();
|
||||||
|
},
|
||||||
|
getDeptList() {
|
||||||
|
getDeptListByUser().then((res) => {
|
||||||
|
this.deptList = res.data || [];
|
||||||
|
this.getInvList();
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
invChange() {
|
||||||
|
this.spaceList = [];
|
||||||
|
this.filterQuery.fromInvSpaceCode = null;
|
||||||
|
this.getSpaceList();
|
||||||
|
},
|
||||||
|
getInvList() {
|
||||||
|
let params = {deptCode: this.filterQuery.deptCode};
|
||||||
|
findInvByUser(params)
|
||||||
|
.then((response) => {
|
||||||
|
this.invList = response.data || [];
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getSpaceList() {
|
||||||
|
let params = {invWarehouseCode: this.filterQuery.fromInvCode,invStorageCode:this.filterQuery.fromInvCode.deptCode, status: 1};
|
||||||
|
getInvSpaceList(params).then((res) => {
|
||||||
|
this.spaceList = res.data.list || [];
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
},
|
||||||
|
addReceiveOrder() {
|
||||||
|
this.formVisible = true;
|
||||||
|
this.formName = 'add';
|
||||||
|
this.deviceReceiveOrder = {};
|
||||||
|
},
|
||||||
|
editOrder(row) {
|
||||||
|
this.formVisible = true;
|
||||||
|
this.formName = 'edit';
|
||||||
|
this.deviceReceiveOrder = row;
|
||||||
|
},
|
||||||
|
submitAudit(row) {
|
||||||
|
let params = {id: row.id};
|
||||||
|
submitAudit(params).then((res) => {
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.$message.success("提交成功!");
|
||||||
|
this.getList();
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$message.error(error.message);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
deleteDialog(rowId) {
|
||||||
|
this.$confirm('此操作将永久删除该领用记录, 是否继续?', '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
let params = {id: rowId};
|
||||||
|
this.loading = true;
|
||||||
|
deleteDeviceReceiveOrder(params).then((res) => {
|
||||||
|
this.loading = false;
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.$message.success("删除成功!");
|
||||||
|
this.getList();
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
closeDialog() {
|
||||||
|
this.formVisible = false;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
deviceReceiveOrderModify
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
document.body.ondrop = function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getDeptList();
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style type="text/scss" lang="scss">
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,352 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-card class="el-card">
|
||||||
|
<el-form :model="filterQuery" class="query-form" size="mini" :inline="true">
|
||||||
|
<el-form-item class="query-form-item" label="领用记录号:">
|
||||||
|
<el-input v-model="filterQuery.orderId" placeholder="请输入领用记录号"
|
||||||
|
clearable="true"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="query-form-item" label="领用部门:">
|
||||||
|
<el-select v-model="filterQuery.deptCode" placeholder="请选择部门" clearable="true"
|
||||||
|
@change="deptChange"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in deptList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="query-form-item" label="领用仓库:">
|
||||||
|
<el-select v-model="filterQuery.fromInvCode" placeholder="请选择仓库" clearable="true"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in invList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item class="query-form-item" label="领用货位:">
|
||||||
|
<el-select v-model="filterQuery.fromInvSpaceCode" placeholder="请选择货位" clearable="true"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in spaceList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>-->
|
||||||
|
<el-form-item>
|
||||||
|
<el-button-group style="margin-left: 10px;display:flex;">
|
||||||
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
||||||
|
<el-button type="primary" icon="el-icon-search" @click="onSubmit">查询</el-button>
|
||||||
|
</el-button-group>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row
|
||||||
|
@current-change="handleChange"
|
||||||
|
border>
|
||||||
|
<el-table-column label="序号" type="index"></el-table-column>
|
||||||
|
<el-table-column label="设备领用记录号" prop="orderId"></el-table-column>
|
||||||
|
<el-table-column label="领用部门" prop="fromDeptName"></el-table-column>
|
||||||
|
<el-table-column label="领用仓库" prop="fromInvName"></el-table-column>
|
||||||
|
<!-- <el-table-column label="领用货位" prop="fromInvSpaceName"></el-table-column>-->
|
||||||
|
<el-table-column label="领用日期" prop="createTime"></el-table-column>
|
||||||
|
<el-table-column label="领用人" prop="receiveUserName"></el-table-column>
|
||||||
|
<el-table-column label="创建人" prop="createUser"></el-table-column>
|
||||||
|
<el-table-column label="状态" prop="status" show-overflow-tooltip width="120">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tag>{{ statusMap[scope.row.status] }}</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
@click.native.stop="auditOrder(scope.row)"
|
||||||
|
>审核
|
||||||
|
</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
@click.native.stop="deleteDialog(scope.row.id)"
|
||||||
|
>删除
|
||||||
|
</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:limit.sync="filterQuery.limit"
|
||||||
|
:page.sync="filterQuery.page"
|
||||||
|
@pagination="getList"
|
||||||
|
></pagination>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
<el-card>
|
||||||
|
<el-table v-loading="detailLoading" :data="detailList" style="width: 100%; margin-top: 10px;">
|
||||||
|
<el-table-column label="序号" type="index" width="50"></el-table-column>
|
||||||
|
<el-table-column label="条码" width="200" prop="code" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="产品通用名" prop="productName" width="200"></el-table-column>
|
||||||
|
<el-table-column label="规格型号" prop="ggxh" width="200" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="批次号" prop="batchNo" width="200"></el-table-column>
|
||||||
|
<el-table-column label="序列号" prop="serialNo" width="150"></el-table-column>
|
||||||
|
<el-table-column label="领用日期" prop="createTime" width="150"></el-table-column>
|
||||||
|
<el-table-column label="生产日期" prop="productionDate" width="150"></el-table-column>
|
||||||
|
<el-table-column label="失效日期" prop="expireDate" width="150"></el-table-column>
|
||||||
|
<el-table-column label="注册/备案凭证号" prop="zczbhhzbapzbh" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="生产企业" prop="ylqxzcrbarmc" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="供应商" prop="supName" show-overflow-tooltip></el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="detailTotal>0"
|
||||||
|
:total="detailTotal"
|
||||||
|
:limit.sync="detailQuery.limit"
|
||||||
|
:page.sync="detailQuery.page"
|
||||||
|
@pagination="getDetailList"
|
||||||
|
></pagination>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {getDeptListByUser} from "@/api/auth/authDept";
|
||||||
|
import {findInvByUser} from "@/api/system/invSubWarehouse";
|
||||||
|
import {getInvSpaceList} from "@/api/inventory/invSpace";
|
||||||
|
import {
|
||||||
|
getDeviceReceiveOrderDetailList,
|
||||||
|
updateDeviceReceiveOrderStatus,
|
||||||
|
deleteDeviceReceiveOrder,
|
||||||
|
getDeviceReceiveOrderList
|
||||||
|
} from "@/api/inventory/deviceReceiveOrder";
|
||||||
|
import {filterList} from "@/api/inventory/InspectionPlan";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "DeviceReceiveOrderAudit",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
filterQuery: {
|
||||||
|
orderId: null,
|
||||||
|
deptCode: this.$store.getters.locDeptCode,
|
||||||
|
fromInvCode: null,
|
||||||
|
fromInvSpaceCode: null,
|
||||||
|
status: 1,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
},
|
||||||
|
list: [],
|
||||||
|
total: 0,
|
||||||
|
deptList: [],
|
||||||
|
invList: [],
|
||||||
|
spaceList: [],
|
||||||
|
loading: false,
|
||||||
|
statusMap: {
|
||||||
|
0: "草稿",
|
||||||
|
1: "未审核",
|
||||||
|
2: "已审核"
|
||||||
|
},
|
||||||
|
detailQuery: {
|
||||||
|
orderIdFk: null,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
},
|
||||||
|
detailList: [],
|
||||||
|
detailLoading: false,
|
||||||
|
detailTotal: 0
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
onReset() {
|
||||||
|
this.$router.push({
|
||||||
|
path: "",
|
||||||
|
});
|
||||||
|
this.filterQuery = {
|
||||||
|
orderId: null,
|
||||||
|
deptCode: this.$store.getters.locDeptCode,
|
||||||
|
fromInvCode: null,
|
||||||
|
fromInvSpaceCode: null,
|
||||||
|
status: 1,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
};
|
||||||
|
this.spaceList = [];
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
onSubmit() {
|
||||||
|
this.filterQuery.page = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
filterList(this.filterQuery).then((res) => {
|
||||||
|
this.loading = false;
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.list = res.data.list || [];
|
||||||
|
this.total = res.data.total || 0;
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
this.loading = false;
|
||||||
|
this.$message.error(error.message);
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
deptChange() {
|
||||||
|
this.invList = [];
|
||||||
|
this.spaceList = [];
|
||||||
|
this.filterQuery.fromInvCode = null;
|
||||||
|
this.filterQuery.fromInvSpaceCode = null;
|
||||||
|
this.getInvList();
|
||||||
|
},
|
||||||
|
getDeptList() {
|
||||||
|
getDeptListByUser().then((res) => {
|
||||||
|
this.deptList = res.data || [];
|
||||||
|
this.getInvList();
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
invChange() {
|
||||||
|
this.spaceList = [];
|
||||||
|
this.filterQuery.fromInvSpaceCode = null;
|
||||||
|
this.getSpaceList();
|
||||||
|
},
|
||||||
|
getInvList() {
|
||||||
|
let params = {deptCode: this.filterQuery.deptCode};
|
||||||
|
findInvByUser(params)
|
||||||
|
.then((response) => {
|
||||||
|
this.invList = response.data || [];
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getSpaceList() {
|
||||||
|
let params = {invWarehouseCode: this.filterQuery.fromInvCode,invStorageCode:this.filterQuery.fromInvCode.deptCode, status: 1};
|
||||||
|
getInvSpaceList(params).then((res) => {
|
||||||
|
this.spaceList = res.data.list || [];
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
},
|
||||||
|
auditOrder(row) {
|
||||||
|
this.$confirm('请选择审核意见', '提示', {
|
||||||
|
confirmButtonText: '通过',
|
||||||
|
cancelButtonText: '驳回',
|
||||||
|
type: 'warning',
|
||||||
|
center: true,
|
||||||
|
closeOnPressEscape: false,//按下 ESC 键关闭弹窗
|
||||||
|
closeOnClickModal: false,//点击遮罩关闭弹窗
|
||||||
|
distinguishCancelAndClose: true,//区分取消与关闭
|
||||||
|
}).then(() => {
|
||||||
|
let params = {
|
||||||
|
id: row.id,
|
||||||
|
status: 2
|
||||||
|
};
|
||||||
|
updateDeviceReceiveOrderStatus(params).then((res) => {
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.$message.success("审核通过!");
|
||||||
|
this.getList();
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$message.error(error.message);
|
||||||
|
})
|
||||||
|
}).catch((action) => {
|
||||||
|
if (action === "cancel") {
|
||||||
|
let params = {
|
||||||
|
id: row.id,
|
||||||
|
status: 0
|
||||||
|
};
|
||||||
|
updateDeviceReceiveOrderStatus(params).then((res) => {
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.$message.success("已驳回!")
|
||||||
|
this.getList();
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$message.error(error.message);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleChange(row) {
|
||||||
|
this.detailQuery.orderIdFk = row.orderId;
|
||||||
|
this.detailQuery.page = 1;
|
||||||
|
this.getDetailList();
|
||||||
|
},
|
||||||
|
getDetailList() {
|
||||||
|
getDeviceReceiveOrderDetailList(this.detailQuery).then((res) => {
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.detailList = res.data.list || [];
|
||||||
|
this.detailTotal = res.data.total || 0;
|
||||||
|
} else {
|
||||||
|
this.detailList = [];
|
||||||
|
this.detailTotal = 0;
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.detailList = [];
|
||||||
|
this.detailTotal = 0;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
deleteDialog(rowId) {
|
||||||
|
this.$confirm('此操作将永久删除该领用记录, 是否继续?', '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
let params = {id: rowId};
|
||||||
|
this.loading = true;
|
||||||
|
deleteDeviceReceiveOrder(params).then((res) => {
|
||||||
|
this.loading = false;
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.$message.success("删除成功!");
|
||||||
|
this.getList();
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
closeDialog() {
|
||||||
|
this.formVisible = false;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
document.body.ondrop = function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getDeptList();
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style type="text/scss" lang="scss">
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,272 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-card class="el-card">
|
||||||
|
<el-form :model="filterQuery" class="query-form" size="mini" :inline="true">
|
||||||
|
<el-form-item class="query-form-item" label="领用记录号:">
|
||||||
|
<el-input v-model="filterQuery.orderId" placeholder="请输入领用记录号"
|
||||||
|
clearable="true"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="query-form-item" label="领用部门:">
|
||||||
|
<el-select v-model="filterQuery.deptCode" placeholder="请选择部门" clearable="true"
|
||||||
|
@change="deptChange"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in deptList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="query-form-item" label="领用仓库:">
|
||||||
|
<el-select v-model="filterQuery.fromInvCode" placeholder="请选择仓库" clearable="true"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in invList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item class="query-form-item" label="领用货位:">
|
||||||
|
<el-select v-model="filterQuery.fromInvSpaceCode" placeholder="请选择货位" clearable="true"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in spaceList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>-->
|
||||||
|
<el-form-item>
|
||||||
|
<el-button-group style="margin-left: 10px;display:flex;">
|
||||||
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
||||||
|
<el-button type="primary" icon="el-icon-search" @click="onSubmit">查询</el-button>
|
||||||
|
</el-button-group>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row
|
||||||
|
@current-change="handleChange"
|
||||||
|
border>
|
||||||
|
<el-table-column label="序号" type="index"></el-table-column>
|
||||||
|
<el-table-column label="设备领用记录号" prop="orderId"></el-table-column>
|
||||||
|
<el-table-column label="领用部门" prop="fromDeptName"></el-table-column>
|
||||||
|
<el-table-column label="领用仓库" prop="fromInvName"></el-table-column>
|
||||||
|
<!-- <el-table-column label="领用货位" prop="fromInvSpaceName"></el-table-column>-->
|
||||||
|
<el-table-column label="领用日期" prop="createTime"></el-table-column>
|
||||||
|
<el-table-column label="领用人" prop="receiveUserName"></el-table-column>
|
||||||
|
<el-table-column label="创建人" prop="createUser"></el-table-column>
|
||||||
|
<el-table-column label="状态" prop="status" show-overflow-tooltip width="120">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tag>{{ statusMap[scope.row.status] }}</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:limit.sync="filterQuery.limit"
|
||||||
|
:page.sync="filterQuery.page"
|
||||||
|
@pagination="getList"
|
||||||
|
></pagination>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
<el-card>
|
||||||
|
<el-table v-loading="detailLoading" :data="detailList" style="width: 100%; margin-top: 10px;">
|
||||||
|
<el-table-column label="序号" type="index" width="50"></el-table-column>
|
||||||
|
<el-table-column label="条码" width="200" prop="code" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="产品通用名" prop="productName" width="200"></el-table-column>
|
||||||
|
<el-table-column label="规格型号" prop="ggxh" width="200" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="批次号" prop="batchNo" width="200"></el-table-column>
|
||||||
|
<el-table-column label="序列号" prop="serialNo" width="150"></el-table-column>
|
||||||
|
<el-table-column label="领用日期" prop="createTime" width="150"></el-table-column>
|
||||||
|
<el-table-column label="生产日期" prop="productionDate" width="150"></el-table-column>
|
||||||
|
<el-table-column label="失效日期" prop="expireDate" width="150"></el-table-column>
|
||||||
|
<el-table-column label="注册/备案凭证号" prop="zczbhhzbapzbh" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="生产企业" prop="ylqxzcrbarmc" show-overflow-tooltip></el-table-column>
|
||||||
|
<el-table-column label="供应商" prop="supName" show-overflow-tooltip></el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="detailTotal>0"
|
||||||
|
:total="detailTotal"
|
||||||
|
:limit.sync="detailQuery.limit"
|
||||||
|
:page.sync="detailQuery.page"
|
||||||
|
@pagination="getDetailList"
|
||||||
|
></pagination>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {getDeptListByUser} from "@/api/auth/authDept";
|
||||||
|
import {findInvByUser} from "@/api/system/invSubWarehouse";
|
||||||
|
import {getInvSpaceList} from "@/api/inventory/invSpace";
|
||||||
|
import {
|
||||||
|
getDeviceReceiveOrderDetailList,
|
||||||
|
getDeviceReceiveOrderList
|
||||||
|
} from "@/api/inventory/deviceReceiveOrder";
|
||||||
|
import {filterList} from "@/api/inventory/InspectionPlan";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "DeviceReceiveOrderCompleted",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
filterQuery: {
|
||||||
|
orderId: null,
|
||||||
|
deptCode: this.$store.getters.locDeptCode,
|
||||||
|
fromInvCode: null,
|
||||||
|
fromInvSpaceCode: null,
|
||||||
|
status: 2,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
},
|
||||||
|
list: [],
|
||||||
|
total: 0,
|
||||||
|
deptList: [],
|
||||||
|
invList: [],
|
||||||
|
spaceList: [],
|
||||||
|
loading: false,
|
||||||
|
statusMap: {
|
||||||
|
0: "草稿",
|
||||||
|
1: "未审核",
|
||||||
|
2: "已审核"
|
||||||
|
},
|
||||||
|
detailQuery: {
|
||||||
|
orderIdFk: null,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
},
|
||||||
|
detailList: [],
|
||||||
|
detailLoading: false,
|
||||||
|
detailTotal: 0
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
onReset() {
|
||||||
|
this.$router.push({
|
||||||
|
path: "",
|
||||||
|
});
|
||||||
|
this.filterQuery = {
|
||||||
|
orderId: null,
|
||||||
|
deptCode: this.$store.getters.locDeptCode,
|
||||||
|
fromInvCode: null,
|
||||||
|
fromInvSpaceCode: null,
|
||||||
|
status: 2,
|
||||||
|
page: 1,
|
||||||
|
limit: 20,
|
||||||
|
};
|
||||||
|
this.spaceList = [];
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
onSubmit() {
|
||||||
|
this.filterQuery.page = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
this.detailList = [];
|
||||||
|
this.detailTotal = 0;
|
||||||
|
filterList(this.filterQuery).then((res) => {
|
||||||
|
this.loading = false;
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.list = res.data.list || [];
|
||||||
|
this.total = res.data.total || 0;
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
this.loading = false;
|
||||||
|
this.$message.error(error.message);
|
||||||
|
this.list = [];
|
||||||
|
this.total = 0;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
deptChange() {
|
||||||
|
this.invList = [];
|
||||||
|
this.spaceList = [];
|
||||||
|
this.filterQuery.fromInvCode = null;
|
||||||
|
this.filterQuery.fromInvSpaceCode = null;
|
||||||
|
this.getInvList();
|
||||||
|
},
|
||||||
|
getDeptList() {
|
||||||
|
getDeptListByUser().then((res) => {
|
||||||
|
this.deptList = res.data || [];
|
||||||
|
this.getInvList();
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
invChange() {
|
||||||
|
this.spaceList = [];
|
||||||
|
this.filterQuery.fromInvSpaceCode = null;
|
||||||
|
this.getSpaceList();
|
||||||
|
},
|
||||||
|
getInvList() {
|
||||||
|
let params = {deptCode: this.filterQuery.deptCode};
|
||||||
|
findInvByUser(params)
|
||||||
|
.then((response) => {
|
||||||
|
this.invList = response.data || [];
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getSpaceList() {
|
||||||
|
let params = {
|
||||||
|
invWarehouseCode: this.filterQuery.fromInvCode,
|
||||||
|
invStorageCode: this.filterQuery.fromInvCode.deptCode,
|
||||||
|
status: 1
|
||||||
|
};
|
||||||
|
getInvSpaceList(params).then((res) => {
|
||||||
|
this.spaceList = res.data.list || [];
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleChange(row) {
|
||||||
|
this.detailQuery.orderIdFk = row.orderId;
|
||||||
|
this.detailQuery.page = 1;
|
||||||
|
this.getDetailList();
|
||||||
|
},
|
||||||
|
getDetailList() {
|
||||||
|
getDeviceReceiveOrderDetailList(this.detailQuery).then((res) => {
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.detailList = res.data.list || [];
|
||||||
|
this.detailTotal = res.data.total || 0;
|
||||||
|
} else {
|
||||||
|
this.detailList = [];
|
||||||
|
this.detailTotal = 0;
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.detailList = [];
|
||||||
|
this.detailTotal = 0;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
closeDialog() {
|
||||||
|
this.formVisible = false;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
document.body.ondrop = function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getDeptList();
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style type="text/scss" lang="scss">
|
||||||
|
</style>
|
||||||
|
|
@ -0,0 +1,250 @@
|
|||||||
|
<template>
|
||||||
|
<el-card style="margin: 5px;margin-top: -20px">
|
||||||
|
<el-form :model="formData" ref="dataForm" label-width="100px" style="margin-bottom: -15px">
|
||||||
|
<el-button-group style="display: flex;margin: 0px 0 10px 80%; height: 35px">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
@click.native="submit()"
|
||||||
|
>保存
|
||||||
|
</el-button>
|
||||||
|
</el-button-group>
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="10">
|
||||||
|
<el-form-item class="query-form-item" label="部门:">
|
||||||
|
<el-select v-model="formData.deptCode"
|
||||||
|
placeholder="请选择部门"
|
||||||
|
clearable="true"
|
||||||
|
@change="deptChange"
|
||||||
|
style="width: 90%"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in deptList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
<el-col :span="10">
|
||||||
|
<el-form-item class="query-form-item" label="仓库:">
|
||||||
|
<el-select v-model="formData.invCode"
|
||||||
|
placeholder="请选择仓库"
|
||||||
|
clearable="true"
|
||||||
|
style="width: 90%"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in invList"
|
||||||
|
:key="item.name"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.code">
|
||||||
|
<span style="float: left">{{ item.name }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="10">
|
||||||
|
<el-form-item label="原始编码:">
|
||||||
|
<el-input v-model="formData.originCode" placeholder="请输入编码" style="width: 90%" clearable></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="10">
|
||||||
|
<el-form-item label="物资编码:">
|
||||||
|
<el-input v-model="formData.code" placeholder="请输入编码" style="width: 90%" clearable disabled></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="10">
|
||||||
|
<el-form-item label="设备名称:">
|
||||||
|
<el-input v-model="formData.deviceName" placeholder="请输入设备名称" style="width: 90%"
|
||||||
|
clearable></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="10">
|
||||||
|
<el-form-item label="规格型号:">
|
||||||
|
<el-input v-model="formData.ggxh" placeholder="请输入规格型号" style="width: 90%" clearable></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="10">
|
||||||
|
<el-form-item label="批次号:">
|
||||||
|
<el-input v-model="formData.batchNo" placeholder="请输入批次号" style="width: 90%" clearable></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="10">
|
||||||
|
<el-form-item label="序列号:">
|
||||||
|
<el-input v-model="formData.serialNo" placeholder="请输入序列号" style="width: 90%" clearable></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="10">
|
||||||
|
<el-form-item label="生产日期:">
|
||||||
|
<el-input v-model="formData.productionDate" placeholder="请输入生产日期" style="width: 90%"
|
||||||
|
clearable></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="10">
|
||||||
|
<el-form-item label="失效日期:">
|
||||||
|
<el-input v-model="formData.expireDate" placeholder="请输入失效日期" style="width: 90%"
|
||||||
|
clearable></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="10">
|
||||||
|
<el-form-item label="生产厂家:">
|
||||||
|
<el-input v-model="formData.manufactory" placeholder="请输入生产厂家" style="width: 90%"
|
||||||
|
clearable></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="10">
|
||||||
|
<el-form-item label="计量单位:">
|
||||||
|
<el-input v-model="formData.measname" placeholder="请输入计量单位" style="width: 90%" clearable></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="10">
|
||||||
|
<el-form-item label="注册证号:">
|
||||||
|
<el-input v-model="formData.zczbhhzbapzbh" placeholder="请输入注册备案凭证号" style="width: 90%"
|
||||||
|
clearable></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="10">
|
||||||
|
<el-form-item label="供应商:">
|
||||||
|
<el-input v-model="formData.supName" placeholder="请输入供应商" style="width: 90%" clearable></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="10">
|
||||||
|
<el-form-item label="负责人:">
|
||||||
|
<el-select v-model="formData.manager"
|
||||||
|
placeholder="请选择负责人"
|
||||||
|
clearable="true"
|
||||||
|
style="width: 90%"
|
||||||
|
>
|
||||||
|
<el-option v-for="item in userList"
|
||||||
|
:key="item.employeeName"
|
||||||
|
:label="item.employeeName"
|
||||||
|
:value="item.userId">
|
||||||
|
<span>{{ item.employeeName }}</span>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="18">
|
||||||
|
<el-form-item label="备注:">
|
||||||
|
<el-input v-model="formData.remark" type="textarea" style="width: 100%" clearable></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-form>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {addDeptDevice, saveDeptDevice, updateDeptDevice} from "@/api/inventory/deptDevice";
|
||||||
|
import {isBlank} from "@/utils/strUtil";
|
||||||
|
import {getDeptListByUser} from "@/api/auth/authDept";
|
||||||
|
import {getInvListByUser} from "@/api/system/invWarehouse";
|
||||||
|
import {listDeptUser} from "@/api/system/deptUser";
|
||||||
|
|
||||||
|
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
formData: {
|
||||||
|
type: Object,
|
||||||
|
required: true
|
||||||
|
},
|
||||||
|
closeDialog: {
|
||||||
|
type: Function,
|
||||||
|
required: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
name: "deptDeviceModifyDialog",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
deptList: [],
|
||||||
|
invList: [],
|
||||||
|
userList: []
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
deptChange() {
|
||||||
|
this.formData.invCode = null;
|
||||||
|
this.invList = [];
|
||||||
|
this.getInvList();
|
||||||
|
this.getDeptUserList();
|
||||||
|
},
|
||||||
|
getDeptList() {
|
||||||
|
getDeptListByUser().then((res) => {
|
||||||
|
this.deptList = res.data || [];
|
||||||
|
this.getInvList();
|
||||||
|
this.getDeptUserList();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getInvList() {
|
||||||
|
let params = {deptCode: this.formData.deptCode};
|
||||||
|
getInvListByUser(params)
|
||||||
|
.then((response) => {
|
||||||
|
this.invList = response.data || [];
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getDeptUserList() {
|
||||||
|
this.userList = [];
|
||||||
|
let params = {deptId: null};
|
||||||
|
this.deptList.forEach((item) => {
|
||||||
|
if (item.code === this.formData.fromDeptCode) {
|
||||||
|
params.deptId = item.id;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
listDeptUser(params).then((res) => {
|
||||||
|
this.userList = res.data.list || [];
|
||||||
|
})
|
||||||
|
},
|
||||||
|
submit() {
|
||||||
|
let formName = isBlank(this.formData.id) ? "add" : "edit";
|
||||||
|
saveDeptDevice(this.formData, formName).then((res) => {
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.$message.success("添加成功");
|
||||||
|
this.closeDialog();
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$message.error(error.message);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getDeptList();
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
@ -0,0 +1,138 @@
|
|||||||
|
<template>
|
||||||
|
<el-card style="margin: 5px;margin-top: -20px">
|
||||||
|
<el-form :model="formData" ref="dataForm" label-width="100px" style="margin-bottom: -15px">
|
||||||
|
<el-button-group style="display: flex;margin: 0px 0 10px 80%; height: 35px">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
@click.native="submit()"
|
||||||
|
>保存
|
||||||
|
</el-button>
|
||||||
|
</el-button-group>
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="10">
|
||||||
|
<el-form-item label="部门名称:">
|
||||||
|
<el-input v-model="formData.deptName" placeholder="请输入部门名称" style="width: 90%"
|
||||||
|
clearable disabled></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="10">
|
||||||
|
<el-form-item label="仓库名称:">
|
||||||
|
<el-input v-model="formData.invName" placeholder="请输入仓库名称" style="width: 90%" clearable
|
||||||
|
disabled></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="10">
|
||||||
|
<el-form-item label="设备名称:">
|
||||||
|
<el-input v-model="formData.deviceName" placeholder="请输入编码" style="width: 90%" clearable
|
||||||
|
disabled></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="10">
|
||||||
|
<el-form-item label="物资编码:">
|
||||||
|
<el-input v-model="formData.code" placeholder="请输入物资编码" style="width: 90%" clearable
|
||||||
|
disabled></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="10">
|
||||||
|
<el-form-item label="时间频率:">
|
||||||
|
<el-input v-model="formData.frequency" placeholder="请输入时间频率" style="width: 90%" clearable></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="10">
|
||||||
|
<el-form-item label="时间频率单位:">
|
||||||
|
<el-select v-model="formData.frequencyUnit"
|
||||||
|
placeholder="请选择时间单位"
|
||||||
|
clearable="true"
|
||||||
|
style="width: 90%"
|
||||||
|
>
|
||||||
|
<el-option label="年" :value="1"></el-option>
|
||||||
|
<el-option label="月" :value="2"></el-option>
|
||||||
|
<el-option label="日" :value="3"></el-option>
|
||||||
|
<el-option label="小时" :value="4"></el-option>
|
||||||
|
<el-option label="分钟" :value="5"></el-option>
|
||||||
|
<el-option label="秒" :value="6"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="18">
|
||||||
|
<el-form-item label="备注:">
|
||||||
|
<el-input v-model="formData.remark" type="textarea" style="width: 100%" clearable></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-form>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {findInspectSet, saveDeviceInspect} from "@/api/inventory/deviceInspectSet";
|
||||||
|
import {isBlank} from "@/utils/strUtil";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
code: {
|
||||||
|
type: String,
|
||||||
|
required: true
|
||||||
|
},
|
||||||
|
closeDialog: {
|
||||||
|
type: Function,
|
||||||
|
required: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
name: "deptDeviceModifyDialog",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
formData: {
|
||||||
|
id: null,
|
||||||
|
code: null,
|
||||||
|
frequency: null,
|
||||||
|
frequencyUnit: null,
|
||||||
|
status: 1,
|
||||||
|
remark: null,
|
||||||
|
deptName: null,
|
||||||
|
invName: null,
|
||||||
|
deviceName: null
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
submit() {
|
||||||
|
let type = isBlank(this.formData.id) ? "add" : "edit";
|
||||||
|
saveDeviceInspect(this.formData, type).then((res) => {
|
||||||
|
if (res.code === 20000) {
|
||||||
|
this.$message.success("操作成功");
|
||||||
|
this.closeDialog();
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.message);
|
||||||
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
this.$message.error(error.message);
|
||||||
|
})
|
||||||
|
},
|
||||||
|
findSetInfo() {
|
||||||
|
let params = {code: this.code};
|
||||||
|
findInspectSet(params).then((res) => {
|
||||||
|
this.formData = res.data;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.findSetInfo();
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
Loading…
Reference in New Issue