| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="数量:" prop="quantity"> |
| | | <el-input-number :step="0.01" :min="0" style="width: 100%" v-model="form.quantity" placeholder="请输入" clearable :precision="2" :disabled="quantityDisabled"/> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="30"> |
| | | <el-col :span="12"> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="数量:" prop="quantity"> |
| | | <el-input-number :step="0.01" :min="0" style="width: 100%" v-model="form.quantity" placeholder="请输入" clearable :precision="2" :disabled="quantityDisabled"/> |
| | | <el-form-item label="不良原因:" prop="defectiveReason"> |
| | | <el-select v-model="form.defectiveReason" placeholder="请选择" clearable style="width: 100%"> |
| | | <el-option :label="item.label" :value="item.value" v-for="(item,index) in defective_reason" :key="index" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | productModelId: "", |
| | | model: "", |
| | | testStandardId: "", |
| | | defectiveReason: undefined, |
| | | unit: "", |
| | | quantity: "", |
| | | checkCompany: "", |
| | |
| | | }); |
| | | const supplierList = ref([]); |
| | | const productOptions = ref([]); |
| | | const { defective_reason } = proxy.useDict("defective_reason"); |
| | | const tableColumn = ref([ |
| | | { |
| | | label: "指标", |
| | |
| | | > |
| | | </div> |
| | | <div> |
| | | <el-button type="primary" @click="openForm('add')">新增</el-button> |
| | | <!-- <el-button type="primary" @click="openForm('add')">新增</el-button>--> |
| | | <el-button @click="handleOut">导出</el-button> |
| | | <el-button type="danger" plain @click="handleDelete">删除</el-button> |
| | | </div> |
| | |
| | | width: 100 |
| | | }, |
| | | { |
| | | label: "不良数量", |
| | | prop: "defectiveQuantity", |
| | | width: 100 |
| | | }, |
| | | { |
| | | label: "不良原因", |
| | | prop: "defectiveReason", |
| | | width: 100 |
| | | }, |
| | | { |
| | | label: "检测单位", |
| | | prop: "checkCompany", |
| | | width: 120 |
| | |
| | | </el-form-item> |
| | | <el-form-item label="类别" prop="inspectType"> |
| | | <el-select v-model="form.inspectType" placeholder="请选择类别" style="width: 100%"> |
| | | <el-option label="原材料检验" value="0" /> |
| | | <!-- <el-option label="原材料检验" value="0" />--> |
| | | <el-option label="过程检验" value="1" /> |
| | | <el-option label="出厂检验" value="2" /> |
| | | <el-option label="成品检验" value="2" /> |
| | | <el-option label="巡检" value="3" /> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | const map = { |
| | | 0: '原材料检验', |
| | | 1: '过程检验', |
| | | 2: '出厂检验' |
| | | 2: '成品检验' |
| | | } |
| | | return map[val] || val |
| | | } |