diff --git a/src/pages/materialsStation/toolsLease/toolsLeaseAdd.vue b/src/pages/materialsStation/toolsLease/toolsLeaseAdd.vue
index 56e0124..9003364 100644
--- a/src/pages/materialsStation/toolsLease/toolsLeaseAdd.vue
+++ b/src/pages/materialsStation/toolsLease/toolsLeaseAdd.vue
@@ -18,10 +18,10 @@
-
+
@@ -214,7 +214,7 @@ const rules = ref({
teamId: {
rules: [{ required: true, errorMessage: '请选择班组' }],
},
- projectId: {
+ proId: {
rules: [{ required: true, errorMessage: '请选择工程' }],
},
leasePerson: {
@@ -255,6 +255,7 @@ const getDetailsById = async () => {
tableData.value = res.data.leaseApplyDetailsList
Object.assign(formData, res.data.leaseApplyInfo)
formData.projectId = res.data.leaseApplyInfo.proId
+ formData.proId = res.data.leaseApplyInfo.proId
getAgreementInfoById()
} catch (error) {
console.log('🚀 ~ getDetailsById ~ error:', error)
@@ -316,7 +317,7 @@ const getProjectListApi = async () => {
prodRange.value = res.data.map((item) => {
return {
...item,
- value: item.projectId,
+ value: item.proId,
text: item.proName,
}
})
@@ -434,8 +435,9 @@ const changeTeamd = (e) => {
// 选择工程
const changeProd = (e) => {
console.log('🚀 ~ changeProd ~ e:', e)
- formData.projectId = e
- formData.proId = prodRange.value.find(item => item.projectId === e)?.proId
+ formData.proId = e
+ formData.projectId = prodRange.value.find(item => item.proId === e)?.projectId
+ console.log("xxxxxxxxxxxxxxxxxxxxxx",formData.projectId)
equipmentList.value = []
// getAgreementInfoById()
getTeamList()