|
|
|
@ -2,39 +2,60 @@
|
|
|
|
|
<div>
|
|
|
|
|
<el-card class="el-card">
|
|
|
|
|
<el-form :model="filterQuery" class="query-form" label-width="100px" v-show="showSearch">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="单据号:">
|
|
|
|
|
<el-input v-model="filterQuery.billNo" style="width: 90%" placeholder="单据号" clearable></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="审核状态:">
|
|
|
|
|
<el-select v-model="filterQuery.status" style="width: 90%" placeholder="审核状态">
|
|
|
|
|
<el-option label="全部" value=""></el-option>
|
|
|
|
|
<el-option label="未审核" value="2"></el-option>
|
|
|
|
|
<el-option label="已审核" value="3"></el-option>
|
|
|
|
|
<el-option label="已拒绝" value="4"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="单据日期:">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
:picker-options="pickerOptions"
|
|
|
|
|
v-model="actDateRange"
|
|
|
|
|
type="daterange"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
format="yyyy 年 MM 月 dd 日"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
range-separator="至"
|
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
|
>
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-form-item label="申购单号">
|
|
|
|
|
<el-input v-model="filterQuery.billNo" style="width: 90%" placeholder="请输入单据号" clearable></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-form-item label="申购仓库">
|
|
|
|
|
<el-select v-model="filterQuery.targetInvCode" style="width: 90%" placeholder="请选择所属仓库">
|
|
|
|
|
<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-select v-model="filterQuery.targetDeptCode" placeholder="请选择采购仓库" style="width: 90%">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in deptList"
|
|
|
|
|
:key="item.code"
|
|
|
|
|
: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 label="创建时间:">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
:picker-options="pickerOptions"
|
|
|
|
|
v-model="actDateRange"
|
|
|
|
|
type="daterange"
|
|
|
|
|
format="yyyy 年 MM 月 dd 日"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
range-separator="至"
|
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
|
>
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<div class="top-right-btn">
|
|
|
|
@ -49,24 +70,24 @@
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="list" style="width: 100%" border highlight-current-row @current-change="handleDetail">
|
|
|
|
|
<el-table-column label="序号" type="index" width="60"></el-table-column>
|
|
|
|
|
<el-table-column label="单据号" prop="billNo"></el-table-column>
|
|
|
|
|
<el-table-column label="申购日期" prop="billDate">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="申购人" prop="createByName"></el-table-column>
|
|
|
|
|
<el-table-column label="审核人" prop="auditByName"></el-table-column>
|
|
|
|
|
<el-table-column label="申购仓库" prop="targetInvName"></el-table-column>
|
|
|
|
|
<el-table-column label="申购分库" prop="targetDeptName"></el-table-column>
|
|
|
|
|
<el-table-column label="申购说明" prop="remark"></el-table-column>
|
|
|
|
|
<el-table-column label="状态" prop="status">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag :type="(scope.row.status) | statusFilterType">
|
|
|
|
|
{{ statusMap[scope.row.status] }}
|
|
|
|
|
</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="申购单号" prop="billNo"></el-table-column>
|
|
|
|
|
<el-table-column label="创建时间" prop="createTime"></el-table-column>
|
|
|
|
|
<el-table-column label="申购部门" prop="targetDeptName"></el-table-column>
|
|
|
|
|
<el-table-column label="申购仓库" prop="targetInvName"></el-table-column>
|
|
|
|
|
<el-table-column label="紧急程度" prop="emergency" >
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ emergencyMap[scope.row.emergency] }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="到货时间" prop="arrivalTime" ></el-table-column>
|
|
|
|
|
<el-table-column label="申购说明" prop="remark"></el-table-column>
|
|
|
|
|
<el-table-column label="状态" prop="status">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag :type="(scope.row.status) | statusFilterType">
|
|
|
|
|
{{ statusMap[scope.row.status] }}
|
|
|
|
|
</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="操作" width="60px">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
@ -86,15 +107,15 @@
|
|
|
|
|
</el-card>
|
|
|
|
|
<el-card class="el-card">
|
|
|
|
|
<el-table v-loading="loading" :data="detailList" style="width: 100%" border highlight-current-row>
|
|
|
|
|
<el-table-column label="序号" type="index" width="120"></el-table-column>
|
|
|
|
|
<!-- <el-table-column label="产品编码" prop="productId"></el-table-column> -->
|
|
|
|
|
<el-table-column label="产品通用名" prop="productName" show-overflow-tooltip="true"></el-table-column>
|
|
|
|
|
<el-table-column label="规格型号" prop="spec" show-overflow-tooltip="true"></el-table-column>
|
|
|
|
|
<el-table-column label="申购数量" prop="count"></el-table-column>
|
|
|
|
|
<el-table-column label="注册/备案凭证号" prop="zczbhhzbapzbh" show-overflow-tooltip="true"></el-table-column>
|
|
|
|
|
<el-table-column label="生产企业" prop="manufactory" show-overflow-tooltip="true"></el-table-column>
|
|
|
|
|
<el-table-column label="医疗器械注册人" prop="ylqxzcrbarmc" show-overflow-tooltip="true"></el-table-column>
|
|
|
|
|
<el-table-column label="供应商" prop="supName" show-overflow-tooltip="true"></el-table-column>
|
|
|
|
|
<el-table-column label="序号" type="index" width="120"></el-table-column>
|
|
|
|
|
<el-table-column label="物资名称" prop="productName" show-overflow-tooltip="true"></el-table-column>
|
|
|
|
|
<el-table-column label="规格型号" prop="spec" show-overflow-tooltip="true"></el-table-column>
|
|
|
|
|
<el-table-column label="申购数量" prop="count"></el-table-column>
|
|
|
|
|
<el-table-column label="计量单位" prop="measname"></el-table-column>
|
|
|
|
|
<el-table-column label="供应商" prop="supName" show-overflow-tooltip="true"></el-table-column>
|
|
|
|
|
<el-table-column label="生产企业" prop="manufactory" show-overflow-tooltip="true"></el-table-column>
|
|
|
|
|
<el-table-column label="注册/备案号" prop="zczbhhzbapzbh" show-overflow-tooltip="true"></el-table-column>
|
|
|
|
|
<el-table-column label="注册/备案人" prop="ylqxzcrbarmc" show-overflow-tooltip="true"></el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
@ -118,6 +139,8 @@
|
|
|
|
|
<script>
|
|
|
|
|
import pureApplyDetail from "./pureApplyDetailDialog";
|
|
|
|
|
import {delApply, auditOrder, listApplyDetail, auditListApply} from "@/api/purchase/purApply";
|
|
|
|
|
import {getInvListByUser} from "@/api/system/invWarehouse";
|
|
|
|
|
import {getDeptListByUser} from "@/api/auth/authDept";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
@ -145,6 +168,11 @@ export default {
|
|
|
|
|
3: "已审核",
|
|
|
|
|
4: "已拒绝"
|
|
|
|
|
},
|
|
|
|
|
emergencyMap:{
|
|
|
|
|
1: "普通",
|
|
|
|
|
2: "紧急",
|
|
|
|
|
3: "不紧急",
|
|
|
|
|
},
|
|
|
|
|
idQuery: {},
|
|
|
|
|
editType: 1,
|
|
|
|
|
total: 0,
|
|
|
|
@ -152,6 +180,8 @@ export default {
|
|
|
|
|
thirdSysDetail: null,
|
|
|
|
|
busTypes: [],
|
|
|
|
|
originTypes: [],
|
|
|
|
|
invList:{},
|
|
|
|
|
deptList:{},
|
|
|
|
|
list: [],
|
|
|
|
|
detailList: [],
|
|
|
|
|
loading: false,
|
|
|
|
@ -326,7 +356,17 @@ export default {
|
|
|
|
|
this.formName = "add";
|
|
|
|
|
this.newSpDistributionVisible = true;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
getInvList() {
|
|
|
|
|
getInvListByUser().then((res) => {
|
|
|
|
|
this.invList = res.data || [];
|
|
|
|
|
this.getBusType();
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getDeptList() {
|
|
|
|
|
getDeptListByUser().then((res) => {
|
|
|
|
|
this.deptList = res.data || [];
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
,
|
|
|
|
|
components: {
|
|
|
|
@ -354,6 +394,8 @@ export default {
|
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
|
|
|
|
this.actDateRange = [start, end];
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getInvList();
|
|
|
|
|
this.getDeptList();
|
|
|
|
|
}
|
|
|
|
|
,
|
|
|
|
|
}
|
|
|
|
|