This commit is contained in:
parent
7a66eb028e
commit
94b92c7f84
|
|
@ -53,7 +53,14 @@ export function getListProject(data) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 领料申请获取协议单id
|
||||||
|
export function getAgreement(data) {
|
||||||
|
return request({
|
||||||
|
url: '/material/select/getAgreementInfoById',
|
||||||
|
method: 'post',
|
||||||
|
data: data,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column align="center" label="出货数量" prop="alNum" />
|
<el-table-column align="center" label="出库数量" prop="alNum" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="备注"
|
label="备注"
|
||||||
prop="remark"
|
prop="remark"
|
||||||
|
|
@ -173,6 +173,7 @@ import {
|
||||||
addApplyInfo,
|
addApplyInfo,
|
||||||
updateApplyInfo,
|
updateApplyInfo,
|
||||||
getApplyInfo,
|
getApplyInfo,
|
||||||
|
getAgreement,
|
||||||
} from "@/api/lease/apply";
|
} from "@/api/lease/apply";
|
||||||
import { getToken } from "@/utils/auth";
|
import { getToken } from "@/utils/auth";
|
||||||
import {
|
import {
|
||||||
|
|
@ -301,6 +302,9 @@ export default {
|
||||||
},
|
},
|
||||||
deviceType: [],
|
deviceType: [],
|
||||||
propsKey: 1000,
|
propsKey: 1000,
|
||||||
|
projectTemp: undefined,
|
||||||
|
unitTemp: undefined,
|
||||||
|
agreementId: undefined,
|
||||||
// taxRate:0,
|
// taxRate:0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
@ -339,6 +343,7 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
this.unitTemp = val;
|
||||||
},
|
},
|
||||||
projectChange(val) {
|
projectChange(val) {
|
||||||
if (this.isEdit) {
|
if (this.isEdit) {
|
||||||
|
|
@ -351,6 +356,7 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
this.projectTemp = val;
|
||||||
},
|
},
|
||||||
/** 租赁单位和工程-下拉选 */
|
/** 租赁单位和工程-下拉选 */
|
||||||
projectInfoList() {
|
projectInfoList() {
|
||||||
|
|
@ -460,11 +466,18 @@ export default {
|
||||||
handleSave() {
|
handleSave() {
|
||||||
// console.log(this.equipmentList)
|
// console.log(this.equipmentList)
|
||||||
if (this.equipmentList.length > 0) {
|
if (this.equipmentList.length > 0) {
|
||||||
this.$refs["maForm"].validate((valid) => {
|
this.$refs["maForm"].validate(async (valid) => {
|
||||||
if (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.taskId = this.taskId;
|
||||||
// this.maForm.checkDetailsList = this.equipmentList
|
// this.maForm.checkDetailsList = this.equipmentList
|
||||||
this.$modal
|
await this.$modal
|
||||||
.confirm("是否确认保存当前页面")
|
.confirm("是否确认保存当前页面")
|
||||||
.then(function () {})
|
.then(function () {})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue