更新8D处理中心和管理中心

This commit is contained in:
2023-07-04 09:26:40 +08:00
parent 251345fad8
commit 8d2f26293e
22 changed files with 1656 additions and 59 deletions

View File

@@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2023-02-14 15:02:26
* @LastEditTime: 2023-06-29 10:54:23
* @LastEditTime: 2023-07-03 16:24:52
* @LastEditors: zwq
* @Description:
-->
@@ -183,6 +183,34 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="custom" label="客户">
<el-select v-model="dataForm.custom" @change="changeCustom" filterable clearable placeholder="请选择客户">
<el-option
v-for="item in urlOptions.optionArr.arr0"
:key="item.id"
:label="item.customerName"
:value="item.id+'+'+item.customerName"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item prop="product" label="产品">
<el-select v-model="dataForm.product" @change="changeProduct" filterable clearable placeholder="请选择产品">
<el-option
v-for="item in urlOptions.optionArr.arr1"
:key="item.id"
:label="item.productName"
:value="item.id+'+'+item.productName"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="24">
<el-col :span="8">
<el-form-item prop="description" :label="$t('code.description')">
<el-input v-model="dataForm.description" :placeholder="$t('code.description')"></el-input>
@@ -200,18 +228,22 @@ export default {
data() {
return {
urlOptions: {
getOption: true,
submitURL: "/code/startEightDiscipline",
infoURL: "/code/startEightDiscipline/{id}",
getDictURL: "/sys/dict/data/page",
customerListURL: "/basic/qmsCustomer/page",
productListURL: "/basic/qmsProduct/page",
teamListURL: "/basic/qmsTeam/page",
optionArrUrl: ["/basic/qmsCustomer/page", "/basic/qmsProduct/page"],
},
defectList: [],
teamList: [],
customerList: [],
productList: [],
dutyList: [],
productList: [],
customList: [],
examineStatusList: [
{
id: 0,
@@ -256,6 +288,8 @@ export default {
batchNumber: null,
code: null,
customId: null,
custom: null,
customName: null,
defectSourceId: null,
description: null,
eightDisciplineId: null,
@@ -267,6 +301,8 @@ export default {
occurrenceDate: null,
orderNo: null,
productId: null,
product: null,
productName: null,
productTypeId: null,
teamList: undefined,
requestResponseCycle: null,
@@ -314,6 +350,9 @@ export default {
// console.log(11111)
// this.dataForm.dictTypeId = dictTypeId || "";
this.visible = true;
if (this.urlOptions.getOption) {
this.getArr()
}
this.$nextTick(() => {
this.$refs["dataForm"].resetFields();
if (this.dataForm.id) {
@@ -383,6 +422,22 @@ export default {
})
.catch(() => {});
},
changeCustom(){
this.dataForm.customId = this.dataForm.custom
? this.dataForm.custom.split("+")[0]
: "";
this.dataForm.customName = this.dataForm.custom
? this.dataForm.custom.split("+")[1]
: "";
},
changeProduct(){
this.dataForm.productId = this.dataForm.product
? this.dataForm.product.split("+")[0]
: "";
this.dataForm.productName = this.dataForm.product
? this.dataForm.product.split("+")[1]
: "";
},
// 表单提交
dataFormSubmitHandle: debounce(
function () {

View File

@@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2023-01-11 09:24:58
* @LastEditTime: 2023-06-28 16:06:37
* @LastEditTime: 2023-06-30 11:16:43
* @LastEditors: zwq
* @Description:
-->
@@ -9,7 +9,7 @@
<el-card shadow="never" class="aui-card--fill">
<div class="mod-sys__user">
<SearchBar :formConfigs="formConfig" ref="ruleForm" @headBtnClick="buttonClick">
<el-badge :value="1" class="item">
<el-badge :value="3" class="item">
<el-button type="primary" size="small" @click="conditionSearch">条件搜索</el-button>
</el-badge>
</SearchBar>