Compare commits

..

No commits in common. "master" and "zhp" have entirely different histories.
master ... zhp

10 changed files with 152 additions and 152 deletions

View File

@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2022-08-22 14:57:50
* @LastEditors: DY
* @LastEditTime: 2023-08-01 14:42:59
* @LastEditTime: 2023-07-21 16:45:57
* @Description:
-->
<!DOCTYPE html>
@ -40,7 +40,6 @@
<script>
// window.SITE_CONFIG['apiURL'] = 'http://192.168.1.76:8080/ym-pass';
window.SITE_CONFIG['apiURL'] = 'http://192.168.1.23:8080/';
// window.SITE_CONFIG['apiURL'] = 'http://192.168.0.31:8080/';
</script>
<% } %>
<!-- 集成测试环境 -->

View File

@ -13,7 +13,6 @@ t.brand.mini = 'qms'
t.public = {}
t.public.operation = '操作'
t.public.activate = '启动'
t.add = '新增'
t.delete = '删除'
@ -46,10 +45,7 @@ t.parameter = '台差参数'
t.configuration = '配置'
t.uploadFile = '上传'
t.detail = '查看详情'
t.preview = '预览'
t.edit = '编辑'
t.finished = '已完成'
t.implementation = '实施中'
@ -57,11 +53,9 @@ t.implementation = '实施中'
t.prompt = {}
t.prompt.title = '提示'
t.prompt.info = '确定进行[{handle}]操作?'
t.prompt.delete = '是否对[{object}]进行删除操作?'
t.prompt.success = '操作成功'
t.prompt.failed = '操作失败'
t.prompt.deleteBatch = '请选择删除项'
t.prompt.chooseGroup = '请选择要求分组'
t.validate = {}
t.validate.required = '必填项不能为空'
@ -352,7 +346,7 @@ t.quality.judgmentMark = '判断标识'
t.quality.disposalMethodStatus = '状态'
t.quality.inspectionPositionNumber = '序号'
t.quality.productName = '检验产品'
t.quality.suppliername = '供应商名称'
t.quality.supplierName = '供应商名称'
t.quality.transferOutName = '转出'
t.quality.transferInName = '转入'
t.quality.dataSources = '数据来源'
@ -360,8 +354,6 @@ t.quality.remark = '备注'
t.quality.userName = '创建人'
t.quality.inspectionStage = '检验阶段'
t.quality.supplierName = '供应商'
t.quality.supplierList = '供应商列表'
t.quality.principal = '负责人列表'
t.quality.normalToRelaxed = '正常转放宽'
t.quality.normalToTightened = '正常转加严'
t.quality.relaxedToNormal = '放宽转正常'
@ -477,17 +469,13 @@ t.supplier.projectName = '评估项目'
t.supplier.projectTypeName = '类别'
t.supplier.requirement = '要求'
t.supplier.statisticalValue = '是否统计值'
t.supplier.evaluationTemplateName = '评估模板'
t.supplier.lastStartTime = '上次启动时间段'
t.supplier.lastStartEvaluationPeriod = '上次启动评估时间段'
t.supplier.estimatedNextStartTime = '预计下次启动时间'
t.supplier.offline = '下限'
t.supplier.online = '上限'
t.supplier.supplierStatus = '供应商状态'
t.supplier.year = '年度'
t.supplier.quarter = '季度'
t.supplier.month = '月度'
t.supplier.materiel = '物料'
t.supplier.requiredGrouping = '要求分组'

View File

@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2023-04-17 14:23:17
* @LastEditTime: 2023-08-24 09:28:35
* @LastEditTime: 2023-07-17 15:26:25
* @LastEditors: DY
* @Description:
-->
@ -13,7 +13,7 @@
<SearchBar :formConfigs="formConfig" ref="ruleForm" @headBtnClick="buttonClick">
</SearchBar>
<base-table id="palletTable" :table-props="tableProps" :page="listQuery.page" ref="palletTable1" :limit="listQuery.limit" :table-data="tableData">
<method-btn v-if="tableBtn.length" slot="handleBtn" :width="100" :label="$t('handle')" :method-list="tableBtn"
<method-btn v-if="tableBtn.length" slot="handleBtn" :width="100" label="操作" :method-list="tableBtn"
@clickBtn="handleClick" />
</base-table>
<pagination :limit.sync="listQuery.limit" :page.sync="listQuery.page" :total="listQuery.total"
@ -173,7 +173,7 @@ export default {
// this.searchOrUpdateVisible = false;
// },
conditionSearch() {
this.searchOrEditTitle = this.$t('search');
this.searchOrEditTitle = "搜索";
this.searchOrUpdateVisible = true;
this.$nextTick(() => {
this.$refs.searchOrUpdate.init();
@ -226,19 +226,16 @@ export default {
},
handleClick(val) {
if (val.type === "delete") {
this.$confirm(
this.$t("prompt.delete", { object: val.data.customerTypeName }),
this.$t("prompt.title"),
{
confirmButtonText: this.$t("confirm"),
cancelButtonText: this.$t("cancel"),
type: "warning"
this.$confirm(`确定对[名称=${val.data.customerTypeName}]进行删除操作?`, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$http.delete(this.urlOptions.deleteURL, { data: [val.data.id] }).then(({ data }) => {
if (data && data.code === 0) {
this.$message({
message: this.$t("prompt.success"),
message: "操作成功",
type: "success",
duration: 1500,
onClose: () => {
@ -285,7 +282,7 @@ export default {
this.getDataList();
break;
case "add":
this.addOrEditTitle = this.$t('add')
this.addOrEditTitle = '新增'
this.addOrUpdateVisible = true
this.addOrUpdateHandle()
break;

View File

@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2023-04-17 14:23:17
* @LastEditTime: 2023-08-17 15:06:48
* @LastEditTime: 2023-07-12 14:17:24
* @LastEditors: DY
* @Description: 标签设定
-->
@ -114,20 +114,19 @@ export default {
},
editHandle(label) {
label.disabled = false
console.log('nihc', label)
},
handleClose(tag) {
this.$confirm(
this.$t("prompt.delete", { object: tag.name }),
this.$t("prompt.title"),
{
confirmButtonText: this.$t("confirm"),
cancelButtonText: this.$t("cancel"),
type: "warning"
console.log('你好', tag)
this.$confirm(`确定对[名称=${tag.name}]进行删除操作?`, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}).then(()=> {
this.$http.delete(this.urlOptions.deleteLabelInfoURL, { data: [tag.id] }).then(({ data }) => {
if (data && data.code === 0) {
this.$message({
message: this.$t("prompt.success"),
message: "操作成功",
type: "success",
duration: 1500,
onClose: () => {
@ -150,19 +149,16 @@ export default {
// });
// },
deleteHandle(id, name) {
this.$confirm(
this.$t("prompt.delete", { object: name }),
this.$t("prompt.title"),
{
confirmButtonText: this.$t("confirm"),
cancelButtonText: this.$t("cancel"),
type: "warning"
this.$confirm(`确定对[名称=${name}]进行删除操作?`, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$http.delete(this.urlOptions.deleteURL, { data: [id] }).then(({ data }) => {
if (data && data.code === 0) {
this.$message({
message: this.$t("prompt.success"),
message: "操作成功",
type: "success",
duration: 1500,
onClose: () => {
@ -283,6 +279,38 @@ export default {
// console.log(11111);
// this.conditionSearchSubmit();
},
handleClick(val) {
if (val.type === "delete") {
this.$confirm(`确定对[名称=${val.data.customerTypeName}]进行删除操作?`, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$http.delete(this.urlOptions.deleteURL, { data: [val.data.id] }).then(({ data }) => {
if (data && data.code === 0) {
this.$message({
message: "操作成功",
type: "success",
duration: 1500,
onClose: () => {
this.getDataList();
},
});
} else {
this.$message.error(data.msg);
}
});
})
.catch(() => { });
} else if (val.type === 'edit') {
this.addOrEditTitle = '修改'
this.addOrUpdateVisible = true;
this.$nextTick(() => {
this.$refs.addOrUpdate.init(val.data.id);
});
}
},
buttonClick(val) {
console.log(val)
switch (val.btnName) {

View File

@ -1,7 +1,7 @@
<!--
* @Author: Do not edit
* @Date: 2023-06-20 11:16:51
* @LastEditTime: 2023-08-22 11:00:34
* @LastEditTime: 2023-07-14 16:31:39
* @LastEditors: DY
* @Description: 评估计划
-->
@ -9,11 +9,11 @@
<el-card shadow="never" class="aui-card--fill">
<div>
<el-form :inline="true" :model="formInline" class="demo-form-inline">
<el-form-item :label="$t('quality.suppliername')">
<el-input v-model="formInline.supplierName" :placeholder="$t('quality.suppliername')"></el-input>
<el-form-item label="供应商名称">
<el-input v-model="formInline.supplierName" placeholder="供应商"></el-input>
</el-form-item>
<el-form-item :label="$t('supplier.evaluationTemplateName')">
<el-select v-model="formInline.evaluationTemplateId" filterable clearable :placeholder="$t('supplier.evaluationTemplateName')">
<el-form-item label="评估模板">
<el-select v-model="formInline.evaluationTemplateId" filterable clearable placeholder="评估模板">
<el-option
v-for="item in modalOptions"
:key="item.id"
@ -22,8 +22,8 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('supplier.evaluationType')">
<el-select v-model="formInline.evaluationType" clearable :placeholder="$t('supplier.evaluationType')">
<el-form-item label="评估类型">
<el-select v-model="formInline.evaluationType" clearable placeholder="评估类型">
<el-option
v-for="item in typeOptions"
:key="item.id"
@ -33,7 +33,7 @@
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSubmit">{{ $t('query') }}</el-button>
<el-button type="primary" @click="onSubmit">查询</el-button>
</el-form-item>
</el-form>
</div>
@ -45,60 +45,60 @@
<el-table-column type="expand">
<template slot-scope="props">
<el-form label-position="left" inline class="demo-table-expand">
<el-form-item :label="$t('quality.supplierList')">
<el-form-item label="供应商列表">
<el-tag type="success" v-for="(item, index) in props.row.list" :key="index">{{ item.supplierName }}</el-tag>
</el-form-item>
<br>
<el-form-item :label="$t('quality.principal')">
<el-form-item label="负责人列表">
<el-tag>{{ props.row.evaluatorName }}</el-tag>
</el-form-item>
</el-form>
</template>
</el-table-column>
<el-table-column
:label="$t('supplier.evaluationType')"
label="评估类型"
prop="evaluationType">
<template slot-scope="slot">
<el-tag :type="slot.row.evaluationType === 0 ? 'info' : slot.row.evaluationType === 1 ? 'success' : ''" effect="dark">{{ slot.row.evaluationType === 0 ? $t('supplier.year') : slot.row.evaluationType === 1 ? $t('supplier.quarter') : $t('supplier.month') }}</el-tag>
<el-tag :type="slot.row.evaluationType === 0 ? 'info' : slot.row.evaluationType === 1 ? 'success' : ''" effect="dark">{{ slot.row.evaluationType === 0 ? '年度' : slot.row.evaluationType === 1 ? '季度' : '月度' }}</el-tag>
</template>
</el-table-column>
<el-table-column
:label="$t('quality.title')"
label="标题"
prop="title">
</el-table-column>
<el-table-column
:label="$t('supplier.evaluationTemplateName')"
label="评估模板"
prop="evaluationTemplateName">
<template slot-scope="slot">
<el-tag type="danger" effect="plain">{{ slot.row.evaluationTemplateName }}</el-tag>
</template>
</el-table-column>
<el-table-column
:label="$t('supplier.description')"
label="说明"
prop="description">
</el-table-column>
<el-table-column
:label="$t('supplier.lastStartTime')"
label="上次启动时间"
prop="lastStartTime">
</el-table-column>
<el-table-column
:label="$t('supplier.lastStartEvaluationPeriod')"
label="上次启动评估时间段"
prop="lastStartEvaluationPeriod">
</el-table-column>
<el-table-column
:label="$t('supplier.estimatedNextStartTime')"
label="预计下次启动时间"
prop="estimatedNextStartTime">
</el-table-column>
<el-table-column
:label="$t('supplier.reminder')"
label="提醒人"
prop="reminder">
</el-table-column>
<el-table-column
:label="$t('public.operation')"
label="操作"
width="160"
prop="desc">
<template slot-scope="slot">
<el-button type="text" @click="start(slot.row)">{{ $('public.activate') }}</el-button>
<el-button type="text" @click="start(slot.row)">启动</el-button>
<el-button type="text" @click="editPlan(slot.row)">edit</el-button>
<el-button type="text" @click="deletePlan(slot.row)" style="color: red">delete</el-button>
</template>
@ -118,7 +118,6 @@
<script>
import addPlan from './components/addPlan.vue'
import startPlan from './components/startPlan.vue'
import i18n from "@/i18n"
export default {
components: { addPlan, startPlan },
@ -133,15 +132,15 @@ export default {
addtModelVisible: false,
typeOptions: [
{
name: i18n.t('supplier.year'),
name: '年度',
id: 0
},
{
name: i18n.t('supplier.quarter'),
name: '季度',
id: 1
},
{
name: i18n.t('supplier.month'),
name: '月度',
id: 2
}
],
@ -188,19 +187,16 @@ export default {
});
},
deletePlan(val) {
this.$confirm(
this.$t("prompt.delete", { object: val.title }),
this.$t("prompt.title"),
{
confirmButtonText: this.$t("confirm"),
cancelButtonText: this.$t("cancel"),
type: "warning"
this.$confirm(`确定对[名称=${val.title}]进行删除操作?`, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$http.delete(this.urlOptions.deleteURL, { data: [val.id] }).then(({ data }) => {
if (data && data.code === 0) {
this.$message({
message: this.$t("prompt.success"),
message: "操作成功",
type: "success",
duration: 1500,
onClose: () => {

View File

@ -1,7 +1,7 @@
<!--
* @Author: Do not edit
* @Date: 2023-06-19 10:38:41
* @LastEditTime: 2023-08-21 15:26:45
* @LastEditTime: 2023-07-20 16:14:02
* @LastEditors: DY
* @Description: 评估模板
-->
@ -21,21 +21,21 @@
<div :class="item.current === 1 ? 'activeCard' : 'normalCard'" @mouseenter="enterDiv(item)" @mouseleave="leaveDiv(item)" @click="seeeValuationList(item.id)">
<svg v-if="item.current" class="icon-svg" aria-hidden="true"><use xlink:href="#icon-look"></use></svg>
<svg v-else class="icon-svg" aria-hidden="true"><use xlink:href="#icon-look1"></use></svg>
<p style="font-size: 14px">{{ $t("preview") }}</p>
<p style="font-size: 14px">预览</p>
</div>
</el-col>
<el-col :span="8">
<div :class="item.current === 1 ? 'activeCard' : 'normalCard'" @mouseenter="enterDiv(item)" @mouseleave="leaveDiv(item)" @click="editEvaluation(item)">
<svg v-if="item.current" class="icon-svg" aria-hidden="true"><use xlink:href="#icon-edit0"></use></svg>
<svg v-else class="icon-svg" aria-hidden="true"><use xlink:href="#icon-edit1"></use></svg>
<p style="font-size: 14px">{{ $t("edit") }}</p>
<p style="font-size: 14px">编辑</p>
</div>
</el-col>
<el-col :span="8">
<div :class="item.current === 1 ? 'activeDelCard' : 'normalCard'" @mouseenter="enterDiv(item)" @mouseleave="leaveDiv(item)" @click="deleteEvaluation(item.id, item.name)">
<svg v-if="item.current" class="icon-svg" aria-hidden="true"><use xlink:href="#icon-del1"></use></svg>
<svg v-else class="icon-svg" aria-hidden="true"><use xlink:href="#icon-del"></use></svg>
<p style="font-size: 14px">{{ $t("delete") }}</p>
<p style="font-size: 14px">删除</p>
</div>
</el-col>
</el-row>
@ -50,7 +50,7 @@
<evaluation-template-add @refreshDataList="getDataList" :show="editModelVisible" @info="getInfo"></evaluation-template-add>
</div> -->
<el-dialog
:title="$t('add')"
title="新增模板"
:visible.sync="editModelVisible"
:close-on-click-modal="false"
width="70%"
@ -58,7 +58,7 @@
<evaluation-template-add ref="addTemplate" @refreshDataList="getDataList" :show="editModelVisible" @info="getInfo"></evaluation-template-add>
</el-dialog>
<el-dialog
:title="$t('preview')"
title="预览"
:visible.sync="dialogVisible"
:close-on-click-modal="false"
width="40%"
@ -104,6 +104,7 @@ export default ({
},
tableProps,
projectsList: [],
addOrEditTitle: '新增模板',
current: 0,
addTemplateVisible: false,
activeStep: 0,
@ -118,6 +119,7 @@ export default ({
},
methods: {
editEvaluation(obj) {
console.log('编辑', obj.id)
this.templateId = obj.id
this.editModelVisible = true
this.$nextTick(() => {
@ -131,19 +133,16 @@ export default ({
obj.current = 1
},
deleteEvaluation(id, name) {
this.$confirm(
this.$t("prompt.delete", { object: name }),
this.$t("prompt.title"),
{
confirmButtonText: this.$t("confirm"),
cancelButtonText: this.$t("cancel"),
type: "warning"
this.$confirm(`确定对[名称=${name}]进行删除操作?`, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$http.delete(this.urlOptions.deleteURL, { data: [id] }).then(({ data }) => {
if (data && data.code === 0) {
this.$message({
message: this.$t("prompt.success"),
message: "操作成功",
type: "success",
duration: 1500,
onClose: () => {
@ -161,13 +160,14 @@ export default ({
this.editModelVisible = value
},
handleClose(done) {
this.$confirm(this.$t('prompt.info', { 'handle': this.$t('close') }))
this.$confirm('确认关闭?')
.then(_ => {
done();
})
.catch(_ => {});
},
seeeValuationList(id) {
console.log('啊啊啊啊', id)
this.dialogVisible = true
this.$http
.get(this.urlOptions.getProjectTypeURL, {

View File

@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2023-04-17 14:23:17
* @LastEditTime: 2023-08-22 15:05:00
* @LastEditTime: 2023-07-14 15:56:32
* @LastEditors: DY
* @Description:
-->
@ -18,7 +18,7 @@
<base-table id="palletTable" :table-props="tableProps" :page="listQuery.page" ref="palletTable1"
@emitFun="inputChange" :limit="listQuery.limit"
:table-data="tableData" >
<method-btn v-if="tableBtn.length" slot="handleBtn" :width="100" :label="$t('public.operation')" :method-list="tableBtn"
<method-btn v-if="tableBtn.length" slot="handleBtn" :width="100" label="操作" :method-list="tableBtn"
@clickBtn="handleClick" />
</base-table>
<pagination :limit.sync="listQuery.limit" :page.sync="listQuery.page" :total="listQuery.total"
@ -296,19 +296,16 @@ export default {
},
handleClick(val) {
if (val.type === "delete") {
this.$confirm(
this.$t("prompt.delete", { object: val.data.customerTypeName }),
this.$t("prompt.title"),
{
confirmButtonText: this.$t("confirm"),
cancelButtonText: this.$t("cancel"),
type: "warning"
this.$confirm(`确定对[名称=${val.data.customerTypeName}]进行删除操作?`, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$http.delete(this.urlOptions.deleteURL, { data: [val.data.id] }).then(({ data }) => {
if (data && data.code === 0) {
this.$message({
message: this.$t("prompt.success"),
message: "操作成功",
type: "success",
duration: 1500,
onClose: () => {

View File

@ -1,7 +1,7 @@
<!--
* @Author: Do not edit
* @Date: 2023-06-20 11:16:51
* @LastEditTime: 2023-08-23 15:10:48
* @LastEditTime: 2023-07-21 16:37:22
* @LastEditors: DY
* @Description: 项目清单
-->
@ -9,11 +9,11 @@
<el-card shadow="never" class="aui-card--fill">
<div>
<el-form :inline="true" :model="formInline" class="demo-form-inline">
<el-form-item :label="$t('supplier.title')">
<el-input v-model="formInline.title" :placeholder="$t('supplier.title')"></el-input>
<el-form-item label="标题">
<el-input v-model="formInline.title" placeholder="标题"></el-input>
</el-form-item>
<el-form-item :label="$t('supplier.materiel')">
<el-select v-model="formInline.productId" filterable clearable :placeholder="$t('supplier.materiel')">
<el-form-item label="物料">
<el-select v-model="formInline.productId" filterable clearable placeholder="物料">
<el-option
v-for="item in productList"
:key="item.id"
@ -22,8 +22,8 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('quality.supplierName')">
<el-select v-model="formInline.supplierId" filterable clearable :placeholder="$t('quality.supplierName')">
<el-form-item label="供应商">
<el-select v-model="formInline.supplierId" filterable clearable placeholder="供应商">
<el-option
v-for="item in supplierList"
:key="item.id"
@ -32,25 +32,25 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('supplier.status')">
<el-form-item label="状态">
<el-radio-group v-model="formInline.status">
<el-radio-button :label="2">{{ $t('all') }}</el-radio-button>
<el-radio-button :label="1">{{ $t('finished') }}</el-radio-button>
<el-radio-button :label="0">{{ $t('implementation') }}</el-radio-button>
<el-radio-button :label="2">全部</el-radio-button>
<el-radio-button :label="1">已完成</el-radio-button>
<el-radio-button :label="0">实施中</el-radio-button>
</el-radio-group>
</el-form-item>
<el-form-item :label="$t('time')">
<el-form-item label="时间">
<el-date-picker
v-model="timeSlot"
type="daterange"
value-format="yyyy-MM-dd HH:mm:ss"
:range-separator="$t('gage.to')"
:start-placeholder="$t('gage.startTime')"
:end-placeholder="$t('gage.endTime')">
range-separator=""
start-placeholder="开始日期"
end-placeholder="结束日期">
</el-date-picker>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSubmit">{{ $t('query') }}</el-button>
<el-button type="primary" @click="onSubmit">查询</el-button>
</el-form-item>
</el-form>
</div>
@ -63,8 +63,8 @@
</div>
<div class="buttonDiv">
<el-row :gutter="0">
<el-col :span="12"><div class="bottom" @click="editProject(project)">{{ $t('edit') }}</div></el-col>
<el-col :span="12"><div class="bottom" @click="deletePro(project)">{{ $t('delete') }}</div></el-col>
<el-col :span="12"><div class="bottom" @click="editProject(project)">编辑</div></el-col>
<el-col :span="12"><div class="bottom" @click="deletePro(project)">删除</div></el-col>
</el-row>
</div>
</div>
@ -116,19 +116,16 @@ export default {
},
methods: {
deletePro(val) {
this.$confirm(
this.$t("prompt.delete", { object: val.title }),
this.$t("prompt.title"),
{
confirmButtonText: this.$t("confirm"),
cancelButtonText: this.$t("cancel"),
type: "warning"
this.$confirm(`确定对[名称=${val.title}]进行删除操作?`, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$http.delete(this.urlOptions.deleteURL, { data: [val.id] }).then(({ data }) => {
if (data && data.code === 0) {
this.$message({
message: this.$t("prompt.success"),
message: "操作成功",
type: "success",
duration: 1500,
onClose: () => {

View File

@ -1,7 +1,7 @@
<!--
* @Author: Do not edit
* @Date: 2023-06-20 11:16:51
* @LastEditTime: 2023-08-24 10:58:10
* @LastEditTime: 2023-07-21 15:18:23
* @LastEditors: DY
* @Description: 要求清单
-->
@ -10,7 +10,7 @@
<div style="padding: 20px 30px">
<el-row :gutter="20">
<el-col :span="6">
<h2>{{ $t('supplier.requiredGrouping') }}</h2>
<h2>要求分组</h2>
<div v-for="(item, index) in groupList" :key="index">
<div :class="item.actived ? 'activedDiv' : 'group'" @click="searchByGroup(item)">{{ item.name }}</div>
</div>
@ -18,10 +18,10 @@
<el-col :span="18">
<el-form :inline="true" :model="formInline" class="demo-form-inline">
<el-form-item>
<el-input v-model="formInline.requirementName" :placeholder="$t('supplier.title')"></el-input>
<el-input v-model="formInline.requirementName" placeholder="标题"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSubmit">{{ $t('query') }}</el-button>
<el-button type="primary" @click="onSubmit">查询</el-button>
</el-form-item>
</el-form>
<div class="bigDiv">
@ -45,14 +45,14 @@
<div v-if="addtModelVisible" style="height: 400px; width: 40%; margin: 20px auto; border: 1px solid grey; padding: 20px">
<h2>要求编辑</h2>
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="80px" class="demo-ruleForm">
<el-form-item :label="$t('supplier.title')" prop="title">
<el-form-item label="标题" prop="title">
<el-input v-model="ruleForm.title"></el-input>
</el-form-item>
<el-form-item :label="$t('gage.description')" prop="description">
<el-form-item label="描述" prop="description">
<el-input type="textarea" v-model="ruleForm.description"></el-input>
</el-form-item>
<el-form-item :label="$t('researchquality.requirementListGroupId')" prop="requirementListGroupId">
<el-select v-model="ruleForm.requirementListGroupId" :placeholder="$t('choose')">
<el-form-item label="所属分组" prop="requirementListGroupId">
<el-select v-model="ruleForm.requirementListGroupId" placeholder="请选择">
<el-option
v-for="item in groupList"
:key="item.id"
@ -63,8 +63,8 @@
</el-form-item>
<el-form-item>
<!-- <el-button type="primary" @click="submitForm('ruleForm')">保存</el-button> -->
<el-button @click="dialogVisible = false">{{ $t('cancel') }}</el-button>
<el-button type="primary" @click="saveRequirement">{{ $t('save') }}</el-button>
<el-button @click="dialogVisible = false"> </el-button>
<el-button type="primary" @click="saveRequirement"> </el-button>
</el-form-item>
</el-form>
</div>
@ -114,19 +114,16 @@ export default {
this.addtModelVisible = true
},
deleteRequire(id, name) {
this.$confirm(
this.$t("prompt.delete", { object: name }),
this.$t("prompt.title"),
{
confirmButtonText: this.$t("confirm"),
cancelButtonText: this.$t("cancel"),
type: "warning"
this.$confirm(`确定对[标题=${name}]进行删除操作?`, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$http.delete(this.urlOptions.deleteURL, { data: [id] }).then(({ data }) => {
if (data && data.code === 0) {
this.$message({
message: this.$t("prompt.success"),
message: "操作成功",
type: "success",
duration: 1500,
onClose: () => {
@ -167,6 +164,7 @@ export default {
});
},
searchByGroup(group) {
console.log('查询', group)
// this.formInline.groupId = group.id
group.actived = !group.actived
if (group.actived === true) {
@ -209,7 +207,7 @@ export default {
onSubmit() {
console.log('submit!');
if (this.formInline.groupId === '') {
this.$message.error(this.$t("prompt.chooseGroup"))
this.$message.error('请选择要求分组')
} else {
this.$http
.get(this.urlOptions.getRequirementListURL, {

View File

@ -1,8 +1,8 @@
<!--
* @Author: zwq
* @Date: 2023-01-04 10:29:40
* @LastEditors: DY
* @LastEditTime: 2023-08-01 15:14:29
* @LastEditors: zwq
* @LastEditTime: 2023-01-05 14:32:59
* @Description:
-->
<template>