首营资质 资质新增 资质审核代码提交
parent
45c43ce0ea
commit
ac1bd1ab14
@ -0,0 +1,11 @@
|
||||
import axios from "@/utils/request";
|
||||
|
||||
export function filterClassify(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/spms/classify/code/filter",
|
||||
method: "get",
|
||||
params: query
|
||||
}
|
||||
);
|
||||
}
|
||||
@ -0,0 +1,59 @@
|
||||
import axios from "@/utils/request";
|
||||
|
||||
export function filterCompanyCert(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/sup/company/cert/filter",
|
||||
method: "get",
|
||||
params: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
export function insertCompanyCert(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/sup/info/insertCompanyCert",
|
||||
method: "post",
|
||||
data: query
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export function updateCompanyCert(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/sup/info/updateCompanyCert",
|
||||
method: "post",
|
||||
data: query
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export function auditSupCert(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/sale/sup/cert/audit",
|
||||
method: "post",
|
||||
data: query
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
export function deleteCompanyCert(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/sup/info/deleteCompanyCert",
|
||||
method: "post",
|
||||
data: query
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,90 @@
|
||||
import request from '@/utils/request'
|
||||
import axios from "@/utils/request";
|
||||
|
||||
|
||||
export function listApply(query) {
|
||||
return request({
|
||||
url: '/purchase/apply/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function auditListApply(query) {
|
||||
return request({
|
||||
url: '/purchase/apply/auditList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
export function listApplyDetail(query) {
|
||||
return request({
|
||||
url: '/purchase/apply/list/detail',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getApply(id) {
|
||||
return request({
|
||||
url: '/purchase/apply/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function addApply(data) {
|
||||
return request({
|
||||
url: '/purchase/apply',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function auditOrder(data) {
|
||||
return request({
|
||||
url: '/purchase/apply/auditOrder',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 修改pur
|
||||
export function updateApply(data) {
|
||||
return request({
|
||||
url: '/purchase/apply',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除pur
|
||||
export function delApply(id) {
|
||||
return request({
|
||||
url: '/purchase/apply/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
export function inserThrOrderWeb(query) {
|
||||
return axios({
|
||||
url: "/purchase/apply/postOrder",
|
||||
method: "post",
|
||||
data: query
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// 删除pur
|
||||
export function delApplyDetail(id) {
|
||||
return request({
|
||||
url: '/purchase/apply/detail/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
@ -0,0 +1,86 @@
|
||||
import axios from "@/utils/request";
|
||||
|
||||
export function listPlan(query) {
|
||||
return axios({
|
||||
url: '/purchase/plan/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function auditListPlan(query) {
|
||||
return axios({
|
||||
url: '/purchase/plan/auditList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function listApplyDetail(query) {
|
||||
return axios({
|
||||
url: '/purchase/plan/list/detail',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getApply(id) {
|
||||
return axios({
|
||||
url: '/purchase/plan/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function addApply(data) {
|
||||
return axios({
|
||||
url: '/purchase/plan',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function auditOrder(data) {
|
||||
return axios({
|
||||
url: '/purchase/plan/auditOrder',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 修改pur
|
||||
export function updateApply(data) {
|
||||
return axios({
|
||||
url: '/purchase/plan',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除pur
|
||||
export function delApply(id) {
|
||||
return axios({
|
||||
url: '/purchase/plan/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
export function inserThrOrderWeb(query) {
|
||||
return axios({
|
||||
url: "/purchase/plan/postOrder",
|
||||
method: "post",
|
||||
data: query
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// 删除pur
|
||||
export function delApplyDetail(id) {
|
||||
return axios({
|
||||
url: '/purchase/plan/detail/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
@ -0,0 +1,54 @@
|
||||
import axios from "@/utils/request";
|
||||
|
||||
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,58 @@
|
||||
import axios from "@/utils/request";
|
||||
|
||||
export function getCompanyList(query) {
|
||||
return axios({
|
||||
url: "/sup/manufacturer/getCompanyList",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
export function getCompanyBySup(query) {
|
||||
return axios({
|
||||
url: "/sup/manufacturer/getCompanyBySup",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
export function getCompanyInfo(query) {
|
||||
return axios({
|
||||
url: "/sup/manufacturer/getCompanyInfo",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
export function addOrModifyCompany(query, formName) {
|
||||
let url = formName === "add" ?
|
||||
"/sup/manufacturer/addCompany" : "/sup/manufacturer/modifyCompany";
|
||||
return axios(
|
||||
{
|
||||
url: url,
|
||||
method: "post",
|
||||
data: query
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export function auditManufacturer(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udiwms/sup/manufacturer/audit",
|
||||
method: "post",
|
||||
data: query
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
export function deleteCompany(query) {
|
||||
return axios({
|
||||
url: "/sup/manufacturer/basic/delete",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
@ -0,0 +1,57 @@
|
||||
import axios from "@/utils/request";
|
||||
|
||||
export function filterCompanyCert(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udiwms/info/suppliers/enterprise/basic/cert/filter",
|
||||
method: "get",
|
||||
params: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function getCompanyCert(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udiwms/info/suppliers/enterprise/basic/cert/companyCert",
|
||||
method: "get",
|
||||
params: query
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export function insertCompanyCert(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udiwms/info/suppliers/enterprise/basic/cert/insertCompanyCert",
|
||||
method: "post",
|
||||
data: query
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export function updateCompanyCert(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udiwms/info/suppliers/enterprise/basic/cert/updateCompanyCert",
|
||||
method: "post",
|
||||
data: query
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export function deleteCompanyCert(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udiwms/info/suppliers/enterprise/basic/cert/deleteCompanyCert",
|
||||
method: "post",
|
||||
data: query
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,55 @@
|
||||
import axios from "@/utils/request";
|
||||
|
||||
export function getRegistrationList(query) {
|
||||
return axios({
|
||||
url: "/sup/product/getRegistrationList",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
export function getRegistrationInfo(query) {
|
||||
return axios({
|
||||
url: "/sup/product/getRegistrationInfo",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
export function addOrModifyRegistration(query, formName) {
|
||||
let url = formName === "add" ?
|
||||
"/sup/product/addRegistration" : "/sup/product/modifyRegistration";
|
||||
return axios(
|
||||
{
|
||||
url: url,
|
||||
method: "post",
|
||||
data: query
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export function deleteRegistration(query) {
|
||||
return axios({
|
||||
url: "/sup/product/delete",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
export function auditSupProduct(data) {
|
||||
return axios({
|
||||
url: '/udiwms/pur/suppliers/product/audit',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function bindProduct(data) {
|
||||
return axios({
|
||||
url: '/sup/product/selectBind',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
@ -0,0 +1,622 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-card>
|
||||
<el-form :model="filterQuery" label-width="120px" v-show="showSearch">
|
||||
<el-row>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="产品编码:">
|
||||
<el-input v-model="filterQuery.unionCode" style="width:90%" placeholder="请输入DI/医保编码/商品条码" clearable="true"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="产品通用名:">
|
||||
<el-input v-model="filterQuery.cpmctymc" style="width:90%" placeholder="请输入产品通用名" clearable="true"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="规格型号:">
|
||||
<el-input v-model="filterQuery.ggxh" style="width: 90%" placeholder="请输入规格型号" clearable="true"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="生产企业:">
|
||||
<el-input v-model="filterQuery.ylqxzcrbarmc" style="width: 90%" placeholder="请输入生产企业/注册备案人" clearable="true"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="配送企业:">
|
||||
<el-input v-model="filterQuery.supName" style="width: 90%" placeholder="请输入配送企业" clearable="true"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="第三方产品编码:">
|
||||
<el-input v-model="filterQuery.thrPiId" style="width: 90%" placeholder="请输入第三方产品编码" clearable="true"></el-input>
|
||||
</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="submitSearch">查询</el-button>
|
||||
<el-button type="primary" icon="el-icon-upload2" @click="selectExport">选中导入</el-button>
|
||||
</el-button-group>
|
||||
</div>
|
||||
<el-divider style="margin: 15px"></el-divider>
|
||||
<el-table v-loading="loading" :data="list" style="width: 100%" @selection-change="handleSelectionChange" border highlight-current-row>
|
||||
<el-table-column type="selection" width="55" :selectable="checkSelectable"></el-table-column>
|
||||
<el-table-column label="序号" type="index"></el-table-column>
|
||||
<el-table-column label="最小销售产品标识" prop="nameCode" width="140"></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="60" label="操作" >
|
||||
<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 highlight-current-row>
|
||||
<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" border highlight-current-row>
|
||||
<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="190px" style="margin-top: 20px">
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="产品名称" prop="cpmctymc">
|
||||
<el-input style="width: 90%" size="small" splaceholder="请输入产品名称" :disabled="true" v-model="editQuery.cpmctymc"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="产品标识" prop="nameCode">
|
||||
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入产品标识" v-model="editQuery.nameCode"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="规格型号" prop="ggxh">
|
||||
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入内容" v-model="editQuery.ggxh"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="器械类别" prop="qxlb">
|
||||
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入器械类别" v-model="editQuery.qxlb"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="产品类别" prop="cplb">
|
||||
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入产品类别" v-model="editQuery.cplb"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="分类编码" prop="flbm">
|
||||
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入分类编码" v-model="editQuery.flbm"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="商品条码" prop="sptm">
|
||||
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入商品条码" v-model="editQuery.sptm"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="医保编码" prop="ybbm">
|
||||
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入医保编码" v-model="editQuery.ybbm"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="医疗器械注册人" prop="ylqxzcrbarmc">
|
||||
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入医疗器械注册人" v-model="editQuery.ylqxzcrbarmc"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="注册人英文名称" prop="ylqxzcrbarywmc">
|
||||
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入注册人英文名称" v-model="editQuery.ylqxzcrbarywmc"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="统一社会信用号" prop="tyshxydm">
|
||||
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入统一社会信用号" v-model="editQuery.tyshxydm"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="注册证/备案号" prop="zczbhhzbapzbh">
|
||||
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入注册证/备案号" v-model="editQuery.zczbhhzbapzbh"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="上级产品编码" prop="sjcpbm">
|
||||
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入上级产品编码" v-model="editQuery.sjcpbm"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="包装级别" prop="packLevel">
|
||||
<el-input style="width: 90%" size="small" splaceholder="请输入包装级别" :disabled="true" v-model="editQuery.packLevel"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="包装单位/包装级别" prop="bzcj">
|
||||
<el-input style="width: 90%" size="small" splaceholder="请输入包装单位/包装级别" v-model="editQuery.bzcj" :disabled="true"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="包含下级包装数量" prop="bhxjsl">
|
||||
<el-input style="width: 90%" size="small" splaceholder="请输入包含下级包装数量" :disabled="true" v-model="editQuery.bhxjsl"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="包含下级产品编码" prop="bhxjcpbm">
|
||||
<el-input style="width: 90%" size="small" :disabled="true" splaceholder="请输入包含下级产品编码" v-model="editQuery.bhxjcpbm"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="包含最小销售包装数量" prop="bhzxxsbzsl">
|
||||
<el-input style="width: 90%" size="small" :disabled="true" splaceholder="请输入包含最小销售包装数量" v-model="editQuery.bhzxxsbzsl"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="是否包含批号" prop="scbssfbhph">
|
||||
<el-input style="width: 90%" :disabled="true" size="small" v-model="editQuery.scbssfbhph"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="是否包含序列号" prop="scbssfbhxlh">
|
||||
<el-input style="width: 90%" :disabled="true" size="small" v-model="editQuery.scbssfbhxlh" splaceholder="请输入内容"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="是否包含生产日期" prop="scbssfbhscrq">
|
||||
<el-input style="width: 90%" :disabled="true" size="small" v-model="editQuery.scbssfbhscrq"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="是否包含失效日期" prop="scbssfbhsxrq">
|
||||
<el-input style="width: 90%" :disabled="true" v-model="editQuery.scbssfbhsxrq" ></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="产品描述" prop="cpms">
|
||||
<el-input style="width: 90%" :disabled="false" size="small" v-model="editQuery.cpms"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="计量单位" prop="measname">
|
||||
<el-input style="width: 90%" size="small" splaceholder="请输入内容" v-model="editQuery.measname"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row >
|
||||
<el-col :span="12" class="el-col">
|
||||
<el-form-item label="最小包装单元内包含使用单元数量" prop="zxxsbzbhsydysl">
|
||||
<el-input style="width: 90%" :disabled="!checked" size="small" splaceholder="请输入内容" v-model="editQuery.zxxsbzbhsydysl"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
|
||||
</el-dialog>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:limit.sync="filterQuery.limit"
|
||||
:page.sync="filterQuery.page"
|
||||
@pagination="handleCurrentChange"
|
||||
></pagination>
|
||||
|
||||
</el-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
getUdiInfos,
|
||||
updateErpProduct,
|
||||
thirdSysDetail,
|
||||
getSmUdiInfos
|
||||
} from "@/api/basic/udiRelevance";
|
||||
import {udiUpload} from "@/api/thrsys/smp"
|
||||
import {filterByUuid} from "@/api/basic/udiInfo";
|
||||
import {
|
||||
insertCompanyProductRelevance,
|
||||
updateCompanyProductRelevance, insertFilter
|
||||
} from "@/api/basic/udiRlSuptRelevance";
|
||||
import store from "@/store";
|
||||
|
||||
export default {
|
||||
name: "UdIInfoSelect",
|
||||
props: {
|
||||
unitFk: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
selectType: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
closeSelDialog: {
|
||||
type: Function,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
showSearch: true,
|
||||
filterQuery: {
|
||||
customerId: null,
|
||||
uuids: [],
|
||||
rlIds: [],
|
||||
ylqxzcrbarmc: "",
|
||||
supName: null,
|
||||
cpmctymc: "",
|
||||
nameCode: "",
|
||||
page: 1,
|
||||
limit: 20,
|
||||
addType: 1,
|
||||
isDisable: false,
|
||||
},
|
||||
|
||||
editQuery: null,
|
||||
relevanceEdit: {
|
||||
id: null,
|
||||
thirdId: "",
|
||||
isUseDy: false,
|
||||
},
|
||||
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
|
||||
},
|
||||
multipleSelection: [],
|
||||
editDialogVisible: false,
|
||||
selectUdiDialogVisible: false,
|
||||
selectErpDialogVisible: false,
|
||||
selectLocalVisible: false,
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
onReset() {
|
||||
this.$router.push({
|
||||
path: "",
|
||||
});
|
||||
this.filterQuery = {
|
||||
customerId: null,
|
||||
uuids: [],
|
||||
rlIds: [],
|
||||
ylqxzcrbarmc: "",
|
||||
supName: null,
|
||||
cpmctymc: "",
|
||||
nameCode: "",
|
||||
page: 1,
|
||||
limit: 20,
|
||||
unitFk: null,
|
||||
addType: 1,
|
||||
};
|
||||
this.getList();
|
||||
},
|
||||
|
||||
hideSearch() {
|
||||
this.showSearch = !this.showSearch;
|
||||
},
|
||||
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);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
selectExport() {
|
||||
var selectData = this.multipleSelection;
|
||||
selectData.forEach((obj) => {
|
||||
this.filterQuery.rlIds.push(obj.id);
|
||||
});
|
||||
this.filterQuery.unitFk = this.unitFk;
|
||||
this.allExport();
|
||||
|
||||
},
|
||||
allExport() {
|
||||
this.filterQuery.customerId = store.getters.customerId;
|
||||
insertFilter(this.filterQuery).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;
|
||||
},
|
||||
uploadSMP() {
|
||||
var selectData = this.multipleSelection;
|
||||
selectData.forEach((obj) => {
|
||||
this.filterQuery.uuids.push(obj.uuid);
|
||||
});
|
||||
this.allUploadSMP();
|
||||
},
|
||||
|
||||
allUploadSMP() {
|
||||
udiUpload(this.filterQuery)
|
||||
.then((response) => {
|
||||
if (response.code == 20000) {
|
||||
this.$message({
|
||||
type: "success",
|
||||
message: "上传成功!",
|
||||
});
|
||||
} else {
|
||||
this.$message({
|
||||
type: "error",
|
||||
message: response.message,
|
||||
});
|
||||
}
|
||||
this.$emit("cancelDialog", true);
|
||||
})
|
||||
.catch(() => {
|
||||
this.$message({
|
||||
type: "error",
|
||||
message: "上传失败",
|
||||
});
|
||||
this.$emit("cancelDialog", true);
|
||||
});
|
||||
},
|
||||
handleSelectionChange(val) {
|
||||
this.multipleSelection = val;
|
||||
},
|
||||
|
||||
handleCurrentChange(val) {
|
||||
this.filterQuery.page = val.page;
|
||||
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 = {
|
||||
id: row.id,
|
||||
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;
|
||||
},
|
||||
uploadErpProduct() {
|
||||
updateErpProduct()
|
||||
.then((response) => {
|
||||
if (response.code == 20000) {
|
||||
this.$message({
|
||||
type: "success",
|
||||
message: response.data,
|
||||
});
|
||||
this.$emit("closeDialog", true);
|
||||
} else {
|
||||
this.$message.error(response.message);
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
});
|
||||
},
|
||||
|
||||
closeDialog() {
|
||||
this.selectErpDialogVisible = false;
|
||||
this.selectLocalVisible = false;
|
||||
},
|
||||
|
||||
selectSysParam() {
|
||||
let query = {
|
||||
paramKey: "smp_isUploadProuct",
|
||||
};
|
||||
selectSysParamByKey(query).then((response) => {
|
||||
if (response.code == 20000) {
|
||||
if (response.data.paramValue == "1") {
|
||||
this.isUploadSmp = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
let query1 = {
|
||||
paramKey: "upload_pi_file_enabled",
|
||||
};
|
||||
selectSysParamByKey(query1).then((response) => {
|
||||
if (response.code == 20000) {
|
||||
if (response.data.paramValue == "1") {
|
||||
this.isImportFile = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
let query2 = {
|
||||
paramKey: "upload_pi_file_url",
|
||||
};
|
||||
selectSysParamByKey(query2).then((response) => {
|
||||
if (response.code == 20000) {
|
||||
this.uploadFileUrl = response.data.paramValue;
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
components: {},
|
||||
created() {
|
||||
|
||||
this.getList();
|
||||
this.selectSysParam();
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style scoped>
|
||||
.el-form-item--mini.el-form-item {
|
||||
margin-bottom: 9px;
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in New Issue