bm-admin-ui 1.1.7-alpha → 1.1.8-alpha
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.
|
@@ -10,6 +10,8 @@ import { cloneDeep, floor, debounce } from 'lodash-es';
|
|
|
10
10
|
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
11
11
|
import utils from 'bm-admin-ui/es/utils';
|
|
12
12
|
import { isNull } from 'bm-admin-ui/es/utils/isNull';
|
|
13
|
+
import FC from '@form-create/ant-design-vue';
|
|
14
|
+
import BmOverTooltips from 'bm-admin-ui/es/components/over-tooltips';
|
|
13
15
|
|
|
14
16
|
const fieldRatioMap = {
|
|
15
17
|
'25%': 6,
|
|
@@ -18919,6 +18921,11 @@ const _sfc_main$7 = defineComponent({
|
|
|
18919
18921
|
}
|
|
18920
18922
|
}
|
|
18921
18923
|
];
|
|
18924
|
+
if (tableConfig.value?.system === "productCenter" && ["F2CTemplate", "B2CTemplate", "DistributeTemp", "FreshTemplate"].includes(
|
|
18925
|
+
tableConfig.value.template
|
|
18926
|
+
) && rule.name === "product") {
|
|
18927
|
+
columns2.title = "\u5546\u54C1\u7F16\u53F7";
|
|
18928
|
+
}
|
|
18922
18929
|
if (associatedFields.length) {
|
|
18923
18930
|
associatedFields.forEach((item) => {
|
|
18924
18931
|
const childField = productPicName(item.value, field);
|
|
@@ -19002,6 +19009,7 @@ const _sfc_main$7 = defineComponent({
|
|
|
19002
19009
|
async function queryProductInfo(rule, row) {
|
|
19003
19010
|
const field = rule.field;
|
|
19004
19011
|
const associatedFields = rule?.config?.associatedFields;
|
|
19012
|
+
const otherAssociatedFields = rule?.config?.otherAssociatedFields;
|
|
19005
19013
|
let result = void 0;
|
|
19006
19014
|
try {
|
|
19007
19015
|
if (row[field]) {
|
|
@@ -19014,10 +19022,12 @@ const _sfc_main$7 = defineComponent({
|
|
|
19014
19022
|
}
|
|
19015
19023
|
}
|
|
19016
19024
|
processAssociatedFields(field, associatedFields, row, result);
|
|
19025
|
+
processOtherAssociatedFields(field, otherAssociatedFields, row, result);
|
|
19017
19026
|
return result;
|
|
19018
19027
|
} catch (e) {
|
|
19019
19028
|
row[field] = "";
|
|
19020
19029
|
processAssociatedFields(field, associatedFields, row, result);
|
|
19030
|
+
processOtherAssociatedFields(field, otherAssociatedFields, row, result);
|
|
19021
19031
|
return Promise.resolve(result);
|
|
19022
19032
|
}
|
|
19023
19033
|
}
|
|
@@ -19027,6 +19037,15 @@ const _sfc_main$7 = defineComponent({
|
|
|
19027
19037
|
row[productPicName(item.value, field)] = result ? result[accosiationParseKeyMap[item.value]] : void 0;
|
|
19028
19038
|
});
|
|
19029
19039
|
}
|
|
19040
|
+
function processOtherAssociatedFields(field, fields, row, result) {
|
|
19041
|
+
if (tableConfig.value?.system === "productCenter" && ["F2CTemplate", "B2CTemplate", "DistributeTemp", "FreshTemplate"].includes(
|
|
19042
|
+
tableConfig.value.template
|
|
19043
|
+
)) {
|
|
19044
|
+
fields?.forEach?.((item) => {
|
|
19045
|
+
row[item] = result ? result[item] : void 0;
|
|
19046
|
+
});
|
|
19047
|
+
}
|
|
19048
|
+
}
|
|
19030
19049
|
function handleChange(e) {
|
|
19031
19050
|
const file = e.target.files[0];
|
|
19032
19051
|
const reader = new FileReader();
|
|
@@ -21340,6 +21359,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21340
21359
|
emits: ["update:value", "change"],
|
|
21341
21360
|
setup(__props, { expose, emit: emits }) {
|
|
21342
21361
|
const props = __props;
|
|
21362
|
+
FC.component("BmLabelTooltip", BmOverTooltips);
|
|
21343
21363
|
const formRuleList = computed(() => {
|
|
21344
21364
|
if (typeof props.resolveRulesConfig === "function") {
|
|
21345
21365
|
const rules = props.resolveRulesConfig(ruleList);
|
|
@@ -21359,6 +21379,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21359
21379
|
span: 24
|
|
21360
21380
|
}
|
|
21361
21381
|
},
|
|
21382
|
+
form: {
|
|
21383
|
+
title: "\u81EA\u5B9A\u4E49\u8868\u5355\u6D4B\u8BD5"
|
|
21384
|
+
},
|
|
21362
21385
|
submitBtn: false,
|
|
21363
21386
|
global: {
|
|
21364
21387
|
ShopWidget: {
|
|
@@ -14,6 +14,8 @@ var lodashEs = require('lodash-es');
|
|
|
14
14
|
var customParseFormat = require('dayjs/plugin/customParseFormat');
|
|
15
15
|
var utils = require('bm-admin-ui/lib/utils');
|
|
16
16
|
var isNull = require('bm-admin-ui/lib/utils/isNull');
|
|
17
|
+
var FC = require('@form-create/ant-design-vue');
|
|
18
|
+
var BmOverTooltips = require('bm-admin-ui/lib/components/over-tooltips');
|
|
17
19
|
|
|
18
20
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
19
21
|
|
|
@@ -22,6 +24,8 @@ var Picture__default = /*#__PURE__*/_interopDefaultLegacy(Picture);
|
|
|
22
24
|
var BmStaffsSelector__default = /*#__PURE__*/_interopDefaultLegacy(BmStaffsSelector);
|
|
23
25
|
var customParseFormat__default = /*#__PURE__*/_interopDefaultLegacy(customParseFormat);
|
|
24
26
|
var utils__default = /*#__PURE__*/_interopDefaultLegacy(utils);
|
|
27
|
+
var FC__default = /*#__PURE__*/_interopDefaultLegacy(FC);
|
|
28
|
+
var BmOverTooltips__default = /*#__PURE__*/_interopDefaultLegacy(BmOverTooltips);
|
|
25
29
|
|
|
26
30
|
const fieldRatioMap = {
|
|
27
31
|
'25%': 6,
|
|
@@ -18931,6 +18935,11 @@ const _sfc_main$7 = vue.defineComponent({
|
|
|
18931
18935
|
}
|
|
18932
18936
|
}
|
|
18933
18937
|
];
|
|
18938
|
+
if (tableConfig.value?.system === "productCenter" && ["F2CTemplate", "B2CTemplate", "DistributeTemp", "FreshTemplate"].includes(
|
|
18939
|
+
tableConfig.value.template
|
|
18940
|
+
) && rule.name === "product") {
|
|
18941
|
+
columns2.title = "\u5546\u54C1\u7F16\u53F7";
|
|
18942
|
+
}
|
|
18934
18943
|
if (associatedFields.length) {
|
|
18935
18944
|
associatedFields.forEach((item) => {
|
|
18936
18945
|
const childField = productPicName(item.value, field);
|
|
@@ -19014,6 +19023,7 @@ const _sfc_main$7 = vue.defineComponent({
|
|
|
19014
19023
|
async function queryProductInfo(rule, row) {
|
|
19015
19024
|
const field = rule.field;
|
|
19016
19025
|
const associatedFields = rule?.config?.associatedFields;
|
|
19026
|
+
const otherAssociatedFields = rule?.config?.otherAssociatedFields;
|
|
19017
19027
|
let result = void 0;
|
|
19018
19028
|
try {
|
|
19019
19029
|
if (row[field]) {
|
|
@@ -19026,10 +19036,12 @@ const _sfc_main$7 = vue.defineComponent({
|
|
|
19026
19036
|
}
|
|
19027
19037
|
}
|
|
19028
19038
|
processAssociatedFields(field, associatedFields, row, result);
|
|
19039
|
+
processOtherAssociatedFields(field, otherAssociatedFields, row, result);
|
|
19029
19040
|
return result;
|
|
19030
19041
|
} catch (e) {
|
|
19031
19042
|
row[field] = "";
|
|
19032
19043
|
processAssociatedFields(field, associatedFields, row, result);
|
|
19044
|
+
processOtherAssociatedFields(field, otherAssociatedFields, row, result);
|
|
19033
19045
|
return Promise.resolve(result);
|
|
19034
19046
|
}
|
|
19035
19047
|
}
|
|
@@ -19039,6 +19051,15 @@ const _sfc_main$7 = vue.defineComponent({
|
|
|
19039
19051
|
row[productPicName(item.value, field)] = result ? result[accosiationParseKeyMap[item.value]] : void 0;
|
|
19040
19052
|
});
|
|
19041
19053
|
}
|
|
19054
|
+
function processOtherAssociatedFields(field, fields, row, result) {
|
|
19055
|
+
if (tableConfig.value?.system === "productCenter" && ["F2CTemplate", "B2CTemplate", "DistributeTemp", "FreshTemplate"].includes(
|
|
19056
|
+
tableConfig.value.template
|
|
19057
|
+
)) {
|
|
19058
|
+
fields?.forEach?.((item) => {
|
|
19059
|
+
row[item] = result ? result[item] : void 0;
|
|
19060
|
+
});
|
|
19061
|
+
}
|
|
19062
|
+
}
|
|
19042
19063
|
function handleChange(e) {
|
|
19043
19064
|
const file = e.target.files[0];
|
|
19044
19065
|
const reader = new FileReader();
|
|
@@ -21352,6 +21373,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
21352
21373
|
emits: ["update:value", "change"],
|
|
21353
21374
|
setup(__props, { expose, emit: emits }) {
|
|
21354
21375
|
const props = __props;
|
|
21376
|
+
FC__default["default"].component("BmLabelTooltip", BmOverTooltips__default["default"]);
|
|
21355
21377
|
const formRuleList = vue.computed(() => {
|
|
21356
21378
|
if (typeof props.resolveRulesConfig === "function") {
|
|
21357
21379
|
const rules = props.resolveRulesConfig(ruleList);
|
|
@@ -21371,6 +21393,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
21371
21393
|
span: 24
|
|
21372
21394
|
}
|
|
21373
21395
|
},
|
|
21396
|
+
form: {
|
|
21397
|
+
title: "\u81EA\u5B9A\u4E49\u8868\u5355\u6D4B\u8BD5"
|
|
21398
|
+
},
|
|
21374
21399
|
submitBtn: false,
|
|
21375
21400
|
global: {
|
|
21376
21401
|
ShopWidget: {
|