diff --git a/src/config/router.config.js b/src/config/router.config.js
index 44c4455..c2c1c6c 100644
--- a/src/config/router.config.js
+++ b/src/config/router.config.js
@@ -181,6 +181,11 @@ export const asyncRouterMap = [
component: () => import(/* webpackChunkName: "server" */ '@/views/recovery/Index'),
meta: { title: '回收列表', keepAlive: false, permission: ['/recovery/index'] },
},
+ {
+ path: '/recovery/order/index',
+ component: () => import(/* webpackChunkName: "server" */ '@/views/recovery/order/Index'),
+ meta: { title: '回收订单', keepAlive: false, permission: ['/recovery/order/index'] },
+ },
],
},
// 服务管理
diff --git a/src/views/recovery/order/Index.vue b/src/views/recovery/order/Index.vue
new file mode 100644
index 0000000..13001d6
--- /dev/null
+++ b/src/views/recovery/order/Index.vue
@@ -0,0 +1,301 @@
+
+
+ {{ $route.meta.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ text }}
+
+
+
+
+ {{ text == 1 ? '上架' : '下架' }}
+
+
+
+ 编辑
+ 删除
+
+
+
+
+
+
+
+
+
diff --git a/src/views/recovery/order/modules/Add.vue b/src/views/recovery/order/modules/Add.vue
new file mode 100644
index 0000000..83d6599
--- /dev/null
+++ b/src/views/recovery/order/modules/Add.vue
@@ -0,0 +1,162 @@
+
+
+
+
+
+
+
+
+
+ 选择分类
+ {{
+ item.name
+ }}
+
+
+
+
+
+
+
+ %
+
+
+
+ 个
+
+
+
+
+
+
+ 上架
+ 下架
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/recovery/order/modules/Edit.vue b/src/views/recovery/order/modules/Edit.vue
new file mode 100644
index 0000000..b698be4
--- /dev/null
+++ b/src/views/recovery/order/modules/Edit.vue
@@ -0,0 +1,190 @@
+
+
+
+
+
+
+
+
+
+ 选择分类
+ {{
+ item.name
+ }}
+
+
+
+
+
+
+
+ %
+
+
+
+ 个
+
+
+
+
+
+
+ 上架
+ 下架
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/store/shop/Create.vue b/src/views/store/shop/Create.vue
index 9ed9a48..5322e92 100644
--- a/src/views/store/shop/Create.vue
+++ b/src/views/store/shop/Create.vue
@@ -92,7 +92,7 @@
v-decorator="[`historysTime${index}`, { rules: [{ required: true, message: '请指定日期' }] }]"
style="width: 30%; margin-right: 8px"
/>
-
+
{
return {
time: form[`historysTime${i}`] && form[`historysTime${i}`].format('YYYY-MM-DD'),
- content: form[`historysContent${i}`]
+ contenmt: form[`historysContenmt${i}`]
}
})
diff --git a/src/views/store/shop/Update.vue b/src/views/store/shop/Update.vue
index a63985c..a286d56 100644
--- a/src/views/store/shop/Update.vue
+++ b/src/views/store/shop/Update.vue
@@ -95,7 +95,7 @@
v-decorator="[`historysTime${index}`, { rules: [{ required: true, message: '请指定日期' }] }]"
style="width: 30%; margin-right: 8px"
/>
-
+
{
@@ -265,13 +265,13 @@ export default {
record.historys.forEach((x, i) => {
x.time && (record[`historysTime${i}`] = moment(new Date(x.time)))
- record[`historysContent${i}`] = x.content
+ record[`historysContenmt${i}`] = x.contenmt
timeAry.push(`historysTime${i}`)
- contentAry.push(`historysContent${i}`)
+ contenmtAry.push(`historysContenmt${i}`)
this.form.getFieldDecorator(`historysTime${i}`, { initialValue: '', preserve: true })
- this.form.getFieldDecorator(`historysContent${i}`, { initialValue: '', preserve: true })
+ this.form.getFieldDecorator(`historysContenmt${i}`, { initialValue: '', preserve: true })
})
}
@@ -280,7 +280,7 @@ export default {
form.setFieldsValue(pick(record, [
'shop_name', 'logo_image_id', 'linkman', 'phone',
'shop_hours', 'address', 'summary', 'cascader',
- 'coordinate', 'sort', 'is_check', 'status', 'is_main', 'historys', ...timeAry, ...contentAry
+ 'coordinate', 'sort', 'is_check', 'status', 'is_main', 'historys', ...timeAry, ...contenmtAry
]))
})
@@ -314,7 +314,7 @@ export default {
const { form } = this
const keys = form.getFieldValue('historys')
- const nextKeys = keys.concat([{ historysTime: '', historysContent: '', id: this.generateRandomString(8) }])
+ const nextKeys = keys.concat([{ historysTime: '', historysContenmt: '', id: this.generateRandomString(8) }])
form.setFieldsValue({
historys: nextKeys
})
@@ -344,7 +344,7 @@ export default {
form.history = form.historys.map((x, i) => {
return {
time: form[`historysTime${i}`] && form[`historysTime${i}`].format('YYYY-MM-DD'),
- content: form[`historysContent${i}`]
+ contenmt: form[`historysContenmt${i}`]
}
})