Merge branch '20240109-yw'
commit
99ec20a3e0
@ -0,0 +1,32 @@
|
||||
import axios from "@/utils/request";
|
||||
|
||||
export function list(query) {
|
||||
return axios({
|
||||
url: "/anno/anncmnt/dev/list",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// 保存
|
||||
export function savegg(data, formName, method = "post") {
|
||||
let url =
|
||||
formName !== "edit"
|
||||
? "/anno/anncmnt/dev/save"
|
||||
: "/anno/anncmnt/dev/edit";
|
||||
return axios({
|
||||
url: url,
|
||||
method: method,
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function deletegg(data) {
|
||||
return axios({
|
||||
url: "/anno/anncmnt/dev/delete",
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
}
|
@ -0,0 +1,41 @@
|
||||
import axios from "@/utils/request";
|
||||
|
||||
export function list(query) {
|
||||
return axios({
|
||||
url: "/system/custom/config/list",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// 保存
|
||||
export function saveCustomConfig(data, formName, method = "post") {
|
||||
let url =
|
||||
formName !== "edit"
|
||||
? "/system/custom/config/save"
|
||||
: "/system/custom/config/edit";
|
||||
return axios({
|
||||
url: url,
|
||||
method: method,
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function devCustomConfig(data) {
|
||||
return axios({
|
||||
url: "/system/custom/config/delete",
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
export function getConfigs(query) {
|
||||
return axios({
|
||||
url: "/system/custom/config/getConfigs",
|
||||
method: "post",
|
||||
data: query
|
||||
});
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
import axios from "@/utils/request";
|
||||
|
||||
export function list(query) {
|
||||
return axios({
|
||||
url: "/system/custom/configDetail/list",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// 保存
|
||||
export function saveCustomConfig(data, formName, method = "post") {
|
||||
let url =
|
||||
formName !== "edit"
|
||||
? "/system/custom/configDetail/save"
|
||||
: "/system/custom/configDetail/edit";
|
||||
return axios({
|
||||
url: url,
|
||||
method: method,
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function devCustomConfig(data) {
|
||||
return axios({
|
||||
url: "/system/custom/configDetail/delete",
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
}
|
@ -0,0 +1,100 @@
|
||||
import {getConfigs} from "@/api/system/sysCustomConfig";
|
||||
import {Message} from "element-ui";
|
||||
function getColer(item,value){
|
||||
const colorRule = item.colorRule;
|
||||
if(colorRule && colorRule.indexOf(",") != -1){
|
||||
var arr = colorRule.split("|");
|
||||
var reColor = "";
|
||||
arr.some(s => {
|
||||
var arrTemp = s.split(",");
|
||||
const type = arrTemp[0]
|
||||
const valueT = arrTemp[1]
|
||||
const color = arrTemp[2]
|
||||
if(type == "=" && value == valueT){
|
||||
reColor = color;
|
||||
}else if(type == ">=" && value >= valueT){
|
||||
reColor = color;
|
||||
}else if(type == ">" && value > valueT){
|
||||
reColor = color;
|
||||
}else if(type == "<" && value < valueT){
|
||||
reColor = color;
|
||||
}else if(type == "<=" && value <= valueT){
|
||||
reColor = color;
|
||||
} else if(type == "0"){
|
||||
reColor = color;
|
||||
}
|
||||
})
|
||||
return reColor;
|
||||
}else{
|
||||
return colorRule;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export async function getHead(businessType,type){
|
||||
try {
|
||||
var subData = {};
|
||||
subData.businessType = businessType;
|
||||
subData.type = type;
|
||||
const re = await getConfigs(subData);
|
||||
if(re.code != 20000){
|
||||
Message.error("获取配置失败");
|
||||
}
|
||||
return re;
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export function executeFuc(_this,row,type,clickFuc,obj){
|
||||
// 0 列表点击事件 1 列表页按钮事件 2 编辑页表单事件 3 列表页复选框事件 4列表页颜色方法 5列表查询框方法
|
||||
if("1" == type){
|
||||
//列表页按钮事件
|
||||
return callModelFun(_this,clickFuc,row);
|
||||
}else if("4" == type){
|
||||
//列表页颜色方法
|
||||
if(clickFuc) {
|
||||
return getColer(clickFuc, obj);
|
||||
}
|
||||
}else if("5" == type){
|
||||
//列表查询条件查询input方法
|
||||
if(clickFuc){
|
||||
return callModelFun(_this,clickFuc,row);
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}else if("2" == type){
|
||||
if(clickFuc){
|
||||
//编辑页表单事件
|
||||
return callModelFun(_this,clickFuc,row);
|
||||
}else{
|
||||
return true;
|
||||
}
|
||||
}else if("3" == type){
|
||||
//列表页复选框事件
|
||||
if(clickFuc){
|
||||
return callModelFun(_this,clickFuc,row);
|
||||
}else{
|
||||
return true;
|
||||
}
|
||||
}else if("0" == type){
|
||||
//表单点击事件
|
||||
if(clickFuc){
|
||||
return callModelFun(_this,clickFuc,row);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据方法名称调用方法
|
||||
*/
|
||||
function callModelFun(_this,funcName,row) {
|
||||
let methods = _this.$options.methods;
|
||||
// 解释说明一下, this需要传入目标方法, 否则,在目标方法中修改data中的值, 将不会重新渲染dom, 跟v-if结合使用的过程中需要注意
|
||||
return methods[funcName](_this,row);
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,368 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-card>
|
||||
<el-form v-if="queryList && queryList.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 queryList" >
|
||||
<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="(event) => addOrderMuti()">新增</el-button>
|
||||
</el-button-group>
|
||||
</div>
|
||||
<el-table v-loading="loading" :data="list" style="width: 100%" border highlight-current-row>
|
||||
<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-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
|
||||
:title="formMap[formName]"
|
||||
:visible.sync="orderMutiSetVisible"
|
||||
:before-close="close"
|
||||
width="60%"
|
||||
v-if="orderMutiSetVisible"
|
||||
@close='closeDialog'
|
||||
:close-on-click-modal="false"
|
||||
:close-on-press-escape="false"
|
||||
>
|
||||
<indexDialog
|
||||
:closeDialog="closeDialog"
|
||||
:inputQuery="inputQuery"
|
||||
:formName="formName"
|
||||
></indexDialog>
|
||||
</el-dialog>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
import indexDialog from "@/views/anno/anncmntDev/indexDialog";
|
||||
import {deletegg, list} from "@/api/anno/anncmntDev";
|
||||
import {
|
||||
getHead,executeFuc
|
||||
} from "@/utils/customConfig";
|
||||
|
||||
export default {
|
||||
name: "anncmntDev",
|
||||
data() {
|
||||
return {
|
||||
showSearch: true,
|
||||
filterQuery: {
|
||||
page: 1,
|
||||
limit: 10,
|
||||
},
|
||||
total: 0,
|
||||
loading: false,
|
||||
list: [],
|
||||
formName: 1,
|
||||
formMap: {
|
||||
1: "新增器械公告",
|
||||
2: "编辑器械公告",
|
||||
},
|
||||
inputQuery:{},
|
||||
orderMutiSetVisible: 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]);
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
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.getList();
|
||||
},
|
||||
onReset() {
|
||||
this.$router.push({
|
||||
path: "",
|
||||
});
|
||||
this.filterQuery = {
|
||||
page: 1,
|
||||
limit: 10,
|
||||
};
|
||||
this.getList();
|
||||
},
|
||||
hideSearch() {
|
||||
this.showSearch = !this.showSearch;
|
||||
},
|
||||
handleCurrentChange(val) {
|
||||
this.filterQuery.page = val.page;
|
||||
this.getList();
|
||||
},
|
||||
closeDialog(){
|
||||
this.orderMutiSetVisible = false;
|
||||
this.getList();
|
||||
},
|
||||
addOrderMuti(){
|
||||
this.inputQuery={
|
||||
|
||||
}
|
||||
this.formName=1;
|
||||
this.orderMutiSetVisible = true;
|
||||
},
|
||||
editDialog(_this,row){
|
||||
_this.formName=2;
|
||||
_this.inputQuery=row;
|
||||
_this.orderMutiSetVisible = true;
|
||||
},
|
||||
getList() {
|
||||
this.loading = true;
|
||||
list(this.filterQuery)
|
||||
.then((response) => {
|
||||
this.loading = false;
|
||||
this.list = response.data.list || [];
|
||||
this.total = response.data.total || 0;
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.list = [];
|
||||
this.total = 0;
|
||||
});
|
||||
},
|
||||
deleteDialog(_this,row) {
|
||||
deletegg(row)
|
||||
.then((response) => {
|
||||
if(response.code == 20000){
|
||||
_this.getList()
|
||||
}else{
|
||||
_this.$message.error(response.message);
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
_this.$message.error(response.message);
|
||||
});
|
||||
},
|
||||
executeFuc(row,type,clickFuc,value){
|
||||
return executeFuc(this,row,type,clickFuc,value);
|
||||
},
|
||||
executeEval(row,expression,defaultRet){
|
||||
if(expression){
|
||||
return eval(expression);
|
||||
}
|
||||
return defaultRet;
|
||||
}
|
||||
},
|
||||
components: {indexDialog},
|
||||
created() {
|
||||
getHead("anncmntDev","1").then((re) => {
|
||||
// 处理返回的数据
|
||||
this.tableObj = re.data;
|
||||
this.tableHeader = re.data.tableList;
|
||||
this.queryList = re.data.queryList;
|
||||
this.fromList = re.data.fromList;
|
||||
this.getList()
|
||||
});
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
@ -0,0 +1,368 @@
|
||||
<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-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-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 label="公告类型:" class="query-form-item">
|
||||
<el-select
|
||||
size="small"
|
||||
v-model="inputQuery.annType"
|
||||
style="width: 80%"
|
||||
placeholder="公告类型"
|
||||
>
|
||||
<el-option label="注销注册证公告" value="1"></el-option>
|
||||
<el-option label="暂停进口、经营和使用公告" value="2"></el-option>
|
||||
<el-option label="项目整改/停产整改公告" value="3"></el-option>
|
||||
<el-option label="注销生产许可证公告" value="3"></el-option>
|
||||
<el-option label="产品召回公告" value="3"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col class="el-col" type="flex">
|
||||
<el-form-item label="检查方式:" class="query-form-item">
|
||||
<el-select
|
||||
size="small"
|
||||
v-model="inputQuery.checkType"
|
||||
style="width: 80%"
|
||||
placeholder="检查方式"
|
||||
>
|
||||
<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 :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.publicCode"
|
||||
></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.publicName"
|
||||
></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.publicSubject"
|
||||
></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.publicTime"
|
||||
style="width: 80%"
|
||||
value-format="yyyy-MM-dd"
|
||||
type="date"
|
||||
placeholder="请输入发布时间"
|
||||
></el-date-picker>
|
||||
</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.publicTitle"
|
||||
></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.sourceName"
|
||||
></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.sourceUrl"
|
||||
></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"
|
||||
type="textarea"
|
||||
placeholder="请输入公告内容"
|
||||
v-model="inputQuery.annContent"
|
||||
></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"
|
||||
type="textarea"
|
||||
placeholder="请输入检查异常信息"
|
||||
v-model="inputQuery.errContent"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<div style='text-align: center; margin-bottom: 10px;margin-top: 18px ;'>
|
||||
<el-button @click="closeDialog">取消</el-button>
|
||||
<el-button type="primary" @click="submitInv">提交</el-button>
|
||||
</div>
|
||||
</el-card>
|
||||
</el-form>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
import {savegg} from "@/api/anno/anncmntDev";
|
||||
|
||||
export default {
|
||||
name: "indexDialog",
|
||||
props: {
|
||||
closeDialog: {
|
||||
type: Function,
|
||||
required: true,
|
||||
},
|
||||
formName: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
inputQuery: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
submitInv(){
|
||||
if(this.formName==1){
|
||||
savegg(this.inputQuery,"save").then((response) => {
|
||||
if(response.code == 20000){
|
||||
this.closeDialog();
|
||||
}else{
|
||||
this.$message.error(response.message);
|
||||
}
|
||||
|
||||
})
|
||||
.catch(() => {
|
||||
this.$message.error("添加失败");
|
||||
});
|
||||
}else{
|
||||
savegg(this.inputQuery,"edit").then((response) => {
|
||||
if(response.code == 20000){
|
||||
this.closeDialog();
|
||||
}else{
|
||||
this.$message.error(response.message);
|
||||
}
|
||||
|
||||
})
|
||||
.catch(() => {
|
||||
this.$message.error("添加失败");
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
components: {},
|
||||
created() {
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
Loading…
Reference in New Issue