|
@@ -8,6 +8,11 @@
|
|
<el-form-item label="开单项目:">
|
|
<el-form-item label="开单项目:">
|
|
<el-input size="mini" v-model="filter.conceptName" placeholder="请输入" clearable></el-input>
|
|
<el-input size="mini" v-model="filter.conceptName" placeholder="请输入" clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item label="状态:">
|
|
|
|
+ <el-select size="mini" v-model="filter.relationStatus" placeholder="请选择" clearable>
|
|
|
|
+ <el-option v-for="item in stateList" :label="item.name" :value="item.id" :key="item.id"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
<el-form-item class="dododo">
|
|
<el-form-item class="dododo">
|
|
<el-button size="mini" @click="filterDatas">检索</el-button>
|
|
<el-button size="mini" @click="filterDatas">检索</el-button>
|
|
<el-button size="mini" type="warning" @click="addRelation">添加规则</el-button>
|
|
<el-button size="mini" type="warning" @click="addRelation">添加规则</el-button>
|
|
@@ -20,6 +25,7 @@
|
|
<el-table-column :resizable="false" prop="ruleName" label="规则名称" width="180"></el-table-column>
|
|
<el-table-column :resizable="false" prop="ruleName" label="规则名称" width="180"></el-table-column>
|
|
<el-table-column :resizable="false" prop="conditionName" label="条件明细" show-overflow-tooltip></el-table-column>
|
|
<el-table-column :resizable="false" prop="conditionName" label="条件明细" show-overflow-tooltip></el-table-column>
|
|
<el-table-column :resizable="false" prop="conceptName" label="开单项目" show-overflow-tooltip></el-table-column>
|
|
<el-table-column :resizable="false" prop="conceptName" label="开单项目" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column :resizable="false" prop="relationName" label="开单类型" show-overflow-tooltip></el-table-column>
|
|
<el-table-column :resizable="false" prop="ruleType" label="规则类型" show-overflow-tooltip>
|
|
<el-table-column :resizable="false" prop="ruleType" label="规则类型" show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{scope.row.ruleType === 1 ? '文本类型' : ''}}</span>
|
|
<span>{{scope.row.ruleType === 1 ? '文本类型' : ''}}</span>
|
|
@@ -33,14 +39,19 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column :resizable="false" prop="operate" label="操作">
|
|
<el-table-column :resizable="false" prop="operate" label="操作">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button v-if="scope.row.relationStatus===0" type="text" size="small" class="is-disabled">修改</el-button>
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="scope.row.relationStatus===0"
|
|
|
|
+ type="text"
|
|
|
|
+ size="small"
|
|
|
|
+ class="is-disabled"
|
|
|
|
+ >修改</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-if="scope.row.relationStatus==1"
|
|
v-if="scope.row.relationStatus==1"
|
|
type="text"
|
|
type="text"
|
|
size="small"
|
|
size="small"
|
|
@click="toEditProduct(scope.row)"
|
|
@click="toEditProduct(scope.row)"
|
|
>修改</el-button>
|
|
>修改</el-button>
|
|
-
|
|
|
|
|
|
+
|
|
<span style="margin:0 3px;">|</span>
|
|
<span style="margin:0 3px;">|</span>
|
|
<el-button
|
|
<el-button
|
|
v-if="scope.row.relationStatus===0"
|
|
v-if="scope.row.relationStatus===0"
|
|
@@ -86,8 +97,19 @@ export default {
|
|
searched: false,
|
|
searched: false,
|
|
filter: {
|
|
filter: {
|
|
conditionName: '', //条件明细
|
|
conditionName: '', //条件明细
|
|
- conceptName: '' //开单项目
|
|
|
|
|
|
+ conceptName: '', //开单项目
|
|
|
|
+ relationStatus: ''
|
|
},
|
|
},
|
|
|
|
+ stateList: [
|
|
|
|
+ {
|
|
|
|
+ id: "1",
|
|
|
|
+ name: '启用'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ id: "0",
|
|
|
|
+ name: '禁用'
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
pageSize: config.pageSize,
|
|
pageSize: config.pageSize,
|
|
pageSizeArr: config.pageSizeArr,
|
|
pageSizeArr: config.pageSizeArr,
|
|
@@ -209,7 +231,8 @@ export default {
|
|
number: this.inCurrentPage - 1 || this.currentPage - 1,
|
|
number: this.inCurrentPage - 1 || this.currentPage - 1,
|
|
size: this.pageSize,
|
|
size: this.pageSize,
|
|
conditionName: this.filter.conditionName.trim(),
|
|
conditionName: this.filter.conditionName.trim(),
|
|
- conceptName: this.filter.conceptName.trim()
|
|
|
|
|
|
+ conceptName: this.filter.conceptName.trim(),
|
|
|
|
+ relationStatus: this.filter.relationStatus
|
|
// uniqueCode: ''
|
|
// uniqueCode: ''
|
|
};
|
|
};
|
|
return param;
|
|
return param;
|
|
@@ -218,7 +241,8 @@ export default {
|
|
clearFilter() {
|
|
clearFilter() {
|
|
this.filter = {
|
|
this.filter = {
|
|
conditionName: '',
|
|
conditionName: '',
|
|
- conceptName: ''
|
|
|
|
|
|
+ conceptName: '',
|
|
|
|
+ relationStatus: ''
|
|
};
|
|
};
|
|
},
|
|
},
|
|
handleSizeChange(val) {
|
|
handleSizeChange(val) {
|