| src/pages/qualityManagement/materialInspection/add.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/pages/qualityManagement/materialInspection/detail.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/pages/qualityManagement/materialInspection/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/pages/qualityManagement/materialInspection/add.vue
@@ -114,11 +114,12 @@ border-bottom> <up-input v-model="form.checkTime" placeholder="请选择检测日期" readonly /> <!-- <template #right> <up-icon name="calendar" readonly @click="showDatePicker" /> <template #right> <up-icon name="arrow-right" @click="showDatePicker"></up-icon> </template> --> </template> </up-form-item> <!-- <up-form-item label="采购订单号" prop="purchaseContractNo" @@ -191,11 +192,15 @@ </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="showSupplierSheet" :actions="supplierOptions" @@ -337,6 +342,7 @@ const loading = ref(false); // 日期选择器 const showDate = ref(false); const pickerValue = ref(Date.now()); // 供应商选择 const showSupplierSheet = ref(false); // 产品选择 @@ -483,6 +489,7 @@ // 确认日期选择 const confirmDate = e => { form.value.checkTime = dayjs(e.value).format("YYYY-MM-DD"); showDate.value = false; }; // 选择供应商 @@ -705,7 +712,7 @@ loading.value = true; form.value.inspectType = 0; if (isEdit.value) { if (!isEdit.value) { tableData.value.forEach(item => { delete item.id; }); src/pages/qualityManagement/materialInspection/detail.vue
@@ -15,7 +15,8 @@ </view> <text class="header-title">{{ detailData.productName || '-' }}</text> <view class="status-tags"> <u-tag :type="getTagType(detailData.checkResult)" <u-tag v-if="detailData.checkResult" :type="getTagType(detailData.checkResult)" size="small" class="status-tag"> {{ detailData.checkResult || '-' }} src/pages/qualityManagement/materialInspection/index.vue
@@ -76,7 +76,8 @@ </view> </view> <view class="status-tags"> <u-tag :type="getTagType(item.checkResult)" <u-tag v-if="item.checkResult" :type="getTagType(item.checkResult)" size="mini" class="status-tag"> {{ item.checkResult }} @@ -117,29 +118,29 @@ </view> <!-- 操作按钮 --> <view class="action-buttons"> <!-- <u-button type="primary" <u-button type="primary" size="small" class="action-btn" :disabled="item.inspectState" @click.stop="startInspection(item)"> 编辑 </u-button> --> </u-button> <u-button type="info" size="small" class="action-btn" @click.stop="viewDetail(item)"> 详情 </u-button> <!-- <u-button type="success" <u-button type="success" size="small" class="action-btn" :disabled="item.inspectState" @click.stop="submitInspection(item)"> 提交 </u-button> --> </u-button> </view> <view class="action-buttons"> <!-- <u-button type="info" <u-button type="info" size="small" class="action-btn" @click.stop="viewFileList(item)"> @@ -151,7 +152,7 @@ :disabled="item.inspectState || item.checkName !== ''" @click.stop="assignInspector(item)"> 分配检验员 </u-button> --> </u-button> </view> </view> </view> @@ -163,12 +164,12 @@ </view> <!-- 分页组件 --> <!-- 浮动新增按钮 --> <!-- <view class="fab-button" <view class="fab-button" @click="addInspection"> <up-icon name="plus" size="24" color="#ffffff"></up-icon> </view> --> </view> <!-- 日期选择器 --> <up-popup v-model:show="showDate" mode="date"