jufubao-takeorder 1.0.2-beta1 → 1.0.2-beta10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbTakeorderFilterOrderList/Api.js +43 -0
  3. package/src/components/JfbTakeorderFilterOrderList/Attr.js +16 -0
  4. package/src/components/JfbTakeorderFilterOrderList/JfbTakeorderFilterOrderList.vue +353 -0
  5. package/src/components/{JfbTakeorderUnquotedDetail/JfbTakeorderUnquotedDetailLess.less → JfbTakeorderFilterOrderList/JfbTakeorderFilterOrderListLess.less} +2 -2
  6. package/src/components/{JfbTakeorderUnquotedDetail/JfbTakeorderUnquotedDetailMixin.js → JfbTakeorderFilterOrderList/JfbTakeorderFilterOrderListMixin.js} +1 -1
  7. package/src/components/JfbTakeorderFilterOrderList/Mock.js +13 -0
  8. package/src/components/JfbTakeorderFilterOrderList/cusAttr/advanced.js +26 -0
  9. package/src/components/JfbTakeorderFilterOrderList/cusAttr/content.js +9 -0
  10. package/src/components/JfbTakeorderFilterOrderList/cusAttr/style.js +11 -0
  11. package/src/components/JfbTakeorderIndex/Api.js +38 -24
  12. package/src/components/JfbTakeorderIndex/Attr.js +9 -41
  13. package/src/components/JfbTakeorderIndex/JfbTakeorderIndex.vue +823 -85
  14. package/src/components/JfbTakeorderIndex/Mock.js +4 -4
  15. package/src/components/JfbTakeorderIndex/components/cityPicker.vue +307 -0
  16. package/src/components/JfbTakeorderIndex/cusAttr/advanced.js +26 -0
  17. package/src/components/JfbTakeorderIndex/cusAttr/content.js +9 -0
  18. package/src/components/JfbTakeorderIndex/cusAttr/style.js +11 -0
  19. package/src/components/JfbTakeorderOrderDetail/Api.js +125 -0
  20. package/src/components/JfbTakeorderOrderDetail/Attr.js +16 -0
  21. package/src/components/JfbTakeorderOrderDetail/JfbTakeorderOrderDetail.vue +1211 -0
  22. package/src/components/{JfbTakeorderUnquotedList/JfbTakeorderUnquotedListLess.less → JfbTakeorderOrderDetail/JfbTakeorderOrderDetailLess.less} +2 -2
  23. package/src/components/{JfbTakeorderQuotedDetail/JfbTakeorderQuotedDetailMixin.js → JfbTakeorderOrderDetail/JfbTakeorderOrderDetailMixin.js} +1 -1
  24. package/src/components/JfbTakeorderOrderDetail/Mock.js +13 -0
  25. package/src/components/JfbTakeorderOrderDetail/components/CusEditQuote.vue +150 -0
  26. package/src/components/JfbTakeorderOrderDetail/components/products.vue +141 -0
  27. package/src/components/JfbTakeorderOrderDetail/cusAttr/advanced.js +12 -0
  28. package/src/components/JfbTakeorderOrderDetail/cusAttr/content.js +233 -0
  29. package/src/components/JfbTakeorderOrderDetail/cusAttr/style.js +11 -0
  30. package/src/components/JfbTakeorderOrderList/Api.js +43 -0
  31. package/src/components/JfbTakeorderOrderList/Attr.js +16 -0
  32. package/src/components/JfbTakeorderOrderList/JfbTakeorderOrderList.vue +320 -0
  33. package/src/components/{JfbTakeorderQuotedList/JfbTakeorderQuotedListLess.less → JfbTakeorderOrderList/JfbTakeorderOrderListLess.less} +2 -2
  34. package/src/components/{JfbTakeorderQuotedList/JfbTakeorderQuotedListMixin.js → JfbTakeorderOrderList/JfbTakeorderOrderListMixin.js} +1 -1
  35. package/src/components/JfbTakeorderOrderList/Mock.js +13 -0
  36. package/src/components/JfbTakeorderOrderList/cusAttr/advanced.js +26 -0
  37. package/src/components/JfbTakeorderOrderList/cusAttr/content.js +23 -0
  38. package/src/components/JfbTakeorderOrderList/cusAttr/style.js +11 -0
  39. package/src/components/JfbTakeorderVoiceSwitch/Api.js +39 -0
  40. package/src/components/JfbTakeorderVoiceSwitch/Attr.js +12 -0
  41. package/src/components/JfbTakeorderVoiceSwitch/JfbTakeorderVoiceSwitch.vue +191 -0
  42. package/src/components/{JfbTakeorderQuotedDetail/JfbTakeorderQuotedDetailLess.less → JfbTakeorderVoiceSwitch/JfbTakeorderVoiceSwitchLess.less} +2 -2
  43. package/src/components/{JfbTakeorderUnquotedList/JfbTakeorderUnquotedListMixin.js → JfbTakeorderVoiceSwitch/JfbTakeorderVoiceSwitchMixin.js} +1 -1
  44. package/src/components/JfbTakeorderVoiceSwitch/Mock.js +5 -0
  45. package/src/components/JfbTakeorderQuotedDetail/Api.js +0 -58
  46. package/src/components/JfbTakeorderQuotedDetail/Attr.js +0 -48
  47. package/src/components/JfbTakeorderQuotedDetail/JfbTakeorderQuotedDetail.vue +0 -113
  48. package/src/components/JfbTakeorderQuotedDetail/Mock.js +0 -13
  49. package/src/components/JfbTakeorderQuotedList/Api.js +0 -58
  50. package/src/components/JfbTakeorderQuotedList/Attr.js +0 -48
  51. package/src/components/JfbTakeorderQuotedList/JfbTakeorderQuotedList.vue +0 -113
  52. package/src/components/JfbTakeorderQuotedList/Mock.js +0 -13
  53. package/src/components/JfbTakeorderUnquotedDetail/Api.js +0 -58
  54. package/src/components/JfbTakeorderUnquotedDetail/Attr.js +0 -48
  55. package/src/components/JfbTakeorderUnquotedDetail/JfbTakeorderUnquotedDetail.vue +0 -113
  56. package/src/components/JfbTakeorderUnquotedDetail/Mock.js +0 -13
  57. package/src/components/JfbTakeorderUnquotedList/Api.js +0 -58
  58. package/src/components/JfbTakeorderUnquotedList/Attr.js +0 -48
  59. package/src/components/JfbTakeorderUnquotedList/JfbTakeorderUnquotedList.vue +0 -113
  60. package/src/components/JfbTakeorderUnquotedList/Mock.js +0 -13
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  //start
15
- .jfb-takeorder-unquoted-list {
15
+ .jfb-takeorder-order-detail {
16
16
  box-sizing: border-box;
17
17
 
18
18
  &__body{
@@ -71,7 +71,7 @@
71
71
 
72
72
 
73
73
  /**notPreview**/
74
- .jfb-takeorder-unquoted-list {
74
+ .jfb-takeorder-order-detail {
75
75
  //&:before {
76
76
  //content: " ";
77
77
  //display: table;
@@ -16,7 +16,7 @@ export default {
16
16
  //@EndAttrData
17
17
 
18
18
  // #endif
19
- cssRoot: 'jfb-takeorder-quoted-detail'
19
+ cssRoot: 'jfb-takeorder-order-detail'
20
20
  }
21
21
  },
22
22
  created() {
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+ getTakeorderOrderDetail: { "id": 80, "order_id": "h866697758749884417", "shop_name": "星巴克(平谷国泰店)", "shop_address": "平谷区文化北街13号国泰商场一层", "brand_name": "星巴克", "province_name": "平谷区", "market_amount": 525, "suggest_min_quotation": 116, "suggest_max_quotation": 171, "rest_quotation_time": 259, "rest_receive_time": 0, "rest_report_time": 0, "buyer_phone_number": "18232189788", "receive_user_settle_amount": 100, "quotation_person_count": 0, "user_quotation": 0, "order_status": "quoting", "user_quotation_status": "wait_quote", "product_list": [{ "product_name": "星巴克经典咖啡", "product_sku_name": "大杯\/特别热\/经典糖\/标准\/全脂牛奶", "product_thumb": "https:\/\/www.shuomingshu.cn\/wp-content\/uploads\/images\/2023\/01\/07\/dc0bdf6bfedb4038911ec6550fd31d62_5t1vcuagbok.jpg", "product_num": 5, "market_price": 382, "suggest_min_quotation": 23, "suggest_max_quotation": 34, "user_quotation": 0 }], "product_total": 5, "report_voucher_list": [], "request_id": "dd0ae89273941292" },
5
+ createQuotation: {},
6
+ cancelQuotation: {},
7
+ updateQuotation: {},
8
+ discardOrder: {},
9
+ acceptOrder: {},
10
+ reportOrder: {},
11
+ imageRecognition: {},
12
+ getImagePreview: {}
13
+ }
@@ -0,0 +1,150 @@
1
+ <template>
2
+ <view class="dialog">
3
+ <view class="dialog-body">
4
+ <view class="dialog-title">修改报价</view>
5
+ <view class="current-quote"> 当前报价:¥{{ $xdUniHelper.divisionFloatNumber(info.user_quotation,100) }} </view>
6
+ <!-- 报价输入框(带¥前缀) -->
7
+ <view class="quote-input">
8
+ <view class="quote-input-unit">¥</view>
9
+ <input v-model="quotePrice" placeholder="请输入单张报价金额" />
10
+ </view>
11
+ <!-- 建议报价 -->
12
+ <view class="suggest-wrap">
13
+ 建议报价:
14
+ <text :style="{ color: mainColor }" class="suggest-range"
15
+ >¥{{ $xdUniHelper.divisionFloatNumber(info.suggest_min_quotation,100) }} ~ ¥{{ $xdUniHelper.divisionFloatNumber(info.suggest_max_quotation,100) }}</text
16
+ >
17
+ </view>
18
+ <!-- 备注说明 -->
19
+ <view class="note-text">
20
+ 注:修改报价不能高于当前报价,修改成功后按照最新价格参与报价,中标后将按您修改过后的价格为您结算
21
+ </view>
22
+ <view class="btn-wrap">
23
+ <XdButton
24
+ width="180rpx"
25
+ size="small"
26
+ bgColor="#EEE"
27
+ color="#999"
28
+ type="primary"
29
+ @click="handleClose"
30
+ >再想想</XdButton
31
+ >
32
+ <XdButton
33
+ width="180rpx"
34
+ size="small"
35
+ type="primary"
36
+ @click="handleConfirm"
37
+ >确定</XdButton
38
+ >
39
+ </view>
40
+ </view>
41
+ </view>
42
+ </template>
43
+
44
+ <script>
45
+ import XdButton from "@/components/XdButton/XdButton";
46
+ export default {
47
+ name: "CusEditQuote",
48
+ components: { XdButton },
49
+ props: {
50
+ mainColor: {
51
+ type: String,
52
+ default: "",
53
+ },
54
+ info: {
55
+ type: Object,
56
+ default: () => {},
57
+ },
58
+ },
59
+ data() {
60
+ return {
61
+ quotePrice: "",
62
+ };
63
+ },
64
+ methods: {
65
+ handleClose() {
66
+ this.$emit("close");
67
+ },
68
+ handleConfirm() {
69
+ this.$emit("confirm", this.quotePrice);
70
+ },
71
+ },
72
+ };
73
+ </script>
74
+
75
+ <style lang="less" scoped>
76
+ .dialog {
77
+ width: 100%;
78
+ height: 100%;
79
+ position: absolute;
80
+ top: 0;
81
+ left: 0;
82
+ z-index: 9999;
83
+ background: rgba(0, 0, 0, 0.5);
84
+ &-body {
85
+ background: #fff;
86
+ border-radius: 16rpx;
87
+ width: 80%;
88
+ margin: 0 auto;
89
+ position: absolute;
90
+ top: 50%;
91
+ left: 50%;
92
+ transform: translate(-50%, -50%);
93
+ }
94
+ &-title {
95
+ color: #666666;
96
+ font-size: 28rpx;
97
+ padding: 32rpx 0;
98
+ text-align: center;
99
+ border-bottom: 2rpx solid #f8f8f8;
100
+ }
101
+ }
102
+
103
+ /* 当前报价 */
104
+ .current-quote {
105
+ font-size: 28rpx;
106
+ color: #333;
107
+ padding: 32rpx 0 16rpx 64rpx;
108
+ }
109
+ .quote {
110
+ &-input {
111
+ position: relative;
112
+ padding: 0 64rpx 16rpx 64rpx;
113
+ &-unit {
114
+ position: absolute;
115
+ left: 80rpx;
116
+ top: 50%;
117
+ transform: translateY(-80%);
118
+ font-size: 28rpx;
119
+ color: #333;
120
+ font-weight: 700;
121
+ }
122
+ & > input {
123
+ background: #f8f8f8;
124
+ font-size: 28rpx;
125
+ padding: 20rpx 46rpx 20rpx 60rpx;
126
+ border-radius: 16rpx;
127
+ }
128
+ }
129
+ }
130
+
131
+ /* 建议报价 */
132
+ .suggest-wrap {
133
+ font-size: 26rpx;
134
+ padding: 0 64rpx 16rpx 64rpx;
135
+ color: #333;
136
+ }
137
+
138
+ /* 备注说明 */
139
+ .note-text {
140
+ font-size: 24rpx;
141
+ color: #999;
142
+ padding: 0 64rpx 24rpx 64rpx;
143
+ }
144
+
145
+ .btn-wrap {
146
+ display: flex;
147
+ justify-content: space-around;
148
+ padding: 32rpx 0 48rpx 0
149
+ }
150
+ </style>
@@ -0,0 +1,141 @@
1
+ <template>
2
+ <view
3
+ class="wrap order-info"
4
+ :class="{ 'no-margin-top': info.user_quotation_status === 'received' }"
5
+ >
6
+ <view class="order-info-title">
7
+ <view class="order-info-title-left">
8
+ <view>{{ info.shop_name }}</view>
9
+ <text>|</text>
10
+ <view>{{ info.brand_name }}</view>
11
+ </view>
12
+ <view class="order-info-title-right">{{ info.province_name }}</view>
13
+ </view>
14
+ <view
15
+ v-for="(Pitem, Pindex) in info.product_list"
16
+ :key="Pindex"
17
+ class="order-info-product"
18
+ >
19
+ <image :src="Pitem.product_thumb"></image>
20
+ <view class="order-info-product-info">
21
+ <view class="order-info-product-info-name">{{
22
+ Pitem.product_name
23
+ }}</view>
24
+ <view class="order-info-product-info-sku"
25
+ >规格:{{ Pitem.product_sku_name }}</view
26
+ >
27
+ <view class="order-info-product-info-price">
28
+ <view class="order-info-product-info-price-left"
29
+ ><text>¥ </text>{{ $xdUniHelper.divisionFloatNumber(Pitem.suggest_min_quotation,100)
30
+ }}<text class="range">~</text><text>¥ </text
31
+ >{{ $xdUniHelper.divisionFloatNumber(Pitem.suggest_max_quotation,100) }}</view
32
+ >
33
+ <view class="order-info-product-info-price-right"
34
+ ><XdFontIcon
35
+ icon="icondanchuangguanbi_xian"
36
+ color="#999"
37
+ size="14"
38
+ ></XdFontIcon
39
+ ><view>{{ Pitem.product_num }}</view></view
40
+ >
41
+ </view>
42
+ </view>
43
+ </view>
44
+ </view>
45
+ </template>
46
+
47
+ <script>
48
+ export default {
49
+ props: {
50
+ info: {
51
+ type: Object,
52
+ default: () => ({}),
53
+ },
54
+ },
55
+ };
56
+ </script>
57
+
58
+ <style lang="less" scoped>
59
+ .wrap {
60
+ background: #fff;
61
+ margin: 16rpx;
62
+ border-radius: 16rpx;
63
+ &.no-margin-top {
64
+ margin-top: 0 !important;
65
+ }
66
+ }
67
+ .order-info {
68
+ &-title {
69
+ display: flex;
70
+ justify-content: space-between;
71
+ padding: 24rpx 32rpx;
72
+ border-bottom: 1px solid #f4f4f4;
73
+ &-left {
74
+ display: flex;
75
+ align-items: center;
76
+ font-size: 28rpx;
77
+ }
78
+ &-right {
79
+ font-weight: 500;
80
+ font-size: 28rpx;
81
+ }
82
+ }
83
+ &-product {
84
+ display: flex;
85
+ padding: 16rpx 32rpx;
86
+ border-bottom: 1px solid #f4f4f4;
87
+ & > image {
88
+ width: 180rpx;
89
+ height: 180rpx;
90
+ flex-shrink: 0;
91
+ border: 10rpx;
92
+ }
93
+ &-info {
94
+ margin-left: 24rpx;
95
+ font-size: 28rpx;
96
+ &-name {
97
+ .uni-max-cut(2,80);
98
+ margin-bottom: 10rpx;
99
+ }
100
+ &-sku {
101
+ font-size: 24rpx;
102
+ color: #999;
103
+ }
104
+ &-price {
105
+ margin-top: 10rpx;
106
+ display: flex;
107
+ justify-content: space-between;
108
+ align-items: center;
109
+ &-left {
110
+ color: #ff2c18;
111
+ font-size: 32rpx;
112
+ font-weight: 500;
113
+ & > text {
114
+ font-size: 24rpx;
115
+ margin-right: 10rpx;
116
+ }
117
+ .range {
118
+ margin: 0 10rpx;
119
+ }
120
+ }
121
+ &-right {
122
+ color: #999;
123
+ display: flex;
124
+ align-items: baseline;
125
+ & > view {
126
+ margin-left: 10rpx;
127
+ }
128
+ }
129
+ }
130
+ }
131
+ }
132
+ }
133
+ .other-info-item {
134
+ display: flex;
135
+ justify-content: space-between;
136
+ padding: 20rpx 32rpx;
137
+ color: #333;
138
+ font-size: 28rpx;
139
+ border-bottom: 2rpx solid #f8f8f8;
140
+ }
141
+ </style>
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+ import {
3
+ dataVal,
4
+ statusDataVal,
5
+ statusShow
6
+ } from "@/utils/AttrTools";
7
+ export default (data, gValue, gColor, oldData = {}) => {
8
+ return [
9
+
10
+ ].filter(i => i)
11
+ }
12
+
@@ -0,0 +1,233 @@
1
+ 'use strict';
2
+
3
+ import { customVal, dataVal } from "@/utils/AttrTools";
4
+
5
+ export default (data, gValue, gColor, oldData = {}) => {
6
+ return [
7
+ {
8
+ label: '公告内容:',
9
+ ele: 'xd-site-news',
10
+ valueKey: 'notice',
11
+ groupKey: 'content',
12
+ value: data.notice || null,
13
+ className: 'input70',
14
+ setting: {
15
+ config: {
16
+ sort: true,
17
+ maxlen: 100,
18
+ action: 'aliyun',
19
+ size: 5,
20
+ tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
21
+ uploadType: 'aliyun',
22
+ type: ['jpg', 'png', 'jpeg']
23
+ },
24
+ },
25
+ handleCustom({ action, data }) {
26
+ if (data && data.params) {
27
+ //当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
28
+ //data.params = Object.assign({}, data.params, {code: 'g_test_id'});
29
+ }
30
+
31
+ //获取返回参数(场景类型名称为必填)
32
+ //获取返回参数(场景类型名称为必填)
33
+ let loading = { close() { } }
34
+
35
+ //获取显示内容
36
+ if (action === 'screen') {
37
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_bucket_content_tip' })
38
+ .then(res => {
39
+ loading.close();
40
+ data.cb(res['list'])
41
+ })
42
+ .catch(error => {
43
+ console.error(error);
44
+ loading.close();
45
+ });
46
+
47
+ }
48
+
49
+ //获取返回参数(广告位高度必选项)
50
+ if (action === 'getNewsInfo') {
51
+ XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
52
+ .then(res => {
53
+ loading.close()
54
+ data.cb({ list: res.list, selectId: res.selected })
55
+ })
56
+ .catch(error => {
57
+ loading.close()
58
+ console.error(error);
59
+ });
60
+ }
61
+
62
+ //获取产品业务线列表
63
+ if (action === 'namespace') {
64
+ XdBus.getParentApi('getOptionsNamespaces')({})
65
+ .then(res => {
66
+ loading.close()
67
+ data.cb(res['list'])
68
+ })
69
+ .catch(error => {
70
+ loading.close()
71
+ console.error(error);
72
+ });
73
+ }
74
+
75
+ //使用内容分类
76
+ if (action === 'cmsPublishEditxContent') {
77
+ loading = XdBus.getParentApi('loading')({});
78
+ XdBus.getParentApi('cmsPublishEditxContent')(data.params)
79
+ .then(res => {
80
+ console.log('cmsPublishEditxContent', res)
81
+ loading.close();
82
+ data.cb(res)
83
+ })
84
+ .catch(error => {
85
+ loading.close();
86
+ console.error(error);
87
+ });
88
+ }
89
+
90
+ //位置列表
91
+ if (action === 'getListPostion') {
92
+ loading = XdBus.getParentApi('loading')({});
93
+ XdBus.getParentApi('getListNewsPosition')(data.params)
94
+ .then(res => {
95
+ loading.close();
96
+ data.cb(res)
97
+ })
98
+ .catch(error => {
99
+ loading.close();
100
+ console.error(error);
101
+ });
102
+ }
103
+
104
+ //位置创建
105
+ if (action === 'addPostion') {
106
+ loading = XdBus.getParentApi('loading')({});
107
+ XdBus.getParentApi('addNewsPosition')(data.params)
108
+ .then(res => {
109
+ loading.close();
110
+ data.cb(true)
111
+ })
112
+ .catch(error => {
113
+ console.error(error);
114
+ loading.close();
115
+ data.cb(false)
116
+ });
117
+ }
118
+
119
+ //位置编辑
120
+ if (action === 'editPostion') {
121
+ loading = XdBus.getParentApi('loading')({});
122
+ XdBus.getParentApi('updateNewsPosition')(data.params)
123
+ .then(res => {
124
+ loading.close();
125
+ data.cb(true)
126
+ })
127
+ .catch(error => {
128
+ console.error(error);
129
+ loading.close();
130
+ data.cb(false)
131
+ });
132
+ }
133
+
134
+ //位置删除
135
+ if (action === 'deleltePostion') {
136
+ loading = XdBus.getParentApi('loading')({});
137
+ XdBus.getParentApi('deleteNewsPosition')(data.params)
138
+ .then(res => {
139
+ loading.close();
140
+ data.cb(true)
141
+ })
142
+ .catch(error => {
143
+ console.error(error);
144
+ loading.close();
145
+ data.cb(false)
146
+ });
147
+ }
148
+
149
+ //获取广告位内容列表
150
+ if (action === 'getListContent') {
151
+ loading = XdBus.getParentApi('loading')({});
152
+ XdBus.getParentApi('getListNewsContent')(data.params)
153
+ .then(res => {
154
+ loading.close();
155
+ data.cb(res)
156
+ })
157
+ .catch(error => {
158
+ loading.close();
159
+ console.error(error);
160
+ });
161
+ }
162
+
163
+ //广告内容创建
164
+ if (action === 'addContent') {
165
+ loading = XdBus.getParentApi('loading')({});
166
+ XdBus.getParentApi('addNewsContent')(data.params)
167
+ .then(res => {
168
+ loading.close();
169
+ data.cb(true)
170
+ })
171
+ .catch(error => {
172
+ console.error(error);
173
+ loading.close();
174
+ data.cb(false)
175
+ });
176
+ }
177
+
178
+ //广告内容编辑
179
+ if (action === 'editContent') {
180
+ loading = XdBus.getParentApi('loading')({});
181
+ XdBus.getParentApi('updateNewsContent')(data.params)
182
+ .then(res => {
183
+ loading.close();
184
+ data.cb(true)
185
+ })
186
+ .catch(error => {
187
+ console.error(error);
188
+ loading.close();
189
+ data.cb(false)
190
+ });
191
+ }
192
+
193
+ //广告内容删除
194
+ if (action === 'deleteContent') {
195
+ loading = XdBus.getParentApi('loading')({});
196
+ XdBus.getParentApi('deleteNewsContent')(data.params)
197
+ .then(res => {
198
+ loading.close();
199
+ data.cb(true)
200
+ })
201
+ .catch(error => {
202
+ console.error(error);
203
+ loading.close();
204
+ data.cb(false)
205
+ });
206
+ }
207
+
208
+ //内容发布
209
+ if (action === 'publish') {
210
+ loading = XdBus.getParentApi('loading')({});
211
+ console.log('publish', data.params)
212
+ XdBus.getParentApi('cmsPublishContent')(data.params)
213
+ .then(res => {
214
+ loading.close();
215
+ data.cb(res)
216
+ })
217
+ .catch(error => {
218
+ loading.close();
219
+ console.error(error);
220
+ });
221
+ }
222
+
223
+ //通知页面进行刷新
224
+ if (action === 'update') {
225
+ loading = XdBus.getParentApi('loading')({});
226
+ XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
227
+ loading.close()
228
+ }
229
+ },
230
+ },
231
+ ].filter(i => i)
232
+ }
233
+
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+ import {
3
+ dataVal,
4
+ statusShow,
5
+ statusDataVal,
6
+ } from "@/utils/AttrTools";
7
+
8
+ export default function (data, gValue, gColor, oldData) {
9
+ return [].filter(i => i)
10
+ }
11
+
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+ /**
3
+ * @description 接口配置,
4
+ * 在设置方法名字当时候,别忘记加上【模块名字】:Order
5
+ * @type {*[]}
6
+ */
7
+ module.exports = [
8
+ {
9
+ mapFnName: 'getOrderList',
10
+ title: '订单列表',
11
+ path: '/takeorder/v1/order',
12
+ isRule: false,
13
+ params: {
14
+ tab: ['tab', 'String', '必选'],
15
+ order_type: ['订单类型', 'Number', '必选'],
16
+ page_token: ['page_token', 'Number', ''],
17
+ page_size: ['page_size', 'Number', ''],
18
+ },
19
+ isConsole: true,
20
+ disabled: true,
21
+ },
22
+ {
23
+ mapFnName: 'getNewOrderNotify',
24
+ title: '新订单通知-轮询(5s轮询一次)',
25
+ path: '/takeorder/v1/new-order/notify',
26
+ isRule: false,
27
+ params: {
28
+ order_type: ['订单类型', 'Number', '必选'],
29
+ max_id: ['订单列表的最大ID,如果不存在,直接传递 0', 'Number', ''],
30
+ },
31
+ isConsole: true,
32
+ disabled: true,
33
+ },
34
+ {
35
+ mapFnName: 'getUserConfig',
36
+ title: '获取用户配置',
37
+ path: '/takeorder/v1/user-config',
38
+ isRule: false,
39
+ params: {},
40
+ isConsole: true,
41
+ disabled: true,
42
+ },
43
+ ];
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+ import Style from './cusAttr/style'
3
+ import Advanced from './cusAttr/advanced'
4
+ import Content from './cusAttr/content'
5
+
6
+ export default {
7
+ style: [],
8
+ content: (data, gValue, gColor, oldData) => {
9
+ return [
10
+ ...Content(data, gValue, gColor, oldData),
11
+ ...Style(data, gValue, gColor, oldData),
12
+ ...Advanced(data, gValue, gColor, oldData),
13
+ ].filter(i => i)
14
+ },
15
+ advanced: [],
16
+ }