Compare commits

..

No commits in common. "4ade4b79a9d818955ee1afc9238a5bbb37111a8c" and "2859ec78c4a1225469d3730f96fd89784ad381bd" have entirely different histories.

10 changed files with 152 additions and 152 deletions

View File

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

View File

@ -13,7 +13,6 @@ t.brand.mini = 'qms'
t.public = {} t.public = {}
t.public.operation = '操作' t.public.operation = '操作'
t.public.activate = '启动'
t.add = '新增' t.add = '新增'
t.delete = '删除' t.delete = '删除'
@ -46,10 +45,7 @@ t.parameter = '台差参数'
t.configuration = '配置' t.configuration = '配置'
t.uploadFile = '上传' t.uploadFile = '上传'
t.detail = '查看详情' t.detail = '查看详情'
t.preview = '预览'
t.edit = '编辑'
t.finished = '已完成'
t.implementation = '实施中'
@ -57,11 +53,9 @@ t.implementation = '实施中'
t.prompt = {} t.prompt = {}
t.prompt.title = '提示' t.prompt.title = '提示'
t.prompt.info = '确定进行[{handle}]操作?' t.prompt.info = '确定进行[{handle}]操作?'
t.prompt.delete = '是否对[{object}]进行删除操作?'
t.prompt.success = '操作成功' t.prompt.success = '操作成功'
t.prompt.failed = '操作失败' t.prompt.failed = '操作失败'
t.prompt.deleteBatch = '请选择删除项' t.prompt.deleteBatch = '请选择删除项'
t.prompt.chooseGroup = '请选择要求分组'
t.validate = {} t.validate = {}
t.validate.required = '必填项不能为空' t.validate.required = '必填项不能为空'
@ -352,7 +346,7 @@ t.quality.judgmentMark = '判断标识'
t.quality.disposalMethodStatus = '状态' t.quality.disposalMethodStatus = '状态'
t.quality.inspectionPositionNumber = '序号' t.quality.inspectionPositionNumber = '序号'
t.quality.productName = '检验产品' t.quality.productName = '检验产品'
t.quality.suppliername = '供应商名称' t.quality.supplierName = '供应商名称'
t.quality.transferOutName = '转出' t.quality.transferOutName = '转出'
t.quality.transferInName = '转入' t.quality.transferInName = '转入'
t.quality.dataSources = '数据来源' t.quality.dataSources = '数据来源'
@ -360,8 +354,6 @@ t.quality.remark = '备注'
t.quality.userName = '创建人' t.quality.userName = '创建人'
t.quality.inspectionStage = '检验阶段' t.quality.inspectionStage = '检验阶段'
t.quality.supplierName = '供应商' t.quality.supplierName = '供应商'
t.quality.supplierList = '供应商列表'
t.quality.principal = '负责人列表'
t.quality.normalToRelaxed = '正常转放宽' t.quality.normalToRelaxed = '正常转放宽'
t.quality.normalToTightened = '正常转加严' t.quality.normalToTightened = '正常转加严'
t.quality.relaxedToNormal = '放宽转正常' t.quality.relaxedToNormal = '放宽转正常'
@ -477,17 +469,13 @@ t.supplier.projectName = '评估项目'
t.supplier.projectTypeName = '类别' t.supplier.projectTypeName = '类别'
t.supplier.requirement = '要求' t.supplier.requirement = '要求'
t.supplier.statisticalValue = '是否统计值' t.supplier.statisticalValue = '是否统计值'
t.supplier.evaluationTemplateName = '评估模板'
t.supplier.lastStartTime = '上次启动时间段' t.supplier.lastStartTime = '上次启动时间段'
t.supplier.lastStartEvaluationPeriod = '上次启动评估时间段' t.supplier.lastStartEvaluationPeriod = '上次启动评估时间段'
t.supplier.estimatedNextStartTime = '预计下次启动时间' t.supplier.estimatedNextStartTime = '预计下次启动时间'
t.supplier.offline = '下限' t.supplier.offline = '下限'
t.supplier.online = '上限' t.supplier.online = '上限'
t.supplier.supplierStatus = '供应商状态' 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 * @Author: zhp
* @Date: 2023-04-17 14:23:17 * @Date: 2023-04-17 14:23:17
* @LastEditTime: 2023-08-24 09:28:35 * @LastEditTime: 2023-07-17 15:26:25
* @LastEditors: DY * @LastEditors: DY
* @Description: * @Description:
--> -->
@ -13,7 +13,7 @@
<SearchBar :formConfigs="formConfig" ref="ruleForm" @headBtnClick="buttonClick"> <SearchBar :formConfigs="formConfig" ref="ruleForm" @headBtnClick="buttonClick">
</SearchBar> </SearchBar>
<base-table id="palletTable" :table-props="tableProps" :page="listQuery.page" ref="palletTable1" :limit="listQuery.limit" :table-data="tableData"> <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" /> @clickBtn="handleClick" />
</base-table> </base-table>
<pagination :limit.sync="listQuery.limit" :page.sync="listQuery.page" :total="listQuery.total" <pagination :limit.sync="listQuery.limit" :page.sync="listQuery.page" :total="listQuery.total"
@ -173,7 +173,7 @@ export default {
// this.searchOrUpdateVisible = false; // this.searchOrUpdateVisible = false;
// }, // },
conditionSearch() { conditionSearch() {
this.searchOrEditTitle = this.$t('search'); this.searchOrEditTitle = "搜索";
this.searchOrUpdateVisible = true; this.searchOrUpdateVisible = true;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.searchOrUpdate.init(); this.$refs.searchOrUpdate.init();
@ -226,19 +226,16 @@ export default {
}, },
handleClick(val) { handleClick(val) {
if (val.type === "delete") { if (val.type === "delete") {
this.$confirm( this.$confirm(`确定对[名称=${val.data.customerTypeName}]进行删除操作?`, "提示", {
this.$t("prompt.delete", { object: val.data.customerTypeName }), confirmButtonText: "确定",
this.$t("prompt.title"), cancelButtonText: "取消",
{ type: "warning",
confirmButtonText: this.$t("confirm"),
cancelButtonText: this.$t("cancel"),
type: "warning"
}) })
.then(() => { .then(() => {
this.$http.delete(this.urlOptions.deleteURL, { data: [val.data.id] }).then(({ data }) => { this.$http.delete(this.urlOptions.deleteURL, { data: [val.data.id] }).then(({ data }) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.$message({ this.$message({
message: this.$t("prompt.success"), message: "操作成功",
type: "success", type: "success",
duration: 1500, duration: 1500,
onClose: () => { onClose: () => {
@ -285,7 +282,7 @@ export default {
this.getDataList(); this.getDataList();
break; break;
case "add": case "add":
this.addOrEditTitle = this.$t('add') this.addOrEditTitle = '新增'
this.addOrUpdateVisible = true this.addOrUpdateVisible = true
this.addOrUpdateHandle() this.addOrUpdateHandle()
break; break;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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