Compare commits
No commits in common. "37bd4fd53250dfdc79476668733941fe7cf1ccea" and "8d2f26293e9957f1e84e3809eac7b987b1d16171" have entirely different histories.
37bd4fd532
...
8d2f26293e
70
package-lock.json
generated
70
package-lock.json
generated
@ -3201,7 +3201,6 @@
|
|||||||
"thread-loader": "^2.1.3",
|
"thread-loader": "^2.1.3",
|
||||||
"url-loader": "^2.2.0",
|
"url-loader": "^2.2.0",
|
||||||
"vue-loader": "^15.9.2",
|
"vue-loader": "^15.9.2",
|
||||||
"vue-loader-v16": "npm:vue-loader@^16.1.0",
|
|
||||||
"vue-style-loader": "^4.1.2",
|
"vue-style-loader": "^4.1.2",
|
||||||
"webpack": "^4.0.0",
|
"webpack": "^4.0.0",
|
||||||
"webpack-bundle-analyzer": "^3.8.0",
|
"webpack-bundle-analyzer": "^3.8.0",
|
||||||
@ -16946,75 +16945,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"vue-loader-v16": {
|
|
||||||
"version": "npm:vue-loader@16.8.3",
|
|
||||||
"resolved": "https://registry.npmmirror.com/vue-loader/-/vue-loader-16.8.3.tgz",
|
|
||||||
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
|
||||||
"chalk": "^4.1.0",
|
|
||||||
"hash-sum": "^2.0.0",
|
|
||||||
"loader-utils": "^2.0.0"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"ansi-styles": {
|
|
||||||
"version": "4.3.0",
|
|
||||||
"resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz",
|
|
||||||
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
|
||||||
"color-convert": "^2.0.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"chalk": {
|
|
||||||
"version": "4.1.2",
|
|
||||||
"resolved": "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz",
|
|
||||||
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
|
||||||
"ansi-styles": "^4.1.0",
|
|
||||||
"supports-color": "^7.1.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"color-convert": {
|
|
||||||
"version": "2.0.1",
|
|
||||||
"resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz",
|
|
||||||
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
|
||||||
"color-name": "~1.1.4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"color-name": {
|
|
||||||
"version": "1.1.4",
|
|
||||||
"resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz",
|
|
||||||
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"has-flag": {
|
|
||||||
"version": "4.0.0",
|
|
||||||
"resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz",
|
|
||||||
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"supports-color": {
|
|
||||||
"version": "7.2.0",
|
|
||||||
"resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz",
|
|
||||||
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
|
||||||
"has-flag": "^4.0.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"vue-router": {
|
"vue-router": {
|
||||||
"version": "3.0.7",
|
"version": "3.0.7",
|
||||||
"resolved": "https://registry.npmmirror.com/vue-router/-/vue-router-3.0.7.tgz",
|
"resolved": "https://registry.npmmirror.com/vue-router/-/vue-router-3.0.7.tgz",
|
||||||
|
@ -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-11 10:23:31
|
* @LastEditTime: 2023-06-21 13:55:38
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* @Date: 2020-12-29 16:49:28
|
* @Date: 2020-12-29 16:49:28
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @LastEditTime: 2023-07-11 14:23:27
|
* @LastEditTime: 2023-04-18 16:12:04
|
||||||
* @FilePath: \basic-admin\src\filters\DataDict\index.js
|
* @FilePath: \basic-admin\src\filters\DataDict\index.js
|
||||||
* @Description: 部分常量的数据字典定义
|
* @Description: 部分常量的数据字典定义
|
||||||
*/
|
*/
|
||||||
@ -14,12 +14,7 @@ const table = {
|
|||||||
available: {
|
available: {
|
||||||
0: '不可用',
|
0: '不可用',
|
||||||
1:'不可用',
|
1:'不可用',
|
||||||
},
|
}
|
||||||
supplierStatus:{
|
|
||||||
0: '合格',
|
|
||||||
1: '不合格',
|
|
||||||
2:'黑名单',
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function (dictTable) {
|
export default function (dictTable) {
|
||||||
|
@ -286,7 +286,7 @@ t.basic.name = '名称'
|
|||||||
t.basic.code = '编码'
|
t.basic.code = '编码'
|
||||||
t.basic.status = '状态'
|
t.basic.status = '状态'
|
||||||
t.basic.available = '可用'
|
t.basic.available = '可用'
|
||||||
t.basic.remark = '备注'
|
t.basic.remark = '描述'
|
||||||
t.basic.specification = '规格'
|
t.basic.specification = '规格'
|
||||||
t.basic.InspectionStage = '检验阶段'
|
t.basic.InspectionStage = '检验阶段'
|
||||||
t.basic.InspectionPlan = '检验计划'
|
t.basic.InspectionPlan = '检验计划'
|
||||||
@ -352,17 +352,6 @@ t.quality.relaxedToNormal = '放宽转正常'
|
|||||||
t.quality.tightenedToNormal = '加严转正常'
|
t.quality.tightenedToNormal = '加严转正常'
|
||||||
t.quality.productName = '检验产品'
|
t.quality.productName = '检验产品'
|
||||||
t.quality.transferTime = '转移时间'
|
t.quality.transferTime = '转移时间'
|
||||||
t.quality.inspectionType = '检验类型'
|
|
||||||
t.quality.measuringTools = '量具'
|
|
||||||
t.quality.sampleRangeLow = '取样范围低'
|
|
||||||
t.quality.sampleRangeHigh = '取样范围高'
|
|
||||||
t.quality.inspectionLevel = '检验水平'
|
|
||||||
t.quality.sampleSizeCode = '样本量字码'
|
|
||||||
t.quality.sampleSize = '样本量'
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -371,7 +360,6 @@ t.quality.sampleSize = '样本量'
|
|||||||
|
|
||||||
t.disqualification = {}
|
t.disqualification = {}
|
||||||
t.disqualification.inspectionTypeId = '检验类型'
|
t.disqualification.inspectionTypeId = '检验类型'
|
||||||
t.disqualification.name = '名称'
|
|
||||||
t.disqualification.productTypeName = '产品类型'
|
t.disqualification.productTypeName = '产品类型'
|
||||||
t.disqualification.productName = '产品名称'
|
t.disqualification.productName = '产品名称'
|
||||||
t.disqualification.teamName = '处置团队'
|
t.disqualification.teamName = '处置团队'
|
||||||
@ -389,6 +377,7 @@ t.disqualification.disposalMethod = '处置方法'
|
|||||||
t.disqualification.disposalTime = '处置时间'
|
t.disqualification.disposalTime = '处置时间'
|
||||||
t.disqualification.remark = '备注'
|
t.disqualification.remark = '备注'
|
||||||
t.disqualification.approvalProcessCode = '编号'
|
t.disqualification.approvalProcessCode = '编号'
|
||||||
|
t.disqualification.approvalProcessName = '名称'
|
||||||
t.disqualification.approvalProcessType = '类型'
|
t.disqualification.approvalProcessType = '类型'
|
||||||
t.disqualification.description = '描述'
|
t.disqualification.description = '描述'
|
||||||
t.disqualification.step = '步骤'
|
t.disqualification.step = '步骤'
|
||||||
@ -407,7 +396,7 @@ t.supplier.supplierRelevance = '供应商关联产品'
|
|||||||
t.supplier.abbreviation = '简称'
|
t.supplier.abbreviation = '简称'
|
||||||
t.supplier.grade = '重要等级'
|
t.supplier.grade = '重要等级'
|
||||||
t.supplier.address = '地址'
|
t.supplier.address = '地址'
|
||||||
t.supplier.ment = '状态'
|
t.supplier.ment = '供应商状态'
|
||||||
t.supplier.contact = '联系人'
|
t.supplier.contact = '联系人'
|
||||||
t.supplier.contactEmail = '联系人邮箱'
|
t.supplier.contactEmail = '联系人邮箱'
|
||||||
t.supplier.contactPhone = '联系人电话'
|
t.supplier.contactPhone = '联系人电话'
|
||||||
@ -451,9 +440,6 @@ t.supplier.lastStartEvaluationPeriod = '上次启动评估时间段'
|
|||||||
t.supplier.estimatedNextStartTime = '预计下次启动时间'
|
t.supplier.estimatedNextStartTime = '预计下次启动时间'
|
||||||
t.supplier.offline = '下限'
|
t.supplier.offline = '下限'
|
||||||
t.supplier.online = '上限'
|
t.supplier.online = '上限'
|
||||||
t.supplier.supplierStatus = '供应商状态'
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
t.gage = {}
|
t.gage = {}
|
||||||
t.gage.name = '名称'
|
t.gage.name = '名称'
|
||||||
@ -659,9 +645,57 @@ t.code.uploaded = '已上传'
|
|||||||
t.code.notUploaded = '未上传'
|
t.code.notUploaded = '未上传'
|
||||||
t.code.Examiner = '检验人'
|
t.code.Examiner = '检验人'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
t.dictionary = {}
|
t.dictionary = {}
|
||||||
t.dictionary.name = ' 名称'
|
t.dictionary.name = ' 名称'
|
||||||
t.dictionary.code = ' 编码'
|
t.dictionary.code = ' 编码'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export default t
|
export default t
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2022-08-24 11:19:43
|
* @Date: 2022-08-24 11:19:43
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2023-07-11 11:03:11
|
* @LastEditTime: 2023-06-30 15:00:20
|
||||||
* @Description:
|
* @Description:
|
||||||
*/
|
*/
|
||||||
export default {
|
export default {
|
||||||
@ -30,8 +30,8 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
},
|
},
|
||||||
mounted() {
|
activated() {
|
||||||
this.getDataList()
|
this.getDataList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 获取数据列表
|
// 获取数据列表
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2022-08-24 11:19:43
|
* @Date: 2022-08-24 11:19:43
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @LastEditTime: 2023-07-10 14:35:06
|
* @LastEditTime: 2023-02-24 16:16:54
|
||||||
* @Description:
|
* @Description:
|
||||||
*/
|
*/
|
||||||
export default {
|
export default {
|
||||||
@ -72,7 +72,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleSearchReset() {
|
handleSearchReset() {
|
||||||
this.$refs.searchOrUpdate.formClear();
|
this.$refs.addOrUpdate.formClear();
|
||||||
},
|
},
|
||||||
cancel(id) {
|
cancel(id) {
|
||||||
this.$refs["popover-" + id].showPopper = false;
|
this.$refs["popover-" + id].showPopper = false;
|
||||||
|
@ -22,9 +22,9 @@
|
|||||||
<svg slot="label" class="icon-svg aui-content--tabs-icon-nav" aria-hidden="true"><use xlink:href="#icon-home"></use></svg>
|
<svg slot="label" class="icon-svg aui-content--tabs-icon-nav" aria-hidden="true"><use xlink:href="#icon-home"></use></svg>
|
||||||
</template>
|
</template>
|
||||||
<iframe v-if="tabIsIframe(item.iframeURL)" :src="item.iframeURL" width="100%" height="100%" frameborder="0" scrolling="yes"></iframe>
|
<iframe v-if="tabIsIframe(item.iframeURL)" :src="item.iframeURL" width="100%" height="100%" frameborder="0" scrolling="yes"></iframe>
|
||||||
<!-- <keep-alive > -->
|
<keep-alive v-else>
|
||||||
<router-view v-if="item.name === $store.state.contentTabsActiveName" />
|
<router-view v-if="item.name === $store.state.contentTabsActiveName" />
|
||||||
<!-- </keep-alive> -->
|
</keep-alive>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,26 +1,26 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-12 13:49:47
|
* @LastEditTime: 2023-06-26 09:44:09
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
||||||
<el-form-item prop="controlCode" :label="$t('basic.code')">
|
<el-form-item prop="controlCode" :label="$t('basic.code')">
|
||||||
<el-input v-model="dataForm.controlCode" :placeholder="$t('basic.code')"></el-input>
|
<el-input v-model="dataForm.controlCode" :placeholder="$t('basic.code')"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="controlName" :label="$t('basic.name')">
|
<el-form-item prop="controlName" :label="$t('basic.name')">
|
||||||
<el-input v-model="dataForm.controlName" :placeholder="$t('basic.name')"></el-input>
|
<el-input v-model="dataForm.controlName" :placeholder="$t('basic.name')"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="specifications" :label="$t('basic.specification')">
|
<el-form-item prop="specification" :label="$t('basic.specification')">
|
||||||
<el-input v-model="dataForm.specifications" :placeholder="$t('basic.specification')"></el-input>
|
<el-input v-model="dataForm.specification" :placeholder="$t('basic.specification')"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="incomingInspection" :label="$t('basic.stock')">
|
<el-form-item prop="incomingInspection" :label="$t('basic.stock')">
|
||||||
<el-switch v-model="dataForm.incomingInspection" :active-value="1" :inactive-value="0">
|
<el-switch v-model="dataForm.incomingInspection" :active-value="1" :inactive-value="0">
|
||||||
</el-switch>
|
</el-switch>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="finishInspection" :label="$t('basic.finishedProduct')">
|
<el-form-item prop="finishInspection" :label="$t('basic.stock')">
|
||||||
<el-switch v-model="dataForm.finishInspection" :active-value="1" :inactive-value="0">
|
<el-switch v-model="dataForm.finishInspection" :active-value="1" :inactive-value="0">
|
||||||
</el-switch>
|
</el-switch>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -32,15 +32,12 @@
|
|||||||
<el-switch v-model="dataForm.processInspection" :active-value="1" :inactive-value="0">
|
<el-switch v-model="dataForm.processInspection" :active-value="1" :inactive-value="0">
|
||||||
</el-switch>
|
</el-switch>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="controlStatus" :label="$t('basic.status')">
|
<el-form-item prop="customerTypeStatus" :label="$t('basic.status')">
|
||||||
<el-select v-model="dataForm.controlStatus" :placeholder="$t('basic.status')">
|
<el-select v-model="dataForm.customerTypeStatus" :placeholder="$t('basic.status')">
|
||||||
<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">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="remark" :label="$t('basic.remark')">
|
|
||||||
<el-input v-model="dataForm.remark" :placeholder="$t('basic.remark')"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -52,8 +49,8 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
urlOptions: {
|
urlOptions: {
|
||||||
submitURL: "/basic/qmsControlMode",
|
submitURL: "/basic/qmsCustomerType",
|
||||||
infoURL: "/basic/qmsControlMode/{id}",
|
infoURL: "/basic/qmsCustomerType/{id}",
|
||||||
getCodeURL: '/basic/qmsControlMode/getCode'
|
getCodeURL: '/basic/qmsControlMode/getCode'
|
||||||
},
|
},
|
||||||
options: [{
|
options: [{
|
||||||
@ -69,38 +66,36 @@ export default {
|
|||||||
id: "",
|
id: "",
|
||||||
controlCode:null,
|
controlCode:null,
|
||||||
controlName:null,
|
controlName:null,
|
||||||
controlStatus: null,
|
customerTypeStatus: null,
|
||||||
finishInspection: null,
|
finishInspection: null,
|
||||||
incomingInspection: null,
|
incomingInspection: null,
|
||||||
outInspection: null,
|
outInspection: null,
|
||||||
processInspection: null,
|
processInspection: null,
|
||||||
specifications: null,
|
|
||||||
remark:null
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
controlCode: [
|
dictLabel: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t("validate.required"),
|
message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
trigger: "blur",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
controlName: [
|
dictValue: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t("validate.required"),
|
message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
trigger: "blur",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
controlStatus: [
|
sort: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t("validate.required"),
|
message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
trigger: "blur",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
@ -111,14 +106,13 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
init(id, ) {
|
init(id, ) {
|
||||||
this.dataForm.id = id || ""
|
this.dataForm.id = id || ""
|
||||||
|
this.getControlCode()
|
||||||
// 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 {
|
|
||||||
this.getControlCode()
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-12 13:57:14
|
* @LastEditTime: 2023-02-24 14:58:53
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
||||||
<el-form-item prop="customerCode" :label="$t('basic.code')">
|
<el-form-item prop="customerCode" :label="$t('basic.code')">
|
||||||
<el-input v-model="dataForm.customerCode" :placeholder="$t('basic.code')"></el-input>
|
<el-input v-model="dataForm.customerCode" :placeholder="$t('basic.code')"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -67,27 +67,27 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
customerCode: [
|
// dictLabel: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
customerName: [
|
// dictValue: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
customerTypeStatus: [
|
// sort: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2023-01-04 10:29:40
|
* @Date: 2023-01-04 10:29:40
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @LastEditTime: 2023-07-11 09:50:29
|
* @LastEditTime: 2023-02-20 08:52:46
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -50,16 +50,14 @@ export default {
|
|||||||
customerTypeId: null,
|
customerTypeId: null,
|
||||||
customerTypeStatus: null
|
customerTypeStatus: null
|
||||||
},
|
},
|
||||||
options: [
|
options: [{
|
||||||
{
|
|
||||||
value: 0,
|
value: 0,
|
||||||
label: '不可用'
|
label: '不可用'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: 1,
|
value: 1,
|
||||||
label: '可用'
|
label: '可用'
|
||||||
}
|
}],
|
||||||
],
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -128,7 +126,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleConditionSearch() {
|
handleConditionSearch() {
|
||||||
this.$emit("successSubmit", this.dataForm);
|
this.$emit("successSubmit", this.dataForm.key);
|
||||||
},
|
},
|
||||||
// dataFormSubmitHandle: debounce(
|
// dataFormSubmitHandle: debounce(
|
||||||
// function () {
|
// function () {
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-12 13:55:20
|
* @LastEditTime: 2023-02-24 14:59:19
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()"
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()"
|
||||||
label-width="120px">
|
label-width="120px">
|
||||||
<el-form-item prop="customerTypeCode" :label="$t('basic.code')">
|
<el-form-item prop="customerTypeCode" :label="$t('basic.code')">
|
||||||
<el-input v-model="dataForm.customerTypeCode" :placeholder="$t('basic.code')"></el-input>
|
<el-input v-model="dataForm.customerTypeCode" :placeholder="$t('basic.code')"></el-input>
|
||||||
@ -55,25 +55,25 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
customerTypeCode: [
|
dictLabel: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t("validate.required"),
|
message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
trigger: "blur",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
customerTypeName: [
|
dictValue: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t("validate.required"),
|
message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
trigger: "blur",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
customerTypeStatus: [
|
sort: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t("validate.required"),
|
message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
trigger: "blur",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-12 13:52:25
|
* @LastEditTime: 2023-02-24 14:56:56
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()"
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
||||||
label-width="120px">
|
|
||||||
<el-form-item prop="failureTypeCode" :label="$t('basic.code')">
|
<el-form-item prop="failureTypeCode" :label="$t('basic.code')">
|
||||||
<el-input v-model="dataForm.failureTypeCode" :placeholder="$t('basic.code')"></el-input>
|
<el-input v-model="dataForm.failureTypeCode" :placeholder="$t('basic.code')"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -55,27 +54,27 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
failureTypeCode: [
|
// dictLabel: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
failureTypeName: [
|
// dictValue: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
failureTypeStatus: [
|
// sort: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2023-01-04 10:29:40
|
* @Date: 2023-01-04 10:29:40
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @LastEditTime: 2023-07-10 15:41:53
|
* @LastEditTime: 2023-02-16 15:46:10
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -113,7 +113,7 @@ export default {
|
|||||||
// })
|
// })
|
||||||
// },
|
// },
|
||||||
handleConditionSearch() {
|
handleConditionSearch() {
|
||||||
this.$emit("successSubmit", this.dataForm)
|
this.$emit("successSubmit", this.dataForm.key);
|
||||||
},
|
},
|
||||||
// dataFormSubmitHandle: debounce(
|
// dataFormSubmitHandle: debounce(
|
||||||
// function () {
|
// function () {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-01-31 09:49:36
|
* @Date: 2023-01-31 09:49:36
|
||||||
* @LastEditTime: 2023-06-30 16:54:37
|
* @LastEditTime: 2023-05-17 15:00:50
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -22,7 +22,6 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// injectData:{},
|
|
||||||
urlOptions: {
|
urlOptions: {
|
||||||
syncURL: "/basic/qmsProduct/connectAllProduct"
|
syncURL: "/basic/qmsProduct/connectAllProduct"
|
||||||
},
|
},
|
||||||
@ -31,23 +30,21 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
// 子级
|
// 子级
|
||||||
emitClick() {
|
emitClick() {
|
||||||
console.log(this.injectData)
|
|
||||||
const data = {
|
const data = {
|
||||||
id: this.injectData.id,
|
id: this.injectData.id,
|
||||||
finishInspection: this.injectData.finishInspection,
|
finishInspection: this.injectData.finishInspection,
|
||||||
incomingInspection: this.injectData.incomingInspection,
|
incomingInspection: this.injectData.incomingInspection,
|
||||||
outInspection: this.injectData.outInspection,
|
outInspection: this.injectData.outInspection,
|
||||||
processInspection: this.injectData.processInspection
|
processInspection: this.injectData.outInspection
|
||||||
}
|
}
|
||||||
this.$http.put(this.urlOptions.syncURL, data ).then(({ data }) => {
|
this.$http.put(this.urlOptions.syncURL, { data }).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.$message.error(data.msg)
|
this.$message.error(data.msg);
|
||||||
// this.$parent.$parent.$parent.$parent.getDataList()
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-12 13:57:47
|
* @LastEditTime: 2023-04-04 15:35:31
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()"
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
||||||
label-width="120px">
|
|
||||||
<el-form-item prop="productCode" :label="$t('basic.code')">
|
<el-form-item prop="productCode" :label="$t('basic.code')">
|
||||||
<el-input v-model="dataForm.productCode" :placeholder="$t('basic.code')"></el-input>
|
<el-input v-model="dataForm.productCode" :placeholder="$t('basic.code')"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -43,8 +42,8 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
urlOptions: {
|
urlOptions: {
|
||||||
submitURL: "/basic/qmsProduct",
|
submitURL: "/basic/qmsProductType",
|
||||||
infoURL: "/basic/qmsProduct/{id}",
|
infoURL: "/basic/qmsProductType/{id}",
|
||||||
getCodeURL: '/basic/qmsProduct/getCode',
|
getCodeURL: '/basic/qmsProduct/getCode',
|
||||||
getTypeListURL: '/basic/qmsProductType/page'
|
getTypeListURL: '/basic/qmsProductType/page'
|
||||||
},
|
},
|
||||||
@ -60,35 +59,34 @@ export default {
|
|||||||
productCode:null,
|
productCode:null,
|
||||||
productName: null,
|
productName: null,
|
||||||
productTypeId:null,
|
productTypeId:null,
|
||||||
productTypeStatus: null,
|
productTypeStatus:null
|
||||||
productSpecs:null
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
productCode: [
|
// dictLabel: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
productName: [
|
// dictValue: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
productTypeStatus: [
|
// sort: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -113,7 +111,7 @@ export default {
|
|||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.dataForm.productCode = res.data
|
this.dataForm.productTypeCode = res.data
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
@ -132,7 +130,7 @@ export default {
|
|||||||
// 获取信息
|
// 获取信息
|
||||||
getInfo() {
|
getInfo() {
|
||||||
this.$http
|
this.$http
|
||||||
.get(`/basic/qmsProduct/${this.dataForm.id}`)
|
.get(`/basic/qmsProductType/${this.dataForm.id}`)
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
if (res.code !== 0) {
|
if (res.code !== 0) {
|
||||||
return this.$message.error(res.msg);
|
return this.$message.error(res.msg);
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-12 14:04:19
|
* @LastEditTime: 2023-02-24 14:59:37
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()"
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
||||||
label-width="120px">
|
|
||||||
<el-form-item prop="productTypeCode" :label="$t('basic.code')">
|
<el-form-item prop="productTypeCode" :label="$t('basic.code')">
|
||||||
<el-input v-model="dataForm.productTypeCode" :placeholder="$t('basic.code')"></el-input>
|
<el-input v-model="dataForm.productTypeCode" :placeholder="$t('basic.code')"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -55,27 +54,27 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
productTypeCode: [
|
// dictLabel: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
productTypeName: [
|
// dictValue: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
productTypeStatus: [
|
// sort: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-01-31 14:12:10
|
* @Date: 2023-01-31 14:12:10
|
||||||
* @LastEditTime: 2023-06-30 17:00:43
|
* @LastEditTime: 2023-01-31 16:47:32
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<span>
|
<span>
|
||||||
<el-radio v-model="injectData.incomingInspection" :label="1">{{ $t('basic.stock') }}</el-radio>
|
<el-radio v-model="injectData.incomingInspection" :label="1">{{ $t('basic.stock') }}</el-radio>
|
||||||
|
<el-radio v-model="injectData.processInspection" :label="1">{{ $t('basic.course') }}</el-radio>
|
||||||
<el-radio v-model="injectData.finishInspection" :label="1">{{ $t('basic.finishedProduct') }}</el-radio>
|
<el-radio v-model="injectData.finishInspection" :label="1">{{ $t('basic.finishedProduct') }}</el-radio>
|
||||||
<el-radio v-model="injectData.outInspection" :label="1">{{ $t('basic.shipment') }}</el-radio>
|
<el-radio v-model="injectData.outInspection" :label="1">{{ $t('basic.shipment') }}</el-radio>
|
||||||
<el-radio v-model="injectData.processInspection" :label="1">{{ $t('basic.course') }}</el-radio>
|
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2023-01-04 10:29:40
|
* @Date: 2023-01-04 10:29:40
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @LastEditTime: 2023-07-07 13:51:05
|
* @LastEditTime: 2023-02-14 14:12:11
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -50,18 +50,13 @@ const tableBtn = [
|
|||||||
type: "synchronous",
|
type: "synchronous",
|
||||||
btnName: "同步",
|
btnName: "同步",
|
||||||
showParam: {
|
showParam: {
|
||||||
type: "|",
|
type: "&",
|
||||||
data: [
|
data: [
|
||||||
{
|
{
|
||||||
type: "equal",
|
type: "equal",
|
||||||
name: "controlCodeId",
|
name: "controlCodeId",
|
||||||
value:null,
|
value:null,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
type: "equal",
|
|
||||||
name: "controlCodeId",
|
|
||||||
value: '0',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -76,11 +71,6 @@ const tableBtn = [
|
|||||||
name: "controlCodeId",
|
name: "controlCodeId",
|
||||||
value: null,
|
value: null,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
type: "unequal",
|
|
||||||
name: "controlCodeId",
|
|
||||||
value: '0',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -132,7 +122,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init(data) {
|
init(data) {
|
||||||
console.log(data)
|
console.log();
|
||||||
// this.dataForm.id = id || "";
|
// this.dataForm.id = id || "";
|
||||||
this.productData = data? data: {}
|
this.productData = data? data: {}
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
@ -140,28 +130,23 @@ export default {
|
|||||||
this.listQuery.controllerModeId = data ? data.id : null;
|
this.listQuery.controllerModeId = data ? data.id : null;
|
||||||
// this.$refs["dataForm"].resetFields();
|
// this.$refs["dataForm"].resetFields();
|
||||||
// if (this.dataForm.id) {
|
// if (this.dataForm.id) {
|
||||||
this.getDataList()
|
this.getDataList();
|
||||||
// }
|
// }
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleClick(val) {
|
handleClick() {
|
||||||
console.log(val)
|
|
||||||
if (val.type === "synchronous") {
|
if (val.type === "synchronous") {
|
||||||
console.log(val)
|
if (!this.listQuery.controllerModeId) {
|
||||||
console.log(this.listQuery.controllerModeId)
|
|
||||||
if (!this.listQuery.controllerModeId === null) {
|
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '请先选择控制模式',
|
message: '请先选择控制模式',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
const data={
|
const data={
|
||||||
id:val.data.id,
|
controlCodeId: this.listQuery.controlCodeId,
|
||||||
controlCodeId: this.listQuery.controllerModeId,
|
|
||||||
finishInspection: this.productData.finishInspection,
|
finishInspection: this.productData.finishInspection,
|
||||||
incomingInspection: this.productData.incomingInspection,
|
incomingInspection: this.productData.finishInspection,
|
||||||
processInspection: this.productData.processInspection,
|
processInspection: this.productData.processInspection
|
||||||
outInspection: this.productData.outInspection
|
|
||||||
}
|
}
|
||||||
this.$http['put']('/basic/qmsProduct',data).then(({ data: res }) => {
|
this.$http['put']('/basic/qmsProduct',data).then(({ data: res }) => {
|
||||||
if (res.code !== 0) {
|
if (res.code !== 0) {
|
||||||
@ -172,9 +157,8 @@ export default {
|
|||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 500,
|
duration: 500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
this.$nextTick(() => {
|
this.visible = false
|
||||||
this.getDataList()
|
this.$emit('refreshDataList')
|
||||||
})
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}).catch(() => { })
|
}).catch(() => { })
|
||||||
@ -186,12 +170,10 @@ export default {
|
|||||||
// });
|
// });
|
||||||
} else if (val.type === 'cancel') {
|
} else if (val.type === 'cancel') {
|
||||||
const data = {
|
const data = {
|
||||||
id: val.data.id,
|
controlCodeId: null,
|
||||||
controlCodeId: 0,
|
finishInspection: null,
|
||||||
finishInspection: 0,
|
incomingInspection: null,
|
||||||
incomingInspection: 0,
|
processInspection: null
|
||||||
processInspection: 0,
|
|
||||||
outInspection:0
|
|
||||||
}
|
}
|
||||||
this.$http['put']('/basic/qmsProduct', data).then(({ data: res }) => {
|
this.$http['put']('/basic/qmsProduct', data).then(({ data: res }) => {
|
||||||
if (res.code !== 0) {
|
if (res.code !== 0) {
|
||||||
@ -202,10 +184,8 @@ export default {
|
|||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 500,
|
duration: 500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
this.$nextTick(() => {
|
this.visible = false
|
||||||
this.getDataList()
|
this.$emit('refreshDataList')
|
||||||
})
|
|
||||||
// this.$emit('refreshDataList')
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}).catch(() => { })
|
}).catch(() => { })
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-21 16:42:11
|
* @Date: 2023-02-21 16:42:11
|
||||||
* @LastEditTime: 2023-07-12 14:04:44
|
* @LastEditTime: 2023-02-24 15:08:39
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
||||||
<el-form-item prop="teamCode" :label="$t('basic.code')">
|
<el-form-item prop="teamCode" :label="$t('basic.code')">
|
||||||
<el-input v-model="dataForm.teamCode" :placeholder="$t('basic.code')"></el-input>
|
<el-input v-model="dataForm.teamCode" :placeholder="$t('basic.code')"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -57,27 +57,27 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
teamCode: [
|
// dictLabel: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
teamName: [
|
// dictValue: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
sort: [
|
// sort: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-06-30 09:58:35
|
* @LastEditTime: 2023-06-26 15:01:44
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -33,6 +33,9 @@ export default {
|
|||||||
chooseData: [],
|
chooseData: [],
|
||||||
urlOptions: {
|
urlOptions: {
|
||||||
submitURL: "/basic/qmsCustomer",
|
submitURL: "/basic/qmsCustomer",
|
||||||
|
getCustomerPageListURL: "/basic/qmsCustomerType/page",
|
||||||
|
infoURL: "/basic/qmsCustomer/{id}",
|
||||||
|
getCodeURL: '/basic/qmsCustomer/getCode',
|
||||||
getTeamMemberURL: '/basic/qmsTeamMember/page',
|
getTeamMemberURL: '/basic/qmsTeamMember/page',
|
||||||
getUserListURL: '/sys/user/page',
|
getUserListURL: '/sys/user/page',
|
||||||
editTeamMemberListURL: '/basic/qmsTeamMember'
|
editTeamMemberListURL: '/basic/qmsTeamMember'
|
||||||
@ -81,40 +84,10 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
destroyed() {
|
|
||||||
this.notChooseData = []
|
|
||||||
this.chooseData = []
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
init(id,) {
|
init(id,) {
|
||||||
this.teamId = id || ""
|
this.teamId = id || ""
|
||||||
this.notChooseData = []
|
|
||||||
this.chooseData = []
|
|
||||||
// this.dataForm.dictTypeId = dictTypeId || "";
|
// this.dataForm.dictTypeId = dictTypeId || "";
|
||||||
// this.$http
|
|
||||||
// .get(this.urlOptions.getTeamMemberURL, {
|
|
||||||
// params: {
|
|
||||||
// teamId: id
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// .then(({ data: res }) => {
|
|
||||||
// console.log(res)
|
|
||||||
// this.dataListLoading = false;
|
|
||||||
// if (res.code === 0) {
|
|
||||||
// var data = res.data.memberDTOS
|
|
||||||
// for (let i = 0; i < data.length; i++) {
|
|
||||||
// this.chooseData.push(data[i].userId)
|
|
||||||
// }
|
|
||||||
// this.notChooseData = res.data.undefinedUserDTOS.map((item) => {
|
|
||||||
// return {
|
|
||||||
// key: item.id,
|
|
||||||
// label: item.userName
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// console.log(this.chooseData)
|
|
||||||
// console.log(this.notChooseData)
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
this.$http
|
this.$http
|
||||||
.get(this.urlOptions.getTeamMemberURL, {
|
.get(this.urlOptions.getTeamMemberURL, {
|
||||||
params: {
|
params: {
|
||||||
@ -206,8 +179,6 @@ export default {
|
|||||||
duration: 500,
|
duration: 500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
this.notChooseData = []
|
|
||||||
this.chooseData = []
|
|
||||||
this.$emit("refreshDataList")
|
this.$emit("refreshDataList")
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -2,6 +2,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="1" class="item">
|
||||||
|
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
||||||
|
</el-badge>
|
||||||
</SearchBar>
|
</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"
|
||||||
highlight-current-row :limit="listQuery.limit" :table-data="tableData" @current-change="handleCurrentChange">
|
highlight-current-row :limit="listQuery.limit" :table-data="tableData" @current-change="handleCurrentChange">
|
||||||
@ -18,12 +21,12 @@
|
|||||||
</base-dialog>
|
</base-dialog>
|
||||||
<base-dialog :dialogTitle="addOrEditTitle" :dialogVisible="addOrUpdateVisible" @cancel="handleCancel"
|
<base-dialog :dialogTitle="addOrEditTitle" :dialogVisible="addOrUpdateVisible" @cancel="handleCancel"
|
||||||
@confirm="handleConfirm" :before-close="handleCancel">
|
@confirm="handleConfirm" :before-close="handleCancel">
|
||||||
<control-add ref="addOrUpdate" @refreshDataList="successSubmit"></control-add>
|
<control-add ref="addOrUpdate" @successSubmit="successSubmit"></control-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 :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
||||||
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
||||||
<control-search ref="searchOrUpdate" @successSubmit="conditionSearchSubmit"></control-search>
|
<control-search ref="searchOrUpdate" @refreshDataList="conditionSearchSubmit"></control-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">
|
||||||
@ -36,16 +39,16 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</base-dialog> -->
|
</base-dialog>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</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 showProductList from "./components/showProductList.vue";
|
import showProductList from "./components/showProductList.vue";
|
||||||
// import controlSearch from "./components/controlSearch.vue";
|
import controlSearch from "./components/controlSearch.vue";
|
||||||
import controlAdd from "./components/control-add.vue";
|
import controlAdd from "./components/control-add.vue";
|
||||||
import available from "./components/available.vue";
|
import available from "./components/available.vue";
|
||||||
import planBtn from "./components/planBtn.vue";
|
import planBtn from "./components/planBtn.vue";
|
||||||
@ -96,7 +99,7 @@ const tableBtn = [
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
export default {
|
export default {
|
||||||
mixins: [basicPage],
|
mixins: [basicPage, basicSearch],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
urlOptions: {
|
urlOptions: {
|
||||||
@ -112,21 +115,21 @@ export default {
|
|||||||
addOrEditTitle: '',
|
addOrEditTitle: '',
|
||||||
addOrUpdateVisible:false,
|
addOrUpdateVisible:false,
|
||||||
productOrUpdateVisible: false,
|
productOrUpdateVisible: false,
|
||||||
headValue:{},
|
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
// {
|
||||||
type: 'input',
|
// type: "",
|
||||||
label: i18n.t('basic.name'),
|
// label: i18n.t("params.paramCode"),
|
||||||
placeholder: i18n.t('basic.name'),
|
// placeholder: i18n.t("params.paramCode"),
|
||||||
param: 'name',
|
// param: "paramCode",
|
||||||
clearable:true
|
// },
|
||||||
},
|
// {
|
||||||
|
// type: "separate",
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "新增",
|
btnName: "新增",
|
||||||
name: "add",
|
name: "add",
|
||||||
color: 'success',
|
color: "primary",
|
||||||
plain:true
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
@ -146,6 +149,7 @@ export default {
|
|||||||
type: "button",
|
type: "button",
|
||||||
btnName: "取消选中",
|
btnName: "取消选中",
|
||||||
name: "cancel",
|
name: "cancel",
|
||||||
|
color: "primary",
|
||||||
// plain: true,
|
// plain: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@ -153,7 +157,7 @@ export default {
|
|||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
showProductList,
|
showProductList,
|
||||||
// controlSearch,
|
controlSearch,
|
||||||
controlAdd
|
controlAdd
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -173,22 +177,24 @@ export default {
|
|||||||
// this.searchOrEditTitle = "";
|
// this.searchOrEditTitle = "";
|
||||||
// this.searchOrUpdateVisible = false;
|
// this.searchOrUpdateVisible = false;
|
||||||
// },
|
// },
|
||||||
// conditionSearch() {
|
conditionSearch() {
|
||||||
// this.searchOrEditTitle = "搜索";
|
this.searchOrEditTitle = "搜索";
|
||||||
// this.searchOrUpdateVisible = true;
|
this.searchOrUpdateVisible = true;
|
||||||
// this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
// this.$refs.searchOrUpdate.init();
|
this.$refs.searchOrUpdate.init();
|
||||||
// });
|
});
|
||||||
// },
|
},
|
||||||
// handleConfirm() {
|
// handleConfirm() {
|
||||||
// this.$refs.addOrUpdate.dataFormSubmitHandle();
|
// this.$refs.addOrUpdate.dataFormSubmitHandle();
|
||||||
// },
|
// },
|
||||||
// conditionSearchSubmit() {},
|
// conditionSearchSubmit() {},
|
||||||
conditionSearchSubmit(key) {
|
conditionSearchSubmit(key) {
|
||||||
this.listQuery.key = key
|
// console.log(key);
|
||||||
this.listQuery.page = 1
|
console.log(key);
|
||||||
this.getDataList(key)
|
this.listQuery.key = key;
|
||||||
this.searchOrUpdateVisible = false
|
this.listQuery.page = 1;
|
||||||
|
this.getDataList(key);
|
||||||
|
this.searchOrUpdateVisible = false;
|
||||||
// console.log(11111);
|
// console.log(11111);
|
||||||
// this.conditionSearchSubmit();
|
// this.conditionSearchSubmit();
|
||||||
},
|
},
|
||||||
@ -231,24 +237,24 @@ export default {
|
|||||||
// });
|
// });
|
||||||
// },
|
// },
|
||||||
buttonClick(val) {
|
buttonClick(val) {
|
||||||
this.headValue = val
|
console.log(val);
|
||||||
switch (val.btnName) {
|
switch (val.btnName) {
|
||||||
case "search":
|
case "search":
|
||||||
// this.listQuery.paramCode = val.paramCode;
|
// this.listQuery.paramCode = val.paramCode;
|
||||||
this.listQuery.key = this.headValue.name ? headValue.name :null
|
this.listQuery.key = null;
|
||||||
console.log(i18n );
|
console.log(i18n );
|
||||||
this.listQuery.page = 1;
|
this.listQuery.page = 1;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
break;
|
break;
|
||||||
case "correlation":
|
case "correlation":
|
||||||
this.productOrEditTitle = "产品"
|
this.productOrEditTitle = "产品";
|
||||||
this.productOrUpdateVisible = true
|
this.productOrUpdateVisible = true;
|
||||||
// this.searchOrUpdateHandle(this.productData);
|
// this.searchOrUpdateHandle(this.productData);
|
||||||
// this.searchOrUpdateVisible = true;
|
// this.searchOrUpdateVisible = true;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.productOrUpdate.init(this.productData)
|
this.$refs.productOrUpdate.init(this.productData);
|
||||||
});
|
});
|
||||||
// console.log(this.productId);
|
console.log(this.productId);
|
||||||
break;
|
break;
|
||||||
case "add":
|
case "add":
|
||||||
this.addOrEditTitle = '新增'
|
this.addOrEditTitle = '新增'
|
||||||
|
@ -2,9 +2,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="4" class="item">
|
<el-badge :value="4" class="item">
|
||||||
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
||||||
</el-badge> -->
|
</el-badge>
|
||||||
</SearchBar>
|
</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">
|
||||||
@ -19,7 +19,7 @@
|
|||||||
<customer-add ref="addOrUpdate" @refreshDataList="successSubmit"></customer-add>
|
<customer-add ref="addOrUpdate" @refreshDataList="successSubmit"></customer-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 :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
||||||
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
||||||
<customer-search ref="searchOrUpdate" @successSubmit="conditionSearchSubmit"></customer-search>
|
<customer-search ref="searchOrUpdate" @successSubmit="conditionSearchSubmit"></customer-search>
|
||||||
<el-row slot="footer" type="flex" justify="end">
|
<el-row slot="footer" type="flex" justify="end">
|
||||||
@ -34,36 +34,36 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</base-dialog> -->
|
</base-dialog>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</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 customerAdd from "./components/customer-add"
|
import customerAdd from "./components/customer-add";
|
||||||
import customerSearch from "./components/customerSearch.vue"
|
import customerSearch from "./components/customerSearch.vue";
|
||||||
import available from "./components/available.vue"
|
import available from "./components/available.vue";
|
||||||
// import radio from "./components/radio.vue"
|
// import radio from "./components/radio.vue";
|
||||||
import i18n from "@/i18n"
|
// import i18n from "@/i18n";
|
||||||
// import i18n from "@/i18n";
|
// import i18n from "@/i18n";
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
prop: "customerCode",
|
prop: "customerCode",
|
||||||
label: i18n.t('basic.code')
|
label: '编码'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "customerName",
|
prop: "customerName",
|
||||||
label: i18n.t('basic.name')
|
label: "客户"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "customerTypeName",
|
prop: "customerTypeName",
|
||||||
label: i18n.t('basic.customerTypeName')
|
label: "客户类型"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "customerTypeStatus",
|
prop: "customerTypeStatus",
|
||||||
label: i18n.t('basic.status'),
|
label: "状态",
|
||||||
subcomponent: available,
|
subcomponent: available,
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
@ -78,79 +78,36 @@ const tableBtn = [
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
export default {
|
export default {
|
||||||
mixins: [basicPage],
|
mixins: [basicPage, basicSearch],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
urlOptions: {
|
urlOptions: {
|
||||||
getDataListURL: "/basic/qmsCustomer/page",
|
getDataListURL: "/basic/qmsCustomer/page",
|
||||||
deleteURL: "/basic/qmsCustomer",
|
deleteURL: "/basic/qmsCustomerType",
|
||||||
exportURL: '/basic/qmsCustomer/export',
|
exportURL: '/basic/qmsCustomer/export'
|
||||||
getCustomerPageListURL: "/basic/qmsCustomerType/page"
|
|
||||||
},
|
},
|
||||||
tableProps,
|
tableProps,
|
||||||
tableBtn,
|
tableBtn,
|
||||||
productData: {},
|
productData: {},
|
||||||
listQuery: {
|
|
||||||
limit: 10,
|
|
||||||
page: 1,
|
|
||||||
name: null,
|
|
||||||
code: null,
|
|
||||||
status: null,
|
|
||||||
customerTypeId:null
|
|
||||||
},
|
|
||||||
searchOrEditTitle: "",
|
searchOrEditTitle: "",
|
||||||
searchOrUpdateVisible: false,
|
searchOrUpdateVisible: false,
|
||||||
productOrEditTitle: "",
|
productOrEditTitle: "",
|
||||||
productOrUpdateVisible: false,
|
productOrUpdateVisible: false,
|
||||||
headValue:{},
|
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
// {
|
||||||
type: 'input',
|
// type: "",
|
||||||
label: i18n.t('basic.name'),
|
// label: i18n.t("params.paramCode"),
|
||||||
placeholder: i18n.t('basic.name'),
|
// placeholder: i18n.t("params.paramCode"),
|
||||||
param: 'name',
|
// param: "paramCode",
|
||||||
clearable: true
|
// },
|
||||||
},
|
// {
|
||||||
{
|
// type: "separate",
|
||||||
type: 'input',
|
// },
|
||||||
label: i18n.t('basic.code'),
|
|
||||||
placeholder: i18n.t('basic.code'),
|
|
||||||
param: 'code',
|
|
||||||
clearable: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'select',
|
|
||||||
label: i18n.t('basic.customerTypeName'),
|
|
||||||
placeholder: i18n.t('basic.customerTypeName'),
|
|
||||||
param: 'customerTypeId',
|
|
||||||
selectOptions:[],
|
|
||||||
clearable: true,
|
|
||||||
filterable: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'select',
|
|
||||||
label: i18n.t('basic.status'),
|
|
||||||
placeholder: i18n.t('basic.status'),
|
|
||||||
param: 'status',
|
|
||||||
selectOptions: [
|
|
||||||
{
|
|
||||||
id: '0',
|
|
||||||
name: '不可用'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: '1',
|
|
||||||
name: '可用'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
clearable: true,
|
|
||||||
filterable: true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "新增",
|
btnName: "新增",
|
||||||
name: "add",
|
name: "add",
|
||||||
color: 'success',
|
color: "primary",
|
||||||
plain: true
|
|
||||||
// plain: true,
|
// plain: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -164,8 +121,7 @@ export default {
|
|||||||
type: "button",
|
type: "button",
|
||||||
btnName: "导出",
|
btnName: "导出",
|
||||||
name: "export",
|
name: "export",
|
||||||
color: 'primary',
|
color: "primary",
|
||||||
plain: true
|
|
||||||
// plain: true,
|
// plain: true,
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -173,10 +129,7 @@ export default {
|
|||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
customerAdd,
|
customerAdd,
|
||||||
// customerSearch,
|
customerSearch,
|
||||||
},
|
|
||||||
mounted () {
|
|
||||||
this.getDict();
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//search-bar点击
|
//search-bar点击
|
||||||
@ -203,32 +156,17 @@ export default {
|
|||||||
// console.log(key);
|
// console.log(key);
|
||||||
// console.log(key);
|
// console.log(key);
|
||||||
// this.listQuery.key = key;
|
// this.listQuery.key = key;
|
||||||
|
this.listQuery.code = dataForm.code
|
||||||
|
this.listQuery.name = dataForm.name
|
||||||
|
this.listQuery.customerTypeId = dataForm.customerTypeId
|
||||||
|
this.listQuery.customerTypeStatus = dataForm.customerTypeStatus
|
||||||
this.listQuery.page = 1;
|
this.listQuery.page = 1;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
this.searchOrUpdateVisible = false;
|
this.searchOrUpdateVisible = false;
|
||||||
// console.log(11111);
|
// console.log(11111);
|
||||||
// this.conditionSearchSubmit();
|
// this.conditionSearchSubmit();
|
||||||
},
|
},
|
||||||
getDict() {
|
handleClick() {
|
||||||
this.$http
|
|
||||||
.get(this.urlOptions.getCustomerPageListURL, {
|
|
||||||
params: {
|
|
||||||
limit: 999,
|
|
||||||
page: 1
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
if (res.code === 0) {
|
|
||||||
this.formConfig[2].selectOptions = res.data.list.map((item) => {
|
|
||||||
return {
|
|
||||||
name: item.customerTypeName,
|
|
||||||
id:item.id
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
handleClick(val) {
|
|
||||||
console.log(val);
|
console.log(val);
|
||||||
if (val.type === "delete") {
|
if (val.type === "delete") {
|
||||||
this.$confirm(`确定对[名称=${val.data.customerName}]进行删除操作?`, "提示", {
|
this.$confirm(`确定对[名称=${val.data.customerName}]进行删除操作?`, "提示", {
|
||||||
@ -293,16 +231,16 @@ export default {
|
|||||||
}).catch(() => { })
|
}).catch(() => { })
|
||||||
},
|
},
|
||||||
buttonClick(val) {
|
buttonClick(val) {
|
||||||
this.headValue = val
|
console.log(val);
|
||||||
switch (val.btnName) {
|
switch (val.btnName) {
|
||||||
case "search":
|
case "search":
|
||||||
// this.listQuery.paramCode = val.paramCode;
|
// this.listQuery.paramCode = val.paramCode;
|
||||||
// this.listQuery.key = "";
|
// this.listQuery.key = "";
|
||||||
this.listQuery.page = 1;
|
this.listQuery.page = 1;
|
||||||
this.listQuery.code = this.headValue.code ? this.headValue.code : undefined
|
this.listQuery.code = null
|
||||||
this.listQuery.name = this.headValue.name ? this.headValue.name : undefined
|
this.listQuery.name = null
|
||||||
this.listQuery.customerTypeId = this.headValue.customerTypeId ? this.headValue.customerTypeId : undefined
|
this.listQuery.customerTypeId = null
|
||||||
this.listQuery.status = this.headValue.status ? this.headValue.status : undefined
|
this.listQuery.customerTypeStatus = null
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
break;
|
break;
|
||||||
case "export":
|
case "export":
|
||||||
|
@ -2,9 +2,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-badge :value="3" class="item">
|
||||||
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
||||||
</el-badge> -->
|
</el-badge>
|
||||||
</SearchBar>
|
</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">
|
||||||
@ -19,9 +19,9 @@
|
|||||||
<customer-type-add ref="addOrUpdate" @refreshDataList="successSubmit"></customer-type-add>
|
<customer-type-add ref="addOrUpdate" @refreshDataList="successSubmit"></customer-type-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 :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
||||||
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
||||||
<customerType-search ref="searchOrUpdate" @successSubmit="conditionSearchSubmit"></customerType-search>
|
<customerType-search ref="searchOrUpdate" @refreshDataList="conditionSearchSubmit"></customerType-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">
|
||||||
@ -34,7 +34,7 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</base-dialog> -->
|
</base-dialog>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</template>
|
</template>
|
||||||
@ -43,7 +43,7 @@
|
|||||||
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 customerTypeAdd from "./components/customerType-add";
|
import customerTypeAdd from "./components/customerType-add";
|
||||||
// import customerTypeSearch from "./components/customerTypeSearch.vue";
|
import customerTypeSearch from "./components/customerTypeSearch.vue";
|
||||||
import available from "./components/available.vue";
|
import available from "./components/available.vue";
|
||||||
import Cookies from 'js-cookie'
|
import Cookies from 'js-cookie'
|
||||||
import qs from 'qs'
|
import qs from 'qs'
|
||||||
@ -76,7 +76,7 @@ const tableBtn = [
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
export default {
|
export default {
|
||||||
mixins: [basicPage],
|
mixins: [basicPage, basicSearch],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
urlOptions: {
|
urlOptions: {
|
||||||
@ -94,46 +94,15 @@ export default {
|
|||||||
productOrEditTitle: "",
|
productOrEditTitle: "",
|
||||||
productOrUpdateVisible: false,
|
productOrUpdateVisible: false,
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
// {
|
||||||
type: 'input',
|
// type: "",
|
||||||
label: i18n.t('basic.name'),
|
// label: i18n.t("params.paramCode"),
|
||||||
placeholder: i18n.t('basic.name'),
|
// placeholder: i18n.t("params.paramCode"),
|
||||||
param: 'name',
|
// param: "paramCode",
|
||||||
clearable: true
|
// },
|
||||||
},
|
// {
|
||||||
{
|
// type: "separate",
|
||||||
type: 'input',
|
// },
|
||||||
label: i18n.t('basic.code'),
|
|
||||||
placeholder: i18n.t('basic.code'),
|
|
||||||
param: 'code',
|
|
||||||
clearable: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'select',
|
|
||||||
label: i18n.t('basic.status'),
|
|
||||||
placeholder: i18n.t('basic.status'),
|
|
||||||
param: 'status',
|
|
||||||
selectOptions: [
|
|
||||||
{
|
|
||||||
id: '0',
|
|
||||||
name: '不可用'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: '1',
|
|
||||||
name: '可用'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
clearable: true,
|
|
||||||
filterable: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "button",
|
|
||||||
btnName: "新增",
|
|
||||||
name: "add",
|
|
||||||
color: 'success',
|
|
||||||
plain: true
|
|
||||||
// plain: true,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "搜索",
|
btnName: "搜索",
|
||||||
@ -141,19 +110,26 @@ export default {
|
|||||||
color: "primary",
|
color: "primary",
|
||||||
// plain: true,
|
// plain: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
type: "button",
|
||||||
|
btnName: "新增",
|
||||||
|
name: "add",
|
||||||
|
color: "primary",
|
||||||
|
// plain: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "导出",
|
btnName: "导出",
|
||||||
name: "export",
|
name: "export",
|
||||||
color: 'primary',
|
color: "primary",
|
||||||
plain: true
|
|
||||||
// plain: true,
|
// plain: true,
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
customerTypeAdd
|
customerTypeAdd,
|
||||||
|
customerTypeSearch
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//search-bar点击
|
//search-bar点击
|
||||||
@ -257,15 +233,15 @@ export default {
|
|||||||
switch (val.btnName) {
|
switch (val.btnName) {
|
||||||
case "search":
|
case "search":
|
||||||
// this.listQuery.paramCode = val.paramCode;
|
// this.listQuery.paramCode = val.paramCode;
|
||||||
this.listQuery.name =val.name ?val.name : null
|
this.listQuery.name = null
|
||||||
this.listQuery.code = val.code ? val.code : null
|
this.listQuery.code = null
|
||||||
this.listQuery.status = val.status ? val.status : null
|
this.listQuery.status = null
|
||||||
// console.log(i18n);
|
// console.log(i18n);
|
||||||
this.listQuery.page = 1;
|
this.listQuery.page = 1;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
break;
|
break;
|
||||||
case "export":
|
case "export":
|
||||||
this.exportHandle()
|
this.exportHandle();
|
||||||
break;
|
break;
|
||||||
case "add":
|
case "add":
|
||||||
this.addOrEditTitle = "新增";
|
this.addOrEditTitle = "新增";
|
||||||
|
@ -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-11 10:07:22
|
* @LastEditTime: 2023-06-20 15:37:39
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -9,9 +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-badge :value="3" class="item">
|
||||||
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
||||||
</el-badge> -->
|
</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"
|
||||||
@ -25,9 +25,9 @@
|
|||||||
<failure-type-add ref="addOrUpdate" @refreshDataList="successSubmit"></failure-type-add>
|
<failure-type-add ref="addOrUpdate" @refreshDataList="successSubmit"></failure-type-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 :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
||||||
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
||||||
<failureType-search ref="searchOrUpdate" @successSubmit="conditionSearchSubmit"></failureType-search>
|
<failureType-search ref="searchOrUpdate" @refreshDataList="conditionSearchSubmit"></failureType-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">
|
||||||
@ -40,7 +40,7 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</base-dialog> -->
|
</base-dialog>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</template>
|
</template>
|
||||||
@ -49,9 +49,9 @@
|
|||||||
import basicPage from "@/mixins/basic-page";
|
import basicPage from "@/mixins/basic-page";
|
||||||
import failureTypeAdd from "./components/failureType-add";
|
import failureTypeAdd from "./components/failureType-add";
|
||||||
// import AddOrUpdate from './params-add-or-update'
|
// import AddOrUpdate from './params-add-or-update'
|
||||||
// import failureTypeSearch from "./components/failureTypeSearch";
|
import failureTypeSearch from "./components/failureTypeSearch";
|
||||||
import available from "./components/available.vue";
|
import available from "./components/available.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 = [
|
||||||
{
|
{
|
||||||
@ -79,8 +79,9 @@ const tableBtn = [
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
export default {
|
export default {
|
||||||
mixins: [basicPage],
|
mixins: [basicPage, basicSearch],
|
||||||
components: {
|
components: {
|
||||||
|
failureTypeSearch,
|
||||||
failureTypeAdd
|
failureTypeAdd
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@ -94,52 +95,26 @@ export default {
|
|||||||
searchOrEditTitle: '',
|
searchOrEditTitle: '',
|
||||||
searchOrUpdateVisible:false,
|
searchOrUpdateVisible:false,
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
// {
|
||||||
type: 'input',
|
// type: "",
|
||||||
label: i18n.t('basic.name'),
|
// label: i18n.t("params.paramCode"),
|
||||||
placeholder: i18n.t('basic.name'),
|
// placeholder: i18n.t("params.paramCode"),
|
||||||
param: 'name',
|
// param: "paramCode",
|
||||||
clearable: true
|
// },
|
||||||
},
|
// {
|
||||||
{
|
// type: "separate",
|
||||||
type: 'input',
|
// },
|
||||||
label: i18n.t('basic.code'),
|
|
||||||
placeholder: i18n.t('basic.code'),
|
|
||||||
param: 'code',
|
|
||||||
clearable: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'select',
|
|
||||||
label: i18n.t('basic.status'),
|
|
||||||
placeholder: i18n.t('basic.status'),
|
|
||||||
param: 'status',
|
|
||||||
selectOptions: [
|
|
||||||
{
|
|
||||||
id: '0',
|
|
||||||
name: '不可用'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: '1',
|
|
||||||
name: '可用'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
clearable: true,
|
|
||||||
filterable: true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "新增",
|
btnName: "新增",
|
||||||
name: "add",
|
name: "add",
|
||||||
color: 'success',
|
color: "primary",
|
||||||
plain: true
|
|
||||||
// plain: true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "搜索",
|
btnName: "搜索",
|
||||||
name: "search",
|
name: "search",
|
||||||
color: "primary",
|
color: "primary",
|
||||||
// plain: true,
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
@ -215,9 +190,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 ? val.code : null
|
this.listQuery.code = null
|
||||||
this.listQuery.name = val.name ? val.name : null
|
this.listQuery.name = null
|
||||||
this.listQuery.status = val.status ? val.status : null
|
this.listQuery.failureTypeStatus = null
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
break;
|
break;
|
||||||
case "add":
|
case "add":
|
||||||
|
@ -2,9 +2,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="2" class="item">
|
<el-badge :value="2" class="item">
|
||||||
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
||||||
</el-badge> -->
|
</el-badge>
|
||||||
</SearchBar>
|
</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"
|
||||||
highlight-current-row :limit="listQuery.limit" :table-data="tableData" @current-change="handleCurrentChange">
|
highlight-current-row :limit="listQuery.limit" :table-data="tableData" @current-change="handleCurrentChange">
|
||||||
@ -19,7 +19,7 @@
|
|||||||
<product-add ref="addOrUpdate" @refreshDataList="successSubmit"></product-add>
|
<product-add ref="addOrUpdate" @refreshDataList="successSubmit"></product-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 :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
||||||
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
||||||
<product-search ref="searchOrUpdate" @successSubmit="conditionSearchSubmit"></product-search>
|
<product-search ref="searchOrUpdate" @successSubmit="conditionSearchSubmit"></product-search>
|
||||||
<el-row slot="footer" type="flex" justify="end">
|
<el-row slot="footer" type="flex" justify="end">
|
||||||
@ -34,15 +34,15 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</base-dialog> -->
|
</base-dialog>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</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 productSearch from "./components/productSearch.vue";
|
import productSearch from "./components/productSearch.vue";
|
||||||
import productAdd from "./components/product-add.vue";
|
import productAdd from "./components/product-add.vue";
|
||||||
import available from "./components/available.vue";
|
import available from "./components/available.vue";
|
||||||
import radio from "./components/radio.vue";
|
import radio from "./components/radio.vue";
|
||||||
@ -70,6 +70,11 @@ const tableProps = [
|
|||||||
label: i18n.t('basic.InspectionStage'),
|
label: i18n.t('basic.InspectionStage'),
|
||||||
subcomponent: radio,
|
subcomponent: radio,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
prop: "controlStatus",
|
||||||
|
label: i18n.t('basic.available'),
|
||||||
|
subcomponent: available,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
prop: "remark",
|
prop: "remark",
|
||||||
label: i18n.t('schedule.remark'),
|
label: i18n.t('schedule.remark'),
|
||||||
@ -86,7 +91,7 @@ const tableBtn = [
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
export default {
|
export default {
|
||||||
mixins: [basicPage],
|
mixins: [basicPage, basicSearch],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
urlOptions: {
|
urlOptions: {
|
||||||
@ -103,27 +108,20 @@ export default {
|
|||||||
addOrUpdateVisible: false,
|
addOrUpdateVisible: false,
|
||||||
productOrUpdateVisible: false,
|
productOrUpdateVisible: false,
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
// {
|
||||||
type: 'input',
|
// type: "",
|
||||||
label: i18n.t('basic.name'),
|
// label: i18n.t("params.paramCode"),
|
||||||
placeholder: i18n.t('basic.name'),
|
// placeholder: i18n.t("params.paramCode"),
|
||||||
param: 'name',
|
// param: "paramCode",
|
||||||
clearable: true
|
// },
|
||||||
},
|
// {
|
||||||
{
|
// type: "separate",
|
||||||
type: 'input',
|
// },
|
||||||
label: i18n.t('basic.code'),
|
|
||||||
placeholder: i18n.t('basic.code'),
|
|
||||||
param: 'code',
|
|
||||||
clearable: true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "新增",
|
btnName: "新增",
|
||||||
name: "add",
|
name: "add",
|
||||||
color: 'success',
|
color: "primary",
|
||||||
plain: true
|
|
||||||
// plain: true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
@ -136,6 +134,7 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
productSearch,
|
||||||
productAdd
|
productAdd
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -159,7 +158,7 @@ export default {
|
|||||||
this.searchOrEditTitle = "搜索";
|
this.searchOrEditTitle = "搜索";
|
||||||
this.searchOrUpdateVisible = true;
|
this.searchOrUpdateVisible = true;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.searchOrUpdate.init()
|
this.$refs.searchOrUpdate.init();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// handleConfirm() {
|
// handleConfirm() {
|
||||||
@ -172,7 +171,7 @@ export default {
|
|||||||
this.listQuery.productName = dataForm.productName
|
this.listQuery.productName = dataForm.productName
|
||||||
this.listQuery.productCode = dataForm.productCode
|
this.listQuery.productCode = dataForm.productCode
|
||||||
this.listQuery.page = 1;
|
this.listQuery.page = 1;
|
||||||
this.getDataList()
|
this.getDataList();
|
||||||
this.searchOrUpdateVisible = false;
|
this.searchOrUpdateVisible = false;
|
||||||
// console.log(11111);
|
// console.log(11111);
|
||||||
// this.conditionSearchSubmit();
|
// this.conditionSearchSubmit();
|
||||||
@ -220,8 +219,7 @@ export default {
|
|||||||
switch (val.btnName) {
|
switch (val.btnName) {
|
||||||
case "search":
|
case "search":
|
||||||
// this.listQuery.paramCode = val.paramCode;
|
// this.listQuery.paramCode = val.paramCode;
|
||||||
this.listQuery.productName =val.name ?val.name: null
|
this.listQuery.key = null;
|
||||||
this.listQuery.productCode = val.code ? val.code : null
|
|
||||||
// console.log(i18n);
|
// console.log(i18n);
|
||||||
this.listQuery.page = 1;
|
this.listQuery.page = 1;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-21 14:30:17
|
* @Date: 2023-02-21 14:30:17
|
||||||
* @LastEditTime: 2023-07-11 10:24:01
|
* @LastEditTime: 2023-06-20 15:37:24
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -9,9 +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-badge :value="1" class="item">
|
||||||
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
||||||
</el-badge> -->
|
</el-badge>
|
||||||
</SearchBar>
|
</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">
|
||||||
@ -26,7 +26,7 @@
|
|||||||
<product-type-add ref="addOrUpdate" @refreshDataList="successSubmit"></product-type-add>
|
<product-type-add ref="addOrUpdate" @refreshDataList="successSubmit"></product-type-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 :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
||||||
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
||||||
<productType-search ref="searchOrUpdate" @successSubmit="conditionSearchSubmit"></productType-search>
|
<productType-search ref="searchOrUpdate" @successSubmit="conditionSearchSubmit"></productType-search>
|
||||||
<el-row slot="footer" type="flex" justify="end">
|
<el-row slot="footer" type="flex" justify="end">
|
||||||
@ -41,16 +41,16 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</base-dialog> -->
|
</base-dialog>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</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 productTypeAdd from "./components/productType-add";
|
import productTypeAdd from "./components/productType-add";
|
||||||
// import productTypeSearch from "./components/productTypeSearch.vue";
|
import productTypeSearch from "./components/productTypeSearch.vue";
|
||||||
import available from "./components/available.vue";
|
import available from "./components/available.vue";
|
||||||
import Cookies from 'js-cookie'
|
import Cookies from 'js-cookie'
|
||||||
import qs from 'qs'
|
import qs from 'qs'
|
||||||
@ -83,7 +83,7 @@ const tableBtn = [
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
export default {
|
export default {
|
||||||
mixins: [basicPage],
|
mixins: [basicPage, basicSearch],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
urlOptions: {
|
urlOptions: {
|
||||||
@ -101,46 +101,15 @@ export default {
|
|||||||
productOrEditTitle: "",
|
productOrEditTitle: "",
|
||||||
productOrUpdateVisible: false,
|
productOrUpdateVisible: false,
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
|
||||||
type: 'input',
|
|
||||||
label: i18n.t('basic.name'),
|
|
||||||
placeholder: i18n.t('basic.name'),
|
|
||||||
param: 'name',
|
|
||||||
clearable: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'input',
|
|
||||||
label: i18n.t('basic.code'),
|
|
||||||
placeholder: i18n.t('basic.code'),
|
|
||||||
param: 'code',
|
|
||||||
clearable: true
|
|
||||||
},
|
|
||||||
// {
|
// {
|
||||||
// type: 'select',
|
// type: "",
|
||||||
// label: i18n.t('basic.status'),
|
// label: i18n.t("params.paramCode"),
|
||||||
// placeholder: i18n.t('basic.status'),
|
// placeholder: i18n.t("params.paramCode"),
|
||||||
// param: 'status',
|
// param: "paramCode",
|
||||||
// selectOptions: [
|
|
||||||
// {
|
|
||||||
// id: '0',
|
|
||||||
// name: '不可用'
|
|
||||||
// },
|
// },
|
||||||
// {
|
// {
|
||||||
// id: 1,
|
// type: "separate",
|
||||||
// name: '可用'
|
|
||||||
// }
|
|
||||||
// ],
|
|
||||||
// clearable: true,
|
|
||||||
// filterable: true
|
|
||||||
// },
|
// },
|
||||||
{
|
|
||||||
type: "button",
|
|
||||||
btnName: "新增",
|
|
||||||
name: "add",
|
|
||||||
color: 'success',
|
|
||||||
plain: true
|
|
||||||
// plain: true,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "搜索",
|
btnName: "搜索",
|
||||||
@ -148,19 +117,26 @@ export default {
|
|||||||
color: "primary",
|
color: "primary",
|
||||||
// plain: true,
|
// plain: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
type: "button",
|
||||||
|
btnName: "新增",
|
||||||
|
name: "add",
|
||||||
|
color: "primary",
|
||||||
|
// plain: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "导出",
|
btnName: "导出",
|
||||||
name: "export",
|
name: "export",
|
||||||
color: "primary",
|
color: "primary",
|
||||||
plain: true
|
|
||||||
// plain: true,
|
// plain: true,
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
productTypeAdd
|
productTypeAdd,
|
||||||
|
productTypeSearch
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//search-bar点击
|
//search-bar点击
|
||||||
@ -278,9 +254,9 @@ export default {
|
|||||||
switch (val.btnName) {
|
switch (val.btnName) {
|
||||||
case "search":
|
case "search":
|
||||||
// this.listQuery.paramCode = val.paramCode;
|
// this.listQuery.paramCode = val.paramCode;
|
||||||
this.listQuery.name = val.name ?val.name : null
|
this.listQuery.name = null
|
||||||
this.listQuery.code = val.code ? val.code : null
|
this.listQuery.code = null
|
||||||
// this.listQuery.status = val.status ? val.status : null
|
this.listQuery.status = null
|
||||||
// console.log(i18n);
|
// console.log(i18n);
|
||||||
this.listQuery.page = 1
|
this.listQuery.page = 1
|
||||||
// console.log(basicPage)
|
// console.log(basicPage)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-21 14:30:17
|
* @Date: 2023-02-21 14:30:17
|
||||||
* @LastEditTime: 2023-07-11 10:16:26
|
* @LastEditTime: 2023-06-26 15:32:36
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -11,6 +11,9 @@
|
|||||||
<el-col :span="14">
|
<el-col :span="14">
|
||||||
<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="2" class="item">
|
||||||
|
<el-button type="primary" size="small" @click="conditionSearch">{{ $t("conditionSearch")}}}</el-button>
|
||||||
|
</el-badge>
|
||||||
</SearchBar>
|
</SearchBar>
|
||||||
<base-table highlight-current-row id="palletTable" :table-props="tableProps" :page="listQuery.page"
|
<base-table highlight-current-row id="palletTable" :table-props="tableProps" :page="listQuery.page"
|
||||||
@current-change="handleCurrentChange" ref="palletTable1" :limit="listQuery.limit" :table-data="tableData">
|
@current-change="handleCurrentChange" ref="palletTable1" :limit="listQuery.limit" :table-data="tableData">
|
||||||
@ -25,7 +28,7 @@
|
|||||||
<team-add ref="addOrUpdate" @refreshDataList="successSubmit"></team-add>
|
<team-add ref="addOrUpdate" @refreshDataList="successSubmit"></team-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 :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible"
|
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible"
|
||||||
@cancel="handleSearchCancel" @confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
@cancel="handleSearchCancel" @confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
||||||
<team-search ref="searchOrUpdate" @successSubmit="conditionSearchSubmit"></team-search>
|
<team-search ref="searchOrUpdate" @successSubmit="conditionSearchSubmit"></team-search>
|
||||||
<el-row slot="footer" type="flex" justify="end">
|
<el-row slot="footer" type="flex" justify="end">
|
||||||
@ -41,7 +44,7 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</base-dialog> -->
|
</base-dialog>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="10">
|
<el-col :span="10">
|
||||||
@ -57,17 +60,17 @@
|
|||||||
<!-- <el-row slot="footer" type="flex" justify="end"> </el-row> -->
|
<!-- <el-row slot="footer" type="flex" justify="end"> </el-row> -->
|
||||||
</base-dialog>
|
</base-dialog>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>""
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-card>
|
</el-card>
|
||||||
</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 teamAdd from "./components/team-add";
|
import teamAdd from "./components/team-add";
|
||||||
import teamMemberAdd from './components/teamMember-add'
|
import teamMemberAdd from './components/teamMember-add'
|
||||||
// import teamSearch from "./components/teamSearch.vue";
|
import teamSearch from "./components/teamSearch.vue";
|
||||||
import Cookies from 'js-cookie'
|
import Cookies from 'js-cookie'
|
||||||
import qs from 'qs'
|
import qs from 'qs'
|
||||||
// import radio from "./components/radio.vue";
|
// import radio from "./components/radio.vue";
|
||||||
@ -111,7 +114,7 @@ const tableBtn = [
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
export default {
|
export default {
|
||||||
mixins: [basicPage],
|
mixins: [basicPage, basicSearch],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
urlOptions: {
|
urlOptions: {
|
||||||
@ -135,41 +138,34 @@ export default {
|
|||||||
productOrEditTitle: "",
|
productOrEditTitle: "",
|
||||||
productOrUpdateVisible: false,
|
productOrUpdateVisible: false,
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
// {
|
||||||
type: 'input',
|
// type: "",
|
||||||
label: i18n.t('basic.name'),
|
// label: i18n.t("params.paramCode"),
|
||||||
placeholder: i18n.t('basic.name'),
|
// placeholder: i18n.t("params.paramCode"),
|
||||||
param: 'name',
|
// param: "paramCode",
|
||||||
clearable: true
|
// },
|
||||||
},
|
// {
|
||||||
{
|
// type: "separate",
|
||||||
type: 'input',
|
// },
|
||||||
label: i18n.t('basic.code'),
|
|
||||||
placeholder: i18n.t('basic.code'),
|
|
||||||
param: 'code',
|
|
||||||
clearable: true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "新增",
|
btnName: i18n.t('search'),
|
||||||
name: "add",
|
|
||||||
color: 'success',
|
|
||||||
plain: true
|
|
||||||
// plain: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "button",
|
|
||||||
btnName: "搜索",
|
|
||||||
name: "search",
|
name: "search",
|
||||||
color: "primary",
|
color: "primary",
|
||||||
// plain: true,
|
// plain: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: i18n.t('export'),
|
btnName: i18n.t('add'),
|
||||||
name: 'export',
|
name: "add",
|
||||||
|
color: "primary",
|
||||||
|
// plain: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "button",
|
||||||
|
btnName: "导出",
|
||||||
|
name: i18n.t('export'),
|
||||||
color: "primary",
|
color: "primary",
|
||||||
plain: true
|
|
||||||
// plain: true,
|
// plain: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -202,7 +198,8 @@ export default {
|
|||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
teamAdd,
|
teamAdd,
|
||||||
teamMemberAdd
|
teamMemberAdd,
|
||||||
|
teamSearch
|
||||||
},
|
},
|
||||||
// mounted() {
|
// mounted() {
|
||||||
// this.getDepData()
|
// this.getDepData()
|
||||||
@ -259,36 +256,37 @@ export default {
|
|||||||
// console.log(11111);
|
// console.log(11111);
|
||||||
// this.conditionSearchSubmit();
|
// this.conditionSearchSubmit();
|
||||||
},
|
},
|
||||||
// exportHandle() {
|
exportHandle() {
|
||||||
// console.log(1111)
|
this.$http.get(this.urlOptions.exportURL, { responseType: 'blob' }, {
|
||||||
// this.$http.get(this.urlOptions.exportURL, { responseType: 'blob' }).then((res) => {
|
...this.dataForm
|
||||||
// console.log(res)
|
}).then((res) => {
|
||||||
// // if (res !== 0) {
|
console.log(res)
|
||||||
// // return this.$message.error(res.msg)
|
// 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])
|
let fileName = ''
|
||||||
// const reader = new FileReader()
|
const contentDisposition = res.headers['content-disposition']
|
||||||
// reader.readAsDataURL(blob)
|
if (contentDisposition) {
|
||||||
// reader.onload = (e) => {
|
const temp = res.headers['content-disposition']
|
||||||
// const a = document.createElement('a')
|
.split(';')[1]
|
||||||
// a.download = fileName
|
.split('=')[1]
|
||||||
// a.href = e.target.result
|
// 对文件名乱码转义--【Node.js】使用iconv-lite解决中文乱码
|
||||||
// document.body.appendChild(a)
|
fileName = decodeURI(temp)
|
||||||
// a.click()
|
console.log(temp)
|
||||||
// document.body.removeChild(a)
|
}
|
||||||
// }
|
const blob = new Blob([res.data])
|
||||||
// }).catch(() => { })
|
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(() => { })
|
||||||
|
},
|
||||||
handleClick(val) {
|
handleClick(val) {
|
||||||
console.log(val);
|
console.log(val);
|
||||||
if (val.type === "delete") {
|
if (val.type === "delete") {
|
||||||
@ -362,14 +360,15 @@ export default {
|
|||||||
switch (val.btnName) {
|
switch (val.btnName) {
|
||||||
case "search":
|
case "search":
|
||||||
// this.listQuery.paramCode = val.paramCode;
|
// this.listQuery.paramCode = val.paramCode;
|
||||||
this.listQuery.name = val.name ?val.name : null
|
this.listQuery.name = null
|
||||||
this.listQuery.code = val.code ? val.code : null
|
this.listQuery.code = null
|
||||||
|
this.listQuery.status = null
|
||||||
// console.log(i18n);
|
// console.log(i18n);
|
||||||
this.listQuery.page = 1;
|
this.listQuery.page = 1;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
break;
|
break;
|
||||||
case "export":
|
case "export":
|
||||||
this.exportHandle()
|
this.exportHandle();
|
||||||
break;
|
break;
|
||||||
case "add":
|
case "add":
|
||||||
this.addOrEditTitle = "新增";
|
this.addOrEditTitle = "新增";
|
||||||
@ -391,6 +390,7 @@ export default {
|
|||||||
// this.$refs.palletTable1.setCurrent("palletTable", -1);
|
// this.$refs.palletTable1.setCurrent("palletTable", -1);
|
||||||
// break;
|
// break;
|
||||||
default:
|
default:
|
||||||
|
console.log(val);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -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-06 14:59:27
|
* @LastEditTime: 2023-06-28 14:15:42
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -126,99 +126,13 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-button @click="getTableData()" type="primary">{{ $t('gage.tabularComputations') }}</el-button>
|
<el-button @click="getTableData()" type="primary">{{ $t('gage.tabularComputations') }}</el-button>
|
||||||
<base-table :table-props="tableProps" :table-data="tableData" />
|
<base-table :table-props="tableProps" :table-data="tableData" :page="1" :limit="20" />
|
||||||
</el-form>
|
</el-form>
|
||||||
</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";
|
||||||
import available from "./available";
|
|
||||||
// const tableProps = [
|
|
||||||
// {
|
|
||||||
// prop: 'equipmentName',
|
|
||||||
// label: '设备名称'
|
|
||||||
// },
|
|
||||||
// // {
|
|
||||||
// // prop: 'lineA',
|
|
||||||
// // label: '有效时间(h)',
|
|
||||||
// // children: [
|
|
||||||
// // {
|
|
||||||
// // prop: 'workTime',
|
|
||||||
// // label: '工作时长'
|
|
||||||
// // },
|
|
||||||
// // {
|
|
||||||
// // prop: 'workTimeRate',
|
|
||||||
// // label: '工作时长比率'
|
|
||||||
// // }
|
|
||||||
// // ]
|
|
||||||
// // },
|
|
||||||
// // {
|
|
||||||
// // prop: 'lineB',
|
|
||||||
// // label: '关机时间(h)',
|
|
||||||
// // children: [
|
|
||||||
// // {
|
|
||||||
// // prop: 'downTime',
|
|
||||||
// // label: '停机时长'
|
|
||||||
// // },
|
|
||||||
// // {
|
|
||||||
// // prop: 'downTimeRate',
|
|
||||||
// // label: '停机时长比率'
|
|
||||||
// // }
|
|
||||||
// // ]
|
|
||||||
// // },
|
|
||||||
// // {
|
|
||||||
// // prop: 'lineC',
|
|
||||||
// // label: '中断损失',
|
|
||||||
// // children: [
|
|
||||||
// // {
|
|
||||||
// // prop: 'faultTime',
|
|
||||||
// // label: '故障时长'
|
|
||||||
// // },
|
|
||||||
// // {
|
|
||||||
// // prop: 'faultTimeRate',
|
|
||||||
// // label: '故障时长比率'
|
|
||||||
// // }
|
|
||||||
// // ]
|
|
||||||
// // },
|
|
||||||
// // {
|
|
||||||
// // prop: 'lineD',
|
|
||||||
// // label: '速度损失',
|
|
||||||
// // children: [
|
|
||||||
// // {
|
|
||||||
// // prop: 'actualProcessingSpeed',
|
|
||||||
// // label: '实际加工速度'
|
|
||||||
// // },
|
|
||||||
// // {
|
|
||||||
// // prop: 'theoreticalProcessingSpeed',
|
|
||||||
// // label: '理论加工速度'
|
|
||||||
// // },
|
|
||||||
// // {
|
|
||||||
// // prop: 'speedActuationRate',
|
|
||||||
// // label: '速度开动率'
|
|
||||||
// // }
|
|
||||||
// // ]
|
|
||||||
// // }
|
|
||||||
// ]
|
|
||||||
const tableProps = [
|
|
||||||
{
|
|
||||||
prop: 'testUserName',
|
|
||||||
label: '人员',
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'orderNumber',
|
|
||||||
label: '序号',
|
|
||||||
align:'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'test',
|
|
||||||
label: '零件',
|
|
||||||
align: 'center',
|
|
||||||
children: [
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [basicAdd],
|
mixins: [basicAdd],
|
||||||
data() {
|
data() {
|
||||||
@ -233,11 +147,10 @@ export default {
|
|||||||
getCustomerListURL: '/basic/qmsCustomer/page',
|
getCustomerListURL: '/basic/qmsCustomer/page',
|
||||||
getTabularComputationsURL: '/gage/qmsGageGrrTester/table'
|
getTabularComputationsURL: '/gage/qmsGageGrrTester/table'
|
||||||
},
|
},
|
||||||
trueTableProps: [],
|
|
||||||
gageList: [],
|
gageList: [],
|
||||||
userList: [],
|
userList: [],
|
||||||
tableProps,
|
|
||||||
customerList: [],
|
customerList: [],
|
||||||
|
tableProps: [],
|
||||||
tableData:[],
|
tableData:[],
|
||||||
gageTypeList:[],
|
gageTypeList:[],
|
||||||
departmentList: [],
|
departmentList: [],
|
||||||
@ -304,8 +217,6 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
visible: false,
|
visible: false,
|
||||||
// tableProp2,
|
|
||||||
chartDataArr: [],
|
|
||||||
dataForm: {
|
dataForm: {
|
||||||
connection:null,
|
connection:null,
|
||||||
corporation: null,
|
corporation: null,
|
||||||
@ -360,10 +271,6 @@ export default {
|
|||||||
mounted () {
|
mounted () {
|
||||||
this.getData();
|
this.getData();
|
||||||
},
|
},
|
||||||
destroyed () {
|
|
||||||
this.tableData = []
|
|
||||||
this.tableProps = []
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
getTableData() {
|
getTableData() {
|
||||||
this.$http.get(this.urlOptions.getTabularComputationsURL, {
|
this.$http.get(this.urlOptions.getTabularComputationsURL, {
|
||||||
@ -371,136 +278,119 @@ export default {
|
|||||||
gageGrrId:this.dataForm.id
|
gageGrrId:this.dataForm.id
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then(({ data: result }) => {
|
.then(({ data: res }) => {
|
||||||
if (result.code === 0) {
|
if (res.code === 0) {
|
||||||
console.log(result)
|
console.log(res)
|
||||||
let arr = []
|
|
||||||
// let aa = []
|
|
||||||
// let moreData = [
|
|
||||||
// // {
|
|
||||||
// // testUserName: null,
|
|
||||||
// // data: [
|
|
||||||
// // {
|
|
||||||
// // orderNumber: result.data.qmsGageGrrTesterDTOList[i].list[j].orderNumber,
|
|
||||||
// // data: aa
|
|
||||||
// // },
|
|
||||||
// // {
|
|
||||||
// // equipmentName: '机器人投入数',
|
|
||||||
// // data: aa
|
|
||||||
// // },
|
|
||||||
// // {
|
|
||||||
// // equipmentName: '良品总投入数',
|
|
||||||
// // data: aa
|
|
||||||
// // },
|
|
||||||
// // {
|
|
||||||
// // equipmentName: '工序损耗',
|
|
||||||
// // data: aa
|
|
||||||
// // }
|
|
||||||
// // ]
|
|
||||||
// // },
|
|
||||||
// ]
|
|
||||||
for (let i = 0; i < result.data.qmsGageGrrTesterDTOList.length; i++){
|
|
||||||
// console.log(result.data.qmsGageGrrTesterDTOList[i].orderMapList)
|
|
||||||
Object.keys(result.data.qmsGageGrrTesterDTOList[i].partMapList).forEach((item) => {
|
|
||||||
this.tableProps[2].children.push({
|
|
||||||
label: String(item),
|
|
||||||
prop: 'measuredData' + String(item),
|
|
||||||
align: 'center'
|
|
||||||
})
|
|
||||||
})
|
|
||||||
Object.keys(result.data.qmsGageGrrTesterDTOList[i].orderMapList).forEach((item) => {
|
|
||||||
let measuredDataProp = 'measuredData' + String(item)
|
|
||||||
this.tableData.push({
|
|
||||||
testUserName: result.data.qmsGageGrrTesterDTOList[i].testUserName,
|
|
||||||
orderNumber: item,
|
|
||||||
[measuredDataProp]: '',
|
|
||||||
})
|
|
||||||
})
|
|
||||||
Object.keys(result.data.qmsGageGrrTesterDTOList[i].orderMapList).forEach((item) => {
|
|
||||||
result.data.qmsGageGrrTesterDTOList[i].orderMapList[item].forEach((ele, index, arr) => {
|
|
||||||
let measuredData = 'measuredData' + String(index + 1)
|
|
||||||
console.log(item)
|
|
||||||
// console.log(arr)
|
|
||||||
// console.log(ele)
|
|
||||||
// console.log(this.tableProps[2].children.prop);
|
|
||||||
// console.log(this.tableProps[2].children[item - 1].prop)
|
|
||||||
console.log(index)
|
|
||||||
console.log(measuredData)
|
|
||||||
console.log(ele)
|
|
||||||
// console.log(this.tableData[index + 1])
|
|
||||||
this.tableData[item-1][measuredData] = ele
|
|
||||||
// console.log(this.tableData[item - 1])
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
console.log(this.tableProps)
|
|
||||||
console.log(this.tableData)
|
|
||||||
// console.log(this.table)
|
|
||||||
// console.log(moreData,'1111')
|
|
||||||
// for (let i = 0; i < 30; i++) {
|
|
||||||
// let a = {
|
|
||||||
// time: '2022-11-' + i,
|
|
||||||
// eqCT: 0.01,
|
|
||||||
// eqTT: 0.62,
|
|
||||||
// lineCT: 0.73,
|
|
||||||
// lineTT: 0.45
|
|
||||||
// }
|
|
||||||
// aa.push(a)
|
|
||||||
// }
|
|
||||||
// this.numArr = []
|
|
||||||
// let num = 0
|
|
||||||
// const tableConfig = []
|
|
||||||
// this.chartDataArr = []
|
|
||||||
// const dataArr = moreData.map((item, index) => {
|
|
||||||
// let dataArr = []
|
|
||||||
// if (item.data) {
|
|
||||||
// this.chartDataArr = this.chartDataArr.concat(item.data)
|
|
||||||
// num += item.data.length
|
|
||||||
// this.numArr.push(num)
|
|
||||||
// dataArr = item.data.map((z, idx) => {
|
|
||||||
// const dataArr = {}
|
|
||||||
// z.data.forEach((i) => {
|
|
||||||
// // 动态生成tableConfig
|
|
||||||
// if (index === 0 && idx === 0) {
|
|
||||||
// tableConfig.push({
|
|
||||||
// label: i.time,
|
|
||||||
// prop: i.time,
|
|
||||||
// children: [
|
|
||||||
// { prop: i.time + 'eqCT', label: '设备CT', subcomponent: available },
|
|
||||||
// { prop: i.time + 'eqTT', label: '设备TT' },
|
|
||||||
// { prop: i.time + 'lineCT', label: '产线CT' },
|
|
||||||
// {
|
|
||||||
// prop: i.time + 'lineTT',
|
|
||||||
// label: '产线TT',
|
|
||||||
// // subcomponent: demo3Sub
|
|
||||||
// }
|
|
||||||
// ]
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
// // 合并数据集
|
|
||||||
// dataArr[i.time + 'eqCT'] = i.eqCT
|
|
||||||
// dataArr[i.time + 'eqTT'] = i.eqTT
|
|
||||||
// dataArr[i.time + 'lineCT'] = i.lineCT
|
|
||||||
// dataArr[i.time + 'lineTT'] = i.lineTT
|
|
||||||
// dataArr.testUserName = item.testUserName
|
|
||||||
// dataArr.orderNumber = z.orderNumber
|
|
||||||
// })
|
|
||||||
// console.log(dataArr)
|
|
||||||
// return dataArr
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
// return dataArr
|
|
||||||
// })
|
|
||||||
// console.log(tableConfig)
|
|
||||||
// this.trueTableProps = this.tableProp2.concat(tableConfig)
|
|
||||||
// console.log(this.trueTableProps,'22112112')
|
|
||||||
// this.tableData = this.flatten(dataArr)
|
|
||||||
// console.log(this.tableData)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
})
|
})
|
||||||
|
let aa = []
|
||||||
|
|
||||||
|
let moreData = [
|
||||||
|
{
|
||||||
|
process: '综合',
|
||||||
|
data: [
|
||||||
|
{
|
||||||
|
equipmentName: '上片投入数量',
|
||||||
|
data: aa
|
||||||
|
},
|
||||||
|
{
|
||||||
|
equipmentName: '机器人投入数',
|
||||||
|
data: aa
|
||||||
|
},
|
||||||
|
{
|
||||||
|
equipmentName: '良品总投入数',
|
||||||
|
data: aa
|
||||||
|
},
|
||||||
|
{
|
||||||
|
equipmentName: '工序损耗',
|
||||||
|
data: aa
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
process: '上片',
|
||||||
|
data: [
|
||||||
|
{
|
||||||
|
equipmentName: '上片损失',
|
||||||
|
data: aa
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
process: '精切',
|
||||||
|
data: [
|
||||||
|
{
|
||||||
|
equipmentName: '精切损失',
|
||||||
|
data: aa
|
||||||
|
},
|
||||||
|
{
|
||||||
|
equipmentName: '精切抽检',
|
||||||
|
data: aa
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
for (let i = 0; i < 30; i++) {
|
||||||
|
let a = {
|
||||||
|
time: '2022-11-' + i,
|
||||||
|
eqCT: 0.01,
|
||||||
|
eqTT: 0.62,
|
||||||
|
lineCT: 0.73,
|
||||||
|
lineTT: 0.45
|
||||||
|
}
|
||||||
|
aa.push(a)
|
||||||
|
}
|
||||||
|
this.numArr = []
|
||||||
|
let num = 0
|
||||||
|
const tableConfig = []
|
||||||
|
this.chartDataArr = []
|
||||||
|
const dataArr = moreData.map((item, index) => {
|
||||||
|
let dataArr = []
|
||||||
|
if (item.data) {
|
||||||
|
this.chartDataArr = this.chartDataArr.concat(item.data)
|
||||||
|
num += item.data.length
|
||||||
|
this.numArr.push(num)
|
||||||
|
dataArr = item.data.map((z, idx) => {
|
||||||
|
const dataArr = {}
|
||||||
|
z.data.forEach((i) => {
|
||||||
|
// 动态生成tableConfig
|
||||||
|
if (index === 0 && idx === 0) {
|
||||||
|
tableConfig.push({
|
||||||
|
label: i.time,
|
||||||
|
prop: i.time,
|
||||||
|
children: [
|
||||||
|
{ prop: i.time + 'eqCT', label: '设备CT' },
|
||||||
|
{ prop: i.time + 'eqTT', label: '设备TT' },
|
||||||
|
{ prop: i.time + 'lineCT', label: '产线CT' },
|
||||||
|
{
|
||||||
|
prop: i.time + 'lineTT',
|
||||||
|
label: '产线TT',
|
||||||
|
subcomponent: demo3Sub
|
||||||
|
}
|
||||||
|
]
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 合并数据集
|
||||||
|
dataArr[i.time + 'eqCT'] = i.eqCT
|
||||||
|
dataArr[i.time + 'eqTT'] = i.eqTT
|
||||||
|
dataArr[i.time + 'lineCT'] = i.lineCT
|
||||||
|
dataArr[i.time + 'lineTT'] = i.lineTT
|
||||||
|
dataArr.process = item.process
|
||||||
|
dataArr.equipmentName = z.equipmentName
|
||||||
|
})
|
||||||
|
console.log(dataArr)
|
||||||
|
return dataArr
|
||||||
|
})
|
||||||
|
}
|
||||||
|
return dataArr
|
||||||
|
})
|
||||||
|
console.log(tableConfig)
|
||||||
|
this.trueTableProps = this.tableProp2.concat(tableConfig)
|
||||||
|
console.log(this.trueTableProps)
|
||||||
|
this.tableData = this.flatten(dataArr)
|
||||||
|
console.log(this.tableData)
|
||||||
},
|
},
|
||||||
// tree->[]
|
// tree->[]
|
||||||
flatten(arr) {
|
flatten(arr) {
|
||||||
|
@ -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-06 14:15:17
|
* @LastEditTime: 2023-06-27 15:38:27
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -119,10 +119,10 @@
|
|||||||
<td colspan="3">{{ $t('gage.totalVariation') }}</td>
|
<td colspan="3">{{ $t('gage.totalVariation') }}</td>
|
||||||
<td>8</td>
|
<td>8</td>
|
||||||
<td>{{ this.grrReportData.k3[6] }}</td>
|
<td>{{ this.grrReportData.k3[6] }}</td>
|
||||||
<td rowspan="3">{{ this.grrReportData.ndc }}</td>
|
<td rowspan="4">{{ this.grrReportData.ndc }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td rowspan="2" colspan="3">{{ this.grrReportData.tv }}</td>
|
<td rowspan="3" colspan="3">{{ this.grrReportData.tv }}</td>
|
||||||
<td>9</td>
|
<td>9</td>
|
||||||
<td>{{ this.grrReportData.k3[7] }}</td>
|
<td>{{ this.grrReportData.k3[7] }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -131,13 +131,11 @@
|
|||||||
<td>{{ this.grrReportData.k3[8] }}</td>
|
<td>{{ this.grrReportData.k3[8] }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" rowspan="2">{{ $t('gage.decide') }}</td>
|
<td colspan="2">{{ $t('gage.decide') }}</td>
|
||||||
<td>%GRR</td>
|
<td>%GRR</td>
|
||||||
<td colspan="3">{{ this.grrReportData.isAccept }}</td>
|
<td rowspan="4">{{ this.grrReportData.isAccept }}</td>
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>reason</td>
|
<td>reason</td>
|
||||||
<td colspan="3">{{ this.grrReportData.reason }}</td>
|
<td rowspan="4">{{ this.grrReportData.reason }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@ -218,34 +216,3 @@ export default {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
|
||||||
td{
|
|
||||||
width: 400px;
|
|
||||||
}
|
|
||||||
table {
|
|
||||||
border-collapse: collapse;
|
|
||||||
margin: 0 auto;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
table td,
|
|
||||||
table th {
|
|
||||||
border: 1px solid #cad9ea;
|
|
||||||
color: #666;
|
|
||||||
height: 30px;
|
|
||||||
}
|
|
||||||
|
|
||||||
table thead th {
|
|
||||||
background-color: #CCE8EB;
|
|
||||||
width: 100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
table tr:nth-child(odd) {
|
|
||||||
background: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
table tr:nth-child(even) {
|
|
||||||
background: #F5FAFA;
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-01-11 09:24:58
|
* @Date: 2023-01-11 09:24:58
|
||||||
* @LastEditTime: 2023-06-28 14:27:57
|
* @LastEditTime: 2023-06-27 14:51:34
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -327,3 +327,34 @@ export default {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
<style>
|
||||||
|
|
||||||
|
td{
|
||||||
|
width: 400px;
|
||||||
|
}
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
margin: 0 auto;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
table td,
|
||||||
|
table th {
|
||||||
|
border: 1px solid #cad9ea;
|
||||||
|
color: #666;
|
||||||
|
height: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
table thead th {
|
||||||
|
background-color: #CCE8EB;
|
||||||
|
width: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
table tr:nth-child(odd) {
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
table tr:nth-child(even) {
|
||||||
|
background: #F5FAFA;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-12 14:46:40
|
* @LastEditTime: 2023-04-12 15:54:19
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()" label-width="150px">
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="150px">
|
||||||
<el-form-item prop="approvalProcessCode" :label="$t('disqualification.approvalProcessCode')">
|
<el-form-item prop="approvalProcessCode" :label="$t('disqualification.approvalProcessCode')">
|
||||||
<el-input v-model="dataForm.approvalProcessCode" :placeholder="$t('disqualification.approvalProcessCode')">
|
<el-input v-model="dataForm.approvalProcessCode" :placeholder="$t('disqualification.approvalProcessCode')">
|
||||||
</el-input>
|
</el-input>
|
||||||
@ -23,11 +23,8 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<base-table v-if="editShow" border :table-props="tableProps" :table-data="tableData"
|
<base-table border :table-props="tableProps" :table-data="tableData"
|
||||||
:add-button-show="addButtonShow" @emitFun="inputChange" @emitButtonClick="emitButtonClick" >
|
:add-button-show="addButtonShow" @emitFun="inputChange" @emitButtonClick="emitButtonClick" />
|
||||||
<method-btn v-if="tableBtn.length" slot="handleBtn" :width="100" label="操作" :method-list="tableBtn"
|
|
||||||
@clickBtn="handleClick" />
|
|
||||||
</base-table>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -37,10 +34,12 @@ import debounce from "lodash/debounce"
|
|||||||
import inputArea from './inputArea'
|
import inputArea from './inputArea'
|
||||||
import selectArea from './selectArea'
|
import selectArea from './selectArea'
|
||||||
import i18n from "@/i18n"
|
import i18n from "@/i18n"
|
||||||
|
import { kStringMaxLength } from "buffer"
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
prop: 'step',
|
prop: 'step',
|
||||||
label: i18n.t("disqualification.step"),
|
label: i18n.t("disqualification.step"),
|
||||||
|
subcomponent: inputArea
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'teamId',
|
prop: 'teamId',
|
||||||
@ -48,12 +47,6 @@ const tableProps = [
|
|||||||
subcomponent: selectArea
|
subcomponent: selectArea
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
const tableBtn = [
|
|
||||||
{
|
|
||||||
type: "delete",
|
|
||||||
btnName: "删除",
|
|
||||||
},
|
|
||||||
];
|
|
||||||
export default {
|
export default {
|
||||||
// mixins: [basicAdd],
|
// mixins: [basicAdd],
|
||||||
data() {
|
data() {
|
||||||
@ -66,11 +59,9 @@ export default {
|
|||||||
},
|
},
|
||||||
supplierList:[],
|
supplierList:[],
|
||||||
productList:[],
|
productList:[],
|
||||||
tableBtn,
|
|
||||||
typeList: [],
|
typeList: [],
|
||||||
teamList: [],
|
teamList: [],
|
||||||
tableData:[],
|
tableData:[],
|
||||||
editShow:false,
|
|
||||||
listQuery: {
|
listQuery: {
|
||||||
limit: 999,
|
limit: 999,
|
||||||
page: 1,
|
page: 1,
|
||||||
@ -101,48 +92,31 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
approvalProcessCode: [
|
// dictLabel: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
approvalProcessName: [
|
// dictValue: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
]
|
// ],
|
||||||
|
// sort: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: this.$t("validate.required"),
|
||||||
|
// trigger: "blur",
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleClick(val) {
|
|
||||||
console.log(val);
|
|
||||||
if (val.type === "delete") {
|
|
||||||
this.$confirm(`确定对[名称=${val.data.step}]进行删除操作?`, "提示", {
|
|
||||||
confirmButtonText: "确定",
|
|
||||||
cancelButtonText: "取消",
|
|
||||||
type: "warning",
|
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
this.$nextTick(() => {
|
|
||||||
for (let i = 0; i < this.tableData.length; i++) {
|
|
||||||
console.log();
|
|
||||||
if (this.tableData[i].step === val.data.step) {
|
|
||||||
this.tableData.splice(i, 1)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for (let i = val.data.step - 1; i < this.tableData.length; i++) {
|
|
||||||
this.tableData[i].step = i + 1
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
.catch(() => { })
|
|
||||||
}
|
|
||||||
},
|
|
||||||
inputChange(val) {
|
inputChange(val) {
|
||||||
console.log('=======')
|
console.log('=======')
|
||||||
console.log(val)
|
console.log(val)
|
||||||
@ -152,25 +126,14 @@ export default {
|
|||||||
emitButtonClick() {
|
emitButtonClick() {
|
||||||
console.log('emitButtonClick')
|
console.log('emitButtonClick')
|
||||||
let obj = {}
|
let obj = {}
|
||||||
// for (let i of this.tableProps) {
|
for (let i of this.tableProps) {
|
||||||
// console.log(i.prop)
|
obj[i.prop] = ''
|
||||||
// obj[i.prop] = ''
|
|
||||||
// }
|
|
||||||
if (this.tableData.length !== 0) {
|
|
||||||
obj['step'] = this.tableData[this.tableData.length - 1].step + 1
|
|
||||||
obj['teamId'] = ''
|
|
||||||
} else {
|
|
||||||
for (let i = 0; i <= this.tableData.length; i++) {
|
|
||||||
obj['step'] = i + 1
|
|
||||||
obj['teamId'] = ''
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
this.tableData.push(obj)
|
this.tableData.push(obj)
|
||||||
// this.dataForm.qmsApprovalProcessStepDetailDTOList.push(obj)
|
// this.dataForm.qmsApprovalProcessStepDetailDTOList.push(obj)
|
||||||
// console.log(this.dataForm)
|
// console.log(this.dataForm)
|
||||||
},
|
},
|
||||||
init(id, flag) {
|
init(id, ) {
|
||||||
this.editShow = flag || false
|
|
||||||
this.dataForm.id = id || ""
|
this.dataForm.id = id || ""
|
||||||
this.listQuery.approvalProcessId = id || ""
|
this.listQuery.approvalProcessId = id || ""
|
||||||
this.editData.id = id || ""
|
this.editData.id = id || ""
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-12 15:06:16
|
* @LastEditTime: 2023-04-07 10:20:53
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()" label-width="150px">
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="150px">
|
||||||
<el-form-item prop="inspectionTypeId" :label="$t('disqualification.inspectionTypeId')">
|
<el-form-item prop="inspectionTypeId" :label="$t('disqualification.inspectionTypeId')">
|
||||||
<el-select v-model="dataForm.inspectionTypeId" :placeholder="$t('disqualification.inspectionTypeId')">
|
<el-select v-model="dataForm.inspectionTypeId" :placeholder="$t('disqualification.inspectionTypeId')">
|
||||||
<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">
|
||||||
@ -27,8 +27,8 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="approvalProcessId" :label="$t('disqualification.approvalProcessName')">
|
<el-form-item prop="approvalProcessId" :label="$t('disqualification.approvalProcessName')">
|
||||||
<el-select v-model="dataForm.approvalProcessId" :placeholder="$t('disqualification.approvalProcessName')">
|
<el-select v-model="dataForm.approvalProcessId" :placeholder="$t('disqualification.approvalProcessName')">
|
||||||
<el-option v-for="item in approvalProcessList" :key="item.id" :label="item.approvalProcessName"
|
<el-option v-for="item in approvalProcessList" :key="item.approvalProcessId" :label="item.approvalProcessName"
|
||||||
:value="item.id">
|
:value="item.approvalProcessId">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -149,27 +149,27 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
approvalProcessId: [
|
// dictLabel: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
disposalMethod: [
|
// dictValue: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
inspectionTypeId: [
|
// sort: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -198,7 +198,7 @@ export default {
|
|||||||
})
|
})
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
console.log(res.data,'11111111111');
|
console.log(res.data);
|
||||||
this.approvalProcessList= res.data.list
|
this.approvalProcessList= res.data.list
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2023-01-04 10:29:40
|
* @Date: 2023-01-04 10:29:40
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @LastEditTime: 2023-07-12 14:54:19
|
* @LastEditTime: 2023-04-07 10:16:09
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -150,7 +150,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
// init(id) {
|
// init(id) {
|
||||||
// this.dataForm.id = id || "";
|
// this.dataForm.id = id || "";
|
||||||
|
@ -2,17 +2,17 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2023-01-04 10:29:40
|
* @Date: 2023-01-04 10:29:40
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @LastEditTime: 2023-07-07 09:16:23
|
* @LastEditTime: 2023-04-13 15:03:39
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
||||||
<el-form-item prop="code" :label="$t('disqualification.approvalProcessCode')">
|
<el-form-item prop="approvalProcessCode" :label="$t('disqualification.approvalProcessCode')">
|
||||||
<el-input v-model="dataForm.code" :placeholder="$t('disqualification.approvalProcessCode')">
|
<el-input v-model="dataForm.approvalProcessCode" :placeholder="$t('disqualification.approvalProcessCode')">
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="name" :label="$t('disqualification.approvalProcessName')">
|
<el-form-item prop="approvalProcessName" :label="$t('disqualification.approvalProcessName')">
|
||||||
<el-input v-model="dataForm.name" :placeholder="$t('disqualification.approvalProcessName')">
|
<el-input v-model="dataForm.approvalProcessName" :placeholder="$t('disqualification.approvalProcessName')">
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
@ -36,8 +36,8 @@ export default {
|
|||||||
visible: false,
|
visible: false,
|
||||||
customerTypeList:{},
|
customerTypeList:{},
|
||||||
dataForm: {
|
dataForm: {
|
||||||
name: null,
|
approvalProcessName: null,
|
||||||
code:null
|
approvalProcessCode:null
|
||||||
},
|
},
|
||||||
productList:[]
|
productList:[]
|
||||||
};
|
};
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-01-31 09:49:36
|
* @Date: 2023-01-31 09:49:36
|
||||||
* @LastEditTime: 2023-07-07 09:55:32
|
* @LastEditTime: 2023-04-13 14:52:42
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<div id="detailList">
|
<div id="detailList">
|
||||||
<span v-for="(item,index) in injectData.qmsApprovalProcessStepDetailDTOList" :key="index">
|
<span v-for="(item,index) in injectData.qmsApprovalProcessStepDetailDTOList" :key="item.teamName">
|
||||||
{{item.teamName}}
|
<el-button type="text">{{item.teamName}}} </el-button>
|
||||||
<i v-if="index <+ injectData.qmsApprovalProcessStepDetailDTOList.length-1" class="el-icon-right"></i>
|
<i v-if="index <+ injectData.qmsApprovalProcessStepDetailDTOList.length-1" class="el-icon-right"></i>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -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-12 15:02:56
|
* @LastEditTime: 2023-06-20 15:35:20
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -9,9 +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="2" class="item">
|
<el-badge :value="2" class="item">
|
||||||
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
||||||
</el-badge> -->
|
</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"
|
||||||
@ -66,7 +66,7 @@ const tableProps = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'approvalProcessName',
|
prop: 'approvalProcessName',
|
||||||
label: i18n.t("disqualification.name"),
|
label: i18n.t("disqualification.approvalProcessName"),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -114,34 +114,26 @@ export default {
|
|||||||
searchOrEditTitle: '',
|
searchOrEditTitle: '',
|
||||||
searchOrUpdateVisible: false,
|
searchOrUpdateVisible: false,
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
// {
|
||||||
type: 'input',
|
// type: "",
|
||||||
label: i18n.t('quality.code'),
|
// label: i18n.t("params.paramCode"),
|
||||||
placeholder: i18n.t('quality.code'),
|
// placeholder: i18n.t("params.paramCode"),
|
||||||
param: 'code',
|
// param: "paramCode",
|
||||||
clearable: true
|
// },
|
||||||
},
|
// {
|
||||||
{
|
// type: "separate",
|
||||||
type: 'input',
|
// },
|
||||||
label: i18n.t('quality.name'),
|
|
||||||
placeholder: i18n.t('quality.name'),
|
|
||||||
param: 'name',
|
|
||||||
clearable: true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "新增",
|
btnName: i18n.t('add'),
|
||||||
name: "add",
|
name: "add",
|
||||||
color: 'success',
|
color: "primary",
|
||||||
plain: true
|
|
||||||
// plain: true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "搜索",
|
btnName: i18n.t('search'),
|
||||||
name: "search",
|
name: "search",
|
||||||
color: "primary",
|
color: "primary",
|
||||||
// plain: true,
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
@ -167,8 +159,8 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
conditionSearchSubmit(dataForm) {
|
conditionSearchSubmit(dataForm) {
|
||||||
this.listQuery.code = dataForm.code
|
this.listQuery.approvalProcessCode = dataForm.approvalProcessCode
|
||||||
this.listQuery.name = dataForm.name
|
this.listQuery.approvalProcessName = dataForm.approvalProcessName
|
||||||
this.listQuery.page = 1
|
this.listQuery.page = 1
|
||||||
this.getDataList()
|
this.getDataList()
|
||||||
this.searchOrUpdateVisible = false
|
this.searchOrUpdateVisible = false
|
||||||
@ -204,7 +196,7 @@ export default {
|
|||||||
this.addOrEditTitle = this.$t('edit')
|
this.addOrEditTitle = this.$t('edit')
|
||||||
this.addOrUpdateVisible = true;
|
this.addOrUpdateVisible = true;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.addOrUpdate.init(val.data.id,true)
|
this.$refs.addOrUpdate.init(val.data.id);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -213,8 +205,6 @@ 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 ? val.code : null
|
|
||||||
this.listQuery.name = val.name ? val.name :null
|
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
break;
|
break;
|
||||||
case "export":
|
case "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-12 14:57:28
|
* @LastEditTime: 2023-06-20 15:34:19
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -9,9 +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="2" class="item">
|
<el-badge :value="1" class="item">
|
||||||
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
||||||
</el-badge> -->
|
</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"
|
||||||
@ -102,102 +102,26 @@ export default {
|
|||||||
urlOptions: {
|
urlOptions: {
|
||||||
getDataListURL: "/nonconform/qmsApprovalProcessConfiguration/page",
|
getDataListURL: "/nonconform/qmsApprovalProcessConfiguration/page",
|
||||||
deleteURL: "/nonconform/qmsApprovalProcessConfiguration",
|
deleteURL: "/nonconform/qmsApprovalProcessConfiguration",
|
||||||
getProductURL: '/basic/qmsProduct/page'
|
|
||||||
},
|
},
|
||||||
tableProps,
|
tableProps,
|
||||||
tableBtn,
|
tableBtn,
|
||||||
searchOrEditTitle: '',
|
searchOrEditTitle: '',
|
||||||
searchOrUpdateVisible: false,
|
searchOrUpdateVisible: false,
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
// {
|
||||||
type: 'select',
|
// type: "",
|
||||||
label: i18n.t('disqualification.inspectionTypeId'),
|
// label: i18n.t("params.paramCode"),
|
||||||
placeholder: i18n.t('disqualification.inspectionTypeId'),
|
// placeholder: i18n.t("params.paramCode"),
|
||||||
param: 'inspectionTypeId',
|
// param: "paramCode",
|
||||||
selectOptions: [
|
// },
|
||||||
{
|
// {
|
||||||
id: 0,
|
// type: "separate",
|
||||||
name: '监控'
|
// },
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 1,
|
|
||||||
name: '电芯来料检验'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 2,
|
|
||||||
name: 'IQC抽检'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 3,
|
|
||||||
name: 'IQC抽检2'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 4,
|
|
||||||
name: '原料抽检'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 5,
|
|
||||||
name: '进货外观检验'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 6,
|
|
||||||
name: '库内原料检验'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 7,
|
|
||||||
name: '来料检验'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 8,
|
|
||||||
name: '胶片'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 9,
|
|
||||||
name: '抽检'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 10,
|
|
||||||
name: '巡检'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 11,
|
|
||||||
name: '首检'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 12,
|
|
||||||
name: '末检'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 13,
|
|
||||||
name: '实时监测'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 14,
|
|
||||||
name: 'FQC抽检'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 15,
|
|
||||||
name: 'OQC抽检'
|
|
||||||
},
|
|
||||||
],
|
|
||||||
clearable: true,
|
|
||||||
filterable: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'select',
|
|
||||||
label: i18n.t('disqualification.productName'),
|
|
||||||
placeholder: i18n.t('disqualification.productName'),
|
|
||||||
param: 'productId',
|
|
||||||
selectOptions: [],
|
|
||||||
clearable: true,
|
|
||||||
filterable: true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "新增",
|
btnName: "新增",
|
||||||
name: "add",
|
name: "add",
|
||||||
color: 'success',
|
color: "primary",
|
||||||
plain: true
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
@ -211,29 +135,7 @@ export default {
|
|||||||
// components: {
|
// components: {
|
||||||
// AddOrUpdate,
|
// AddOrUpdate,
|
||||||
// },
|
// },
|
||||||
mounted() {
|
|
||||||
this.getData();
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
getData() {
|
|
||||||
this.$http
|
|
||||||
.get(this.urlOptions.getProductURL, {
|
|
||||||
params: this.listQuery,
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
if (res.code === 0) {
|
|
||||||
console.log(res.data)
|
|
||||||
this.formConfig[1].selectOptions = res.data.list.map((item) => {
|
|
||||||
return {
|
|
||||||
id: item.id,
|
|
||||||
name: item.productName
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
})
|
|
||||||
},
|
|
||||||
//search-bar点击
|
//search-bar点击
|
||||||
handleProductCancel() {
|
handleProductCancel() {
|
||||||
this.productOrUpdateVisible = false;
|
this.productOrUpdateVisible = false;
|
||||||
@ -297,8 +199,6 @@ 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.inspectionTypeId = val.inspectionTypeId ? val.inspectionTypeId : null
|
|
||||||
this.listQuery.productId = val.productId ? val.productId :null
|
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
break;
|
break;
|
||||||
case "add":
|
case "add":
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-12 15:12:31
|
* @LastEditTime: 2023-04-06 15:12:57
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()" label-width="150px">
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="150px">
|
||||||
<el-form-item prop="inspectionTypeId" :label="$t('disqualification.inspectionTypeId')">
|
<el-form-item prop="inspectionTypeId" :label="$t('disqualification.inspectionTypeId')">
|
||||||
<el-select v-model="dataForm.inspectionTypeId" :placeholder="$t('disqualification.inspectionTypeId')">
|
<el-select v-model="dataForm.inspectionTypeId" :placeholder="$t('disqualification.inspectionTypeId')">
|
||||||
<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">
|
||||||
@ -123,13 +123,27 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
teamId: [
|
// dictLabel: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
]
|
// ],
|
||||||
|
// dictValue: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: this.$t("validate.required"),
|
||||||
|
// trigger: "blur",
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
|
// sort: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: this.$t("validate.required"),
|
||||||
|
// trigger: "blur",
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -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-12 15:08:51
|
* @LastEditTime: 2023-06-20 15:34:38
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -114,8 +114,7 @@ export default {
|
|||||||
type: "button",
|
type: "button",
|
||||||
btnName: "新增",
|
btnName: "新增",
|
||||||
name: "add",
|
name: "add",
|
||||||
color: 'success',
|
color: "primary",
|
||||||
plain: true
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
@ -157,7 +156,7 @@ export default {
|
|||||||
handleClick(val) {
|
handleClick(val) {
|
||||||
console.log(val);
|
console.log(val);
|
||||||
if (val.type === "delete") {
|
if (val.type === "delete") {
|
||||||
this.$confirm(`确定对[处理团队=${val.data.teamName}]进行删除操作?`, "提示", {
|
this.$confirm(`确定对[名称=${val.data.failureTypeName}]进行删除操作?`, "提示", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: "取消",
|
||||||
type: "warning",
|
type: "warning",
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-12 14:39:06
|
* @LastEditTime: 2023-04-04 16:17:23
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()"
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="130px">
|
||||||
label-width="130px">
|
|
||||||
<el-form-item prop="inspectionPositionCode" :label="$t('basic.code')">
|
<el-form-item prop="inspectionPositionCode" :label="$t('basic.code')">
|
||||||
<el-input v-model="dataForm.inspectionPositionCode" :placeholder="$t('basic.code')">
|
<el-input v-model="dataForm.inspectionPositionCode" :placeholder="$t('basic.code')">
|
||||||
</el-input>
|
</el-input>
|
||||||
@ -59,27 +58,27 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
inspectionPositionNumber: [
|
// dictLabel: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
inspectionPositionCode: [
|
// dictValue: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
inspectionPositionName: [
|
// sort: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-11 15:53:48
|
* @LastEditTime: 2023-04-04 13:57:52
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()" label-width="130px">
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="130px">
|
||||||
<el-form-item prop="customSamplingCode" :label="$t('basic.code')">
|
<el-form-item prop="customSamplingCode" :label="$t('basic.code')">
|
||||||
<el-input v-model="dataForm.customSamplingCode" :placeholder="$t('basic.code')">
|
<el-input v-model="dataForm.customSamplingCode" :placeholder="$t('basic.code')">
|
||||||
</el-input>
|
</el-input>
|
||||||
@ -65,7 +65,7 @@
|
|||||||
:placeholder="$i18nForm([$t('quality.minor'), $t('quality.unacceptable')])">
|
:placeholder="$i18nForm([$t('quality.minor'), $t('quality.unacceptable')])">
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item prop="totalAcceptable" :label="$i18nForm([$t('quality.total'), $t('quality.acceptable')])">
|
<el-form-item prop="totalAcceptable" :label="$i18nForm([$t('quality.total'), $t('quality.acceptable')])">
|
||||||
<el-input v-model="dataForm.totalAcceptable"
|
<el-input v-model="dataForm.totalAcceptable"
|
||||||
:placeholder="$i18nForm([$t('quality.total'), $t('quality.acceptable')])">
|
:placeholder="$i18nForm([$t('quality.total'), $t('quality.acceptable')])">
|
||||||
</el-input>
|
</el-input>
|
||||||
@ -74,7 +74,7 @@
|
|||||||
<el-input v-model="dataForm.totalUnacceptable"
|
<el-input v-model="dataForm.totalUnacceptable"
|
||||||
:placeholder="$i18nForm([$t('quality.total'), $t('quality.unacceptable')])">
|
:placeholder="$i18nForm([$t('quality.total'), $t('quality.unacceptable')])">
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item> -->
|
</el-form-item>
|
||||||
<!-- <el-form-item prop="criticalSampleSize" :label="[$t('quality.fatalFlaw') + $t('quality.sampleSize')]">
|
<!-- <el-form-item prop="criticalSampleSize" :label="[$t('quality.fatalFlaw') + $t('quality.sampleSize')]">
|
||||||
<el-input v-model="dataForm.criticalSampleSize"
|
<el-input v-model="dataForm.criticalSampleSize"
|
||||||
:placeholder="[$t('quality.fatalFlaw') + $t('quality.sampleSize')]">
|
:placeholder="[$t('quality.fatalFlaw') + $t('quality.sampleSize')]">
|
||||||
@ -131,20 +131,27 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
customSamplingCode: [
|
// dictLabel: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
customSamplingName: [
|
// dictValue: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
]
|
// ],
|
||||||
|
// sort: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: this.$t("validate.required"),
|
||||||
|
// trigger: "blur",
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-10 14:27:55
|
* @LastEditTime: 2023-04-04 16:18:38
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()" label-width="130px">
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="130px">
|
||||||
<el-form-item prop="disposalMethodName" :label="$t('quality.disposalMethodName')">
|
<el-form-item prop="disposalMethodName" :label="$t('quality.disposalMethodName')">
|
||||||
<el-input v-model="dataForm.disposalMethodName" :placeholder="$t('quality.disposalMethodName')">
|
<el-input v-model="dataForm.disposalMethodName" :placeholder="$t('quality.disposalMethodName')">
|
||||||
</el-input>
|
</el-input>
|
||||||
@ -58,20 +58,27 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
disposalMethodCode: [
|
// dictLabel: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
disposalMethodName: [
|
// dictValue: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
]
|
// ],
|
||||||
|
// sort: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: this.$t("validate.required"),
|
||||||
|
// trigger: "blur",
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -1,138 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zwq
|
|
||||||
* @Date: 2023-01-04 10:29:40
|
|
||||||
* @LastEditors: zhp
|
|
||||||
* @LastEditTime: 2023-07-06 16:27:59
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
|
||||||
<el-form-item prop="name" :label="$t('basic.name')">
|
|
||||||
<el-input v-model="dataForm.name" :placeholder="$t('basic.name')"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item prop="code" :label="$t('basic.code')">
|
|
||||||
<el-input v-model="dataForm.code" :placeholder="$t('basic.code')"></el-input>
|
|
||||||
</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: "/sys/params/",
|
|
||||||
// infoURL: "/sys/params",
|
|
||||||
// },
|
|
||||||
urlOptions: {
|
|
||||||
getSupplierList: "/supplier/qmsSupplier/page",
|
|
||||||
getProductList: "/basic/qmsProduct/page",
|
|
||||||
},
|
|
||||||
visible: false,
|
|
||||||
customerTypeList:{},
|
|
||||||
dataForm: {
|
|
||||||
code: null,
|
|
||||||
name:null,
|
|
||||||
}
|
|
||||||
};
|
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
// dataRule() {
|
|
||||||
// return {
|
|
||||||
// paramCode: [
|
|
||||||
// {
|
|
||||||
// required: true,
|
|
||||||
// message: this.$t("validate.required"),
|
|
||||||
// trigger: "blur",
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
// paramValue: [
|
|
||||||
// {
|
|
||||||
// required: true,
|
|
||||||
// message: this.$t("validate.required"),
|
|
||||||
// trigger: "blur",
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
// };
|
|
||||||
// },
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
// init(id) {
|
|
||||||
// this.dataForm.id = id || "";
|
|
||||||
// this.visible = true;
|
|
||||||
// this.$nextTick(() => {
|
|
||||||
// this.$refs["dataForm"].resetFields();
|
|
||||||
// if (this.dataForm.id) {
|
|
||||||
// this.getInfo();
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// },
|
|
||||||
// 获取信息
|
|
||||||
// getInfo() {
|
|
||||||
// this.$http
|
|
||||||
// .get(`/sys/params/${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.getCustomerPageListURL, {
|
|
||||||
// params: this.listQuery,
|
|
||||||
// })
|
|
||||||
// .then(({ data: res }) => {
|
|
||||||
// this.dataListLoading = false;
|
|
||||||
// if (res.code !== 0) {
|
|
||||||
// this.customerTypeList = res.data
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// },
|
|
||||||
handleConditionSearch() {
|
|
||||||
this.$emit("successSubmit", this.dataForm)
|
|
||||||
},
|
|
||||||
// dataFormSubmitHandle: debounce(
|
|
||||||
// function () {
|
|
||||||
// // console.log(1111);
|
|
||||||
// // this.visible = false;
|
|
||||||
// this.$emit("successSubmit", this.dataForm.key);
|
|
||||||
// // this.$refs["dataForm"].validate((valid) => {
|
|
||||||
// // if (!valid) {
|
|
||||||
// // return false;
|
|
||||||
// // }
|
|
||||||
// // this.$http[!this.dataForm.id ? "post" : "put"](
|
|
||||||
// // "/sys/params",
|
|
||||||
// // 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: () => {
|
|
||||||
|
|
||||||
// // },
|
|
||||||
// // });
|
|
||||||
// // })
|
|
||||||
// // .catch(() => {});
|
|
||||||
// // });
|
|
||||||
// },
|
|
||||||
// 1000,
|
|
||||||
// { leading: true, trailing: false }
|
|
||||||
// ),
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
@ -1,41 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zhp
|
|
||||||
* @Date: 2023-01-31 09:49:36
|
|
||||||
* @LastEditTime: 2023-07-10 14:18:29
|
|
||||||
* @LastEditors: zhp
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<span>
|
|
||||||
<span> {{ this.injectData.sampleRangeLow }} </span>~
|
|
||||||
<span> {{ this.injectData.sampleRangeHigh }} </span>
|
|
||||||
</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,39 +1,14 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-12 14:28:44
|
* @LastEditTime: 2023-04-04 15:44:45
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()"
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="130px">
|
||||||
label-width="130px">
|
<el-form-item prop="sampleRange" :label="$t('quality.sampleRange')">
|
||||||
<el-row :gutter="24">
|
<el-input v-model="dataForm.sampleRange" :placeholder="$t('quality.sampleRange')">
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item prop="sampleRangeLow" :label="$t('quality.sampleRangeLow')">
|
|
||||||
<el-input v-model="dataForm.sampleRangeLow" :placeholder="$t('quality.sampleRangeLow')">
|
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item prop="sampleRangeHigh" :label="$t('quality.sampleRangeHigh')">
|
|
||||||
<el-input v-model="dataForm.sampleRangeHigh" :placeholder="$t('quality.sampleRangeHigh')">
|
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
<el-form-item prop="inspectionLevel" :label="$t('quality.inspectionLevel')">
|
|
||||||
<el-select v-model="dataForm.inspectionLevel" :placeholder="$t('quality.inspectionLevel')">
|
|
||||||
<el-option v-for="item in options" :key="item.id" :label="item.name" :value="item.id">
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item prop="sampleSizeCode" :label="$t('quality.sampleSizeCode')">
|
|
||||||
<el-input v-model="dataForm.sampleSizeCode" :placeholder="$t('quality.sampleSizeCode')">
|
|
||||||
</el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item prop="sampleSize" :label="$t('quality.sampleSize')">
|
|
||||||
<el-input v-model="dataForm.sampleSize" :placeholder="$t('quality.sampleSize')">
|
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="fourPointZero" :label="$t('quality.fourPointZero')">
|
<el-form-item prop="fourPointZero" :label="$t('quality.fourPointZero')">
|
||||||
@ -117,43 +92,12 @@ export default {
|
|||||||
label: '可用'
|
label: '可用'
|
||||||
}],
|
}],
|
||||||
visible: false,
|
visible: false,
|
||||||
options: [
|
|
||||||
{
|
|
||||||
id: 'S-1',
|
|
||||||
name: 'S-1'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'S-2',
|
|
||||||
name: 'S-2'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'S-3',
|
|
||||||
name: 'S-3'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'S-4',
|
|
||||||
name: 'S-4'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'Ⅰ',
|
|
||||||
name: 'Ⅰ'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'Ⅱ',
|
|
||||||
name: 'Ⅱ'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'Ⅲ',
|
|
||||||
name: 'Ⅲ'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
dataForm: {
|
dataForm: {
|
||||||
id: undefined,
|
id: null,
|
||||||
fourPointZero: null,
|
fourPointZero: null,
|
||||||
onePointFive:null,
|
onePointFive:null,
|
||||||
onePointZero:null,
|
onePointZero:null,
|
||||||
sampleRangeHigh: null,
|
sampleRange: null,
|
||||||
sampleRangeLow:null,
|
|
||||||
sixPointFive: null,
|
sixPointFive: null,
|
||||||
ten: null,
|
ten: null,
|
||||||
twoPointFive: null,
|
twoPointFive: null,
|
||||||
@ -163,9 +107,6 @@ export default {
|
|||||||
zeroPointSixFive: null,
|
zeroPointSixFive: null,
|
||||||
zeroPointTwoFive: null,
|
zeroPointTwoFive: null,
|
||||||
zeroPointZeroFour: null,
|
zeroPointZeroFour: null,
|
||||||
inspectionLevel: null,
|
|
||||||
sampleSizeCode: null,
|
|
||||||
sampleSize: null,
|
|
||||||
zeroPointZeroOne: null,
|
zeroPointZeroOne: null,
|
||||||
zeroPointZeroOneFive: null,
|
zeroPointZeroOneFive: null,
|
||||||
zeroPointZeroSixFive: null,
|
zeroPointZeroSixFive: null,
|
||||||
@ -176,34 +117,27 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
inspectionLevel: [
|
// dictLabel: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
sampleSizeCode: [
|
// dictValue: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
sampleSize: [
|
// sort: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
sampleRangeLow: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: this.$t("validate.required"),
|
|
||||||
trigger: "blur",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -1,171 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zwq
|
|
||||||
* @Date: 2023-01-04 10:29:40
|
|
||||||
* @LastEditors: zhp
|
|
||||||
* @LastEditTime: 2023-07-10 15:19:50
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
|
||||||
<el-form-item prop="sampleSize" :label="$t('quality.sampleSize')">
|
|
||||||
<el-input v-model="dataForm.sampleSize" :placeholder="$t('quality.sampleSize')"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item prop="inspectionLevel" :label="$t('quality.inspectionLevel')">
|
|
||||||
<el-select v-model="dataForm.inspectionLevel" :placeholder="$t('quality.inspectionLevel')">
|
|
||||||
<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: "/sys/params/",
|
|
||||||
// infoURL: "/sys/params",
|
|
||||||
// },
|
|
||||||
urlOptions: {
|
|
||||||
getSupplierList: "/supplier/qmsSupplier/page",
|
|
||||||
getProductList: "/basic/qmsProduct/page",
|
|
||||||
},
|
|
||||||
options: [
|
|
||||||
{
|
|
||||||
label: 'S-1',
|
|
||||||
value:'S-1'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: 'S-2',
|
|
||||||
value: 'S-2'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: 'S-3',
|
|
||||||
value: 'S-3'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: 'S-4',
|
|
||||||
value: 'S-4'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: 'Ⅰ',
|
|
||||||
value: 'Ⅰ'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: 'Ⅱ',
|
|
||||||
value: 'Ⅱ'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: 'Ⅲ',
|
|
||||||
value: 'Ⅲ'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
visible: false,
|
|
||||||
customerTypeList:{},
|
|
||||||
dataForm: {
|
|
||||||
sampleSize: null,
|
|
||||||
inspectionLevel:null,
|
|
||||||
}
|
|
||||||
};
|
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
// dataRule() {
|
|
||||||
// return {
|
|
||||||
// paramCode: [
|
|
||||||
// {
|
|
||||||
// required: true,
|
|
||||||
// message: this.$t("validate.required"),
|
|
||||||
// trigger: "blur",
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
// paramValue: [
|
|
||||||
// {
|
|
||||||
// required: true,
|
|
||||||
// message: this.$t("validate.required"),
|
|
||||||
// trigger: "blur",
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
// };
|
|
||||||
// },
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
// init(id) {
|
|
||||||
// this.dataForm.id = id || "";
|
|
||||||
// this.visible = true;
|
|
||||||
// this.$nextTick(() => {
|
|
||||||
// this.$refs["dataForm"].resetFields();
|
|
||||||
// if (this.dataForm.id) {
|
|
||||||
// this.getInfo();
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// },
|
|
||||||
// 获取信息
|
|
||||||
// getInfo() {
|
|
||||||
// this.$http
|
|
||||||
// .get(`/sys/params/${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.getCustomerPageListURL, {
|
|
||||||
// params: this.listQuery,
|
|
||||||
// })
|
|
||||||
// .then(({ data: res }) => {
|
|
||||||
// this.dataListLoading = false;
|
|
||||||
// if (res.code !== 0) {
|
|
||||||
// this.customerTypeList = res.data
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// },
|
|
||||||
handleConditionSearch() {
|
|
||||||
this.$emit("successSubmit", this.dataForm)
|
|
||||||
},
|
|
||||||
// dataFormSubmitHandle: debounce(
|
|
||||||
// function () {
|
|
||||||
// // console.log(1111);
|
|
||||||
// // this.visible = false;
|
|
||||||
// this.$emit("successSubmit", this.dataForm.key);
|
|
||||||
// // this.$refs["dataForm"].validate((valid) => {
|
|
||||||
// // if (!valid) {
|
|
||||||
// // return false;
|
|
||||||
// // }
|
|
||||||
// // this.$http[!this.dataForm.id ? "post" : "put"](
|
|
||||||
// // "/sys/params",
|
|
||||||
// // 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: () => {
|
|
||||||
|
|
||||||
// // },
|
|
||||||
// // });
|
|
||||||
// // })
|
|
||||||
// // .catch(() => {});
|
|
||||||
// // });
|
|
||||||
// },
|
|
||||||
// 1000,
|
|
||||||
// { leading: true, trailing: false }
|
|
||||||
// ),
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
@ -1,20 +1,20 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-12 14:34:59
|
* @LastEditTime: 2023-05-24 16:36:43
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()" label-width="130px">
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="130px">
|
||||||
<el-form-item prop="inspectionStage" :label="$t('quality.inspectionStage')">
|
<el-form-item prop="inspectionStage" :label="$t('quality.inspectionStage')">
|
||||||
<el-select v-model="dataForm.inspectionStage" :placeholder="$t('quality.inspectionStage')">
|
<el-select v-model="dataForm.inspectionStage" :placeholder="$t('quality.inspectionStage')">
|
||||||
<el-option v-for="item in inspectionStageList" :key="item.id" :label="item.name" :value="item.id">
|
<el-option v-for="item in inspectionStageList" :key="item.id" :label="item.name" :value="item.id">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="inspectionType" :label="$t('quality.inspectionType')">
|
<el-form-item prop="inspectionType" :label="$t('quality.inspectionStage')">
|
||||||
<el-select v-model="dataForm.inspectionType" :placeholder="$t('quality.inspectionType')">
|
<el-select v-model="dataForm.inspectionType" :placeholder="$t('quality.inspectionStage')">
|
||||||
<el-option v-for="item in inspectionTypeList" :key="item.id" :label="item.name" :value="item.id">
|
<el-option v-for="item in inspectionTypeList" :key="item.id" :label="item.name" :value="item.id">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
@ -46,15 +46,6 @@
|
|||||||
<el-form-item prop="dataSources" :label="$t('quality.dataSources')">
|
<el-form-item prop="dataSources" :label="$t('quality.dataSources')">
|
||||||
<el-input v-model="dataForm.dataSources" :placeholder="$t('quality.dataSources')"></el-input>
|
<el-input v-model="dataForm.dataSources" :placeholder="$t('quality.dataSources')"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="userId" :label="$t('quality.userName')">
|
|
||||||
<el-select v-model="dataForm.userId" :placeholder="$t('quality.userName')">
|
|
||||||
<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 prop="remark" :label="$t('quality.remark')">
|
|
||||||
<el-input v-model="dataForm.remark" :placeholder="$t('quality.remark')"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -70,7 +61,6 @@ export default {
|
|||||||
getSupplierList: "/supplier/qmsSupplier/page",
|
getSupplierList: "/supplier/qmsSupplier/page",
|
||||||
getProductList: "/basic/qmsProduct/page",
|
getProductList: "/basic/qmsProduct/page",
|
||||||
infoURL: "/quality/qmsTransferRecords/{id}",
|
infoURL: "/quality/qmsTransferRecords/{id}",
|
||||||
getUserListURL: '/sys/user/page',
|
|
||||||
getTransferSchemeListURL: '/quality/qmsTransferScheme/page'
|
getTransferSchemeListURL: '/quality/qmsTransferScheme/page'
|
||||||
},
|
},
|
||||||
supplierList: [],
|
supplierList: [],
|
||||||
@ -165,11 +155,6 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
visible: false,
|
visible: false,
|
||||||
listQuery: {
|
|
||||||
limit: 999,
|
|
||||||
page:1,
|
|
||||||
},
|
|
||||||
userList:[],
|
|
||||||
dataForm: {
|
dataForm: {
|
||||||
id: null,
|
id: null,
|
||||||
inspectionStage:null,
|
inspectionStage:null,
|
||||||
@ -181,62 +166,36 @@ export default {
|
|||||||
transferInId: null,
|
transferInId: null,
|
||||||
transferInName: null,
|
transferInName: null,
|
||||||
transferOutId: null,
|
transferOutId: null,
|
||||||
remark: null,
|
|
||||||
userId:null
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
inspectionStage: [
|
// dictLabel: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
inspectionType: [
|
// dictValue: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
supplierId: [
|
// sort: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
productId: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: this.$t("validate.required"),
|
|
||||||
trigger: "change",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
transferInId: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: this.$t("validate.required"),
|
|
||||||
trigger: "change",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
transferOutId: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: this.$t("validate.required"),
|
|
||||||
trigger: "change",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted () {
|
|
||||||
this.getData();
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
init(id, ) {
|
init(id, ) {
|
||||||
this.dataForm.id = id || ""
|
this.dataForm.id = id || ""
|
||||||
@ -253,9 +212,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
getData() {
|
getData() {
|
||||||
this.$http.get(this.urlOptions.getSupplierList, {
|
this.$http.post(this.urlOptions.getSupplierList)
|
||||||
params:this.listQuery
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
@ -264,22 +221,7 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
})
|
})
|
||||||
this.$http
|
this.$http.post(this.urlOptions.getProductList)
|
||||||
.get(this.urlOptions.getUserListURL, {
|
|
||||||
params: {
|
|
||||||
limit: 999,
|
|
||||||
page: 1,
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
|
||||||
// this.dataListLoading = false;
|
|
||||||
if (res.code === 0) {
|
|
||||||
this.userList = res.data.list
|
|
||||||
}
|
|
||||||
})
|
|
||||||
this.$http.get(this.urlOptions.getProductList, {
|
|
||||||
params: this.listQuery
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
@ -288,9 +230,7 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
})
|
})
|
||||||
this.$http.get(this.urlOptions.getTransferSchemeListURL, {
|
this.$http.post(this.urlOptions.getTransferSchemeListURL)
|
||||||
params: this.listQuery
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2023-01-04 10:29:40
|
* @Date: 2023-01-04 10:29:40
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @LastEditTime: 2023-07-06 16:26:20
|
* @LastEditTime: 2023-05-24 16:39:37
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -134,12 +134,6 @@ export default {
|
|||||||
getSupplierList: "/supplier/qmsSupplier/page",
|
getSupplierList: "/supplier/qmsSupplier/page",
|
||||||
getProductList: "/basic/qmsProduct/page",
|
getProductList: "/basic/qmsProduct/page",
|
||||||
},
|
},
|
||||||
productList: [],
|
|
||||||
supplierList:[],
|
|
||||||
listQuery: {
|
|
||||||
limit: 999,
|
|
||||||
page:1
|
|
||||||
},
|
|
||||||
visible: false,
|
visible: false,
|
||||||
customerTypeList:{},
|
customerTypeList:{},
|
||||||
dataForm: {
|
dataForm: {
|
||||||
@ -152,7 +146,7 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
this.getData()
|
this.getData();
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
// dataRule() {
|
// dataRule() {
|
||||||
@ -176,9 +170,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getData() {
|
getData() {
|
||||||
this.$http.get(this.urlOptions.getSupplierList, {
|
this.$http.post(this.urlOptions.getSupplierList)
|
||||||
params:this.listQuery
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
@ -187,9 +179,7 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
})
|
})
|
||||||
this.$http.get(this.urlOptions.getProductList, {
|
this.$http.post(this.urlOptions.getProductList)
|
||||||
params: this.listQuery
|
|
||||||
})
|
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
console.log(res);
|
console.log(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-06 16:12:01
|
* @LastEditTime: 2023-05-26 11:21:02
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -22,24 +22,6 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-form-item prop="criticalSampleSize">
|
|
||||||
(3)正常检查转入加严检查:最近
|
|
||||||
<el-input v-model="dataForm.normalToTightenedOne" style="width: 10%;">
|
|
||||||
</el-input>
|
|
||||||
批中的
|
|
||||||
<el-input v-model="dataForm.normalToTightenedTwo" style="width: 10%;">
|
|
||||||
</el-input>
|
|
||||||
批检验合格
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item prop="criticalSampleSize">
|
|
||||||
(4)加严检查恢复正常检查:最近
|
|
||||||
<el-input v-model="dataForm.tightenedToNormalOne" style="width: 10%;">
|
|
||||||
</el-input>
|
|
||||||
批中的
|
|
||||||
<el-input v-model="dataForm.tightenedToNormalTwo" style="width: 10%;">
|
|
||||||
</el-input>
|
|
||||||
批检验合格
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item prop="criticalSampleSize">
|
<el-form-item prop="criticalSampleSize">
|
||||||
(1)正常检查转入放宽检查:最近
|
(1)正常检查转入放宽检查:最近
|
||||||
<el-input v-model="dataForm.normalToRelaxedOne" style="width: 10%;">
|
<el-input v-model="dataForm.normalToRelaxedOne" style="width: 10%;">
|
||||||
@ -58,6 +40,24 @@
|
|||||||
</el-input>
|
</el-input>
|
||||||
批检验合格
|
批检验合格
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item prop="criticalSampleSize">
|
||||||
|
(3)正常检查转入加严检查:最近
|
||||||
|
<el-input v-model="dataForm.normalToTightenedOne" style="width: 10%;">
|
||||||
|
</el-input>
|
||||||
|
批中的
|
||||||
|
<el-input v-model="dataForm.normalToTightenedTwo" style="width: 10%;">
|
||||||
|
</el-input>
|
||||||
|
批检验合格
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item prop="criticalSampleSize">
|
||||||
|
(4)加严检查恢复正常检查:最近
|
||||||
|
<el-input v-model="dataForm.tightenedToNormalOne" style="width: 10%;">
|
||||||
|
</el-input>
|
||||||
|
批中的
|
||||||
|
<el-input v-model="dataForm.tightenedToNormalTwo" style="width: 10%;">
|
||||||
|
</el-input>
|
||||||
|
批检验合格
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -2,16 +2,16 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2023-01-04 10:29:40
|
* @Date: 2023-01-04 10:29:40
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @LastEditTime: 2023-07-10 11:01:12
|
* @LastEditTime: 2023-05-24 16:01:06
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
||||||
<el-form-item prop="name" :label="$t('basic.name')">
|
<el-form-item prop="transferSchemeCode" :label="$t('basic.code')">
|
||||||
<el-input v-model="dataForm.name" :placeholder="$t('basic.name')"></el-input>
|
<el-input v-model="dataForm.transferSchemeCode" :placeholder="$t('basic.code')"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="code" :label="$t('basic.code')">
|
<el-form-item prop="transferSchemeName" :label="$t('basic.code')">
|
||||||
<el-input v-model="dataForm.code" :placeholder="$t('basic.code')"></el-input>
|
<el-input v-model="dataForm.transferSchemeName" :placeholder="$t('basic.code')"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
@ -33,8 +33,8 @@ export default {
|
|||||||
visible: false,
|
visible: false,
|
||||||
customerTypeList:{},
|
customerTypeList:{},
|
||||||
dataForm: {
|
dataForm: {
|
||||||
name: null,
|
transferSchemeName: null,
|
||||||
code:null
|
transferSchemeCode: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-12 14:30:40
|
* @LastEditTime: 2023-06-02 13:54:08
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -9,9 +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="1" class="item">
|
<el-badge :value="1" class="item">
|
||||||
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
||||||
</el-badge> -->
|
</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"
|
||||||
@ -60,11 +60,6 @@ const tableProps = [
|
|||||||
label: i18n.t("basic.code"),
|
label: i18n.t("basic.code"),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
prop: 'customSamplingName',
|
|
||||||
label: i18n.t("quality.name"),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
prop: 'planCategory',
|
prop: 'planCategory',
|
||||||
label: i18n.t("quality.planCategory"),
|
label: i18n.t("quality.planCategory"),
|
||||||
@ -136,7 +131,6 @@ const tableProps = [
|
|||||||
{
|
{
|
||||||
prop: 'total',
|
prop: 'total',
|
||||||
label: i18n.t("quality.total"),
|
label: i18n.t("quality.total"),
|
||||||
align: 'center',
|
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
prop: 'totalAcceptable',
|
prop: 'totalAcceptable',
|
||||||
@ -154,7 +148,7 @@ const tableProps = [
|
|||||||
const tableBtn = [
|
const tableBtn = [
|
||||||
{
|
{
|
||||||
type: "edit",
|
type: "edit",
|
||||||
btnName: "编辑"
|
btnName: "编辑",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "delete",
|
type: "delete",
|
||||||
@ -178,19 +172,20 @@ export default {
|
|||||||
searchOrEditTitle: '',
|
searchOrEditTitle: '',
|
||||||
searchOrUpdateVisible: false,
|
searchOrUpdateVisible: false,
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
// {
|
||||||
type: 'input',
|
// type: "",
|
||||||
label: i18n.t('basic.code'),
|
// label: i18n.t("params.paramCode"),
|
||||||
placeholder: i18n.t('basic.code'),
|
// placeholder: i18n.t("params.paramCode"),
|
||||||
param: 'customSamplingCode',
|
// param: "paramCode",
|
||||||
clearable: true
|
// },
|
||||||
},
|
// {
|
||||||
|
// type: "separate",
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "新增",
|
btnName: "新增",
|
||||||
name: "add",
|
name: "add",
|
||||||
color: "success",
|
color: "primary",
|
||||||
plain: true
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
@ -225,7 +220,7 @@ export default {
|
|||||||
// console.log(key);
|
// console.log(key);
|
||||||
// console.log(key);
|
// console.log(key);
|
||||||
// this.listQuery.key = key;
|
// this.listQuery.key = key;
|
||||||
this.listQuery.key = dataForm.customSamplingCode
|
this.listQuery.customSamplingCode = dataForm.customSamplingCode
|
||||||
// this.listQuery.name = dataForm.name
|
// this.listQuery.name = dataForm.name
|
||||||
// this.listQuery.failureTypeStatus = dataForm.failureTypeStatus
|
// this.listQuery.failureTypeStatus = dataForm.failureTypeStatus
|
||||||
this.listQuery.page = 1
|
this.listQuery.page = 1
|
||||||
@ -272,8 +267,8 @@ 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.key = val.customSamplingCode ? val.val.customSamplingCode :null
|
this.listQuery.failureTypeStatus = null
|
||||||
this.getDataList()
|
this.getDataList();
|
||||||
break;
|
break;
|
||||||
case "add":
|
case "add":
|
||||||
this.addOrEditTitle = this.$t('add')
|
this.addOrEditTitle = this.$t('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-11 15:38:25
|
* @LastEditTime: 2023-06-02 13:53:56
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -9,9 +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="1" class="item">
|
<el-badge :value="1" class="item">
|
||||||
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
||||||
</el-badge> -->
|
</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"
|
||||||
@ -26,9 +26,9 @@
|
|||||||
</disposalMethod-add>
|
</disposalMethod-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 :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
||||||
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
||||||
<disposalMethod-search ref="searchOrUpdate" @successSubmit="conditionSearchSubmit"></disposalMethod-search>
|
<disposalMethod-search ref="searchOrUpdate" @refreshDataList="conditionSearchSubmit"></disposalMethod-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">
|
||||||
@ -41,7 +41,7 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</base-dialog> -->
|
</base-dialog>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</template>
|
</template>
|
||||||
@ -86,15 +86,11 @@ const tableBtn = [
|
|||||||
type: "delete",
|
type: "delete",
|
||||||
btnName: "删除",
|
btnName: "删除",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
type: "change",
|
|
||||||
btnName: "改变状态",
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
export default {
|
export default {
|
||||||
mixins: [basicPage],
|
mixins: [basicPage, basicSearch],
|
||||||
components: {
|
components: {
|
||||||
// disposalMethodSearch,
|
disposalMethodSearch,
|
||||||
disposalMethodAdd
|
disposalMethodAdd
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@ -102,45 +98,32 @@ export default {
|
|||||||
urlOptions: {
|
urlOptions: {
|
||||||
getDataListURL: "/quality/qmsDisposalMethod/page",
|
getDataListURL: "/quality/qmsDisposalMethod/page",
|
||||||
deleteURL: "/quality/qmsDisposalMethod",
|
deleteURL: "/quality/qmsDisposalMethod",
|
||||||
submitURL: '/quality/qmsDisposalMethod'
|
|
||||||
},
|
},
|
||||||
tableProps,
|
tableProps,
|
||||||
tableBtn,
|
tableBtn,
|
||||||
searchOrEditTitle: '',
|
searchOrEditTitle: '',
|
||||||
searchOrUpdateVisible: false,
|
searchOrUpdateVisible: false,
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
// {
|
||||||
type: 'select',
|
// type: "",
|
||||||
label: i18n.t('basic.status'),
|
// label: i18n.t("params.paramCode"),
|
||||||
placeholder: i18n.t('basic.status'),
|
// placeholder: i18n.t("params.paramCode"),
|
||||||
param: 'status',
|
// param: "paramCode",
|
||||||
selectOptions: [
|
// },
|
||||||
{
|
// {
|
||||||
id: '0',
|
// type: "separate",
|
||||||
name: '不可用'
|
// },
|
||||||
},
|
|
||||||
{
|
|
||||||
id: '1',
|
|
||||||
name: '可用'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
clearable: true,
|
|
||||||
filterable: true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "新增",
|
btnName: "新增",
|
||||||
name: "add",
|
name: "add",
|
||||||
color: 'success',
|
color: "primary",
|
||||||
plain: true
|
|
||||||
// plain: true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "搜索",
|
btnName: "搜索",
|
||||||
name: "search",
|
name: "search",
|
||||||
color: "primary",
|
color: "primary",
|
||||||
// plain: true,
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
@ -162,11 +145,11 @@ export default {
|
|||||||
this.searchOrEditTitle = "搜索";
|
this.searchOrEditTitle = "搜索";
|
||||||
this.searchOrUpdateVisible = true;
|
this.searchOrUpdateVisible = true;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.searchOrUpdate.init()
|
this.$refs.searchOrUpdate.init();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
conditionSearchSubmit(dataForm) {
|
conditionSearchSubmit(dataForm) {
|
||||||
this.listQuery.key = dataForm.disposalMethodStatus
|
this.listQuery.disposalMethodStatus = dataForm.disposalMethodStatus
|
||||||
this.listQuery.page = 1;
|
this.listQuery.page = 1;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
this.searchOrUpdateVisible = false;
|
this.searchOrUpdateVisible = false;
|
||||||
@ -189,7 +172,7 @@ export default {
|
|||||||
type: "success",
|
type: "success",
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
this.getDataList()
|
this.getDataList();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@ -203,27 +186,7 @@ export default {
|
|||||||
this.addOrEditTitle = this.$t('edit')
|
this.addOrEditTitle = this.$t('edit')
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.addOrUpdate.init(val.data.id);
|
this.$refs.addOrUpdate.init(val.data.id);
|
||||||
})
|
|
||||||
} else if (val.type === 'change') {
|
|
||||||
let obj = {
|
|
||||||
disposalMethodStatus: val.data.disposalMethodStatus === 0 ? 1 : 0,
|
|
||||||
id: val.data.id
|
|
||||||
}
|
|
||||||
this.$http.put(this.urlOptions.submitURL, obj)
|
|
||||||
.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.getDataList()
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
})
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
buttonClick(val) {
|
buttonClick(val) {
|
||||||
@ -231,7 +194,7 @@ 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.status =val.status ? val.status : null
|
this.listQuery.failureTypeStatus = 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-12 14:43:09
|
* @LastEditTime: 2023-06-02 13:53:49
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -9,7 +9,7 @@
|
|||||||
<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="2" class="item">
|
<!-- <el-badge :value="1" class="item">
|
||||||
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
||||||
</el-badge> -->
|
</el-badge> -->
|
||||||
</SearchBar>
|
</SearchBar>
|
||||||
@ -28,8 +28,7 @@
|
|||||||
</base-dialog>
|
</base-dialog>
|
||||||
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
||||||
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
||||||
<inspectionPosition-search ref="searchOrUpdate" @successSubmit="conditionSearchSubmit">
|
<!-- <failureType-search ref="searchOrUpdate" @refreshDataList="conditionSearchSubmit"></failureType-search> -->
|
||||||
</inspectionPosition-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">
|
||||||
@ -51,7 +50,7 @@
|
|||||||
import basicPage from "@/mixins/basic-page"
|
import basicPage from "@/mixins/basic-page"
|
||||||
import InspectionPositionAdd from "./components/InspectionPosition-add"
|
import InspectionPositionAdd from "./components/InspectionPosition-add"
|
||||||
// import AddOrUpdate from './params-add-or-update'
|
// import AddOrUpdate from './params-add-or-update'
|
||||||
import inspectionPositionSearch from "./components/inspectionPositionSearch"
|
// import failureTypeSearch from "./components/failureTypeSearch"
|
||||||
// import available from "./components/available.vue"
|
// import available from "./components/available.vue"
|
||||||
import basicSearch from "@/mixins/basic-search"
|
import basicSearch from "@/mixins/basic-search"
|
||||||
import i18n from "@/i18n"
|
import i18n from "@/i18n"
|
||||||
@ -86,7 +85,6 @@ export default {
|
|||||||
mixins: [basicPage, basicSearch],
|
mixins: [basicPage, basicSearch],
|
||||||
components: {
|
components: {
|
||||||
// failureTypeSearch,
|
// failureTypeSearch,
|
||||||
inspectionPositionSearch,
|
|
||||||
InspectionPositionAdd
|
InspectionPositionAdd
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@ -100,26 +98,20 @@ export default {
|
|||||||
searchOrEditTitle: '',
|
searchOrEditTitle: '',
|
||||||
searchOrUpdateVisible: false,
|
searchOrUpdateVisible: false,
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
// {
|
||||||
type: 'input',
|
// type: "",
|
||||||
label: i18n.t('quality.code'),
|
// label: i18n.t("params.paramCode"),
|
||||||
placeholder: i18n.t('quality.code'),
|
// placeholder: i18n.t("params.paramCode"),
|
||||||
param: 'code',
|
// param: "paramCode",
|
||||||
clearable: true
|
// },
|
||||||
},
|
// {
|
||||||
{
|
// type: "separate",
|
||||||
type: 'input',
|
// },
|
||||||
label: i18n.t('quality.name'),
|
|
||||||
placeholder: i18n.t('quality.name'),
|
|
||||||
param: 'name',
|
|
||||||
clearable: true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "新增",
|
btnName: "新增",
|
||||||
name: "add",
|
name: "add",
|
||||||
color: "success",
|
color: "primary",
|
||||||
plain: true
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
@ -152,7 +144,6 @@ export default {
|
|||||||
},
|
},
|
||||||
conditionSearchSubmit(dataForm) {
|
conditionSearchSubmit(dataForm) {
|
||||||
this.listQuery.code = dataForm.code
|
this.listQuery.code = dataForm.code
|
||||||
this.listQuery.name = dataForm.name
|
|
||||||
this.listQuery.page = 1;
|
this.listQuery.page = 1;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
this.searchOrUpdateVisible = false;
|
this.searchOrUpdateVisible = false;
|
||||||
@ -197,8 +188,7 @@ 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 ? val.code : null
|
this.listQuery.failureTypeStatus = null
|
||||||
this.listQuery.name = val.name ? val.name : 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-12 14:22:56
|
* @LastEditTime: 2023-06-02 13:53:43
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -9,7 +9,7 @@
|
|||||||
<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="2" class="item">
|
<!-- <el-badge :value="1" class="item">
|
||||||
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
||||||
</el-badge> -->
|
</el-badge> -->
|
||||||
</SearchBar>
|
</SearchBar>
|
||||||
@ -28,7 +28,7 @@
|
|||||||
</base-dialog>
|
</base-dialog>
|
||||||
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
||||||
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
||||||
<samplingPlan-search ref="searchOrUpdate" @successSubmit="conditionSearchSubmit"></samplingPlan-search>
|
<!-- <failureType-search ref="searchOrUpdate" @refreshDataList="conditionSearchSubmit"></failureType-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">
|
||||||
@ -50,40 +50,49 @@
|
|||||||
import basicPage from "@/mixins/basic-page"
|
import basicPage from "@/mixins/basic-page"
|
||||||
import samplingPlanAdd from "./components/samplingPlan-add"
|
import samplingPlanAdd from "./components/samplingPlan-add"
|
||||||
// import AddOrUpdate from './params-add-or-update'
|
// import AddOrUpdate from './params-add-or-update'
|
||||||
import samplingPlanSearch from "./components/samplingPlanSearch.vue"
|
// import failureTypeSearch from "./components/failureTypeSearch"
|
||||||
import lowHigh from "./components/lowHigh.vue"
|
// import available from "./components/available.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: 'sampleRange',
|
prop: 'sampleRange',
|
||||||
label: i18n.t("quality.sampleRange"),
|
label: i18n.t("quality.sampleRange"),
|
||||||
align: 'center',
|
|
||||||
subcomponent: lowHigh,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'zeroPointZeroOne',
|
|
||||||
label: i18n.t("quality.zeroPointZeroOne"),
|
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'zeroPointZeroOneFive',
|
prop: 'fourPointZero',
|
||||||
label: i18n.t("quality.zeroPointZeroOneFive"),
|
label: i18n.t("quality.fourPointZero"),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'zeroPointZeroTwoFive',
|
prop: 'onePointFive',
|
||||||
label: i18n.t("quality.zeroPointZeroTwoFive"),
|
label: i18n.t("quality.onePointFive"),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'zeroPointZeroFour',
|
prop: 'onePointZero',
|
||||||
label: i18n.t("quality.zeroPointZeroFour"),
|
label: i18n.t("quality.onePointZero"),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'zeroPointZeroSixFive',
|
prop: 'sixPointFive',
|
||||||
label: i18n.t("quality.zeroPointZeroSixFive"),
|
label: i18n.t("quality.sixPointFive"),
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: 'ten',
|
||||||
|
label: i18n.t("quality.ten"),
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: 'twoPointFive',
|
||||||
|
label: i18n.t("quality.twoPointFive"),
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: 'zeroPointFour',
|
||||||
|
label: i18n.t("quality.zeroPointFour"),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -96,52 +105,41 @@ const tableProps = [
|
|||||||
label: i18n.t("quality.zeroPointOneFive"),
|
label: i18n.t("quality.zeroPointOneFive"),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
prop: 'zeroPointTwoFive',
|
|
||||||
label: i18n.t("quality.zeroPointTwoFive"),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'zeroPointFour',
|
|
||||||
label: i18n.t("quality.zeroPointFour"),
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
prop: 'zeroPointSixFive',
|
prop: 'zeroPointSixFive',
|
||||||
label: i18n.t("quality.zeroPointSixFive"),
|
label: i18n.t("quality.zeroPointSixFive"),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'onePointZero',
|
prop: 'zeroPointTwoFive',
|
||||||
label: i18n.t("quality.onePointZero"),
|
label: i18n.t("quality.zeroPointTwoFive"),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'onePointFive',
|
prop: 'zeroPointZeroFour',
|
||||||
label: i18n.t("quality.onePointFive"),
|
label: i18n.t("quality.zeroPointZeroFour"),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'twoPointFive',
|
prop: 'zeroPointZeroOne',
|
||||||
label: i18n.t("quality.twoPointFive"),
|
label: i18n.t("quality.zeroPointZeroOne"),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'fourPointZero',
|
prop: 'zeroPointZeroOneFive',
|
||||||
label: i18n.t("quality.fourPointZero"),
|
label: i18n.t("quality.zeroPointZeroOneFive"),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'sixPointFive',
|
prop: 'zeroPointZeroSixFive',
|
||||||
label: i18n.t("quality.sixPointFive"),
|
label: i18n.t("quality.zeroPointZeroSixFive"),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'ten',
|
prop: 'zeroPointZeroTwoFive',
|
||||||
label: i18n.t("quality.ten"),
|
label: i18n.t("quality.zeroPointZeroTwoFive"),
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
|
|
||||||
]
|
]
|
||||||
const tableBtn = [
|
const tableBtn = [
|
||||||
{
|
{
|
||||||
@ -156,7 +154,7 @@ const tableBtn = [
|
|||||||
export default {
|
export default {
|
||||||
mixins: [basicPage, basicSearch],
|
mixins: [basicPage, basicSearch],
|
||||||
components: {
|
components: {
|
||||||
samplingPlanSearch,
|
// failureTypeSearch,
|
||||||
samplingPlanAdd
|
samplingPlanAdd
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@ -169,67 +167,27 @@ export default {
|
|||||||
tableBtn,
|
tableBtn,
|
||||||
searchOrEditTitle: '',
|
searchOrEditTitle: '',
|
||||||
searchOrUpdateVisible: false,
|
searchOrUpdateVisible: false,
|
||||||
searchOrUpdateVisible: false,
|
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
// {
|
||||||
type: 'input',
|
// type: "",
|
||||||
label: i18n.t('quality.sampleSize'),
|
// label: i18n.t("params.paramCode"),
|
||||||
placeholder: i18n.t('quality.sampleSize'),
|
// placeholder: i18n.t("params.paramCode"),
|
||||||
param: 'sampleSize',
|
// param: "paramCode",
|
||||||
clearable: true
|
// },
|
||||||
},
|
// {
|
||||||
{
|
// type: "separate",
|
||||||
type: 'select',
|
// },
|
||||||
label: i18n.t('quality.inspectionLevel'),
|
|
||||||
placeholder: i18n.t('quality.inspectionLevel'),
|
|
||||||
param: 'inspectionLevel',
|
|
||||||
selectOptions: [
|
|
||||||
{
|
|
||||||
id: 'S-1',
|
|
||||||
name: 'S-1'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'S-2',
|
|
||||||
name: 'S-2'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'S-3',
|
|
||||||
name: 'S-3'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'S-4',
|
|
||||||
name: 'S-4'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'Ⅰ',
|
|
||||||
name: 'Ⅰ'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'Ⅱ',
|
|
||||||
name: 'Ⅱ'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'Ⅲ',
|
|
||||||
name: 'Ⅲ'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
clearable: true,
|
|
||||||
filterable: true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "新增",
|
btnName: "新增",
|
||||||
name: "add",
|
name: "add",
|
||||||
color: 'success',
|
color: "primary",
|
||||||
plain: true
|
|
||||||
// plain: true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "搜索",
|
btnName: "搜索",
|
||||||
name: "search",
|
name: "search",
|
||||||
color: "primary",
|
color: "primary",
|
||||||
// plain: true,
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
@ -237,10 +195,6 @@ export default {
|
|||||||
// components: {
|
// components: {
|
||||||
// AddOrUpdate,
|
// AddOrUpdate,
|
||||||
// },
|
// },
|
||||||
deactivated() {
|
|
||||||
this.listQuery.inspectionLevel = null
|
|
||||||
this.listQuery.sampleSize = null
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
//search-bar点击
|
//search-bar点击
|
||||||
handleProductCancel() {
|
handleProductCancel() {
|
||||||
@ -259,8 +213,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
conditionSearchSubmit(dataForm) {
|
conditionSearchSubmit(dataForm) {
|
||||||
this.listQuery.inspectionLevel = dataForm.inspectionLevel
|
this.listQuery.code = dataForm.code
|
||||||
this.listQuery.sampleSize = dataForm.sampleSize
|
|
||||||
this.listQuery.page = 1;
|
this.listQuery.page = 1;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
this.searchOrUpdateVisible = false;
|
this.searchOrUpdateVisible = false;
|
||||||
@ -305,8 +258,7 @@ 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.inspectionLevel = val.inspectionLevel ? val.inspectionLevel :null
|
this.listQuery.failureTypeStatus = null
|
||||||
this.listQuery.sampleSize = val.sampleSize ? val.sampleSize :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-12 14:30:03
|
* @LastEditTime: 2023-06-02 13:53:38
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -9,7 +9,7 @@
|
|||||||
<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="5" class="item">
|
<el-badge :value="1" class="item">
|
||||||
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
||||||
</el-badge>
|
</el-badge>
|
||||||
</SearchBar>
|
</SearchBar>
|
||||||
@ -28,7 +28,7 @@
|
|||||||
</base-dialog>
|
</base-dialog>
|
||||||
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
||||||
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
||||||
<transferRecords-search ref="searchOrUpdate" @successSubmit="conditionSearchSubmit">
|
<transferRecords-search ref="searchOrUpdate" @refreshDataList="conditionSearchSubmit">
|
||||||
</transferRecords-search>
|
</transferRecords-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">
|
||||||
@ -133,8 +133,7 @@ export default {
|
|||||||
type: "button",
|
type: "button",
|
||||||
btnName: "新增",
|
btnName: "新增",
|
||||||
name: "add",
|
name: "add",
|
||||||
color: "success",
|
color: "primary",
|
||||||
plain: true
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
@ -145,14 +144,9 @@ export default {
|
|||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
deactivated() {
|
// components: {
|
||||||
this.listQuery.startTime =null
|
// AddOrUpdate,
|
||||||
this.listQuery.endTime = null
|
// },
|
||||||
this.listQuery.inspectionStage = null
|
|
||||||
this.listQuery.inspectionTypeId = null
|
|
||||||
this.listQuery.productId = null
|
|
||||||
this.listQuery.supplierId = null
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
//search-bar点击
|
//search-bar点击
|
||||||
handleProductCancel() {
|
handleProductCancel() {
|
||||||
@ -221,12 +215,7 @@ 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.startTime = null
|
this.listQuery.failureTypeStatus = null
|
||||||
this.listQuery.endTime = null
|
|
||||||
this.listQuery.inspectionStage = null
|
|
||||||
this.listQuery.inspectionTypeId = null
|
|
||||||
this.listQuery.productId = null
|
|
||||||
this.listQuery.supplierId = 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-12 14:32:41
|
* @LastEditTime: 2023-06-02 13:53:32
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -9,9 +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="2" class="item">
|
<el-badge :value="1" class="item">
|
||||||
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
||||||
</el-badge> -->
|
</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"
|
||||||
@ -28,7 +28,7 @@
|
|||||||
</base-dialog>
|
</base-dialog>
|
||||||
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
||||||
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
@confirm="handleSearchConfirm" :before-close="handleSearchCancel">
|
||||||
<transferScheme-search ref="searchOrUpdate" @successSubmit="conditionSearchSubmit">
|
<transferScheme-search ref="searchOrUpdate" @refreshDataList="conditionSearchSubmit">
|
||||||
</transferScheme-search>
|
</transferScheme-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">
|
||||||
@ -123,26 +123,20 @@ export default {
|
|||||||
searchOrEditTitle: '',
|
searchOrEditTitle: '',
|
||||||
searchOrUpdateVisible: false,
|
searchOrUpdateVisible: false,
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
// {
|
||||||
type: 'input',
|
// type: "",
|
||||||
label: i18n.t('basic.name'),
|
// label: i18n.t("params.paramCode"),
|
||||||
placeholder: i18n.t('basic.name'),
|
// placeholder: i18n.t("params.paramCode"),
|
||||||
param: 'name',
|
// param: "paramCode",
|
||||||
clearable: true
|
// },
|
||||||
},
|
// {
|
||||||
{
|
// type: "separate",
|
||||||
type: 'input',
|
// },
|
||||||
label: i18n.t('basic.code'),
|
|
||||||
placeholder: i18n.t('basic.code'),
|
|
||||||
param: 'code',
|
|
||||||
clearable: true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: "新增",
|
btnName: "新增",
|
||||||
name: "add",
|
name: "add",
|
||||||
color: "success",
|
color: "primary",
|
||||||
plain: true
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
@ -153,6 +147,9 @@ export default {
|
|||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
// components: {
|
||||||
|
// AddOrUpdate,
|
||||||
|
// },
|
||||||
methods: {
|
methods: {
|
||||||
//search-bar点击
|
//search-bar点击
|
||||||
handleProductCancel() {
|
handleProductCancel() {
|
||||||
@ -171,8 +168,9 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
conditionSearchSubmit(dataForm) {
|
conditionSearchSubmit(dataForm) {
|
||||||
this.listQuery.name = dataForm.name
|
this.listQuery.transferSchemeCode = dataForm.transferSchemeCode
|
||||||
this.listQuery.code = dataForm.code
|
this.listQuery.transferSchemeName = dataForm.transferSchemeName
|
||||||
|
|
||||||
this.listQuery.page = 1;
|
this.listQuery.page = 1;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
this.searchOrUpdateVisible = false;
|
this.searchOrUpdateVisible = false;
|
||||||
@ -217,8 +215,7 @@ 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.name = val.name ? val.name : null
|
this.listQuery.failureTypeStatus = null
|
||||||
this.listQuery.code = val.code ? val.code : null
|
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
break;
|
break;
|
||||||
case "add":
|
case "add":
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-01-31 09:49:36
|
* @Date: 2023-01-31 09:49:36
|
||||||
* @LastEditTime: 2023-07-11 14:31:18
|
* @LastEditTime: 2023-04-17 10:59:15
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
|
@ -1,59 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zhp
|
|
||||||
* @Date: 2023-01-31 14:12:10
|
|
||||||
* @LastEditTime: 2023-07-11 14:40:39
|
|
||||||
* @LastEditors: zhp
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<span>
|
|
||||||
<el-switch @change="changeStatus" v-model="injectData.ment" :active-value="1"
|
|
||||||
:inactive-value="0">
|
|
||||||
</el-switch>
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
// import { addDynamicRoute } from '@/router'
|
|
||||||
export default {
|
|
||||||
props: {
|
|
||||||
injectData: {
|
|
||||||
type: Object,
|
|
||||||
default: () => ({}),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
urlOptions: {
|
|
||||||
submitURL: "/supplier/qmsSupplier"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
// 子级
|
|
||||||
changeStatus () {
|
|
||||||
// 路由参数
|
|
||||||
let obj= {
|
|
||||||
ment: this.injectData.ment,
|
|
||||||
id:this.injectData.id
|
|
||||||
}
|
|
||||||
this.$http.put(this.urlOptions.submitURL, obj)
|
|
||||||
.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)
|
|
||||||
console.log(this.$parent.$parent.$parent.$parent.$parent)
|
|
||||||
this.$parent.$parent.$parent.$parent.$parent.$parent.getDataList()
|
|
||||||
},
|
|
||||||
});
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</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-11 14:59:11
|
* @LastEditTime: 2023-06-05 16:38:54
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -26,8 +26,8 @@
|
|||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="statisticalValue" :label="$t('supplier.statisticalValue')">
|
<el-form-item prop="statisticalValue" :label="$t('supplier.statisticalValue')">
|
||||||
<el-switch v-model="dataForm.closedLoop" :active-value="1" :inactive-value="0">
|
<K v-model="dataForm.closedLoop" :active-value="1" :inactive-value="0">
|
||||||
</el-switch>
|
</K>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-12 16:16:30
|
* @LastEditTime: 2023-04-19 15:29:42
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
||||||
<el-form-item prop="evaluationTemplateId" :label="$t('supplier.evaluationTemplateName')">
|
<el-form-item prop="evaluationTemplateId" :label="$t('supplier.evaluationTemplateName')">
|
||||||
<el-select v-model="dataForm.evaluationTemplateId" :placeholder="$t('supplier.evaluationTemplateName')"
|
<el-select v-model="dataForm.evaluationTemplateId" :placeholder="$t('supplier.evaluationTemplateName')"
|
||||||
@change="getProductCode">
|
@change="getProductCode">
|
||||||
<el-option v-for="item in templateList" :key="item.id" :label="item.title" :value="item.id">
|
<el-option v-for="item in templateList" :key="item.id" :label="item.name" :value="item.id">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -118,27 +118,27 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
evaluationTemplateId: [
|
// dictLabel: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
evaluationType: [
|
// dictValue: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
title: [
|
// sort: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -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-11 16:57:00
|
* @LastEditTime: 2023-06-16 14:22:14
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -138,38 +138,6 @@ export default {
|
|||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
},
|
},
|
||||||
// 表单提交
|
// 表单提交
|
||||||
dataFormSubmit() {
|
|
||||||
this.$refs["dataForm"].validate((valid) => {
|
|
||||||
if (Number(this.dataForm.online) <= Number(this.dataForm.offline)) {
|
|
||||||
this.$message({
|
|
||||||
message: "上限要大于下限",
|
|
||||||
type: "warning",
|
|
||||||
duration: 500,
|
|
||||||
onClose: () => {
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
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) => {
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-12 15:46:50
|
* @LastEditTime: 2023-04-19 14:20:14
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
||||||
<el-form-item prop="productId" :label="$t('supplier.materialName')">
|
<el-form-item prop="productId" :label="$t('supplier.materialName')">
|
||||||
<el-select v-model="dataForm.productId" :placeholder="$t('supplier.materialName')" @change="getProductCode">
|
<el-select v-model="dataForm.productId" :placeholder="$t('supplier.materialName')" @change="getProductCode">
|
||||||
<el-option v-for="item in productList" :key="item.id" :label="item.productName" :value="item.id">
|
<el-option v-for="item in productList" :key="item.id" :label="item.productName" :value="item.id">
|
||||||
@ -106,55 +106,27 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
productId: [
|
// dictLabel: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
supplierId: [
|
// dictValue: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
supplierBatch: [
|
// sort: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
offlineTime: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: this.$t("validate.required"),
|
|
||||||
trigger: "change ",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
defectiveQuantity: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: this.$t("validate.required"),
|
|
||||||
trigger: "blur",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
undesirablePhenomena: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: this.$t("validate.required"),
|
|
||||||
trigger: "blur",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
productCode: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: this.$t("validate.required"),
|
|
||||||
trigger: "blur",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -1,12 +1,20 @@
|
|||||||
|
<!--
|
||||||
|
* @Author: zhp
|
||||||
|
* @Date: 2023-06-09 15:05:26
|
||||||
|
* @LastEditTime: 2023-06-09 15:05:26
|
||||||
|
* @LastEditors: zhp
|
||||||
|
* @Description:
|
||||||
|
-->
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-12 16:19:42
|
* @LastEditTime: 2023-06-08 15:13:41
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
||||||
<el-form-item prop="code" :label="$t('basic.code')">
|
<el-form-item prop="code" :label="$t('basic.code')">
|
||||||
<el-input v-model="dataForm.code" :placeholder="$t('basic.code')"></el-input>
|
<el-input v-model="dataForm.code" :placeholder="$t('basic.code')"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -60,30 +68,37 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
code: [
|
// dictLabel: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
name: [
|
// dictValue: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// 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 || ""
|
||||||
// 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 {
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-12 15:49:14
|
* @LastEditTime: 2023-04-18 15:40:53
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
||||||
<el-form-item prop="productId" :label="$t('supplier.materialName')">
|
<el-form-item prop="productId" :label="$t('supplier.materialName')">
|
||||||
<el-select v-model="dataForm.productId" :placeholder="$t('supplier.materialName')" @change="getProductCode">
|
<el-select v-model="dataForm.productId" :placeholder="$t('supplier.materialName')" @change="getProductCode">
|
||||||
<el-option v-for="item in productList" :key="item.id" :label="item.productName" :value="item.id">
|
<el-option v-for="item in productList" :key="item.id" :label="item.productName" :value="item.id">
|
||||||
@ -124,7 +124,6 @@ export default {
|
|||||||
causeAnalysis:null,
|
causeAnalysis:null,
|
||||||
closedLoop: null,
|
closedLoop: null,
|
||||||
everlastMeasures: null,
|
everlastMeasures: null,
|
||||||
productCode:null,
|
|
||||||
interimMeasures:null,
|
interimMeasures:null,
|
||||||
lostHour: null,
|
lostHour: null,
|
||||||
place: null,
|
place: null,
|
||||||
@ -137,41 +136,27 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
productId: [
|
// dictLabel: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
problemBatch: [
|
// dictValue: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
supplierId: [
|
// sort: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
productCode: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: this.$t("validate.required"),
|
|
||||||
trigger: "blur",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
applicationDate: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: this.$t("validate.required"),
|
|
||||||
trigger: "change",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-12 15:54:54
|
* @LastEditTime: 2023-04-18 14:21:19
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
||||||
<el-form-item prop="code" :label="$t('supplier.code')">
|
<el-form-item prop="code" :label="$t('supplier.code')">
|
||||||
<el-input v-model="dataForm.code" :placeholder="$t('supplier.code')" />
|
<el-input v-model="dataForm.code" :placeholder="$t('supplier.code')" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -18,10 +18,6 @@
|
|||||||
<el-input v-model="dataForm.abbreviation" :placeholder="$t('supplier.abbreviation')">
|
<el-input v-model="dataForm.abbreviation" :placeholder="$t('supplier.abbreviation')">
|
||||||
</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="supplierTypeId" :label="$t('supplier.supplierType')">
|
<el-form-item prop="supplierTypeId" :label="$t('supplier.supplierType')">
|
||||||
<el-select v-model="dataForm.supplierTypeId" :placeholder="$t('supplier.supplierType')">
|
<el-select v-model="dataForm.supplierTypeId" :placeholder="$t('supplier.supplierType')">
|
||||||
<el-option v-for="item in supplierTypeList" :key="item.id" :label="item.name" :value="item.id">
|
<el-option v-for="item in supplierTypeList" :key="item.id" :label="item.name" :value="item.id">
|
||||||
@ -38,12 +34,6 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="supplierStatus" :label="$t('supplier.supplierStatus')">
|
|
||||||
<el-select v-model="dataForm.supplierStatus" :placeholder="$t('supplier.supplierStatus')">
|
|
||||||
<el-option v-for="item in supplierStatus" :key="item.value" :label="item.label" :value="item.value">
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item prop="contact" :label="$t('supplier.contact')">
|
<el-form-item prop="contact" :label="$t('supplier.contact')">
|
||||||
<el-input v-model="dataForm.contact" :placeholder="$t('supplier.contact')">
|
<el-input v-model="dataForm.contact" :placeholder="$t('supplier.contact')">
|
||||||
</el-input>
|
</el-input>
|
||||||
@ -101,21 +91,7 @@ export default {
|
|||||||
{
|
{
|
||||||
value: 1,
|
value: 1,
|
||||||
label: '可用'
|
label: '可用'
|
||||||
}
|
}],
|
||||||
],
|
|
||||||
supplierStatus: [{
|
|
||||||
value: 0,
|
|
||||||
label: '合格'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: 1,
|
|
||||||
label: '不合格'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: 2,
|
|
||||||
label: '黑名单'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
enterpriseNatureList: [
|
enterpriseNatureList: [
|
||||||
{
|
{
|
||||||
value: 0,
|
value: 0,
|
||||||
@ -152,7 +128,6 @@ export default {
|
|||||||
name:null,
|
name:null,
|
||||||
address: null,
|
address: null,
|
||||||
abbreviation: null,
|
abbreviation: null,
|
||||||
supplierStatus:null,
|
|
||||||
grade: null,
|
grade: null,
|
||||||
contact:null,
|
contact:null,
|
||||||
contactEmail:null,
|
contactEmail:null,
|
||||||
@ -166,34 +141,27 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
code: [
|
// dictLabel: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
name: [
|
// dictValue: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
ment: [
|
// sort: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
supplierStatus: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: this.$t("validate.required"),
|
|
||||||
trigger: "change",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-12 15:55:44
|
* @LastEditTime: 2023-04-18 09:36:39
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
||||||
<el-form-item prop="productId" :label="$t('supplier.productName')">
|
<el-form-item prop="productId" :label="$t('supplier.productName')">
|
||||||
<el-select v-model="dataForm.productId" :placeholder="$t('supplier.productName')">
|
<el-select v-model="dataForm.productId" :placeholder="$t('supplier.productName')">
|
||||||
<el-option v-for="item in productList" :key="item.id" :label="item.productName" :value="item.id">
|
<el-option v-for="item in productList" :key="item.id" :label="item.productName" :value="item.id">
|
||||||
@ -14,7 +14,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="supplierId" :label="$t('supplier.supplierName')">
|
<el-form-item prop="supplierId" :label="$t('supplier.supplierName')">
|
||||||
<el-select v-model="dataForm.supplierId" :placeholder="$t('supplier.supplierName')">
|
<el-select v-model="dataForm.supplierList" :placeholder="$t('supplier.supplierName')">
|
||||||
<el-option v-for="item in supplierList" :key="item.id" :label="item.name" :value="item.id">
|
<el-option v-for="item in supplierList" :key="item.id" :label="item.name" :value="item.id">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
@ -36,8 +36,8 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
urlOptions: {
|
urlOptions: {
|
||||||
submitURL: "/supplier/qmsSupplierProduct",
|
submitURL: "/supplier/qmsSupplierType",
|
||||||
infoURL: "/supplier/qmsSupplierProduct/{id}",
|
infoURL: "/supplier/qmsSupplierType/{id}",
|
||||||
getProductListURL: '/basic/qmsProduct/page',
|
getProductListURL: '/basic/qmsProduct/page',
|
||||||
// getCodeURL: '/supplier/qmsSupplierType/getCode',
|
// getCodeURL: '/supplier/qmsSupplierType/getCode',
|
||||||
getSupplierListURL: '/supplier/qmsSupplier/page'
|
getSupplierListURL: '/supplier/qmsSupplier/page'
|
||||||
@ -67,20 +67,27 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
supplierId: [
|
// dictLabel: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
productId: [
|
// dictValue: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
]
|
// ],
|
||||||
|
// sort: [
|
||||||
|
// {
|
||||||
|
// required: true,
|
||||||
|
// message: this.$t("validate.required"),
|
||||||
|
// trigger: "blur",
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -123,7 +130,7 @@ export default {
|
|||||||
// 获取信息
|
// 获取信息
|
||||||
getInfo() {
|
getInfo() {
|
||||||
this.$http
|
this.$http
|
||||||
.get(`/supplier/qmsSupplierProduct/${this.dataForm.id}`)
|
.get(`/supplier/qmsSupplierType/${this.dataForm.id}`)
|
||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
if (res.code !== 0) {
|
if (res.code !== 0) {
|
||||||
return this.$message.error(res.msg);
|
return this.$message.error(res.msg);
|
||||||
|
@ -1,136 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zhp
|
|
||||||
* @Date: 2023-02-14 15:02:26
|
|
||||||
* @LastEditTime: 2023-07-12 16:20:26
|
|
||||||
* @LastEditors: zhp
|
|
||||||
* @Description:
|
|
||||||
-->
|
|
||||||
<template>
|
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
|
||||||
<el-form-item prop="name" :label="$t('basic.name')">
|
|
||||||
<el-input v-model="dataForm.name" :placeholder="$t('basic.name')"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<!-- <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/qmsSupplierRequirementListGroup",
|
|
||||||
infoURL: "/supplier/qmsSupplierRequirementListGroup/{id}"
|
|
||||||
// getTypeListURL: '/basic/qmsProductType/page'
|
|
||||||
},
|
|
||||||
options: [{
|
|
||||||
value: 0,
|
|
||||||
label: '不可用'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: 1,
|
|
||||||
label: '可用'
|
|
||||||
}],
|
|
||||||
typeList:[],
|
|
||||||
visible: false,
|
|
||||||
listQuery: {
|
|
||||||
limit: 999,
|
|
||||||
page:1
|
|
||||||
},
|
|
||||||
dataForm: {
|
|
||||||
id: "",
|
|
||||||
code:null,
|
|
||||||
name: null,
|
|
||||||
supplierTypeStatus:null,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
dataRule() {
|
|
||||||
return {
|
|
||||||
code: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: this.$t("validate.required"),
|
|
||||||
trigger: "blur",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
name: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: this.$t("validate.required"),
|
|
||||||
trigger: "blur",
|
|
||||||
},
|
|
||||||
]
|
|
||||||
};
|
|
||||||
},
|
|
||||||
},
|
|
||||||
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()
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
// 获取信息
|
|
||||||
getInfo() {
|
|
||||||
this.$http
|
|
||||||
.get(`/supplier/qmsProjectType/${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>
|
|
@ -1,12 +1,12 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-02-14 15:02:26
|
* @Date: 2023-02-14 15:02:26
|
||||||
* @LastEditTime: 2023-07-12 15:58:36
|
* @LastEditTime: 2023-04-17 10:56:39
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<el-form :model="dataForm" ref="dataForm" :rules="dataRule" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
|
||||||
<el-form-item prop="code" :label="$t('basic.code')">
|
<el-form-item prop="code" :label="$t('basic.code')">
|
||||||
<el-input v-model="dataForm.code" :placeholder="$t('basic.code')"></el-input>
|
<el-input v-model="dataForm.code" :placeholder="$t('basic.code')"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -66,27 +66,27 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
dataRule() {
|
dataRule() {
|
||||||
return {
|
return {
|
||||||
code: [
|
// dictLabel: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
name: [
|
// dictValue: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "blur",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
supplierTypeStatus: [
|
// sort: [
|
||||||
{
|
// {
|
||||||
required: true,
|
// required: true,
|
||||||
message: this.$t("validate.required"),
|
// message: this.$t("validate.required"),
|
||||||
trigger: "change",
|
// trigger: "blur",
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-04-17 14:23:17
|
* @Date: 2023-04-17 14:23:17
|
||||||
* @LastEditTime: 2023-07-11 15:20:16
|
* @LastEditTime: 2023-06-20 15:39:07
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @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-tabs @tab-click="clickTabs" tab-position="left">
|
<el-tabs @tab-click="clickTabs" tab-position="left" style="height: 200px;">
|
||||||
<el-tab-pane v-for="(item,index) in projectTypeList" :name="item.id" :key="index" :label="item.name">
|
<el-tab-pane v-for="(item,index) in projectTypeList" :name="item.id" :key="index" :label="item.name">
|
||||||
<SearchBar :formConfigs="formConfig" ref="ruleForm" @headBtnClick="buttonClick">
|
<SearchBar :formConfigs="formConfig" ref="ruleForm" @headBtnClick="buttonClick">
|
||||||
</SearchBar>
|
</SearchBar>
|
||||||
@ -112,7 +112,7 @@ export default {
|
|||||||
type: 'input',
|
type: 'input',
|
||||||
label: i18n.t('supplier.name'),
|
label: i18n.t('supplier.name'),
|
||||||
placeholder: i18n.t('supplier.name'),
|
placeholder: i18n.t('supplier.name'),
|
||||||
param: 'title'
|
param: 'name'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'input',
|
type: 'input',
|
||||||
@ -275,7 +275,7 @@ export default {
|
|||||||
switch (val.btnName) {
|
switch (val.btnName) {
|
||||||
case "search":
|
case "search":
|
||||||
// this.listQuery.paramCode = val.paramCode;
|
// this.listQuery.paramCode = val.paramCode;
|
||||||
this.listQuery.title = val.title ? val.title : undefined
|
this.listQuery.name = val.name ? val.name : undefined
|
||||||
this.listQuery.code = val.code ? val.code : undefined
|
this.listQuery.code = val.code ? val.code : undefined
|
||||||
// console.log(i18n);
|
// console.log(i18n);
|
||||||
this.listQuery.page = 1;
|
this.listQuery.page = 1;
|
||||||
|
@ -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-12 16:05:36
|
* @LastEditTime: 2023-06-28 14:04:45
|
||||||
* @LastEditors: zhp
|
* @LastEditors: DY
|
||||||
* @Description: 评估计划
|
* @Description: 评估计划
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -144,8 +144,8 @@ export default {
|
|||||||
type: "button",
|
type: "button",
|
||||||
btnName: i18n.t('add'),
|
btnName: i18n.t('add'),
|
||||||
name: "add",
|
name: "add",
|
||||||
color: "success",
|
color: "primary",
|
||||||
plain: true
|
// plain: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
@ -167,7 +167,7 @@ export default {
|
|||||||
type: "button",
|
type: "button",
|
||||||
btnName: i18n.t('add'),
|
btnName: i18n.t('add'),
|
||||||
name: "add",
|
name: "add",
|
||||||
color: "success",
|
color: "primary",
|
||||||
// plain: true,
|
// plain: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -175,7 +175,7 @@ export default {
|
|||||||
btnName: i18n.t('export'),
|
btnName: i18n.t('export'),
|
||||||
name: "export",
|
name: "export",
|
||||||
color: "primary",
|
color: "primary",
|
||||||
plain: true,
|
// plain: true,
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
@ -224,12 +224,7 @@ export default {
|
|||||||
.then(({ data: res }) => {
|
.then(({ data: res }) => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
console.log(res.data);
|
console.log(res.data);
|
||||||
this.formConfig[1].selectOptions = res.data.list.map((item) => {
|
this.formConfig[1].selectOptions = res.data.list
|
||||||
return {
|
|
||||||
id: item.id,
|
|
||||||
name: item.title,
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-06-08 14:29:46
|
* @Date: 2023-06-08 14:29:46
|
||||||
* @LastEditTime: 2023-07-11 16:38:02
|
* @LastEditTime: 2023-06-16 14:20:12
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -20,7 +20,7 @@
|
|||||||
{{item.name}}
|
{{item.name}}
|
||||||
</span>
|
</span>
|
||||||
<el-button style="margin-left:5px" type="text" icon="el-icon-edit" @click="handleEdit(item.id)"></el-button>
|
<el-button style="margin-left:5px" type="text" icon="el-icon-edit" @click="handleEdit(item.id)"></el-button>
|
||||||
<el-progress :stroke-width="26" :percentage="item.online ? item.online : 0 ">
|
<el-progress :stroke-width="26" :percentage="item.online ? item.online : ''">
|
||||||
</el-progress>
|
</el-progress>
|
||||||
</div>
|
</div>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
|
@ -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-12 15:18:25
|
* @LastEditTime: 2023-06-20 15:38:40
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -173,15 +173,15 @@ export default {
|
|||||||
type: "button",
|
type: "button",
|
||||||
btnName: i18n.t('add'),
|
btnName: i18n.t('add'),
|
||||||
name: "add",
|
name: "add",
|
||||||
color: "success",
|
color: "primary",
|
||||||
plain: true,
|
// plain: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: i18n.t('export'),
|
btnName: i18n.t('export'),
|
||||||
name: "export",
|
name: "export",
|
||||||
color: "primary",
|
color: "primary",
|
||||||
plain: true,
|
// plain: true,
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zhp
|
* @Author: zhp
|
||||||
* @Date: 2023-06-08 14:29:46
|
* @Date: 2023-06-08 14:29:46
|
||||||
* @LastEditTime: 2023-07-12 16:03:12
|
* @LastEditTime: 2023-06-20 15:38:33
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -9,9 +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="2" class="item">
|
<el-badge :value="2" class="item">
|
||||||
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
||||||
</el-badge> -->
|
</el-badge>
|
||||||
</SearchBar>
|
</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">
|
||||||
@ -23,8 +23,8 @@
|
|||||||
<!-- 弹窗, 新增 / 修改 -->
|
<!-- 弹窗, 新增 / 修改 -->
|
||||||
<base-dialog :dialogTitle="addOrEditTitle" :dialogVisible="addOrUpdateVisible" @cancel="handleCancel"
|
<base-dialog :dialogTitle="addOrEditTitle" :dialogVisible="addOrUpdateVisible" @cancel="handleCancel"
|
||||||
@confirm="handleConfirm" :before-close="handleCancel">
|
@confirm="handleConfirm" :before-close="handleCancel">
|
||||||
<projectType-add ref="addOrUpdate" @refreshDataList="successSubmit">
|
<projectsType-add ref="addOrUpdate" @refreshDataList="successSubmit">
|
||||||
</projectType-add>
|
</projectsType-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 :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
<base-dialog :dialogTitle="searchOrEditTitle" :dialogVisible="searchOrUpdateVisible" @cancel="handleSearchCancel"
|
||||||
@ -100,24 +100,20 @@ export default {
|
|||||||
addOrUpdateVisible: false,
|
addOrUpdateVisible: false,
|
||||||
productOrUpdateVisible: false,
|
productOrUpdateVisible: false,
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
// {
|
||||||
type: 'input',
|
// type: "",
|
||||||
label: i18n.t('supplier.code'),
|
// label: i18n.t("params.paramCode"),
|
||||||
placeholder: i18n.t('supplier.code'),
|
// placeholder: i18n.t("params.paramCode"),
|
||||||
param: 'code'
|
// param: "paramCode",
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
type: 'input',
|
// type: "separate",
|
||||||
label: i18n.t('supplier.name'),
|
// },
|
||||||
placeholder: i18n.t('supplier.name'),
|
|
||||||
param: 'name'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: i18n.t('add'),
|
btnName: i18n.t('add'),
|
||||||
name: "add",
|
name: "add",
|
||||||
color: "success",
|
color: "primary",
|
||||||
plain:true
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
@ -131,7 +127,7 @@ export default {
|
|||||||
btnName: i18n.t('export'),
|
btnName: i18n.t('export'),
|
||||||
name: "export",
|
name: "export",
|
||||||
color: "primary",
|
color: "primary",
|
||||||
plain: true
|
// plain: true,
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
@ -254,8 +250,6 @@ export default {
|
|||||||
case "search":
|
case "search":
|
||||||
// this.listQuery.paramCode = val.paramCode;
|
// this.listQuery.paramCode = val.paramCode;
|
||||||
// console.log(i18n);
|
// console.log(i18n);
|
||||||
this.listQuery.name = val.name ? val.name : null
|
|
||||||
this.listQuery.code = val.code ? val.code : null
|
|
||||||
this.listQuery.page = 1
|
this.listQuery.page = 1
|
||||||
this.getDataList()
|
this.getDataList()
|
||||||
break;
|
break;
|
||||||
|
@ -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-11 14:44:36
|
* @LastEditTime: 2023-06-20 15:38:27
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -96,7 +96,7 @@ const tableProps = [
|
|||||||
{
|
{
|
||||||
prop: "closedLoop",
|
prop: "closedLoop",
|
||||||
label: i18n.t('supplier.closedLoop'),
|
label: i18n.t('supplier.closedLoop'),
|
||||||
filter: supplier('whether')
|
filter: supplier('whether'),
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
const tableBtn = [
|
const tableBtn = [
|
||||||
@ -159,11 +159,11 @@ export default {
|
|||||||
name:'全部'
|
name:'全部'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '0',
|
id: 0,
|
||||||
name: '否'
|
name: '否'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '1',
|
id: 1,
|
||||||
name: '是'
|
name: '是'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -209,15 +209,15 @@ export default {
|
|||||||
type: "button",
|
type: "button",
|
||||||
btnName: i18n.t('add'),
|
btnName: i18n.t('add'),
|
||||||
name: "add",
|
name: "add",
|
||||||
color: "success",
|
color: "primary",
|
||||||
plain: true
|
// plain: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: i18n.t('export'),
|
btnName: i18n.t('export'),
|
||||||
name: "export",
|
name: "export",
|
||||||
color: "primary",
|
color: "primary",
|
||||||
plain: true
|
// plain: true,
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
@ -370,7 +370,7 @@ export default {
|
|||||||
// this.listQuery.paramCode = val.paramCode;
|
// this.listQuery.paramCode = val.paramCode;
|
||||||
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 = closedLoop ? closedLoop : undefined
|
||||||
this.listQuery.supplierName = val.supplierName ? val.supplierName : 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
|
||||||
|
@ -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-11 14:35:52
|
* @LastEditTime: 2023-06-20 15:38:21
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -59,9 +59,10 @@ import supplierProductSearch from "./components/supplierProductSearch.vue"
|
|||||||
import supplierAdd from "./components/supplier-add.vue"
|
import supplierAdd from "./components/supplier-add.vue"
|
||||||
import inputArea from "./components/inputArea"
|
import inputArea from "./components/inputArea"
|
||||||
import innerTable from "./components/innerTable"
|
import innerTable from "./components/innerTable"
|
||||||
import changeStatus from "./components/changeStatus.vue"
|
// import available from "./components/available.vue"
|
||||||
|
// import radio from "./components/radio.vue"
|
||||||
import i18n from "@/i18n"
|
import i18n from "@/i18n"
|
||||||
import supplier from '@/filters/supplier'
|
// import i18n from "@/i18n";
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
prop: "detail",
|
prop: "detail",
|
||||||
@ -89,15 +90,9 @@ const tableProps = [
|
|||||||
prop: "address",
|
prop: "address",
|
||||||
label: i18n.t('supplier.address'),
|
label: i18n.t('supplier.address'),
|
||||||
},
|
},
|
||||||
{
|
|
||||||
prop: "supplierStatus",
|
|
||||||
label: i18n.t('supplier.supplierStatus'),
|
|
||||||
filter: supplier('supplierStatus'),
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
prop: "ment",
|
prop: "ment",
|
||||||
label: i18n.t('supplier.ment'),
|
label: i18n.t('supplier.ment'),
|
||||||
subcomponent: changeStatus
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
const tableBtn = [
|
const tableBtn = [
|
||||||
@ -189,15 +184,15 @@ export default {
|
|||||||
type: "button",
|
type: "button",
|
||||||
btnName: i18n.t('add'),
|
btnName: i18n.t('add'),
|
||||||
name: "add",
|
name: "add",
|
||||||
color: "success",
|
color: "primary",
|
||||||
plain: true
|
// plain: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: i18n.t('export'),
|
btnName: i18n.t('export'),
|
||||||
name: "export",
|
name: "export",
|
||||||
color: "primary",
|
color: "primary",
|
||||||
plain: true
|
// plain: true,
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
@ -289,7 +284,7 @@ export default {
|
|||||||
type: "success",
|
type: "success",
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
this.getDataList()
|
this.getDataList();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
@ -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-12 15:57:57
|
* @LastEditTime: 2023-06-20 15:38:13
|
||||||
* @LastEditors: zhp
|
* @LastEditors: zhp
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
@ -9,9 +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="2" class="item">
|
<el-badge :value="2" class="item">
|
||||||
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
||||||
</el-badge> -->
|
</el-badge>
|
||||||
</SearchBar>
|
</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"
|
||||||
highlight-current-row :limit="listQuery.limit" :table-data="tableData" @current-change="handleCurrentChange">
|
highlight-current-row :limit="listQuery.limit" :table-data="tableData" @current-change="handleCurrentChange">
|
||||||
@ -110,18 +110,20 @@ export default {
|
|||||||
addOrUpdateVisible: false,
|
addOrUpdateVisible: false,
|
||||||
productOrUpdateVisible: false,
|
productOrUpdateVisible: false,
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
// {
|
||||||
type: 'input',
|
// type: "",
|
||||||
label: i18n.t('supplier.supplierName'),
|
// label: i18n.t("params.paramCode"),
|
||||||
placeholder: i18n.t('supplier.supplierName'),
|
// placeholder: i18n.t("params.paramCode"),
|
||||||
param: 'supplierName'
|
// param: "paramCode",
|
||||||
},
|
// },
|
||||||
|
// {
|
||||||
|
// type: "separate",
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: i18n.t('supplier.supplierRelevance'),
|
btnName: i18n.t('supplier.supplierRelevance'),
|
||||||
name: "supplierRelevance",
|
name: "supplierRelevance",
|
||||||
color: "success",
|
color: "primary",
|
||||||
plain:true
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
@ -218,7 +220,7 @@ export default {
|
|||||||
switch (val.btnName) {
|
switch (val.btnName) {
|
||||||
case "search":
|
case "search":
|
||||||
// this.listQuery.paramCode = val.paramCode;
|
// this.listQuery.paramCode = val.paramCode;
|
||||||
this.listQuery.supplierName = val.supplierName ? val.supplierName : null
|
this.listQuery.key = null;
|
||||||
// console.log(i18n);
|
// console.log(i18n);
|
||||||
this.listQuery.page = 1;
|
this.listQuery.page = 1;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
|
@ -1,257 +0,0 @@
|
|||||||
<!--
|
|
||||||
* @Author: zhp
|
|
||||||
* @Date: 2023-06-08 14:29:46
|
|
||||||
* @LastEditTime: 2023-07-12 16:24:41
|
|
||||||
* @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="2" 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">
|
|
||||||
<supplierRequirementListGroup-add ref="addOrUpdate" @refreshDataList="successSubmit">
|
|
||||||
</supplierRequirementListGroup-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">
|
|
||||||
<projectType-search ref="searchOrUpdate" @successSubmit="conditionSearchSubmit">
|
|
||||||
</projectType-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 projectTypeSearch from "./components/projectTypeSearch.vue"
|
|
||||||
import supplierRequirementListGroupAdd from "./components/supplierRequirementListGroup-add.vue"
|
|
||||||
import i18n from "@/i18n"
|
|
||||||
// import i18n from "@/i18n";
|
|
||||||
const tableProps = [
|
|
||||||
{
|
|
||||||
prop: "name",
|
|
||||||
label: i18n.t('supplier.name'),
|
|
||||||
}
|
|
||||||
];
|
|
||||||
const tableBtn = [
|
|
||||||
{
|
|
||||||
type: "edit",
|
|
||||||
btnName: i18n.t('edit'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "delete",
|
|
||||||
btnName: i18n.t('delete'),
|
|
||||||
}
|
|
||||||
];
|
|
||||||
export default {
|
|
||||||
mixins: [basicPage],
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
urlOptions: {
|
|
||||||
getDataListURL: "/supplier/qmsSupplierRequirementListGroup/page",
|
|
||||||
deleteURL: "/supplier/qmsSupplierRequirementListGroup",
|
|
||||||
exportURL: '/supplier/qmsSupplierRequirementListGroup/export',
|
|
||||||
submitURL: '/supplier/qmsSupplierRequirementListGroup'
|
|
||||||
},
|
|
||||||
tableProps,
|
|
||||||
tableBtn,
|
|
||||||
productData: {},
|
|
||||||
dataForm:{
|
|
||||||
limit: 999,
|
|
||||||
page:1
|
|
||||||
},
|
|
||||||
searchOrEditTitle: "",
|
|
||||||
searchOrUpdateVisible: false,
|
|
||||||
productOrEditTitle: "",
|
|
||||||
addOrEditTitle: '',
|
|
||||||
addOrUpdateVisible: false,
|
|
||||||
productOrUpdateVisible: false,
|
|
||||||
formConfig: [
|
|
||||||
{
|
|
||||||
type: 'input',
|
|
||||||
label: i18n.t('supplier.name'),
|
|
||||||
placeholder: i18n.t('supplier.name'),
|
|
||||||
param: 'name'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "button",
|
|
||||||
btnName: i18n.t('add'),
|
|
||||||
name: "add",
|
|
||||||
color: "success",
|
|
||||||
plain:true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "button",
|
|
||||||
btnName: i18n.t('search'),
|
|
||||||
name: "search",
|
|
||||||
color: "primary",
|
|
||||||
// plain: true,
|
|
||||||
}
|
|
||||||
],
|
|
||||||
};
|
|
||||||
},
|
|
||||||
components: {
|
|
||||||
supplierRequirementListGroupAdd
|
|
||||||
},
|
|
||||||
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.name = dataForm.name
|
|
||||||
this.listQuery.code = dataForm.code
|
|
||||||
this.listQuery.page = 1;
|
|
||||||
this.getDataList();
|
|
||||||
this.searchOrUpdateVisible = false;
|
|
||||||
// console.log(11111);
|
|
||||||
// this.conditionSearchSubmit();
|
|
||||||
},
|
|
||||||
exportHandle() {
|
|
||||||
this.$http.get(this.urlOptions.exportURL, { responseType: 'blob' }, {
|
|
||||||
...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(() => { })
|
|
||||||
},
|
|
||||||
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;
|
|
||||||
// console.log(i18n);
|
|
||||||
this.listQuery.name = val.name ? val.name : null
|
|
||||||
this.listQuery.code = val.code ? val.code : null
|
|
||||||
this.listQuery.page = 1
|
|
||||||
this.getDataList()
|
|
||||||
break;
|
|
||||||
case "export":
|
|
||||||
this.exportHandle()
|
|
||||||
break;
|
|
||||||
case "add":
|
|
||||||
this.addOrEditTitle = '新增'
|
|
||||||
this.addOrUpdateVisible = true;
|
|
||||||
this.addOrUpdateHandle()
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
@ -2,9 +2,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="2" class="item">
|
<el-badge :value="2" class="item">
|
||||||
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
|
||||||
</el-badge> -->
|
</el-badge>
|
||||||
</SearchBar>
|
</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">
|
||||||
@ -104,24 +104,20 @@ export default {
|
|||||||
addOrUpdateVisible: false,
|
addOrUpdateVisible: false,
|
||||||
productOrUpdateVisible: false,
|
productOrUpdateVisible: false,
|
||||||
formConfig: [
|
formConfig: [
|
||||||
{
|
// {
|
||||||
type: 'input',
|
// type: "",
|
||||||
label: i18n.t('supplier.name'),
|
// label: i18n.t("params.paramCode"),
|
||||||
placeholder: i18n.t('supplier.name'),
|
// placeholder: i18n.t("params.paramCode"),
|
||||||
param: 'name'
|
// param: "paramCode",
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
type: 'input',
|
// type: "separate",
|
||||||
label: i18n.t('supplier.code'),
|
// },
|
||||||
placeholder: i18n.t('supplier.code'),
|
|
||||||
param: 'code'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
btnName: i18n.t('add'),
|
btnName: i18n.t('add'),
|
||||||
name: "add",
|
name: "add",
|
||||||
color: "success",
|
color: "primary",
|
||||||
plain:true
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
@ -135,7 +131,7 @@ export default {
|
|||||||
btnName: i18n.t('export'),
|
btnName: i18n.t('export'),
|
||||||
name: "export",
|
name: "export",
|
||||||
color: "primary",
|
color: "primary",
|
||||||
plain: true
|
// plain: true,
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
@ -287,8 +283,7 @@ export default {
|
|||||||
switch (val.btnName) {
|
switch (val.btnName) {
|
||||||
case "search":
|
case "search":
|
||||||
// this.listQuery.paramCode = val.paramCode;
|
// this.listQuery.paramCode = val.paramCode;
|
||||||
this.listQuery.name = val.name ? val.name :null
|
this.listQuery.key = null;
|
||||||
this.listQuery.code = val.code ? val.code : null
|
|
||||||
// console.log(i18n);
|
// console.log(i18n);
|
||||||
this.listQuery.page = 1;
|
this.listQuery.page = 1;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
|
Loading…
Reference in New Issue
Block a user