jufubao-admin-library 1.1.119 → 1.1.121

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 (23) hide show
  1. package/library/pageComponents/modules/JfbProductSku.vue +10 -10
  2. package/library/viewModules/viewTask/schemas/tasks.js +12 -1
  3. package/library/viewModules/viewTask/viewTask/list.vue +19 -3
  4. package/library/viewModules/viewsCorporateActivities/viewsCorporateActivities/components/PeopleManage.vue +1 -0
  5. package/library/viewModules/viewsDynamicForm/viewsDynamicForm/components/dialogUser.vue +31 -14
  6. package/library/viewModules/viewsMaterial/viewsMaterial/common/common.scss +22 -12
  7. package/library/viewModules/viewsMaterial/viewsMaterial/common/platform.scss +2 -4
  8. package/library/viewModules/viewsMaterial/viewsMaterial/components/CusUpload.vue +13 -10
  9. package/library/viewModules/viewsMaterial/viewsMaterial/components/dialogSearch.vue +319 -0
  10. package/library/viewModules/viewsMaterial/viewsMaterial/components/form.vue +2 -4
  11. package/library/viewModules/viewsMaterial/viewsMaterial/components/list.vue +2 -2
  12. package/library/viewModules/viewsMaterial/viewsMaterial/components/search.vue +4 -8
  13. package/library/viewModules/viewsMaterial/viewsMaterial/dialog/component/company.vue +95 -57
  14. package/library/viewModules/viewsMaterial/viewsMaterial/dialog/component/detail.vue +232 -116
  15. package/library/viewModules/viewsMaterial/viewsMaterial/dialog/component/menu.vue +5 -1
  16. package/library/viewModules/viewsMaterial/viewsMaterial/dialog/component/my.vue +110 -58
  17. package/library/viewModules/viewsMaterial/viewsMaterial/dialog/component/platform.vue +176 -74
  18. package/library/viewModules/viewsMaterial/viewsMaterial/dialog/component/selects.vue +41 -19
  19. package/library/viewModules/viewsMaterial/viewsMaterial/dialog/component/share.vue +89 -56
  20. package/library/viewModules/viewsMaterial/viewsMaterial/dialogMaterial.vue +93 -26
  21. package/library/viewModules/viewsMaterial/viewsMaterial/material.vue +2 -2
  22. package/library/viewModules/viewsMaterial/viewsMaterial/mixins/handleMaterial.js +45 -36
  23. package/package.json +1 -1
@@ -23,17 +23,17 @@
23
23
  <template slot="volume" slot-scope="inScope">
24
24
  {{$xdHelper.divisionFloatNumber(inScope.row.volume, 100)}}m³
25
25
  </template>
26
- <template slot="purchase_price" slot-scope="inScope">
27
- <div v-if="inScope.row.purchase_price!==-1">货源:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.purchase_price, 100)}}</span>元</div>
28
- <div v-if="inScope.row.dist_price!==-1">平台:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.dist_price, 100)}}</span>元</div>
26
+ <template slot="purchase_price" slot-scope="inScope">
27
+ <div v-if="inScope.row.purchase_price!==-1&&$setting['system']!=='open-dist'">货源:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.purchase_price, 100)}}</span>元</div>
28
+ <div v-if="inScope.row.dist_price!==-1">{{$setting['system']==='open-dist'?'分销':'平台'}}:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.dist_price, 100)}}</span>元</div>
29
29
  </template>
30
30
  <template slot="jfb_price_ratio" slot-scope="inScope">
31
31
  <div v-if="inScope.row.purchase_div_jfb_discount_ratio">货源:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.purchase_div_jfb_discount_ratio, 1000)}}</span>折</div>
32
- <div v-if="inScope.row.dist_div_jfb_discount_ratio">平台:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.dist_div_jfb_discount_ratio, 1000)}}</span>折</div>
32
+ <div v-if="inScope.row.dist_div_jfb_discount_ratio">{{$setting['system']==='open-dist'?'分销':'平台'}}:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.dist_div_jfb_discount_ratio, 1000)}}</span>折</div>
33
33
  </template>
34
34
  <template slot="market_price_ratio" slot-scope="inScope">
35
35
  <div v-if="inScope.row.purchase_div_market_discount_ratio">货源:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.purchase_div_market_discount_ratio, 1000)}}</span>折</div>
36
- <div v-if="inScope.row.dist_div_market_discount_ratio">平台:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.dist_div_market_discount_ratio, 1000)}}</span>折</div>
36
+ <div v-if="inScope.row.dist_div_market_discount_ratio">{{$setting['system']==='open-dist'?'分销':'平台'}}:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.dist_div_market_discount_ratio, 1000)}}</span>折</div>
37
37
  </template>
38
38
  </xd-table>
39
39
  <xd-dialog
@@ -94,7 +94,7 @@
94
94
  minWidth: 140,
95
95
  label: "日期",
96
96
  },
97
- {
97
+ this.$setting['system'] !== 'open-dist'&&{
98
98
  type: "price",
99
99
  prop: "purchase_price",
100
100
  align: "center",
@@ -106,7 +106,7 @@
106
106
  prop: "dist_price",
107
107
  align: "center",
108
108
  minWidth: 100,
109
- label: "平台进货价",
109
+ label: this.$setting['system'] !== 'open-dist'?"平台进货价":'分销价',
110
110
  },
111
111
  {
112
112
  type: "price",
@@ -122,14 +122,14 @@
122
122
  minWidth: 100,
123
123
  label: "建议零售价",
124
124
  },
125
- {
125
+ this.$setting['system'] !== 'open-dist'&&{
126
126
  type: "price",
127
127
  prop: "min_sale_price",
128
128
  align: "center",
129
129
  minWidth: 100,
130
130
  label: "最低售价",
131
131
  },
132
- this.$setting['system'] !== 'partner'&&{
132
+ this.$setting['system'] !== 'partner'&&xdCookie.get('app_type')&&xdCookie.get('app_type')==='H'&&{
133
133
  type: "price",
134
134
  prop: "sale_price",
135
135
  align: "center",
@@ -139,7 +139,7 @@
139
139
  ].filter(i=>i)
140
140
  },
141
141
  uiSkusHeaders(){
142
- let purchase_price_name = this.$setting['system'] === 'supplier' ? '供货商' : '进货价';
142
+ let purchase_price_name = this.$setting['system'] === 'supplier' ? '供货商' :this.$setting['system'] === 'open-dist' ?'分销价':'进货价';
143
143
  return [
144
144
  {"type": "normal", "prop": "stands", "align": "left", "min-width": 200, "label": "规格"},
145
145
  this.isShowPurchasePrice && {"type": "price", "prop": "purchase_price", "align": "center", "min-width": 80, "label": purchase_price_name},
@@ -12,6 +12,9 @@ module.exports = {
12
12
  // #ifdef admin partner partner-stat oa-finance supplier saas-admin saas-admin partner-saas partner-wholesale
13
13
  path: '/@@@@/v1/async/list',
14
14
  // #endif
15
+ // #ifdef open-dist
16
+ path: '/open-dist-dist/v2/async/list',
17
+ // #endif
15
18
  //#ifdef partner-gift partner-mall partner-movie partner-market
16
19
  path: '/@@@@/v1/:xsiteid/:xnamespace/async/list',
17
20
  // #endif
@@ -39,6 +42,9 @@ module.exports = {
39
42
  // #ifdef admin partner partner-stat oa-finance supplier saas-admin partner-saas partner-wholesale
40
43
  path: '/@@@@/v1/async/retry',
41
44
  // #endif
45
+ // #ifdef open-dist
46
+ path: '/open-dist-dist/v2/async/retry',
47
+ // #endif
42
48
  // #ifdef partner-gift partner-mall partner-movie partner-market
43
49
  path: '/@@@@/v1/:xsiteid/:xnamespace/async/retry',
44
50
  // #endif
@@ -56,7 +62,12 @@ module.exports = {
56
62
  mapFn: 'getDownloadUrl',
57
63
  isRule: false,
58
64
  title: '任务query',
65
+ // #ifdef open-dist
66
+ path: '/open-dist-dist/v2/async/real-url',
67
+ // #endif
68
+ // #ifndef open-dist
59
69
  path: '/@@@@/v1/async/real-url',
70
+ // #endif
60
71
  params: {
61
72
  serial_no: ['id', 'String', '必选'],
62
73
  // #ifdef admin
@@ -65,7 +76,7 @@ module.exports = {
65
76
  // #ifdef supplier
66
77
  from: ['项目标识', 'String', '必选', 'supplier'],
67
78
  // #endif
68
- // #ifndef admin supplier
79
+ // #ifndef admin supplier open-dist
69
80
  from: ['项目标识', 'String', '必选', 'partner'],
70
81
  // #endif
71
82
  },
@@ -144,6 +144,9 @@ export default {
144
144
  page_token: this.pageSize,
145
145
  page_size: this.limit,
146
146
  ...this.searchParams,
147
+ // #ifdef open-dist
148
+ app_id:xdCookie.get('app_value'),
149
+ // #endif
147
150
  }
148
151
  let loading = this.$loading({})
149
152
  this.getAsyncList(params).then(res => {
@@ -244,18 +247,26 @@ export default {
244
247
  // #ifdef partner-site
245
248
  params = {from:'site'}
246
249
  // #endif
247
- // #ifndef admin supplier partner-site
250
+ // #ifndef admin supplier partner-site open-dist
248
251
  params = {from:'partner'}
249
252
  // #endif
250
253
  getOptions({
251
- // #ifndef partner-wholesale
254
+ // #ifndef partner-wholesale open-dist
252
255
  server:'export-public',
253
256
  // #endif
254
257
  // #ifdef partner-wholesale
255
258
  server:'wholesale-public',
256
259
  // #endif
260
+ // #ifdef open-dist
261
+ server:'open-dist-dist',
262
+ // #endif
257
263
  fn:'data-tags',
264
+ // #ifdef open-dist
265
+ path: 'p21',
266
+ // #endif
267
+ // #ifndef open-dist
258
268
  path: 'p1',
269
+ // #endif
259
270
  params
260
271
  }).then(res => {
261
272
  //#ifdef partner-site
@@ -288,7 +299,12 @@ export default {
288
299
  handleOperate (action, serial_no, url) {
289
300
  if (action === 'retry') {
290
301
  //重新执行
291
- this.asyncRetry({ serial_no: serial_no })
302
+ this.asyncRetry({
303
+ serial_no: serial_no,
304
+ // #ifdef open-dist
305
+ app_id:xdCookie.get('app_value'),
306
+ // #endif
307
+ })
292
308
  .then(res => {
293
309
  this.$message({
294
310
  type: 'success',
@@ -251,6 +251,7 @@ export default {
251
251
  tipsformet: '上传文件格式:@imageType@,不超过@size@MB.<a style="color:#409EFF" href="https://img.jufubao.cn/xlsx/mobile_user.xlsx">模版下载</a>',
252
252
  type: ['docx', 'doc', 'xlsx'],
253
253
  styleType: 'one', //其值:one=>单文件上传 auth=>证件正反面上传 list=>多文件上传
254
+ showType: 'name', //其值:name=>显示文件名 url=>显示路径
254
255
  uploadType: 'aliyun', //''=>API服务上传 qiniu=>七牛云OSS上传 aliyun=> 阿里云OSS上传
255
256
  size: 5, //5M
256
257
  action: 'aliyun',
@@ -51,6 +51,9 @@
51
51
  @onApiSuccessUrl="handleApiSuccessUrl"
52
52
  @onGetParamsAndHeader="handlePrivateGetParamsAndHeader"
53
53
  >
54
+ <template slot="download" slot-scope="scope">
55
+ <el-link :style="{marginLeft:scope.width}" type="primary" @click="handleDown">点击下载模板</el-link>
56
+ </template>
54
57
  </xd-base-dynamic-field>
55
58
  </div>
56
59
  <div slot="btn" class="xd-dialog__box-footer">
@@ -169,22 +172,33 @@ export default {
169
172
  console.log(params, "initForm")
170
173
  this.listForm = [
171
174
  {
172
- label: "请上传文件:",
173
- ele: "xd-saas-upload-file",
175
+ label: '', //label
176
+ ele: 'slot', //package 名称
177
+ slot: 'download',
178
+ },
179
+ {
180
+ label: "文件:",
181
+ ele: "xd-upload",
174
182
  valueKey: "path_file",
175
- value: null,
176
- defaultValue: params.path_file ? { url: params.path_file} : null,
177
- setting: {
178
- type: ['xls', 'xlsx', 'csv'],
179
- },
180
- handleCustom: (action) => {
181
- console.log("action", action);
182
- if(action == 'download'){
183
- window.open(this.download,'_self');
184
- }
185
- },
183
+ value: {},
184
+ defaultValue: {},
185
+ slot: false,
186
+ elinputClassName: "input40",
187
+ tipsformet: "上传文件格式:@imageType@,不超过@size@MB.",
188
+ type: ["xls", "xlsx", "csv"],
189
+ styleType: "one",
190
+ showType:'name', //显示类型 name:名称 url:地址
191
+ uploadType: "aliyun",
192
+ size: 5,
193
+ action: "aliyun",
194
+ sort: true,
195
+ maxlen: 100,
186
196
  rules: [
187
- { required: true, message: "请上传文件", trigger: ["blur", "change"] },
197
+ {
198
+ required: true,
199
+ message: "请上传文件",
200
+ trigger: ["blur", "change"],
201
+ },
188
202
  ],
189
203
  },
190
204
  {
@@ -213,6 +227,9 @@ export default {
213
227
  handleCancelUpload(){
214
228
  this.dialogFormShow = false;
215
229
  },
230
+ handleDown() {
231
+ window.open(this.download,'_self');
232
+ },
216
233
  handleConfirmUpload(){
217
234
  this.$refs.poster.submit().then(res => {
218
235
  console.log("res", this.listValue)
@@ -17,8 +17,9 @@
17
17
 
18
18
  .material {
19
19
  flex: 1;
20
- margin-left: 20px;
20
+ margin-left: 15px;
21
21
  padding-top: 30px;
22
+ margin-right: 15px;
22
23
 
23
24
  &-wrap {
24
25
  height: 560px;
@@ -47,31 +48,32 @@
47
48
  display: flex;
48
49
  flex-wrap: nowrap;
49
50
 
50
- .el-button {
51
+ & > .el-button {
51
52
  margin-left: 15px;
52
53
  }
53
54
  }
54
55
  }
55
56
 
56
57
  &-list {
57
- margin-top: 20px;
58
58
  display: flex;
59
59
  flex-wrap: wrap;
60
- max-height: 460px;
61
- min-height: 460px;
62
60
  overflow-y: auto;
61
+ margin-bottom: 10px;
62
+ justify-content: flex-start;
63
+ align-content: flex-start;
63
64
 
64
65
  &-item {
65
- margin-right: 30px;
66
- margin-bottom: 16px;
66
+ margin-right: 15px;
67
+ margin-bottom: 15px;
67
68
  position: relative;
68
- width: 110px;
69
+ width: 127px;
69
70
  cursor: pointer;
70
71
 
71
72
  &-img {
72
73
  width: 110px;
73
74
  height: 110px;
74
75
  background: #f6f7f9;
76
+ margin: 0 auto;
75
77
  display: flex;
76
78
  flex-direction: column;
77
79
  justify-content: center;
@@ -80,9 +82,10 @@
80
82
  }
81
83
 
82
84
  &-name {
85
+ width: 110px;
83
86
  font-size: 16px;
84
87
  color: #666;
85
- margin: 12px 0;
88
+ margin: 12px auto;
86
89
  text-align: left;
87
90
  overflow: hidden;
88
91
  text-overflow: ellipsis;
@@ -94,6 +97,13 @@
94
97
  color: #999;
95
98
  }
96
99
  }
100
+
101
+ &.c5 .material-list-item:nth-child(5n) {
102
+ margin-right: 0;
103
+ }
104
+ &.c7 .material-list-item:nth-child(7n) {
105
+ margin-right: 0;
106
+ }
97
107
  }
98
108
 
99
109
  .active {
@@ -122,8 +132,8 @@
122
132
  }
123
133
 
124
134
  .el-empty {
125
- height: 480px;
126
- min-height: 480px;
135
+ height: 100%;
136
+ width: 100%;
127
137
  display: flex;
128
138
  justify-content: center;
129
139
  align-items: center;
@@ -131,4 +141,4 @@
131
141
  text-align: center;
132
142
  box-sizing: border-box;
133
143
  padding: 40px 0;
134
- }
144
+ }
@@ -1,7 +1,5 @@
1
1
  .platform-wrap {
2
- height: 570px;
3
- overflow-y: auto;
4
- margin-left: 20px;
2
+ height: 100%;
5
3
  }
6
4
 
7
5
  .platform-header {
@@ -101,4 +99,4 @@
101
99
  left: 31%;
102
100
  transform: translate(-50%, -50%);
103
101
  }
104
- }
102
+ }
@@ -7,8 +7,8 @@
7
7
  <slot :image="oneItem">
8
8
  <el-button size="small" type="primary" :disabled="disabled">{{uploadName}}</el-button>
9
9
  </slot>
10
- <div v-if="(oneItem && (oneItem.path || oneItem.url)) && !disabled " class="xd-upload__one-btn-del" @click.stop="delOne()">
11
- <i v-if="item['slot'] || isShowDel" class="el-icon-delete"></i>
10
+ <div v-if="isShowDel && (oneItem && (oneItem.path || oneItem.url)) && !disabled " class="xd-upload__one-btn-del" @click.stop="delOne()">
11
+ <i v-if="item['slot']" class="el-icon-delete"></i>
12
12
  </div>
13
13
  <div class="xd-upload__disabled" v-if="disabled"></div>
14
14
  </div>
@@ -61,7 +61,7 @@
61
61
  :disabled="isBtnMaterialMore || disabled"
62
62
  @click="isDialogShow=true"
63
63
  >{{materialBtnName}}</el-button></div>
64
- <div v-if="showtype" slot="tip" class="xd-upload__tip">
64
+ <div v-if="showType" slot="tip" class="xd-upload__tip">
65
65
  <slot name="tip"><span v-html="tooltip"></span></slot>
66
66
  </div>
67
67
  </div>
@@ -95,13 +95,13 @@
95
95
  <slot :image="oneItem">
96
96
  <el-button size="small" type="primary" :disabled="disabled">{{uploadName}}</el-button>
97
97
  </slot>
98
- <div v-if="(oneItem && (oneItem.path || oneItem.url)) && !disabled " class="xd-upload__one-btn-del" @click.stop="delOne()">
98
+ <div v-if="isShowDel && (oneItem && (oneItem.path || oneItem.url)) && !disabled " class="xd-upload__one-btn-del" @click.stop="delOne()">
99
99
  <i v-if="item['slot']" class="el-icon-delete"></i>
100
100
  </div>
101
101
  <div class="xd-upload__disabled" v-if="disabled"></div>
102
102
  </div>
103
103
  </el-upload>
104
- <div v-if="showtype" slot="tip" class="xd-upload__tip">
104
+ <div v-if="showType" slot="tip" class="xd-upload__tip">
105
105
  <slot name="tip"><span v-html="tooltip"></span></slot>
106
106
  </div>
107
107
  </template>
@@ -177,7 +177,7 @@
177
177
  </div>
178
178
  </el-upload>
179
179
  </div>
180
- <div v-if="showtype" slot="tip" class="xd-upload__tip">
180
+ <div v-if="showType" slot="tip" class="xd-upload__tip">
181
181
  <slot name="tip"><span v-html="tooltip"></span></slot>
182
182
  </div>
183
183
  </div>
@@ -257,7 +257,7 @@
257
257
  </div>
258
258
  </el-upload>
259
259
  <el-upload
260
- v-else
260
+ v-else
261
261
  :disabled="disabled"
262
262
  class="xd-upload__list-ele"
263
263
  ref="xd-upload__list"
@@ -281,7 +281,7 @@
281
281
  <div class="xd-upload__disabled" v-if="disabled&&!isRealse"></div>
282
282
  </div>
283
283
  </el-upload>
284
- <div v-if="showtype" slot="tip" class="xd-upload__tip">
284
+ <div v-if="showType" slot="tip" class="xd-upload__tip">
285
285
  <slot name="tip"><span v-html="tooltip"></span></slot>
286
286
  </div>
287
287
  </div>
@@ -367,7 +367,7 @@
367
367
  /**
368
368
  * @description 是否显示提示语
369
369
  */
370
- showtype: {
370
+ showType: {
371
371
  type: Boolean,
372
372
  default: false
373
373
  },
@@ -1058,6 +1058,9 @@
1058
1058
  if(this.$xdHelper.isEmpty(this.defaultValue)) this.update('', 'init');
1059
1059
  else this.update(this.$xdHelper.cloneDeep(this.defaultValue), 'init');
1060
1060
  }
1061
+ else if(this.$xdHelper.checkVarType(this.defaultValue) === 'string' && this.defaultValue.length > 0){
1062
+ this.update({url: this.defaultValue}, 'init');
1063
+ }
1061
1064
  else {
1062
1065
  this.update('', 'init');
1063
1066
  }
@@ -1342,7 +1345,7 @@
1342
1345
  &__tip {
1343
1346
  font-size: 10px;
1344
1347
  padding-top: 10px;
1345
- line-height: 24px;
1348
+ line-height: 16px;
1346
1349
  }
1347
1350
 
1348
1351
  &__one {