From 212ab815942c9a4297dcec55436df21b54e001a9 Mon Sep 17 00:00:00 2001 From: xingyy <373639591@qq.com> Date: Sat, 23 Sep 2023 17:23:26 +0800 Subject: [PATCH] submit --- pages/consignment-painting/index.vue | 128 ++++++++++++++++----------- 1 file changed, 77 insertions(+), 51 deletions(-) diff --git a/pages/consignment-painting/index.vue b/pages/consignment-painting/index.vue index f5f431d..0a82d20 100644 --- a/pages/consignment-painting/index.vue +++ b/pages/consignment-painting/index.vue @@ -23,21 +23,22 @@
-
-
{{item.address}}
-
*剩余{{item.leftNum}}位置
+
+
{{ item.address }}
+
*剩余{{ item.leftNum }}位置
- - + +
-
+
确定
@@ -53,42 +54,44 @@
-
1个月
-
3个月
-
6个月
-
-
12个月
-
*暂时不可选
+
{{ item.name }}
+ +
-
-
起始日期
-
-
年份
-
-
-
-
- - - {{ item }}年 - - - - {{ item }}月 - - - - {{ item }}日 - - - -
-
-
+ + +
确定
@@ -137,7 +140,8 @@
寄存地址
- +
@@ -148,7 +152,7 @@
寄存时限
- +
@@ -191,7 +195,10 @@ export default { days.push(i) } return { - addressList:[], + warehouseID: '', + cycleId: '', + cycleList: [], + addressList: [], info: {}, show_2: false, data: [], @@ -214,6 +221,7 @@ export default { } }, mounted() { + this.getCycle() this.getDetailUrl() this.getAddress() const today = new Date(); @@ -221,10 +229,28 @@ export default { this.data = [today.getFullYear(), today.getMonth() + 1, today.getDate()] }, methods: { + confirmCycle() { + this.show_1 = false + }, + confirmAddress() { + this.show_2 = false + }, + selectAddress(item) { + this.warehouseID = item.ID + }, + selectionPeriod(item) { + this.cycleId = item.ID + }, + async getCycle() { + const res = await postDataByParams('/api/warehouse/cycle') + if (res.code === 200) { + this.cycleList = res.data.data + } + }, async getAddress() { const res = await postDataByParams('/api/warehouse/address') - if (res.code===200){ - this.addressList=res.data.data + if (res.code === 200) { + this.addressList = res.data.data } console.log(res, 'getAddress') },