diff --git a/src/views/material/back/component/addReturn.vue b/src/views/material/back/component/addReturn.vue
index 3b5f20dd..e84693ea 100644
--- a/src/views/material/back/component/addReturn.vue
+++ b/src/views/material/back/component/addReturn.vue
@@ -141,9 +141,11 @@
>
-->
- 保存
+ 退 料
+
+
+ 暂 存
-
{
+ console.log('🚀 ~ getAgreementId ~ res:', res)
+ this.agreementId = res.data.agreementId
+ this.equipmentType()
+ })
+ },
/** 转换菜单数据结构 */
normalizer(node) {
if (node.children && !node.children.length) {
@@ -474,7 +497,8 @@ export default {
unitName: node.unitName,
unitValue: node.unitValue,
maxSortPriority: node.maxSortPriority,
- manageType: node.manageType
+ manageType: node.manageType,
+ useNum: node.useNum
})
}
@@ -555,6 +579,7 @@ export default {
this.isFileFbs = true
}
// this.loading = false;
+ this.getAgreementId()
})
},
//单位,工程树结构数据获取父
@@ -642,7 +667,7 @@ export default {
.then(function () {})
.then(() => {
if (this.isEdit) {
- // this.maForm.teamId = this.maForm.teamId
+ this.maForm.isOut = 0
this.maForm.leaseProjectId = this.maForm.projectId
console.log('编辑')
this.loading = true
diff --git a/src/views/material/lease/apply/component/homeApply.vue b/src/views/material/lease/apply/component/homeApply.vue
index b4c0b0b2..1df91fed 100644
--- a/src/views/material/lease/apply/component/homeApply.vue
+++ b/src/views/material/lease/apply/component/homeApply.vue
@@ -444,6 +444,8 @@ export default {
this.typeList = response.data.rows
this.total = response.data.total
this.loading = false
+ }).catch(() => {
+ this.loading = false
})
},
/** 搜索按钮操作 */
diff --git a/src/views/material/lease/apply/leaseRecord.vue b/src/views/material/lease/apply/leaseRecord.vue
index cc2ff9af..c78ef4c1 100644
--- a/src/views/material/lease/apply/leaseRecord.vue
+++ b/src/views/material/lease/apply/leaseRecord.vue
@@ -43,7 +43,7 @@
-
+
@@ -56,7 +56,7 @@
-
+
diff --git a/src/views/material/lease/outBound/component/addToolsApply.vue b/src/views/material/lease/outBound/component/addToolsApply.vue
index f0510602..84294bb6 100644
--- a/src/views/material/lease/outBound/component/addToolsApply.vue
+++ b/src/views/material/lease/outBound/component/addToolsApply.vue
@@ -141,7 +141,10 @@
- 保存
+ 出 库
+
+
+ 暂 存
+
{
+ console.log('🚀 ~ getAgreementId ~ res:', res)
+ this.agreementId = res.data.agreementId
+ this.equipmentType()
+ })
+ },
/** 转换菜单数据结构 */
normalizer(node) {
if (node.children && !node.children.length) {
@@ -471,7 +495,7 @@ export default {
},
/** 机具类型 */
equipmentType() {
- equipmentTypeTree().then(response => {
+ equipmentTypeTree({ agreementId: this.agreementId }).then(response => {
this.equipmentTypeList = response.data
// 处理并扁平化所有类型数据
this.flattenTypeOptions = this.processTypeData(response.data)
@@ -504,7 +528,8 @@ export default {
unitName: node.unitName,
unitValue: node.unitValue,
maxSortPriority: node.maxSortPriority,
- manageType: node.manageType
+ manageType: node.manageType,
+ useNum: node.useNum
})
}
@@ -657,7 +682,7 @@ export default {
}
},
/** 保存按钮操作 */
- handleSave() {
+ handleSave(isOut) {
// console.log(this.equipmentList)
console.log('maForm', this.maForm)
if (this.equipmentList.length > 0) {
@@ -684,12 +709,12 @@ export default {
.confirm('是否确认保存当前页面')
.then(function () {})
.then(() => {
+ this.maForm.isOut = isOut
if (this.isEdit) {
- // this.maForm.teamId = this.maForm.teamId
this.maForm.leaseProjectId = this.maForm.projectId
console.log('编辑')
this.loading = true
- submitOut({
+ updateApplyInfo({
leaseOutDetailsList: this.equipmentList,
leaseApplyInfo: this.maForm
})
@@ -705,6 +730,20 @@ export default {
})
} else if (!this.isEdit) {
console.log('新增')
+ addApplyInfo({
+ leaseApplyDetailsList: this.equipmentList,
+ leaseApplyInfo: this.maForm
+ })
+ .then(response => {
+ if (response.code == 200) {
+ this.$modal.msgSuccess('出库成功')
+ this.$emit('addToolsSuccess')
+ }
+ this.loading = false
+ })
+ .catch(() => {
+ this.loading = false
+ })
}
})
.catch(() => {})
diff --git a/src/views/material/lease/outBound/component/homeApply.vue b/src/views/material/lease/outBound/component/homeApply.vue
index aadd38f4..98054e9f 100644
--- a/src/views/material/lease/outBound/component/homeApply.vue
+++ b/src/views/material/lease/outBound/component/homeApply.vue
@@ -42,6 +42,9 @@
+
+ 领料申请
+
导出
@@ -49,7 +52,7 @@
-
+
{{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }}
@@ -85,9 +88,9 @@
查看
-
+
- 出库
+ 编辑
领料单
@@ -461,6 +464,9 @@ export default {
this.typeList = response.data.rows
this.total = response.data.total
this.loading = false
+ }).catch(error => {
+ console.log('🚀 ~ getList ~ error:', error)
+ this.loading = false
})
},
/** 搜索按钮操作 */