当前状态{{ processNodeData.measureStatusName }}
diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts
index 574d62e..df5e257 100644
--- a/src/api/business/schedule/interchangeReceipt.ts
+++ b/src/api/business/schedule/interchangeReceipt.ts
@@ -61,9 +61,18 @@
}
// 关联委托书的且是已收入的样品的列表
+// export function getSampleList(data: ISampleListQuery) {
+// return request({
+// url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`,
+// method: 'post',
+// data,
+// })
+// }
+
+// 查询样品列表
export function getSampleList(data: ISampleListQuery) {
return request({
- url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`,
+ url: `/customer/sample/listPageByInterchange?offset=${data.offset}&limit=${data.limit}`,
method: 'post',
data,
})
diff --git a/src/views/business/board/overdueReminder/detail.vue b/src/views/business/board/overdueReminder/detail.vue
index fd22d7c..6e72218 100644
--- a/src/views/business/board/overdueReminder/detail.vue
+++ b/src/views/business/board/overdueReminder/detail.vue
@@ -1,4 +1,4 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
-
-
-
-
-
-
- 确定
-
-
- 取消
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
-
-
+
+
+
+ 确定
+
+
+ 取消
+
+
+
diff --git a/src/views/business/schedule/order/orderEdit.vue b/src/views/business/schedule/order/orderEdit.vue
index 68ced75..142db45 100644
--- a/src/views/business/schedule/order/orderEdit.vue
+++ b/src/views/business/schedule/order/orderEdit.vue
@@ -313,6 +313,10 @@
// 点击保存
const saveForm = (formEl: FormInstance | undefined) => {
+ if (!list.value.length) {
+ ElMessage.warning('要求样品清单不能为空')
+ return
+ }
// 检查表格是否存在增加行信息没有完善的情况
const result = checkList()
if (result !== 'pass') {
diff --git a/src/views/business/schedule/order/selectSample.vue b/src/views/business/schedule/order/selectSample.vue
index 720a2e3..5c07d92 100644
--- a/src/views/business/schedule/order/selectSample.vue
+++ b/src/views/business/schedule/order/selectSample.vue
@@ -29,8 +29,8 @@
// 查询条件
const listQuery = ref({
- // sampleNo: '', // 样品编号
- // sampleName: '', // 样品名称
+ sampleNo: '', // 样品编号
+ sampleName: '', // 样品名称
// sampleModel: '', // 型号
orderId: props.orderId || '', // 委托书id
customerId: props.customerId || '', // 委托方id
@@ -51,8 +51,8 @@
{ text: '委托方代码', value: 'customerNo', align: 'center' },
{ text: '委托方名称', value: 'customerName', align: 'center' },
{ text: '检定周期', value: 'measurePeriod', align: 'center' },
- { text: '上次检定时间', value: 'measureLastTime', align: 'center', width: '180px' },
- { text: '样品状态', value: 'sampleSatusName', align: 'center', width: '80px' },
+ // { text: '上次检定时间', value: 'measureLastTime', align: 'center', width: '180px' },
+ // { text: '样品状态', value: 'sampleSatusName', align: 'center', width: '80px' },
{ text: '备注', value: 'remark', align: 'center', width: '180px' },
])
// 表格数据
@@ -97,12 +97,14 @@
listQuery.value = {
sampleNo: '', // 样品编号
sampleName: '', // 样品名称
- sampleModel: '', // 型号
- customerNo: '', // 委托方代码
- customerName: '', // 委托方名称
- startTime: '', // 检定开始时间
- endTime: '', // 检定结束时间
- overtimeStatus: '', // 样品超期状态 1已超期、0未超期、空字符串 已超期+未超期
+ // sampleModel: '', // 型号
+ orderId: props.orderId || '', // 委托书id
+ customerId: props.customerId || '', // 委托方id
+ customerNo: props.customerNo || '', // 委托方代码
+ // customerName: '', // 委托方名称
+ // startTime: '', // 检定开始时间
+ // endTime: '', // 检定结束时间
+ // overtimeStatus: '', // 样品超期状态 1已超期、0未超期、空字符串 已超期+未超期
offset: 1,
limit: 20,
}
@@ -146,48 +148,57 @@
-
-
-
-
-
-
- 确定
-
-
- 取消
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (listQuery.offset - 1) * listQuery.limit + scope.$index + 1 }}
+
+
-
-
+
+
+
+ 确定
+
+
+ 取消
+
+
+
+
diff --git a/src/views/business/schedule/task/components/distributeDialog.vue b/src/views/business/schedule/task/components/distributeDialog.vue
index 6474dce..fb6a3f5 100644
--- a/src/views/business/schedule/task/components/distributeDialog.vue
+++ b/src/views/business/schedule/task/components/distributeDialog.vue
@@ -10,7 +10,7 @@
const dialogVisible = ref(false) // 弹窗显示
const sampleId = ref('') // 样品id
const orderId = ref('') // 委托单id
-
+const type = ref('distribute')
// 委托书-证书类别列表
const certificationTypes = ref
([])
// 获取字典值
@@ -53,10 +53,16 @@
}
// 初始化弹窗
-const initDialog = (orderid: string, sampleid: string) => {
+const initDialog = (orderid: string, sampleid: string, sampleStatus: string) => {
dialogVisible.value = true
sampleId.value = sampleid
orderId.value = orderid
+ if (sampleStatus === '3') { // 检测中
+ type.value = 'testing'
+ }
+ else if (sampleStatus === '2') { // 待分发
+ type.value = 'distribute'
+ }
getInfo()
}
@@ -105,7 +111,7 @@
批量添加
-
+
确定
diff --git a/src/views/business/schedule/task/components/processConfig.vue b/src/views/business/schedule/task/components/processConfig.vue
index 43f2165..bb66076 100644
--- a/src/views/business/schedule/task/components/processConfig.vue
+++ b/src/views/business/schedule/task/components/processConfig.vue
@@ -56,7 +56,8 @@
if (props.list.length > 0) {
processList.value = props.list as ISchedule[]
}
-})
+},
+{ deep: true, immediate: true })
// 点击添加流程
const processAdd = () => {
@@ -103,6 +104,7 @@
const saveProcess = () => {
const form = {
measureProcessList: processList.value,
+ executiveList: processList.value,
orderId: props.orderId,
sampleId: props.sampleId,
}
@@ -138,7 +140,7 @@
-
+
diff --git a/src/views/business/schedule/task/components/processNode.vue b/src/views/business/schedule/task/components/processNode.vue
index d76d41d..fbe1c47 100644
--- a/src/views/business/schedule/task/components/processNode.vue
+++ b/src/views/business/schedule/task/components/processNode.vue
@@ -25,7 +25,7 @@
}
},
},
- // 是否为详情展示页面-暂时无用
+ // 是否为详情展示页面
detail: {
type: Boolean,
default: false,
@@ -111,10 +111,10 @@
{{ props.step }}