4/24 不良信息库更改

20240109-yw
wangwei 11 months ago
parent 35c35bd061
commit 502b335c79

@ -185,6 +185,7 @@
></pagination>
</el-card>
<el-dialog
:title="formMap[formName]"
:visible.sync="orderMutiSetVisible"
@ -218,7 +219,8 @@ export default {
name: "anncmntDev",
data() {
return {
showSearch: true,
anno:false,
showSearch: true,
filterQuery: {
page: 1,
limit: 10,
@ -228,8 +230,8 @@ export default {
list: [],
formName: 1,
formMap: {
1: "新增器械公告",
2: "编辑器械公告",
1: "新增不良信息公告",
2: "编辑不良信息公告",
},
inputQuery:{},
orderMutiSetVisible: false,

@ -1,159 +1,160 @@
<template>
<div>
<el-form :model="inputQuery" label-width="120px" >
<el-card>
<div style="font-size: 25px;font-weight: bold;margin-bottom: 20px;">产品信息</div>
<el-row :gutter="20" class="el-row" type="flex">
<el-col class="el-col" type="flex">
<el-form-item prop="productName" label="产品名称:" class="query-form-item">
<el-input
style="width: 80%"
size="small"
placeholder="请输入产品名称"
v-model="inputQuery.productName"
></el-input>
</el-form-item>
</el-col>
<el-col class="el-col" type="flex">
<el-form-item label="产品英文名称:" class="query-form-item">
<el-input
style="width: 80%"
size="small"
placeholder="请输入产品英文名称"
v-model="inputQuery.enProductName"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex">
<el-col class="el-col" type="flex">
<el-form-item label="规格型号:" class="query-form-item">
<el-input
style="width: 80%"
size="small"
placeholder="请输入规格型号"
v-model="inputQuery.modelSpec"
></el-input>
</el-form-item>
</el-col>
<el-col class="el-col" type="flex">
<el-form-item label="注册/备案证号:" class="query-form-item">
<el-input
style="width: 80%"
size="small"
placeholder="请输入注册/备案证号"
v-model="inputQuery.regCertCode"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex">
<el-col class="el-col" type="flex">
<el-form-item label="生产企业:" class="query-form-item">
<el-input
style="width: 80%"
size="small"
placeholder="请输入生产企业"
v-model="inputQuery.manuName"
></el-input>
</el-form-item>
</el-col>
<el-col class="el-col" type="flex">
<el-form-item label="生产企业英文名称:" class="query-form-item">
<el-input
style="width: 80%"
size="small"
placeholder="请输入生产企业英文名称"
v-model="inputQuery.enManuName"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex">
<el-col class="el-col" type="flex">
<el-form-item label="生产企业统一社会信用号:" class="query-form-item">
<el-input
style="width: 80%"
size="small"
placeholder="请输入生产企业统一社会信用号"
v-model="inputQuery.manuCertCoe"
></el-input>
</el-form-item>
</el-col>
<el-col class="el-col" type="flex">
<el-form-item label="代理人名称:" class="query-form-item">
<el-input
style="width: 80%"
size="small"
placeholder="请输入代理人名称"
v-model="inputQuery.agentName"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex">
<el-col class="el-col" type="flex">
<el-form-item label="代理人统一社会信用号:" class="query-form-item">
<el-input
style="width: 80%"
size="small"
placeholder="请输入代理人统一社会信用号"
v-model="inputQuery.agentCertCode"
></el-input>
</el-form-item>
</el-col>
<el-col class="el-col" type="flex">
<el-form-item label="最小销售产品标识:" class="query-form-item">
<el-input
style="width: 80%"
size="small"
placeholder="请输入最小销售产品标识"
v-model="inputQuery.nameCode"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex">
<el-col class="el-col" type="flex">
<el-form-item label="批次号:" class="query-form-item">
<el-input
style="width: 80%"
size="small"
placeholder="请输入批次号"
v-model="inputQuery.batchNo"
></el-input>
</el-form-item>
</el-col>
<el-col class="el-col" type="flex">
<el-form-item label="生产日期:" class="query-form-item">
<el-date-picker
v-model="inputQuery.productionDate"
style="width: 80%"
value-format="yyyy-MM-dd"
type="date"
placeholder="请输入生产日期"
></el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="10" class="el-row" type="flex">
<el-col class="el-col" type="flex">
<el-form-item label="失效日期:" class="query-form-item">
<!--<el-form :model="inputQuery" label-width="120px" >-->
<!--<el-card>-->
<!-- <div style="font-size: 25px;font-weight: bold;margin-bottom: 20px;">产品信息</div>-->
<!-- <el-row :gutter="20" class="el-row" type="flex">-->
<!-- <el-col class="el-col" type="flex">-->
<!-- <el-form-item prop="productName" label="产品名称:" class="query-form-item">-->
<!-- <el-input-->
<!-- style="width: 80%"-->
<!-- size="small"-->
<!-- placeholder="请输入产品名称"-->
<!-- v-model="inputQuery.productName"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col class="el-col" type="flex">-->
<!-- <el-form-item label="产品英文名称:" class="query-form-item">-->
<!-- <el-input-->
<!-- style="width: 80%"-->
<!-- size="small"-->
<!-- placeholder="请输入产品英文名称"-->
<!-- v-model="inputQuery.enProductName"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row :gutter="20" class="el-row" type="flex">-->
<!-- <el-col class="el-col" type="flex">-->
<!-- <el-form-item label="规格型号:" class="query-form-item">-->
<!-- <el-input-->
<!-- style="width: 80%"-->
<!-- size="small"-->
<!-- placeholder="请输入规格型号"-->
<!-- v-model="inputQuery.modelSpec"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col class="el-col" type="flex">-->
<!-- <el-form-item label="注册/备案证号:" class="query-form-item">-->
<!-- <el-input-->
<!-- style="width: 80%"-->
<!-- size="small"-->
<!-- placeholder="请输入注册/备案证号"-->
<!-- v-model="inputQuery.regCertCode"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row :gutter="20" class="el-row" type="flex">-->
<!-- <el-col class="el-col" type="flex">-->
<!-- <el-form-item label="生产企业:" class="query-form-item">-->
<!-- <el-input-->
<!-- style="width: 80%"-->
<!-- size="small"-->
<!-- placeholder="请输入生产企业"-->
<!-- v-model="inputQuery.manuName"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col class="el-col" type="flex">-->
<!-- <el-form-item label="生产企业英文名称:" class="query-form-item">-->
<!-- <el-input-->
<!-- style="width: 80%"-->
<!-- size="small"-->
<!-- placeholder="请输入生产企业英文名称"-->
<!-- v-model="inputQuery.enManuName"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row :gutter="20" class="el-row" type="flex">-->
<!-- <el-col class="el-col" type="flex">-->
<!-- <el-form-item label="生产企业统一社会信用号:" class="query-form-item">-->
<!-- <el-input-->
<!-- style="width: 80%"-->
<!-- size="small"-->
<!-- placeholder="请输入生产企业统一社会信用号"-->
<!-- v-model="inputQuery.manuCertCoe"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col class="el-col" type="flex">-->
<!-- <el-form-item label="代理人名称:" class="query-form-item">-->
<!-- <el-input-->
<!-- style="width: 80%"-->
<!-- size="small"-->
<!-- placeholder="请输入代理人名称"-->
<!-- v-model="inputQuery.agentName"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row :gutter="20" class="el-row" type="flex">-->
<!-- <el-col class="el-col" type="flex">-->
<!-- <el-form-item label="代理人统一社会信用号:" class="query-form-item">-->
<!-- <el-input-->
<!-- style="width: 80%"-->
<!-- size="small"-->
<!-- placeholder="请输入代理人统一社会信用号"-->
<!-- v-model="inputQuery.agentCertCode"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col class="el-col" type="flex">-->
<!-- <el-form-item label="最小销售产品标识:" class="query-form-item">-->
<!-- <el-input-->
<!-- style="width: 80%"-->
<!-- size="small"-->
<!-- placeholder="请输入最小销售产品标识"-->
<!-- v-model="inputQuery.nameCode"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row :gutter="20" class="el-row" type="flex">-->
<!-- <el-col class="el-col" type="flex">-->
<!-- <el-form-item label="批次号:" class="query-form-item">-->
<!-- <el-input-->
<!-- style="width: 80%"-->
<!-- size="small"-->
<!-- placeholder="请输入批次号"-->
<!-- v-model="inputQuery.batchNo"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col class="el-col" type="flex">-->
<!-- <el-form-item label="生产日期:" class="query-form-item">-->
<!-- <el-date-picker-->
<!-- v-model="inputQuery.productionDate"-->
<!-- style="width: 80%"-->
<!-- value-format="yyyy-MM-dd"-->
<!-- type="date"-->
<!-- placeholder="请输入生产日期"-->
<!-- ></el-date-picker>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <el-row :gutter="10" class="el-row" type="flex">-->
<!-- <el-col class="el-col" type="flex">-->
<!-- <el-form-item label="失效日期:" class="query-form-item">-->
<el-date-picker
v-model="inputQuery.expireDate"
style="width: 80%"
value-format="yyyy-MM-dd"
type="date"
placeholder="请输入失效日期"
></el-date-picker>
</el-form-item>
</el-col>
<!-- <el-date-picker-->
<!-- v-model="inputQuery.expireDate"-->
<!-- style="width: 80%"-->
<!-- value-format="yyyy-MM-dd"-->
<!-- type="date"-->
<!-- placeholder="请输入失效日期"-->
<!-- ></el-date-picker>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
</el-row>
</el-card>
<!-- </el-row>-->
<!--</el-card>-->
<el-form :model="inputQuery" label-width="120px" >
<el-card>
<div style="font-size: 25px;font-weight: bold;margin-bottom: 20px;">公告信息</div>
<!--<div style="font-size: 25px;font-weight: bold;margin-bottom: 20px;">公告信息</div>-->
<el-row :gutter="20" class="el-row" type="flex">
<el-col class="el-col" type="flex">
<el-form-item label="公告类型:" class="query-form-item">
@ -277,6 +278,7 @@
type="textarea"
placeholder="请输入公告内容"
v-model="inputQuery.annContent"
:autosize="{ minRows: 6, maxRows: 10}"
></el-input>
</el-form-item>
</el-col>
@ -287,9 +289,10 @@
<el-input
style="width: 80%"
size="small"
type="textarea"
type="textarea"
placeholder="请输入检查异常信息"
v-model="inputQuery.errContent"
:autosize="{ minRows: 4, maxRows: 10}"
></el-input>
</el-form-item>
</el-col>

@ -1,5 +1,226 @@
<template>
<div>
<el-card>
<div style="font-size: 15px;font-weight: bold;">公告标题
<el-button style="margin-left: 678px" type="primary" icon="el-icon-plus" @click="dialogTableVisible = true"
>选入公告</el-button>
</div>
<el-form>
<el-form-item label="公告内容:" class="query-form-item" :model="body" >
<el-input
type="textarea"
:autosize="{ minRows: 6, maxRows: 10}"
placeholder="公告内容"
v-model="textarea">
style="width: 80%"
</el-input>
</el-form-item>
</el-form>
<el-dialog title="选入公告" :visible.sync="dialogTableVisible" append-to-body width="60%">
<el-card>
<el-form v-if="queryList1 && queryList1.length > 0" :model="filterQuery" class="query-form" size="mini" label-width="120px" v-show="showSearch" :inline="true">
<el-row style=" display:flex; flex-wrap: wrap; ">
<template v-for="(item, index) in queryList1" >
<el-form-item v-if="item.columnType == 'input' && 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-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"
:disabled="executeEval(null,item.disabledFuc,false)"
clearable>
<el-option
v-for="dict in item.lableRuleObj"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<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"
@change="executeFuc($event,'5',item.checkRules)"
:disabled="executeEval(null,item.disabledFuc,false)"
filterable
remote
:remote-method="(query) => executeFuc(query,'5',item.clickFuc)"
clearable>
<el-option
v-for="item in options[item.clickFuc]"
:key="item.code"
:label="item.label"
:value="item.code"
/>
</el-select>
</el-form-item>
<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-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>
</template>
</el-row>
</el-form>
<div class="top-right-btn">
<el-button-group>
<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="onSubmit"
>查询
</el-button
>
<el-button type="primary" icon="el-icon-plus" @click="confrim"></el-button>
</el-button-group>
</div>
<el-table
:data="list"
style="width: 100%"
border
highlight-current-row="true"
:row-class-name="tableRowClassName"
@current-change="handleErpChange"
@selection-change="handleSelectionUdiChange"
ref="multipleTable"
>
<el-table-column width="55">
<template slot-scope="scope">
<el-radio :label="scope.row.id" v-model="radioCheck" :disabled="scope.row.check"><span></span></el-radio>
</template>
</el-table-column>
<template v-for="(item, index) in tableHeader1">
<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"-->
<!--&gt;-->
<!-- <template slot-scope="scope">-->
<!-- <el-button v-for="(buttonItem, buttonIndex) in item.buttonRulObj"-->
<!-- :type="buttonItem.type"-->
<!-- :size="buttonItem.size"-->
<!-- :style="buttonItem.style"-->
<!-- :key="buttonItem"-->
<!-- v-if="executeEval(scope.row,buttonItem.hasPermi,true)"-->
<!-- :disabled="executeEval(scope.row,buttonItem.disabledFuc,false)"-->
<!-- @click.native.stop="executeFuc(scope.row,'1',buttonItem.clickFuc)"-->
<!-- >{{ buttonItem.name }}-->
<!-- </el-button>-->
<!-- </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>
<pagination
v-show="total>0"
:total="total"
:page.sync="filterQuery.page"
:limit.sync="filterQuery.limit"
@pagination="handleCurrentChange"
></pagination>
</el-card>
</el-dialog>
</el-card>
<el-card>
<el-form :model="inputQuery" label-width="120px" >
<template v-for="(itemRow, indexRow) in fromList">
@ -119,6 +340,7 @@ import {savegg} from "@/api/anno/anncmntManu";
import {
getHead,executeFuc
} from "@/utils/customConfig";
import {list} from "@/api/anno/anncmntDev";
export default {
name: "ylqxzcrDialog",
@ -145,7 +367,57 @@ export default {
invList:[],
options: {
}
},
dialogTableVisible:false,
textarea:'',
body:{},
tableObj1 : [],
tableHeader1 : [],
queryList1 : [],
fromList1 : [],
filterQuery: {
page: 1,
limit: 10,
// status:1,
},
radioCheck: null,
devSelection:[],
currentRow: null,
loading: false,
actDateRange: [],
pickerOptions: {
shortcuts: [
{
text: "最近一周",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近一个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近三个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
picker.$emit("pick", [start, end]);
},
},
],
},
showSearch: true,
list:[],
}
},
methods: {
@ -197,6 +469,73 @@ export default {
});
_this.inputQuery.spell = str;
},
getDevList(){
this.loading = true;
list(this.filterQuery).then(res => {
if (res.code == 20000){
this.loading = false;
this.tableData = res.data
this.list = res.data.list || [];
this.total = res.data.total || 0;
console.log("success",this.tableData)
}
}).catch(res => {
this.loading = false;
this.list = [];
this.total = 0;
})
},
hideSearch() {
this.showSearch = !this.showSearch;
},
onReset() {
this.actDateRange = null;
this.filterQuery = {
page: 1,
limit: 10,
// status:1,
}
this.getDevList();
},
onSubmit() {
if (this.actDateRange !== null) {
this.filterQuery.startTime = this.actDateRange[0];
this.filterQuery.endTime = this.actDateRange[1];
} else {
this.filterQuery.startTime = null;
this.filterQuery.endTime = null;
}
this.filterQuery.page = 1;
this.getDevList();
},
confrim(){
// console.log("wozaici dayin yicia zhege ", this.devSelection)
const val = this.devSelection;
this.textarea = val[0].annContent
this.dialogTableVisible = false
},
tableRowClassName({row, rowIndex}) {
if (row.check) return "warning-row";
return "";
},
handleErpChange(val) {
// console.log("dianjij handleErpChange",val)
if (!val.check) {
this.radioCheck = val.id;
// this.cpmctymc1 = val.cpmctymc;
this.currentRow = val;
this.$refs.multipleTable.clearSelection();
this.$refs.multipleTable.toggleRowSelection(val);
}
},
handleSelectionUdiChange(val) {
// console.log("dayin dayin handleSelectionUdiChange ",val)
this.devSelection = val;
},
handleCurrentChange(val) {
this.filterQuery.page = val.page;
this.getDevList();
},
},
components: {},
created() {
@ -207,7 +546,14 @@ export default {
this.queryList = re.data.queryList;
this.fromList = re.data.fromList;
});
getHead("anncmntDev","1").then((re) => {
//
this.tableObj1 = re.data;
this.tableHeader1 = re.data.tableList;
this.queryList1 = re.data.queryList;
this.fromList1 = re.data.fromList;
this.getDevList();
});
},
}
</script>

@ -144,7 +144,7 @@
v-if="item.columnType == 'button' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:width="item.width"
width="90px"
:key="item.columnName"
fixed="right"
>

@ -1,5 +1,226 @@
<template>
<div>
<el-card>
<div style="font-size: 15px;font-weight: bold;">公告标题
<el-button style="margin-left: 678px" type="primary" icon="el-icon-plus" @click="dialogTableVisible = true"
>选入公告</el-button>
</div>
<el-form>
<el-form-item label="公告内容:" class="query-form-item" :model="body" >
<el-input
type="textarea"
:autosize="{ minRows: 6, maxRows: 10}"
placeholder="公告内容"
v-model="textarea">
style="width: 80%"
</el-input>
</el-form-item>
</el-form>
<el-dialog title="选入公告" :visible.sync="dialogTableVisible" append-to-body width="60%">
<el-card>
<el-form v-if="queryList1 && queryList1.length > 0" :model="filterQuery" class="query-form" size="mini" label-width="120px" v-show="showSearch" :inline="true">
<el-row style=" display:flex; flex-wrap: wrap; ">
<template v-for="(item, index) in queryList1" >
<el-form-item v-if="item.columnType == 'input' && 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-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"
:disabled="executeEval(null,item.disabledFuc,false)"
clearable>
<el-option
v-for="dict in item.lableRuleObj"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<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"
@change="executeFuc($event,'5',item.checkRules)"
:disabled="executeEval(null,item.disabledFuc,false)"
filterable
remote
:remote-method="(query) => executeFuc(query,'5',item.clickFuc)"
clearable>
<el-option
v-for="item in options[item.clickFuc]"
:key="item.code"
:label="item.label"
:value="item.code"
/>
</el-select>
</el-form-item>
<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-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>
</template>
</el-row>
</el-form>
<div class="top-right-btn">
<el-button-group>
<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="onSubmit"
>查询
</el-button
>
<el-button type="primary" icon="el-icon-plus" @click="confrim"></el-button>
</el-button-group>
</div>
<el-table
:data="list"
style="width: 100%"
border
highlight-current-row="true"
:row-class-name="tableRowClassName"
@current-change="handleErpChange"
@selection-change="handleSelectionUdiChange"
ref="multipleTable"
>
<el-table-column width="55">
<template slot-scope="scope">
<el-radio :label="scope.row.id" v-model="radioCheck" :disabled="scope.row.check"><span></span></el-radio>
</template>
</el-table-column>
<template v-for="(item, index) in tableHeader1">
<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"-->
<!--&gt;-->
<!-- <template slot-scope="scope">-->
<!-- <el-button v-for="(buttonItem, buttonIndex) in item.buttonRulObj"-->
<!-- :type="buttonItem.type"-->
<!-- :size="buttonItem.size"-->
<!-- :style="buttonItem.style"-->
<!-- :key="buttonItem"-->
<!-- v-if="executeEval(scope.row,buttonItem.hasPermi,true)"-->
<!-- :disabled="executeEval(scope.row,buttonItem.disabledFuc,false)"-->
<!-- @click.native.stop="executeFuc(scope.row,'1',buttonItem.clickFuc)"-->
<!-- >{{ buttonItem.name }}-->
<!-- </el-button>-->
<!-- </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>
<pagination
v-show="total>0"
:total="total"
:page.sync="filterQuery.page"
:limit.sync="filterQuery.limit"
@pagination="handleCurrentChange"
></pagination>
</el-card>
</el-dialog>
</el-card>
<el-card>
<el-form :model="inputQuery" label-width="120px" >
<template v-for="(itemRow, indexRow) in fromList">
@ -118,6 +339,7 @@ import {getYlqxzczhList} from "@/api/anno/anncmntYlqxzczh";
import {
getHead,executeFuc
} from "@/utils/customConfig";
import {list} from "@/api/anno/anncmntDev";
export default {
name: "ylqxzcrDialog",
@ -145,7 +367,58 @@ export default {
options: {
getYlqxzczh:[],
getManu:[],
}
},
//
dialogTableVisible:false,
textarea:'',
body:{},
tableObj1 : [],
tableHeader1 : [],
queryList1 : [],
fromList1 : [],
filterQuery: {
page: 1,
limit: 10,
// status:1,
},
radioCheck: null,
devSelection:[],
currentRow: null,
loading: false,
actDateRange: [],
pickerOptions: {
shortcuts: [
{
text: "最近一周",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近一个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近三个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
picker.$emit("pick", [start, end]);
},
},
],
},
showSearch: true,
list:[],
}
},
methods: {
@ -231,6 +504,73 @@ export default {
});
_this.inputQuery.spell = str;
},
getDevList(){
this.loading = true;
list(this.filterQuery).then(res => {
if (res.code == 20000){
this.loading = false;
this.tableData = res.data
this.list = res.data.list || [];
this.total = res.data.total || 0;
console.log("success",this.tableData)
}
}).catch(res => {
this.loading = false;
this.list = [];
this.total = 0;
})
},
hideSearch() {
this.showSearch = !this.showSearch;
},
onReset() {
this.actDateRange = null;
this.filterQuery = {
page: 1,
limit: 10,
// status:1,
}
this.getDevList();
},
onSubmit() {
if (this.actDateRange !== null) {
this.filterQuery.startTime = this.actDateRange[0];
this.filterQuery.endTime = this.actDateRange[1];
} else {
this.filterQuery.startTime = null;
this.filterQuery.endTime = null;
}
this.filterQuery.page = 1;
this.getDevList();
},
confrim(){
// console.log("wozaici dayin yicia zhege ", this.devSelection)
const val = this.devSelection;
this.textarea = val[0].annContent
this.dialogTableVisible = false
},
tableRowClassName({row, rowIndex}) {
if (row.check) return "warning-row";
return "";
},
handleErpChange(val) {
// console.log("dianjij handleErpChange",val)
if (!val.check) {
this.radioCheck = val.id;
// this.cpmctymc1 = val.cpmctymc;
this.currentRow = val;
this.$refs.multipleTable.clearSelection();
this.$refs.multipleTable.toggleRowSelection(val);
}
},
handleSelectionUdiChange(val) {
// console.log("dayin dayin handleSelectionUdiChange ",val)
this.devSelection = val;
},
handleCurrentChange(val) {
this.filterQuery.page = val.page;
this.getDevList();
},
},
components: {},
created() {
@ -243,6 +583,14 @@ export default {
});
this.getYlqxzczh(this);
this.getManu(this);
getHead("anncmntDev","1").then((re) => {
//
this.tableObj1 = re.data;
this.tableHeader1 = re.data.tableList;
this.queryList1 = re.data.queryList;
this.fromList1 = re.data.fromList;
this.getDevList();
});
},
}
</script>

@ -1,5 +1,228 @@
<template>
<div>
<el-card>
<div style="font-size: 15px;font-weight: bold;">公告标题
<el-button style="margin-left: 678px" type="primary" icon="el-icon-plus" @click="dialogTableVisible = true"
>选入公告</el-button>
</div>
<el-form>
<el-form-item label="公告内容:" class="query-form-item" :model="body" >
<el-input
type="textarea"
:autosize="{ minRows: 6, maxRows: 10}"
placeholder="公告内容"
v-model="textarea">
style="width: 80%"
</el-input>
</el-form-item>
</el-form>
<el-dialog title="选入公告" :visible.sync="dialogTableVisible" append-to-body width="60%">
<el-card>
<el-form v-if="queryList1 && queryList1.length > 0" :model="filterQuery" class="query-form" size="mini" label-width="120px" v-show="showSearch" :inline="true">
<el-row style=" display:flex; flex-wrap: wrap; ">
<template v-for="(item, index) in queryList1" >
<el-form-item v-if="item.columnType == 'input' && 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-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"
:disabled="executeEval(null,item.disabledFuc,false)"
clearable>
<el-option
v-for="dict in item.lableRuleObj"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<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"
@change="executeFuc($event,'5',item.checkRules)"
:disabled="executeEval(null,item.disabledFuc,false)"
filterable
remote
:remote-method="(query) => executeFuc(query,'5',item.clickFuc)"
clearable>
<el-option
v-for="item in options[item.clickFuc]"
:key="item.code"
:label="item.label"
:value="item.code"
/>
</el-select>
</el-form-item>
<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-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>
</template>
</el-row>
</el-form>
<div class="top-right-btn">
<el-button-group>
<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="onSubmit"
>查询
</el-button
>
<el-button type="primary" icon="el-icon-plus" @click="confrim"></el-button>
</el-button-group>
</div>
<el-table
:data="list"
style="width: 100%"
border
highlight-current-row="true"
:row-class-name="tableRowClassName"
@current-change="handleErpChange"
@selection-change="handleSelectionUdiChange"
ref="multipleTable"
>
<el-table-column width="55">
<template slot-scope="scope">
<el-radio :label="scope.row.id" v-model="radioCheck" :disabled="scope.row.check"><span></span></el-radio>
</template>
</el-table-column>
<template v-for="(item, index) in tableHeader1">
<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"-->
<!--&gt;-->
<!-- <template slot-scope="scope">-->
<!-- <el-button v-for="(buttonItem, buttonIndex) in item.buttonRulObj"-->
<!-- :type="buttonItem.type"-->
<!-- :size="buttonItem.size"-->
<!-- :style="buttonItem.style"-->
<!-- :key="buttonItem"-->
<!-- v-if="executeEval(scope.row,buttonItem.hasPermi,true)"-->
<!-- :disabled="executeEval(scope.row,buttonItem.disabledFuc,false)"-->
<!-- @click.native.stop="executeFuc(scope.row,'1',buttonItem.clickFuc)"-->
<!-- >{{ buttonItem.name }}-->
<!-- </el-button>-->
<!-- </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>
<pagination
v-show="total>0"
:total="total"
:page.sync="filterQuery.page"
:limit.sync="filterQuery.limit"
@pagination="handleCurrentChange"
></pagination>
</el-card>
</el-dialog>
</el-card>
<!-- 第二部分啦 -->
<el-card>
<el-form :model="inputQuery" label-width="150px" >
<template v-for="(itemRow, indexRow) in fromList">
@ -111,11 +334,14 @@
</div>
</el-form>
</el-card>
</div>
</template>
<script>
import {savegg} from "@/api/anno/anncmntYlqxzcr";
import {list} from "@/api/anno/anncmntDev";
import {
getHead,executeFuc
} from "@/utils/customConfig";
@ -138,14 +364,66 @@ export default {
},
data() {
return {
total: 0,
showSearch: true,
dialogTableVisible: false,
tableData:[],
list:[],
tableHeader:[],
queryList:[],
fromList:[],
tableObj:[],
tableObj1 : [],
tableHeader1 : [],
queryList1 : [],
fromList1 : [],
invList:[],
filterQuery: {
page: 1,
limit: 10,
// status:1,
},
radioCheck: null,
devSelection:[],
currentRow: null,
textarea:'',
body:{},
loading: false,
actDateRange: [],
options: {
}
},
pickerOptions: {
shortcuts: [
{
text: "最近一周",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近一个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近三个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
picker.$emit("pick", [start, end]);
},
},
],
},
}
},
methods: {
@ -176,6 +454,60 @@ export default {
});
}
},
handleCurrentChange(val) {
this.filterQuery.page = val.page;
this.getDevList();
},
hideSearch() {
this.showSearch = !this.showSearch;
},
onReset() {
this.actDateRange = null;
this.filterQuery = {
page: 1,
limit: 10,
// status:1,
}
this.getDevList();
},
onSubmit() {
if (this.actDateRange !== null) {
this.filterQuery.startTime = this.actDateRange[0];
this.filterQuery.endTime = this.actDateRange[1];
} else {
this.filterQuery.startTime = null;
this.filterQuery.endTime = null;
}
this.filterQuery.page = 1;
this.getDevList();
},
checkSelectable(row) {
return !row.check;
},
confrim(){
// console.log("wozaici dayin yicia zhege ", this.devSelection)
const val = this.devSelection;
this.textarea = val[0].annContent
this.dialogTableVisible = false
},
tableRowClassName({row, rowIndex}) {
if (row.check) return "warning-row";
return "";
},
handleErpChange(val) {
// console.log("dianjij handleErpChange",val)
if (!val.check) {
this.radioCheck = val.id;
// this.cpmctymc1 = val.cpmctymc;
this.currentRow = val;
this.$refs.multipleTable.clearSelection();
this.$refs.multipleTable.toggleRowSelection(val);
}
},
handleSelectionUdiChange(val) {
// console.log("dayin dayin handleSelectionUdiChange ",val)
this.devSelection = val;
},
executeFuc(row,type,clickFuc,value){
return executeFuc(this,row,type,clickFuc,value);
},
@ -197,6 +529,22 @@ export default {
});
_this.inputQuery.spell = str;
},
getDevList(){
this.loading = true;
list(this.filterQuery).then(res => {
if (res.code == 20000){
this.loading = false;
this.tableData = res.data
this.list = res.data.list || [];
this.total = res.data.total || 0;
console.log("success",this.tableData)
}
}).catch(res => {
this.loading = false;
this.list = [];
this.total = 0;
})
}
},
components: {},
created() {
@ -207,6 +555,15 @@ export default {
this.queryList = re.data.queryList;
this.fromList = re.data.fromList;
});
getHead("anncmntDev","1").then((re) => {
//
this.tableObj1 = re.data;
this.tableHeader1 = re.data.tableList;
this.queryList1 = re.data.queryList;
this.fromList1 = re.data.fromList;
this.getDevList();
});
},
}

@ -1,5 +1,227 @@
<template>
<div>
<el-card>
<div style="font-size: 15px;font-weight: bold;">公告标题
<el-button style="margin-left: 678px" type="primary" icon="el-icon-plus" @click="dialogTableVisible = true"
>选入公告</el-button>
</div>
<el-form>
<el-form-item label="公告内容:" class="query-form-item" :model="body" >
<el-input
type="textarea"
:autosize="{ minRows: 6, maxRows: 10}"
placeholder="公告内容"
v-model="textarea">
style="width: 80%"
</el-input>
</el-form-item>
</el-form>
<el-dialog title="选入公告" :visible.sync="dialogTableVisible" append-to-body width="60%">
<el-card>
<el-form v-if="queryList1 && queryList1.length > 0" :model="filterQuery" class="query-form" size="mini" label-width="120px" v-show="showSearch" :inline="true">
<el-row style=" display:flex; flex-wrap: wrap; ">
<template v-for="(item, index) in queryList1" >
<el-form-item v-if="item.columnType == 'input' && 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-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"
:disabled="executeEval(null,item.disabledFuc,false)"
clearable>
<el-option
v-for="dict in item.lableRuleObj"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<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"
@change="executeFuc($event,'5',item.checkRules)"
:disabled="executeEval(null,item.disabledFuc,false)"
filterable
remote
:remote-method="(query) => executeFuc(query,'5',item.clickFuc)"
clearable>
<el-option
v-for="item in options[item.clickFuc]"
:key="item.code"
:label="item.label"
:value="item.code"
/>
</el-select>
</el-form-item>
<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-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>
</template>
</el-row>
</el-form>
<div class="top-right-btn">
<el-button-group>
<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="onSubmit"
>查询
</el-button
>
<el-button type="primary" icon="el-icon-plus" @click="confrim"></el-button>
</el-button-group>
</div>
<el-table
:data="list"
style="width: 100%"
border
highlight-current-row="true"
:row-class-name="tableRowClassName"
@current-change="handleErpChange"
@selection-change="handleSelectionUdiChange"
ref="multipleTable"
>
<el-table-column width="55">
<template slot-scope="scope">
<el-radio :label="scope.row.id" v-model="radioCheck" :disabled="scope.row.check"><span></span></el-radio>
</template>
</el-table-column>
<template v-for="(item, index) in tableHeader1">
<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"-->
<!--&gt;-->
<!-- <template slot-scope="scope">-->
<!-- <el-button v-for="(buttonItem, buttonIndex) in item.buttonRulObj"-->
<!-- :type="buttonItem.type"-->
<!-- :size="buttonItem.size"-->
<!-- :style="buttonItem.style"-->
<!-- :key="buttonItem"-->
<!-- v-if="executeEval(scope.row,buttonItem.hasPermi,true)"-->
<!-- :disabled="executeEval(scope.row,buttonItem.disabledFuc,false)"-->
<!-- @click.native.stop="executeFuc(scope.row,'1',buttonItem.clickFuc)"-->
<!-- >{{ buttonItem.name }}-->
<!-- </el-button>-->
<!-- </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>
<pagination
v-show="total>0"
:total="total"
:page.sync="filterQuery.page"
:limit.sync="filterQuery.limit"
@pagination="handleCurrentChange"
></pagination>
</el-card>
</el-dialog>
</el-card>
<el-card>
<el-form :model="inputQuery" label-width="120px" >
<template v-for="(itemRow, indexRow) in fromList">
@ -120,6 +342,7 @@ import {getYlqxzcrList} from "@/api/anno/anncmntYlqxzcr";
import {
getHead,executeFuc
} from "@/utils/customConfig";
import {list} from "@/api/anno/anncmntDev";
export default {
name: "ylqxzcrDialog",
@ -146,7 +369,59 @@ export default {
invList:[],
options: {
getYlqxzcr:[],
}
},
//
dialogTableVisible:false,
textarea:'',
body:{},
tableObj1 : [],
tableHeader1 : [],
queryList1 : [],
fromList1 : [],
filterQuery: {
page: 1,
limit: 10,
// status:1,
},
radioCheck: null,
devSelection:[],
currentRow: null,
loading: false,
actDateRange: [],
pickerOptions: {
shortcuts: [
{
text: "最近一周",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近一个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近三个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
picker.$emit("pick", [start, end]);
},
},
],
},
showSearch: true,
list:[],
}
},
methods: {
@ -216,6 +491,75 @@ export default {
});
_this.inputQuery.spell = str;
},
//
getDevList(){
this.loading = true;
list(this.filterQuery).then(res => {
if (res.code == 20000){
this.loading = false;
this.tableData = res.data
this.list = res.data.list || [];
this.total = res.data.total || 0;
console.log("success",this.tableData)
}
}).catch(res => {
this.loading = false;
this.list = [];
this.total = 0;
})
},
hideSearch() {
this.showSearch = !this.showSearch;
},
onReset() {
this.actDateRange = null;
this.filterQuery = {
page: 1,
limit: 10,
// status:1,
}
this.getDevList();
},
onSubmit() {
if (this.actDateRange !== null) {
this.filterQuery.startTime = this.actDateRange[0];
this.filterQuery.endTime = this.actDateRange[1];
} else {
this.filterQuery.startTime = null;
this.filterQuery.endTime = null;
}
this.filterQuery.page = 1;
this.getDevList();
},
confrim(){
// console.log("wozaici dayin yicia zhege ", this.devSelection)
const val = this.devSelection;
this.textarea = val[0].annContent
this.dialogTableVisible = false
},
tableRowClassName({row, rowIndex}) {
if (row.check) return "warning-row";
return "";
},
handleErpChange(val) {
// console.log("dianjij handleErpChange",val)
if (!val.check) {
this.radioCheck = val.id;
// this.cpmctymc1 = val.cpmctymc;
this.currentRow = val;
this.$refs.multipleTable.clearSelection();
this.$refs.multipleTable.toggleRowSelection(val);
}
},
handleSelectionUdiChange(val) {
// console.log("dayin dayin handleSelectionUdiChange ",val)
this.devSelection = val;
},
handleCurrentChange(val) {
this.filterQuery.page = val.page;
this.getDevList();
},
},
components: {},
created() {
@ -227,6 +571,14 @@ export default {
this.fromList = re.data.fromList;
});
this.getYlqxzcr(this);
getHead("anncmntDev","1").then((re) => {
//
this.tableObj1 = re.data;
this.tableHeader1 = re.data.tableList;
this.queryList1 = re.data.queryList;
this.fromList1 = re.data.fromList;
this.getDevList();
});
},
}
</script>

Loading…
Cancel
Save