|
|
|
@ -5,12 +5,14 @@
|
|
|
|
|
<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-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-input v-model="filterQuery.cpmctymc" style="width: 90%" placeholder="请输入产品通用名"
|
|
|
|
|
clearable="true"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
@ -41,7 +43,8 @@
|
|
|
|
|
</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-input v-model="filterQuery.thrPiId" style="width: 90%" placeholder="请输入第三方产品编码"
|
|
|
|
|
clearable="true"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
@ -60,14 +63,15 @@
|
|
|
|
|
<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-refresh" @click="onReset">重置</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="search">查询</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-bottom-right" @click="selectProduct()">选入产品</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 v-loading="loading" :data="list" style="width: 100%" @selection-change="handleSelectionChange" border
|
|
|
|
|
highlight-current-row>
|
|
|
|
|
<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>
|
|
|
|
@ -83,12 +87,40 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column width="180" label="操作">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button v-if="isSpCombine" type="text" size="small" :disabled="scope.row.originUuid!=null || scope.row.lockStatus===3" @click.native.stop="intentSelectUdi(scope.row)">关联DI</el-button>
|
|
|
|
|
<el-button v-if="scope.row.lockStatus!=3" type="text" size="small" @click.native.stop="handleModifyClick(scope.row)">编辑</el-button>
|
|
|
|
|
<el-button v-if=" scope.row.lockStatus!=3" type="text" size="small" @click.native.stop="handleDetailClick(scope.row)">详情</el-button>
|
|
|
|
|
<el-button v-if="isSpCombine" type="text" size="small" :disabled="scope.row.lockStatus===3" @click.native.stop="sumitLockStatus(scope.row)">提交审核</el-button>
|
|
|
|
|
<el-button v-if="isSpCombine" type="text" size="small" @click.native.stop="splitSelectUdi(scope.row)" :disabled="scope.row.thirdId===scope.row.nameCode || scope.row.thirdId==null || scope.row.nameCode==null || scope.row.lockStatus===3">拆分产品</el-button>
|
|
|
|
|
<el-button type="text" size="small" @click.native.stop="deleteCompanyProductRelevance(scope.row)">移除</el-button>
|
|
|
|
|
<el-button v-if="isSpCombine" type="text" size="small"
|
|
|
|
|
:disabled="scope.row.originUuid!=null || scope.row.lockStatus===3"
|
|
|
|
|
@click.native.stop="intentSelectUdi(scope.row)">关联DI
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button v-if="scope.row.lockStatus!=3" type="text" size="small"
|
|
|
|
|
@click.native.stop="handleModifyClick(scope.row)">编辑
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)"
|
|
|
|
|
>
|
|
|
|
|
<span class="el-dropdown-link">
|
|
|
|
|
<i class="el-icon-d-arrow-right el-icon--right"></i>更多
|
|
|
|
|
</span>
|
|
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
|
|
<el-dropdown-item command="handleDetailClick" v-if=" scope.row.lockStatus!=3" >详情</el-dropdown-item>
|
|
|
|
|
<el-dropdown-item command="sumitLockStatus" v-if="isSpCombine" :disabled="scope.row.lockStatus===3">提交审核</el-dropdown-item>
|
|
|
|
|
<el-dropdown-item command="splitSelectUdi" v-if="isSpCombine" type="text" size="small"
|
|
|
|
|
:disabled="scope.row.thirdId===scope.row.nameCode || scope.row.thirdId==null || scope.row.nameCode==null || scope.row.lockStatus===3">拆分产品</el-dropdown-item>
|
|
|
|
|
<el-dropdown-item command="deleteCompanyProductRelevance">移除</el-dropdown-item>
|
|
|
|
|
</el-dropdown-menu>
|
|
|
|
|
</el-dropdown>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <el-button v-if=" scope.row.lockStatus!=3" type="text" size="small"-->
|
|
|
|
|
<!-- @click.native.stop="handleDetailClick(scope.row)">详情-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- <el-button v-if="isSpCombine" type="text" size="small" :disabled="scope.row.lockStatus===3"-->
|
|
|
|
|
<!-- @click.native.stop="sumitLockStatus(scope.row)">提交审核-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- <el-button v-if="isSpCombine" type="text" size="small" @click.native.stop="splitSelectUdi(scope.row)"-->
|
|
|
|
|
<!-- :disabled="scope.row.thirdId===scope.row.nameCode || scope.row.thirdId==null || scope.row.nameCode==null || scope.row.lockStatus===3">-->
|
|
|
|
|
<!-- 拆分产品-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- <el-button type="text" size="small" @click.native.stop="deleteCompanyProductRelevance(scope.row)">移除-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -239,7 +271,10 @@ import {
|
|
|
|
|
removeRl, sysFilter, spcombie, lockStatus, removeDiRl
|
|
|
|
|
} from "../../../api/basic/udiRelevance";
|
|
|
|
|
import store from "../../../store/index";
|
|
|
|
|
import { deleteCompanyProductRelevance, filterCompanyProductRelevance } from "../../../api/supplier/companyProductRelevance";
|
|
|
|
|
import {
|
|
|
|
|
deleteCompanyProductRelevance,
|
|
|
|
|
filterCompanyProductRelevance
|
|
|
|
|
} from "../../../api/supplier/companyProductRelevance";
|
|
|
|
|
import {finProductSet, selectSysParamByKey} from "../../../api/param/systemParamConfig";
|
|
|
|
|
import {filterByUuid} from "../../../api/basic/udiInfo";
|
|
|
|
|
|
|
|
|
@ -256,7 +291,7 @@ import basicProductDetail from "@/views/supplier/company/basicCompanyproductDeta
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
showSearch:true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterQuery: {
|
|
|
|
|
unionCode: null,
|
|
|
|
|
udiCode: null,
|
|
|
|
@ -355,9 +390,9 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
refresh(){
|
|
|
|
|
refresh() {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.editDialogVisible=false;
|
|
|
|
|
this.editDialogVisible = false;
|
|
|
|
|
},
|
|
|
|
|
search() {
|
|
|
|
|
this.filterQuery.page = 1;
|
|
|
|
@ -667,12 +702,33 @@ export default {
|
|
|
|
|
this.selectUdiDialogVisible = false;
|
|
|
|
|
this.selectErpDialogVisible = false;
|
|
|
|
|
this.selectLocalVisible = false;
|
|
|
|
|
this.detailDialogVisible=false;
|
|
|
|
|
this.detailDialogVisible = false;
|
|
|
|
|
this.selectVersionVisible = false;
|
|
|
|
|
if (val) {
|
|
|
|
|
this.cancelDialog();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 更多操作触发
|
|
|
|
|
handleCommand(command, row) {
|
|
|
|
|
switch (command) {
|
|
|
|
|
case "handleDetailClick":
|
|
|
|
|
this.handleDetailClick(row);
|
|
|
|
|
break;
|
|
|
|
|
case "sumitLockStatus":
|
|
|
|
|
this.sumitLockStatus(row);
|
|
|
|
|
break;
|
|
|
|
|
case "splitSelectUdi":
|
|
|
|
|
this.splitSelectUdi(row);
|
|
|
|
|
break;
|
|
|
|
|
case "deleteCompanyProductRelevance":
|
|
|
|
|
this.deleteCompanyProductRelevance(row);
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
getThirdSysDetail() {
|
|
|
|
|
let query = {
|
|
|
|
|
id: this.relevanceEdit.id,
|
|
|
|
@ -878,6 +934,7 @@ export default {
|
|
|
|
|
padding-bottom: 17px;
|
|
|
|
|
padding-top: 17px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-form-item--mini.el-form-item {
|
|
|
|
|
margin-bottom: 9px;
|
|
|
|
|
}
|
|
|
|
|