|
|
|
@ -6,7 +6,7 @@
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="物资编码:">
|
|
|
|
|
<el-input v-model="filterQuery.code" placeholder="请输入产品编码/商品条码/医保编码" clearable
|
|
|
|
|
style="width: 90%" @keyup.enter.native="keyupErp_submit($event)"
|
|
|
|
|
style="width: 90%" @keyup.enter.native="keyupErp_submit($event)"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -31,40 +31,40 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="供应商:">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="filterQuery.customerId"
|
|
|
|
|
filterable
|
|
|
|
|
remote
|
|
|
|
|
clearable="true"
|
|
|
|
|
reserve-keyword
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
placeholder="请选择供应商"
|
|
|
|
|
:remote-method="findCompany"
|
|
|
|
|
:loading="loading"
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="供应商:">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="filterQuery.customerId"
|
|
|
|
|
filterable
|
|
|
|
|
remote
|
|
|
|
|
clearable="true"
|
|
|
|
|
reserve-keyword
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
placeholder="请选择供应商"
|
|
|
|
|
:remote-method="findCompany"
|
|
|
|
|
:loading="loading"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in companyNames"
|
|
|
|
|
:key="item.companyName"
|
|
|
|
|
:label="item.companyName"
|
|
|
|
|
:value="item.customerId"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in companyNames"
|
|
|
|
|
:key="item.companyName"
|
|
|
|
|
:label="item.companyName"
|
|
|
|
|
:value="item.customerId"
|
|
|
|
|
>
|
|
|
|
|
<span style="float: left">{{ item.companyName }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<span style="float: left">{{ item.companyName }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<div class="top-right-btn">
|
|
|
|
|
<el-button-group style="display:flex;">
|
|
|
|
|
<el-button icon="el-icon-view" type="primary" @click="hideSearch">显示/隐藏搜索栏</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="search">查询</el-button>
|
|
|
|
|
</el-button-group>
|
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="search">查询</el-button>
|
|
|
|
|
</el-button-group>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
@ -83,11 +83,14 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="审核意见" prop="remark" show-overflow-tooltip></el-table-column>
|
|
|
|
|
<el-table-column label="操作" >
|
|
|
|
|
<el-table-column label="操作">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="text" size="small" @click.native.stop="detailDialog(scope.row,1)">详情</el-button>
|
|
|
|
|
<el-button type="text" size="small" @click.native.stop="deleteDialog(scope.row)" :disabled="scope.row.status==2">删除</el-button>
|
|
|
|
|
<el-button type="text" size="small" :disabled="scope.row.status==2" @click="detailDialog(scope.row,2)">审核</el-button>
|
|
|
|
|
<el-button type="text" size="small" @click.native.stop="deleteDialog(scope.row)"
|
|
|
|
|
:disabled="scope.row.status==2">删除
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="text" size="small" :disabled="scope.row.status==2" @click="detailDialog(scope.row,2)">审核
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -162,7 +165,7 @@ import {
|
|
|
|
|
} from '@/api/supplier/supProductsAddDi'
|
|
|
|
|
import selectDiDetail from '@/views/supplier/products/selectDIDetailDialog'
|
|
|
|
|
import ThrProductsAdd from '@/views/supplier/products/supProductsAdd'
|
|
|
|
|
import { filterCustomers } from '@/api/auth/customer'
|
|
|
|
|
import {filterCustomers} from '@/api/auth/customer'
|
|
|
|
|
import thrProductsDetail from '@/views/supplier/products/supProductsDetail'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
@ -182,9 +185,9 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
total: 0,
|
|
|
|
|
list: [],
|
|
|
|
|
title:null,
|
|
|
|
|
editDate:null,
|
|
|
|
|
thisDetail:null,
|
|
|
|
|
title: null,
|
|
|
|
|
editDate: null,
|
|
|
|
|
thisDetail: null,
|
|
|
|
|
uploadFileUrl: null,
|
|
|
|
|
fileList: [],
|
|
|
|
|
checkVisible: false,
|
|
|
|
@ -229,16 +232,16 @@ export default {
|
|
|
|
|
this.remark = ''
|
|
|
|
|
this.curRow = row
|
|
|
|
|
},
|
|
|
|
|
close(){
|
|
|
|
|
this.thrProductsDiDetailVisible=false;
|
|
|
|
|
this.thrProductsDetailVisible=false;
|
|
|
|
|
close() {
|
|
|
|
|
this.thrProductsDiDetailVisible = false;
|
|
|
|
|
this.thrProductsDetailVisible = false;
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
search() {
|
|
|
|
|
this.filterQuery.page = 1
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
acts(){
|
|
|
|
|
acts() {
|
|
|
|
|
gupdateDiProductDetail().then((res) => {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
|
|
|
|
@ -292,28 +295,28 @@ export default {
|
|
|
|
|
.catch(() => {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
detailDialog(row,type) {
|
|
|
|
|
if(type==1){
|
|
|
|
|
this.title="产品信息详情"
|
|
|
|
|
}else{
|
|
|
|
|
this.title="物资入院审核"
|
|
|
|
|
detailDialog(row, type) {
|
|
|
|
|
if (type == 1) {
|
|
|
|
|
this.title = "产品信息详情"
|
|
|
|
|
} else {
|
|
|
|
|
this.title = "物资入院审核"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(row.type==1){
|
|
|
|
|
let query = { uuid: row.uuid }
|
|
|
|
|
if (row.type == 1) {
|
|
|
|
|
let query = {uuid: row.uuid}
|
|
|
|
|
getDiProductDetail(query).then((res) => {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.thisData = res.data
|
|
|
|
|
this.editDate=row
|
|
|
|
|
this.thisData.isAudit=type
|
|
|
|
|
this.editDate = row
|
|
|
|
|
this.thisData.isAudit = type
|
|
|
|
|
this.thrProductsDiDetailVisible = true
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error('参数错误')
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
this.thisDetail = row;
|
|
|
|
|
this.thisDetail.isAudit=type
|
|
|
|
|
this.thisDetail.isAudit = type
|
|
|
|
|
this.thrProductsDetailVisible = true;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -358,7 +361,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
|
ThrProductsAdd, selectDiDetail,thrProductsDetail
|
|
|
|
|
ThrProductsAdd, selectDiDetail, thrProductsDetail
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
},
|
|
|
|
|