| | |
| | | {{ process.status ? '启用' : '停用' }} |
| | | </el-tag> |
| | | <el-tag size="small" |
| | | :type="process.isQuality ? 'warning' : 'info'" |
| | | :type="process.isQuality == 1 ? 'warning' : 'info'" |
| | | style="margin-left: 8px"> |
| | | {{ process.isQuality ? '质检' : '非质检' }} |
| | | {{ process.isQuality == 1 ? '质检' : '非质检' }} |
| | | </el-tag> |
| | | </div> |
| | | <span class="param-count">工资定额: ¥{{ process.salaryQuota || 0 }}</span> |
| | |
| | | <el-form-item label="是否质检" |
| | | prop="isQuality"> |
| | | <el-switch v-model="processForm.isQuality" |
| | | :active-value="true" |
| | | inactive-value="false" /> |
| | | :active-value="1" |
| | | :inactive-value="0" /> |
| | | </el-form-item> |
| | | <el-form-item label="工序描述" |
| | | prop="remark"> |
| | |
| | | </el-form-item> |
| | | <el-form-item label="是否必填"> |
| | | <el-switch v-model="selectedParam.isRequired" |
| | | :active-value="1" |
| | | :inactive-value="0" /> |
| | | :active-value="true" |
| | | :inactive-value="false" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-empty v-else |
| | |
| | | <el-form-item label="是否必填" |
| | | prop="isRequired"> |
| | | <el-switch v-model="editParamForm.isRequired" |
| | | :active-value="1" |
| | | :inactive-value="0" /> |
| | | :active-value="true" |
| | | :inactive-value="false" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <template #footer> |
| | |
| | | no: "", |
| | | name: "", |
| | | salaryQuota: null, |
| | | isQuality: false, |
| | | isQuality: 0, |
| | | remark: "", |
| | | status: true, |
| | | }); |
| | |
| | | minValue: null, |
| | | maxValue: null, |
| | | sort: 1, |
| | | isRequired: 0, |
| | | isRequired: false, |
| | | tenantId: 1, |
| | | }); |
| | | const editParamRules = { |
| | |
| | | label: "是否必填", |
| | | prop: "isRequired", |
| | | dataType: "tag", |
| | | formatType: row => (row.isRequired === 1 ? "success" : "info"), |
| | | formatData: row => (row.isRequired === 1 ? "是" : "否"), |
| | | formatType: row => (row.isRequired === true ? "success" : "info"), |
| | | formatData: row => (row.isRequired === true ? "是" : "否"), |
| | | }, |
| | | { |
| | | label: "操作", |
| | |
| | | processForm.no = ""; |
| | | processForm.name = ""; |
| | | processForm.salaryQuota = null; |
| | | processForm.isQuality = false; |
| | | processForm.isQuality = 0; |
| | | processForm.remark = ""; |
| | | processForm.status = true; |
| | | processDialogVisible.value = true; |
| | |
| | | processForm.no = process.no; |
| | | processForm.name = process.name; |
| | | processForm.salaryQuota = process.salaryQuota; |
| | | processForm.isQuality = process.isQuality || false; |
| | | processForm.isQuality = process.isQuality || 0; |
| | | processForm.remark = process.remark || ""; |
| | | processForm.status = process.status; |
| | | processDialogVisible.value = true; |
| | |
| | | editParamForm.minValue = row.minValue; |
| | | editParamForm.maxValue = row.maxValue; |
| | | editParamForm.sort = row.sort || 1; |
| | | editParamForm.isRequired = row.isRequired || 0; |
| | | editParamForm.isRequired = row.isRequired || false; |
| | | editParamForm.tenantId = 1; |
| | | editParamDialogVisible.value = true; |
| | | }; |
| | |
| | | standardValue: selectedParam.value.standardValue, |
| | | minValue: selectedParam.value.minValue, |
| | | maxValue: selectedParam.value.maxValue, |
| | | isRequired: selectedParam.value.isRequired || 0, |
| | | isRequired: selectedParam.value.isRequired || false, |
| | | tenantId: 1, |
| | | }) |
| | | .then(() => { |
| | |
| | | box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); |
| | | display: flex; |
| | | flex-direction: column; |
| | | min-width: 0; |
| | | } |
| | | |
| | | .param-table-wrapper { |
| | | flex: 1; |
| | | padding: 0 20px 20px; |
| | | overflow: auto; |
| | | min-width: 100%; |
| | | } |
| | | |
| | | /* 表格横向滚动 */ |
| | | :deep(.el-table) { |
| | | // min-width: 800px; |
| | | .param-table-wrapper :deep(.el-table) { |
| | | min-width: 100%; |
| | | } |
| | | |
| | | .param-table-wrapper :deep(.el-table__body-wrapper) { |
| | | overflow-x: auto; |
| | | } |
| | | |
| | | .pagination-container { |
| | | margin-top: 10px; |
| | | overflow-x: auto; |
| | | padding-bottom: 8px; |
| | | } |
| | | |
| | | .pagination-container .el-pagination { |
| | | white-space: nowrap; |
| | | } |
| | | |
| | | /* 响应式调整 */ |
| | | @media screen and (max-width: 768px) { |
| | | .pagination-container { |
| | | font-size: 12px; |
| | | } |
| | | |
| | | .pagination-container .el-pagination__sizes { |
| | | margin-right: 8px; |
| | | } |
| | | |
| | | .pagination-container .el-pagination__jump { |
| | | margin-left: 8px; |
| | | } |
| | | |
| | | .pagination-container .el-pagination__page-size { |
| | | font-size: 12px; |
| | | } |
| | | } |
| | | |
| | | .empty-tip { |