diff --git a/src/api/firstOrder/inbound.js b/src/api/firstOrder/inbound.js
index 1a31f50..ccb04c9 100644
--- a/src/api/firstOrder/inbound.js
+++ b/src/api/firstOrder/inbound.js
@@ -72,7 +72,6 @@ export const submitData = (sizeForm) => {
})
}
export const editList = (onePutStorageId) => {
- console.log('api中的数据',onePutStorageId)
return request({
url: '/smartpark/onePutStorage/detail',
method: 'get',
diff --git a/src/api/firstOrder/outbound.js b/src/api/firstOrder/outbound.js
index 932ccdb..e32686d 100644
--- a/src/api/firstOrder/outbound.js
+++ b/src/api/firstOrder/outbound.js
@@ -57,10 +57,12 @@ export const submitData = (sizeForm) => {
cryptoData: false
})
}
-export const getMaterialList = () => {
+export const getMaterialList = (optionType) => {
+ console.log('api中的数据', optionType)
return request({
url: '/smartpark/oneForm/getPutOneFormList',
method: 'get',
+ params: optionType,
cryptoToken: false,
cryptoData: false
})
diff --git a/src/api/materials/expend.js b/src/api/materials/expend.js
index 8cb1abb..4955e11 100644
--- a/src/api/materials/expend.js
+++ b/src/api/materials/expend.js
@@ -13,3 +13,14 @@ export const getList = (current, size, params) => {
cryptoData: false
})
}
+//归还和报废
+export const returnMaterial = (LdDurableFormDto) => {
+ console.log(LdDurableFormDto,'api传的參')
+ return request({
+ url: '/smartpark/durableForm/restoreAndScrap ',
+ method: 'post',
+ data: LdDurableFormDto,
+ cryptoToken: false,
+ cryptoData: false
+ })
+}
diff --git a/src/api/materials/index.js b/src/api/materials/index.js
new file mode 100644
index 0000000..8a13f26
--- /dev/null
+++ b/src/api/materials/index.js
@@ -0,0 +1,11 @@
+import request from '@/router/axios';
+
+export const upload = (file) => {
+ return request({
+ url: '/smartpark/material/upload ',
+ method: 'post',
+ data: file,
+ cryptoToken: false,
+ cryptoData: false
+ })
+}
diff --git a/src/views/demandOrder/index.vue b/src/views/demandOrder/index.vue
index a44b160..82c6ea6 100644
--- a/src/views/demandOrder/index.vue
+++ b/src/views/demandOrder/index.vue
@@ -61,8 +61,8 @@ export default {
label: "提交时间",
prop: "optTime",
type: "date",
- format: "yyyy-MM-dd",
- valueFormat: "yyyy-MM-dd",
+ format: "yyyy-MM-dd HH:mm:ss",
+ valueFormat: "yyyy-MM-dd HH:mm:ss",
headerAlign: "center",
align: "center",
},
diff --git a/src/views/firstOrder/components/consumableDialog.vue b/src/views/firstOrder/components/consumableDialog.vue
new file mode 100644
index 0000000..686a9c5
--- /dev/null
+++ b/src/views/firstOrder/components/consumableDialog.vue
@@ -0,0 +1,269 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/firstOrder/components/inDialog.vue b/src/views/firstOrder/components/inDialog.vue
index b4fe825..bad5279 100644
--- a/src/views/firstOrder/components/inDialog.vue
+++ b/src/views/firstOrder/components/inDialog.vue
@@ -1,291 +1,301 @@
+ :append-to-body="true" width="70%" @close="handleCloseDetail" fullscreen class="dialog-container">
-
- 基本信息
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 批量选择
- 单项选择
-
-
-
-
-
-
-
-
-
- {{ inDate }}
- 新增
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ scope.row.type == 'NY' ? '耐用品' : '易耗品' }}
-
-
-
-
- {{ scope.row.requiredQuantity || 0 }}
-
-
-
-
- {{ scope.row.inboundQuantity || 0 }}
-
-
-
-
-
- {{ scope.row.theInboundQuantity === undefined ? 0 : scope.row.theInboundQuantity }}
-
-
-
-
-
- -
- {{ scope.row.unitPrice || 0 }}
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ scope.row.materialName }}
-
-
-
-
-
-
-
-
-
- {{ scope.row.type == 'NY' ? '耐用品' : '易耗品' }}
-
-
-
-
-
- {{ scope.row.requiredQuantity || 0 }}
-
-
-
-
-
-
-
- {{ scope.row.theInboundQuantity || 0 }}
-
-
-
-
-
- -
- {{ scope.row.unitPrice || 0 }}
-
-
-
-
- 入库账目表格:
-
-
-
+
+
+ 基本信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 批量选择
+ 单项选择
+
+
+
+
+
+
+
+
+
+ {{ inDate }}
+ 新增
+
+
+
+
-
- {{ scope.row.type === "NY" ? "耐用品" : (scope.row.type === "YH" ? "易耗品" : "") }}
+
+
+
+
+ {{ scope.row.type == 'NY' ? '耐用品' : '易耗品' }}
-
+
- {{ scope.row.inboundQuantity || 0 }}
+ {{ scope.row.requiredQuantity || 0 }}
-
+
- -
- {{ scope.row.unitPrice || 0 }}
+ {{ scope.row.inboundQuantity || 0 }}
-
-
-
+
+
+
+ {{ scope.row.theInboundQuantity === undefined ? 0 : scope.row.theInboundQuantity }}
+
- -
+
+ -
{{ scope.row.unitPrice || 0 }}
+
-
-
-
-
- {{ Number(scope.row.inboundQuantity || 0) + Number(scope.row.theInboundQuantity || 0) }}
-
+
+
+
+
-
+
+
- -
- {{ scope.row.unitPrice || 0 }}
- s
+
+
+
+
+ {{ scope.row.materialName }}
+
-
-
-
+
+
- {{ scope.row.userInfoVO ? scope.row.userInfoVO.name : sizeForm.userInfoVO.name }}
+
+
+
+
+ {{ scope.row.type == 'NY' ? '耐用品' : '易耗品' }}
-
+
+
- {{ inDate }}
+ {{ scope.row.requiredQuantity || 0 }}
-
-
-
-
-
-
-
-
-
+
-
-
+
- {{ scope.row.type === "NY" ? "耐用品" : (scope.row.type === "YH" ? "易耗品" : "") }}
+
+ {{ scope.row.theInboundQuantity || 0 }}
-
- -
+
+ -
{{ scope.row.unitPrice || 0 }}
-
-
-
+
+
+ 入库账目表格:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.type === "NY" ? "耐用品" : (scope.row.type === "YH" ? "易耗品" : "") }}
+
+
+
+
+ {{ scope.row.inboundQuantity || 0 }}
+
+
+
+
+ -
+ {{ scope.row.unitPrice || 0 }}
+
+
-
-
- -
- {{ scope.row.unitPrice || 0 }}
-
+
+
+
+
+
+ -
+ {{ scope.row.unitPrice || 0 }}
+
+
-
-
-
-
- {{ Number(scope.row.inboundQuantity || 0) + Number(scope.row.theInboundQuantity || 0) }}
-
+
+
+
+ {{ Number(scope.row.inboundQuantity || 0) + Number(scope.row.theInboundQuantity || 0) }}
+
+
+
+
+ -
+ {{ scope.row.unitPrice || 0 }}
+ s
+
-
-
- -
- {{ scope.row.unitPrice || 0 }}
-
+
+
+
+ {{ scope.row.userInfoVO ? scope.row.userInfoVO.name : sizeForm.userInfoVO.name }}
+
+
+
+
+ {{ inDate }}
+
+
-
-
-
-
- {{ scope.row.userInfoVO ? scope.row.userInfoVO.name : sizeForm.userInfoVO.name }}
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.type === "NY" ? "耐用品" : (scope.row.type === "YH" ? "易耗品" : "") }}
+
+
+
+
+
+ -
+ {{ scope.row.unitPrice || 0 }}
+
+
-
-
- {{ inDate }}
-
+
+
+
+
+
+ -
+ {{ scope.row.unitPrice || 0 }}
+
+
+
+
+
+
+ {{ Number(scope.row.inboundQuantity || 0) + Number(scope.row.theInboundQuantity || 0) }}
+
+
+
+
+ -
+ {{ scope.row.unitPrice || 0 }}
+
+
-
-
-
+
+
+
+ {{ scope.row.userInfoVO ? scope.row.userInfoVO.name : sizeForm.userInfoVO.name }}
+
+
+
+
+ {{ inDate }}
+
+
+
+
+
+
+
diff --git a/src/views/materials/index.vue b/src/views/materials/index.vue
index 1c3543e..097f048 100644
--- a/src/views/materials/index.vue
+++ b/src/views/materials/index.vue
@@ -10,10 +10,10 @@