| | |
| | | <el-table-column label="单位" |
| | | prop="unit" |
| | | width="100" /> |
| | | <el-table-column label="计费类型" |
| | | prop="type" |
| | | width="100"> |
| | | <template #default="scope"> |
| | | {{scope.row.type==0 ? "计时" : "计件"}} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="是否质检" |
| | | prop="isQuality" |
| | | width="100"> |
| | |
| | | {{ item.model }} |
| | | <!-- <span v-if="item.unit" class="product-unit">{{ item.unit }}</span> --> |
| | | </div> |
| | | <el-tag class="product-tag" |
| | | :type="item.type == 1 ? 'primary' : 'success'" |
| | | style="margin-left: 8px;">{{ item.type==0?'计时':'计件' }}</el-tag> |
| | | <el-tag type="primary" |
| | | class="product-tag" |
| | | style="margin-left: 8px;" |
| | | v-if="item.isQuality">质检</el-tag> |
| | | <el-tag type="primary" |
| | | class="product-tag" |
| | | :style="item.isQuality?'margin-left:8px':''" |
| | | style="margin-left: 8px;" |
| | | v-if="item.isProduction">生产</el-tag> |
| | | </div> |
| | | <div v-else |
| | |
| | | v-else> |
| | | <span>{{ form.unit }}</span> |
| | | </el-form-item> |
| | | <el-form-item label="计费类型" |
| | | prop="type"> |
| | | <el-radio-group v-model="form.type"> |
| | | <el-radio :label="0">计时</el-radio> |
| | | <el-radio :label="1">计件</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="是否质检" |
| | | prop="isQuality"> |
| | | <el-switch v-model="form.isQuality" |
| | |
| | | model: "", |
| | | unit: "", |
| | | isQuality: false, |
| | | type: 0, |
| | | isProduction: false, |
| | | }); |
| | | |
| | |
| | | model: row.model || "", |
| | | unit: row.unit || "", |
| | | isQuality: row.isQuality, |
| | | type: row.type || 0, |
| | | isProduction: row.isProduction, |
| | | }; |
| | | dialogVisible.value = true; |
| | |
| | | operationName: getProcessName(form.value.technologyOperationId), |
| | | productModelId: form.value.productModelId, |
| | | isQuality: form.value.isQuality, |
| | | type: form.value.type, |
| | | isProduction: form.value.isProduction, |
| | | dragSort, |
| | | }) |
| | |
| | | technologyOperationId: form.value.technologyOperationId, |
| | | productModelId: form.value.productModelId, |
| | | isQuality: form.value.isQuality, |
| | | type: form.value.type, |
| | | isProduction: form.value.isProduction, |
| | | dragSort, |
| | | }); |
| | |
| | | operationName: getProcessName(form.value.technologyOperationId), |
| | | productModelId: form.value.productModelId, |
| | | isQuality: form.value.isQuality, |
| | | type: form.value.type, |
| | | isProduction: form.value.isProduction, |
| | | }) |
| | | : addOrUpdateProcessRouteItem1({ |
| | |
| | | productModelId: form.value.productModelId, |
| | | id: form.value.id, |
| | | isQuality: form.value.isQuality, |
| | | type: form.value.type, |
| | | isProduction: form.value.isProduction, |
| | | }); |
| | | |
| | |
| | | model: "", |
| | | unit: "", |
| | | isQuality: false, |
| | | type: 0, |
| | | isProduction: false, |
| | | }; |
| | | formRef.value?.resetFields(); |
| | |
| | | processOptions.value.forEach(item => { |
| | | if (item.id == value) { |
| | | form.value.isQuality = item.isQuality; |
| | | form.value.type = item.type || 0; |
| | | form.value.isProduction = item.isProduction; |
| | | } |
| | | }); |