Sfoglia il codice sorgente

创建出入库界面

张庆宇 2 settimane fa
parent
commit
b274b070fe

+ 10
- 2
src/components/SearchBox.vue Vedi File

@@ -39,6 +39,9 @@
39 39
 								<el-date-picker v-if="item.type === 'date'" v-model="form[item.prop]" type="date"
40 40
 									clearable value-format="YYYY-MM-DD" format="YYYY-MM-DD" style="width:100%; " />
41 41
 								<!--日期-->
42
+								<el-date-picker v-if="item.type === 'datetime'" v-model="form[item.prop]" type="datetime"
43
+									clearable value-format="YYYY-MM-DD HH:mm:ss" format="YYYY-MM-DD HH:mm:ss" style="width:100%; " />
44
+								<!--日期-->
42 45
 								<el-date-picker v-if="item.type === 'daterange'" v-model="form[item.prop]"
43 46
 									type="daterange" clearable range-separator="至" start-placeholder="开始日期"
44 47
 									end-placeholder="结束日期" value-format="YYYY-MM-DD" format="YYYY-MM-DD"
@@ -157,8 +160,7 @@
157 160
 				item.span = 5
158 161
 			}
159 162
 			if ((item.type == 'select' || item.type == 'radio') && item.dicType && item.dicType != null &&
160
-				item
161
-				.dicType != '') {
163
+				item.dicType != '') {
162 164
 				dicTypes.value.push(item.dicType)
163 165
 			}
164 166
 
@@ -171,6 +173,12 @@
171 173
 					'optionValue': item.optionValue,
172 174
 				})
173 175
 			}
176
+
177
+			if ((item.type == 'date' || item.type == 'datetime') && item.param && item.param != null && item.param != '') {
178
+				var now = new Date();
179
+				item.value=new Date(now.getFullYear(), now.getMonth(), now.getDate()+item.param);
180
+				console.log('设置单个时间:', item.value); // 调试用
181
+			}
174 182
 			arr[col].push(item)
175 183
 		})
176 184
 		formList.value = arr

+ 60
- 0
src/views/sto/record/inRecord.vue Vedi File

@@ -0,0 +1,60 @@
1
+<template>
2
+   <div>
3
+      <SearchBox ref="SearchBoxRef" formName="selectTop" :formData="query" @showPop="showPop" @reset="reset"></SearchBox>
4
+      <ButtonBox @search="handleSearch" @add="insertDialog" @start="start('0')" @remove="shutdwon('1')"></ButtonBox>
5
+   </div>
6
+
7
+</template>
8
+
9
+<script setup>
10
+import ButtonBar from '@/components/ButtonBar.vue'
11
+
12
+import {getCurrentInstance, onMounted, reactive, ref} from 'vue'
13
+import tools from '@/tools'
14
+import Attachment from '@/components/Attachment.vue'
15
+import ButtonBox from "@/components/ButtonBox.vue";
16
+import SearchBox from "@/components/SearchBox.vue";
17
+import SelectorComponent from "@/views/sal/components/Selector_component.vue";
18
+
19
+const {
20
+  proxy
21
+} = getCurrentInstance()
22
+
23
+const cardBodyStyle = ref(tools.style.card)
24
+const inputStyle = ref(tools.style.input)
25
+
26
+
27
+
28
+const PopupMenuTreeRef = ref(null)
29
+const showPop = () => {
30
+  console.log('showPop')
31
+  PopupMenuTreeRef.value.show()
32
+}
33
+const url = ref('sto/Config/query')
34
+const pageType = ref(true)
35
+
36
+var now = new Date();
37
+const query = ref({
38
+  wareName: '',
39
+  stackName: '',
40
+  materialName: '',
41
+  materialStandard: '',
42
+  startDtm: new Date(now.getFullYear(), now.getMonth(), now.getDate()),
43
+  endDtm: new Date(now.getFullYear(), now.getMonth(), now.getDate()+1),
44
+  ownerCompany: '',
45
+  receivingCompany: '',
46
+  CustomerCompany: '',
47
+  prodNo: '',
48
+  carNo: '',
49
+  orderNo: '',
50
+  contractNo: ''
51
+})
52
+
53
+
54
+const tableData = ref([])
55
+const TableBoxRef = ref(null)
56
+const handleSearch = () => {
57
+  // TableBoxRef.value.search()
58
+  getTableData()
59
+}
60
+</script>

+ 0
- 0
src/views/sto/record/outRecord.vue Vedi File


Loading…
Annulla
Salva