|
|
|
@ -1,62 +1,145 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<el-card>
|
|
|
|
|
<el-form :model="filterQuery" size="mini" 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="请输入产品编码"
|
|
|
|
|
clearable="true"></el-input>
|
|
|
|
|
<el-form v-if="queryList && queryList.length > 0" :model="filterQuery" size="mini" 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="请输入产品编码"-->
|
|
|
|
|
<!-- 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-select v-model="filterQuery.filterType" style="width: 90%" placeholder="请选择过滤对照条件">-->
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
<!-- v-for="item in filterList"-->
|
|
|
|
|
<!-- :key="item.filterType"-->
|
|
|
|
|
<!-- :label="item.sysName"-->
|
|
|
|
|
<!-- :value="item.filterType">-->
|
|
|
|
|
<!-- <span style="float: left">{{ item.sysName }}</span>-->
|
|
|
|
|
<!-- </el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
<!-- <el-row>-->
|
|
|
|
|
<!-- <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-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-col :span="6">-->
|
|
|
|
|
<!-- <el-form-item label="审核状态:" v-if="isSpCombine">-->
|
|
|
|
|
<!-- <el-select v-model="filterQuery.lockStatus" style="width: 90%" placeholder="请选择审核状态">-->
|
|
|
|
|
<!-- <el-option label="全部" value=""></el-option>-->
|
|
|
|
|
<!-- <el-option label="未提交" value="1"></el-option>-->
|
|
|
|
|
<!-- <el-option label="已提交" value="2"></el-option>-->
|
|
|
|
|
<!-- <el-option label="已锁定" value="3"></el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
<el-row style=" display:flex; flex-wrap: wrap; ">
|
|
|
|
|
<template v-for="(item, index) in queryList" >
|
|
|
|
|
<el-form-item v-if="item.columnType == 'input' && item.columnName !='queryName' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`" :key="item.id">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="filterQuery[item.columnName]"
|
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
|
:disabled="executeEval(null,item.disabledFuc,false)"
|
|
|
|
|
@keyup.enter.native="executeFuc($event,'5',item.clickFuc)"
|
|
|
|
|
clearable
|
|
|
|
|
></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 v-if="item.columnType == 'input' && item.columnName =='queryName' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`" :key="item.id">
|
|
|
|
|
<el-autocomplete
|
|
|
|
|
class="inline-input"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
v-model="queryName"
|
|
|
|
|
:fetch-suggestions="queryProductName"
|
|
|
|
|
placeholder="请输入内容"
|
|
|
|
|
clearable
|
|
|
|
|
@select="handleSelect"
|
|
|
|
|
@clear="clearQueryProduct"
|
|
|
|
|
></el-autocomplete>
|
|
|
|
|
</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 v-if="item.columnType == 'select' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
|
|
|
|
|
<el-select v-model="filterQuery[item.columnName]"
|
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
|
@change="executeFuc($event,'5',item.checkRules)"
|
|
|
|
|
:disabled="executeEval(null,item.disabledFuc,false)"
|
|
|
|
|
clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in item.lableRuleObj"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
<span v-if="item.isShowXx == '1'" style="float: right; color: #8492a6; font-size: 13px">{{ item.code }}</span>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="对照条件:">
|
|
|
|
|
<el-select v-model="filterQuery.filterType" style="width: 90%" placeholder="请选择过滤对照条件">
|
|
|
|
|
<el-form-item v-if="item.columnType == 'selectServer' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="filterQuery[item.columnName]"
|
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
|
:disabled="executeEval(null,item.disabledFuc,false)"
|
|
|
|
|
filterable
|
|
|
|
|
remote
|
|
|
|
|
@change="executeFuc($event,'5',item.checkRules)"
|
|
|
|
|
:remote-method="(query) => executeFuc(query,'5',item.clickFuc)"
|
|
|
|
|
clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in filterList"
|
|
|
|
|
:key="item.filterType"
|
|
|
|
|
:label="item.sysName"
|
|
|
|
|
:value="item.filterType">
|
|
|
|
|
<span style="float: left">{{ item.sysName }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
v-for="item in options[item.clickFuc]"
|
|
|
|
|
:key="item.code"
|
|
|
|
|
:label="item.label"
|
|
|
|
|
:value="item.code"
|
|
|
|
|
/>
|
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
<span v-if="item.isShowXx == '1'" style="float: right; color: #8492a6; font-size: 13px">{{ item.code }}</span>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<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 v-if="item.columnType == 'datePicker' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
:picker-options="pickerOptions"
|
|
|
|
|
v-model="actDateRange"
|
|
|
|
|
type="daterange"
|
|
|
|
|
format="yyyy 年 MM 月 dd 日"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
range-separator="至"
|
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
|
></el-date-picker>
|
|
|
|
|
</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 v-if="item.columnType == 'date' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="filterQuery[item.columnName]"
|
|
|
|
|
:style="`width:${item.width+'px'}`"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
:disabled="executeEval(null,item.disabledFuc,false)"
|
|
|
|
|
type="date"
|
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
|
></el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="审核状态:" v-if="isSpCombine">
|
|
|
|
|
<el-select v-model="filterQuery.lockStatus" style="width: 90%" placeholder="请选择审核状态">
|
|
|
|
|
<el-option label="全部" value=""></el-option>
|
|
|
|
|
<el-option label="未提交" value="1"></el-option>
|
|
|
|
|
<el-option label="已提交" value="2"></el-option>
|
|
|
|
|
<el-option label="已锁定" value="3"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</template>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div class="top-right-btn">
|
|
|
|
@ -71,66 +154,171 @@
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
<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="price" show-overflow-tooltip></el-table-column>
|
|
|
|
|
<el-table-column label="生产企业" prop="ylqxzcrbarmc" show-overflow-tooltip></el-table-column>
|
|
|
|
|
<el-table-column label="注册/备案号" prop="zczbhhzbapzbh" show-overflow-tooltip></el-table-column>
|
|
|
|
|
<el-table-column label="物资分类" prop="classifyName" show-overflow-tooltip></el-table-column>
|
|
|
|
|
<el-table-column v-if="isSpCombine" label="锁定状态" prop="lockStatus" show-overflow-tooltip>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ lockStatusMap[scope.row.lockStatus] }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column width="180" label="操作" fixed="right">
|
|
|
|
|
<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 type="text" size="small" :disabled="scope.row.lockStatus==3"
|
|
|
|
|
@click.native.stop="handleModifyClick(scope.row)">编辑
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="text" size="small"
|
|
|
|
|
@click.native.stop="handleDetailClick(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-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="cpmctymc" show-overflow-tooltip></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column label="规格型号" prop="ggxh" show-overflow-tooltip></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column label="价格" prop="price" show-overflow-tooltip></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column label="生产企业" prop="ylqxzcrbarmc" show-overflow-tooltip></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column label="注册/备案号" prop="zczbhhzbapzbh" show-overflow-tooltip></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column label="物资分类" prop="classifyName" show-overflow-tooltip></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column v-if="isSpCombine" label="锁定状态" prop="lockStatus" show-overflow-tooltip>-->
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
<!-- {{ lockStatusMap[scope.row.lockStatus] }}-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<!-- <el-table-column width="180" label="操作" fixed="right">-->
|
|
|
|
|
<!-- <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 type="text" size="small" :disabled="scope.row.lockStatus==3"-->
|
|
|
|
|
<!-- @click.native.stop="handleModifyClick(scope.row)">编辑-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- <el-button type="text" size="small"-->
|
|
|
|
|
<!-- @click.native.stop="handleDetailClick(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>-->
|
|
|
|
|
<template v-for="(item, index) in tableHeader">
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'id' && executeEval(row,item.expression,true)"
|
|
|
|
|
type="index" :label="item.columnDesc"></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'selection'"
|
|
|
|
|
type="selection"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:selectable="(row,number) => executeFuc(row,'3',item.clickFuc)"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'radio' && executeEval(row,item.expression,true)"
|
|
|
|
|
:prop="item.columnName"
|
|
|
|
|
:label="item.columnDesc"
|
|
|
|
|
:sortable="item.sort"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:show-overflow-tooltip="item.tooltip"
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'laber' && executeEval(row,item.expression,true)"
|
|
|
|
|
:prop="item.columnName"
|
|
|
|
|
:label="item.columnDesc"
|
|
|
|
|
:sortable="item.sort"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:show-overflow-tooltip="item.tooltip"
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}">{{ item.lableRuleObj[scope.row[item.columnName]] }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'eltag' && executeEval(row,item.expression,true)"
|
|
|
|
|
:prop="item.columnName"
|
|
|
|
|
:label="item.columnDesc"
|
|
|
|
|
:sortable="item.sort"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:show-overflow-tooltip="item.tooltip"
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag :type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])">
|
|
|
|
|
<span>{{ item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName] }}</span>
|
|
|
|
|
</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'button' && executeEval(row,item.expression,true)"
|
|
|
|
|
:prop="item.columnName"
|
|
|
|
|
:label="item.columnDesc"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
fixed="right"
|
|
|
|
|
>
|
|
|
|
|
<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 type="text" size="small" :disabled="scope.row.lockStatus==3"
|
|
|
|
|
@click.native.stop="handleModifyClick(scope.row)">编辑
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="text" size="small"
|
|
|
|
|
@click.native.stop="handleDetailClick(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>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'text' && executeEval(row,item.expression,true)"
|
|
|
|
|
:prop="item.columnName"
|
|
|
|
|
:label="item.columnDesc"
|
|
|
|
|
:sortable="item.sort"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:show-overflow-tooltip="item.tooltip"
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{ scope.row[item.columnName] }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -277,7 +465,7 @@ import {
|
|
|
|
|
updateErpProduct,
|
|
|
|
|
uploadSmp,
|
|
|
|
|
thirdSysDetail,
|
|
|
|
|
removeRl, sysFilter, spcombie, lockStatus, removeDiRl
|
|
|
|
|
removeRl, sysFilterOptimize , spcombie, lockStatus, removeDiRl
|
|
|
|
|
} from "../../../api/basic/udiRelevance";
|
|
|
|
|
import store from "../../../store/index";
|
|
|
|
|
import {
|
|
|
|
@ -295,7 +483,9 @@ import ThrProductsAdd from "@/views/supplier/company/ThrProductsAdd";
|
|
|
|
|
import selectUdiVersion from "@/views/basic/product/UdiinfoSelectVersion";
|
|
|
|
|
import basicProductEdit from "@/views/supplier/company/basicCompanyproductEdit";
|
|
|
|
|
import basicProductDetail from "@/views/supplier/company/basicCompanyproductDetail"
|
|
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
getHead,executeFuc
|
|
|
|
|
} from "@/utils/customConfig";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
@ -331,6 +521,13 @@ export default {
|
|
|
|
|
pId: null,
|
|
|
|
|
},
|
|
|
|
|
pId: 0,
|
|
|
|
|
tableHeader:[],
|
|
|
|
|
queryList:[],
|
|
|
|
|
fromList:[],
|
|
|
|
|
|
|
|
|
|
options: {
|
|
|
|
|
getSysFilter:[]
|
|
|
|
|
},
|
|
|
|
|
productType: null,
|
|
|
|
|
defaultSys: null,
|
|
|
|
|
isImport: false,
|
|
|
|
@ -757,11 +954,11 @@ export default {
|
|
|
|
|
this.sysList = [];
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getSysFilter() {
|
|
|
|
|
sysFilter()
|
|
|
|
|
getSysFilter(_this) {
|
|
|
|
|
sysFilterOptimize()
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.filterList = response.data.list || [];
|
|
|
|
|
_this.loading = false;
|
|
|
|
|
_this.options.getSysFilter = response.data.list || [];
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.loading = false;
|
|
|
|
@ -882,7 +1079,15 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
executeFuc(row,type,clickFuc,value){
|
|
|
|
|
return executeFuc(this,row,type,clickFuc,value);
|
|
|
|
|
},
|
|
|
|
|
executeEval(row,expression,defaultRet){
|
|
|
|
|
if(expression){
|
|
|
|
|
return eval(expression);
|
|
|
|
|
}
|
|
|
|
|
return defaultRet;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
,
|
|
|
|
|
mounted() {
|
|
|
|
@ -901,9 +1106,16 @@ export default {
|
|
|
|
|
,
|
|
|
|
|
created() {
|
|
|
|
|
this.findBasicProductSet();
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getList();getHead("basicCompanyProducts","1").then((re) => {
|
|
|
|
|
// 处理返回的数据
|
|
|
|
|
this.tableObj = re.data;
|
|
|
|
|
this.tableHeader = re.data.tableList;
|
|
|
|
|
this.queryList = re.data.queryList;
|
|
|
|
|
this.fromList = re.data.fromList;
|
|
|
|
|
this.getList();
|
|
|
|
|
});
|
|
|
|
|
this.selectSysParam();
|
|
|
|
|
this.getSysFilter();
|
|
|
|
|
this.getSysFilter(this);
|
|
|
|
|
}
|
|
|
|
|
,
|
|
|
|
|
}
|
|
|
|
|