首营资质管理功能新增
parent
dfa73e1e29
commit
821bbd07d3
@ -1,6 +1,6 @@
|
||||
{
|
||||
"BASE_URL": "http://127.0.0.1:9906",
|
||||
"SERVER_IP": "http://127.0.0.1:9906",
|
||||
"BASE_URL": "http://192.168.0.109:9906",
|
||||
"SERVER_IP": "http://192.168.0.109:9906",
|
||||
"hosp_name": "福建省XX市医院"
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,54 @@
|
||||
import axios from "../../utils/axios";
|
||||
|
||||
export function filterCertSet(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/sup/cert/set/filter",
|
||||
method: "get",
|
||||
params: query
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export function delSupCertCert(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/sup/cert/set/delete",
|
||||
method: "post",
|
||||
data: query
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export function addSupCertSet(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/sup/cert/set/add",
|
||||
method: "post",
|
||||
data: query
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export function modifySupCertSet(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/sup/cert/set/update",
|
||||
method: "post",
|
||||
data: query
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export function selectAllCert(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/sup/info/selectAllCert",
|
||||
method: "post",
|
||||
data: query
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
@ -0,0 +1,159 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-card class="el-card">
|
||||
<div>
|
||||
<el-form :inline="true" :model="query" style="display: flex" size="mini">
|
||||
|
||||
<el-form-item class="query-form-item">
|
||||
<el-input v-model="query.key" placeholder="搜索" style="width: 300px" clearable="true"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item style="display: flex">
|
||||
<el-button-group>
|
||||
<el-button type="primary" icon="search" @click="getList">查询</el-button>
|
||||
<el-button type="primary" size="mini" icon="search" @click="combine"
|
||||
:loading="combineLoading"
|
||||
>选入
|
||||
</el-button>
|
||||
</el-button-group>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="list"
|
||||
highlight-current-row
|
||||
@current-change="handleSelectChange"
|
||||
style="width: 100%"
|
||||
>
|
||||
<el-table-column label="序号" type="index"></el-table-column>
|
||||
<el-table-column
|
||||
label="往来单位编码"
|
||||
prop="erpId"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="第三方主系统ID"
|
||||
prop="thirdId"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="名称"
|
||||
prop="name"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="简写"
|
||||
prop="spell"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="社会信用号"
|
||||
prop="creditNo"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="地址"
|
||||
prop="addr"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
|
||||
</el-table>
|
||||
|
||||
</div>
|
||||
</el-card>
|
||||
<el-pagination
|
||||
:page-size="query.limit"
|
||||
@current-change="handleCurrentChange"
|
||||
layout="prev, pager, next"
|
||||
:total="total"
|
||||
:current-page="query.page"
|
||||
></el-pagination>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {combineSingle, getBasicUnitMaintains} from "../../api/basic/basicUnitMaintain";
|
||||
|
||||
export default {
|
||||
name: "combinType",
|
||||
props: {
|
||||
closeDialog: {
|
||||
type: Function,
|
||||
required: true,
|
||||
},
|
||||
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
query: {
|
||||
key: "",
|
||||
page: 1,
|
||||
limit: 20,
|
||||
},
|
||||
total: 0,
|
||||
loading: false,
|
||||
list: [],
|
||||
currentRow: null,
|
||||
combineLoading: false,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
handlepageChange(val) {
|
||||
this.unitQuery.page = val;
|
||||
this.getList();
|
||||
},
|
||||
handleErppageChange(val) {
|
||||
this.erpQuery.page = val;
|
||||
this.getErpList();
|
||||
},
|
||||
onReset() {
|
||||
this.$router.push({
|
||||
path: "",
|
||||
});
|
||||
this.query = {
|
||||
key: "",
|
||||
page: 1,
|
||||
limit: 20,
|
||||
};
|
||||
this.getList();
|
||||
},
|
||||
getList() {
|
||||
this.loading = true;
|
||||
getBasicUnitMaintains(this.query)
|
||||
.then((response) => {
|
||||
this.loading = false;
|
||||
this.list = response.data.page.list || [];
|
||||
this.total = response.data.page.total || 0;
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.list = [];
|
||||
this.total = 0;
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
handleSelectChange(val) {
|
||||
this.currentRow = val;
|
||||
},
|
||||
|
||||
handleCurrentChange(val) {
|
||||
this.query.page = val;
|
||||
this.getList();
|
||||
},
|
||||
combine() {
|
||||
this.closeDialog(this.currentRow);
|
||||
},
|
||||
handleSelectionUdiChange(val) {
|
||||
console.log("----" + val[0].id);
|
||||
this.multipleUdiSelection = val;
|
||||
},
|
||||
},
|
||||
created() {
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
@ -0,0 +1,881 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-card>
|
||||
<el-form :inline="true" :model="filterQuery" size="mini">
|
||||
<el-row>
|
||||
<el-form-item class="query-form-item">
|
||||
<el-input v-model="filterQuery.unionCode" placeholder="DI/医保编码/商品条码"
|
||||
clearable="true"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item class="query-form-item">
|
||||
<el-input v-model="filterQuery.cpmctymc" placeholder="产品通用名" clearable="true"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item class="query-form-item">
|
||||
<el-input v-model="filterQuery.ggxh" placeholder="规格型号" clearable="true"></el-input>
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-form-item class="query-form-item">
|
||||
<el-input v-model="filterQuery.ylqxzcrbarmc" placeholder="生产企业/注册备案人"
|
||||
clearable="true"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item class="query-form-item">
|
||||
<el-input v-model="filterQuery.supName" placeholder="配送企业" clearable="true"></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item class="query-form-item">
|
||||
<el-input v-model="filterQuery.thrPiId" placeholder="第三方产品编码" clearable="true"></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item>
|
||||
<el-button-group>
|
||||
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
|
||||
<el-button type="primary" icon="search" @click="submitSearch">查询</el-button>
|
||||
<el-button type="primary" icon="search" @click="selectExport"
|
||||
>选中导入
|
||||
</el-button>
|
||||
</el-button-group>
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
</el-form>
|
||||
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="list"
|
||||
style="width: 100%"
|
||||
ref="diList"
|
||||
highlight-current-row
|
||||
:header-cell-class-name="cellClass"
|
||||
@current-change="handleSelectionChange"
|
||||
>
|
||||
<el-table-column label width="45">
|
||||
<template slot-scope="scope">
|
||||
<el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="序号" type="index"></el-table-column>
|
||||
<el-table-column
|
||||
label="最小销售产品标识"
|
||||
prop="nameCode"
|
||||
width="140"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="产品编码"
|
||||
prop="thirdId"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="生产企业"
|
||||
prop="ylqxzcrbarmc"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="产品通用名"
|
||||
prop="cpmctymc"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="规格型号"
|
||||
prop="ggxh"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
|
||||
<el-table-column
|
||||
label="注册/备案凭证"
|
||||
prop="zczbhhzbapzbh"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
|
||||
|
||||
<el-table-column
|
||||
label="器械类别"
|
||||
prop="qxlb"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
|
||||
<el-table-column width="200" label="操作" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
@click.native.stop="handleModifyClick(scope.row)"
|
||||
>详情
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-dialog
|
||||
title="产品信息详情"
|
||||
:visible.sync="editDialogVisible"
|
||||
width="70%"
|
||||
:close-on-click-modal="false"
|
||||
:close-on-press-escape="false"
|
||||
append-to-body
|
||||
v-if="editDialogVisible"
|
||||
>
|
||||
<el-table :data="sysList" style="width: 100%" border>
|
||||
<el-table-column label="序号" type="index"></el-table-column>
|
||||
<el-table-column
|
||||
label="第三方系统名称"
|
||||
prop="sysName"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
|
||||
<el-table-column
|
||||
label="第三方产品名称"
|
||||
prop="thirdName"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="第三方产品ID"
|
||||
prop="thirdId"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
</el-table>
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="detailList"
|
||||
style="width: 100%; margin-top: 20px"
|
||||
border
|
||||
@current-change="handleDetail"
|
||||
>
|
||||
<el-table-column
|
||||
label="产品标识"
|
||||
prop="nameCode"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
|
||||
<el-table-column
|
||||
label="产品通用名"
|
||||
prop="cpmctymc"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="包装级别"
|
||||
prop="packLevel"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
label="包装层级"
|
||||
prop="bzcj"
|
||||
show-overflow-tooltip
|
||||
></el-table-column>
|
||||
</el-table>
|
||||
|
||||
<el-form
|
||||
:model="editQuery"
|
||||
:rules="rules"
|
||||
ref="editQuery"
|
||||
label-width="100px"
|
||||
style="margin-top: 20px"
|
||||
>
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>产品名称: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
:disabled="true"
|
||||
v-model="editQuery.cpmctymc"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>产品标识: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="true"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="editQuery.nameCode"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
|
||||
|
||||
</el-row>
|
||||
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>规格型号: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="true"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="editQuery.ggxh"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>器械类别: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="true"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="editQuery.qxlb"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>产品类别: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="true"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="editQuery.cplb"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>分类编码: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="true"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="editQuery.flbm"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
|
||||
</el-row>
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>商品条码: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="true"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="editQuery.sptm"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>医保编码: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="true"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="editQuery.ybbm"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>医疗器械注册人: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="true"
|
||||
size="small"
|
||||
splaceholder="ylqxzcrbarmc"
|
||||
v-model="editQuery.ylqxzcrbarmc"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>注册人英文名称: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="true"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="editQuery.ylqxzcrbarywmc"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
|
||||
</el-row>
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>统一社会信用号: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="true"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="editQuery.tyshxydm"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>注册证/备案号: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="true"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="editQuery.zczbhhzbapzbh"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>上级产品编码: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="true"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="editQuery.sjcpbm"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>包装级别: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
:disabled="true"
|
||||
v-model="editQuery.packLevel"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>包装单位/包装级别: </span>
|
||||
</div>
|
||||
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="editQuery.bzcj"
|
||||
:disabled="true"
|
||||
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>包含下级包装数量: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
:disabled="true"
|
||||
v-model="editQuery.bhxjsl"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>包含下级产品编码: </span>
|
||||
</div>
|
||||
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
size="small"
|
||||
:disabled="true"
|
||||
splaceholder="请输入内容"
|
||||
v-model="editQuery.bhxjcpbm"
|
||||
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>包含最小销售包装数量: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
size="small"
|
||||
:disabled="true"
|
||||
splaceholder="请输入内容"
|
||||
v-model="editQuery.bhzxxsbzsl"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>是否包含批号: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="!checked"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="editQuery.scbssfbhph"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>是否包含序列号: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="!checked"
|
||||
size="small"
|
||||
v-model="editQuery.scbssfbhxlh"
|
||||
splaceholder="请输入内容"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>是否包含生产日期: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="!checked"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="editQuery.scbssfbhscrq"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>是否包含失效日期: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="!checked"
|
||||
v-model="editQuery.scbssfbhsxrq"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>产品描述: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="!checked"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="editQuery.cpms"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20" class="el-row" type="flex">
|
||||
<el-col :span="12" class="el-col">
|
||||
<div class="text item">
|
||||
<div class="itemTag">
|
||||
<span>最小包装单元内包含使用单元数量: </span>
|
||||
</div>
|
||||
<el-input
|
||||
style="width: 65%"
|
||||
:disabled="!checked"
|
||||
size="small"
|
||||
splaceholder="请输入内容"
|
||||
v-model="editQuery.zxxsbzbhsydysl"
|
||||
></el-input>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
|
||||
</el-dialog>
|
||||
|
||||
<el-pagination
|
||||
:page-size="filterQuery.limit"
|
||||
@current-change="handleCurrentChange"
|
||||
layout="prev, pager, next"
|
||||
:total="total"
|
||||
:current-page="filterQuery.page"
|
||||
></el-pagination>
|
||||
</el-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
updateErpProduct,
|
||||
thirdSysDetail,
|
||||
getSmUdiInfos
|
||||
} from "../../api/basic/udiRelevance";
|
||||
import {udiUpload} from "../../api/thrsys/smp"
|
||||
import {finProductSet, selectSysParamByKey} from "../../api/param/systemParamConfig";
|
||||
import {filterByUuid} from "../../api/basic/udiInfo";
|
||||
import {
|
||||
insertCompanyProductRelevance,
|
||||
insertFilter
|
||||
} from "../../api/warehouse/companyProductRelevance";
|
||||
import store from "../../store";
|
||||
|
||||
export default {
|
||||
name: "basicSelectSingleProducts",
|
||||
props: {
|
||||
selectType: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
closeSelDialog: {
|
||||
type: Function,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
radioCheck: null,
|
||||
filterQuery: {
|
||||
customerId: null,
|
||||
ylqxzcrbarmc: "",
|
||||
supName: null,
|
||||
cpmctymc: "",
|
||||
nameCode: "",
|
||||
page: 1,
|
||||
limit: 10,
|
||||
addType: 1,
|
||||
isDisable: false,
|
||||
|
||||
},
|
||||
|
||||
|
||||
postQuery: {
|
||||
customerId: null,
|
||||
uuids: [],
|
||||
rlIds: [],
|
||||
supplementRequest: null,
|
||||
},
|
||||
loading: false,
|
||||
editQuery: null,
|
||||
repEditQuery: {},
|
||||
relevanceEdit: {
|
||||
id: null,
|
||||
thirdId: "",
|
||||
isUseDy: false,
|
||||
},
|
||||
|
||||
replTitle: "产品信息补齐:",
|
||||
isImport: false,
|
||||
isImportUdi: false,
|
||||
isUploadSmp: false,
|
||||
isImportFile: false,
|
||||
uploadFileUrl: null,
|
||||
checked: false,
|
||||
list: [],
|
||||
detailList: [],
|
||||
sysList: [],
|
||||
total: 0,
|
||||
thirdNo: "",
|
||||
uuid: "111",
|
||||
thirdId: null,
|
||||
relId: "",
|
||||
thisData: {
|
||||
nameCode: null,
|
||||
cpmctymc: null,
|
||||
ggxh: null
|
||||
},
|
||||
currentRow: null,
|
||||
multipleSelection: [],
|
||||
editDialogVisible: false,
|
||||
selectUdiDialogVisible: false,
|
||||
selectErpDialogVisible: false,
|
||||
selectLocalVisible: false,
|
||||
productRemarkSet: {},
|
||||
supplementRequest: null,
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
onReset() {
|
||||
this.radioCheck = null;
|
||||
this.$router.push({
|
||||
path: "",
|
||||
});
|
||||
this.filterQuery = {
|
||||
customerId: null,
|
||||
ylqxzcrbarmc: "",
|
||||
supName: null,
|
||||
cpmctymc: "",
|
||||
nameCode: "",
|
||||
page: 1,
|
||||
limit: 10,
|
||||
addType: 1,
|
||||
};
|
||||
this.getList();
|
||||
},
|
||||
|
||||
|
||||
submitSearch() {
|
||||
this.filterQuery.page = 1;
|
||||
this.getList();
|
||||
},
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.filterQuery.customerId = store.getters.customerId;
|
||||
getSmUdiInfos(this.filterQuery)
|
||||
.then((response) => {
|
||||
this.loading = false;
|
||||
this.list = response.data.list || [];
|
||||
this.total = response.data.total || 0;
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.list = [];
|
||||
this.total = 0;
|
||||
});
|
||||
},
|
||||
|
||||
getDetailList(detailQuery) {
|
||||
this.loading = true;
|
||||
filterByUuid(detailQuery)
|
||||
.then((response) => {
|
||||
this.loading = false;
|
||||
this.detailList = response.data || [];
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.detailList = [];
|
||||
});
|
||||
},
|
||||
|
||||
handleDetail(row) {
|
||||
this.editQuery = row;
|
||||
},
|
||||
|
||||
combine() {
|
||||
this.combineQuery.productUuid = this.currentRow.uuid;
|
||||
this.combineQuery.customerId = store.getters.customerId;
|
||||
insertCompanyProductRelevance(this.combineQuery).then(response => {
|
||||
this.loading = false;
|
||||
if (response.code === 20000) {
|
||||
this.$message.success("添加成功");
|
||||
this.closeDialog(true);
|
||||
} else {
|
||||
this.$message.error(response.message);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
cellClass(row) {
|
||||
if (row.columnIndex === 0) {
|
||||
return 'disabledCheck'
|
||||
}
|
||||
},
|
||||
selectExport() {
|
||||
|
||||
var selectData = this.multipleSelection;
|
||||
if (selectData == null || selectData.length == 0) {
|
||||
this.$message.warning("请先选入产品!");
|
||||
return;
|
||||
}
|
||||
this.closeSelDialog(selectData.id);
|
||||
|
||||
},
|
||||
allExport() {
|
||||
this.postQuery.customerId = store.getters.customerId;
|
||||
this.postQuery.supplementRequest = this.repEditQuery;
|
||||
insertFilter(this.postQuery).then(response => {
|
||||
this.loading = false;
|
||||
if (response.code == 20000) {
|
||||
this.$message.success(response.data);
|
||||
this.$emit("closeSelDialog", true);
|
||||
this.closeSelDialog();
|
||||
} else {
|
||||
this.$message.error(response.message);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
intentDetail() {
|
||||
this.isImportUdi = false;
|
||||
this.selectUdiDialogVisible = true;
|
||||
},
|
||||
|
||||
intentImportErp(val) {
|
||||
this.uuid = val.uuid;
|
||||
this.relId = val.id;
|
||||
this.isImport = true;
|
||||
this.thisData = val;
|
||||
this.selectErpDialogVisible = true;
|
||||
},
|
||||
handleSelectionChange(selection) {
|
||||
this.radioCheck = selection.id;
|
||||
this.curSelectDi = selection;
|
||||
if (selection.length > 1) {
|
||||
this.$refs.diList.clearSelection();
|
||||
this.$refs.diList.toggleRowSelection(selection.pop());
|
||||
}
|
||||
|
||||
this.multipleSelection = selection
|
||||
this.currentRow = selection;
|
||||
this.replTitle = "(" + this.currentRow.cpmctymc + ")" + "产品信息补齐:";
|
||||
},
|
||||
handleErpChange(val) {
|
||||
this.currentRow = val;
|
||||
},
|
||||
handleCurrentChange(val) {
|
||||
this.filterQuery.page = val;
|
||||
this.getList();
|
||||
},
|
||||
handleModifyClick(row) {
|
||||
this.editDialogVisible = true;
|
||||
this.editQuery = row;
|
||||
this.relevanceEdit = {
|
||||
id: row.id,
|
||||
thirdId: row.thirdId,
|
||||
isUseDy: row.isUseDy,
|
||||
};
|
||||
this.checked = row.isUseDy == 1;
|
||||
|
||||
let ttquery = {
|
||||
uuid: row.uuid,
|
||||
page: 1,
|
||||
limit: 10,
|
||||
};
|
||||
|
||||
this.getDetailList(ttquery);
|
||||
this.getThirdSysDetail();
|
||||
},
|
||||
closeUdi(val) {
|
||||
this.selectUdiDialogVisible = false;
|
||||
this.selectErpDialogVisible = false;
|
||||
this.selectLocalVisible = false;
|
||||
if (val) {
|
||||
this.getList();
|
||||
}
|
||||
},
|
||||
getThirdSysDetail() {
|
||||
let query = {
|
||||
id: this.relevanceEdit.id,
|
||||
};
|
||||
|
||||
thirdSysDetail(query)
|
||||
.then((response) => {
|
||||
this.loading = false;
|
||||
this.sysList = response.data.list || [];
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.sysList = [];
|
||||
});
|
||||
},
|
||||
checkSelectable(row) {
|
||||
return !row.isSelect;
|
||||
},
|
||||
|
||||
closeDialog() {
|
||||
this.selectErpDialogVisible = false;
|
||||
this.selectLocalVisible = false;
|
||||
},
|
||||
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
components: {},
|
||||
created() {
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
|
||||
.el-table .disabledCheck .cell .el-checkbox .el-checkbox__input {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.itemTag {
|
||||
float: left;
|
||||
text-align: left;
|
||||
margin-top: 10px;
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
.query-form-item {
|
||||
display: block !important;
|
||||
margin-right: 10px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.text {
|
||||
font-size: 13px;
|
||||
font-family: "Microsoft YaHei";
|
||||
}
|
||||
|
||||
.el-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.el-col {
|
||||
border-radius: 4px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
</style>
|
@ -0,0 +1,146 @@
|
||||
<template>
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
<el-card style="margin-top: -20px">
|
||||
|
||||
<div style="float: right;margin-bottom: 10px;margin-right: 25px">
|
||||
<el-button type="primary" size="small" @click="selectSet()">选入</el-button>
|
||||
</div>
|
||||
|
||||
<el-table v-loading="loading" :data="list" style="width: 100%"
|
||||
@selection-change="handleCheckedChange">
|
||||
<el-table-column type="selection" width="55"></el-table-column>
|
||||
<el-table-column type="index" label="序号" width="50"></el-table-column>
|
||||
<el-table-column label="证书名称" prop="name"></el-table-column>
|
||||
<el-table-column label="是否必传" prop="require" s>
|
||||
<template slot-scope="scope">
|
||||
<span>{{ enableMap[scope.row.need] }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="说明" prop="remark"></el-table-column>
|
||||
</el-table>
|
||||
<el-pagination
|
||||
:page-size="query.limit"
|
||||
@current-change="handleCurrentChange"
|
||||
layout="prev, pager, next"
|
||||
:total="total"
|
||||
>
|
||||
</el-pagination>
|
||||
|
||||
</el-card>
|
||||
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
import {filterCertSet, selectAllCert} from "@/api/purchase/supCertSet";
|
||||
|
||||
export default {
|
||||
name: "supCertSetDialog",
|
||||
|
||||
props: {
|
||||
closeDialog: {
|
||||
type: Function,
|
||||
required: true,
|
||||
},
|
||||
certType: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
manufacturerId: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
productId: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
|
||||
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
query: {
|
||||
manufacturerIdFk: null,
|
||||
type: 1,
|
||||
page: 1,
|
||||
limit: 20
|
||||
},
|
||||
multipleSelection: [],
|
||||
enableMap: {
|
||||
true: "是",
|
||||
false: "否",
|
||||
},
|
||||
list: [],
|
||||
total: 0,
|
||||
loading: false,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
handleCheckedChange(val) {
|
||||
this.multipleSelection = val;
|
||||
},
|
||||
handleCurrentChange(val) {
|
||||
this.query.page = val;
|
||||
this.getList();
|
||||
},
|
||||
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.query.type = this.certType;
|
||||
filterCertSet(this.query)
|
||||
.then(response => {
|
||||
this.loading = false;
|
||||
this.list = response.data.list || [];
|
||||
this.total = response.data.total || 0;
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.list = [];
|
||||
this.total = 0;
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
selectSet() {
|
||||
let postQuery = {
|
||||
certType: this.certType,
|
||||
manufacturerIdFk: this.manufacturerId,
|
||||
productIdFk: this.productId,
|
||||
supCertSetEntities: this.multipleSelection
|
||||
};
|
||||
selectAllCert(postQuery)
|
||||
.then(response => {
|
||||
if (response.code === 20000) {
|
||||
this.closeDialog();
|
||||
} else {
|
||||
this.$message.error(response.message);
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.$message.error(response.message);
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
filters: {},
|
||||
mounted() {
|
||||
document.body.ondrop = function (event) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
Loading…
Reference in New Issue