diff --git a/bms-front/src/views/price/set/detail.vue b/bms-front/src/views/price/set/detail.vue index 3ef3edd3..a60724f8 100644 --- a/bms-front/src/views/price/set/detail.vue +++ b/bms-front/src/views/price/set/detail.vue @@ -617,7 +617,7 @@ function removeDetail(row) { function onCustomerSelectChange(code, item) { customerForm.value.customerCode = code || undefined customerForm.value.customerName = item ? item.customerName : '' - customerForm.value.customerId = undefined + customerForm.value.customerId = item ? item.customerId : undefined } function openCustomerDialog(row) { @@ -643,6 +643,7 @@ function submitCustomer() { customerId: customerForm.value.customerId, customerCode: customerForm.value.customerCode } + console.log('submitCustomer', payload) const req = payload.customerPricesetId ? updateSetCustomer(payload) : addSetCustomer(payload) req.then(() => { proxy.$modal.msgSuccess('保存成功')