@@ -84,10 +83,12 @@
diff --git a/src/pages/toolsLease/toolsLeaseAdd.vue b/src/pages/toolsLease/toolsLeaseAdd.vue
index 6c7f473..fe7f902 100644
--- a/src/pages/toolsLease/toolsLeaseAdd.vue
+++ b/src/pages/toolsLease/toolsLeaseAdd.vue
@@ -8,35 +8,357 @@
left-icon="left"
left-text="返回"
:title="title"
- right-icon="scan"
@clickLeft="back"
/>
-
- 新增
+
+
+
+
+
+
+
+ {
+ formData.projectId = ''
+ }
+ "
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 序号
+ 类型名称
+ 规格型号
+ 在库数
+ 领用数
+ 操作
+
+
+ {{ index + 1 }}
+ {{ item.maTypeName }}
+
+ {{ item.typeName }}
+
+ {{ item.storageNum }}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+.content {
+ padding: 10px;
+ background-color: #fafafa;
+}
+.col {
+ display: flex;
+ align-items: center;
+ margin-bottom: 15px;
+}
+
diff --git a/src/services/back.js b/src/services/back.js
index 7859a09..967f438 100644
--- a/src/services/back.js
+++ b/src/services/back.js
@@ -26,7 +26,7 @@ export const getBackInfo = (id,keyWord) => {
})
}
// 工程下拉选
- export const getProjectList = (data) => {
+ export const getProjectList = (data = {}) => {
return http({
method: 'POST',
url: '/material/select/getProjectList',
@@ -193,13 +193,29 @@ export const getDetailsByIdApi = (data) => {
}
// 提交
- export const leaseTask = (data) => {
+export const addLeaseTask = (data) => {
return http({
method: 'POST',
url: '/material/lease_apply_info',
data:data,
})
}
+// 编辑
+export const editLeaseTask = (data) => {
+ return http({
+ method: 'put',
+ url: '/material/lease_apply_info',
+ data:data,
+ })
+}
+// 详情
+export const detailsLeaseTask = (data) => {
+ return http({
+ method: 'get',
+ url: `/material/lease_apply_info/${data}`,
+ // data:data,
+ })
+}
// 直转申请下拉选
export const getParentType = (data) => {
@@ -271,4 +287,13 @@ export const getBmTeamList = (data) => {
url: '/material/bmTeam/list',
data,
})
+}
+
+// 类型规格-树
+export const getTypeTreeList = (data) => {
+ return http({
+ method: 'GET',
+ url: '/material/ma_type/equipmentType',
+ data,
+ })
}
\ No newline at end of file