This commit is contained in:
jjLv 2024-11-13 14:40:58 +08:00
parent 7a66eb028e
commit 94b92c7f84
2 changed files with 24 additions and 4 deletions

View File

@ -53,7 +53,14 @@ export function getListProject(data) {
})
}
// 领料申请获取协议单id
export function getAgreement(data) {
return request({
url: '/material/select/getAgreementInfoById',
method: 'post',
data: data,
})
}

View File

@ -130,7 +130,7 @@
</template>
</el-table-column>
<el-table-column align="center" label="出数量" prop="alNum" />
<el-table-column align="center" label="出数量" prop="alNum" />
<el-table-column
label="备注"
prop="remark"
@ -173,6 +173,7 @@ import {
addApplyInfo,
updateApplyInfo,
getApplyInfo,
getAgreement,
} from "@/api/lease/apply";
import { getToken } from "@/utils/auth";
import {
@ -301,6 +302,9 @@ export default {
},
deviceType: [],
propsKey: 1000,
projectTemp: undefined,
unitTemp: undefined,
agreementId: undefined,
// taxRate:0,
};
},
@ -339,6 +343,7 @@ export default {
}
});
}
this.unitTemp = val;
},
projectChange(val) {
if (this.isEdit) {
@ -351,6 +356,7 @@ export default {
}
});
}
this.projectTemp = val;
},
/** 租赁单位和工程-下拉选 */
projectInfoList() {
@ -460,11 +466,18 @@ export default {
handleSave() {
// console.log(this.equipmentList)
if (this.equipmentList.length > 0) {
this.$refs["maForm"].validate((valid) => {
this.$refs["maForm"].validate(async (valid) => {
if (valid) {
await getAgreement({
unitId: this.unitTemp,
projectId: this.projectTemp,
}).then((response) => {
this.agreementId = response.data.agreementId;
this.maForm.agreementId = this.agreementId;
});
this.maForm.taskId = this.taskId;
// this.maForm.checkDetailsList = this.equipmentList
this.$modal
await this.$modal
.confirm("是否确认保存当前页面")
.then(function () {})
.then(() => {