Compare commits
No commits in common. "f002123cf57d3cf29884401bc9e9343ab4b076cc" and "9702f23d55949c8109fade56472909e4a32b74db" have entirely different histories.
f002123cf5
...
9702f23d55
@ -15,7 +15,7 @@
|
|||||||
"axios": "^0.19.2",
|
"axios": "^0.19.2",
|
||||||
"babel-eslint": "^8.0.1",
|
"babel-eslint": "^8.0.1",
|
||||||
"babel-plugin-component": "^1.1.1",
|
"babel-plugin-component": "^1.1.1",
|
||||||
"code-brick-zj": "1.0.2",
|
"code-brick-zj": "0.0.7",
|
||||||
"core-js": "^3.6.5",
|
"core-js": "^3.6.5",
|
||||||
"echarts": "^5.4.2",
|
"echarts": "^5.4.2",
|
||||||
"element-theme": "^2.0.1",
|
"element-theme": "^2.0.1",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2022-08-22 14:57:50
|
* @Date: 2022-08-22 14:57:50
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @LastEditTime: 2023-07-17 10:36:32
|
* @LastEditTime: 2023-07-11 10:23:31
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
@ -18,10 +18,6 @@ const table = {
|
|||||||
1: '需要审批',
|
1: '需要审批',
|
||||||
0: '不需要审批',
|
0: '不需要审批',
|
||||||
},
|
},
|
||||||
gradeFinish: {
|
|
||||||
1: '已打分',
|
|
||||||
0: '未打分',
|
|
||||||
},
|
|
||||||
step: {
|
step: {
|
||||||
0: 'D0',
|
0: 'D0',
|
||||||
1: 'D1',
|
1: 'D1',
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
/*
|
|
||||||
* @Date: 2020-12-29 16:49:28
|
|
||||||
* @LastEditors: zhp
|
|
||||||
* @LastEditTime: 2023-07-17 09:36:52
|
|
||||||
* @FilePath: \basic-admin\src\filters\DataDict\index.js
|
|
||||||
* @Description: 部分常量的数据字典定义
|
|
||||||
*/
|
|
||||||
import i18n from "@/i18n"
|
|
||||||
const table = {
|
|
||||||
upload: {
|
|
||||||
0: '未上传',
|
|
||||||
1:' 已上传',
|
|
||||||
},
|
|
||||||
VerifyType: {
|
|
||||||
0: i18n.t('gage.insideVerify'),
|
|
||||||
1: i18n.t('gage.outsideVerify')
|
|
||||||
},
|
|
||||||
judgmentResult: {
|
|
||||||
0: '未判定 ',
|
|
||||||
1: '合格',
|
|
||||||
2: '不合格'
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
export default function (dictTable) {
|
|
||||||
return function (val) {
|
|
||||||
return table?.[dictTable]?.[val]
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* @Date: 2020-12-14 09:07:03
|
* @Date: 2020-12-14 09:07:03
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @LastEditTime: 2023-07-17 14:34:42
|
* @LastEditTime: 2023-04-18 15:14:26
|
||||||
* @FilePath: \basic-admin\src\filters\index.js
|
* @FilePath: \basic-admin\src\filters\index.js
|
||||||
* @Description: 过滤器定义、多语言过滤器修改
|
* @Description: 过滤器定义、多语言过滤器修改
|
||||||
*/
|
*/
|
||||||
@ -146,22 +146,6 @@ export function handleLimit(string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function handleProductType(Array) {
|
|
||||||
let arr = []
|
|
||||||
Array.forEach(ele => {
|
|
||||||
arr.push(ele.productTypeName)
|
|
||||||
})
|
|
||||||
return arr.join(',')
|
|
||||||
}
|
|
||||||
|
|
||||||
export function handleProcess(Array) {
|
|
||||||
let arr = []
|
|
||||||
Array.forEach(ele => {
|
|
||||||
arr.push(ele.processName)
|
|
||||||
})
|
|
||||||
return arr.join(',')
|
|
||||||
}
|
|
||||||
|
|
||||||
export function getSimpleText(html) {
|
export function getSimpleText(html) {
|
||||||
var re1 = new RegExp('<.+?>', 'g')
|
var re1 = new RegExp('<.+?>', 'g')
|
||||||
var msg = html.replace(re1, '')
|
var msg = html.replace(re1, '')
|
||||||
|
@ -43,9 +43,6 @@ t.notAvailable = '不可用'
|
|||||||
t.time = '时间段'
|
t.time = '时间段'
|
||||||
t.parameter = '台差参数'
|
t.parameter = '台差参数'
|
||||||
t.configuration = '配置'
|
t.configuration = '配置'
|
||||||
t.uploadFile = '上传'
|
|
||||||
t.detail = '查看详情'
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -697,9 +694,6 @@ t.researchquality.stageTwoDate = '阶段2时间'
|
|||||||
t.researchquality.stageThreeDate = '阶段3时间'
|
t.researchquality.stageThreeDate = '阶段3时间'
|
||||||
t.researchquality.stageFourDate = '阶段4时间'
|
t.researchquality.stageFourDate = '阶段4时间'
|
||||||
t.researchquality.approvedMemo = '审核记录'
|
t.researchquality.approvedMemo = '审核记录'
|
||||||
t.researchquality.phase = '阶段'
|
|
||||||
t.researchquality.realTime = '实际完成时间'
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -724,7 +718,6 @@ t.customerquality.qualityAcceptanceDate = '质量接收日期'
|
|||||||
t.customerquality.confirmDeliveryDate = '确认交付日期'
|
t.customerquality.confirmDeliveryDate = '确认交付日期'
|
||||||
t.customerquality.deliveryRequiredDate = '要求交付日期'
|
t.customerquality.deliveryRequiredDate = '要求交付日期'
|
||||||
t.customerquality.status = '状态'
|
t.customerquality.status = '状态'
|
||||||
t.customerquality.file = '清单文件'
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2022-08-22 14:57:51
|
* @Date: 2022-08-22 14:57:51
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2023-07-14 15:53:17
|
* @LastEditTime: 2023-05-12 12:46:50
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -39,8 +39,7 @@
|
|||||||
<use xlink:href="#icon-home"></use>
|
<use xlink:href="#icon-home"></use>
|
||||||
</svg>
|
</svg>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
<!-- 中英文 -->
|
<el-menu-item index="7">
|
||||||
<!-- <el-menu-item index="7">
|
|
||||||
<el-dropdown trigger="click" class="international" @command="handleSetLanguage">
|
<el-dropdown trigger="click" class="international" @command="handleSetLanguage">
|
||||||
<div>
|
<div>
|
||||||
<svg class="icon-svg aui-navbar__icon-menu" aria-hidden="true">
|
<svg class="icon-svg aui-navbar__icon-menu" aria-hidden="true">
|
||||||
@ -56,7 +55,7 @@
|
|||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</el-menu-item> -->
|
</el-menu-item>
|
||||||
<el-menu-item index="4" @click="fullscreenHandle()">
|
<el-menu-item index="4" @click="fullscreenHandle()">
|
||||||
<svg class="icon-svg aui-navbar__icon-menu" aria-hidden="true">
|
<svg class="icon-svg aui-navbar__icon-menu" aria-hidden="true">
|
||||||
<use xlink:href="#icon-fullscreen"></use>
|
<use xlink:href="#icon-fullscreen"></use>
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-17 10:24:03
|
* @LastEditTime: 2023-07-14 10:17:26
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -18,8 +18,8 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="inspectionTime" :label="$t('code.inspectionTime')">
|
<el-form-item prop="inspectionTime" :label="$t('code.inspectionTime')">
|
||||||
<el-date-picker v-model="dataForm.inspectionTime" type="datetime"
|
<el-date-picker v-model="dataForm.inspectionTime" type="datetime" :placeholder="$t('code.inspectionTime')"
|
||||||
:placeholder="$t('code.inspectionTime')" format='yyyy-MM-dd HH:mm:ss' valueFormat='yyyy-MM-ddTHH:mm:ss'>
|
format='yyyy-MM-dd HH:mm:ss' valueFormat='yyyy-MM-ddTHH:mm:ss'>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -69,16 +69,14 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="batchQuantity" :label="$t('code.batchQuantity')">
|
<el-form-item prop="batchQuantity" :label="$t('code.batchQuantity')">
|
||||||
<el-input v-model="dataForm.batchQuantity" :placeholder="$t('code.batchQuantity')">
|
<el-input v-model="dataForm.batchQuantity" :placeholder="$t('code.batchQuantity')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="inspectionQuantity" :label="$t('code.inspectionQuantity')">
|
<el-form-item prop="inspectionQuantity" :label="$t('code.inspectionQuantity')">
|
||||||
<el-input v-model="dataForm.inspectionQuantity"
|
<el-input v-model="dataForm.inspectionQuantity" :placeholder="$t('code.inspectionQuantity')"></el-input>
|
||||||
:placeholder="$t('code.inspectionQuantity')"></el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
@ -88,8 +86,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="samplesQuantity" :label="$t('code.samplesQuantity')">
|
<el-form-item prop="samplesQuantity" :label="$t('code.samplesQuantity')">
|
||||||
<el-input v-model="dataForm.samplesQuantity" :placeholder="$t('code.samplesQuantity')">
|
<el-input v-model="dataForm.samplesQuantity" :placeholder="$t('code.samplesQuantity')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -105,7 +102,7 @@
|
|||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="userId" :label="$t('code.username')">
|
<el-form-item prop="userId" :label="$t('code.username')">
|
||||||
<el-select v-model="dataForm.userId" :placeholder="$t('code.username')">
|
<el-select v-model="dataForm.userId" :placeholder="$t('code.username')">
|
||||||
<el-option v-for="item in userList" :key="item.id" :label="item.realName" :value="item.id">
|
<el-option v-for="item in unitList" :key="item.id" :label="item.realName" :value="item.id">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -334,13 +331,23 @@ export default {
|
|||||||
params: this.listQuery
|
params: this.listQuery
|
||||||
})
|
})
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
;console.log(res.data.list)
|
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.userList = res.data.list
|
this.userList = res.data.list
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
})
|
})
|
||||||
|
this.$http
|
||||||
|
.get(this.urlOptions.getProductURL, {
|
||||||
|
params: this.listQuery
|
||||||
|
})
|
||||||
|
.then(({ data: res }) => {
|
||||||
|
if (res.code === 0) {
|
||||||
|
this.productList = res.data.list
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
})
|
||||||
this.$http
|
this.$http
|
||||||
.get(this.urlOptions.getDictDataList, {
|
.get(this.urlOptions.getDictDataList, {
|
||||||
params: {
|
params: {
|
||||||
@ -378,17 +385,6 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
})
|
})
|
||||||
this.$http
|
|
||||||
.get(this.urlOptions.getProductURL, {
|
|
||||||
params: this.listQuery
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
if (res.code === 0) {
|
|
||||||
this.productList = res.data.list
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
})
|
|
||||||
// console.log(111111);
|
// console.log(111111);
|
||||||
},
|
},
|
||||||
// 表单提交
|
// 表单提交
|
||||||
|
@ -1,20 +1,15 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-17 10:21:47
|
* @LastEditTime: 2023-07-14 10:17:44
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="130px">
|
||||||
:model="dataForm"
|
|
||||||
ref="dataForm"
|
|
||||||
:rules="dataRule"
|
|
||||||
@keyup.enter.native="dataFormSubmitHandle()"
|
|
||||||
label-width="130px"
|
|
||||||
>
|
|
||||||
<el-form-item prop="name" :label="$t('code.name')">
|
<el-form-item prop="name" :label="$t('code.name')">
|
||||||
<el-input v-model="dataForm.name" :placeholder="$t('code.name')"> </el-input>
|
<el-input v-model="dataForm.name" :placeholder="$t('code.name')">
|
||||||
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="code" :label="$t('code.code')">
|
<el-form-item prop="code" :label="$t('code.code')">
|
||||||
<el-input v-model="dataForm.code" :placeholder="$t('code.code')"></el-input>
|
<el-input v-model="dataForm.code" :placeholder="$t('code.code')"></el-input>
|
||||||
@ -24,16 +19,8 @@
|
|||||||
</el-switch>
|
</el-switch>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="eightDisciplineType" :label="$t('code.eightDisciplineType')">
|
<el-form-item prop="eightDisciplineType" :label="$t('code.eightDisciplineType')">
|
||||||
<el-select
|
<el-select v-model="dataForm.eightDisciplineType" :placeholder="$t('code.eightDisciplineType')">
|
||||||
v-model="dataForm.eightDisciplineType"
|
<el-option v-for="item in eightDisciplineTypeList" :key="item.value" :label="item.label" :value="item.value">
|
||||||
:placeholder="$t('code.eightDisciplineType')"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item in eightDisciplineTypeList"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"
|
|
||||||
>
|
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -49,31 +36,29 @@ export default {
|
|||||||
return {
|
return {
|
||||||
urlOptions: {
|
urlOptions: {
|
||||||
submitURL: "/code/eightDiscipline",
|
submitURL: "/code/eightDiscipline",
|
||||||
infoURL: "/code/eightDiscipline",
|
infoURL: "/code/eightDiscipline"
|
||||||
},
|
},
|
||||||
options: [
|
options: [{
|
||||||
{
|
|
||||||
value: 0,
|
value: 0,
|
||||||
label: "不可用",
|
label: '不可用'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: 1,
|
value: 1,
|
||||||
label: "可用",
|
label: '可用'
|
||||||
},
|
}],
|
||||||
],
|
|
||||||
eightDisciplineTypeList: [
|
eightDisciplineTypeList: [
|
||||||
{
|
{
|
||||||
value: "0",
|
value: '0',
|
||||||
label: "重复发生问题 ",
|
label: '重复发生问题 '
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "1",
|
value: '1',
|
||||||
label: "客诉问题",
|
label: '客诉问题'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "2",
|
value: '2',
|
||||||
label: "重大质量问题",
|
label: '重大质量问题'
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
visible: false,
|
visible: false,
|
||||||
dataForm: {
|
dataForm: {
|
||||||
@ -88,33 +73,40 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
code: [
|
// dictLabel: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: "请输入编码",
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
name: [
|
// dictValue: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: "请输入名称",
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
|
// sort: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: this.$t("validate.required"),
|
||||||
|
// trigger: "blur",
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init(id) {
|
init(id, ) {
|
||||||
this.dataForm.id = id || "";
|
this.dataForm.id = id || ""
|
||||||
// console.log(11111)
|
// console.log(11111)
|
||||||
// this.dataForm.dictTypeId = dictTypeId || "";
|
// this.dataForm.dictTypeId = dictTypeId || "";
|
||||||
this.visible = true;
|
this.visible = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs["dataForm"].resetFields();
|
this.$refs["dataForm"].resetFields();
|
||||||
if (this.dataForm.id) {
|
if (this.dataForm.id) {
|
||||||
this.getInfo();
|
this.getInfo()
|
||||||
} else {
|
} else {
|
||||||
// this.getCode()
|
// this.getCode()
|
||||||
}
|
}
|
||||||
|
@ -1,20 +1,15 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-17 10:23:23
|
* @LastEditTime: 2023-07-14 13:41:37
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="130px">
|
||||||
:model="dataForm"
|
|
||||||
:rules="dataRule"
|
|
||||||
ref="dataForm"
|
|
||||||
@keyup.enter.native="dataFormSubmitHandle()"
|
|
||||||
label-width="130px"
|
|
||||||
>
|
|
||||||
<el-form-item prop="name" :label="$t('code.name')">
|
<el-form-item prop="name" :label="$t('code.name')">
|
||||||
<el-input v-model="dataForm.name" :placeholder="$t('code.name')"> </el-input>
|
<el-input v-model="dataForm.name" :placeholder="$t('code.name')">
|
||||||
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="code" :label="$t('code.code')">
|
<el-form-item prop="code" :label="$t('code.code')">
|
||||||
<el-input v-model="dataForm.code" :placeholder="$t('code.code')"></el-input>
|
<el-input v-model="dataForm.code" :placeholder="$t('code.code')"></el-input>
|
||||||
@ -37,7 +32,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
urlOptions: {
|
urlOptions: {
|
||||||
submitURL: "/code/problemType",
|
submitURL: "/code/problemType",
|
||||||
infoURL: "/code/problemType",
|
infoURL: "/code/problemType"
|
||||||
},
|
},
|
||||||
visible: false,
|
visible: false,
|
||||||
dataForm: {
|
dataForm: {
|
||||||
@ -52,23 +47,32 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
code: [
|
// dictLabel: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: "请输入编码",
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
name: [
|
// dictValue: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: "请输入名称",
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
|
// sort: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: this.$t("validate.required"),
|
||||||
|
// trigger: "blur",
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {},
|
methods: {
|
||||||
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -2,8 +2,8 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-17 10:24:07
|
* @LastEditTime: 2023-07-14 10:18:03
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -19,8 +19,8 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="inspectionTime" :label="$t('code.inspectionTime')">
|
<el-form-item prop="inspectionTime" :label="$t('code.inspectionTime')">
|
||||||
<el-date-picker v-model="dataForm.inspectionTime" type="datetime"
|
<el-date-picker v-model="dataForm.inspectionTime" type="datetime" :placeholder="$t('code.inspectionTime')"
|
||||||
:placeholder="$t('code.inspectionTime')" format='yyyy-MM-dd HH:mm:ss' valueFormat='yyyy-MM-ddTHH:mm:ss'>
|
format='yyyy-MM-dd HH:mm:ss' valueFormat='yyyy-MM-ddTHH:mm:ss'>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -70,16 +70,14 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="batchQuantity" :label="$t('code.batchQuantity')">
|
<el-form-item prop="batchQuantity" :label="$t('code.batchQuantity')">
|
||||||
<el-input v-model="dataForm.batchQuantity" :placeholder="$t('code.batchQuantity')">
|
<el-input v-model="dataForm.batchQuantity" :placeholder="$t('code.batchQuantity')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="inspectionQuantity" :label="$t('code.inspectionQuantity')">
|
<el-form-item prop="inspectionQuantity" :label="$t('code.inspectionQuantity')">
|
||||||
<el-input v-model="dataForm.inspectionQuantity"
|
<el-input v-model="dataForm.inspectionQuantity" :placeholder="$t('code.inspectionQuantity')"></el-input>
|
||||||
:placeholder="$t('code.inspectionQuantity')"></el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
@ -89,8 +87,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="samplesQuantity" :label="$t('code.samplesQuantity')">
|
<el-form-item prop="samplesQuantity" :label="$t('code.samplesQuantity')">
|
||||||
<el-input v-model="dataForm.samplesQuantity" :placeholder="$t('code.samplesQuantity')">
|
<el-input v-model="dataForm.samplesQuantity" :placeholder="$t('code.samplesQuantity')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -106,7 +103,7 @@
|
|||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="userId" :label="$t('code.username')">
|
<el-form-item prop="userId" :label="$t('code.username')">
|
||||||
<el-select v-model="dataForm.userId" :placeholder="$t('code.username')">
|
<el-select v-model="dataForm.userId" :placeholder="$t('code.username')">
|
||||||
<el-option v-for="item in userList" :key="item.id" :label="item.realName" :value="item.id">
|
<el-option v-for="item in unitList" :key="item.id" :label="item.realName" :value="item.id">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-17 10:24:12
|
* @LastEditTime: 2023-07-14 10:18:33
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -19,8 +19,8 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="inspectionTime" :label="$t('code.inspectionTime')">
|
<el-form-item prop="inspectionTime" :label="$t('code.inspectionTime')">
|
||||||
<el-date-picker v-model="dataForm.inspectionTime" type="datetime"
|
<el-date-picker v-model="dataForm.inspectionTime" type="datetime" :placeholder="$t('code.inspectionTime')"
|
||||||
:placeholder="$t('code.inspectionTime')" format='yyyy-MM-dd HH:mm:ss' valueFormat='yyyy-MM-ddTHH:mm:ss'>
|
format='yyyy-MM-dd HH:mm:ss' valueFormat='yyyy-MM-ddTHH:mm:ss'>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -70,16 +70,14 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="batchQuantity" :label="$t('code.batchQuantity')">
|
<el-form-item prop="batchQuantity" :label="$t('code.batchQuantity')">
|
||||||
<el-input v-model="dataForm.batchQuantity" :placeholder="$t('code.batchQuantity')">
|
<el-input v-model="dataForm.batchQuantity" :placeholder="$t('code.batchQuantity')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="inspectionQuantity" :label="$t('code.inspectionQuantity')">
|
<el-form-item prop="inspectionQuantity" :label="$t('code.inspectionQuantity')">
|
||||||
<el-input v-model="dataForm.inspectionQuantity"
|
<el-input v-model="dataForm.inspectionQuantity" :placeholder="$t('code.inspectionQuantity')"></el-input>
|
||||||
:placeholder="$t('code.inspectionQuantity')"></el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
@ -89,8 +87,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="samplesQuantity" :label="$t('code.samplesQuantity')">
|
<el-form-item prop="samplesQuantity" :label="$t('code.samplesQuantity')">
|
||||||
<el-input v-model="dataForm.samplesQuantity" :placeholder="$t('code.samplesQuantity')">
|
<el-input v-model="dataForm.samplesQuantity" :placeholder="$t('code.samplesQuantity')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -106,7 +103,7 @@
|
|||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="userId" :label="$t('code.username')">
|
<el-form-item prop="userId" :label="$t('code.username')">
|
||||||
<el-select v-model="dataForm.userId" :placeholder="$t('code.username')">
|
<el-select v-model="dataForm.userId" :placeholder="$t('code.username')">
|
||||||
<el-option v-for="item in userList" :key="item.id" :label="item.realName" :value="item.id">
|
<el-option v-for="item in unitList" :key="item.id" :label="item.realName" :value="item.id">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -151,14 +148,12 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="criticalNumber" :label="$t('code.defectsNumber')">
|
<el-form-item prop="criticalNumber" :label="$t('code.defectsNumber')">
|
||||||
<el-input v-model="GBTDataForm.criticalNumber" :placeholder="$t('code.defectsNumber')">
|
<el-input v-model="GBTDataForm.criticalNumber" :placeholder="$t('code.defectsNumber')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="criticalDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
<el-form-item prop="criticalDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
||||||
<el-input v-model="GBTDataForm.criticalDefectiveNumber"
|
<el-input v-model="GBTDataForm.criticalDefectiveNumber" :placeholder="$t('code.defectiveQuantity')">
|
||||||
:placeholder="$t('code.defectiveQuantity')">
|
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -181,14 +176,12 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="majorNumber" :label="$t('code.defectsNumber')">
|
<el-form-item prop="majorNumber" :label="$t('code.defectsNumber')">
|
||||||
<el-input v-model="GBTDataForm.majorNumber" :placeholder="$t('code.defectsNumber')">
|
<el-input v-model="GBTDataForm.majorNumber" :placeholder="$t('code.defectsNumber')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="majorDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
<el-form-item prop="majorDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
||||||
<el-input v-model="GBTDataForm.majorDefectiveNumber"
|
<el-input v-model="GBTDataForm.majorDefectiveNumber" :placeholder="$t('code.defectiveQuantity')">
|
||||||
:placeholder="$t('code.defectiveQuantity')">
|
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -211,14 +204,12 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="minorNumber" :label="$t('code.defectsNumber')">
|
<el-form-item prop="minorNumber" :label="$t('code.defectsNumber')">
|
||||||
<el-input v-model="GBTDataForm.minorNumber" :placeholder="$t('code.defectsNumber')">
|
<el-input v-model="GBTDataForm.minorNumber" :placeholder="$t('code.defectsNumber')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="minorDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
<el-form-item prop="minorDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
||||||
<el-input v-model="GBTDataForm.minorDefectiveNumber"
|
<el-input v-model="GBTDataForm.minorDefectiveNumber" :placeholder="$t('code.defectiveQuantity')">
|
||||||
:placeholder="$t('code.defectiveQuantity')">
|
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -241,14 +232,12 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="totalNumber" :label="$t('code.defectsNumber')">
|
<el-form-item prop="totalNumber" :label="$t('code.defectsNumber')">
|
||||||
<el-input v-model="GBTDataForm.totalNumber" :placeholder="$t('code.defectsNumber')">
|
<el-input v-model="GBTDataForm.totalNumber" :placeholder="$t('code.defectsNumber')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="totalDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
<el-form-item prop="totalDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
||||||
<el-input v-model="GBTDataForm.totalDefectiveNumber"
|
<el-input v-model="GBTDataForm.totalDefectiveNumber" :placeholder="$t('code.defectiveQuantity')">
|
||||||
:placeholder="$t('code.defectiveQuantity')">
|
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -486,7 +475,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getDict() {
|
getDict() {
|
||||||
this.$http
|
this.$http
|
||||||
.get(this.urlOptions.getSamplingPlanURL, {
|
.post(this.urlOptions.getSamplingPlanURL, {
|
||||||
params: this.listQuery
|
params: this.listQuery
|
||||||
})
|
})
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
@ -497,7 +486,7 @@ export default {
|
|||||||
.catch(() => {
|
.catch(() => {
|
||||||
})
|
})
|
||||||
this.$http
|
this.$http
|
||||||
.get(this.urlOptions.getUserURL, {
|
.post(this.urlOptions.getUserURL, {
|
||||||
params: this.listQuery
|
params: this.listQuery
|
||||||
})
|
})
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
@ -508,7 +497,7 @@ export default {
|
|||||||
.catch(() => {
|
.catch(() => {
|
||||||
})
|
})
|
||||||
this.$http
|
this.$http
|
||||||
.get(this.urlOptions.getProductURL, {
|
.post(this.urlOptions.getProductURL, {
|
||||||
params: this.listQuery
|
params: this.listQuery
|
||||||
})
|
})
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
@ -519,7 +508,7 @@ export default {
|
|||||||
.catch(() => {
|
.catch(() => {
|
||||||
})
|
})
|
||||||
this.$http
|
this.$http
|
||||||
.get(this.urlOptions.getDictDataList, {
|
.post(this.urlOptions.getDictDataList, {
|
||||||
params: {
|
params: {
|
||||||
limit: 999,
|
limit: 999,
|
||||||
page: 1,
|
page: 1,
|
||||||
@ -534,7 +523,7 @@ export default {
|
|||||||
.catch(() => {
|
.catch(() => {
|
||||||
})
|
})
|
||||||
this.$http
|
this.$http
|
||||||
.get(this.urlOptions.getSupplierURL, {
|
.post(this.urlOptions.getSupplierURL, {
|
||||||
params: this.listQuery
|
params: this.listQuery
|
||||||
})
|
})
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
@ -545,7 +534,7 @@ export default {
|
|||||||
.catch(() => {
|
.catch(() => {
|
||||||
})
|
})
|
||||||
this.$http
|
this.$http
|
||||||
.get(this.urlOptions.getFactoryURL, {
|
.post(this.urlOptions.getFactoryURL, {
|
||||||
params: this.listQuery
|
params: this.listQuery
|
||||||
})
|
})
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-17 10:24:16
|
* @LastEditTime: 2023-07-14 10:19:44
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -19,8 +19,8 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="inspectionTime" :label="$t('code.inspectionTime')">
|
<el-form-item prop="inspectionTime" :label="$t('code.inspectionTime')">
|
||||||
<el-date-picker v-model="dataForm.inspectionTime" type="datetime"
|
<el-date-picker v-model="dataForm.inspectionTime" type="datetime" :placeholder="$t('code.inspectionTime')"
|
||||||
:placeholder="$t('code.inspectionTime')" format='yyyy-MM-dd HH:mm:ss' valueFormat='yyyy-MM-ddTHH:mm:ss'>
|
format='yyyy-MM-dd HH:mm:ss' valueFormat='yyyy-MM-ddTHH:mm:ss'>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -70,16 +70,14 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="batchQuantity" :label="$t('code.batchQuantity')">
|
<el-form-item prop="batchQuantity" :label="$t('code.batchQuantity')">
|
||||||
<el-input v-model="dataForm.batchQuantity" :placeholder="$t('code.batchQuantity')">
|
<el-input v-model="dataForm.batchQuantity" :placeholder="$t('code.batchQuantity')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="inspectionQuantity" :label="$t('code.inspectionQuantity')">
|
<el-form-item prop="inspectionQuantity" :label="$t('code.inspectionQuantity')">
|
||||||
<el-input v-model="dataForm.inspectionQuantity"
|
<el-input v-model="dataForm.inspectionQuantity" :placeholder="$t('code.inspectionQuantity')"></el-input>
|
||||||
:placeholder="$t('code.inspectionQuantity')"></el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
@ -89,8 +87,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="samplesQuantity" :label="$t('code.samplesQuantity')">
|
<el-form-item prop="samplesQuantity" :label="$t('code.samplesQuantity')">
|
||||||
<el-input v-model="dataForm.samplesQuantity" :placeholder="$t('code.samplesQuantity')">
|
<el-input v-model="dataForm.samplesQuantity" :placeholder="$t('code.samplesQuantity')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -106,7 +103,7 @@
|
|||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="userId" :label="$t('code.username')">
|
<el-form-item prop="userId" :label="$t('code.username')">
|
||||||
<el-select v-model="dataForm.userId" :placeholder="$t('code.username')">
|
<el-select v-model="dataForm.userId" :placeholder="$t('code.username')">
|
||||||
<el-option v-for="item in userList" :key="item.id" :label="item.realName" :value="item.id">
|
<el-option v-for="item in unitList" :key="item.id" :label="item.realName" :value="item.id">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -151,14 +148,12 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="criticalNumber" :label="$t('code.defectsNumber')">
|
<el-form-item prop="criticalNumber" :label="$t('code.defectsNumber')">
|
||||||
<el-input v-model="GBTDataForm.criticalNumber" :placeholder="$t('code.defectsNumber')">
|
<el-input v-model="GBTDataForm.criticalNumber" :placeholder="$t('code.defectsNumber')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="criticalDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
<el-form-item prop="criticalDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
||||||
<el-input v-model="GBTDataForm.criticalDefectiveNumber"
|
<el-input v-model="GBTDataForm.criticalDefectiveNumber" :placeholder="$t('code.defectiveQuantity')">
|
||||||
:placeholder="$t('code.defectiveQuantity')">
|
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -181,14 +176,12 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="majorNumber" :label="$t('code.defectsNumber')">
|
<el-form-item prop="majorNumber" :label="$t('code.defectsNumber')">
|
||||||
<el-input v-model="GBTDataForm.majorNumber" :placeholder="$t('code.defectsNumber')">
|
<el-input v-model="GBTDataForm.majorNumber" :placeholder="$t('code.defectsNumber')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="majorDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
<el-form-item prop="majorDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
||||||
<el-input v-model="GBTDataForm.majorDefectiveNumber"
|
<el-input v-model="GBTDataForm.majorDefectiveNumber" :placeholder="$t('code.defectiveQuantity')">
|
||||||
:placeholder="$t('code.defectiveQuantity')">
|
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -211,14 +204,12 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="minorNumber" :label="$t('code.defectsNumber')">
|
<el-form-item prop="minorNumber" :label="$t('code.defectsNumber')">
|
||||||
<el-input v-model="GBTDataForm.minorNumber" :placeholder="$t('code.defectsNumber')">
|
<el-input v-model="GBTDataForm.minorNumber" :placeholder="$t('code.defectsNumber')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="minorDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
<el-form-item prop="minorDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
||||||
<el-input v-model="GBTDataForm.minorDefectiveNumber"
|
<el-input v-model="GBTDataForm.minorDefectiveNumber" :placeholder="$t('code.defectiveQuantity')">
|
||||||
:placeholder="$t('code.defectiveQuantity')">
|
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -241,14 +232,12 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="totalNumber" :label="$t('code.defectsNumber')">
|
<el-form-item prop="totalNumber" :label="$t('code.defectsNumber')">
|
||||||
<el-input v-model="GBTDataForm.totalNumber" :placeholder="$t('code.defectsNumber')">
|
<el-input v-model="GBTDataForm.totalNumber" :placeholder="$t('code.defectsNumber')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="totalDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
<el-form-item prop="totalDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
||||||
<el-input v-model="GBTDataForm.totalDefectiveNumber"
|
<el-input v-model="GBTDataForm.totalDefectiveNumber" :placeholder="$t('code.defectiveQuantity')">
|
||||||
:placeholder="$t('code.defectiveQuantity')">
|
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -486,7 +475,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getDict() {
|
getDict() {
|
||||||
this.$http
|
this.$http
|
||||||
.get(this.urlOptions.getSamplingPlanURL, {
|
.post(this.urlOptions.getSamplingPlanURL, {
|
||||||
params: this.listQuery
|
params: this.listQuery
|
||||||
})
|
})
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
@ -497,7 +486,7 @@ export default {
|
|||||||
.catch(() => {
|
.catch(() => {
|
||||||
})
|
})
|
||||||
this.$http
|
this.$http
|
||||||
.get(this.urlOptions.getUserURL, {
|
.post(this.urlOptions.getUserURL, {
|
||||||
params: this.listQuery
|
params: this.listQuery
|
||||||
})
|
})
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
@ -508,7 +497,7 @@ export default {
|
|||||||
.catch(() => {
|
.catch(() => {
|
||||||
})
|
})
|
||||||
this.$http
|
this.$http
|
||||||
.get(this.urlOptions.getProductURL, {
|
.post(this.urlOptions.getProductURL, {
|
||||||
params: this.listQuery
|
params: this.listQuery
|
||||||
})
|
})
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
@ -519,7 +508,7 @@ export default {
|
|||||||
.catch(() => {
|
.catch(() => {
|
||||||
})
|
})
|
||||||
this.$http
|
this.$http
|
||||||
.get(this.urlOptions.getDictDataList, {
|
.post(this.urlOptions.getDictDataList, {
|
||||||
params: {
|
params: {
|
||||||
limit: 999,
|
limit: 999,
|
||||||
page: 1,
|
page: 1,
|
||||||
@ -534,7 +523,7 @@ export default {
|
|||||||
.catch(() => {
|
.catch(() => {
|
||||||
})
|
})
|
||||||
this.$http
|
this.$http
|
||||||
.get(this.urlOptions.getSupplierURL, {
|
.post(this.urlOptions.getSupplierURL, {
|
||||||
params: this.listQuery
|
params: this.listQuery
|
||||||
})
|
})
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
@ -545,7 +534,7 @@ export default {
|
|||||||
.catch(() => {
|
.catch(() => {
|
||||||
})
|
})
|
||||||
this.$http
|
this.$http
|
||||||
.get(this.urlOptions.getFactoryURL, {
|
.post(this.urlOptions.getFactoryURL, {
|
||||||
params: this.listQuery
|
params: this.listQuery
|
||||||
})
|
})
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-17 10:27:00
|
* @LastEditTime: 2023-07-14 10:20:02
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -9,7 +9,6 @@
|
|||||||
<el-form
|
<el-form
|
||||||
:model="dataForm"
|
:model="dataForm"
|
||||||
ref="dataForm"
|
ref="dataForm"
|
||||||
:rules="dataRule"
|
|
||||||
@keyup.enter.native="dataFormSubmitHandle()"
|
@keyup.enter.native="dataFormSubmitHandle()"
|
||||||
label-width="100px"
|
label-width="100px"
|
||||||
>
|
>
|
||||||
@ -272,7 +271,7 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '1',
|
value: '1',
|
||||||
label: "客诉问题",
|
label: "1客诉问题",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '2',
|
value: '2',
|
||||||
@ -318,48 +317,27 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
code: [
|
// dictLabel: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: "请输入编码",
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
title: [
|
// dictValue: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: "请输入标题",
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
eightDisciplineType: [
|
// sort: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: "请选择8D类型",
|
// message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
defectSourceId: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: "请选择缺陷来源",
|
|
||||||
trigger: "change",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
occurrenceDate: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: "请选择发生日期",
|
|
||||||
trigger: "change",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
product: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: "请选择产品",
|
|
||||||
trigger: "change",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -2,17 +2,11 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2023-06-29 14:12:48
|
* @Date: 2023-06-29 14:12:48
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2023-07-17 13:30:04
|
* @LastEditTime: 2023-06-30 10:58:16
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<base-table
|
<base-table border show-summary :table-props="tableProps" :table-data="tableData" @emitFun="inputChange" />
|
||||||
border
|
|
||||||
show-summary
|
|
||||||
:table-props="tableProps"
|
|
||||||
:table-data="tableData"
|
|
||||||
@emitFun="inputChange"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -140,7 +134,7 @@ export default {
|
|||||||
if (this.tableData[data._pageIndex - 1].gradeStatus) {
|
if (this.tableData[data._pageIndex - 1].gradeStatus) {
|
||||||
this.$set(
|
this.$set(
|
||||||
this.tableData[data._pageIndex - 1],
|
this.tableData[data._pageIndex - 1],
|
||||||
"grade",
|
'grade',
|
||||||
this.score[this.tableData[data._pageIndex - 1].gradeStatus - 1]
|
this.score[this.tableData[data._pageIndex - 1].gradeStatus - 1]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -155,17 +149,8 @@ export default {
|
|||||||
this.tableData.forEach((item) => {
|
this.tableData.forEach((item) => {
|
||||||
item.startEightDisciplineId = this.id;
|
item.startEightDisciplineId = this.id;
|
||||||
});
|
});
|
||||||
let putData = {
|
this.$http.post("/code/startEightGrade/save/list", this.tableData)
|
||||||
gradeFinish: 1,
|
.then(({ data: res }) => {
|
||||||
id: this.id,
|
|
||||||
};
|
|
||||||
this.$http.put("/code/startEightDiscipline", putData).then(({ data }) => {
|
|
||||||
if (data && data.code === 0) {
|
|
||||||
} else {
|
|
||||||
this.$message.error(data.msg);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
this.$http.post("/code/startEightGrade/save/list", this.tableData).then(({ data: res }) => {
|
|
||||||
if (res.code !== 0) {
|
if (res.code !== 0) {
|
||||||
return this.$message.error(res.msg);
|
return this.$message.error(res.msg);
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-06-19 15:52:51
|
* @Date: 2023-06-19 15:52:51
|
||||||
* @LastEditTime: 2023-07-17 10:31:16
|
* @LastEditTime: 2023-07-14 10:15:12
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -21,14 +21,14 @@
|
|||||||
<pagination :limit.sync="listQuery.limit" :page.sync="listQuery.page" :total="listQuery.total"
|
<pagination :limit.sync="listQuery.limit" :page.sync="listQuery.page" :total="listQuery.total"
|
||||||
@pagination="getDataList" />
|
@pagination="getDataList" />
|
||||||
<!-- 弹窗, 新增 / 修改 -->
|
<!-- 弹窗, 新增 / 修改 -->
|
||||||
<base-dialog width="70%" :dialogTitle="addOrEditTitle" :dialogVisible="addOrUpdateVisible" @cancel="handleCancel"
|
<base-dialog :dialogTitle="addOrEditTitle" :dialogVisible="addOrUpdateVisible" @cancel="handleCancel"
|
||||||
@confirm="handleConfirm" :before-close="handleCancel">
|
@confirm="handleConfirm" :before-close="handleCancel">
|
||||||
<deliveryInspection-add ref="addOrUpdate" @successSubmit="successSubmit">
|
<deliveryInspection-add ref="addOrUpdate" @successSubmit="successSubmit">
|
||||||
</deliveryInspection-add>
|
</deliveryInspection-add>
|
||||||
<!-- <el-row slot="footer" type="flex" justify="end"> </el-row> -->
|
<!-- <el-row slot="footer" type="flex" justify="end"> </el-row> -->
|
||||||
</base-dialog>
|
</base-dialog>
|
||||||
<base-dialog width="70%" :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible"
|
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
||||||
@cancel="handleSearchCancel" @confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
||||||
<deliveryInspection-search ref="searchOrUpdate" @refreshDataList="conditionSearchSubmit">
|
<deliveryInspection-search ref="searchOrUpdate" @refreshDataList="conditionSearchSubmit">
|
||||||
</deliveryInspection-search>
|
</deliveryInspection-search>
|
||||||
<el-row slot="footer" type="flex" justify="end">
|
<el-row slot="footer" type="flex" justify="end">
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-01-11 09:24:58
|
* @Date: 2023-01-11 09:24:58
|
||||||
* @LastEditTime: 2023-07-17 09:08:38
|
* @LastEditTime: 2023-07-14 14:06:53
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -9,6 +9,9 @@
|
|||||||
<el-card shadow="never" class="aui-card--fill">
|
<el-card shadow="never" class="aui-card--fill">
|
||||||
<div class="mod-sys__user">
|
<div class="mod-sys__user">
|
||||||
<SearchBar :formConfigs="formConfig" ref="ruleForm" @headBtnClick="buttonClick">
|
<SearchBar :formConfigs="formConfig" ref="ruleForm" @headBtnClick="buttonClick">
|
||||||
|
<el-badge :value="3" class="item">
|
||||||
|
<el-button type="primary" size="small" @click="searchsClick">条件搜索</el-button>
|
||||||
|
</el-badge>
|
||||||
</SearchBar>
|
</SearchBar>
|
||||||
<base-table
|
<base-table
|
||||||
:table-props="tableProps"
|
:table-props="tableProps"
|
||||||
@ -32,7 +35,7 @@
|
|||||||
@pagination="getDataList"
|
@pagination="getDataList"
|
||||||
/>
|
/>
|
||||||
<!-- 弹窗, 条件搜索-->
|
<!-- 弹窗, 条件搜索-->
|
||||||
<!-- <base-dialog
|
<base-dialog
|
||||||
:dialogTitle="searchsTitle"
|
:dialogTitle="searchsTitle"
|
||||||
:dialogVisible="searchsVisible"
|
:dialogVisible="searchsVisible"
|
||||||
@cancel="searchsCancel"
|
@cancel="searchsCancel"
|
||||||
@ -40,7 +43,7 @@
|
|||||||
:before-close="searchsCancel"
|
:before-close="searchsCancel"
|
||||||
>
|
>
|
||||||
<searchs ref="searchsRef" @refreshDataList="searchsSubmit"></searchs>
|
<searchs ref="searchsRef" @refreshDataList="searchsSubmit"></searchs>
|
||||||
</base-dialog> -->
|
</base-dialog>
|
||||||
<!-- 弹窗, 新增 / 修改 -->
|
<!-- 弹窗, 新增 / 修改 -->
|
||||||
<base-dialog
|
<base-dialog
|
||||||
:dialogTitle="addOrEditTitle"
|
:dialogTitle="addOrEditTitle"
|
||||||
@ -61,7 +64,7 @@
|
|||||||
import basicPage from "@/mixins/basic-page";
|
import basicPage from "@/mixins/basic-page";
|
||||||
import eightDisciplineAdd from "./components/eightDiscipline-add";
|
import eightDisciplineAdd from "./components/eightDiscipline-add";
|
||||||
import available from "./components/available.vue";
|
import available from "./components/available.vue";
|
||||||
// import Searchs from "./components/eightDiscipline-searchs";
|
import Searchs from "./components/eightDiscipline-searchs";
|
||||||
import codeFilter from "@/filters/code-filter";
|
import codeFilter from "@/filters/code-filter";
|
||||||
import i18n from "@/i18n";
|
import i18n from "@/i18n";
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
@ -102,7 +105,7 @@ export default {
|
|||||||
mixins: [basicPage],
|
mixins: [basicPage],
|
||||||
components: {
|
components: {
|
||||||
eightDisciplineAdd,
|
eightDisciplineAdd,
|
||||||
// Searchs,
|
Searchs
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -114,26 +117,10 @@ export default {
|
|||||||
tableBtn,
|
tableBtn,
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
{
|
||||||
type: "input",
|
type: "button",
|
||||||
label: i18n.t("code.name"),
|
btnName: "新增",
|
||||||
placeholder: i18n.t("code.name"),
|
name: "add",
|
||||||
param: "name",
|
color: "primary",
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "input",
|
|
||||||
label: i18n.t("code.code"),
|
|
||||||
placeholder: i18n.t("code.code"),
|
|
||||||
param: "code",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "select",
|
|
||||||
label: i18n.t('code.eightDisciplineStatus'),
|
|
||||||
selectOptions: [
|
|
||||||
{ id: 1, name: "可用" },
|
|
||||||
{ id: 0, name: "不可用" },
|
|
||||||
],
|
|
||||||
param: "eightDisciplineStatus",
|
|
||||||
defaultSelect: "",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
@ -141,12 +128,6 @@ export default {
|
|||||||
name: "search",
|
name: "search",
|
||||||
color: "primary",
|
color: "primary",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
type: "button",
|
|
||||||
btnName: "新增",
|
|
||||||
name: "add",
|
|
||||||
color: "primary",
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -161,9 +142,9 @@ export default {
|
|||||||
case "search":
|
case "search":
|
||||||
// this.listQuery.paramCode = val.paramCode;
|
// this.listQuery.paramCode = val.paramCode;
|
||||||
this.listQuery.page = 1;
|
this.listQuery.page = 1;
|
||||||
this.listQuery.code = val.code;
|
this.listQuery.code = null;
|
||||||
this.listQuery.name = val.name;
|
this.listQuery.name = null;
|
||||||
this.listQuery.eightDisciplineStatus = val.eightDisciplineStatus;
|
this.listQuery.eightDisciplineStatus = null;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
break;
|
break;
|
||||||
case "add":
|
case "add":
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-01-11 09:24:58
|
* @Date: 2023-01-11 09:24:58
|
||||||
* @LastEditTime: 2023-07-17 10:38:22
|
* @LastEditTime: 2023-07-14 10:15:45
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -66,20 +66,20 @@ const tableProps = [
|
|||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'userName',
|
prop: 'userId',
|
||||||
label: i18n.t("code.userId"),
|
label: i18n.t("code.userId"),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
const tableBtn = [
|
const tableBtn = [
|
||||||
// {
|
{
|
||||||
// type: "edit",
|
type: "edit",
|
||||||
// btnName: "编辑",
|
btnName: "编辑",
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// type: "delete",
|
type: "delete",
|
||||||
// btnName: "删除",
|
btnName: "删除",
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
type: "approve",
|
type: "approve",
|
||||||
btnName: "审批",
|
btnName: "审批",
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-06-19 15:52:51
|
* @Date: 2023-06-19 15:52:51
|
||||||
* @LastEditTime: 2023-07-17 10:30:40
|
* @LastEditTime: 2023-07-14 10:16:01
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -21,13 +21,13 @@
|
|||||||
<pagination :limit.sync="listQuery.limit" :page.sync="listQuery.page" :total="listQuery.total"
|
<pagination :limit.sync="listQuery.limit" :page.sync="listQuery.page" :total="listQuery.total"
|
||||||
@pagination="getDataList" />
|
@pagination="getDataList" />
|
||||||
<!-- 弹窗, 新增 / 修改 -->
|
<!-- 弹窗, 新增 / 修改 -->
|
||||||
<base-dialog width="70%" :dialogTitle="addOrEditTitle" :dialogVisible="addOrUpdateVisible" @cancel="handleCancel"
|
<base-dialog :dialogTitle="addOrEditTitle" :dialogVisible="addOrUpdateVisible" @cancel="handleCancel"
|
||||||
@confirm="handleConfirm" :before-close="handleCancel">
|
@confirm="handleConfirm" :before-close="handleCancel">
|
||||||
<productInspection-add ref="addOrUpdate" @successSubmit="successSubmit"></productInspection-add>
|
<productInspection-add ref="addOrUpdate" @successSubmit="successSubmit"></productInspection-add>
|
||||||
<!-- <el-row slot="footer" type="flex" justify="end"> </el-row> -->
|
<!-- <el-row slot="footer" type="flex" justify="end"> </el-row> -->
|
||||||
</base-dialog>
|
</base-dialog>
|
||||||
<base-dialog width="70%" :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible"
|
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
||||||
@cancel="handleSearchCancel" @confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
||||||
<productInspection-search ref="searchOrUpdate" @refreshDataList="conditionSearchSubmit">
|
<productInspection-search ref="searchOrUpdate" @refreshDataList="conditionSearchSubmit">
|
||||||
</productInspection-search>
|
</productInspection-search>
|
||||||
<el-row slot="footer" type="flex" justify="end">
|
<el-row slot="footer" type="flex" justify="end">
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-06-12 13:22:50
|
* @Date: 2023-06-12 13:22:50
|
||||||
* @LastEditTime: 2023-07-17 10:29:25
|
* @LastEditTime: 2023-07-14 10:16:14
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -21,14 +21,14 @@
|
|||||||
<pagination :limit.sync="listQuery.limit" :page.sync="listQuery.page" :total="listQuery.total"
|
<pagination :limit.sync="listQuery.limit" :page.sync="listQuery.page" :total="listQuery.total"
|
||||||
@pagination="getDataList" />
|
@pagination="getDataList" />
|
||||||
<!-- 弹窗, 新增 / 修改 -->
|
<!-- 弹窗, 新增 / 修改 -->
|
||||||
<base-dialog width="70%" :dialogTitle="addOrEditTitle" :dialogVisible="addOrUpdateVisible" @cancel="handleCancel"
|
<base-dialog :dialogTitle="addOrEditTitle" :dialogVisible="addOrUpdateVisible" @cancel="handleCancel"
|
||||||
@confirm="handleConfirm" :before-close="handleCancel">
|
@confirm="handleConfirm" :before-close="handleCancel">
|
||||||
<productRegistration-add ref="addOrUpdate" @successSubmit="successSubmit">
|
<productRegistration-add ref="addOrUpdate" @successSubmit="successSubmit">
|
||||||
</productRegistration-add>
|
</productRegistration-add>
|
||||||
<!-- <el-row slot="footer" type="flex" justify="end"> </el-row> -->
|
<!-- <el-row slot="footer" type="flex" justify="end"> </el-row> -->
|
||||||
</base-dialog>
|
</base-dialog>
|
||||||
<base-dialog width="70%" :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible"
|
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
||||||
@cancel="handleSearchCancel" @confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
||||||
<productRegistration-search ref="searchOrUpdate" @refreshDataList="conditionSearchSubmit">
|
<productRegistration-search ref="searchOrUpdate" @refreshDataList="conditionSearchSubmit">
|
||||||
</productRegistration-search>
|
</productRegistration-search>
|
||||||
<el-row slot="footer" type="flex" justify="end">
|
<el-row slot="footer" type="flex" justify="end">
|
||||||
@ -50,12 +50,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import basicPage from "@/mixins/basic-page"
|
import basicPage from "@/mixins/basic-page";
|
||||||
import basicSearch from "@/mixins/basic-search"
|
import basicSearch from "@/mixins/basic-search";
|
||||||
import productRegistrationSearch from "./components/productRegistrationSearch.vue"
|
import productRegistrationSearch from "./components/productRegistrationSearch.vue";
|
||||||
import productRegistrationAdd from "./components/productRegistration-add.vue"
|
import productRegistrationAdd from "./components/productRegistration-add.vue";
|
||||||
import i18n from "@/i18n"
|
import i18n from "@/i18n";
|
||||||
import incoming from "@/filters/incoming"
|
|
||||||
// import i18n from "@/i18n";
|
// import i18n from "@/i18n";
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
@ -77,12 +76,10 @@ const tableProps = [
|
|||||||
{
|
{
|
||||||
prop: "upload",
|
prop: "upload",
|
||||||
label: i18n.t('code.upload'),
|
label: i18n.t('code.upload'),
|
||||||
filter: incoming('upload'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "judgmentResult",
|
prop: "judgmentResult",
|
||||||
label: i18n.t('code.judgmentResult'),
|
label: i18n.t('code.judgmentResult'),
|
||||||
filter: incoming('judgmentResult'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "productCode",
|
prop: "productCode",
|
||||||
@ -152,7 +149,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
urlOptions: {
|
urlOptions: {
|
||||||
getDataListURL: "/code/productRegistration/page/term",
|
getDataListURL: "code/productRegistration/page/term",
|
||||||
deleteURL: "/code/productRegistration",
|
deleteURL: "/code/productRegistration",
|
||||||
exportURL: "/code/productRegistration/export",
|
exportURL: "/code/productRegistration/export",
|
||||||
},
|
},
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-06-12 13:22:50
|
* @Date: 2023-06-12 13:22:50
|
||||||
* @LastEditTime: 2023-07-17 10:29:35
|
* @LastEditTime: 2023-07-14 10:16:28
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -21,14 +21,14 @@
|
|||||||
<pagination :limit.sync="listQuery.limit" :page.sync="listQuery.page" :total="listQuery.total"
|
<pagination :limit.sync="listQuery.limit" :page.sync="listQuery.page" :total="listQuery.total"
|
||||||
@pagination="getDataList" />
|
@pagination="getDataList" />
|
||||||
<!-- 弹窗, 新增 / 修改 -->
|
<!-- 弹窗, 新增 / 修改 -->
|
||||||
<base-dialog width="70%" :dialogTitle="addOrEditTitle" :dialogVisible="addOrUpdateVisible" @cancel="handleCancel"
|
<base-dialog :dialogTitle="addOrEditTitle" :dialogVisible="addOrUpdateVisible" @cancel="handleCancel"
|
||||||
@confirm="handleConfirm" :before-close="handleCancel">
|
@confirm="handleConfirm" :before-close="handleCancel">
|
||||||
<shipmentRegistration-add ref="addOrUpdate" @successSubmit="successSubmit">
|
<shipmentRegistration-add ref="addOrUpdate" @successSubmit="successSubmit">
|
||||||
</shipmentRegistration-add>
|
</shipmentRegistration-add>
|
||||||
<!-- <el-row slot="footer" type="flex" justify="end"> </el-row> -->
|
<!-- <el-row slot="footer" type="flex" justify="end"> </el-row> -->
|
||||||
</base-dialog>
|
</base-dialog>
|
||||||
<base-dialog width="70%" :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible"
|
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
||||||
@cancel="handleSearchCancel" @confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
||||||
<shipmentRegistration-search ref="searchOrUpdate" @refreshDataList="conditionSearchSubmit">
|
<shipmentRegistration-search ref="searchOrUpdate" @refreshDataList="conditionSearchSubmit">
|
||||||
</shipmentRegistration-search>
|
</shipmentRegistration-search>
|
||||||
<el-row slot="footer" type="flex" justify="end">
|
<el-row slot="footer" type="flex" justify="end">
|
||||||
@ -55,7 +55,6 @@ import basicSearch from "@/mixins/basic-search";
|
|||||||
import shipmentRegistrationSearch from "./components/shipmentRegistrationSearch.vue";
|
import shipmentRegistrationSearch from "./components/shipmentRegistrationSearch.vue";
|
||||||
import shipmentRegistrationAdd from "./components/shipmentRegistration-add.vue";
|
import shipmentRegistrationAdd from "./components/shipmentRegistration-add.vue";
|
||||||
import i18n from "@/i18n";
|
import i18n from "@/i18n";
|
||||||
import incoming from "@/filters/incoming";
|
|
||||||
// import i18n from "@/i18n";
|
// import i18n from "@/i18n";
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
@ -77,12 +76,10 @@ const tableProps = [
|
|||||||
{
|
{
|
||||||
prop: "upload",
|
prop: "upload",
|
||||||
label: i18n.t('code.upload'),
|
label: i18n.t('code.upload'),
|
||||||
filter: incoming('upload'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "judgmentResult",
|
prop: "judgmentResult",
|
||||||
label: i18n.t('code.judgmentResult'),
|
label: i18n.t('code.judgmentResult'),
|
||||||
filter: incoming('judgmentResult'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "productCode",
|
prop: "productCode",
|
||||||
@ -152,7 +149,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
urlOptions: {
|
urlOptions: {
|
||||||
getDataListURL: "/code/shipmentRegistration/page/term",
|
getDataListURL: "code/shipmentRegistration/page/term",
|
||||||
deleteURL: "/code/shipmentRegistration",
|
deleteURL: "/code/shipmentRegistration",
|
||||||
exportURL: "/code/shipmentRegistration/export",
|
exportURL: "/code/shipmentRegistration/export",
|
||||||
},
|
},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-01-11 09:24:58
|
* @Date: 2023-01-11 09:24:58
|
||||||
* @LastEditTime: 2023-07-17 10:39:16
|
* @LastEditTime: 2023-07-14 10:16:41
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -96,20 +96,20 @@ const tableProps = [
|
|||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'userName',
|
prop: "userId",
|
||||||
label: i18n.t("code.userId"),
|
label: i18n.t("code.userId"),
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
const tableBtn = [
|
const tableBtn = [
|
||||||
// {
|
{
|
||||||
// type: "edit",
|
type: "edit",
|
||||||
// btnName: "编辑",
|
btnName: "编辑",
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// type: "delete",
|
type: "delete",
|
||||||
// btnName: "删除",
|
btnName: "删除",
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
type: "team",
|
type: "team",
|
||||||
btnName: "团队",
|
btnName: "团队",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-01-11 09:24:58
|
* @Date: 2023-01-11 09:24:58
|
||||||
* @LastEditTime: 2023-07-17 10:38:45
|
* @LastEditTime: 2023-07-14 10:16:46
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -84,20 +84,20 @@ const tableProps = [
|
|||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'userName',
|
prop: 'userId',
|
||||||
label: i18n.t("code.userId"),
|
label: i18n.t("code.userId"),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
const tableBtn = [
|
const tableBtn = [
|
||||||
// {
|
{
|
||||||
// type: "edit",
|
type: "edit",
|
||||||
// btnName: "编辑",
|
btnName: "编辑",
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// type: "delete",
|
type: "delete",
|
||||||
// btnName: "删除",
|
btnName: "删除",
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
type: "corrective",
|
type: "corrective",
|
||||||
btnName: "纠正",
|
btnName: "纠正",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-01-11 09:24:58
|
* @Date: 2023-01-11 09:24:58
|
||||||
* @LastEditTime: 2023-07-17 10:39:03
|
* @LastEditTime: 2023-07-14 10:16:53
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -82,7 +82,7 @@ const tableProps = [
|
|||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'userName',
|
prop: 'userId',
|
||||||
label: i18n.t("code.userId"),
|
label: i18n.t("code.userId"),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
}
|
}
|
||||||
@ -92,10 +92,10 @@ const tableBtn = [
|
|||||||
// type: "edit",
|
// type: "edit",
|
||||||
// btnName: "编辑",
|
// btnName: "编辑",
|
||||||
// },
|
// },
|
||||||
// {
|
{
|
||||||
// type: "delete",
|
type: "delete",
|
||||||
// btnName: "删除",
|
btnName: "删除",
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
type: "analysis",
|
type: "analysis",
|
||||||
btnName: "分析",
|
btnName: "分析",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-01-11 09:24:58
|
* @Date: 2023-01-11 09:24:58
|
||||||
* @LastEditTime: 2023-07-17 10:38:34
|
* @LastEditTime: 2023-07-14 10:16:58
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -84,20 +84,20 @@ const tableProps = [
|
|||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'userName',
|
prop: 'userId',
|
||||||
label: i18n.t("code.userId"),
|
label: i18n.t("code.userId"),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
const tableBtn = [
|
const tableBtn = [
|
||||||
// {
|
{
|
||||||
// type: "edit",
|
type: "edit",
|
||||||
// btnName: "编辑",
|
btnName: "编辑",
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// type: "delete",
|
type: "delete",
|
||||||
// btnName: "删除",
|
btnName: "删除",
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
type: "prevent",
|
type: "prevent",
|
||||||
btnName: "预防",
|
btnName: "预防",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-01-11 09:24:58
|
* @Date: 2023-01-11 09:24:58
|
||||||
* @LastEditTime: 2023-07-17 10:38:50
|
* @LastEditTime: 2023-06-30 09:21:25
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -83,20 +83,20 @@ const tableProps = [
|
|||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'userName',
|
prop: 'userId',
|
||||||
label: i18n.t("code.userId"),
|
label: i18n.t("code.userId"),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
const tableBtn = [
|
const tableBtn = [
|
||||||
// {
|
{
|
||||||
// type: "edit",
|
type: "edit",
|
||||||
// btnName: "编辑",
|
btnName: "编辑",
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// type: "delete",
|
type: "delete",
|
||||||
// btnName: "删除",
|
btnName: "删除",
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
type: "analysis",
|
type: "analysis",
|
||||||
btnName: "分析",
|
btnName: "分析",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-01-11 09:24:58
|
* @Date: 2023-01-11 09:24:58
|
||||||
* @LastEditTime: 2023-07-17 10:38:29
|
* @LastEditTime: 2023-06-30 09:37:58
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -84,20 +84,20 @@ const tableProps = [
|
|||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'userName',
|
prop: 'userId',
|
||||||
label: i18n.t("code.userId"),
|
label: i18n.t("code.userId"),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
const tableBtn = [
|
const tableBtn = [
|
||||||
// {
|
{
|
||||||
// type: "edit",
|
type: "edit",
|
||||||
// btnName: "编辑",
|
btnName: "编辑",
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// type: "delete",
|
type: "delete",
|
||||||
// btnName: "删除",
|
btnName: "删除",
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
type: "summary",
|
type: "summary",
|
||||||
btnName: "总结",
|
btnName: "总结",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-01-11 09:24:58
|
* @Date: 2023-01-11 09:24:58
|
||||||
* @LastEditTime: 2023-07-17 10:39:25
|
* @LastEditTime: 2023-07-14 10:17:04
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -89,20 +89,20 @@ const tableProps = [
|
|||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'userName',
|
prop: 'userId',
|
||||||
label: i18n.t("code.userId"),
|
label: i18n.t("code.userId"),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
const tableBtn = [
|
const tableBtn = [
|
||||||
// {
|
{
|
||||||
// type: "edit",
|
type: "edit",
|
||||||
// btnName: "编辑",
|
btnName: "编辑",
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// type: "delete",
|
type: "delete",
|
||||||
// btnName: "删除",
|
btnName: "删除",
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
type: "measure",
|
type: "measure",
|
||||||
btnName: "措施",
|
btnName: "措施",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-01-11 09:24:58
|
* @Date: 2023-01-11 09:24:58
|
||||||
* @LastEditTime: 2023-07-17 10:38:40
|
* @LastEditTime: 2023-06-30 09:31:04
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -83,20 +83,20 @@ const tableProps = [
|
|||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'userName',
|
prop: 'userId',
|
||||||
label: i18n.t("code.userId"),
|
label: i18n.t("code.userId"),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
const tableBtn = [
|
const tableBtn = [
|
||||||
// {
|
{
|
||||||
// type: "edit",
|
type: "edit",
|
||||||
// btnName: "编辑",
|
btnName: "编辑",
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// type: "delete",
|
type: "delete",
|
||||||
// btnName: "删除",
|
btnName: "删除",
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
type: "validation",
|
type: "validation",
|
||||||
btnName: "验证",
|
btnName: "验证",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-card shadow="never" class="aui-card--fill">
|
<el-card shadow="never" class="aui-card--fill">
|
||||||
<div class="mod-sys__user">
|
<div class="mod-sys__user">
|
||||||
<!-- <search-bar :formConfigs="formConfig" ref="searchBarForm" @headBtnClick="buttonClick" /> -->
|
<search-bar :formConfigs="formConfig" ref="searchBarForm" @headBtnClick="buttonClick" />
|
||||||
<base-table
|
<base-table
|
||||||
:table-props="tableProps"
|
:table-props="tableProps"
|
||||||
:page="listQuery.page"
|
:page="listQuery.page"
|
||||||
@ -73,10 +73,10 @@ const tableProps = [
|
|||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "gradeFinish",
|
prop: "examineStatus",
|
||||||
label: "打分状态",
|
label: i18n.t("code.examineStatus"),
|
||||||
align: "center",
|
align: "center",
|
||||||
filter: codeFilter("gradeFinish"),
|
filter: codeFilter("examineStatus"),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
const tableBtn = [
|
const tableBtn = [
|
||||||
@ -130,16 +130,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
otherMethods(val) {
|
otherMethods(val) {
|
||||||
if(val.data.gradeFinish){
|
|
||||||
this.$message({
|
|
||||||
message: '该数据已完成打分操作,请勿重复打分!',
|
|
||||||
type: 'warning'
|
|
||||||
});
|
|
||||||
}else{
|
|
||||||
this.addOrEditTitle = "打分";
|
this.addOrEditTitle = "打分";
|
||||||
this.addOrUpdateVisible = true;
|
this.addOrUpdateVisible = true;
|
||||||
this.addOrUpdateHandle(val.data.id);
|
this.addOrUpdateHandle(val.data.id);
|
||||||
}
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -1,173 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zhp
|
|
||||||
* @Date: 2023-07-14 13:44:46
|
|
||||||
* @LastEditTime: 2023-07-17 15:51:39
|
|
||||||
* @LastEditors: zhp
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<div>
|
|
||||||
<el-drawer close-on-press-escape:title="$t('add')" :append-to-body="true" :before-close="handleClose"
|
|
||||||
:visible.sync="innerDrawer">
|
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()"
|
|
||||||
label-width="120px">
|
|
||||||
<el-form-item prop="requirementListId" :label="$t('customerquality.requirementListName')">
|
|
||||||
<el-select v-model="dataForm.requirementListId" :placeholder="$t('customerquality.requirementListName')">
|
|
||||||
<el-option v-for="item in requirementList" :key="item.id" :label="item.requirementListName"
|
|
||||||
:value="item.id">
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item prop="knowledgeBaseId" :label="$t('customerquality.knowledgeBaseName')">
|
|
||||||
<el-select v-model="dataForm.knowledgeBaseId" :placeholder="$t('customerquality.knowledgeBaseName')">
|
|
||||||
<el-option v-for="item in knowledgeBaseList" :key="item.id" :label="item.knowledgeBaseName"
|
|
||||||
:value="item.id">
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item>
|
|
||||||
<el-button @click="innerDrawer = false">{{ $t('cancel') }} </el-button>
|
|
||||||
<el-button type="primary" @click="dataFormSubmit"> {{ $t('confirm') }}</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
</el-drawer>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import i18n from "@/i18n"
|
|
||||||
import basicAdd from "@/mixins/basic-add"
|
|
||||||
import debounce from "lodash/debounce"
|
|
||||||
export default {
|
|
||||||
mixins: [basicAdd],
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
urlOptions: {
|
|
||||||
submitURL: "/customerquality/qmsKnowledgeBaseRequirementList",
|
|
||||||
getRequirementListURL: "/customerquality/qmsCustomerQualityRequirementList/page",
|
|
||||||
getKnowledgeBaseURL: "/customerquality/qmsKnowledgeBase/page"
|
|
||||||
},
|
|
||||||
dataForm: {
|
|
||||||
knowledgeBaseId: null,
|
|
||||||
requirementListId:null
|
|
||||||
},
|
|
||||||
innerDrawer: false,
|
|
||||||
listQuery: {
|
|
||||||
limit: 10,
|
|
||||||
page:1,
|
|
||||||
},
|
|
||||||
requirementList: [],
|
|
||||||
knowledgeBaseList:[],
|
|
||||||
}
|
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
dataRule() {
|
|
||||||
return {
|
|
||||||
knowledgeBaseId: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: this.$t("validate.required"),
|
|
||||||
trigger: "change",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
requirementListId: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: this.$t("validate.required"),
|
|
||||||
trigger: "change",
|
|
||||||
},
|
|
||||||
]
|
|
||||||
};
|
|
||||||
},
|
|
||||||
},
|
|
||||||
mounted () {
|
|
||||||
this.getDict()
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
init(id) {
|
|
||||||
this.dataForm.id = id || ''
|
|
||||||
this.innerDrawer = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs["dataForm"].resetFields()
|
|
||||||
if (this.dataForm.id) {
|
|
||||||
this.getInfo()
|
|
||||||
} else {
|
|
||||||
// this.getCode()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
handleClose() {
|
|
||||||
this.innerDrawer = true
|
|
||||||
this.$refs.dataForm.resetFields()
|
|
||||||
},
|
|
||||||
getInfo() {
|
|
||||||
this.$http
|
|
||||||
.get(`/customerquality/qmsKnowledgeBaseRequirementList/${this.dataForm.id}`)
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
if (res.code !== 0) {
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.dataForm = {
|
|
||||||
...this.dataForm,
|
|
||||||
...res.data,
|
|
||||||
};
|
|
||||||
})
|
|
||||||
.catch(() => { });
|
|
||||||
},
|
|
||||||
getDict() {
|
|
||||||
this.$http
|
|
||||||
.get(this.urlOptions.getRequirementListURL, {
|
|
||||||
params: this.listQuery
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
if (res.code === 0) {
|
|
||||||
console.log(res);
|
|
||||||
this.requirementList = res.data.list
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
})
|
|
||||||
this.$http
|
|
||||||
.get(this.urlOptions.getKnowledgeBaseURL, {
|
|
||||||
params: this.listQuery
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
if (res.code === 0) {
|
|
||||||
console.log(res);
|
|
||||||
this.knowledgeBaseList = res.data.list
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 表单提交
|
|
||||||
dataFormSubmit() {
|
|
||||||
this.$refs["dataForm"].validate((valid) => {
|
|
||||||
if (!valid) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
this.$http[!this.dataForm.id ? "post" : "put"](this.urlOptions.submitURL, this.dataForm)
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
if (res.code !== 0) {
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.$message({
|
|
||||||
message: this.$t("prompt.success"),
|
|
||||||
type: "success",
|
|
||||||
duration: 500,
|
|
||||||
onClose: () => {
|
|
||||||
this.innerDrawer = false;
|
|
||||||
this.$emit("refreshDataList");
|
|
||||||
},
|
|
||||||
});
|
|
||||||
})
|
|
||||||
.catch(() => { });
|
|
||||||
});
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
|
|
||||||
</style>
|
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-07-14 13:44:46
|
* @Date: 2023-07-14 13:44:46
|
||||||
* @LastEditTime: 2023-07-17 15:59:27
|
* @LastEditTime: 2023-07-14 13:59:46
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -9,11 +9,6 @@
|
|||||||
<div>
|
<div>
|
||||||
<el-drawer :title="$t('customerquality.knowledgeBase')" :visible.sync="drawer" size="50%">
|
<el-drawer :title="$t('customerquality.knowledgeBase')" :visible.sync="drawer" size="50%">
|
||||||
<div>
|
<div>
|
||||||
<SearchBar :formConfigs="formConfig" ref="ruleForm" @headBtnClick="buttonClick">
|
|
||||||
<!-- <el-badge :value="5" class="item">
|
|
||||||
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
|
||||||
</el-badge> -->
|
|
||||||
</SearchBar>
|
|
||||||
<base-table id="palletTable" :table-props="tableProps" :page="listQuery.page" ref="palletTable1"
|
<base-table id="palletTable" :table-props="tableProps" :page="listQuery.page" ref="palletTable1"
|
||||||
:limit="listQuery.limit" :table-data="tableData">
|
:limit="listQuery.limit" :table-data="tableData">
|
||||||
<method-btn v-if="tableBtn.length" slot="handleBtn" :width="100" label="操作" :method-list="tableBtn"
|
<method-btn v-if="tableBtn.length" slot="handleBtn" :width="100" label="操作" :method-list="tableBtn"
|
||||||
@ -22,7 +17,6 @@
|
|||||||
<pagination :limit.sync="listQuery.limit" :page.sync="listQuery.page" :total="listQuery.total"
|
<pagination :limit.sync="listQuery.limit" :page.sync="listQuery.page" :total="listQuery.total"
|
||||||
@pagination="getDataList" />
|
@pagination="getDataList" />
|
||||||
</div>
|
</div>
|
||||||
<baseConfig-add ref="baseConfigAddList" v-if="baseConfigAddShow" @refreshDataList="getDataList"></baseConfig-add>
|
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -31,10 +25,8 @@
|
|||||||
import basicPage from "@/mixins/basic-page"
|
import basicPage from "@/mixins/basic-page"
|
||||||
// import basicSearch from "@/mixins/basic-search"
|
// import basicSearch from "@/mixins/basic-search"
|
||||||
// import projectTypeSearch from "./components/projectTypeSearch.vue"
|
// import projectTypeSearch from "./components/projectTypeSearch.vue"
|
||||||
import baseConfigAdd from "./baseConfig-add"
|
|
||||||
import customerquality from '@/filters/customerquality'
|
import customerquality from '@/filters/customerquality'
|
||||||
// import qmsKnowledgeBaseAdd from "./components/qmsKnowledgeBase-add.vue"
|
// import qmsKnowledgeBaseAdd from "./components/qmsKnowledgeBase-add.vue"
|
||||||
import InnerTable from "./innerTable"
|
|
||||||
import i18n from "@/i18n"
|
import i18n from "@/i18n"
|
||||||
// import i18n from "@/i18n";
|
// import i18n from "@/i18n";
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
@ -48,13 +40,8 @@ const tableProps = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "categoryName",
|
prop: "categoryName",
|
||||||
label: i18n.t('uploadFile'),
|
label: i18n.t('customerquality.category'),
|
||||||
},
|
}
|
||||||
{
|
|
||||||
prop: "code",
|
|
||||||
label: i18n.t('customerquality.file'),
|
|
||||||
subcomponent: InnerTable
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
const tableBtn = [
|
const tableBtn = [
|
||||||
{
|
{
|
||||||
@ -64,13 +51,14 @@ const tableBtn = [
|
|||||||
{
|
{
|
||||||
type: "delete",
|
type: "delete",
|
||||||
btnName: i18n.t('delete'),
|
btnName: i18n.t('delete'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "configuration",
|
||||||
|
btnName: i18n.t('delete'),
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
export default {
|
export default {
|
||||||
mixins: [basicPage],
|
mixins: [basicPage],
|
||||||
components: {
|
|
||||||
baseConfigAdd,
|
|
||||||
},
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
urlOptions: {
|
urlOptions: {
|
||||||
@ -79,23 +67,7 @@ export default {
|
|||||||
exportURL: '/customerquality/qmsKnowledgeBase/export'
|
exportURL: '/customerquality/qmsKnowledgeBase/export'
|
||||||
},
|
},
|
||||||
tableBtn,
|
tableBtn,
|
||||||
baseConfigAddShow:[],
|
|
||||||
formConfig: [
|
|
||||||
{
|
|
||||||
type: "button",
|
|
||||||
btnName: i18n.t('search'),
|
|
||||||
name: "search",
|
|
||||||
color: "primary",
|
|
||||||
// plain: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "button",
|
|
||||||
btnName: i18n.t('add'),
|
|
||||||
name: "add",
|
|
||||||
color: "success",
|
|
||||||
plain: true
|
|
||||||
},
|
|
||||||
],
|
|
||||||
tableProps,
|
tableProps,
|
||||||
tableData: [],
|
tableData: [],
|
||||||
drawer: false,
|
drawer: false,
|
||||||
@ -111,90 +83,12 @@ export default {
|
|||||||
// this.dataForm.dictTypeId = dictTypeId || "";
|
// this.dataForm.dictTypeId = dictTypeId || "";
|
||||||
this.drawer = true
|
this.drawer = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.getDataList()
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
buttonClick(val) {
|
handleClick(){
|
||||||
console.log(val)
|
|
||||||
switch (val.btnName) {
|
|
||||||
case "search":
|
|
||||||
// this.listQuery.paramCode = val.paramCode;
|
|
||||||
// this.listQuery.supplierName = val.supplierName ? val.supplierName : undefined
|
|
||||||
// this.listQuery.supplierStatus = val.supplierStatus ? val.supplierStatus : undefined
|
|
||||||
// this.listQuery.supplierTypeId = val.supplierTypeId ? val.supplierTypeId : undefined
|
|
||||||
// this.listQuery.ment = this.ment ? this.ment : undefined
|
|
||||||
// console.log(i18n);
|
|
||||||
this.listQuery.page = 1;
|
|
||||||
this.getDataList()
|
|
||||||
break;
|
|
||||||
// case "export":
|
|
||||||
// // this.listQuery.paramCode = val.paramCode;
|
|
||||||
// this.exportHandle()
|
|
||||||
// break;
|
|
||||||
case "add":
|
|
||||||
// this.addOrEditTitle = '新增'
|
|
||||||
// this.addOrUpdateVisible = true;
|
|
||||||
this.baseConfigAddShow = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs.baseConfigAddList.init()
|
|
||||||
})
|
|
||||||
// this.addOrUpdateHandle()
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getDataList() {
|
|
||||||
this.dataListLoading = true;
|
|
||||||
this.$http
|
|
||||||
.get(this.urlOptions.getDataListURL, {
|
|
||||||
params: this.listQuery,
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
if (res.code !== 0) {
|
|
||||||
this.tableData = [];
|
|
||||||
this.listQuery.total = 0;
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.tableData = res.data.list;
|
|
||||||
this.listQuery.total = res.data.total;
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
})
|
|
||||||
},
|
|
||||||
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.baseConfigAddShow = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs.baseConfigAddList.init(val.data.id)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -1,173 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zhp
|
|
||||||
* @Date: 2023-07-14 13:44:46
|
|
||||||
* @LastEditTime: 2023-07-17 16:55:03
|
|
||||||
* @LastEditors: zhp
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<div>
|
|
||||||
<el-drawer close-on-press-escape:title="$t('add')" :append-to-body="true" :before-close="handleClose"
|
|
||||||
:visible.sync="innerDrawer">
|
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()"
|
|
||||||
label-width="120px">
|
|
||||||
<el-form-item prop="requirementListId" :label="$t('customerquality.requirementListName')">
|
|
||||||
<el-select v-model="dataForm.requirementListId" :placeholder="$t('customerquality.requirementListName')">
|
|
||||||
<el-option v-for="item in requirementList" :key="item.id" :label="item.requirementListName"
|
|
||||||
:value="item.id">
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item prop="knowledgeBaseId" :label="$t('customerquality.knowledgeBaseName')">
|
|
||||||
<el-select v-model="dataForm.knowledgeBaseId" :placeholder="$t('customerquality.knowledgeBaseName')">
|
|
||||||
<el-option v-for="item in knowledgeBaseList" :key="item.id" :label="item.knowledgeBaseName"
|
|
||||||
:value="item.id">
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item>
|
|
||||||
<el-button @click="innerDrawer = false">{{ $t('cancel') }} </el-button>
|
|
||||||
<el-button type="primary" @click="dataFormSubmit"> {{ $t('confirm') }}</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
</el-drawer>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import i18n from "@/i18n"
|
|
||||||
import basicAdd from "@/mixins/basic-add"
|
|
||||||
import debounce from "lodash/debounce"
|
|
||||||
export default {
|
|
||||||
mixins: [basicAdd],
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
urlOptions: {
|
|
||||||
submitURL: "/customerquality/qmsKnowledgeBaseRequirementList",
|
|
||||||
getRequirementListURL: "/customerquality/qmsCustomerQualityRequirementList/page",
|
|
||||||
getKnowledgeBaseURL: "/customerquality/qmsKnowledgeBase/page"
|
|
||||||
},
|
|
||||||
dataForm: {
|
|
||||||
knowledgeBaseId: null,
|
|
||||||
requirementListId:null
|
|
||||||
},
|
|
||||||
innerDrawer: false,
|
|
||||||
listQuery: {
|
|
||||||
limit: 10,
|
|
||||||
page:1,
|
|
||||||
},
|
|
||||||
requirementList: [],
|
|
||||||
knowledgeBaseList:[],
|
|
||||||
}
|
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
dataRule() {
|
|
||||||
return {
|
|
||||||
knowledgeBaseId: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: this.$t("validate.required"),
|
|
||||||
trigger: "change",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
requirementListId: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: this.$t("validate.required"),
|
|
||||||
trigger: "change",
|
|
||||||
},
|
|
||||||
]
|
|
||||||
};
|
|
||||||
},
|
|
||||||
},
|
|
||||||
mounted () {
|
|
||||||
this.getDict()
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
init(id) {
|
|
||||||
this.dataForm.id = id || ''
|
|
||||||
this.innerDrawer = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs["dataForm"].resetFields()
|
|
||||||
if (this.dataForm.id) {
|
|
||||||
this.getInfo()
|
|
||||||
} else {
|
|
||||||
// this.getCode()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
handleClose() {
|
|
||||||
this.innerDrawer = true
|
|
||||||
this.$refs.dataForm.resetFields()
|
|
||||||
},
|
|
||||||
getInfo() {
|
|
||||||
this.$http
|
|
||||||
.get(`/customerquality/qmsKnowledgeBaseRequirementList/${this.dataForm.id}`)
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
if (res.code !== 0) {
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.dataForm = {
|
|
||||||
...this.dataForm,
|
|
||||||
...res.data,
|
|
||||||
};
|
|
||||||
})
|
|
||||||
.catch(() => { });
|
|
||||||
},
|
|
||||||
getDict() {
|
|
||||||
this.$http
|
|
||||||
.get(this.urlOptions.getRequirementListURL, {
|
|
||||||
params: this.listQuery
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
if (res.code === 0) {
|
|
||||||
console.log(res);
|
|
||||||
this.requirementList = res.data.list
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
})
|
|
||||||
this.$http
|
|
||||||
.get(this.urlOptions.getKnowledgeBaseURL, {
|
|
||||||
params: this.listQuery
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
if (res.code === 0) {
|
|
||||||
console.log(res);
|
|
||||||
this.knowledgeBaseList = res.data.list
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 表单提交
|
|
||||||
dataFormSubmit() {
|
|
||||||
this.$refs["dataForm"].validate((valid) => {
|
|
||||||
if (!valid) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
this.$http[!this.dataForm.id ? "post" : "put"](this.urlOptions.submitURL, this.dataForm)
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
if (res.code !== 0) {
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.$message({
|
|
||||||
message: this.$t("prompt.success"),
|
|
||||||
type: "success",
|
|
||||||
duration: 500,
|
|
||||||
onClose: () => {
|
|
||||||
this.innerDrawer = false;
|
|
||||||
this.$emit("refreshDataList");
|
|
||||||
},
|
|
||||||
});
|
|
||||||
})
|
|
||||||
.catch(() => { });
|
|
||||||
});
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
|
|
||||||
</style>
|
|
@ -1,164 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zhp
|
|
||||||
* @Date: 2023-04-18 09:19:02
|
|
||||||
* @LastEditTime: 2023-07-17 16:59:22
|
|
||||||
* @LastEditors: zhp
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<div>
|
|
||||||
<el-popover placement="right" width="400" trigger="click">
|
|
||||||
<SearchBar :formConfigs="formConfig" ref="ruleForm" @headBtnClick="buttonClick">
|
|
||||||
<!-- <el-badge :value="5" class="item">
|
|
||||||
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
|
||||||
</el-badge> -->
|
|
||||||
</SearchBar>
|
|
||||||
<base-table id="palletTable" :table-props="tableProps" ref="palletTable1" :table-data="tableData">
|
|
||||||
</base-table>
|
|
||||||
<i slot="reference" class="el-icon-plus" @click="showInnerTable(injectData.id)" />
|
|
||||||
</el-popover>
|
|
||||||
<baseConfigFile-add ref="baseConfigFileAddList" v-if="baseConfigFileAddShow" @refreshDataList="getDataList"></baseConfigFile-add>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<script>
|
|
||||||
import i18n from "@/i18n"
|
|
||||||
import { timeFormatter } from '@/filters'
|
|
||||||
import baseConfigFileAdd from "./baseConfigFile-add"
|
|
||||||
|
|
||||||
const tableProps = [
|
|
||||||
{
|
|
||||||
prop: "stageOneName",
|
|
||||||
label: i18n.t('researchquality.stageOneName'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: "stageOneDate",
|
|
||||||
label: i18n.t('researchquality.stageOneDate'),
|
|
||||||
filter: timeFormatter
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: "stageTwoName",
|
|
||||||
label: i18n.t('researchquality.stageTwoName'),
|
|
||||||
},,
|
|
||||||
{
|
|
||||||
prop: "stageTwoDate",
|
|
||||||
label: i18n.t('researchquality.stageTwoDate'),
|
|
||||||
filter: timeFormatter
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: "stageThreeName",
|
|
||||||
label: i18n.t('researchquality.stageThreeName'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: "stageThreeDate",
|
|
||||||
label: i18n.t('researchquality.stageThreeDate'),
|
|
||||||
filter: timeFormatter
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: "stageFourName",
|
|
||||||
label: i18n.t('researchquality.stageFourName'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: "stageFourDate",
|
|
||||||
label: i18n.t('researchquality.stageFourDate'),
|
|
||||||
filter: timeFormatter
|
|
||||||
}
|
|
||||||
];
|
|
||||||
export default {
|
|
||||||
name: 'InnerTable',
|
|
||||||
props: {
|
|
||||||
injectData: {
|
|
||||||
type: Object,
|
|
||||||
default: () => ({})
|
|
||||||
},
|
|
||||||
itemProp: {
|
|
||||||
type: String
|
|
||||||
}
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
tableProps,
|
|
||||||
list: this.injectData,
|
|
||||||
urlOptions: {
|
|
||||||
submitURL: "/customerquality/qmsPublicDocuments",
|
|
||||||
infoURL: "/customerquality/qmsPublicDocuments//{id}",
|
|
||||||
getCodeURL: '/customerquality/qmsPublicDocuments/getCode',
|
|
||||||
getDataListURL: '/customerquality/knowledgeBaseRequirementListData/page'
|
|
||||||
},
|
|
||||||
baseConfigFileAddShow:false,
|
|
||||||
tableData: [],
|
|
||||||
listQuery: {
|
|
||||||
limit: 10,
|
|
||||||
page:1,
|
|
||||||
},
|
|
||||||
formConfig: [
|
|
||||||
{
|
|
||||||
type: "button",
|
|
||||||
btnName: i18n.t('search'),
|
|
||||||
name: "search",
|
|
||||||
color: "primary",
|
|
||||||
// plain: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "button",
|
|
||||||
btnName: i18n.t('add'),
|
|
||||||
name: "add",
|
|
||||||
color: "success",
|
|
||||||
plain: true
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}
|
|
||||||
},
|
|
||||||
components: {
|
|
||||||
baseConfigFileAdd,
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
buttonClick(val) {
|
|
||||||
console.log(val)
|
|
||||||
switch (val.btnName) {
|
|
||||||
case "search":
|
|
||||||
this.listQuery.page = 1;
|
|
||||||
this.getDataList()
|
|
||||||
break;
|
|
||||||
// case "export":
|
|
||||||
// // this.listQuery.paramCode = val.paramCode;
|
|
||||||
// this.exportHandle()
|
|
||||||
// break;
|
|
||||||
case "add":
|
|
||||||
// this.addOrEditTitle = '新增'
|
|
||||||
// this.addOrUpdateVisible = true;
|
|
||||||
this.baseConfigFileAddShow = true
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.$refs.baseConfigFileAddList.init(this.injectData.id)
|
|
||||||
})
|
|
||||||
// this.addOrUpdateHandle()
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
}
|
|
||||||
},
|
|
||||||
showInnerTable() {
|
|
||||||
this.listQuery.knowledgeBaseRequirementListId = this.injectData.id
|
|
||||||
this.getDataList()
|
|
||||||
},
|
|
||||||
getDataList() {
|
|
||||||
this.dataListLoading = true;
|
|
||||||
this.$http
|
|
||||||
.get(this.urlOptions.getDataListURL, {
|
|
||||||
params: this.listQuery,
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
if (res.code !== 0) {
|
|
||||||
this.tableData = [];
|
|
||||||
this.listQuery.total = 0;
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.tableData = res.data.list;
|
|
||||||
this.listQuery.total = res.data.total;
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
})
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-17 15:50:39
|
* @LastEditTime: 2023-07-14 10:28:15
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import debounce from "lodash/debounce";
|
import debounce from "lodash/debounce";
|
||||||
import basicAdd from "@/mixins/basic-add"
|
import basicAdd from "@/mixins/basic-add";
|
||||||
export default {
|
export default {
|
||||||
mixins: [basicAdd],
|
mixins: [basicAdd],
|
||||||
data() {
|
data() {
|
||||||
@ -119,7 +119,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
// this.getCode()
|
// this.getCode()
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
// getCode() {
|
// getCode() {
|
||||||
// this.$http
|
// this.$http
|
||||||
|
@ -0,0 +1,336 @@
|
|||||||
|
<!--
|
||||||
|
* @Author: zhp
|
||||||
|
* @Date: 2023-02-14 15:02:26
|
||||||
|
* @LastEditTime: 2023-07-13 14:49:30
|
||||||
|
* @LastEditors: zhp
|
||||||
|
* @Description:
|
||||||
|
-->
|
||||||
|
<template>
|
||||||
|
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()"
|
||||||
|
label-width="120px">
|
||||||
|
<el-form-item prop="registrationDate" :label="$t('researchquality.registrationDate')">
|
||||||
|
<el-date-picker v-model="dataForm.registrationDate" type="datetime"
|
||||||
|
:placeholder="$t('researchquality.registrationDate')">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="changeSource" :label="$t('researchquality.changeSource')">
|
||||||
|
<el-select v-model="dataForm.changeSource" :placeholder="$t('researchquality.changeSource')">
|
||||||
|
<el-option v-for="item in changeSourceList" :key="item.id" :label="item.name" :value="item.id">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="sourceRemark" :label="$t('researchquality.sourceRemark')">
|
||||||
|
<el-input v-model="dataForm.sourceRemark" :placeholder="$t('researchquality.sourceRemark')">
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="owner" :label="$t('researchquality.owner')">
|
||||||
|
<el-select v-model="dataForm.owner" :placeholder="$t('researchquality.owner')">
|
||||||
|
<el-option v-for="item in userList" :key="item.id" :label="item.realName" :value="item.id">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="title" :label="$t('researchquality.title')">
|
||||||
|
<el-input v-model="dataForm.title" :placeholder="$t('researchquality.title')">
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="processId" :label="$t('researchquality.processName')">
|
||||||
|
<el-select v-model="dataForm.processId" :placeholder="$t('researchquality.processName')">
|
||||||
|
<el-option v-for="item in processList" :key="item.id" :label="item.processName" :value="item.id">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="productId" :label="$t('researchquality.productName')">
|
||||||
|
<el-select v-model="dataForm.productId" :placeholder="$t('researchquality.productName')">
|
||||||
|
<el-option v-for="item in productList" :key="item.id" :label="item.productName" :value="item.id">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="processId" :label="$t('researchquality.productTypeName')">
|
||||||
|
<el-select v-model="dataForm.processId" :placeholder="$t('researchquality.productTypeName')">
|
||||||
|
<el-option v-for="item in productTypeList" :key="item.id" :label="item.productTypeName" :value="item.id">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="temporaryChange" :label="$t('researchquality.temporaryChange')">
|
||||||
|
<el-switch v-model="dataForm.temporaryChange" :active-value="1" :inactive-value="0"></el-switch>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-row :gutter="20">
|
||||||
|
<el-col :span="12"> {{ this.$t('researchquality.planPhase') }} </el-col>
|
||||||
|
<el-col :span="12"> {{ this.$t('researchquality.planTime') }} </el-col>
|
||||||
|
</el-row> -->
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item prop="stageOneName" :label="$t('researchquality.stageOneName')">
|
||||||
|
<el-input v-model="dataForm.stageOneName" :placeholder="$t('researchquality.stageOneName')">
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item prop="stageOneDate" :label="$t('researchquality.stageOneDate')">
|
||||||
|
<el-date-picker v-model="dataForm.stageOneDate" type="datetime"
|
||||||
|
:placeholder="$t('researchquality.stageOneDate')">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item prop="stageTwoName" :label="$t('researchquality.stageTwoName')">
|
||||||
|
<el-input v-model="dataForm.stageTwoName" :placeholder="$t('researchquality.stageTwoName')">
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item prop="stageTwoDate" :label="$t('researchquality.stageTwoDate')">
|
||||||
|
<el-date-picker v-model="dataForm.stageTwoDate" type="datetime"
|
||||||
|
:placeholder="$t('researchquality.stageTwoDate')">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item prop="stageThreeName" :label="$t('researchquality.stageThreeName')">
|
||||||
|
<el-input v-model="dataForm.stageThreeName" :placeholder="$t('researchquality.stageThreeName')">
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item prop="stageThreeDate" :label="$t('researchquality.stageThreeDate')">
|
||||||
|
<el-date-picker v-model="dataForm.stageThreeDate" type="datetime"
|
||||||
|
:placeholder="$t('researchquality.stageThreeDate')">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item prop="stageFourName" :label="$t('researchquality.stageFourName')">
|
||||||
|
<el-input v-model="dataForm.stageFourName" :placeholder="$t('researchquality.stageFourName')">
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item prop="stageFourDate" :label="$t('researchquality.stageFourDate')">
|
||||||
|
<el-date-picker v-model="dataForm.stageFourDate" type="datetime"
|
||||||
|
:placeholder="$t('researchquality.stageFourDate')">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<!-- <el-form-item prop="productTypeStatus" :label="$t('basic.status')">
|
||||||
|
<el-select v-model="dataForm.productTypeStatus" :placeholder="$t('basic.status')">
|
||||||
|
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item> -->
|
||||||
|
</el-form>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import debounce from "lodash/debounce";
|
||||||
|
import basicAdd from "@/mixins/basic-add";
|
||||||
|
export default {
|
||||||
|
mixins: [basicAdd],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
urlOptions: {
|
||||||
|
submitURL: "/supplier/qmsSupplier",
|
||||||
|
infoURL: "/supplier/qmsSupplier/{id}",
|
||||||
|
getUserURL: '/sys/user/page',
|
||||||
|
getProcessURL: '/basic/qmsProcess/page',
|
||||||
|
getProductURL: '/basic/qmsProduct/page',
|
||||||
|
getProductTypeURL: '/basic/qmsProductType/page',
|
||||||
|
getSupplierTypeListURL: '/supplier/qmsSupplierType/page'
|
||||||
|
},
|
||||||
|
userList: [],
|
||||||
|
processList: [],
|
||||||
|
productTypeList: [],
|
||||||
|
productList: [],
|
||||||
|
changeSourceList: [
|
||||||
|
{
|
||||||
|
id: 0,
|
||||||
|
name: '工程变更'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
name: '设计变更'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
name: 'CCB'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
visible: false,
|
||||||
|
listQuery: {
|
||||||
|
limit: 999,
|
||||||
|
page:1
|
||||||
|
},
|
||||||
|
dataForm: {
|
||||||
|
id: "",
|
||||||
|
changeSource:null,
|
||||||
|
currentStage: null,
|
||||||
|
owner: null,
|
||||||
|
productId: null,
|
||||||
|
productName: null,
|
||||||
|
qualityChangeStatus: null,
|
||||||
|
registrationDate: null,
|
||||||
|
sourceRemark: null,
|
||||||
|
stageFourDate: null,
|
||||||
|
stageFourName: null,
|
||||||
|
stageOneDate: null,
|
||||||
|
stageOneName: null,
|
||||||
|
stageThreeDate: null,
|
||||||
|
stageThreeName: null,
|
||||||
|
stageTwoDate: null,
|
||||||
|
stageTwoName: null,
|
||||||
|
temporaryChange: null,
|
||||||
|
title: null,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
dataRule() {
|
||||||
|
return {
|
||||||
|
code: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t("validate.required"),
|
||||||
|
trigger: "blur",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
name: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t("validate.required"),
|
||||||
|
trigger: "blur",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
ment: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t("validate.required"),
|
||||||
|
trigger: "change",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
supplierStatus: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t("validate.required"),
|
||||||
|
trigger: "change",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init(id, ) {
|
||||||
|
this.dataForm.id = id || ""
|
||||||
|
// this.dataForm.dictTypeId = dictTypeId || "";
|
||||||
|
this.visible = true;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs["dataForm"].resetFields();
|
||||||
|
if (this.dataForm.id) {
|
||||||
|
this.getInfo();
|
||||||
|
} else {
|
||||||
|
this.getCode()
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getCode() {
|
||||||
|
this.$http
|
||||||
|
.get(this.urlOptions.getUserURL, {
|
||||||
|
params: this.listQuery
|
||||||
|
})
|
||||||
|
.then(({ data: res }) => {
|
||||||
|
if (res.code === 0) {
|
||||||
|
console.log(res);
|
||||||
|
this.userList = res.data.list
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
})
|
||||||
|
this.$http
|
||||||
|
.get(this.urlOptions.getProcessURL, {
|
||||||
|
params: this.listQuery
|
||||||
|
})
|
||||||
|
.then(({ data: res }) => {
|
||||||
|
if (res.code === 0) {
|
||||||
|
console.log(res);
|
||||||
|
this.processList = res.data.list
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
})
|
||||||
|
this.$http
|
||||||
|
.get(this.urlOptions.getProductURL, {
|
||||||
|
params: this.listQuery
|
||||||
|
})
|
||||||
|
.then(({ data: res }) => {
|
||||||
|
if (res.code === 0) {
|
||||||
|
console.log(res);
|
||||||
|
this.productList = res.data.list
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
})
|
||||||
|
this.$http
|
||||||
|
.get(this.urlOptions.getProductTypeURL, {
|
||||||
|
params: this.listQuery
|
||||||
|
})
|
||||||
|
.then(({ data: res }) => {
|
||||||
|
if (res.code === 0) {
|
||||||
|
console.log(res);
|
||||||
|
this.productTypeList = res.data.list
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 获取信息
|
||||||
|
getInfo() {
|
||||||
|
this.$http
|
||||||
|
.get(`/supplier/qmsSupplier/${this.dataForm.id}`)
|
||||||
|
.then(({ data: res }) => {
|
||||||
|
if (res.code !== 0) {
|
||||||
|
return this.$message.error(res.msg);
|
||||||
|
}
|
||||||
|
this.dataForm = {
|
||||||
|
...this.dataForm,
|
||||||
|
...res.data,
|
||||||
|
};
|
||||||
|
})
|
||||||
|
.catch(() => {});
|
||||||
|
},
|
||||||
|
// 表单提交
|
||||||
|
dataFormSubmitHandle: debounce(
|
||||||
|
function () {
|
||||||
|
this.$refs["dataForm"].validate((valid) => {
|
||||||
|
if (!valid) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
this.$http[!this.dataForm.id ? "post" : "put"](this.urlOptions.submitURL, this.dataForm)
|
||||||
|
.then(({ data: res }) => {
|
||||||
|
if (res.code !== 0) {
|
||||||
|
return this.$message.error(res.msg);
|
||||||
|
}
|
||||||
|
this.$message({
|
||||||
|
message: this.$t("prompt.success"),
|
||||||
|
type: "success",
|
||||||
|
duration: 500,
|
||||||
|
onClose: () => {
|
||||||
|
console.log(1111);
|
||||||
|
this.visible = false;
|
||||||
|
this.$emit("successSubmit");
|
||||||
|
},
|
||||||
|
});
|
||||||
|
})
|
||||||
|
.catch(() => {});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
1000,
|
||||||
|
{ leading: true, trailing: false }
|
||||||
|
),
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
281
src/views/modules/customerquality/qmsQualityChange.vue
Normal file
281
src/views/modules/customerquality/qmsQualityChange.vue
Normal file
@ -0,0 +1,281 @@
|
|||||||
|
<!--
|
||||||
|
* @Author: zhp
|
||||||
|
* @Date: 2023-04-17 14:23:17
|
||||||
|
* @LastEditTime: 2023-07-13 14:06:42
|
||||||
|
* @LastEditors: zhp
|
||||||
|
* @Description:
|
||||||
|
-->
|
||||||
|
<template>
|
||||||
|
<el-card shadow="never" class="aui-card--fill">
|
||||||
|
<div class="mod-sys__user">
|
||||||
|
<SearchBar :formConfigs="formConfig" ref="ruleForm" @headBtnClick="buttonClick">
|
||||||
|
<el-badge :value="5" class="item">
|
||||||
|
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
||||||
|
</el-badge>
|
||||||
|
</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="操作" :method-list="tableBtn"
|
||||||
|
@clickBtn="handleClick" />
|
||||||
|
</base-table>
|
||||||
|
<pagination :limit.sync="listQuery.limit" :page.sync="listQuery.page" :total="listQuery.total"
|
||||||
|
@pagination="getDataList" />
|
||||||
|
<!-- 弹窗, 新增 / 修改 -->
|
||||||
|
<base-dialog :dialogTitle="addOrEditTitle" :dialogVisible="addOrUpdateVisible" @cancel="handleCancel"
|
||||||
|
@confirm="handleConfirm" :before-close="handleCancel">
|
||||||
|
<qualityChange-add ref="addOrUpdate" @refreshDataList="successSubmit">
|
||||||
|
</qualityChange-add>
|
||||||
|
<!-- <el-row slot="footer" type="flex" justify="end"> </el-row> -->
|
||||||
|
</base-dialog>
|
||||||
|
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
||||||
|
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
||||||
|
<qualityChange-search ref="searchOrUpdate" @successSubmit="conditionSearchSubmit">
|
||||||
|
</qualityChange-search>
|
||||||
|
<el-row slot="footer" type="flex" justify="end">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-button size="small" type="primary" plain class="btnTextStyle" @click="handleSearchCancel">
|
||||||
|
{{ $t("close") }}
|
||||||
|
</el-button>
|
||||||
|
<el-button size="small" class="btnTextStyle" type="primary" plain @click="handleSearchReset">{{
|
||||||
|
$t("reset")
|
||||||
|
}}</el-button>
|
||||||
|
<el-button type="primary" size="small" class="btnTextStyle" @click="handleSearchConfirm">
|
||||||
|
{{ $t("search") }}
|
||||||
|
</el-button>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</base-dialog>
|
||||||
|
</div>
|
||||||
|
</el-card>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import basicPage from "@/mixins/basic-page"
|
||||||
|
import basicSearch from "@/mixins/basic-search"
|
||||||
|
import qualityChangeSearch from "./components/qualityChangeSearch.vue"
|
||||||
|
import qualityChangeAdd from "./components/qualityChange-add.vue"
|
||||||
|
import i18n from "@/i18n"
|
||||||
|
// import supplier from '@/filters/supplier'
|
||||||
|
const tableProps = [
|
||||||
|
{
|
||||||
|
prop: "code",
|
||||||
|
label: i18n.t('researchquality.code'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: "registrationDate",
|
||||||
|
label: i18n.t('researchquality.registrationDate'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: "changeSource",
|
||||||
|
label: i18n.t('researchquality.changeSource'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: "owner",
|
||||||
|
label: i18n.t('researchquality.owner'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: "category",
|
||||||
|
label: i18n.t('researchquality.category'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: "title",
|
||||||
|
label: i18n.t('researchquality.title'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: "currentStage",
|
||||||
|
label: i18n.t('researchquality.currentStage'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: "productName",
|
||||||
|
label: i18n.t('researchquality.productName'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: "qualityChangeStatus",
|
||||||
|
label: i18n.t('researchquality.qualityChangeStatus'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: "temporaryChange",
|
||||||
|
label: i18n.t('researchquality.temporaryChange'),
|
||||||
|
}
|
||||||
|
];
|
||||||
|
const tableBtn = [
|
||||||
|
{
|
||||||
|
type: "edit",
|
||||||
|
btnName: i18n.t('t.edit'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "delete",
|
||||||
|
btnName: i18n.t('t.delete'),
|
||||||
|
}
|
||||||
|
];
|
||||||
|
export default {
|
||||||
|
mixins: [basicPage, basicSearch],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
urlOptions: {
|
||||||
|
getDataListURL: "/researchquality/qmsQualityChange/page",
|
||||||
|
deleteURL: "/researchquality/qmsQualityChange",
|
||||||
|
exportURL: '/researchquality/qmsQualityChange',
|
||||||
|
// getSupplierTypeListURL: '/supplier/qmsSupplierType/page'
|
||||||
|
// submitURL: '/supplier/qmsSupplierType'
|
||||||
|
},
|
||||||
|
tableProps,
|
||||||
|
ment: '',
|
||||||
|
tableBtn,
|
||||||
|
productData: {},
|
||||||
|
dataForm:{
|
||||||
|
limit: 999,
|
||||||
|
page:1
|
||||||
|
},
|
||||||
|
searchOrEditTitle: "",
|
||||||
|
searchOrUpdateVisible: false,
|
||||||
|
productOrEditTitle: "",
|
||||||
|
addOrEditTitle: '',
|
||||||
|
addOrUpdateVisible: false,
|
||||||
|
productOrUpdateVisible: false,
|
||||||
|
formConfig: [
|
||||||
|
// {
|
||||||
|
// type: "",
|
||||||
|
// label: i18n.t("params.paramCode"),
|
||||||
|
// placeholder: i18n.t("params.paramCode"),
|
||||||
|
// param: "paramCode",
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// type: "separate",
|
||||||
|
// },
|
||||||
|
{
|
||||||
|
type: "button",
|
||||||
|
btnName: i18n.t('search'),
|
||||||
|
name: "search",
|
||||||
|
color: "primary",
|
||||||
|
// plain: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "button",
|
||||||
|
btnName: i18n.t('add'),
|
||||||
|
name: "add",
|
||||||
|
color: "success",
|
||||||
|
plain: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "button",
|
||||||
|
btnName: i18n.t('export'),
|
||||||
|
name: "export",
|
||||||
|
color: "primary",
|
||||||
|
plain: true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
};
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
qualityChangeSearch,
|
||||||
|
// supplierProduct,
|
||||||
|
qualityChangeAdd
|
||||||
|
},
|
||||||
|
// mounted () {
|
||||||
|
// this.getData();
|
||||||
|
// },
|
||||||
|
methods: {
|
||||||
|
//search-bar点击
|
||||||
|
handleProductCancel() {
|
||||||
|
this.productOrUpdateVisible = false;
|
||||||
|
this.productOrEditTitle = "";
|
||||||
|
},
|
||||||
|
handleCurrentChange(val) {
|
||||||
|
console.log(val);
|
||||||
|
this.productData = val.newVal ? val.newVal : {}
|
||||||
|
},
|
||||||
|
setCurrent(index) {
|
||||||
|
this.$refs.palletTable1.setCurrent("palletTable", index);
|
||||||
|
},
|
||||||
|
// handleSearchCancel() {
|
||||||
|
// this.searchOrEditTitle = "";
|
||||||
|
// this.searchOrUpdateVisible = false;
|
||||||
|
// },
|
||||||
|
conditionSearch() {
|
||||||
|
this.searchOrEditTitle = "搜索";
|
||||||
|
this.searchOrUpdateVisible = true;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.searchOrUpdate.init();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// handleConfirm() {
|
||||||
|
// this.$refs.addOrUpdate.dataFormSubmitHandle();
|
||||||
|
// },
|
||||||
|
// conditionSearchSubmit() {},
|
||||||
|
conditionSearchSubmit(dataForm) {
|
||||||
|
// console.log(key);
|
||||||
|
// console.log(key);
|
||||||
|
this.listQuery.supplierName = dataForm.supplierName
|
||||||
|
this.listQuery.page = 1;
|
||||||
|
this.getDataList();
|
||||||
|
this.searchOrUpdateVisible = false;
|
||||||
|
// 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.addOrUpdateVisible = true
|
||||||
|
this.addOrEditTitle = this.$t('edit')
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.addOrUpdate.init(val.data.id);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// addOrUpdateHandle(productData) {
|
||||||
|
// this.addOrUpdateVisible = true;
|
||||||
|
// this.$nextTick(() => {
|
||||||
|
// this.$refs.addOrUpdate.init(productData);
|
||||||
|
// });
|
||||||
|
// },
|
||||||
|
buttonClick(val) {
|
||||||
|
console.log(val)
|
||||||
|
switch (val.btnName) {
|
||||||
|
case "search":
|
||||||
|
// this.listQuery.paramCode = val.paramCode;
|
||||||
|
this.listQuery.supplierName = val.supplierName ? val.supplierName : undefined
|
||||||
|
this.listQuery.supplierStatus = val.supplierStatus ? val.supplierStatus : undefined
|
||||||
|
this.listQuery.supplierTypeId = val.supplierTypeId ? val.supplierTypeId : undefined
|
||||||
|
this.listQuery.ment = this.ment ? this.ment : undefined
|
||||||
|
// console.log(i18n);
|
||||||
|
this.listQuery.page = 1;
|
||||||
|
this.getDataList();
|
||||||
|
break;
|
||||||
|
case "export":
|
||||||
|
// this.listQuery.paramCode = val.paramCode;
|
||||||
|
this.exportHandle()
|
||||||
|
break;
|
||||||
|
case "add":
|
||||||
|
this.addOrEditTitle = '新增'
|
||||||
|
this.addOrUpdateVisible = true;
|
||||||
|
this.addOrUpdateHandle()
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-17 10:23:54
|
* @LastEditTime: 2023-06-20 15:25:08
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -18,8 +18,8 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="inspectionTime" :label="$t('code.inspectionTime')">
|
<el-form-item prop="inspectionTime" :label="$t('code.inspectionTime')">
|
||||||
<el-date-picker v-model="dataForm.inspectionTime" type="datetime"
|
<el-date-picker v-model="dataForm.inspectionTime" type="datetime" :placeholder="$t('code.inspectionTime')"
|
||||||
:placeholder="$t('code.inspectionTime')" format='yyyy-MM-dd HH:mm:ss' valueFormat='yyyy-MM-ddTHH:mm:ss'>
|
format='yyyy-MM-dd HH:mm:ss' valueFormat='yyyy-MM-ddTHH:mm:ss'>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -69,16 +69,14 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="batchQuantity" :label="$t('code.batchQuantity')">
|
<el-form-item prop="batchQuantity" :label="$t('code.batchQuantity')">
|
||||||
<el-input v-model="dataForm.batchQuantity" :placeholder="$t('code.batchQuantity')">
|
<el-input v-model="dataForm.batchQuantity" :placeholder="$t('code.batchQuantity')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="inspectionQuantity" :label="$t('code.inspectionQuantity')">
|
<el-form-item prop="inspectionQuantity" :label="$t('code.inspectionQuantity')">
|
||||||
<el-input v-model="dataForm.inspectionQuantity"
|
<el-input v-model="dataForm.inspectionQuantity" :placeholder="$t('code.inspectionQuantity')"></el-input>
|
||||||
:placeholder="$t('code.inspectionQuantity')"></el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
@ -88,8 +86,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="samplesQuantity" :label="$t('code.samplesQuantity')">
|
<el-form-item prop="samplesQuantity" :label="$t('code.samplesQuantity')">
|
||||||
<el-input v-model="dataForm.samplesQuantity" :placeholder="$t('code.samplesQuantity')">
|
<el-input v-model="dataForm.samplesQuantity" :placeholder="$t('code.samplesQuantity')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -105,7 +102,7 @@
|
|||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="userId" :label="$t('code.username')">
|
<el-form-item prop="userId" :label="$t('code.username')">
|
||||||
<el-select v-model="dataForm.userId" :placeholder="$t('code.username')">
|
<el-select v-model="dataForm.userId" :placeholder="$t('code.username')">
|
||||||
<el-option v-for="item in userList" :key="item.id" :label="item.realName" :value="item.id">
|
<el-option v-for="item in unitList" :key="item.id" :label="item.realName" :value="item.id">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-17 10:23:45
|
* @LastEditTime: 2023-06-20 15:28:55
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -19,8 +19,8 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="inspectionTime" :label="$t('code.inspectionTime')">
|
<el-form-item prop="inspectionTime" :label="$t('code.inspectionTime')">
|
||||||
<el-date-picker v-model="dataForm.inspectionTime" type="datetime"
|
<el-date-picker v-model="dataForm.inspectionTime" type="datetime" :placeholder="$t('code.inspectionTime')"
|
||||||
:placeholder="$t('code.inspectionTime')" format='yyyy-MM-dd HH:mm:ss' valueFormat='yyyy-MM-ddTHH:mm:ss'>
|
format='yyyy-MM-dd HH:mm:ss' valueFormat='yyyy-MM-ddTHH:mm:ss'>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -70,16 +70,14 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="batchQuantity" :label="$t('code.batchQuantity')">
|
<el-form-item prop="batchQuantity" :label="$t('code.batchQuantity')">
|
||||||
<el-input v-model="dataForm.batchQuantity" :placeholder="$t('code.batchQuantity')">
|
<el-input v-model="dataForm.batchQuantity" :placeholder="$t('code.batchQuantity')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="inspectionQuantity" :label="$t('code.inspectionQuantity')">
|
<el-form-item prop="inspectionQuantity" :label="$t('code.inspectionQuantity')">
|
||||||
<el-input v-model="dataForm.inspectionQuantity"
|
<el-input v-model="dataForm.inspectionQuantity" :placeholder="$t('code.inspectionQuantity')"></el-input>
|
||||||
:placeholder="$t('code.inspectionQuantity')"></el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
@ -89,8 +87,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="samplesQuantity" :label="$t('code.samplesQuantity')">
|
<el-form-item prop="samplesQuantity" :label="$t('code.samplesQuantity')">
|
||||||
<el-input v-model="dataForm.samplesQuantity" :placeholder="$t('code.samplesQuantity')">
|
<el-input v-model="dataForm.samplesQuantity" :placeholder="$t('code.samplesQuantity')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -106,7 +103,7 @@
|
|||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item prop="userId" :label="$t('code.username')">
|
<el-form-item prop="userId" :label="$t('code.username')">
|
||||||
<el-select v-model="dataForm.userId" :placeholder="$t('code.username')">
|
<el-select v-model="dataForm.userId" :placeholder="$t('code.username')">
|
||||||
<el-option v-for="item in userList" :key="item.id" :label="item.realName" :value="item.id">
|
<el-option v-for="item in unitList" :key="item.id" :label="item.realName" :value="item.id">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -151,14 +148,12 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="criticalNumber" :label="$t('code.defectsNumber')">
|
<el-form-item prop="criticalNumber" :label="$t('code.defectsNumber')">
|
||||||
<el-input v-model="GBTDataForm.criticalNumber" :placeholder="$t('code.defectsNumber')">
|
<el-input v-model="GBTDataForm.criticalNumber" :placeholder="$t('code.defectsNumber')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="criticalDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
<el-form-item prop="criticalDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
||||||
<el-input v-model="GBTDataForm.criticalDefectiveNumber"
|
<el-input v-model="GBTDataForm.criticalDefectiveNumber" :placeholder="$t('code.defectiveQuantity')">
|
||||||
:placeholder="$t('code.defectiveQuantity')">
|
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -181,14 +176,12 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="majorNumber" :label="$t('code.defectsNumber')">
|
<el-form-item prop="majorNumber" :label="$t('code.defectsNumber')">
|
||||||
<el-input v-model="GBTDataForm.majorNumber" :placeholder="$t('code.defectsNumber')">
|
<el-input v-model="GBTDataForm.majorNumber" :placeholder="$t('code.defectsNumber')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="majorDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
<el-form-item prop="majorDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
||||||
<el-input v-model="GBTDataForm.majorDefectiveNumber"
|
<el-input v-model="GBTDataForm.majorDefectiveNumber" :placeholder="$t('code.defectiveQuantity')">
|
||||||
:placeholder="$t('code.defectiveQuantity')">
|
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -211,14 +204,12 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="minorNumber" :label="$t('code.defectsNumber')">
|
<el-form-item prop="minorNumber" :label="$t('code.defectsNumber')">
|
||||||
<el-input v-model="GBTDataForm.minorNumber" :placeholder="$t('code.defectsNumber')">
|
<el-input v-model="GBTDataForm.minorNumber" :placeholder="$t('code.defectsNumber')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="minorDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
<el-form-item prop="minorDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
||||||
<el-input v-model="GBTDataForm.minorDefectiveNumber"
|
<el-input v-model="GBTDataForm.minorDefectiveNumber" :placeholder="$t('code.defectiveQuantity')">
|
||||||
:placeholder="$t('code.defectiveQuantity')">
|
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -241,14 +232,12 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="totalNumber" :label="$t('code.defectsNumber')">
|
<el-form-item prop="totalNumber" :label="$t('code.defectsNumber')">
|
||||||
<el-input v-model="GBTDataForm.totalNumber" :placeholder="$t('code.defectsNumber')">
|
<el-input v-model="GBTDataForm.totalNumber" :placeholder="$t('code.defectsNumber')"></el-input>
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item prop="totalDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
<el-form-item prop="totalDefectiveNumber" :label="$t('code.defectiveQuantity')">
|
||||||
<el-input v-model="GBTDataForm.totalDefectiveNumber"
|
<el-input v-model="GBTDataForm.totalDefectiveNumber" :placeholder="$t('code.defectiveQuantity')">
|
||||||
:placeholder="$t('code.defectiveQuantity')">
|
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -256,6 +245,7 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import debounce from "lodash/debounce";
|
import debounce from "lodash/debounce";
|
||||||
import basicAdd from "@/mixins/basic-add";
|
import basicAdd from "@/mixins/basic-add";
|
||||||
@ -491,7 +481,7 @@ export default {
|
|||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.samplingPlanList = res.data.list
|
this.samplingPlanList = res.data
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
@ -503,7 +493,7 @@ export default {
|
|||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.userList = res.data.list
|
this.userList = res.data
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
@ -515,7 +505,7 @@ export default {
|
|||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.productList = res.data.list
|
this.productList = res.data
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
@ -531,7 +521,7 @@ export default {
|
|||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.unitList = res.data.list
|
this.unitList = res.data
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
@ -543,7 +533,7 @@ export default {
|
|||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.supplierList = res.data.list
|
this.supplierList = res.data
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
@ -555,7 +545,7 @@ export default {
|
|||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.factoryList = res.data.list
|
this.factoryList = res.data
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
@ -14,15 +14,14 @@
|
|||||||
<pagination :limit.sync="listQuery.limit" :page.sync="listQuery.page" :total="listQuery.total"
|
<pagination :limit.sync="listQuery.limit" :page.sync="listQuery.page" :total="listQuery.total"
|
||||||
@pagination="getDataList" />
|
@pagination="getDataList" />
|
||||||
<!-- 弹窗, 新增 / 修改 -->
|
<!-- 弹窗, 新增 / 修改 -->
|
||||||
<base-dialog width="70%" :dialogTitle="addOrEditTitle" :dialogVisible="addOrUpdateVisible" @cancel="handleCancel"
|
<base-dialog :dialogTitle="addOrEditTitle" :dialogVisible="addOrUpdateVisible" @cancel="handleCancel"
|
||||||
@confirm="handleConfirm" :before-close="handleCancel">
|
@confirm="handleConfirm" :before-close="handleCancel">
|
||||||
<incomingInspection-add ref="addOrUpdate" @successSubmit="successSubmit"></incomingInspection-add>
|
<incomingInspection-add ref="addOrUpdate" @successSubmit="successSubmit"></incomingInspection-add>
|
||||||
<!-- <el-row slot="footer" type="flex" justify="end"> </el-row> -->
|
<!-- <el-row slot="footer" type="flex" justify="end"> </el-row> -->
|
||||||
</base-dialog>
|
</base-dialog>
|
||||||
<base-dialog width="70%" :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible"
|
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
||||||
@cancel="handleSearchCancel" @confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
||||||
<incomingInspection-search ref="searchOrUpdate" @refreshDataList="conditionSearchSubmit">
|
<incomingInspection-search ref="searchOrUpdate" @refreshDataList="conditionSearchSubmit"></incomingInspection-search>
|
||||||
</incomingInspection-search>
|
|
||||||
<el-row slot="footer" type="flex" justify="end">
|
<el-row slot="footer" type="flex" justify="end">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-button size="small" type="primary" plain class="btnTextStyle" @click="handleSearchCancel">
|
<el-button size="small" type="primary" plain class="btnTextStyle" @click="handleSearchCancel">
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-06-12 13:22:50
|
* @Date: 2023-06-12 13:22:50
|
||||||
* @LastEditTime: 2023-07-17 10:28:46
|
* @LastEditTime: 2023-06-20 15:35:49
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -21,14 +21,14 @@
|
|||||||
<pagination :limit.sync="listQuery.limit" :page.sync="listQuery.page" :total="listQuery.total"
|
<pagination :limit.sync="listQuery.limit" :page.sync="listQuery.page" :total="listQuery.total"
|
||||||
@pagination="getDataList" />
|
@pagination="getDataList" />
|
||||||
<!-- 弹窗, 新增 / 修改 -->
|
<!-- 弹窗, 新增 / 修改 -->
|
||||||
<base-dialog width="70%" :dialogTitle="addOrEditTitle" :dialogVisible="addOrUpdateVisible" @cancel="handleCancel"
|
<base-dialog :dialogTitle="addOrEditTitle" :dialogVisible="addOrUpdateVisible" @cancel="handleCancel"
|
||||||
@confirm="handleConfirm" :before-close="handleCancel">
|
@confirm="handleConfirm" :before-close="handleCancel">
|
||||||
<purchaseRegistration-add ref="addOrUpdate" @successSubmit="successSubmit">
|
<purchaseRegistration-add ref="addOrUpdate" @successSubmit="successSubmit">
|
||||||
</purchaseRegistration-add>
|
</purchaseRegistration-add>
|
||||||
<!-- <el-row slot="footer" type="flex" justify="end"> </el-row> -->
|
<!-- <el-row slot="footer" type="flex" justify="end"> </el-row> -->
|
||||||
</base-dialog>
|
</base-dialog>
|
||||||
<base-dialog width="70%" :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible"
|
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
||||||
@cancel="handleSearchCancel" @confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
||||||
<purchaseRegistration-search ref="searchOrUpdate" @refreshDataList="conditionSearchSubmit">
|
<purchaseRegistration-search ref="searchOrUpdate" @refreshDataList="conditionSearchSubmit">
|
||||||
</purchaseRegistration-search>
|
</purchaseRegistration-search>
|
||||||
<el-row slot="footer" type="flex" justify="end">
|
<el-row slot="footer" type="flex" justify="end">
|
||||||
@ -49,13 +49,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import basicPage from "@/mixins/basic-page"
|
import basicPage from "@/mixins/basic-page";
|
||||||
import basicSearch from "@/mixins/basic-search"
|
import basicSearch from "@/mixins/basic-search";
|
||||||
import purchaseRegistrationSearch from "./components/purchaseRegistrationSearch.vue"
|
import purchaseRegistrationSearch from "./components/purchaseRegistrationSearch.vue";
|
||||||
import purchaseRegistrationAdd from "./components/purchaseRegistration-add.vue"
|
import purchaseRegistrationAdd from "./components/purchaseRegistration-add.vue";
|
||||||
import i18n from "@/i18n"
|
import i18n from "@/i18n";
|
||||||
import incoming from "@/filters/incoming";
|
|
||||||
|
|
||||||
// import i18n from "@/i18n";
|
// import i18n from "@/i18n";
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
@ -77,12 +75,10 @@ const tableProps = [
|
|||||||
{
|
{
|
||||||
prop: "upload",
|
prop: "upload",
|
||||||
label: i18n.t('code.upload'),
|
label: i18n.t('code.upload'),
|
||||||
filter: incoming('upload'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "judgmentResult",
|
prop: "judgmentResult",
|
||||||
label: i18n.t('code.judgmentResult'),
|
label: i18n.t('code.judgmentResult'),
|
||||||
filter: incoming('judgmentResult'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "productCode",
|
prop: "productCode",
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-01-31 14:12:10
|
* @Date: 2023-01-31 14:12:10
|
||||||
* @LastEditTime: 2023-07-17 16:14:43
|
* @LastEditTime: 2023-07-13 10:00:19
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<span>
|
<span>
|
||||||
<el-button type="text" @click="getExperienceDetail">{{ $t('detail') }} </el-button>
|
<el-button type="text" @click="getExperienceDetail">{{ $t('oss.type1') }} </el-button>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
getExperienceDetail() {
|
getExperienceDetail() {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'laboratory-qmsLaboratoryEmployeeResume',
|
name: 'laboratory-qmsLaboratoryTrainExperience',
|
||||||
query: {
|
query: {
|
||||||
laboratoryTesterId: this.injectData.userId
|
laboratoryTesterId: this.injectData.userId
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-05-15 14:27:30
|
* @Date: 2023-05-15 14:27:30
|
||||||
* @LastEditTime: 2023-07-17 16:13:47
|
* @LastEditTime: 2023-07-13 10:00:09
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -14,7 +14,7 @@
|
|||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<span>
|
<span>
|
||||||
<el-button type="text" @click="getInspectionDetail">{{ $t('detail') }} </el-button>
|
<el-button type="text" @click="getInspectionDetail">{{ $t('oss.type1') }} </el-button>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
getInspectionDetail() {
|
getInspectionDetail() {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'laboratory-qmsLaboratoryTrainExperience',
|
name: 'laboratory-qmsLaboratoryTesterInspectionQualification',
|
||||||
query: {
|
query: {
|
||||||
laboratoryTesterId: this.injectData.userId
|
laboratoryTesterId: this.injectData.userId
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-01-31 14:12:10
|
* @Date: 2023-01-31 14:12:10
|
||||||
* @LastEditTime: 2023-07-17 16:07:15
|
* @LastEditTime: 2023-07-13 10:00:12
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<span>
|
<span>
|
||||||
<el-button type="text" @click="getInspectionDetail">{{ $t('detail') }} </el-button>
|
<el-button type="text" @click="getInspectionDetail">{{ $t('oss.type1') }} </el-button>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-17 16:18:56
|
* @LastEditTime: 2023-05-12 16:45:00
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -36,11 +36,72 @@ export default {
|
|||||||
userList: [],
|
userList: [],
|
||||||
gageTypeList:[],
|
gageTypeList:[],
|
||||||
departmentList: [],
|
departmentList: [],
|
||||||
|
processList: [
|
||||||
|
{
|
||||||
|
id: 0,
|
||||||
|
name: '未审核'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
name: '不同意'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
name: '同意'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
listQuery: {
|
||||||
|
limit: 999,
|
||||||
|
gape: 1
|
||||||
|
},
|
||||||
|
gageStatusList: [
|
||||||
|
{
|
||||||
|
id: 0,
|
||||||
|
name:'在用'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
name: '备用'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
name: '停用'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 3,
|
||||||
|
name: '封存'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 4,
|
||||||
|
name: '报废'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 5,
|
||||||
|
name: '降级使用'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
certificateTypeList: [
|
||||||
|
{
|
||||||
|
id: 0,
|
||||||
|
name: '检定证书'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
name: '校准证书'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
name: '检测报告'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 3,
|
||||||
|
name: '自校报告'
|
||||||
|
}
|
||||||
|
],
|
||||||
visible: false,
|
visible: false,
|
||||||
dataForm: {
|
dataForm: {
|
||||||
id: null,
|
id: null,
|
||||||
userId: null,
|
userId:null
|
||||||
remark:null,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="validDate" :label="$t('laboratory.validDate')">
|
<el-form-item prop="validDate" :label="$t('laboratory.validDate')">
|
||||||
<el-date-picker v-model="dataForm.validDate" type="datetime" :placeholder="$t('laboratory.validDate')"
|
<el-date-picker v-model="dataForm.expectedReturnDate" type="datetime" :placeholder="$t('laboratory.validDate')"
|
||||||
format='yyyy-MM-dd HH:mm:ss' valueFormat='yyyy-MM-ddTHH:mm:ss'>
|
format='yyyy-MM-dd HH:mm:ss' valueFormat='yyyy-MM-ddTHH:mm:ss'>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -66,7 +66,6 @@ export default {
|
|||||||
code:null,
|
code:null,
|
||||||
getDate: null,
|
getDate: null,
|
||||||
id: null,
|
id: null,
|
||||||
validDate:null,
|
|
||||||
laboratoryTesterId: null,
|
laboratoryTesterId: null,
|
||||||
name: null,
|
name: null,
|
||||||
qualificationDescription: null,
|
qualificationDescription: null,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-01-11 09:24:58
|
* @Date: 2023-01-11 09:24:58
|
||||||
* @LastEditTime: 2023-07-17 16:17:07
|
* @LastEditTime: 2023-07-13 10:01:15
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -9,6 +9,9 @@
|
|||||||
<el-card shadow="never" class="aui-card--fill">
|
<el-card shadow="never" class="aui-card--fill">
|
||||||
<div class="mod-sys__user">
|
<div class="mod-sys__user">
|
||||||
<SearchBar :formConfigs="formConfig" ref="ruleForm" @headBtnClick="buttonClick">
|
<SearchBar :formConfigs="formConfig" ref="ruleForm" @headBtnClick="buttonClick">
|
||||||
|
<el-badge :value="6" class="item">
|
||||||
|
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
||||||
|
</el-badge>
|
||||||
</SearchBar>
|
</SearchBar>
|
||||||
<base-table :table-props="tableProps" :page="listQuery.page" :limit="listQuery.limit" :table-data="tableData">
|
<base-table :table-props="tableProps" :page="listQuery.page" :limit="listQuery.limit" :table-data="tableData">
|
||||||
<method-btn v-if="tableBtn.length" slot="handleBtn" :width="100" label="操作" :method-list="tableBtn"
|
<method-btn v-if="tableBtn.length" slot="handleBtn" :width="100" label="操作" :method-list="tableBtn"
|
||||||
@ -53,6 +56,11 @@ import employeeResumeDetail from "./components/employeeResumeDetail.vue"
|
|||||||
import basicSearch from "@/mixins/basic-search"
|
import basicSearch from "@/mixins/basic-search"
|
||||||
import i18n from "@/i18n"
|
import i18n from "@/i18n"
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
|
{
|
||||||
|
prop: 'userCode',
|
||||||
|
label: i18n.t("laboratory.userCode"),
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
prop: 'userName',
|
prop: 'userName',
|
||||||
label: i18n.t("laboratory.userName"),
|
label: i18n.t("laboratory.userName"),
|
||||||
@ -131,6 +139,13 @@ export default {
|
|||||||
name: "add",
|
name: "add",
|
||||||
color: "success",
|
color: "success",
|
||||||
plain: true
|
plain: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "button",
|
||||||
|
btnName: i18n.t('export'),
|
||||||
|
name: "export",
|
||||||
|
color: "primary",
|
||||||
|
plain: true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-card shadow="never" class="aui-card--fill">
|
<el-card shadow="never" class="aui-card--fill">
|
||||||
<div class="mod-sys__user">
|
<div class="mod-sys__user">
|
||||||
<search-bar :formConfigs="formConfig" ref="searchBarForm" @headBtnClick="buttonClick" />
|
<search-bar :formConfigs="formConfig" ref="searchBarForm" @headBtnClick="buttonClick">
|
||||||
|
<el-badge :value="5" class="item">
|
||||||
|
<el-button type="primary" size="small" @click="searchsClick">条件搜索</el-button>
|
||||||
|
</el-badge>
|
||||||
|
</search-bar>
|
||||||
<base-table
|
<base-table
|
||||||
:table-props="tableProps"
|
:table-props="tableProps"
|
||||||
:page="listQuery.page"
|
:page="listQuery.page"
|
||||||
@ -24,7 +28,7 @@
|
|||||||
@pagination="getDataList"
|
@pagination="getDataList"
|
||||||
/>
|
/>
|
||||||
<!-- 弹窗, 条件搜索-->
|
<!-- 弹窗, 条件搜索-->
|
||||||
<!-- <base-dialog
|
<base-dialog
|
||||||
:dialogTitle="searchsTitle"
|
:dialogTitle="searchsTitle"
|
||||||
:dialogVisible="searchsVisible"
|
:dialogVisible="searchsVisible"
|
||||||
@cancel="searchsCancel"
|
@cancel="searchsCancel"
|
||||||
@ -32,7 +36,7 @@
|
|||||||
:before-close="searchsCancel"
|
:before-close="searchsCancel"
|
||||||
>
|
>
|
||||||
<searchs ref="searchsRef" @refreshDataList="searchsSubmit"></searchs>
|
<searchs ref="searchsRef" @refreshDataList="searchsSubmit"></searchs>
|
||||||
</base-dialog> -->
|
</base-dialog>
|
||||||
<!-- 弹窗, 新增 / 修改 -->
|
<!-- 弹窗, 新增 / 修改 -->
|
||||||
<base-dialog
|
<base-dialog
|
||||||
:dialogTitle="addOrEditTitle"
|
:dialogTitle="addOrEditTitle"
|
||||||
@ -50,7 +54,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AddOrUpdate from "./components/eightDisciplineList-detail";
|
import AddOrUpdate from "./components/eightDisciplineList-detail";
|
||||||
// import Searchs from "./components/searchs1";
|
import Searchs from "./components/searchs1";
|
||||||
import basicPage from "@/mixins/basic-page";
|
import basicPage from "@/mixins/basic-page";
|
||||||
import codeFilter from "@/filters/code-filter";
|
import codeFilter from "@/filters/code-filter";
|
||||||
import { timeFormatter } from "@/filters/code-filter";
|
import { timeFormatter } from "@/filters/code-filter";
|
||||||
@ -77,11 +81,11 @@ const tableProps = [
|
|||||||
label: "关键字",
|
label: "关键字",
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
// {
|
{
|
||||||
// prop: "associationNumber",
|
prop: "associationNumber",
|
||||||
// label: "关联次数",
|
label: "关联次数",
|
||||||
// align: "center",
|
align: "center",
|
||||||
// },
|
},
|
||||||
];
|
];
|
||||||
const tableBtn = [
|
const tableBtn = [
|
||||||
{
|
{
|
||||||
@ -100,37 +104,7 @@ export default {
|
|||||||
tableProps,
|
tableProps,
|
||||||
tableBtn,
|
tableBtn,
|
||||||
tableData: [],
|
tableData: [],
|
||||||
optionArrUrl: ["/basic/qmsProduct/page","/code/problemType/page"],
|
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
|
||||||
type: "input",
|
|
||||||
label: i18n.t("code.title"),
|
|
||||||
placeholder: i18n.t("code.title"),
|
|
||||||
param: "title",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "select",
|
|
||||||
label: "产品",
|
|
||||||
selectOptions: [],
|
|
||||||
param: "productId",
|
|
||||||
defaultSelect: "",
|
|
||||||
labelField: "productName",
|
|
||||||
filterable: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "select",
|
|
||||||
label: "缺陷",
|
|
||||||
selectOptions: [],
|
|
||||||
param: "defectId",
|
|
||||||
defaultSelect: "",
|
|
||||||
filterable: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "input",
|
|
||||||
label: "关键字",
|
|
||||||
placeholder: "关键字",
|
|
||||||
param: "description",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "搜索",
|
btnName: "搜索",
|
||||||
@ -142,30 +116,9 @@ export default {
|
|||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
AddOrUpdate,
|
AddOrUpdate,
|
||||||
// Searchs,
|
Searchs,
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.getArr();
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getArr() {
|
|
||||||
this.optionArrUrl.forEach((item, index) => {
|
|
||||||
this.$http
|
|
||||||
.get(item, {
|
|
||||||
params: {
|
|
||||||
page: 1,
|
|
||||||
limit: 500,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
if (res.code !== 0) {
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.formConfig[index + 1].selectOptions = res.data.list;
|
|
||||||
})
|
|
||||||
.catch(() => {});
|
|
||||||
});
|
|
||||||
},
|
|
||||||
// 获取数据列表
|
// 获取数据列表
|
||||||
getDataList() {
|
getDataList() {
|
||||||
this.dataListLoading = true;
|
this.dataListLoading = true;
|
||||||
@ -193,14 +146,15 @@ export default {
|
|||||||
buttonClick(val) {
|
buttonClick(val) {
|
||||||
switch (val.btnName) {
|
switch (val.btnName) {
|
||||||
case "search":
|
case "search":
|
||||||
|
this.listQuery = {};
|
||||||
this.listQuery.page = 1;
|
this.listQuery.page = 1;
|
||||||
this.listQuery.limit = 10;
|
this.listQuery.limit = 10;
|
||||||
this.listQuery.title = val.title;
|
this.listQuery.total = 1;
|
||||||
this.listQuery.description = val.description;
|
|
||||||
this.listQuery.defectId = val.defectId;
|
|
||||||
this.listQuery.productId = val.productId;
|
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
break;
|
break;
|
||||||
|
case "export":
|
||||||
|
this.exportHandle("工厂管理");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
console.log(val);
|
console.log(val);
|
||||||
}
|
}
|
||||||
|
@ -83,7 +83,7 @@ export default {
|
|||||||
series: [],
|
series: [],
|
||||||
};
|
};
|
||||||
this.dataList.forEach((item) => {
|
this.dataList.forEach((item) => {
|
||||||
const i = option.series.findIndex((c) => c.id === (this.eType?item.problemTypeId:item.productTypeId));
|
const i = option.series.findIndex((c) => c.id === item.productTypeId);
|
||||||
if (i >= 0) {
|
if (i >= 0) {
|
||||||
option.series[i].data.push(this.eType?item.problemTypeNumber:item.productTypeNumber);
|
option.series[i].data.push(this.eType?item.problemTypeNumber:item.productTypeNumber);
|
||||||
} else {
|
} else {
|
||||||
@ -104,6 +104,7 @@ export default {
|
|||||||
option.series.push(obj);
|
option.series.push(obj);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
console.log(option.series)
|
||||||
this.lineChart = echarts.init(document.getElementById("lineChart"))
|
this.lineChart = echarts.init(document.getElementById("lineChart"))
|
||||||
this.lineChart.setOption(option);
|
this.lineChart.setOption(option);
|
||||||
window.addEventListener("resize", () => {
|
window.addEventListener("resize", () => {
|
||||||
@ -116,10 +117,10 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.mod-demo-echarts {
|
.mod-demo-echarts {
|
||||||
// > .el-row {
|
> .el-row {
|
||||||
// .el-col {
|
.el-col {
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
.chart-box {
|
.chart-box {
|
||||||
min-height: 400px;
|
min-height: 400px;
|
||||||
}
|
}
|
||||||
|
@ -1,49 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zhp
|
|
||||||
* @Date: 2023-01-31 09:49:36
|
|
||||||
* @LastEditTime: 2023-07-17 10:16:41
|
|
||||||
* @LastEditors: zwq
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<span>
|
|
||||||
<el-avatar
|
|
||||||
v-if="injectData.eightDisciplineStatus > injectData.num"
|
|
||||||
size="small"
|
|
||||||
style="background: #409EFF;"
|
|
||||||
icon="el-icon-check"
|
|
||||||
></el-avatar>
|
|
||||||
<el-avatar
|
|
||||||
v-else size="small"
|
|
||||||
icon="el-icon-close"
|
|
||||||
></el-avatar>
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
// import { addDynamicRoute } from '@/router'
|
|
||||||
export default {
|
|
||||||
props: {
|
|
||||||
injectData: {
|
|
||||||
type: Object,
|
|
||||||
default: () => ({}),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
// 子级
|
|
||||||
// emitClick () {
|
|
||||||
// // 路由参数
|
|
||||||
// const routeParams = {
|
|
||||||
// routeName: `${this.$route.name}__${this.injectData.id}`,
|
|
||||||
// title: `${this.$route.meta.title} - ${this.injectData.dictType}`,
|
|
||||||
// path: 'sys/dict-data',
|
|
||||||
// params: {
|
|
||||||
// dictTypeId: this.injectData.id
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// // 动态路由
|
|
||||||
// addDynamicRoute(routeParams, this.$router)
|
|
||||||
// }
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
@ -1,11 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-card shadow="never" class="aui-card--fill">
|
<el-card shadow="never" class="aui-card--fill">
|
||||||
<div class="mod-sys__user">
|
<div class="mod-sys__user">
|
||||||
<search-bar
|
<search-bar :formConfigs="formConfig" ref="searchBarForm" @headBtnClick="buttonClick">
|
||||||
:formConfigs="formConfig"
|
<el-badge :value="5" class="item">
|
||||||
ref="searchBarForm"
|
<el-button type="primary" size="small" @click="searchsClick">条件搜索</el-button>
|
||||||
@headBtnClick="buttonClick"
|
</el-badge>
|
||||||
/>
|
</search-bar>
|
||||||
<base-table
|
<base-table
|
||||||
:table-props="tableProps"
|
:table-props="tableProps"
|
||||||
:page="listQuery.page"
|
:page="listQuery.page"
|
||||||
@ -28,7 +28,7 @@
|
|||||||
@pagination="getDataList"
|
@pagination="getDataList"
|
||||||
/>
|
/>
|
||||||
<!-- 弹窗, 条件搜索-->
|
<!-- 弹窗, 条件搜索-->
|
||||||
<!-- <base-dialog
|
<base-dialog
|
||||||
:dialogTitle="searchsTitle"
|
:dialogTitle="searchsTitle"
|
||||||
:dialogVisible="searchsVisible"
|
:dialogVisible="searchsVisible"
|
||||||
@cancel="searchsCancel"
|
@cancel="searchsCancel"
|
||||||
@ -36,7 +36,7 @@
|
|||||||
:before-close="searchsCancel"
|
:before-close="searchsCancel"
|
||||||
>
|
>
|
||||||
<searchs ref="searchsRef" @refreshDataList="searchsSubmit"></searchs>
|
<searchs ref="searchsRef" @refreshDataList="searchsSubmit"></searchs>
|
||||||
</base-dialog> -->
|
</base-dialog>
|
||||||
<!-- 弹窗, 新增 / 修改 -->
|
<!-- 弹窗, 新增 / 修改 -->
|
||||||
<base-dialog
|
<base-dialog
|
||||||
:dialogTitle="addOrEditTitle"
|
:dialogTitle="addOrEditTitle"
|
||||||
@ -44,7 +44,7 @@
|
|||||||
@cancel="handleCancel"
|
@cancel="handleCancel"
|
||||||
@confirm="handleConfirm"
|
@confirm="handleConfirm"
|
||||||
:before-close="handleCancel"
|
:before-close="handleCancel"
|
||||||
width="80%"
|
width=80%
|
||||||
>
|
>
|
||||||
<add-or-update ref="addOrUpdate" @refreshDataList="successSubmit"></add-or-update>
|
<add-or-update ref="addOrUpdate" @refreshDataList="successSubmit"></add-or-update>
|
||||||
</base-dialog>
|
</base-dialog>
|
||||||
@ -54,7 +54,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AddOrUpdate from "./components/eightDisciplineList-detail";
|
import AddOrUpdate from "./components/eightDisciplineList-detail";
|
||||||
// import Searchs from "./components/searchs";
|
import Searchs from "./components/searchs";
|
||||||
import basicPage from "@/mixins/basic-page";
|
import basicPage from "@/mixins/basic-page";
|
||||||
import codeFilter from "@/filters/code-filter";
|
import codeFilter from "@/filters/code-filter";
|
||||||
import { timeFormatter } from "@/filters/code-filter";
|
import { timeFormatter } from "@/filters/code-filter";
|
||||||
@ -93,11 +93,11 @@ const tableProps = [
|
|||||||
label: i18n.t("code.description"),
|
label: i18n.t("code.description"),
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
// {
|
{
|
||||||
// prop: "userName",
|
prop: "userName",
|
||||||
// label: "启动人",
|
label: "启动人",
|
||||||
// align: "center",
|
align: "center",
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
prop: "eightDisciplineStatus",
|
prop: "eightDisciplineStatus",
|
||||||
label: "步骤",
|
label: "步骤",
|
||||||
@ -112,44 +112,6 @@ const tableBtn = [
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const eightDisciplineStatusArr = [
|
|
||||||
{
|
|
||||||
name: "D0",
|
|
||||||
id: 0,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D1",
|
|
||||||
id: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D2",
|
|
||||||
id: 2,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D3",
|
|
||||||
id: 3,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D4",
|
|
||||||
id: 4,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D5",
|
|
||||||
id: 5,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D6",
|
|
||||||
id: 6,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D7",
|
|
||||||
id: 7,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D8",
|
|
||||||
id: 8,
|
|
||||||
},
|
|
||||||
];
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [basicPage],
|
mixins: [basicPage],
|
||||||
data() {
|
data() {
|
||||||
@ -160,52 +122,8 @@ export default {
|
|||||||
},
|
},
|
||||||
tableProps,
|
tableProps,
|
||||||
tableBtn,
|
tableBtn,
|
||||||
eightDisciplineStatusArr,
|
|
||||||
tableData: [],
|
tableData: [],
|
||||||
optionArrUrl: ["/basic/qmsCustomer/page", "/basic/qmsProduct/page"],
|
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
|
||||||
type: "input",
|
|
||||||
label: i18n.t("code.title"),
|
|
||||||
placeholder: i18n.t("code.title"),
|
|
||||||
param: "title",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "select",
|
|
||||||
label: "客户",
|
|
||||||
selectOptions: [],
|
|
||||||
param: "customId",
|
|
||||||
defaultSelect: "",
|
|
||||||
labelField: "customerName",
|
|
||||||
filterable: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "select",
|
|
||||||
label: "产品",
|
|
||||||
selectOptions: [],
|
|
||||||
param: "productId",
|
|
||||||
defaultSelect: "",
|
|
||||||
labelField: "productName",
|
|
||||||
filterable: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "select",
|
|
||||||
label: "步骤",
|
|
||||||
selectOptions: eightDisciplineStatusArr,
|
|
||||||
param: "eightDisciplineStatus",
|
|
||||||
defaultSelect: "",
|
|
||||||
filterable: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "datePicker",
|
|
||||||
label: "日期",
|
|
||||||
dateType: "date",
|
|
||||||
format: "yyyy-MM-dd",
|
|
||||||
valueFormat: "yyyy-MM-ddTHH:mm:ss",
|
|
||||||
placeholder: "日期",
|
|
||||||
param: "occurrenceDate",
|
|
||||||
width: 170,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "搜索",
|
btnName: "搜索",
|
||||||
@ -217,30 +135,9 @@ export default {
|
|||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
AddOrUpdate,
|
AddOrUpdate,
|
||||||
// Searchs,
|
Searchs,
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.getArr();
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getArr() {
|
|
||||||
this.optionArrUrl.forEach((item, index) => {
|
|
||||||
this.$http
|
|
||||||
.get(item, {
|
|
||||||
params: {
|
|
||||||
page: 1,
|
|
||||||
limit: 500,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
if (res.code !== 0) {
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.formConfig[index + 1].selectOptions = res.data.list;
|
|
||||||
})
|
|
||||||
.catch(() => {});
|
|
||||||
});
|
|
||||||
},
|
|
||||||
// 获取数据列表
|
// 获取数据列表
|
||||||
getDataList() {
|
getDataList() {
|
||||||
this.dataListLoading = true;
|
this.dataListLoading = true;
|
||||||
@ -268,15 +165,15 @@ export default {
|
|||||||
buttonClick(val) {
|
buttonClick(val) {
|
||||||
switch (val.btnName) {
|
switch (val.btnName) {
|
||||||
case "search":
|
case "search":
|
||||||
|
this.listQuery = {};
|
||||||
this.listQuery.page = 1;
|
this.listQuery.page = 1;
|
||||||
this.listQuery.limit = 10;
|
this.listQuery.limit = 10;
|
||||||
this.listQuery.title = val.title;
|
this.listQuery.total = 1;
|
||||||
this.listQuery.eightDisciplineStatus = val.eightDisciplineStatus;
|
|
||||||
this.listQuery.customId = val.customId;
|
|
||||||
this.listQuery.productId = val.productId;
|
|
||||||
this.listQuery.occurrenceDate = val.occurrenceDate;
|
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
break;
|
break;
|
||||||
|
case "export":
|
||||||
|
this.exportHandle("工厂管理");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
console.log(val);
|
console.log(val);
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-card shadow="never" class="aui-card--fill">
|
<el-card shadow="never" class="aui-card--fill">
|
||||||
<div class="mod-sys__user">
|
<div class="mod-sys__user">
|
||||||
<search-bar :formConfigs="formConfig" ref="searchBarForm" @headBtnClick="buttonClick" />
|
<search-bar :formConfigs="formConfig" ref="searchBarForm" @headBtnClick="buttonClick">
|
||||||
|
<el-badge :value="5" class="item">
|
||||||
|
<el-button type="primary" size="small" @click="searchsClick">条件搜索</el-button>
|
||||||
|
</el-badge>
|
||||||
|
</search-bar>
|
||||||
<base-table
|
<base-table
|
||||||
:table-props="tableProps"
|
:table-props="tableProps"
|
||||||
:page="listQuery.page"
|
:page="listQuery.page"
|
||||||
@ -24,7 +28,7 @@
|
|||||||
@pagination="getDataList"
|
@pagination="getDataList"
|
||||||
/>
|
/>
|
||||||
<!-- 弹窗, 条件搜索-->
|
<!-- 弹窗, 条件搜索-->
|
||||||
<!-- <base-dialog
|
<base-dialog
|
||||||
:dialogTitle="searchsTitle"
|
:dialogTitle="searchsTitle"
|
||||||
:dialogVisible="searchsVisible"
|
:dialogVisible="searchsVisible"
|
||||||
@cancel="searchsCancel"
|
@cancel="searchsCancel"
|
||||||
@ -32,7 +36,7 @@
|
|||||||
:before-close="searchsCancel"
|
:before-close="searchsCancel"
|
||||||
>
|
>
|
||||||
<searchs ref="searchsRef" @refreshDataList="searchsSubmit"></searchs>
|
<searchs ref="searchsRef" @refreshDataList="searchsSubmit"></searchs>
|
||||||
</base-dialog> -->
|
</base-dialog>
|
||||||
<!-- 弹窗, 新增 / 修改 -->
|
<!-- 弹窗, 新增 / 修改 -->
|
||||||
<base-dialog
|
<base-dialog
|
||||||
:dialogTitle="addOrEditTitle"
|
:dialogTitle="addOrEditTitle"
|
||||||
@ -40,7 +44,7 @@
|
|||||||
@cancel="handleCancel"
|
@cancel="handleCancel"
|
||||||
@confirm="handleConfirm"
|
@confirm="handleConfirm"
|
||||||
:before-close="handleCancel"
|
:before-close="handleCancel"
|
||||||
width="80%"
|
width=80%
|
||||||
>
|
>
|
||||||
<add-or-update ref="addOrUpdate" @refreshDataList="successSubmit"></add-or-update>
|
<add-or-update ref="addOrUpdate" @refreshDataList="successSubmit"></add-or-update>
|
||||||
</base-dialog>
|
</base-dialog>
|
||||||
@ -50,8 +54,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AddOrUpdate from "./components/eightDisciplineList-detail";
|
import AddOrUpdate from "./components/eightDisciplineList-detail";
|
||||||
// import Searchs from "./components/searchs";
|
import Searchs from "./components/searchs";
|
||||||
import processStatus from "./components/processStatus"
|
|
||||||
import basicPage from "@/mixins/basic-page";
|
import basicPage from "@/mixins/basic-page";
|
||||||
import codeFilter from "@/filters/code-filter";
|
import codeFilter from "@/filters/code-filter";
|
||||||
import { timeFormatter } from "@/filters/code-filter";
|
import { timeFormatter } from "@/filters/code-filter";
|
||||||
@ -82,58 +85,42 @@ const tableProps = [
|
|||||||
{
|
{
|
||||||
prop: "D1",
|
prop: "D1",
|
||||||
label: "D1",
|
label: "D1",
|
||||||
num: 1,
|
|
||||||
align: "center",
|
align: "center",
|
||||||
subcomponent: processStatus,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "D2",
|
prop: "D2",
|
||||||
label: "D2",
|
label: "D2",
|
||||||
num: 2,
|
|
||||||
align: "center",
|
align: "center",
|
||||||
subcomponent: processStatus,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "D3",
|
prop: "D3",
|
||||||
label: "D3",
|
label: "D3",
|
||||||
num: 3,
|
|
||||||
align: "center",
|
align: "center",
|
||||||
subcomponent: processStatus,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "D4",
|
prop: "D4",
|
||||||
label: "D4",
|
label: "D4",
|
||||||
num: 4,
|
|
||||||
align: "center",
|
align: "center",
|
||||||
subcomponent: processStatus,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "D5",
|
prop: "D5",
|
||||||
label: "D5",
|
label: "D5",
|
||||||
num: 5,
|
|
||||||
align: "center",
|
align: "center",
|
||||||
subcomponent: processStatus,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "D6",
|
prop: "D6",
|
||||||
label: "D6",
|
label: "D6",
|
||||||
num: 6,
|
|
||||||
align: "center",
|
align: "center",
|
||||||
subcomponent: processStatus,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "D7",
|
prop: "D7",
|
||||||
label: "D7",
|
label: "D7",
|
||||||
num: 7,
|
|
||||||
align: "center",
|
align: "center",
|
||||||
subcomponent: processStatus,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "D8",
|
prop: "D8",
|
||||||
label: "D8",
|
label: "D8",
|
||||||
num: 8,
|
|
||||||
align: "center",
|
align: "center",
|
||||||
subcomponent: processStatus,
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
const tableBtn = [
|
const tableBtn = [
|
||||||
@ -143,44 +130,6 @@ const tableBtn = [
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const eightDisciplineStatusArr = [
|
|
||||||
{
|
|
||||||
name: "D0",
|
|
||||||
id: 0,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D1",
|
|
||||||
id: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D2",
|
|
||||||
id: 2,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D3",
|
|
||||||
id: 3,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D4",
|
|
||||||
id: 4,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D5",
|
|
||||||
id: 5,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D6",
|
|
||||||
id: 6,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D7",
|
|
||||||
id: 7,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D8",
|
|
||||||
id: 8,
|
|
||||||
},
|
|
||||||
];
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [basicPage],
|
mixins: [basicPage],
|
||||||
data() {
|
data() {
|
||||||
@ -191,52 +140,8 @@ export default {
|
|||||||
},
|
},
|
||||||
tableProps,
|
tableProps,
|
||||||
tableBtn,
|
tableBtn,
|
||||||
eightDisciplineStatusArr,
|
|
||||||
tableData: [],
|
tableData: [],
|
||||||
optionArrUrl: ["/basic/qmsCustomer/page", "/basic/qmsProduct/page"],
|
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
|
||||||
type: "input",
|
|
||||||
label: i18n.t("code.title"),
|
|
||||||
placeholder: i18n.t("code.title"),
|
|
||||||
param: "title",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "select",
|
|
||||||
label: "客户",
|
|
||||||
selectOptions: [],
|
|
||||||
param: "customId",
|
|
||||||
defaultSelect: "",
|
|
||||||
labelField: "customerName",
|
|
||||||
filterable: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "select",
|
|
||||||
label: "产品",
|
|
||||||
selectOptions: [],
|
|
||||||
param: "productId",
|
|
||||||
defaultSelect: "",
|
|
||||||
labelField: "productName",
|
|
||||||
filterable: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "select",
|
|
||||||
label: "步骤",
|
|
||||||
selectOptions: eightDisciplineStatusArr,
|
|
||||||
param: "eightDisciplineStatus",
|
|
||||||
defaultSelect: "",
|
|
||||||
filterable: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "datePicker",
|
|
||||||
label: "日期",
|
|
||||||
dateType: "date",
|
|
||||||
format: "yyyy-MM-dd",
|
|
||||||
valueFormat: "yyyy-MM-ddTHH:mm:ss",
|
|
||||||
placeholder: "日期",
|
|
||||||
param: "occurrenceDate",
|
|
||||||
width: 170,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "搜索",
|
btnName: "搜索",
|
||||||
@ -248,31 +153,9 @@ export default {
|
|||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
AddOrUpdate,
|
AddOrUpdate,
|
||||||
processStatus,
|
Searchs,
|
||||||
// Searchs,
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.getArr();
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getArr() {
|
|
||||||
this.optionArrUrl.forEach((item, index) => {
|
|
||||||
this.$http
|
|
||||||
.get(item, {
|
|
||||||
params: {
|
|
||||||
page: 1,
|
|
||||||
limit: 500,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
if (res.code !== 0) {
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.formConfig[index + 1].selectOptions = res.data.list;
|
|
||||||
})
|
|
||||||
.catch(() => {});
|
|
||||||
});
|
|
||||||
},
|
|
||||||
// 获取数据列表
|
// 获取数据列表
|
||||||
getDataList() {
|
getDataList() {
|
||||||
this.dataListLoading = true;
|
this.dataListLoading = true;
|
||||||
@ -300,15 +183,15 @@ export default {
|
|||||||
buttonClick(val) {
|
buttonClick(val) {
|
||||||
switch (val.btnName) {
|
switch (val.btnName) {
|
||||||
case "search":
|
case "search":
|
||||||
|
this.listQuery = {};
|
||||||
this.listQuery.page = 1;
|
this.listQuery.page = 1;
|
||||||
this.listQuery.limit = 10;
|
this.listQuery.limit = 10;
|
||||||
this.listQuery.title = val.title;
|
this.listQuery.total = 1;
|
||||||
this.listQuery.eightDisciplineStatus = val.eightDisciplineStatus;
|
|
||||||
this.listQuery.customId = val.customId;
|
|
||||||
this.listQuery.productId = val.productId;
|
|
||||||
this.listQuery.occurrenceDate = val.occurrenceDate;
|
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
break;
|
break;
|
||||||
|
case "export":
|
||||||
|
this.exportHandle("工厂管理");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
console.log(val);
|
console.log(val);
|
||||||
}
|
}
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-card shadow="never" class="aui-card--fill">
|
<el-card shadow="never" class="aui-card--fill">
|
||||||
<div class="mod-sys__user">
|
<div class="mod-sys__user">
|
||||||
<search-bar
|
<search-bar :formConfigs="formConfig" ref="searchBarForm" @headBtnClick="buttonClick">
|
||||||
:isFold="true"
|
<el-badge :value="5" class="item">
|
||||||
:formConfigs="formConfig"
|
<el-button type="primary" size="small" @click="searchsClick">条件搜索</el-button>
|
||||||
ref="searchBarForm"
|
</el-badge>
|
||||||
@headBtnClick="buttonClick"
|
</search-bar>
|
||||||
/>
|
|
||||||
<base-table
|
<base-table
|
||||||
:table-props="tableProps"
|
:table-props="tableProps"
|
||||||
:page="listQuery.page"
|
:page="listQuery.page"
|
||||||
@ -29,7 +28,7 @@
|
|||||||
@pagination="getDataList"
|
@pagination="getDataList"
|
||||||
/>
|
/>
|
||||||
<!-- 弹窗, 条件搜索-->
|
<!-- 弹窗, 条件搜索-->
|
||||||
<!-- <base-dialog
|
<base-dialog
|
||||||
:dialogTitle="searchsTitle"
|
:dialogTitle="searchsTitle"
|
||||||
:dialogVisible="searchsVisible"
|
:dialogVisible="searchsVisible"
|
||||||
@cancel="searchsCancel"
|
@cancel="searchsCancel"
|
||||||
@ -37,7 +36,7 @@
|
|||||||
:before-close="searchsCancel"
|
:before-close="searchsCancel"
|
||||||
>
|
>
|
||||||
<searchs ref="searchsRef" :show-obj=showObj @refreshDataList="searchsSubmit"></searchs>
|
<searchs ref="searchsRef" :show-obj=showObj @refreshDataList="searchsSubmit"></searchs>
|
||||||
</base-dialog> -->
|
</base-dialog>
|
||||||
<!-- 弹窗, 新增 / 修改 -->
|
<!-- 弹窗, 新增 / 修改 -->
|
||||||
<base-dialog
|
<base-dialog
|
||||||
:dialogTitle="addOrEditTitle"
|
:dialogTitle="addOrEditTitle"
|
||||||
@ -45,7 +44,7 @@
|
|||||||
@cancel="handleCancel"
|
@cancel="handleCancel"
|
||||||
@confirm="handleConfirm"
|
@confirm="handleConfirm"
|
||||||
:before-close="handleCancel"
|
:before-close="handleCancel"
|
||||||
width="80%"
|
width=80%
|
||||||
>
|
>
|
||||||
<add-or-update ref="addOrUpdate" @refreshDataList="successSubmit"></add-or-update>
|
<add-or-update ref="addOrUpdate" @refreshDataList="successSubmit"></add-or-update>
|
||||||
</base-dialog>
|
</base-dialog>
|
||||||
@ -55,7 +54,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AddOrUpdate from "./components/eightDisciplineList-detail";
|
import AddOrUpdate from "./components/eightDisciplineList-detail";
|
||||||
// import Searchs from "./components/searchs";
|
import Searchs from "./components/searchs";
|
||||||
import basicPage from "@/mixins/basic-page";
|
import basicPage from "@/mixins/basic-page";
|
||||||
import codeFilter from "@/filters/code-filter";
|
import codeFilter from "@/filters/code-filter";
|
||||||
import { timeFormatter } from "@/filters/code-filter";
|
import { timeFormatter } from "@/filters/code-filter";
|
||||||
@ -88,11 +87,11 @@ const tableProps = [
|
|||||||
label: i18n.t("code.description"),
|
label: i18n.t("code.description"),
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
// {
|
{
|
||||||
// prop: "userName",
|
prop: "userName",
|
||||||
// label: "启动人",
|
label: "启动人",
|
||||||
// align: "center",
|
align: "center",
|
||||||
// },
|
},
|
||||||
];
|
];
|
||||||
const tableBtn = [
|
const tableBtn = [
|
||||||
{
|
{
|
||||||
@ -101,62 +100,6 @@ const tableBtn = [
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const eightDisciplineStatusArr = [
|
|
||||||
{
|
|
||||||
name: "D0",
|
|
||||||
id: 0,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D1",
|
|
||||||
id: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D2",
|
|
||||||
id: 2,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D3",
|
|
||||||
id: 3,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D4",
|
|
||||||
id: 4,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D5",
|
|
||||||
id: 5,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D6",
|
|
||||||
id: 6,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D7",
|
|
||||||
id: 7,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "D8",
|
|
||||||
id: 8,
|
|
||||||
},
|
|
||||||
];
|
|
||||||
const roleArr = [
|
|
||||||
{
|
|
||||||
name: "启动人",
|
|
||||||
id: 1,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "分析人",
|
|
||||||
id: 2,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "负责人",
|
|
||||||
id: 3,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "处理人",
|
|
||||||
id: 4,
|
|
||||||
},
|
|
||||||
];
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [basicPage],
|
mixins: [basicPage],
|
||||||
data() {
|
data() {
|
||||||
@ -166,65 +109,11 @@ export default {
|
|||||||
},
|
},
|
||||||
tableProps,
|
tableProps,
|
||||||
tableBtn,
|
tableBtn,
|
||||||
eightDisciplineStatusArr,
|
|
||||||
roleArr,
|
|
||||||
tableData: [],
|
tableData: [],
|
||||||
optionArrUrl: ["/basic/qmsCustomer/page", "/basic/qmsProduct/page"],
|
showObj: {
|
||||||
// showObj: {
|
role: true
|
||||||
// role: true
|
},
|
||||||
// },
|
|
||||||
|
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
|
||||||
type: "input",
|
|
||||||
label: i18n.t("code.title"),
|
|
||||||
placeholder: i18n.t("code.title"),
|
|
||||||
param: "title",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "select",
|
|
||||||
label: "客户",
|
|
||||||
selectOptions: [],
|
|
||||||
param: "customId",
|
|
||||||
defaultSelect: "",
|
|
||||||
labelField: "customerName",
|
|
||||||
filterable: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "select",
|
|
||||||
label: "产品",
|
|
||||||
selectOptions: [],
|
|
||||||
param: "productId",
|
|
||||||
defaultSelect: "",
|
|
||||||
labelField: "productName",
|
|
||||||
filterable: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "select",
|
|
||||||
label: "步骤",
|
|
||||||
selectOptions: eightDisciplineStatusArr,
|
|
||||||
param: "eightDisciplineStatus",
|
|
||||||
defaultSelect: "",
|
|
||||||
filterable: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "select",
|
|
||||||
label: "角色",
|
|
||||||
selectOptions: roleArr,
|
|
||||||
param: "role",
|
|
||||||
defaultSelect: "",
|
|
||||||
filterable: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "datePicker",
|
|
||||||
label: "日期",
|
|
||||||
dateType: "date",
|
|
||||||
format: "yyyy-MM-dd",
|
|
||||||
valueFormat: "yyyy-MM-ddTHH:mm:ss",
|
|
||||||
placeholder: "日期",
|
|
||||||
param: "occurrenceDate",
|
|
||||||
width: 170,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "搜索",
|
btnName: "搜索",
|
||||||
@ -236,30 +125,9 @@ export default {
|
|||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
AddOrUpdate,
|
AddOrUpdate,
|
||||||
// Searchs,
|
Searchs,
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.getArr();
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getArr() {
|
|
||||||
this.optionArrUrl.forEach((item, index) => {
|
|
||||||
this.$http
|
|
||||||
.get(item, {
|
|
||||||
params: {
|
|
||||||
page: 1,
|
|
||||||
limit: 500,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
if (res.code !== 0) {
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.formConfig[index + 1].selectOptions = res.data.list;
|
|
||||||
})
|
|
||||||
.catch(() => {});
|
|
||||||
});
|
|
||||||
},
|
|
||||||
// 获取数据列表
|
// 获取数据列表
|
||||||
getDataList() {
|
getDataList() {
|
||||||
this.dataListLoading = true;
|
this.dataListLoading = true;
|
||||||
@ -287,16 +155,15 @@ export default {
|
|||||||
buttonClick(val) {
|
buttonClick(val) {
|
||||||
switch (val.btnName) {
|
switch (val.btnName) {
|
||||||
case "search":
|
case "search":
|
||||||
|
this.listQuery = {};
|
||||||
this.listQuery.page = 1;
|
this.listQuery.page = 1;
|
||||||
this.listQuery.limit = 10;
|
this.listQuery.limit = 10;
|
||||||
this.listQuery.title = val.title;
|
this.listQuery.total = 1;
|
||||||
this.listQuery.eightDisciplineStatus = val.eightDisciplineStatus;
|
|
||||||
this.listQuery.customId = val.customId;
|
|
||||||
this.listQuery.productId = val.productId;
|
|
||||||
this.listQuery.occurrenceDate = val.occurrenceDate;
|
|
||||||
this.listQuery.role = val.role;
|
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
break;
|
break;
|
||||||
|
case "export":
|
||||||
|
this.exportHandle("工厂管理");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
console.log(val);
|
console.log(val);
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,7 @@
|
|||||||
label: "日期",
|
label: "日期",
|
||||||
dateType: "daterange",
|
dateType: "daterange",
|
||||||
format: "yyyy-MM-dd",
|
format: "yyyy-MM-dd",
|
||||||
valueFormat: "yyyy-MM-dd",
|
valueFormat: "yyyy-MM-ddTHH:mm:ss",
|
||||||
rangeSeparator: "-",
|
rangeSeparator: "-",
|
||||||
startPlaceholder: "开始时间",
|
startPlaceholder: "开始时间",
|
||||||
endPlaceholder: "结束时间",
|
endPlaceholder: "结束时间",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2023-07-03 15:21:14
|
* @Date: 2023-07-03 15:21:14
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2023-07-14 16:50:39
|
* @LastEditTime: 2023-07-04 08:53:10
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -72,7 +72,7 @@ export default {
|
|||||||
label: "日期",
|
label: "日期",
|
||||||
dateType: "daterange",
|
dateType: "daterange",
|
||||||
format: "yyyy-MM-dd",
|
format: "yyyy-MM-dd",
|
||||||
valueFormat: "yyyy-MM-dd",
|
valueFormat: "yyyy-MM-ddTHH:mm:ss",
|
||||||
rangeSeparator: "-",
|
rangeSeparator: "-",
|
||||||
startPlaceholder: "开始时间",
|
startPlaceholder: "开始时间",
|
||||||
endPlaceholder: "结束时间",
|
endPlaceholder: "结束时间",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-17 16:27:18
|
* @LastEditTime: 2023-07-12 15:06:16
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -73,66 +73,66 @@ export default {
|
|||||||
page: 1
|
page: 1
|
||||||
},
|
},
|
||||||
options: [{
|
options: [{
|
||||||
value: '0',
|
value: 0,
|
||||||
label: '监控'
|
label: '监控'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '1',
|
value: 1,
|
||||||
label: '电芯来料检验'
|
label: '电芯来料检验'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '2',
|
value: 2,
|
||||||
label: 'IQC抽检'
|
label: 'IQC抽检'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '3',
|
value: 3,
|
||||||
label: 'IQC抽检2'
|
label: 'IQC抽检2'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '4',
|
value: 4,
|
||||||
label: '原料抽检'
|
label: '原料抽检'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '5',
|
value: 5,
|
||||||
label: '进货外观检验'
|
label: '进货外观检验'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '6',
|
value: 6,
|
||||||
label: '库内原料检验'
|
label: '库内原料检验'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '7',
|
value: 7,
|
||||||
label: '来料检验'
|
label: '来料检验'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '8',
|
value: 8,
|
||||||
label: '胶片'
|
label: '胶片'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '9',
|
value: 9,
|
||||||
label: '抽检'
|
label: '抽检'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '10',
|
value: 10,
|
||||||
label: '巡检'
|
label: '巡检'
|
||||||
}, {
|
}, {
|
||||||
value: '11',
|
value: 11,
|
||||||
label: '首检'
|
label: '首检'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '12',
|
value: 12,
|
||||||
label: '末检'
|
label: '末检'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '13',
|
value: 13,
|
||||||
label: '实时监测'
|
label: '实时监测'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '14',
|
value: 14,
|
||||||
label: 'FQC抽检'
|
label: 'FQC抽检'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '15',
|
value: 15,
|
||||||
label: 'OQC抽检'
|
label: 'OQC抽检'
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-01-11 09:24:58
|
* @Date: 2023-01-11 09:24:58
|
||||||
* @LastEditTime: 2023-07-17 16:27:53
|
* @LastEditTime: 2023-07-12 14:57:28
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -116,59 +116,59 @@ export default {
|
|||||||
param: 'inspectionTypeId',
|
param: 'inspectionTypeId',
|
||||||
selectOptions: [
|
selectOptions: [
|
||||||
{
|
{
|
||||||
id: '0',
|
id: 0,
|
||||||
name: '监控'
|
name: '监控'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '1',
|
id: 1,
|
||||||
name: '电芯来料检验'
|
name: '电芯来料检验'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '2',
|
id: 2,
|
||||||
name: 'IQC抽检'
|
name: 'IQC抽检'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '3',
|
id: 3,
|
||||||
name: 'IQC抽检2'
|
name: 'IQC抽检2'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '4',
|
id: 4,
|
||||||
name: '原料抽检'
|
name: '原料抽检'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '5',
|
id: 5,
|
||||||
name: '进货外观检验'
|
name: '进货外观检验'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '6',
|
id: 6,
|
||||||
name: '库内原料检验'
|
name: '库内原料检验'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '7',
|
id: 7,
|
||||||
name: '来料检验'
|
name: '来料检验'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '8',
|
id: 8,
|
||||||
name: '胶片'
|
name: '胶片'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '9',
|
id: 9,
|
||||||
name: '抽检'
|
name: '抽检'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '10',
|
id: 10,
|
||||||
name: '巡检'
|
name: '巡检'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '11',
|
id: 11,
|
||||||
name: '首检'
|
name: '首检'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '12',
|
id: 12,
|
||||||
name: '末检'
|
name: '末检'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '13',
|
id: 13,
|
||||||
name: '实时监测'
|
name: '实时监测'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-04-18 09:19:02
|
* @Date: 2023-04-18 09:19:02
|
||||||
* @LastEditTime: 2023-07-17 14:27:21
|
* @LastEditTime: 2023-04-18 14:24:53
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -15,44 +15,30 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import i18n from "@/i18n"
|
import i18n from "@/i18n"
|
||||||
import { timeFormatter } from '@/filters'
|
|
||||||
|
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
prop: "stageOneName",
|
prop: "contact",
|
||||||
label: i18n.t('researchquality.stageOneName'),
|
label: i18n.t('supplier.contact'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "stageOneDate",
|
prop: "contactEmail",
|
||||||
label: i18n.t('researchquality.stageOneDate'),
|
label: i18n.t('supplier.contactEmail')
|
||||||
filter: timeFormatter
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "stageTwoName",
|
prop: "contactPhone",
|
||||||
label: i18n.t('researchquality.stageTwoName'),
|
label: i18n.t('supplier.contactPhone')
|
||||||
},,
|
|
||||||
{
|
|
||||||
prop: "stageTwoDate",
|
|
||||||
label: i18n.t('researchquality.stageTwoDate'),
|
|
||||||
filter: timeFormatter
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "stageThreeName",
|
prop: "enterpriseNature",
|
||||||
label: i18n.t('researchquality.stageThreeName'),
|
label: i18n.t('supplier.enterpriseNature')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "stageThreeDate",
|
prop: "industry",
|
||||||
label: i18n.t('researchquality.stageThreeDate'),
|
label: i18n.t('supplier.industry')
|
||||||
filter: timeFormatter
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "stageFourName",
|
prop: "productService",
|
||||||
label: i18n.t('researchquality.stageFourName'),
|
label: i18n.t('supplier.productService')
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: "stageFourDate",
|
|
||||||
label: i18n.t('researchquality.stageFourDate'),
|
|
||||||
filter: timeFormatter
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
export default {
|
export default {
|
||||||
@ -75,18 +61,15 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
showInnerTable(id) {
|
showInnerTable(id) {
|
||||||
console.log(this.list)
|
|
||||||
console.log(id)
|
console.log(id)
|
||||||
this.tableData = [
|
this.tableData = [
|
||||||
{
|
{
|
||||||
stageOneName: this.injectData.stageOneName,
|
contact: this.injectData.contact,
|
||||||
stageOneDate: this.injectData.stageOneDate,
|
contactEmail: this.injectData.contactEmail,
|
||||||
stageTwoName: this.injectData.stageTwoName,
|
contactPhone: this.injectData.contactPhone,
|
||||||
stageTwoDate: this.injectData.stageTwoDate,
|
enterpriseNature: this.injectData.enterpriseNature,
|
||||||
stageThreeName: this.injectData.stageThreeName,
|
industry: this.injectData.industry,
|
||||||
stageThreeDate: this.injectData.stageThreeDate,
|
productService: this.injectData.productService
|
||||||
stageFourName: this.injectData.stageFourName,
|
|
||||||
stageFourDate: this.injectData.stageFourDate,
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-17 14:16:54
|
* @LastEditTime: 2023-07-14 15:21:15
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -33,8 +33,8 @@
|
|||||||
<el-input v-model="dataForm.title" :placeholder="$t('researchquality.title')">
|
<el-input v-model="dataForm.title" :placeholder="$t('researchquality.title')">
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="processListData" :label="$t('researchquality.processName')">
|
<el-form-item prop="processList" :label="$t('researchquality.processName')">
|
||||||
<el-select v-model="dataForm.processListData" multiple :placeholder="$t('researchquality.processName')">
|
<el-select @change="getProcessList" v-model="dataForm.processList" multiple :placeholder="$t('researchquality.processName')">
|
||||||
<el-option v-for="item in processList" :key="item.id" :label="item.processName" :value="item.id">
|
<el-option v-for="item in processList" :key="item.id" :label="item.processName" :value="item.id">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
@ -45,8 +45,8 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="productTypeListData" :label="$t('researchquality.productTypeName')">
|
<el-form-item prop="productTypeList" :label="$t('researchquality.productTypeName')">
|
||||||
<el-select v-model="dataForm.productTypeListData" multiple :placeholder="$t('researchquality.productTypeName')">
|
<el-select v-model="dataForm.productTypeList" multiple :placeholder="$t('researchquality.productTypeName')">
|
||||||
<el-option v-for="item in productTypeList" :key="item.id" :label="item.productTypeName" :value="item.id">
|
<el-option v-for="item in productTypeList" :key="item.id" :label="item.productTypeName" :value="item.id">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
@ -184,8 +184,6 @@ export default {
|
|||||||
stageThreeName: null,
|
stageThreeName: null,
|
||||||
productTypeList: [],
|
productTypeList: [],
|
||||||
processList: [],
|
processList: [],
|
||||||
productTypeListData: [],
|
|
||||||
processListData: [],
|
|
||||||
stageTwoDate: null,
|
stageTwoDate: null,
|
||||||
stageTwoName: null,
|
stageTwoName: null,
|
||||||
temporaryChange: null,
|
temporaryChange: null,
|
||||||
@ -245,31 +243,17 @@ export default {
|
|||||||
this.getDict();
|
this.getDict();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init(data, ) {
|
init(id, ) {
|
||||||
if (data) {
|
this.dataForm.id = id || ""
|
||||||
this.dataForm = data
|
|
||||||
let processArr = []
|
|
||||||
data.processList.forEach((item) => {
|
|
||||||
processArr.push(item.id)
|
|
||||||
})
|
|
||||||
this.dataForm.processListData = processArr
|
|
||||||
let productTypeArr = []
|
|
||||||
data.productTypeList.forEach((item) => {
|
|
||||||
productTypeArr.push(item.id)
|
|
||||||
})
|
|
||||||
this.dataForm.productTypeListData = productTypeArr
|
|
||||||
} else {
|
|
||||||
this.$refs["dataForm"].resetFields()
|
|
||||||
}
|
|
||||||
// this.dataForm.dictTypeId = dictTypeId || "";
|
// this.dataForm.dictTypeId = dictTypeId || "";
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
// this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
// this.$refs["dataForm"].resetFields();
|
this.$refs["dataForm"].resetFields();
|
||||||
// if (this.dataForm.id) {
|
if (this.dataForm.id) {
|
||||||
// this.getInfo()
|
this.getInfo();
|
||||||
// } else {
|
} else {
|
||||||
// }
|
}
|
||||||
// });
|
});
|
||||||
},
|
},
|
||||||
getDict() {
|
getDict() {
|
||||||
this.$http
|
this.$http
|
||||||
@ -321,6 +305,9 @@ export default {
|
|||||||
.catch(() => {
|
.catch(() => {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getProcessList(val) {
|
||||||
|
console.log(val);
|
||||||
|
},
|
||||||
// 获取信息
|
// 获取信息
|
||||||
getInfo() {
|
getInfo() {
|
||||||
this.$http
|
this.$http
|
||||||
@ -337,42 +324,6 @@ export default {
|
|||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
},
|
},
|
||||||
// 表单提交
|
// 表单提交
|
||||||
dataFormSubmit() {
|
|
||||||
const processArr = this.dataForm.processListData.map((item) => {
|
|
||||||
return {
|
|
||||||
id: item
|
|
||||||
}
|
|
||||||
})
|
|
||||||
console.log(processArr);
|
|
||||||
this.dataForm.processList = processArr
|
|
||||||
const productTypeArr = this.dataForm.productTypeListData.map((item) => {
|
|
||||||
return {
|
|
||||||
id: item
|
|
||||||
}
|
|
||||||
})
|
|
||||||
this.dataForm.productTypeList = productTypeArr
|
|
||||||
this.$refs["dataForm"].validate((valid) => {
|
|
||||||
if (!valid) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
this.$http[!this.dataForm.id ? "post" : "put"](this.urlOptions.submitURL, this.dataForm)
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
if (res.code !== 0) {
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.$message({
|
|
||||||
message: this.$t("prompt.success"),
|
|
||||||
type: "success",
|
|
||||||
duration: 500,
|
|
||||||
onClose: () => {
|
|
||||||
this.visible = false;
|
|
||||||
this.$emit("refreshDataList");
|
|
||||||
},
|
|
||||||
});
|
|
||||||
})
|
|
||||||
.catch(() => { });
|
|
||||||
});
|
|
||||||
},
|
|
||||||
dataFormSubmitHandle: debounce(
|
dataFormSubmitHandle: debounce(
|
||||||
function () {
|
function () {
|
||||||
this.$refs["dataForm"].validate((valid) => {
|
this.$refs["dataForm"].validate((valid) => {
|
||||||
@ -389,8 +340,9 @@ export default {
|
|||||||
type: "success",
|
type: "success",
|
||||||
duration: 500,
|
duration: 500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
console.log(1111);
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
this.$emit("refreshDataList");
|
this.$emit("successSubmit");
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-04-17 14:23:17
|
* @Date: 2023-04-17 14:23:17
|
||||||
* @LastEditTime: 2023-07-17 14:33:44
|
* @LastEditTime: 2023-07-14 15:02:29
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -55,7 +55,7 @@ import basicSearch from "@/mixins/basic-search"
|
|||||||
import qualityChangeSearch from "./components/qualityChangeSearch.vue"
|
import qualityChangeSearch from "./components/qualityChangeSearch.vue"
|
||||||
import qualityChangeAdd from "./components/qualityChange-add.vue"
|
import qualityChangeAdd from "./components/qualityChange-add.vue"
|
||||||
import InnerTable from "./components/innerTable"
|
import InnerTable from "./components/innerTable"
|
||||||
import { timeFormatter, handleProcess, handleProductType } from '@/filters'
|
|
||||||
import i18n from "@/i18n"
|
import i18n from "@/i18n"
|
||||||
// import supplier from '@/filters/supplier'
|
// import supplier from '@/filters/supplier'
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
@ -66,7 +66,6 @@ const tableProps = [
|
|||||||
{
|
{
|
||||||
prop: "registrationDate",
|
prop: "registrationDate",
|
||||||
label: i18n.t('researchquality.registrationDate'),
|
label: i18n.t('researchquality.registrationDate'),
|
||||||
filter: timeFormatter
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "changeSource",
|
prop: "changeSource",
|
||||||
@ -76,10 +75,10 @@ const tableProps = [
|
|||||||
prop: "owner",
|
prop: "owner",
|
||||||
label: i18n.t('researchquality.owner'),
|
label: i18n.t('researchquality.owner'),
|
||||||
},
|
},
|
||||||
// {
|
{
|
||||||
// prop: "category",
|
prop: "category",
|
||||||
// label: i18n.t('researchquality.category'),
|
label: i18n.t('researchquality.category'),
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
prop: "title",
|
prop: "title",
|
||||||
label: i18n.t('researchquality.title'),
|
label: i18n.t('researchquality.title'),
|
||||||
@ -92,16 +91,6 @@ const tableProps = [
|
|||||||
prop: "productName",
|
prop: "productName",
|
||||||
label: i18n.t('researchquality.productName'),
|
label: i18n.t('researchquality.productName'),
|
||||||
},
|
},
|
||||||
{
|
|
||||||
prop: "productTypeList",
|
|
||||||
label: i18n.t('researchquality.productTypeName'),
|
|
||||||
filter: handleProductType
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: "processList",
|
|
||||||
label: i18n.t('researchquality.processName'),
|
|
||||||
filter: handleProcess
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
prop: "qualityChangeStatus",
|
prop: "qualityChangeStatus",
|
||||||
label: i18n.t('researchquality.qualityChangeStatus'),
|
label: i18n.t('researchquality.qualityChangeStatus'),
|
||||||
@ -145,10 +134,6 @@ export default {
|
|||||||
limit: 999,
|
limit: 999,
|
||||||
page:1
|
page:1
|
||||||
},
|
},
|
||||||
listQuery: {
|
|
||||||
limit: 50,
|
|
||||||
page: 1
|
|
||||||
},
|
|
||||||
searchOrEditTitle: "",
|
searchOrEditTitle: "",
|
||||||
searchOrUpdateVisible: false,
|
searchOrUpdateVisible: false,
|
||||||
productOrEditTitle: "",
|
productOrEditTitle: "",
|
||||||
@ -260,11 +245,10 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch(() => { });
|
.catch(() => { });
|
||||||
} else if (val.type === 'edit') {
|
} else if (val.type === 'edit') {
|
||||||
console.log(val.data)
|
|
||||||
this.addOrUpdateVisible = true
|
this.addOrUpdateVisible = true
|
||||||
this.addOrEditTitle = this.$t('edit')
|
this.addOrEditTitle = this.$t('edit')
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.addOrUpdate.init(val.data);
|
this.$refs.addOrUpdate.init(val.data.id);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1,249 +0,0 @@
|
|||||||
<template>
|
|
||||||
<el-card shadow="never" class="aui-card--fill">
|
|
||||||
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
|
|
||||||
<el-form-item label="标题" prop="title">
|
|
||||||
<el-input v-model="ruleForm.title"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="评估类型" prop="evaluationType">
|
|
||||||
<el-radio-group v-model="ruleForm.evaluationType">
|
|
||||||
<el-radio-button :label="0">年度</el-radio-button>
|
|
||||||
<el-radio-button :label="1">季度</el-radio-button>
|
|
||||||
<el-radio-button :label="2">月度</el-radio-button>
|
|
||||||
</el-radio-group>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="评估模板" prop="evaluationTemplateId">
|
|
||||||
<el-select v-model="ruleForm.evaluationTemplateId" filterable clearable placeholder="评估模板">
|
|
||||||
<el-option
|
|
||||||
v-for="item in modalOptions"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.name"
|
|
||||||
:value="item.id">
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="说明" prop="description">
|
|
||||||
<el-input type="textarea" v-model="ruleForm.description"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
提醒时间
|
|
||||||
<el-form-item label="月" prop="reminderTimeMonth">
|
|
||||||
<el-radio-group v-model="ruleForm.reminderTimeMonth" @change="setDay">
|
|
||||||
<el-radio-button v-for="(item, index) in monthList" :key="index" :label="item"></el-radio-button>
|
|
||||||
</el-radio-group>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="日" prop="reminderTimeDay">
|
|
||||||
<el-radio-group v-model="ruleForm.reminderTimeDay">
|
|
||||||
<el-radio-button v-for="(item, index) in dayList" :key="index" :label="item"></el-radio-button>
|
|
||||||
</el-radio-group>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="评估人" prop="evaluator">
|
|
||||||
<el-radio-group v-model="ruleForm.evaluator">
|
|
||||||
<el-radio v-for="(item, index) in userList" :key="index" :label="item.id">{{ item.username }}</el-radio>
|
|
||||||
</el-radio-group>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="提醒人" prop="reminder">
|
|
||||||
<el-select v-model="ruleForm.reminder" filterable clearable placeholder="提醒人">
|
|
||||||
<el-option
|
|
||||||
v-for="item in userList"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.username"
|
|
||||||
:value="item.id">
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="待评估供应商" prop="chooseSupplierList">
|
|
||||||
<el-select v-model="chooseSupplierList" filterable multiple clearable placeholder="待评估供应商">
|
|
||||||
<el-option
|
|
||||||
v-for="item in supplierList"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.supplierTypeName"
|
|
||||||
:value="item.id">
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item>
|
|
||||||
<el-button type="primary" @click="submitForm('ruleForm')">保存</el-button>
|
|
||||||
<el-button @click="resetForm('ruleForm')">取消</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
</el-card>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
urlOptions: {
|
|
||||||
addURL: '/supplier/qmsEvaluationPlan',
|
|
||||||
getTemplateListURL: '/supplier/qmsEvaluationTemplate/page',
|
|
||||||
getSupplierURL: '/supplier/qmsSupplier/page',
|
|
||||||
getUserURL: '/sys/user/page',
|
|
||||||
addQmsRelation: '/supplier/qmsEvaluationPlanSupplier'
|
|
||||||
},
|
|
||||||
ruleForm: {
|
|
||||||
title: '',
|
|
||||||
evaluationType: '',
|
|
||||||
evaluationTemplateId: '',
|
|
||||||
description: '',
|
|
||||||
reminderTimeMonth: 1,
|
|
||||||
reminderTimeDay: 1,
|
|
||||||
evaluationType: '',
|
|
||||||
evaluator: '',
|
|
||||||
reminder: ''
|
|
||||||
},
|
|
||||||
chooseSupplierList: [],
|
|
||||||
monthList: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
|
|
||||||
dayList: 30,
|
|
||||||
modalOptions: [],
|
|
||||||
userList: [],
|
|
||||||
supplierList: [],
|
|
||||||
rules: {
|
|
||||||
title: [
|
|
||||||
{ required: true, message: '请输入活动名称', trigger: 'blur' }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
this.getTemplate()
|
|
||||||
this.getSupplier()
|
|
||||||
this.getUser()
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
setDay() {
|
|
||||||
switch (this.ruleForm.reminderTimeMonth) {
|
|
||||||
case 2:
|
|
||||||
this.dayList = 28
|
|
||||||
break
|
|
||||||
case 1:
|
|
||||||
case 3:
|
|
||||||
case 5:
|
|
||||||
case 7:
|
|
||||||
case 8:
|
|
||||||
case 10:
|
|
||||||
case 12:
|
|
||||||
this.dayList = 31
|
|
||||||
break
|
|
||||||
case 4:
|
|
||||||
case 6:
|
|
||||||
case 9:
|
|
||||||
case 11:
|
|
||||||
this.dayList = 30
|
|
||||||
break
|
|
||||||
}
|
|
||||||
},
|
|
||||||
getUser() {
|
|
||||||
this.$http
|
|
||||||
.get(this.urlOptions.getUserURL, {
|
|
||||||
params: {
|
|
||||||
limit: 999,
|
|
||||||
page: 1
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
if (res.code !== 0) {
|
|
||||||
this.userList = [];
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.userList = res.data.list;
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
getSupplier() {
|
|
||||||
this.$http
|
|
||||||
.get(this.urlOptions.getSupplierURL, {
|
|
||||||
params: {
|
|
||||||
limit: 999,
|
|
||||||
page: 1
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
if (res.code !== 0) {
|
|
||||||
this.supplierList = [];
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.supplierList = res.data.list;
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
getTemplate() {
|
|
||||||
this.$http
|
|
||||||
.get(this.urlOptions.getTemplateListURL, {
|
|
||||||
params: {
|
|
||||||
limit: 999,
|
|
||||||
page: 1
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
if (res.code !== 0) {
|
|
||||||
this.modalOptions = [];
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.modalOptions = res.data.list;
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
submitForm(formName) {
|
|
||||||
console.log('啊啊啊啊啊', this.ruleForm)
|
|
||||||
console.log('nich ', this.chooseSupplierList)
|
|
||||||
this.$refs[formName].validate((valid) => {
|
|
||||||
if (valid) {
|
|
||||||
this.$http["post"](this.urlOptions.addURL, this.ruleForm)
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
if (res.code !== 0) {
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
if (this.chooseSupplierList.length > 0) {
|
|
||||||
this.chooseSupplierList.forEach(item => {
|
|
||||||
let param = {
|
|
||||||
supplierId: item,
|
|
||||||
evaluationPlanId: res.data
|
|
||||||
}
|
|
||||||
this.$http["post"](this.urlOptions.addQmsRelation, param)
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
if (res.code !== 0) {
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
console.log('添加成功')
|
|
||||||
// this.$message({
|
|
||||||
// message: this.$t("prompt.success"),
|
|
||||||
// type: "success",
|
|
||||||
// duration: 500
|
|
||||||
// })
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
this.$message({
|
|
||||||
message: this.$t("prompt.success"),
|
|
||||||
type: "success",
|
|
||||||
duration: 500,
|
|
||||||
onClose: () => {
|
|
||||||
console.log(1111, res);
|
|
||||||
this.$emit("refreshDataList");
|
|
||||||
this.addRelation()
|
|
||||||
},
|
|
||||||
})
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
console.log('error submit!!');
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
addRelation() {
|
|
||||||
|
|
||||||
},
|
|
||||||
resetForm(formName) {
|
|
||||||
this.$refs[formName].resetFields();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,36 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: Do not edit
|
|
||||||
* @Date: 2023-07-04 09:34:07
|
|
||||||
* @LastEditTime: 2023-07-05 15:03:52
|
|
||||||
* @LastEditors: DY
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<el-card shadow="never" class="aui-card--fill">
|
|
||||||
<el-tabs tab-position="left" style="min-height: 200px;">
|
|
||||||
<el-tab-pane label="项目概述">
|
|
||||||
<first></first>
|
|
||||||
</el-tab-pane>
|
|
||||||
<el-tab-pane label="配置管理">配置管理</el-tab-pane>
|
|
||||||
<el-tab-pane label="角色管理">角色管理</el-tab-pane>
|
|
||||||
<el-tab-pane label="定时任务补偿">定时任务补偿</el-tab-pane>
|
|
||||||
</el-tabs>
|
|
||||||
</el-card>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import first from './first.vue'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
components: { first },
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: Do not edit
|
* @Author: Do not edit
|
||||||
* @Date: 2023-06-19 14:59:34
|
* @Date: 2023-06-19 14:59:34
|
||||||
* @LastEditTime: 2023-07-11 14:22:43
|
* @LastEditTime: 2023-06-27 15:00:33
|
||||||
* @LastEditors: DY
|
* @LastEditors: DY
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -159,7 +159,6 @@ export default {
|
|||||||
getTypeListURL: '/supplier/qmsProjectType/page',
|
getTypeListURL: '/supplier/qmsProjectType/page',
|
||||||
saveDataURL: '/supplier/qmsEvaluationTemplateProjectType/saveAll'
|
saveDataURL: '/supplier/qmsEvaluationTemplateProjectType/saveAll'
|
||||||
},
|
},
|
||||||
evaluationTemplateId: '',
|
|
||||||
visibleList: [true, false, false, false, false],
|
visibleList: [true, false, false, false, false],
|
||||||
activeStep: 0,
|
activeStep: 0,
|
||||||
ruleForm: {
|
ruleForm: {
|
||||||
@ -316,18 +315,13 @@ export default {
|
|||||||
}
|
}
|
||||||
const typeList = Array.from(new Set(temp))
|
const typeList = Array.from(new Set(temp))
|
||||||
console.log('aaaaaaa', typeList)
|
console.log('aaaaaaa', typeList)
|
||||||
for (let key of typeList) {
|
for (let type of typeList) {
|
||||||
let obj = {}
|
let obj = {}
|
||||||
obj.projectTypeName = typeList[key]
|
obj.projectTypeName = type
|
||||||
obj.dragVisible = false
|
obj.dragVisible = false
|
||||||
obj.sort = key
|
obj.list = this.multipleSelection.filter(ele => {
|
||||||
obj.list = this.multipleSelection.filter((ele, index) => {
|
if (ele.projectTypeName === type) {
|
||||||
if (ele.projectTypeName === typeList[key]) {
|
|
||||||
obj.projectTypeId = ele.projectTypeId
|
obj.projectTypeId = ele.projectTypeId
|
||||||
obj.evaluationTemplateId = this.evaluationTemplateId
|
|
||||||
ele.evaluationTemplateId = this.evaluationTemplateId
|
|
||||||
ele.projectId = ele.id
|
|
||||||
ele.sort = index
|
|
||||||
return ele
|
return ele
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -422,8 +416,6 @@ export default {
|
|||||||
this.$emit("refreshDataList");
|
this.$emit("refreshDataList");
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
console.log('新增结果', res.data)
|
|
||||||
this.evaluationTemplateId = res.data
|
|
||||||
this.activeStep ++
|
this.activeStep ++
|
||||||
// this.visibleList[0] = false
|
// this.visibleList[0] = false
|
||||||
// this.visibleList[1] = true
|
// this.visibleList[1] = true
|
||||||
|
@ -1,213 +0,0 @@
|
|||||||
<template>
|
|
||||||
<el-card shadow="never" class="aui-card--fill">
|
|
||||||
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
|
|
||||||
<el-form-item label="标题" prop="title">
|
|
||||||
<el-input v-model="ruleForm.title"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="物料" prop="productName">
|
|
||||||
<el-select v-model="ruleForm.productName" filterable clearable placeholder="物料">
|
|
||||||
<el-option
|
|
||||||
v-for="item in productList"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.productName"
|
|
||||||
:value="item.productName">
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="供应商" prop="supplierName">
|
|
||||||
<el-select v-model="ruleForm.supplierName" filterable clearable placeholder="供应商">
|
|
||||||
<el-option
|
|
||||||
v-for="item in supplierList"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.name"
|
|
||||||
:value="item.name">
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="负责人" prop="personLiableName">
|
|
||||||
<el-select v-model="ruleForm.personLiableName" filterable clearable placeholder="供应商">
|
|
||||||
<el-option
|
|
||||||
v-for="item in userList"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.username"
|
|
||||||
:value="item.username">
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="时间节点">
|
|
||||||
<el-date-picker
|
|
||||||
v-model="timeSlot"
|
|
||||||
type="daterange"
|
|
||||||
value-format="yyyy-MM-ddTHH:mm:ss"
|
|
||||||
range-separator="至"
|
|
||||||
start-placeholder="开始日期"
|
|
||||||
end-placeholder="结束日期">
|
|
||||||
</el-date-picker>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="背景" prop="background">
|
|
||||||
<el-input type="textarea" v-model="ruleForm.background"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="状态" prop="ment">
|
|
||||||
<el-select v-model="ruleForm.ment" filterable clearable placeholder="状态">
|
|
||||||
<el-option
|
|
||||||
v-for="item in mentList"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.name"
|
|
||||||
:value="item.id">
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item>
|
|
||||||
<el-button type="primary" @click="submitForm('ruleForm')">保存</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
</el-card>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
urlOptions: {
|
|
||||||
addURL: '/supplier/qmsSupplierProjectList',
|
|
||||||
getProductURL: '/basic/qmsProduct/page',
|
|
||||||
getSupplierURL: '/supplier/qmsSupplier/page',
|
|
||||||
getUserURL: '/sys/user/page'
|
|
||||||
},
|
|
||||||
ruleForm: {
|
|
||||||
title: '',
|
|
||||||
productName: '',
|
|
||||||
supplierName: '',
|
|
||||||
personLiableName: '',
|
|
||||||
background: '',
|
|
||||||
ment: 0,
|
|
||||||
timeNodeStart: undefined,
|
|
||||||
timeNodeEnd: undefined
|
|
||||||
},
|
|
||||||
mentList: [
|
|
||||||
{
|
|
||||||
id: 0,
|
|
||||||
name: '实施中'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 1,
|
|
||||||
name: '已完成'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
timeSlot: null,
|
|
||||||
productList: [],
|
|
||||||
userList: [],
|
|
||||||
supplierList: [],
|
|
||||||
rules: {
|
|
||||||
title: [
|
|
||||||
{ required: true, message: '请输入活动名称', trigger: 'blur' },
|
|
||||||
{ min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
this.getProduct()
|
|
||||||
this.getSupplier()
|
|
||||||
this.getUser()
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
getUser() {
|
|
||||||
this.$http
|
|
||||||
.get(this.urlOptions.getUserURL, {
|
|
||||||
params: {
|
|
||||||
limit: 999,
|
|
||||||
page: 1
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
if (res.code !== 0) {
|
|
||||||
this.userList = [];
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.userList = res.data.list;
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
getSupplier() {
|
|
||||||
this.$http
|
|
||||||
.get(this.urlOptions.getSupplierURL, {
|
|
||||||
params: {
|
|
||||||
limit: 999,
|
|
||||||
page: 1
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
if (res.code !== 0) {
|
|
||||||
this.supplierList = [];
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.supplierList = res.data.list;
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
getProduct() {
|
|
||||||
this.$http
|
|
||||||
.get(this.urlOptions.getProductURL, {
|
|
||||||
params: {
|
|
||||||
limit: 999,
|
|
||||||
page: 1
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
if (res.code !== 0) {
|
|
||||||
this.productList = [];
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.productList = res.data.list;
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
submitForm(formName) {
|
|
||||||
console.log('啊啊啊啊啊', this.ruleForm)
|
|
||||||
if (this.timeSlot) {
|
|
||||||
this.ruleForm.timeNodeStart = this.timeSlot[0]
|
|
||||||
this.ruleForm.timeNodeEnd = this.timeSlot[1]
|
|
||||||
} else {
|
|
||||||
this.ruleForm.timeNodeStart = undefined
|
|
||||||
this.ruleForm.timeNodeEnd = undefined
|
|
||||||
}
|
|
||||||
this.$refs[formName].validate((valid) => {
|
|
||||||
if (valid) {
|
|
||||||
this.$http["post"](this.urlOptions.addURL, this.ruleForm)
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
if (res.code !== 0) {
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.$message({
|
|
||||||
message: this.$t("prompt.success"),
|
|
||||||
type: "success",
|
|
||||||
duration: 500,
|
|
||||||
onClose: () => {
|
|
||||||
console.log(1111, res);
|
|
||||||
this.$emit("refreshDataList");
|
|
||||||
this.resetForm('ruleForm')
|
|
||||||
},
|
|
||||||
})
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
console.log('error submit!!');
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
resetForm(formName) {
|
|
||||||
this.$refs[formName].resetFields();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,123 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zhp
|
|
||||||
* @Date: 2023-02-14 15:02:26
|
|
||||||
* @LastEditTime: 2023-07-14 15:34:18
|
|
||||||
* @LastEditors: DY
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="150px">
|
|
||||||
<el-form-item prop="evaluationType" label="评估类型">
|
|
||||||
<!-- <el-input v-model="dataForm.evaluationType" :placeholder="$t('laboratory.title')">
|
|
||||||
</el-input> -->
|
|
||||||
<el-tag :type="dataForm.evaluationType === 0 ? 'info' : dataForm.evaluationType === 1 ? 'success' : ''" effect="dark">{{ dataForm.evaluationType === 0 ? '年度' : dataForm.evaluationType === 1 ? '季度' : '月度' }}</el-tag>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item prop="estimatedNextStartTime" label="评估时间">
|
|
||||||
<el-date-picker v-model="dataForm.estimatedNextStartTime" type="datetime" placeholder="评估时间"
|
|
||||||
format='yyyy-MM-dd HH:mm:ss' valueFormat='yyyy-MM-ddTHH:mm:ss'>
|
|
||||||
</el-date-picker>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import debounce from "lodash/debounce";
|
|
||||||
// import basicAdd from "@/mixins/basic-add";
|
|
||||||
export default {
|
|
||||||
// mixins: [basicAdd],
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
urlOptions: {
|
|
||||||
submitURL: "/supplier/qmsEvaluationPlan"
|
|
||||||
// infoURL: "/laboratory/qmsLaboratoryTrainExperience/{ id }",
|
|
||||||
},
|
|
||||||
gageList: [],
|
|
||||||
userList: [],
|
|
||||||
customerList:[],
|
|
||||||
gageTypeList:[],
|
|
||||||
departmentList: [],
|
|
||||||
visible: false,
|
|
||||||
dataForm: {
|
|
||||||
id: null,
|
|
||||||
estimatedNextStartTime: '',
|
|
||||||
evaluationType: ''
|
|
||||||
},
|
|
||||||
};
|
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
dataRule() {
|
|
||||||
return {
|
|
||||||
};
|
|
||||||
},
|
|
||||||
},
|
|
||||||
// mounted () {
|
|
||||||
// this.getData();
|
|
||||||
// },
|
|
||||||
methods: {
|
|
||||||
init(data) {
|
|
||||||
this.visible = true
|
|
||||||
console.log('jpuz cjuu', data)
|
|
||||||
this.dataForm.id = data.id
|
|
||||||
this.dataForm.evaluationType = data.evaluationType
|
|
||||||
// this.dataForm.id = data.id ? data.id : ''
|
|
||||||
// this.dataForm.laboratoryTesterId = data.laboratoryTesterId ? data.laboratoryTesterId : ''
|
|
||||||
// // console.log(11111)
|
|
||||||
// // this.dataForm.dictTypeId = dictTypeId || "";
|
|
||||||
// this.visible = true
|
|
||||||
// this.$nextTick(() => {
|
|
||||||
// this.$refs["dataForm"].resetFields();
|
|
||||||
// if (this.dataForm.id) {
|
|
||||||
// this.getInfo()
|
|
||||||
// } else {
|
|
||||||
// // this.getCode()
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
},
|
|
||||||
// 获取信息
|
|
||||||
// getInfo() {
|
|
||||||
// this.$http
|
|
||||||
// .get(`/laboratory/qmsLaboratoryTrainExperience/${this.dataForm.id}`)
|
|
||||||
// .then(({ data: res }) => {
|
|
||||||
// if (res.code !== 0) {
|
|
||||||
// return this.$message.error(res.msg);
|
|
||||||
// }
|
|
||||||
// this.dataForm = {
|
|
||||||
// ...this.dataForm,
|
|
||||||
// ...res.data,
|
|
||||||
// };
|
|
||||||
// })
|
|
||||||
// .catch(() => { })
|
|
||||||
// },
|
|
||||||
// 表单提交
|
|
||||||
dataFormSubmit: debounce(
|
|
||||||
function () {
|
|
||||||
console.log('nihc ', this.dataForm)
|
|
||||||
this.$refs["dataForm"].validate((valid) => {
|
|
||||||
if (!valid) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
this.$http['put'](this.urlOptions.submitURL, this.dataForm)
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
if (res.code !== 0) {
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.$message({
|
|
||||||
message: this.$t("prompt.success"),
|
|
||||||
type: "success",
|
|
||||||
duration: 500,
|
|
||||||
onClose: () => {
|
|
||||||
console.log(1111);
|
|
||||||
this.visible = false;
|
|
||||||
this.$emit("refreshDataList");
|
|
||||||
},
|
|
||||||
});
|
|
||||||
})
|
|
||||||
.catch(() => {});
|
|
||||||
});
|
|
||||||
},
|
|
||||||
1000,
|
|
||||||
{ leading: true, trailing: false }
|
|
||||||
),
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
@ -1,30 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zhp
|
|
||||||
* @Date: 2023-04-18 09:11:41
|
|
||||||
* @LastEditTime: 2023-07-13 15:21:27
|
|
||||||
* @LastEditors: DY
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<div class="tableInner">
|
|
||||||
<span>{{ injectData.supplierStatus === 0 ? '合格' : injectData.supplierStatus === 1 ? '不合格' : '黑名单' }}</span>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
props: {
|
|
||||||
injectData: {
|
|
||||||
type: Object,
|
|
||||||
default: () => ({})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<style lang="css">
|
|
||||||
.tableInner .el-input__inner {
|
|
||||||
border: none;
|
|
||||||
padding: 0;
|
|
||||||
height: 33px;
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -1,8 +1,8 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-14 15:56:51
|
* @LastEditTime: 2023-07-12 15:54:54
|
||||||
* @LastEditors: DY
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -32,10 +32,6 @@
|
|||||||
<el-input v-model="dataForm.address" :placeholder="$t('supplier.address')">
|
<el-input v-model="dataForm.address" :placeholder="$t('supplier.address')">
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="grade" :label="$t('supplier.grade')">
|
|
||||||
<el-input v-model="dataForm.grade" :placeholder="$t('supplier.grade')">
|
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item prop="ment" :label="$t('supplier.ment')">
|
<el-form-item prop="ment" :label="$t('supplier.ment')">
|
||||||
<el-select v-model="dataForm.ment" :placeholder="$t('supplier.ment')">
|
<el-select v-model="dataForm.ment" :placeholder="$t('supplier.ment')">
|
||||||
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
|
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
|
||||||
@ -163,8 +159,7 @@ export default {
|
|||||||
contactPhone: null,
|
contactPhone: null,
|
||||||
enterpriseNature: null,
|
enterpriseNature: null,
|
||||||
industry: null,
|
industry: null,
|
||||||
productService: null,
|
productService: null
|
||||||
grade: null
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-14 15:57:26
|
* @LastEditTime: 2023-07-12 15:55:44
|
||||||
* @LastEditors: DY
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
|
@ -1,20 +1,20 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-04-17 14:23:17
|
* @Date: 2023-04-17 14:23:17
|
||||||
* @LastEditTime: 2023-07-12 14:17:24
|
* @LastEditTime: 2023-06-19 10:25:26
|
||||||
* @LastEditors: DY
|
* @LastEditors: DY
|
||||||
* @Description: 标签设定
|
* @Description: 标签设定
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-card shadow="never" class="aui-card--fill">
|
<el-card shadow="never" class="aui-card--fill">
|
||||||
<!-- <div class="mod-sys__user"> -->
|
<!-- <div class="mod-sys__user"> -->
|
||||||
<el-input v-model="name" :placeholder="$t('supplier.title')" style="width:300px" @blur="handleAdd" @keyup.enter.native="$event.target.blur">
|
<el-input v-model="name" :placeholder="$t('supplier.title')" style="width:300px" @blur="throttle(handleAdd())" @keyup.enter.native="throttle(handleAdd())">
|
||||||
</el-input>
|
</el-input>
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
<el-card v-for="(item, index) in tableData" :key="index" class="box-card" style="width:80%; margin-top: 15px">
|
<el-card v-for="(item, index) in tableData" :key="index" class="box-card" style="width:80%; margin-top: 15px">
|
||||||
<div slot="header" class="clearfix">
|
<div slot="header" class="clearfix">
|
||||||
<el-input :disabled="item.disabled" style="width: 20%; border: none" v-model="item.name" @blur="handleEdit(item)" @keyup.enter.native="$event.target.blur"></el-input>
|
<span>{{ item.name }}</span>
|
||||||
<el-button style="float: right; padding: 3px 0" type="text" icon="el-icon-edit" @click="editHandle(item)" />
|
<el-button style="float: right; padding: 3px 0" type="text" icon="el-icon-edit" />
|
||||||
<el-button style="float: right; padding: 3px 0" type="text" icon="el-icon-delete" @click="deleteHandle(item.id, item.name)" />
|
<el-button style="float: right; padding: 3px 0" type="text" icon="el-icon-delete" @click="deleteHandle(item.id, item.name)" />
|
||||||
</div>
|
</div>
|
||||||
<!-- <span v-for="(item, index) in tableData" :key="index" class="text item">
|
<!-- <span v-for="(item, index) in tableData" :key="index" class="text item">
|
||||||
@ -62,8 +62,7 @@ export default {
|
|||||||
getSupplierListURL: '/supplier/qmsSupplier/page',
|
getSupplierListURL: '/supplier/qmsSupplier/page',
|
||||||
getTemplateListURL: '/supplier/qmsEvaluationTask/page',
|
getTemplateListURL: '/supplier/qmsEvaluationTask/page',
|
||||||
submitURL: '/supplier/qmsEvaluationItemListLabel',
|
submitURL: '/supplier/qmsEvaluationItemListLabel',
|
||||||
addLabelInfoURL: '/supplier/qmsEvaluationItemListLabelInfo',
|
addLabelInfoURL: '/supplier/qmsEvaluationItemListLabelInfo'
|
||||||
deleteLabelInfoURL: '/supplier/qmsEvaluationItemListLabelInfo'
|
|
||||||
},
|
},
|
||||||
name: '',
|
name: '',
|
||||||
tableData: [],
|
tableData: [],
|
||||||
@ -72,6 +71,7 @@ export default {
|
|||||||
page: 1,
|
page: 1,
|
||||||
total: 0,
|
total: 0,
|
||||||
},
|
},
|
||||||
|
dynamicTags: ['标签一', '标签二', '标签三'],
|
||||||
inputVisible: false,
|
inputVisible: false,
|
||||||
inputValue: [],
|
inputValue: [],
|
||||||
searchOrEditTitle: "",
|
searchOrEditTitle: "",
|
||||||
@ -83,7 +83,7 @@ export default {
|
|||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
},
|
},
|
||||||
mounted() {
|
activated() {
|
||||||
this.getDataList()
|
this.getDataList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -92,30 +92,6 @@ export default {
|
|||||||
// this.searchOrEditTitle = "";
|
// this.searchOrEditTitle = "";
|
||||||
// this.searchOrUpdateVisible = false;
|
// this.searchOrUpdateVisible = false;
|
||||||
// },
|
// },
|
||||||
handleEdit(label) {
|
|
||||||
const data = {
|
|
||||||
name: label.name,
|
|
||||||
id: label.id
|
|
||||||
}
|
|
||||||
this.$http["put"](this.urlOptions.submitURL, data)
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
if (res.code !== 0) {
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.$message({
|
|
||||||
message: this.$t("prompt.success"),
|
|
||||||
type: "success",
|
|
||||||
duration: 500,
|
|
||||||
onClose: () => {
|
|
||||||
this.getDataList()
|
|
||||||
},
|
|
||||||
})
|
|
||||||
})
|
|
||||||
},
|
|
||||||
editHandle(label) {
|
|
||||||
label.disabled = false
|
|
||||||
console.log('nihc', label)
|
|
||||||
},
|
|
||||||
handleClose(tag) {
|
handleClose(tag) {
|
||||||
console.log('你好', tag)
|
console.log('你好', tag)
|
||||||
this.$confirm(`确定对[名称=${tag.name}]进行删除操作?`, "提示", {
|
this.$confirm(`确定对[名称=${tag.name}]进行删除操作?`, "提示", {
|
||||||
@ -123,20 +99,7 @@ export default {
|
|||||||
cancelButtonText: "取消",
|
cancelButtonText: "取消",
|
||||||
type: "warning",
|
type: "warning",
|
||||||
}).then(()=> {
|
}).then(()=> {
|
||||||
this.$http.delete(this.urlOptions.deleteLabelInfoURL, { data: [tag.id] }).then(({ data }) => {
|
this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1)
|
||||||
if (data && data.code === 0) {
|
|
||||||
this.$message({
|
|
||||||
message: "操作成功",
|
|
||||||
type: "success",
|
|
||||||
duration: 1500,
|
|
||||||
onClose: () => {
|
|
||||||
this.getDataList();
|
|
||||||
},
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
this.$message.error(data.msg);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -229,11 +192,19 @@ export default {
|
|||||||
type: "success",
|
type: "success",
|
||||||
duration: 500,
|
duration: 500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
this.getDataList()
|
this.visible = false
|
||||||
|
this.$emit("successSubmit")
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
conditionSearch() {
|
||||||
|
this.searchOrEditTitle = "搜索";
|
||||||
|
this.searchOrUpdateVisible = true;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.searchOrUpdate.init();
|
||||||
|
});
|
||||||
|
},
|
||||||
exportHandle() {
|
exportHandle() {
|
||||||
this.$http.get(this.urlOptions.exportURL, { responseType: 'blob' }, {
|
this.$http.get(this.urlOptions.exportURL, { responseType: 'blob' }, {
|
||||||
...this.dataForm
|
...this.dataForm
|
||||||
@ -328,7 +299,6 @@ export default {
|
|||||||
},
|
},
|
||||||
getDataList() {
|
getDataList() {
|
||||||
this.dataListLoading = true;
|
this.dataListLoading = true;
|
||||||
this.name = ''
|
|
||||||
this.$http
|
this.$http
|
||||||
.get(this.urlOptions.getDataListURL, {
|
.get(this.urlOptions.getDataListURL, {
|
||||||
params: this.listQuery,
|
params: this.listQuery,
|
||||||
@ -340,11 +310,7 @@ export default {
|
|||||||
this.listQuery.total = 0;
|
this.listQuery.total = 0;
|
||||||
return this.$message.error(res.msg);
|
return this.$message.error(res.msg);
|
||||||
}
|
}
|
||||||
this.tableData = res.data.list.map((item) =>{
|
this.tableData = res.data.list;
|
||||||
item.disabled = true
|
|
||||||
return item
|
|
||||||
})
|
|
||||||
|
|
||||||
this.listQuery.total = res.data.total;
|
this.listQuery.total = res.data.total;
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
@ -1,201 +1,253 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: Do not edit
|
* @Author: zhp
|
||||||
* @Date: 2023-06-20 11:16:51
|
* @Date: 2023-04-17 14:23:17
|
||||||
* @LastEditTime: 2023-07-14 15:53:22
|
* @LastEditTime: 2023-07-12 16:05:36
|
||||||
* @LastEditors: DY
|
* @LastEditors: zhp
|
||||||
* @Description: 评估计划
|
* @Description: 评估计划
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-card shadow="never" class="aui-card--fill">
|
<el-card shadow="never" class="aui-card--fill">
|
||||||
<div>
|
<div class="mod-sys__user">
|
||||||
<el-form :inline="true" :model="formInline" class="demo-form-inline">
|
<SearchBar :formConfigs="formConfig" ref="ruleForm" @headBtnClick="buttonClick">
|
||||||
<el-form-item label="供应商名称">
|
</SearchBar>
|
||||||
<el-input v-model="formInline.supplierName" placeholder="供应商"></el-input>
|
<base-table id="palletTable" :table-props="tableProps" :page="listQuery.page" ref="palletTable1"
|
||||||
</el-form-item>
|
:limit="listQuery.limit" :table-data="tableData">
|
||||||
<el-form-item label="评估模板">
|
<method-btn v-if="tableBtn.length" slot="handleBtn" :width="100" label="操作" :method-list="tableBtn"
|
||||||
<el-select v-model="formInline.evaluationTemplateId" filterable clearable placeholder="评估模板">
|
@clickBtn="handleClick" />
|
||||||
<el-option
|
</base-table>
|
||||||
v-for="item in modalOptions"
|
<pagination :limit.sync="listQuery.limit" :page.sync="listQuery.page" :total="listQuery.total"
|
||||||
:key="item.id"
|
@pagination="getDataList" />
|
||||||
:label="item.name"
|
<!-- 弹窗, 新增 / 修改 -->
|
||||||
:value="item.id">
|
<base-dialog :dialogTitle="addOrEditTitle" :dialogVisible="addOrUpdateVisible" @cancel="handleCancel"
|
||||||
</el-option>
|
@confirm="handleConfirm" :before-close="handleCancel">
|
||||||
</el-select>
|
<evaluationItemList-add ref="addOrUpdate" @refreshDataList="successSubmit">
|
||||||
</el-form-item>
|
</evaluationItemList-add>
|
||||||
<el-form-item label="评估类型">
|
<!-- <el-row slot="footer" type="flex" justify="end"> </el-row> -->
|
||||||
<el-select v-model="formInline.evaluationType" clearable placeholder="评估类型">
|
|
||||||
<el-option
|
|
||||||
v-for="item in typeOptions"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.name"
|
|
||||||
:value="item.id">
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item>
|
|
||||||
<el-button type="primary" @click="onSubmit">查询</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<el-table
|
|
||||||
:data="tableData"
|
|
||||||
v-loading="dataListLoading"
|
|
||||||
style="width: 100%">
|
|
||||||
<el-table-column type="expand">
|
|
||||||
<template slot-scope="props">
|
|
||||||
<el-form label-position="left" inline class="demo-table-expand">
|
|
||||||
<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="负责人列表">
|
|
||||||
<el-tag>{{ props.row.evaluatorName }}</el-tag>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
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 ? '年度' : slot.row.evaluationType === 1 ? '季度' : '月度' }}</el-tag>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="标题"
|
|
||||||
prop="title">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
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="说明"
|
|
||||||
prop="description">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="上次启动时间"
|
|
||||||
prop="lastStartTime">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="上次启动评估时间段"
|
|
||||||
prop="lastStartEvaluationPeriod">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="预计下次启动时间"
|
|
||||||
prop="estimatedNextStartTime">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="提醒人"
|
|
||||||
prop="reminder">
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="操作"
|
|
||||||
width="160"
|
|
||||||
prop="desc">
|
|
||||||
<template slot-scope="slot">
|
|
||||||
<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>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<el-button class="carcleButton" @click="addPlanButon">+</el-button>
|
|
||||||
</div>
|
|
||||||
<add-plan v-if="addtModelVisible" @refreshDataList="onSubmit"></add-plan>
|
|
||||||
<base-dialog dialogTitle="start" :dialogVisible="addOrUpdateVisible" @cancel="handleCancel" @confirm="handleConfirm" :before-close="handleCancel">
|
|
||||||
<start-plan ref="addOrUpdate" @refreshDataList="closeSucess"></start-plan>
|
|
||||||
</base-dialog>
|
</base-dialog>
|
||||||
|
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
||||||
|
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
||||||
|
<supplierProduct-search ref="searchOrUpdate" @successSubmit="conditionSearchSubmit">
|
||||||
|
</supplierProduct-search>
|
||||||
|
<el-row slot="footer" type="flex" justify="end">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-button size="small" type="primary" plain class="btnTextStyle" @click="handleSearchCancel">
|
||||||
|
{{ $t("close") }}
|
||||||
|
</el-button>
|
||||||
|
<el-button size="small" class="btnTextStyle" type="primary" plain @click="handleSearchReset">{{
|
||||||
|
$t("reset")
|
||||||
|
}}</el-button>
|
||||||
|
<el-button type="primary" size="small" class="btnTextStyle" @click="handleSearchConfirm">
|
||||||
|
{{ $t("search") }}
|
||||||
|
</el-button>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</base-dialog>
|
||||||
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import addPlan from './components/addPlan.vue'
|
import basicPage from "@/mixins/basic-page"
|
||||||
import startPlan from './components/startPlan.vue'
|
import basicSearch from "@/mixins/basic-search"
|
||||||
|
import supplierProductSearch from "./components/supplierProductSearch.vue"
|
||||||
|
import evaluationItemListAdd from "./components/evaluationItemList-add.vue"
|
||||||
|
import { timeFormatter } from '@/filters'
|
||||||
|
import i18n from "@/i18n"
|
||||||
|
// import i18n from "@/i18n";
|
||||||
|
const tableProps = [
|
||||||
|
{
|
||||||
|
prop: "evaluationType",
|
||||||
|
label: i18n.t('supplier.evaluationType')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: "title",
|
||||||
|
label: i18n.t('supplier.title')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: "evaluationTemplateName",
|
||||||
|
label: i18n.t('supplier.evaluationTemplateName')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: "description",
|
||||||
|
label: i18n.t('supplier.description')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: "lastStartTime",
|
||||||
|
label: i18n.t('supplier.lastStartTime')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: "lastStartEvaluationPeriod",
|
||||||
|
label: i18n.t('supplier.lastStartEvaluationPeriod')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: "estimatedNextStartTime",
|
||||||
|
label: i18n.t('supplier.estimatedNextStartTime')
|
||||||
|
}
|
||||||
|
];
|
||||||
|
const tableBtn = [
|
||||||
|
{
|
||||||
|
type: "edit",
|
||||||
|
btnName: i18n.t('t.edit'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "delete",
|
||||||
|
btnName: i18n.t('t.delete'),
|
||||||
|
}
|
||||||
|
];
|
||||||
export default {
|
export default {
|
||||||
components: { addPlan, startPlan },
|
mixins: [basicPage, basicSearch],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
urlOptions: {
|
urlOptions: {
|
||||||
getDataListURL: "/supplier/qmsEvaluationPlan/page",
|
getDataListURL: "/supplier/qmsEvaluationPlan/page",
|
||||||
getTemplateListURL: '/supplier/qmsEvaluationTemplate/page',
|
deleteURL: "/supplier/qmsEvaluationPlan",
|
||||||
deleteURL: '/supplier/qmsEvaluationPlan'
|
getProjectTypeList: '/supplier/qmsProjectType/page'
|
||||||
|
// submitURL: '/supplier/qmsSupplierType'
|
||||||
},
|
},
|
||||||
dataListLoading: false,
|
tableProps,
|
||||||
addtModelVisible: false,
|
ment: '',
|
||||||
typeOptions: [
|
tableBtn,
|
||||||
{
|
productData: {},
|
||||||
name: '年度',
|
dataForm:{
|
||||||
id: 0
|
limit: 999,
|
||||||
|
page:1
|
||||||
},
|
},
|
||||||
{
|
projectTypeId:null,
|
||||||
name: '季度',
|
projectTypeList:[],
|
||||||
id: 1
|
searchOrEditTitle: "",
|
||||||
},
|
searchOrUpdateVisible: false,
|
||||||
{
|
productOrEditTitle: "",
|
||||||
name: '月度',
|
addOrEditTitle: '',
|
||||||
id: 2
|
|
||||||
}
|
|
||||||
],
|
|
||||||
modalOptions: [],
|
|
||||||
addOrUpdateVisible: false,
|
addOrUpdateVisible: false,
|
||||||
formInline: {
|
productOrUpdateVisible: false,
|
||||||
page: 1,
|
formConfig: [
|
||||||
limit: 10,
|
{
|
||||||
evaluationTemplateId: undefined,
|
type: 'input',
|
||||||
evaluationType: undefined,
|
label: i18n.t('supplier.name'),
|
||||||
supplierName: '',
|
placeholder: i18n.t('supplier.name'),
|
||||||
total: 0
|
param: 'name'
|
||||||
},
|
},
|
||||||
tableData: []
|
{
|
||||||
}
|
type: 'input',
|
||||||
|
label: i18n.t('supplier.code'),
|
||||||
|
placeholder: i18n.t('supplier.code'),
|
||||||
|
param: 'code'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "button",
|
||||||
|
btnName: i18n.t('search'),
|
||||||
|
name: "search",
|
||||||
|
color: "primary",
|
||||||
|
// plain: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "button",
|
||||||
|
btnName: i18n.t('add'),
|
||||||
|
name: "add",
|
||||||
|
color: "success",
|
||||||
|
plain: true
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
supplierProductSearch,
|
||||||
|
// supplierProduct,
|
||||||
|
evaluationItemListAdd
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
this.getTemplate()
|
this.getData()
|
||||||
this.onSubmit()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
closeSucess() {
|
getData() {
|
||||||
this.addOrUpdateVisible = false
|
this.$http
|
||||||
this.onSubmit()
|
.get(this.urlOptions.getProjectTypeList, { params: this.listQuery })
|
||||||
|
.then(({ data: res }) => {
|
||||||
|
if (res.code === 0) {
|
||||||
|
console.log(res.data);
|
||||||
|
this.projectTypeList = res.data.list
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
})
|
||||||
},
|
},
|
||||||
handleCancel() {
|
//search-bar点击
|
||||||
// this.$refs.addOrUpdate.formClear()
|
handleProductCancel() {
|
||||||
this.addOrUpdateVisible = false
|
this.productOrUpdateVisible = false;
|
||||||
// this.addOrEditTitle = ''
|
this.productOrEditTitle = ""
|
||||||
},
|
},
|
||||||
handleConfirm() {
|
// handleSearchCancel() {
|
||||||
this.$refs.addOrUpdate.dataFormSubmit()
|
// this.searchOrEditTitle = "";
|
||||||
},
|
// this.searchOrUpdateVisible = false;
|
||||||
start(val) {
|
// },
|
||||||
this.addOrUpdateVisible = true
|
conditionSearch() {
|
||||||
|
this.searchOrEditTitle = "搜索";
|
||||||
|
this.searchOrUpdateVisible = true;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.addOrUpdate.init(val);
|
this.$refs.searchOrUpdate.init();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
editPlan(val) {},
|
exportHandle() {
|
||||||
deletePlan(val) {
|
this.$http.get(this.urlOptions.exportURL, { responseType: 'blob' }, {
|
||||||
this.$confirm(`确定对[名称=${val.title}]进行删除操作?`, "提示", {
|
...this.dataForm
|
||||||
|
}).then((res) => {
|
||||||
|
console.log(res)
|
||||||
|
// if (res !== 0) {
|
||||||
|
// return this.$message.error(res.msg)
|
||||||
|
// }
|
||||||
|
let fileName = ''
|
||||||
|
const contentDisposition = res.headers['content-disposition']
|
||||||
|
if (contentDisposition) {
|
||||||
|
const temp = res.headers['content-disposition']
|
||||||
|
.split(';')[1]
|
||||||
|
.split('=')[1]
|
||||||
|
// 对文件名乱码转义--【Node.js】使用iconv-lite解决中文乱码
|
||||||
|
fileName = decodeURI(temp)
|
||||||
|
console.log(temp)
|
||||||
|
}
|
||||||
|
const blob = new Blob([res.data])
|
||||||
|
const reader = new FileReader()
|
||||||
|
reader.readAsDataURL(blob)
|
||||||
|
reader.onload = (e) => {
|
||||||
|
const a = document.createElement('a')
|
||||||
|
a.download = fileName
|
||||||
|
a.href = e.target.result
|
||||||
|
document.body.appendChild(a)
|
||||||
|
a.click()
|
||||||
|
document.body.removeChild(a)
|
||||||
|
}
|
||||||
|
}).catch(() => { })
|
||||||
|
},
|
||||||
|
// handleConfirm() {
|
||||||
|
// this.$refs.addOrUpdate.dataFormSubmitHandle();
|
||||||
|
// },
|
||||||
|
// conditionSearchSubmit() {},
|
||||||
|
conditionSearchSubmit(dataForm) {
|
||||||
|
// console.log(key);
|
||||||
|
// console.log(key);
|
||||||
|
this.listQuery.supplierName = dataForm.supplierName
|
||||||
|
this.listQuery.page = 1;
|
||||||
|
this.getDataList();
|
||||||
|
this.searchOrUpdateVisible = false;
|
||||||
|
// console.log(11111);
|
||||||
|
// this.conditionSearchSubmit();
|
||||||
|
},
|
||||||
|
handleClick(val) {
|
||||||
|
if (val.type === "delete") {
|
||||||
|
this.$confirm(`确定对[名称=${val.data.customerTypeName}]进行删除操作?`, "提示", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: "取消",
|
||||||
type: "warning",
|
type: "warning",
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$http.delete(this.urlOptions.deleteURL, { data: [val.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: "操作成功",
|
message: "操作成功",
|
||||||
type: "success",
|
type: "success",
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
this.onSubmit();
|
this.getDataList();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@ -204,73 +256,47 @@ export default {
|
|||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch(() => { });
|
.catch(() => { });
|
||||||
},
|
} else if (val.type === 'edit') {
|
||||||
addPlanButon() {
|
this.addOrUpdateVisible = true
|
||||||
this.addtModelVisible = true
|
this.addOrEditTitle = this.$t('edit')
|
||||||
},
|
this.$nextTick(() => {
|
||||||
getTemplate() {
|
const data ={
|
||||||
this.$http
|
id: val.data.id,
|
||||||
.get(this.urlOptions.getTemplateListURL, {
|
projectTypeId: this.projectTypeId
|
||||||
params: {
|
|
||||||
limit: 999,
|
|
||||||
page: 1
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
if (res.code !== 0) {
|
|
||||||
this.modalOptions = [];
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
}
|
||||||
this.modalOptions = res.data.list;
|
this.$refs.addOrUpdate.init(data)
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
onSubmit() {
|
|
||||||
this.dataListLoading = true
|
|
||||||
this.addtModelVisible = false
|
|
||||||
this.$http
|
|
||||||
.get(this.urlOptions.getDataListURL, {
|
|
||||||
params: this.formInline,
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
if (res.code !== 0) {
|
|
||||||
this.tableData = [];
|
|
||||||
this.formInline.total = 0;
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.tableData = res.data.list;
|
|
||||||
this.formInline.total = res.data.total;
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
addOrUpdateHandle() {
|
||||||
|
console.log(this.projectTypeId)
|
||||||
|
this.addOrUpdateVisible = true;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
const data = {
|
||||||
|
projectTypeId: this.projectTypeId
|
||||||
}
|
}
|
||||||
|
this.$refs.addOrUpdate.init(data)
|
||||||
|
});
|
||||||
|
},
|
||||||
|
buttonClick(val) {
|
||||||
|
console.log(val)
|
||||||
|
switch (val.btnName) {
|
||||||
|
case "search":
|
||||||
|
// this.listQuery.paramCode = val.paramCode;
|
||||||
|
this.listQuery.name = val.name ? val.name : undefined
|
||||||
|
this.listQuery.code = val.code ? val.code : undefined
|
||||||
|
// console.log(i18n);
|
||||||
|
this.listQuery.page = 1;
|
||||||
|
this.getDataList();
|
||||||
|
break;
|
||||||
|
case "add":
|
||||||
|
this.addOrEditTitle = '新增'
|
||||||
|
this.addOrUpdateVisible = true
|
||||||
|
this.addOrUpdateHandle()
|
||||||
|
break;
|
||||||
|
default:
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.demo-table-expand {
|
|
||||||
font-size: 0;
|
|
||||||
}
|
|
||||||
.demo-table-expand label {
|
|
||||||
width: 90px;
|
|
||||||
color: #99a9bf;
|
|
||||||
}
|
|
||||||
.demo-table-expand .el-form-item {
|
|
||||||
margin-right: 0;
|
|
||||||
margin-bottom: 0;
|
|
||||||
width: 50%;
|
|
||||||
}
|
|
||||||
.carcleButton {
|
|
||||||
border-radius: 50%;
|
|
||||||
width: 50px;
|
|
||||||
height: 50px;
|
|
||||||
margin: 5px;
|
|
||||||
background-color: rgb(196, 193, 193);
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-04-17 14:23:17
|
* @Date: 2023-04-17 14:23:17
|
||||||
* @LastEditTime: 2023-07-14 15:53:48
|
* @LastEditTime: 2023-07-11 14:44:36
|
||||||
* @LastEditors: DY
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -129,14 +129,6 @@ export default {
|
|||||||
limit: 999,
|
limit: 999,
|
||||||
page:1
|
page:1
|
||||||
},
|
},
|
||||||
listQuery: {
|
|
||||||
supplierId: undefined,
|
|
||||||
closedLoop: undefined,
|
|
||||||
endTime: undefined,
|
|
||||||
startTime: undefined,
|
|
||||||
productName: undefined,
|
|
||||||
problemDescription: undefined
|
|
||||||
},
|
|
||||||
searchOrEditTitle: "",
|
searchOrEditTitle: "",
|
||||||
searchOrUpdateVisible: false,
|
searchOrUpdateVisible: false,
|
||||||
productOrEditTitle: "",
|
productOrEditTitle: "",
|
||||||
@ -154,7 +146,7 @@ export default {
|
|||||||
type: 'select',
|
type: 'select',
|
||||||
label: i18n.t('supplier.supplierName'),
|
label: i18n.t('supplier.supplierName'),
|
||||||
selectOptions: [],
|
selectOptions: [],
|
||||||
param: 'supplierId',
|
param: 'supplierName',
|
||||||
clearable: true,
|
clearable: true,
|
||||||
filterable: true,
|
filterable: true,
|
||||||
},
|
},
|
||||||
@ -326,7 +318,7 @@ export default {
|
|||||||
conditionSearchSubmit(dataForm) {
|
conditionSearchSubmit(dataForm) {
|
||||||
// console.log(key);
|
// console.log(key);
|
||||||
// console.log(key);
|
// console.log(key);
|
||||||
this.listQuery.supplierId = dataForm.supplierName
|
this.listQuery.supplierName = dataForm.supplierName
|
||||||
this.listQuery.page = 1;
|
this.listQuery.page = 1;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
this.searchOrUpdateVisible = false;
|
this.searchOrUpdateVisible = false;
|
||||||
@ -379,7 +371,7 @@ export default {
|
|||||||
this.listQuery.productName = val.productName ? val.productName : undefined
|
this.listQuery.productName = val.productName ? val.productName : undefined
|
||||||
this.listQuery.problemDescription = val.problemDescription ? val.problemDescription : undefined
|
this.listQuery.problemDescription = val.problemDescription ? val.problemDescription : undefined
|
||||||
this.listQuery.closedLoop = val.closedLoop ? val.closedLoop : undefined
|
this.listQuery.closedLoop = val.closedLoop ? val.closedLoop : undefined
|
||||||
this.listQuery.supplierId = val.supplierId ? val.supplierId : undefined
|
this.listQuery.supplierName = val.supplierName ? val.supplierName : undefined
|
||||||
this.listQuery.startTime = val.timeSlot ? val.timeSlot[0] : undefined
|
this.listQuery.startTime = val.timeSlot ? val.timeSlot[0] : undefined
|
||||||
this.listQuery.endTime = val.timeSlot ? val.timeSlot[1] : undefined
|
this.listQuery.endTime = val.timeSlot ? val.timeSlot[1] : undefined
|
||||||
// console.log(i18n);
|
// console.log(i18n);
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-04-17 14:23:17
|
* @Date: 2023-04-17 14:23:17
|
||||||
* @LastEditTime: 2023-07-14 15:56:32
|
* @LastEditTime: 2023-07-13 11:15:39
|
||||||
* @LastEditors: DY
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -61,10 +61,7 @@ import inputArea from "./components/inputArea"
|
|||||||
import innerTable from "./components/innerTable"
|
import innerTable from "./components/innerTable"
|
||||||
import changeStatus from "./components/changeStatus.vue"
|
import changeStatus from "./components/changeStatus.vue"
|
||||||
import i18n from "@/i18n"
|
import i18n from "@/i18n"
|
||||||
import status from './components/status.vue'
|
|
||||||
// import i18n from "@/i18n";
|
|
||||||
import supplier from '@/filters/supplier'
|
import supplier from '@/filters/supplier'
|
||||||
|
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
prop: "detail",
|
prop: "detail",
|
||||||
@ -94,8 +91,6 @@ const tableProps = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "supplierStatus",
|
prop: "supplierStatus",
|
||||||
// label: i18n.t('supplier.ment'),
|
|
||||||
// subcomponent: status,
|
|
||||||
label: i18n.t('supplier.supplierStatus'),
|
label: i18n.t('supplier.supplierStatus'),
|
||||||
filter: supplier('supplierStatus'),
|
filter: supplier('supplierStatus'),
|
||||||
},
|
},
|
||||||
|
@ -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-07-04 09:53:30
|
* @LastEditTime: 2023-06-26 16:30:07
|
||||||
* @LastEditors: DY
|
* @LastEditors: DY
|
||||||
* @Description: 项目清单
|
* @Description: 项目清单
|
||||||
-->
|
-->
|
||||||
@ -12,173 +12,19 @@
|
|||||||
<el-form-item label="标题">
|
<el-form-item label="标题">
|
||||||
<el-input v-model="formInline.title" placeholder="标题"></el-input>
|
<el-input v-model="formInline.title" placeholder="标题"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="物料">
|
|
||||||
<el-select v-model="formInline.productId" filterable clearable placeholder="物料">
|
|
||||||
<el-option
|
|
||||||
v-for="item in productList"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.productName"
|
|
||||||
:value="item.id">
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="供应商">
|
|
||||||
<el-select v-model="formInline.supplierId" filterable clearable placeholder="供应商">
|
|
||||||
<el-option
|
|
||||||
v-for="item in supplierList"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.supplierTypeName"
|
|
||||||
:value="item.id">
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="状态">
|
|
||||||
<el-radio-group v-model="formInline.status">
|
|
||||||
<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="时间">
|
|
||||||
<el-date-picker
|
|
||||||
v-model="timeSlot"
|
|
||||||
type="daterange"
|
|
||||||
value-format="yyyy-MM-dd HH:mm:ss"
|
|
||||||
range-separator="至"
|
|
||||||
start-placeholder="开始日期"
|
|
||||||
end-placeholder="结束日期">
|
|
||||||
</el-date-picker>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" @click="onSubmit">查询</el-button>
|
<el-button type="primary" @click="onSubmit">查询</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
|
||||||
<el-button class="carcleButton" @click="addButon">+</el-button>
|
|
||||||
</div>
|
|
||||||
<add-projects v-if="addtModelVisible" @refreshDataList="onSubmit"></add-projects>
|
|
||||||
</el-card>
|
</el-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import addProjects from './components/addProjects.vue';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { addProjects },
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
urlOptions: {
|
|
||||||
addURL: '/supplier/qmsEvaluationPlan',
|
|
||||||
getProductURL: '/basic/qmsProduct/page',
|
|
||||||
getSupplierURL: '/supplier/qmsSupplier/page',
|
|
||||||
getPageURL: '/supplier/qmsSupplierProjectList/page'
|
|
||||||
},
|
|
||||||
formInline: {
|
|
||||||
limit: 999,
|
|
||||||
page: 1,
|
|
||||||
title: '',
|
|
||||||
productId: '',
|
|
||||||
supplierId: '',
|
|
||||||
ment: undefined,
|
|
||||||
status: 2,
|
|
||||||
startTime: undefined,
|
|
||||||
endTime: undefined
|
|
||||||
},
|
|
||||||
timeSlot: null,
|
|
||||||
productList: [],
|
|
||||||
supplierList: [],
|
|
||||||
tableData: [],
|
|
||||||
dataListLoading: false,
|
|
||||||
addtModelVisible: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
this.getProductList();
|
|
||||||
this.getSupplier();
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
addButon() {
|
|
||||||
this.addtModelVisible = true
|
|
||||||
},
|
|
||||||
onSubmit() {
|
|
||||||
this.formInline.ment = this.formInline.status === 2 ? undefined : this.formInline.status
|
|
||||||
if (this.timeSlot) {
|
|
||||||
this.formInline.startTime = this.timeSlot[0]
|
|
||||||
this.formInline.endTime = this.timeSlot[1]
|
|
||||||
} else {
|
|
||||||
this.formInline.startTime = undefined
|
|
||||||
this.formInline.endTime = undefined
|
|
||||||
}
|
|
||||||
console.log('nihcdawowk', this.formInline)
|
|
||||||
this.$http
|
|
||||||
.get(this.urlOptions.getPageURL, {
|
|
||||||
params: this.formInline,
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
if (res.code !== 0) {
|
|
||||||
this.tableData = [];
|
|
||||||
this.formInline.total = 0;
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.tableData = res.data.list;
|
|
||||||
this.formInline.total = res.data.total;
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
getProductList() {
|
|
||||||
this.$http
|
|
||||||
.get(this.urlOptions.getProductURL, {
|
|
||||||
params: {
|
|
||||||
limit: 999,
|
|
||||||
page: 1
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
if (res.code !== 0) {
|
|
||||||
this.productList = [];
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.productList = res.data.list;
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
getSupplier() {
|
|
||||||
this.$http
|
|
||||||
.get(this.urlOptions.getSupplierURL, {
|
|
||||||
params: {
|
|
||||||
limit: 999,
|
|
||||||
page: 1
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
if (res.code !== 0) {
|
|
||||||
this.supplierList = [];
|
|
||||||
return this.$message.error(res.msg);
|
|
||||||
}
|
|
||||||
this.supplierList = res.data.list;
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
this.dataListLoading = false;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.carcleButton {
|
|
||||||
border-radius: 50%;
|
|
||||||
width: 50px;
|
|
||||||
height: 50px;
|
|
||||||
margin: 5px;
|
|
||||||
background-color: rgb(196, 193, 193);
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
@ -22,7 +22,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item prop="captcha">
|
<el-form-item prop="captcha">
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="14">
|
<el-col :span="14">
|
||||||
<el-input v-model="dataForm.captcha" :placeholder="$t('login.captcha')">
|
<el-input v-model="dataForm.captcha" :placeholder="$t('login.captcha')">
|
||||||
@ -35,7 +35,7 @@
|
|||||||
<img :src="captchaPath" @click="getCaptcha()">
|
<img :src="captchaPath" @click="getCaptcha()">
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form-item> -->
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" @click="dataFormSubmitHandle()" class="w-percent-100">{{ $t('login.title') }}</el-button>
|
<el-button type="primary" @click="dataFormSubmitHandle()" class="w-percent-100">{{ $t('login.title') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
Loading…
Reference in New Issue
Block a user