zhangback
2025-12-17 fe18d440586a5cbd8ab98237a395a281fda1a738
ui/admin-ui3/src/views/cwgl/smartLockerApplication/index.vue
@@ -180,7 +180,7 @@
        // 判断 itemType 是否为 '0',并且 itemName 有值
        if (form.value.itemType === '0' && val) {
          // 在这里添加你的请求接口逻辑
          debouncedItemNameChange(val.value);
          debouncedItemNameChange(val);
          // 示例请求调用(需要替换为实际的API调用)
          // yourApiRequestFunction(val).then(response => {
          //   // 处理响应
@@ -361,9 +361,9 @@
// 定义实际要执行的函数
const handleItemNameChange = (val: any) => {
  // 判断 itemType 是否为 '0',并且 itemName 有值
  if (form.value.itemType === '0' && val) {
  if (form.value.itemType == 0 && val) {
    // 在这里添加你的请求接口逻辑
    smartLockerApplicationQuery({ licensePlateNumber: val }).then(response => {
    smartLockerApplicationQuery({ licensePlateNumber: form.value.itemName }).then(response => {
      if (response.code == 200) {
        form.value.lockerPort = response.data || '';
      }
@@ -377,13 +377,13 @@
const handleInvalid = (row: any) => {
  proxy.$modal.confirm(`是否作废该申领人编码 :${row.applicantCode}?`).then(function () {
    return smartLockerApplicationInvalid(row.id);
  }).then((res) => {
  }).then((res:any) => {
    onLoad(page.value);
    proxy.$modal.msgSuccess(res.msg);
  })
}
const handleEditBtn = (row, index) => {
const handleEditBtn = (row:any, index:any) => {
  crudRef.value.rowEdit(row, index)
  // option.value.editBtn = true;
}