更改需求

This commit is contained in:
‘937886381’ 2024-04-10 16:52:18 +08:00
parent f89c6dfe14
commit cafa156d72
15 changed files with 82 additions and 28 deletions

View File

@ -2,7 +2,7 @@
* @Author: zwq * @Author: zwq
* @Date: 2023-08-01 14:55:51 * @Date: 2023-08-01 14:55:51
* @LastEditors: zhp * @LastEditors: zhp
* @LastEditTime: 2024-04-08 11:49:33 * @LastEditTime: 2024-04-10 16:34:40
* @Description: * @Description:
--> -->
<template> <template>
@ -142,7 +142,7 @@ export default {
// name: 'reset', // name: 'reset',
// }, // },
{ {
type: 'separate', type: this.$auth.hasPermi('base:packaging-print-log:create') ? 'separate' : '',
}, },
{ {
type: this.$auth.hasPermi('base:packaging-print-log:create') ? 'button' : '', type: this.$auth.hasPermi('base:packaging-print-log:create') ? 'button' : '',

View File

@ -118,7 +118,8 @@ export default {
color: 'primary', color: 'primary',
}, },
{ {
type: 'separate', // type: 'separate',
type: this.$auth.hasPermi('extend:process-equ-material-bom:create') ? 'separate' : '',
}, },
{ {
type: this.$auth.hasPermi('extend:process-equ-material-bom:create') ? 'button' : '', type: this.$auth.hasPermi('extend:process-equ-material-bom:create') ? 'button' : '',

View File

@ -119,7 +119,8 @@ export default {
color: 'primary', color: 'primary',
}, },
{ {
type: 'separate', // type: 'separate',
type: this.$auth.hasPermi('extend:process-equ-value-bom:create') ? 'separate' : '',
}, },
{ {
type: this.$auth.hasPermi('extend:process-equ-value-bom:create') ? 'button' : '', type: this.$auth.hasPermi('extend:process-equ-value-bom:create') ? 'button' : '',

View File

@ -62,7 +62,9 @@ export default {
color: 'primary', color: 'primary',
}, },
{ {
type: 'separate', type: this.$auth.hasPermi('base:quality-inspection-box-btn:create')
? 'separate'
: '',
}, },
{ {
type: this.$auth.hasPermi('base:quality-inspection-box-btn:create') type: this.$auth.hasPermi('base:quality-inspection-box-btn:create')

View File

@ -74,7 +74,9 @@ export default {
color: 'primary', color: 'primary',
}, },
{ {
type: 'separate', type: this.$auth.hasPermi('base:quality-inspection-box-permissions:create')
? 'separate'
: '',
}, },
{ {
type: this.$auth.hasPermi('base:quality-inspection-box-permissions:create') type: this.$auth.hasPermi('base:quality-inspection-box-permissions:create')

View File

@ -1,7 +1,7 @@
<!-- <!--
* @Author: zhp * @Author: zhp
* @Date: 2023-12-08 13:46:17 * @Date: 2023-12-08 13:46:17
* @LastEditTime: 2024-03-25 08:50:25 * @LastEditTime: 2024-04-10 16:46:44
* @LastEditors: zhp * @LastEditors: zhp
* @Description: * @Description:
--> -->
@ -73,13 +73,13 @@
</el-form-item> </el-form-item>
</el-row> </el-row>
<el-row :gutter="24" v-for="(item,index) in ingredientList" :key="item.id"> <el-row :gutter="24" v-for="(item,index) in ingredientList" :key="item.id">
<el-col :span="6"> <el-col :span="4">
<el-form-item label="成分"> <el-form-item label="成分">
{{ item.name }} {{ item.name }}
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :prop="'checkValueList.' + index + '.checkValue'" label="成分含量" <el-form-item :prop="'checkValueList.' + index + '.minCheckValue'" label="最小检测值"
:rules="[{ required: true, message: '成分含量不能为空', trigger: 'blur' }]"> :rules="[{ required: true, message: '成分含量不能为空', trigger: 'blur' }]">
<el-input oninput="value=value.replace(/[^\d]/g,'')" :disabled="isdetail" <el-input oninput="value=value.replace(/[^\d]/g,'')" :disabled="isdetail"
style="width: 90%;margin-right: 10px;" :max="item.maxValue" :min='item.minValue' style="width: 90%;margin-right: 10px;" :max="item.maxValue" :min='item.minValue'
@ -93,11 +93,25 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :prop="'checkValueList.' + index + '.maxCheckValue'" label="最大检测值"
:rules="[{ required: true, message: '成分含量不能为空', trigger: 'blur' }]">
<el-input oninput="value=value.replace(/[^\d]/g,'')" :disabled="isdetail"
style="width: 90%;margin-right: 10px;" :max="item.maxValue" :min='item.minValue'
v-model.number="dataForm.checkValueList[index].checkValue"
@change="judgeValue(arguments[0],item.minValue,item.maxValue,index)"></el-input>
<span v-if="dataForm.checkValueList[index].showIcon">
<!-- <i class="el-icon-success"></i> -->
<svg-icon v-if="dataForm.checkValueList[index].isStandard" icon-class="standards" />
<svg-icon v-else icon-class="noStandards" />
</span>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item :prop="'checkValueList.' + index + '.minValue'" label="最小值"> <el-form-item :prop="'checkValueList.' + index + '.minValue'" label="最小值">
<el-input disabled style="width: 90%;margin-right: 10px;" v-model="item.minValue"></el-input> <el-input disabled style="width: 90%;margin-right: 10px;" v-model="item.minValue"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="4">
<el-form-item :prop="'checkValueList.' + index + '.minValue'" label="最大值"> <el-form-item :prop="'checkValueList.' + index + '.minValue'" label="最大值">
<el-input disabled style="width: 90%;margin-right: 10px;" v-model="item.maxValue"></el-input> <el-input disabled style="width: 90%;margin-right: 10px;" v-model="item.maxValue"></el-input>
</el-form-item> </el-form-item>
@ -304,7 +318,9 @@ export default {
mainId: this.dataForm.id, mainId: this.dataForm.id,
id:ele.id, id:ele.id,
checkDetId: ele.checkDetId, checkDetId: ele.checkDetId,
checkValue: ele.checkValue minCheckValue: ele.minCheckValue,
maxCheckValue: ele.maxCheckValue
})) }))
}) })
Promise.all(array).then(res => { Promise.all(array).then(res => {
@ -344,7 +360,9 @@ export default {
array.push(this.createDet({ array.push(this.createDet({
mainId: response.data, mainId: response.data,
checkDetId: ele.checkDetId, checkDetId: ele.checkDetId,
checkValue: ele.checkValue minCheckValue: ele.minCheckValue,
maxCheckValue: ele.maxCheckValue
})) }))
}) })
Promise.all(array).then(res => { Promise.all(array).then(res => {
@ -382,7 +400,8 @@ export default {
return { return {
mainId: null, mainId: null,
checkDetId: ele.id, checkDetId: ele.id,
checkValue: null, minCheckValue:null,
maxCheckValue: null,
isStandard: true, isStandard: true,
showIcon:false, showIcon:false,
} }

View File

@ -141,7 +141,8 @@ export default {
color: 'primary', color: 'primary',
}, },
{ {
type: 'separate', type: this.$auth.hasPermi('base:quality-hot-material:create') ? 'separate' : '',
// type: 'separate',
}, },
{ {
type: this.$auth.hasPermi('base:quality-hot-material:create') ? 'button' : '', type: this.$auth.hasPermi('base:quality-hot-material:create') ? 'button' : '',

View File

@ -105,7 +105,10 @@ export default {
// name: 'reset', // name: 'reset',
// }, // },
{ {
type: 'separate', // type: 'separate',
type: this.$auth.hasPermi('base:quality-inspection-det:create')
? 'separate'
: '',
}, },
{ {
type: this.$auth.hasPermi('base:quality-inspection-det:create') type: this.$auth.hasPermi('base:quality-inspection-det:create')

View File

@ -147,7 +147,10 @@ export default {
// name: 'reset', // name: 'reset',
// }, // },
{ {
type: 'separate', type: this.$auth.hasPermi('base:quality-inspection-type:create')
? 'separate'
: '',
// type: 'separate',
}, },
{ {
type: this.$auth.hasPermi('base:quality-inspection-type:create') type: this.$auth.hasPermi('base:quality-inspection-type:create')

View File

@ -98,7 +98,8 @@ export default {
color: 'primary', color: 'primary',
}, },
{ {
type: 'separate', type: this.$auth.hasPermi('base:quality-scrap-det:create') ? 'separate' : '',
// type: 'separate',
}, },
{ {
type: this.$auth.hasPermi('base:quality-scrap-det:create') ? 'button' : '', type: this.$auth.hasPermi('base:quality-scrap-det:create') ? 'button' : '',

View File

@ -125,7 +125,8 @@ export default {
color: 'primary', color: 'primary',
}, },
{ {
type: 'separate', type: this.$auth.hasPermi('base:quality-scrap-det:create') ? 'separate' : '',
// type: 'separate',
}, },
{ {
type: this.$auth.hasPermi('base:quality-scrap-det:create') ? 'button' : '', type: this.$auth.hasPermi('base:quality-scrap-det:create') ? 'button' : '',

View File

@ -88,7 +88,8 @@ export default {
color: 'primary', color: 'primary',
}, },
{ {
type: 'separate', type: this.$auth.hasPermi('base:quality-scrap-type:create') ? 'separate' : '',
// type: 'separate',
}, },
{ {
type: this.$auth.hasPermi('base:quality-scrap-type:create') ? 'button' : '', type: this.$auth.hasPermi('base:quality-scrap-type:create') ? 'button' : '',

View File

@ -269,6 +269,13 @@ export default {
name: 'search', name: 'search',
color: 'primary', color: 'primary',
}, },
{
type: this.$auth.hasPermi(
'monitoring:equipment-traceability:export'
)
? 'separate'
: '',
},
{ {
type: this.$auth.hasPermi( type: this.$auth.hasPermi(
'monitoring:equipment-traceability:export' 'monitoring:equipment-traceability:export'

View File

@ -2,7 +2,7 @@
* @Author: zwq * @Author: zwq
* @Date: 2023-08-01 14:55:51 * @Date: 2023-08-01 14:55:51
* @LastEditors: zhp * @LastEditors: zhp
* @LastEditTime: 2024-04-07 16:19:18 * @LastEditTime: 2024-04-10 16:31:48
* @Description: * @Description:
--> -->
<template> <template>
@ -161,6 +161,13 @@ export default {
// type: 'separate', // type: 'separate',
// type: this.$auth.hasPermi('base:product:create') ? 'separate' : '', // type: this.$auth.hasPermi('base:product:create') ? 'separate' : '',
// }, // },
{
type: this.$auth.hasPermi(
'monitoring:materiel-date-from:export'
)
? 'separate'
: '',
},
{ {
type: this.$auth.hasPermi('monitoring:materiel-date-from:export') ? 'button' : '', type: this.$auth.hasPermi('monitoring:materiel-date-from:export') ? 'button' : '',
btnName: '导出', btnName: '导出',

View File

@ -169,7 +169,12 @@ export default {
color: 'primary', color: 'primary',
}, },
{ {
type: 'separate', type: this.$auth.hasPermi(
'base:quality-inspection-record:create'
)
? 'separate'
: '',
// type: 'separate',
}, },
{ {
type: this.$auth.hasPermi( type: this.$auth.hasPermi(