@@ -200,6 +209,7 @@ export default {
scheduleForm: {
qcOperator: '',
qcUserName: '',
+ qcContact: '',
planStartDate: '',
planEndDate: '',
remark: ''
@@ -278,6 +288,7 @@ export default {
id: item.id || item.userId,
qcName: item.userDisplay || item.userName,
userName: item.userName,
+ qcContact: item.userMobile || '',
region: ''
}))
console.log('[排程视图] QC列表加载成功:', this.qcList)
@@ -329,6 +340,7 @@ export default {
this.scheduleForm = {
qcOperator: qcRow ? qcRow.userName : '',
qcUserName: qcRow ? qcRow.qcName : '',
+ qcContact: qcRow ? (qcRow.qcContact || '') : '',
planStartDate: '',
planEndDate: '',
remark: ''
@@ -339,6 +351,12 @@ export default {
this.scheduleForm.planStartDate = this.currentRow.planStartDate || ''
this.scheduleForm.planEndDate = this.currentRow.planEndDate || this.currentRow.planStartDate || ''
this.scheduleForm.remark = this.currentRow.scheduleRemark || ''
+ // 仅当修改的是同一 QC 时才回显已保存的联系方式;换选其它 QC 则用其手机号自动带出的值,避免残留原 QC 联系方式 - rqrq
+ const savedQc = this.currentRow.qcOperator
+ const selectedQc = qcRow ? qcRow.userName : ''
+ if (savedQc && selectedQc && savedQc === selectedQc) {
+ this.scheduleForm.qcContact = this.currentRow.qcContact || this.scheduleForm.qcContact
+ }
}
this.scheduleDialogVisible = true
@@ -361,6 +379,7 @@ export default {
requestNos: this.requestNos,
site: this.$store.state.user.site,
qcOperator: this.scheduleForm.qcOperator,
+ qcContact: this.scheduleForm.qcContact,
planStartDate: this.scheduleForm.planStartDate,
planEndDate: this.scheduleForm.planEndDate || this.scheduleForm.planStartDate,
remark: this.scheduleForm.remark
diff --git a/src/views/modules/inspection/inspectionRequestList.vue b/src/views/modules/inspection/inspectionRequestList.vue
index b1fba73..330228c 100644
--- a/src/views/modules/inspection/inspectionRequestList.vue
+++ b/src/views/modules/inspection/inspectionRequestList.vue
@@ -892,6 +892,11 @@
+
+
+ {{ scope.row.origShipMethod }}
+
+
@@ -904,6 +909,11 @@
+
+
+ {{ scope.row.origCrd }}
+
+
{
console.error('加载PO列表失败:', error)
this.addPoSelectList = []
+ this.filteredAddPoSelectList = []
this.addPoSelectTotal = 0
this.$message.error('加载PO列表失败')
}).finally(() => {
- this.filterAddPoSelectList()
this.addPoSelectLoading = false
})
},
- // 选择PO明细弹窗-前端筛选(与新增一致:PO、Item、D_CRD)
+ // 选择PO明细弹窗-查询:按筛选条件重新向后端发起分页查询(从第一页开始)- rqrq
filterAddPoSelectList () {
- let result = [...this.addPoSelectList]
- const filter = this.addPoSelectFilter || {}
- const orderNoKeyword = String(filter.orderNo || '').toLowerCase().trim()
- const itemKeyword = String(filter.item || '').toLowerCase().trim()
- const crdStart = String(filter.crdStart || '').trim()
- const crdEnd = String(filter.crdEnd || '').trim()
-
- if (orderNoKeyword) {
- result = result.filter(item => {
- const orderRef1 = String(item.orderRef1 || '').toLowerCase()
- const orderNo = String(item.orderNo || item.order_no || '').toLowerCase()
- return orderRef1.includes(orderNoKeyword) || orderNo.includes(orderNoKeyword)
- })
- }
- if (itemKeyword) {
- result = result.filter(item => String(item.item || '').toLowerCase().includes(itemKeyword))
- }
- if (crdStart || crdEnd) {
- result = result.filter(item => {
- const crd = String(item.crd || '').slice(0, 10)
- if (!crd) return false
- if (crdStart && crd < crdStart) return false
- if (crdEnd && crd > crdEnd) return false
- return true
- })
- }
- this.filteredAddPoSelectList = result
+ this.addPoSelectPageIndex = 1
+ this.loadAddPoSelectList()
},
// 搜索新增PO列表
diff --git a/src/views/modules/inspection/inspectionScheduleList.vue b/src/views/modules/inspection/inspectionScheduleList.vue
index 0e5e2e5..bde63f1 100644
--- a/src/views/modules/inspection/inspectionScheduleList.vue
+++ b/src/views/modules/inspection/inspectionScheduleList.vue
@@ -635,6 +635,24 @@ export default {
sortLv: 0,
status: true,
fixed: false
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: this.functionId,
+ serialNumber: 'ScheduleTable1QcContact',
+ tableId: 'ScheduleTable1',
+ tableName: '验货排程',
+ columnProp: 'qcContact',
+ headerAlign: 'center',
+ align: 'left',
+ columnLabel: 'QC联系方式',
+ columnWidth: '120',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: false
}
]
}