| | |
| | | }, |
| | | { |
| | | label: t("站点编号"), |
| | | prop: "businessId", // <-- 对应的表单字段是 workSiteId |
| | | prop: "businessId", |
| | | component: { |
| | | name: 'el-select', |
| | | props: { |
| | |
| | | { label: t("所属单位"), prop: "departmentName", minWidth: 140 }, |
| | | { label: t("站点编号"), prop: "businessId", minWidth: 140 }, |
| | | { label: t("站点名称"), prop: "businessName", minWidth: 140 }, |
| | | { label: t("站点类型"), prop: "siteType", minWidth: 140 }, |
| | | { label: t("称重设备"), prop: "deviceNo", minWidth: 140 }, |
| | | { |
| | | label: t("上传时间"), |
| | |
| | | |
| | | // 只有在手动切换部门(oldDeptId 有值)时,才清空已选择的值 |
| | | if (oldDeptId !== undefined) { |
| | | Upsert.value.form.workSiteId = undefined; |
| | | Upsert.value.form.businessId = undefined; |
| | | } |
| | | |
| | | // 如果没有选择任何部门,则中止请求 |