| | |
| | | {{scope.row.isQuality ? "是" : "否"}} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="是否入库" prop="isInbound" width="100"> |
| | | <template #default="scope"> |
| | | {{ scope.row.isInbound ? "是" : "否" }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="是否报工" prop="isReportWork" width="100"> |
| | | <template #default="scope"> |
| | | {{ scope.row.isReportWork ? "是" : "否" }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center" fixed="right" width="150"> |
| | | <template #default="scope"> |
| | | <el-button type="primary" link size="small" @click="handleEdit(scope.row)" :disabled="scope.row.isComplete">编辑</el-button> |
| | |
| | | <!-- <span v-if="item.unit" class="product-unit">{{ item.unit }}</span> --> |
| | | </div> |
| | | <el-tag type="primary" class="product-tag" v-if="item.isQuality">质检</el-tag> |
| | | <div class="product-flags"> |
| | | <span>入库:{{ item.isInbound ? "是" : "否" }}</span> |
| | | <span>报工:{{ item.isReportWork ? "是" : "否" }}</span> |
| | | </div> |
| | | </div> |
| | | <div v-else class="product-info empty">暂无产品信息</div> |
| | | </div> |
| | |
| | | </el-form> |
| | | |
| | | <template #footer> |
| | | <el-button @click="closeDialog">取消</el-button> |
| | | <el-button type="primary" @click="handleSubmit" :loading="submitLoading">确定</el-button> |
| | | <el-button @click="closeDialog">取消</el-button> |
| | | </template> |
| | | </el-dialog> |
| | | |
| | |
| | | |
| | | // 编辑 |
| | | const handleEdit = (row) => { |
| | | console.log(1111, row.isQuality); |
| | | operationType.value = 'edit'; |
| | | form.value = { |
| | | id: row.id, |
| | |
| | | margin: 10px 0; |
| | | } |
| | | |
| | | .product-flags { |
| | | margin-top: 8px; |
| | | display: flex; |
| | | justify-content: center; |
| | | gap: 12px; |
| | | color: #606266; |
| | | font-size: 12px; |
| | | } |
| | | |
| | | .card-footer { |
| | | display: flex; |
| | | justify-content: space-around; |