| | |
| | | <up-input v-model="form.checkTime" |
| | | placeholder="请选择检测日期" |
| | | readonly /> |
| | | <!-- <template #right> |
| | | <template #right> |
| | | <up-icon name="calendar" |
| | | @click="showDatePicker"></up-icon> |
| | | </template> --> |
| | | </template> |
| | | </up-form-item> |
| | | <!-- 检验项目 --> |
| | | <view class="inspection-items-container"> |
| | |
| | | </up-button> |
| | | </view> |
| | | <!-- 日期选择器 --> |
| | | <up-popup v-model:show="showDate" |
| | | mode="date" |
| | | :start-year="2020" |
| | | :end-year="2030" |
| | | @confirm="confirmDate" /> |
| | | <up-popup :show="showDate" |
| | | mode="bottom" |
| | | @close="showDate = false"> |
| | | <up-datetime-picker :show="true" |
| | | v-model="pickerValue" |
| | | @confirm="confirmDate" |
| | | @cancel="showDate = false" |
| | | mode="date" /> |
| | | </up-popup> |
| | | <!-- 工序选择 --> |
| | | <up-action-sheet :show="showprocessSheet" |
| | | :actions="processOptions" |
| | |
| | | qualityInspectParamInfo, |
| | | qualityInspectDetailByProductId, |
| | | getQualityTestStandardParamByTestStandardId, |
| | | list, |
| | | } from "@/api/qualityManagement/materialInspection.js"; |
| | | import { getProcessList } from "@/api/productionManagement/processManagement.js"; |
| | | import { userListNoPage } from "@/api/system/user.js"; |
| | | |
| | | // 显示提示信息 |
| | |
| | | |
| | | // 获取工序列表 |
| | | const getprocessList = () => { |
| | | list().then(res => { |
| | | processList.value = res.data; |
| | | getProcessList({ size: -1, current: -1 }).then(res => { |
| | | processList.value = res.data?.records || res.data || []; |
| | | }); |
| | | }; |
| | | |
| | |
| | | loading.value = true; |
| | | |
| | | form.value.inspectType = 1; |
| | | if (isEdit.value) { |
| | | tableData.value.forEach(item => { |
| | | delete item.id; |
| | | }); |
| | | } |
| | | // if (!isEdit.value) { |
| | | tableData.value.forEach(item => { |
| | | delete item.id; |
| | | }); |
| | | // } |
| | | |
| | | const data = { ...form.value, qualityInspectParams: tableData.value }; |
| | | data.quantity = Number(data.quantity); |