|
|
|
@ -9,22 +9,28 @@
|
|
|
|
style="width: 90%"
|
|
|
|
style="width: 90%"
|
|
|
|
placeholder="请扫描或输入UDI码"
|
|
|
|
placeholder="请扫描或输入UDI码"
|
|
|
|
clearable="true"
|
|
|
|
clearable="true"
|
|
|
|
@keyup.enter.native="keyup_submit($event)"></el-input>
|
|
|
|
@keyup.enter.native="keyup_submit($event)"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-form-item label="产品编码:">
|
|
|
|
<el-form-item label="产品编码:">
|
|
|
|
<el-input v-model="filterQuery.unionCode" style="width: 90%" placeholder="请输入DI/医保编码/商品条码" clearable="true"></el-input>
|
|
|
|
<el-input v-model="filterQuery.unionCode" style="width: 90%" placeholder="请输入DI/医保编码/商品条码"
|
|
|
|
|
|
|
|
clearable="true"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-form-item label="产品通用名:">
|
|
|
|
<el-form-item label="产品通用名:">
|
|
|
|
<el-input v-model="filterQuery.cpmctymc" style="width: 90%" placeholder="请输入产品通用名" clearable="true"></el-input>
|
|
|
|
<el-input v-model="filterQuery.cpmctymc" style="width: 90%" placeholder="请输入产品通用名"
|
|
|
|
|
|
|
|
clearable="true"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-form-item label="规格型号:">
|
|
|
|
<el-form-item label="规格型号:">
|
|
|
|
<el-input v-model="filterQuery.ggxh" style="width: 90%" placeholder="请输入规格型号" clearable="true"></el-input>
|
|
|
|
<el-input v-model="filterQuery.ggxh" style="width: 90%" placeholder="请输入规格型号" clearable="true"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
@ -36,7 +42,8 @@
|
|
|
|
v-for="item in filterList"
|
|
|
|
v-for="item in filterList"
|
|
|
|
:key="item.filterType"
|
|
|
|
:key="item.filterType"
|
|
|
|
:label="item.sysName"
|
|
|
|
:label="item.sysName"
|
|
|
|
:value="item.filterType">
|
|
|
|
:value="item.filterType"
|
|
|
|
|
|
|
|
>
|
|
|
|
<span style="float: left">{{ item.sysName }}</span>
|
|
|
|
<span style="float: left">{{ item.sysName }}</span>
|
|
|
|
</el-option>
|
|
|
|
</el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
@ -44,12 +51,16 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-form-item label="生产企业:">
|
|
|
|
<el-form-item label="生产企业:">
|
|
|
|
<el-input v-model="filterQuery.ylqxzcrbarmc" style="width: 90%" placeholder="请输入生产企业/注册备案人" clearable="true"></el-input>
|
|
|
|
<el-input v-model="filterQuery.ylqxzcrbarmc" style="width: 90%" placeholder="请输入生产企业/注册备案人"
|
|
|
|
|
|
|
|
clearable="true"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-form-item label="外部系统:">
|
|
|
|
<el-form-item label="外部系统:">
|
|
|
|
<el-input v-model="filterQuery.thrPiId" style="width: 90%" placeholder="请输入第三方产品编码" clearable="true"></el-input>
|
|
|
|
<el-input v-model="filterQuery.thrPiId" style="width: 90%" placeholder="请输入第三方产品编码"
|
|
|
|
|
|
|
|
clearable="true"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
@ -60,16 +71,22 @@
|
|
|
|
<el-button icon="el-icon-view" type="primary" @click="hideSearch">显示/隐藏搜索栏</el-button>
|
|
|
|
<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-refresh" @click="onReset">重置</el-button>
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="Onsearch">查询</el-button>
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="Onsearch">查询</el-button>
|
|
|
|
<el-button type="primary" icon="el-icon-upload2" @click="selectExport" v-if="selectType==0">选中导出</el-button>
|
|
|
|
<el-button type="primary" icon="el-icon-upload2" @click="selectExport" v-if="selectType==0">选中导出
|
|
|
|
<el-button type="primary" icon="el-icon-upload2" @click="allExport" v-if="selectType==0">结果全部导出</el-button>
|
|
|
|
</el-button>
|
|
|
|
<el-button type="primary" icon="el-icon-top-upload" @click="uploadSMP" v-if="selectType==1">选中上传</el-button>
|
|
|
|
<el-button type="primary" icon="el-icon-upload2" @click="allExport" v-if="selectType==0">结果全部导出
|
|
|
|
<el-button type="primary" icon="el-icon-top-upload" @click="allUploadSMP" v-if="selectType==1">一键上传</el-button>
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
<el-button type="primary" icon="el-icon-top-upload" @click="uploadSMP" v-if="selectType==1">选中上传
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
<el-button type="primary" icon="el-icon-top-upload" @click="allUploadSMP" v-if="selectType==1">一键上传
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
</el-button-group>
|
|
|
|
</el-button-group>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
<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 v-loading="loading" :data="list" style="width: 100%" @selection-change="handleSelectionChange" border
|
|
|
|
|
|
|
|
highlight-current-row
|
|
|
|
|
|
|
|
>
|
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
|
<el-table-column label="序号" type="index"></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="nameCode" width="140" show-overflow-tooltip></el-table-column>
|
|
|
|
@ -86,7 +103,9 @@
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog title="产品信息编辑" :visible.sync="editDialogVisible" width="80%" :close-on-click-modal="false" :close-on-press-escape="false" append-to-body v-if="editDialogVisible">
|
|
|
|
<el-dialog title="产品信息详情" :visible.sync="editDialogVisible" width="80%" :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 :data="sysList" style="width: 100%" border highlight-current-row>
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
<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="sysName" show-overflow-tooltip></el-table-column>
|
|
|
|
@ -94,23 +113,54 @@
|
|
|
|
<el-table-column label="第三方产品ID" prop="thirdId" show-overflow-tooltip></el-table-column>
|
|
|
|
<el-table-column label="第三方产品ID" prop="thirdId" show-overflow-tooltip></el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</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 v-loading="loading" :data="detailList" style="width: 100%; margin-top: 20px" border
|
|
|
|
<el-table-column label="产品标识" prop="nameCode" show-overflow-tooltip></el-table-column>
|
|
|
|
@current-change="handleDetail" border highlight-current-row
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-table-column label="产品最小销售标识" prop="nameCode" show-overflow-tooltip></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="标识类型" prop="diType" width="110">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<span>{{ diTypes[scope.row.diType] }}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="产品通用名" prop="cpmctymc" 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="packLevel" show-overflow-tooltip></el-table-column>
|
|
|
|
<el-table-column label="包装层级" prop="bzcj" show-overflow-tooltip></el-table-column>
|
|
|
|
<el-table-column label="包装层级" prop="bzcj" show-overflow-tooltip></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
label="包装单位"
|
|
|
|
|
|
|
|
prop="packUnit"
|
|
|
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
|
|
|
></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
label="下级数量"
|
|
|
|
|
|
|
|
prop="bhxjsl"
|
|
|
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
|
|
|
></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
label="下级标识"
|
|
|
|
|
|
|
|
prop="bhxjcpbm"
|
|
|
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
|
|
|
></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
label="上级标识"
|
|
|
|
|
|
|
|
prop="sjcpbm"
|
|
|
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
|
|
|
></el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
<el-form :model="editQuery" :rules="rules" ref="editQuery" label-width="120px" style="margin-top: 20px">
|
|
|
|
<el-form :model="editQuery" :rules="rules" ref="editQuery" label-width="120px" style="margin-top: 20px">
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="产品名称" prop="cpmctymc">
|
|
|
|
<el-form-item label="产品名称" prop="cpmctymc">
|
|
|
|
<el-input style="width: 90%" size="small" splaceholder="请输入产品名称" :disabled="true" v-model="editQuery.cpmctymc"></el-input>
|
|
|
|
<el-input style="width: 90%" size="small" splaceholder="请输入产品名称" :disabled="true"
|
|
|
|
|
|
|
|
v-model="editQuery.cpmctymc"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="产品标识" prop="nameCode">
|
|
|
|
<el-form-item label="产品标识" prop="nameCode">
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入产品标识" v-model="editQuery.nameCode"></el-input>
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入产品标识"
|
|
|
|
|
|
|
|
v-model="editQuery.nameCode"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
@ -118,13 +168,17 @@
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="规格型号" prop="ggxh">
|
|
|
|
<el-form-item label="规格型号" prop="ggxh">
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入内容" v-model="editQuery.ggxh"></el-input>
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入内容"
|
|
|
|
|
|
|
|
v-model="editQuery.ggxh"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="器械类别" prop="qxlb">
|
|
|
|
<el-form-item label="器械类别" prop="qxlb">
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入器械类别" v-model="editQuery.qxlb"></el-input>
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入器械类别"
|
|
|
|
|
|
|
|
v-model="editQuery.qxlb"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
@ -132,12 +186,16 @@
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="产品类别" prop="cplb">
|
|
|
|
<el-form-item label="产品类别" prop="cplb">
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入产品类别" v-model="editQuery.cplb"></el-input>
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入产品类别"
|
|
|
|
|
|
|
|
v-model="editQuery.cplb"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="分类编码" prop="flbm">
|
|
|
|
<el-form-item label="分类编码" prop="flbm">
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入分类编码" v-model="editQuery.flbm"></el-input>
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入分类编码"
|
|
|
|
|
|
|
|
v-model="editQuery.flbm"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
@ -145,12 +203,16 @@
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="商品条码" prop="sptm">
|
|
|
|
<el-form-item label="商品条码" prop="sptm">
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入商品条码" v-model="editQuery.sptm"></el-input>
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入商品条码"
|
|
|
|
|
|
|
|
v-model="editQuery.sptm"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="医保编码" prop="ybbm">
|
|
|
|
<el-form-item label="医保编码" prop="ybbm">
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入医保编码" v-model="editQuery.ybbm"></el-input>
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入医保编码"
|
|
|
|
|
|
|
|
v-model="editQuery.ybbm"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
@ -158,12 +220,16 @@
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="医疗器械注册人" prop="ylqxzcrbarmc">
|
|
|
|
<el-form-item label="医疗器械注册人" prop="ylqxzcrbarmc">
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入医疗器械注册人" v-model="editQuery.ylqxzcrbarmc"></el-input>
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入医疗器械注册人"
|
|
|
|
|
|
|
|
v-model="editQuery.ylqxzcrbarmc"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="注册人英文名称" prop="ylqxzcrbarywmc">
|
|
|
|
<el-form-item label="注册人英文名称" prop="ylqxzcrbarywmc">
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入注册人英文名称" v-model="editQuery.ylqxzcrbarywmc"></el-input>
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入注册人英文名称"
|
|
|
|
|
|
|
|
v-model="editQuery.ylqxzcrbarywmc"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
@ -171,12 +237,16 @@
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="统一社会信用号" prop="tyshxydm">
|
|
|
|
<el-form-item label="统一社会信用号" prop="tyshxydm">
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入统一社会信用号" v-model="editQuery.tyshxydm"></el-input>
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入统一社会信用号"
|
|
|
|
|
|
|
|
v-model="editQuery.tyshxydm"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="注册证/备案号" prop="zczbhhzbapzbh">
|
|
|
|
<el-form-item label="注册证/备案号" prop="zczbhhzbapzbh">
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入注册证/备案号" v-model="editQuery.zczbhhzbapzbh"></el-input>
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入注册证/备案号"
|
|
|
|
|
|
|
|
v-model="editQuery.zczbhhzbapzbh"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
@ -184,13 +254,17 @@
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="上级产品编码" prop="sjcpbm">
|
|
|
|
<el-form-item label="上级产品编码" prop="sjcpbm">
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入上级产品编码" v-model="editQuery.sjcpbm"></el-input>
|
|
|
|
<el-input style="width: 90%" :disabled="true" size="small" splaceholder="请输入上级产品编码"
|
|
|
|
|
|
|
|
v-model="editQuery.sjcpbm"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="包装级别" prop="packLevel">
|
|
|
|
<el-form-item label="包装级别" prop="packLevel">
|
|
|
|
<el-input style="width: 90%" size="small" splaceholder="请输入包装级别" :disabled="true" v-model="editQuery.packLevel"></el-input>
|
|
|
|
<el-input style="width: 90%" size="small" splaceholder="请输入包装级别" :disabled="true"
|
|
|
|
|
|
|
|
v-model="editQuery.packLevel"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
@ -198,13 +272,17 @@
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="包装层级" prop="bzcj">
|
|
|
|
<el-form-item label="包装层级" prop="bzcj">
|
|
|
|
<el-input style="width: 90%" size="small" splaceholder="请输入包装层级" v-model="editQuery.bzcj" :disabled="true"></el-input>
|
|
|
|
<el-input style="width: 90%" size="small" splaceholder="请输入包装层级" v-model="editQuery.bzcj"
|
|
|
|
|
|
|
|
:disabled="true"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="包含下级包装数量" prop="bhxjsl">
|
|
|
|
<el-form-item label="包含下级包装数量" prop="bhxjsl">
|
|
|
|
<el-input style="width: 90%" size="small" splaceholder="请输入包含下级包装数量" :disabled="true" v-model="editQuery.bhxjsl"></el-input>
|
|
|
|
<el-input style="width: 90%" size="small" splaceholder="请输入包含下级包装数量" :disabled="true"
|
|
|
|
|
|
|
|
v-model="editQuery.bhxjsl"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
@ -212,21 +290,26 @@
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="包含下级产品编码" prop="bhxjcpbm">
|
|
|
|
<el-form-item label="包含下级产品编码" prop="bhxjcpbm">
|
|
|
|
<el-input style="width: 90%" size="small" :disabled="true" splaceholder="请输入包含下级产品编码" v-model="editQuery.bhxjcpbm"></el-input>
|
|
|
|
<el-input style="width: 90%" size="small" :disabled="true" splaceholder="请输入包含下级产品编码"
|
|
|
|
|
|
|
|
v-model="editQuery.bhxjcpbm"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="包含最小销售包装数量" prop="bhzxxsbzsl">
|
|
|
|
<el-form-item label="包含最小销售包装数量" prop="bhzxxsbzsl">
|
|
|
|
<el-input style="width: 90%" size="small" :disabled="true" splaceholder="请输入包含最小销售包装数量" v-model="editQuery.bhzxxsbzsl"></el-input>
|
|
|
|
<el-input style="width: 90%" size="small" :disabled="true" splaceholder="请输入包含最小销售包装数量"
|
|
|
|
|
|
|
|
v-model="editQuery.bhzxxsbzsl"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="最小包装单元内包含使用单元数量" prop="zxxsbzbhsydysl">
|
|
|
|
<el-form-item label="最小包装单元内包含使用单元数量" prop="zxxsbzbhsydysl">
|
|
|
|
<el-input style="width: 90%" :disabled="!checked" size="small" splaceholder="请输入最小包装单元内包含使用单元数量" v-model="editQuery.zxxsbzbhsydysl"></el-input>
|
|
|
|
<el-input style="width: 90%" :disabled="!checked" size="small"
|
|
|
|
|
|
|
|
splaceholder="请输入最小包装单元内包含使用单元数量" v-model="editQuery.zxxsbzbhsydysl"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
@ -256,40 +339,39 @@
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
getUdiInfos,
|
|
|
|
getUdiInfos,
|
|
|
|
updateErpProduct,
|
|
|
|
updateErpProduct,
|
|
|
|
thirdSysDetail,
|
|
|
|
thirdSysDetail
|
|
|
|
} from "@/api/basic/udiRelevance";
|
|
|
|
} from '@/api/basic/udiRelevance'
|
|
|
|
import {udiUpload} from "@/api/thrsys/smp"
|
|
|
|
import { udiUpload } from '@/api/thrsys/smp'
|
|
|
|
import {exportExcel} from "@/api/basic/udiInfoExport"
|
|
|
|
import { exportExcel } from '@/api/basic/udiInfoExport'
|
|
|
|
import {selectSysParamByKey} from "@/api/param/systemParamConfig";
|
|
|
|
import { selectSysParamByKey } from '@/api/param/systemParamConfig'
|
|
|
|
import {filterByUuid} from "@/api/basic/udiInfo";
|
|
|
|
import { filterByUuid } from '@/api/basic/udiInfo'
|
|
|
|
import {sysFilter} from "@/api/basic/product/udiRelevance";
|
|
|
|
import { sysFilter } from '@/api/basic/product/udiRelevance'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "UdIInfoSelect",
|
|
|
|
name: 'UdIInfoSelect',
|
|
|
|
props: {
|
|
|
|
props: {
|
|
|
|
selectType: {
|
|
|
|
selectType: {
|
|
|
|
type: Object,
|
|
|
|
type: Object,
|
|
|
|
required: true,
|
|
|
|
required: true
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
filterQuery: {
|
|
|
|
filterQuery: {
|
|
|
|
uuids: [],
|
|
|
|
uuids: [],
|
|
|
|
ylqxzcrbarmc: "",
|
|
|
|
ylqxzcrbarmc: '',
|
|
|
|
cpmctymc: "",
|
|
|
|
cpmctymc: '',
|
|
|
|
nameCode: "",
|
|
|
|
nameCode: '',
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
limit: 20,
|
|
|
|
limit: 20,
|
|
|
|
addType: 1,
|
|
|
|
addType: 1
|
|
|
|
},
|
|
|
|
},
|
|
|
|
showSearch: true,
|
|
|
|
showSearch: true,
|
|
|
|
editQuery: null,
|
|
|
|
editQuery: null,
|
|
|
|
relevanceEdit: {
|
|
|
|
relevanceEdit: {
|
|
|
|
id: null,
|
|
|
|
id: null,
|
|
|
|
thirdId: "",
|
|
|
|
thirdId: '',
|
|
|
|
isUseDy: false,
|
|
|
|
isUseDy: false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
isImport: false,
|
|
|
|
isImport: false,
|
|
|
|
isImportUdi: false,
|
|
|
|
isImportUdi: false,
|
|
|
|
@ -301,10 +383,10 @@ export default {
|
|
|
|
detailList: [],
|
|
|
|
detailList: [],
|
|
|
|
sysList: [],
|
|
|
|
sysList: [],
|
|
|
|
total: 0,
|
|
|
|
total: 0,
|
|
|
|
thirdNo: "",
|
|
|
|
thirdNo: '',
|
|
|
|
uuid: "111",
|
|
|
|
uuid: '111',
|
|
|
|
thirdId: null,
|
|
|
|
thirdId: null,
|
|
|
|
relId: "",
|
|
|
|
relId: '',
|
|
|
|
thisData: {
|
|
|
|
thisData: {
|
|
|
|
nameCode: null,
|
|
|
|
nameCode: null,
|
|
|
|
cpmctymc: null,
|
|
|
|
cpmctymc: null,
|
|
|
|
@ -315,83 +397,88 @@ export default {
|
|
|
|
selectUdiDialogVisible: false,
|
|
|
|
selectUdiDialogVisible: false,
|
|
|
|
selectErpDialogVisible: false,
|
|
|
|
selectErpDialogVisible: false,
|
|
|
|
selectLocalVisible: false,
|
|
|
|
selectLocalVisible: false,
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
diTypes: {
|
|
|
|
|
|
|
|
1: '最小销售标识',
|
|
|
|
|
|
|
|
4: '外包装标识'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
getSysFilter() {
|
|
|
|
getSysFilter() {
|
|
|
|
sysFilter()
|
|
|
|
sysFilter()
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false
|
|
|
|
this.filterList = response.data.list || [];
|
|
|
|
this.filterList = response.data.list || []
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false
|
|
|
|
this.filterList = [];
|
|
|
|
this.filterList = []
|
|
|
|
});
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onReset() {
|
|
|
|
onReset() {
|
|
|
|
this.$router.push({
|
|
|
|
this.$router.push({
|
|
|
|
path: "",
|
|
|
|
path: ''
|
|
|
|
});
|
|
|
|
})
|
|
|
|
this.filterQuery = {
|
|
|
|
this.filterQuery = {
|
|
|
|
uuids: [],
|
|
|
|
uuids: [],
|
|
|
|
ylqxzcrbarmc: "",
|
|
|
|
ylqxzcrbarmc: '',
|
|
|
|
cpmctymc: "",
|
|
|
|
cpmctymc: '',
|
|
|
|
nameCode: "",
|
|
|
|
nameCode: '',
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
limit: 20,
|
|
|
|
limit: 20,
|
|
|
|
addType: 1,
|
|
|
|
addType: 1
|
|
|
|
};
|
|
|
|
}
|
|
|
|
this.getList();
|
|
|
|
this.getList()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
hideSearch() {
|
|
|
|
hideSearch() {
|
|
|
|
this.showSearch = !this.showSearch;
|
|
|
|
this.showSearch = !this.showSearch
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Onsearch() {
|
|
|
|
Onsearch() {
|
|
|
|
this.filterQuery.page=1;
|
|
|
|
this.filterQuery.page = 1
|
|
|
|
this.getList();
|
|
|
|
this.getList()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getList() {
|
|
|
|
getList() {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true
|
|
|
|
getUdiInfos(this.filterQuery)
|
|
|
|
getUdiInfos(this.filterQuery)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false
|
|
|
|
this.list = response.data.list || [];
|
|
|
|
this.list = response.data.list || []
|
|
|
|
this.total = response.data.total || 0;
|
|
|
|
this.total = response.data.total || 0
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false
|
|
|
|
this.list = [];
|
|
|
|
this.list = []
|
|
|
|
this.total = 0;
|
|
|
|
this.total = 0
|
|
|
|
});
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
getDetailList(detailQuery) {
|
|
|
|
getDetailList(detailQuery) {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true
|
|
|
|
filterByUuid(detailQuery)
|
|
|
|
filterByUuid(detailQuery)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false
|
|
|
|
this.detailList = response.data || [];
|
|
|
|
this.detailList = response.data || []
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false
|
|
|
|
this.detailList = [];
|
|
|
|
this.detailList = []
|
|
|
|
});
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
handleDetail(row) {
|
|
|
|
handleDetail(row) {
|
|
|
|
this.editQuery = row;
|
|
|
|
this.editQuery = row
|
|
|
|
console.log(row);
|
|
|
|
console.log(row)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selectExport() {
|
|
|
|
selectExport() {
|
|
|
|
var selectData = this.multipleSelection;
|
|
|
|
var selectData = this.multipleSelection
|
|
|
|
selectData.forEach((obj) => {
|
|
|
|
selectData.forEach((obj) => {
|
|
|
|
this.filterQuery.uuids.push(obj.uuid);
|
|
|
|
this.filterQuery.uuids.push(obj.uuid)
|
|
|
|
});
|
|
|
|
})
|
|
|
|
this.allExport();
|
|
|
|
this.allExport()
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
allExport() {
|
|
|
|
allExport() {
|
|
|
|
@ -402,44 +489,44 @@ export default {
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
type: "success",
|
|
|
|
type: 'success',
|
|
|
|
message: "导出成功,后台正在生成Json文件,请稍后刷新查看!",
|
|
|
|
message: '导出成功,后台正在生成Json文件,请稍后刷新查看!'
|
|
|
|
});
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
type: "error",
|
|
|
|
type: 'error',
|
|
|
|
message: response.message,
|
|
|
|
message: response.message
|
|
|
|
});
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.$emit("cancelDialog", true);
|
|
|
|
this.$emit('cancelDialog', true)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
type: "error",
|
|
|
|
type: 'error',
|
|
|
|
message: "上传失败",
|
|
|
|
message: '上传失败'
|
|
|
|
});
|
|
|
|
})
|
|
|
|
});
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
intentDetail() {
|
|
|
|
intentDetail() {
|
|
|
|
this.isImportUdi = false;
|
|
|
|
this.isImportUdi = false
|
|
|
|
this.selectUdiDialogVisible = true;
|
|
|
|
this.selectUdiDialogVisible = true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
intentImportErp(val) {
|
|
|
|
intentImportErp(val) {
|
|
|
|
this.uuid = val.uuid;
|
|
|
|
this.uuid = val.uuid
|
|
|
|
this.relId = val.id;
|
|
|
|
this.relId = val.id
|
|
|
|
this.isImport = true;
|
|
|
|
this.isImport = true
|
|
|
|
this.thisData = val;
|
|
|
|
this.thisData = val
|
|
|
|
this.selectErpDialogVisible = true;
|
|
|
|
this.selectErpDialogVisible = true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
uploadSMP() {
|
|
|
|
uploadSMP() {
|
|
|
|
var selectData = this.multipleSelection;
|
|
|
|
var selectData = this.multipleSelection
|
|
|
|
selectData.forEach((obj) => {
|
|
|
|
selectData.forEach((obj) => {
|
|
|
|
this.filterQuery.uuids.push(obj.uuid);
|
|
|
|
this.filterQuery.uuids.push(obj.uuid)
|
|
|
|
});
|
|
|
|
})
|
|
|
|
this.allUploadSMP();
|
|
|
|
this.allUploadSMP()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
allUploadSMP() {
|
|
|
|
allUploadSMP() {
|
|
|
|
@ -447,138 +534,136 @@ export default {
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
type: "success",
|
|
|
|
type: 'success',
|
|
|
|
message: "上传成功!",
|
|
|
|
message: '上传成功!'
|
|
|
|
});
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
type: "error",
|
|
|
|
type: 'error',
|
|
|
|
message: response.message,
|
|
|
|
message: response.message
|
|
|
|
});
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.$emit("cancelDialog", true);
|
|
|
|
this.$emit('cancelDialog', true)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
type: "error",
|
|
|
|
type: 'error',
|
|
|
|
message: "上传失败",
|
|
|
|
message: '上传失败'
|
|
|
|
});
|
|
|
|
})
|
|
|
|
this.$emit("cancelDialog", true);
|
|
|
|
this.$emit('cancelDialog', true)
|
|
|
|
});
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleSelectionChange(val) {
|
|
|
|
handleSelectionChange(val) {
|
|
|
|
console.log("----" + val);
|
|
|
|
console.log('----' + val)
|
|
|
|
this.multipleSelection = val;
|
|
|
|
this.multipleSelection = val
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
handleCurrentChange(val) {
|
|
|
|
handleCurrentChange(val) {
|
|
|
|
this.filterQuery.page = val.page;
|
|
|
|
this.filterQuery.page = val.page
|
|
|
|
this.getList();
|
|
|
|
this.getList()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleModifyClick(row) {
|
|
|
|
handleModifyClick(row) {
|
|
|
|
this.editDialogVisible = true;
|
|
|
|
this.editDialogVisible = true
|
|
|
|
this.editQuery = row;
|
|
|
|
this.editQuery = row
|
|
|
|
this.relevanceEdit = {
|
|
|
|
this.relevanceEdit = {
|
|
|
|
id: row.id,
|
|
|
|
id: row.id,
|
|
|
|
thirdId: row.thirdId,
|
|
|
|
thirdId: row.thirdId,
|
|
|
|
isUseDy: row.isUseDy,
|
|
|
|
isUseDy: row.isUseDy
|
|
|
|
};
|
|
|
|
}
|
|
|
|
this.checked = row.isUseDy == 1;
|
|
|
|
this.checked = row.isUseDy == 1
|
|
|
|
|
|
|
|
|
|
|
|
let ttquery = {
|
|
|
|
let ttquery = {
|
|
|
|
uuid: row.uuid,
|
|
|
|
id: row.id
|
|
|
|
page: 1,
|
|
|
|
}
|
|
|
|
limit: 10,
|
|
|
|
console.log('this.editQuery.isUseDy = ', row)
|
|
|
|
};
|
|
|
|
|
|
|
|
console.log("this.editQuery.isUseDy = " + this.editQuery.isUseDy);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.getDetailList(ttquery);
|
|
|
|
this.getDetailList(ttquery)
|
|
|
|
this.getThirdSysDetail();
|
|
|
|
this.getThirdSysDetail()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
closeUdi(val) {
|
|
|
|
closeUdi(val) {
|
|
|
|
this.selectUdiDialogVisible = false;
|
|
|
|
this.selectUdiDialogVisible = false
|
|
|
|
this.selectErpDialogVisible = false;
|
|
|
|
this.selectErpDialogVisible = false
|
|
|
|
this.selectLocalVisible = false;
|
|
|
|
this.selectLocalVisible = false
|
|
|
|
if (val) {
|
|
|
|
if (val) {
|
|
|
|
this.getList();
|
|
|
|
this.getList()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getThirdSysDetail() {
|
|
|
|
getThirdSysDetail() {
|
|
|
|
let query = {
|
|
|
|
let query = {
|
|
|
|
id: this.relevanceEdit.id,
|
|
|
|
id: this.relevanceEdit.id
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
thirdSysDetail(query)
|
|
|
|
thirdSysDetail(query)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false
|
|
|
|
this.sysList = response.data.list || [];
|
|
|
|
this.sysList = response.data.list || []
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false
|
|
|
|
this.sysList = [];
|
|
|
|
this.sysList = []
|
|
|
|
});
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
uploadErpProduct() {
|
|
|
|
uploadErpProduct() {
|
|
|
|
updateErpProduct()
|
|
|
|
updateErpProduct()
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
type: "success",
|
|
|
|
type: 'success',
|
|
|
|
message: response.data,
|
|
|
|
message: response.data
|
|
|
|
});
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(response.message);
|
|
|
|
this.$message.error(response.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
});
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
closeDialog() {
|
|
|
|
closeDialog() {
|
|
|
|
this.selectErpDialogVisible = false;
|
|
|
|
this.selectErpDialogVisible = false
|
|
|
|
this.selectLocalVisible = false;
|
|
|
|
this.selectLocalVisible = false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
selectSysParam() {
|
|
|
|
selectSysParam() {
|
|
|
|
let query = {
|
|
|
|
let query = {
|
|
|
|
paramKey: "smp_isUploadProuct",
|
|
|
|
paramKey: 'smp_isUploadProuct'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
selectSysParamByKey(query).then((response) => {
|
|
|
|
selectSysParamByKey(query).then((response) => {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
if (response.data.paramValue == "1") {
|
|
|
|
if (response.data.paramValue == '1') {
|
|
|
|
this.isUploadSmp = true;
|
|
|
|
this.isUploadSmp = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
})
|
|
|
|
let query1 = {
|
|
|
|
let query1 = {
|
|
|
|
paramKey: "upload_pi_file_enabled",
|
|
|
|
paramKey: 'upload_pi_file_enabled'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
selectSysParamByKey(query1).then((response) => {
|
|
|
|
selectSysParamByKey(query1).then((response) => {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
if (response.data.paramValue == "1") {
|
|
|
|
if (response.data.paramValue == '1') {
|
|
|
|
this.isImportFile = true;
|
|
|
|
this.isImportFile = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
})
|
|
|
|
let query2 = {
|
|
|
|
let query2 = {
|
|
|
|
paramKey: "upload_pi_file_url",
|
|
|
|
paramKey: 'upload_pi_file_url'
|
|
|
|
};
|
|
|
|
}
|
|
|
|
selectSysParamByKey(query2).then((response) => {
|
|
|
|
selectSysParamByKey(query2).then((response) => {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
this.uploadFileUrl = response.data.paramValue;
|
|
|
|
this.uploadFileUrl = response.data.paramValue
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
components: {},
|
|
|
|
components: {},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.getSysFilter();
|
|
|
|
this.getSysFilter()
|
|
|
|
this.getList();
|
|
|
|
this.getList()
|
|
|
|
this.selectSysParam();
|
|
|
|
this.selectSysParam()
|
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
<style scoped>
|
|
|
|
.el-form-item--mini.el-form-item {
|
|
|
|
.el-form-item--mini.el-form-item {
|
|
|
|
|