@gct-paas/word 0.1.49 → 0.1.50
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.
package/dist/index.es.js
CHANGED
|
@@ -53962,19 +53962,15 @@ class MCDataUtil {
|
|
|
53962
53962
|
* @param rowPath $.f_sub[n] n 必须为数字
|
|
53963
53963
|
*/
|
|
53964
53964
|
static updateFixedFieldsDisablement(option) {
|
|
53965
|
-
const
|
|
53966
|
-
|
|
53965
|
+
const { disabledFields = [], ...otherOptions } = option;
|
|
53966
|
+
const fields = ["product_id_", "material_no_", "routing_operation_id_", ...disabledFields];
|
|
53967
|
+
this._updateDisablement({ ...otherOptions, fields });
|
|
53967
53968
|
}
|
|
53968
53969
|
/**
|
|
53969
53970
|
* 设置行数据的编辑状态
|
|
53970
53971
|
*/
|
|
53971
53972
|
static updateRow(option, isConfirmed) {
|
|
53972
|
-
const {
|
|
53973
|
-
row,
|
|
53974
|
-
rowIndex,
|
|
53975
|
-
dataManager,
|
|
53976
|
-
subFieldKey
|
|
53977
|
-
} = option;
|
|
53973
|
+
const { row, rowIndex, dataManager, subFieldKey } = option;
|
|
53978
53974
|
row.is_confirmed_ = isConfirmed;
|
|
53979
53975
|
const rows = dataManager.getRawData()[subFieldKey] ?? [];
|
|
53980
53976
|
rows[rowIndex] = row;
|
|
@@ -54140,8 +54136,8 @@ class MaterialConsumeTableController {
|
|
|
54140
54136
|
}
|
|
54141
54137
|
/**
|
|
54142
54138
|
* 获取是否是 物料查看
|
|
54143
|
-
* @param product_id_
|
|
54144
|
-
* @returns
|
|
54139
|
+
* @param product_id_
|
|
54140
|
+
* @returns
|
|
54145
54141
|
*/
|
|
54146
54142
|
getMaterialTypeIsView(product_id_) {
|
|
54147
54143
|
if (product_id_) {
|
|
@@ -54199,7 +54195,6 @@ class MaterialConsumeTableController {
|
|
|
54199
54195
|
if (!find) {
|
|
54200
54196
|
throw new Error(
|
|
54201
54197
|
"表格数据里没有匹配的物料,请选择该物料后再扫码"
|
|
54202
|
-
/*$t('sys.edhr.mcTable.noMatchMaterial')*/
|
|
54203
54198
|
);
|
|
54204
54199
|
}
|
|
54205
54200
|
materialData = find;
|
|
@@ -54377,7 +54372,6 @@ class MaterialConsumeTableController {
|
|
|
54377
54372
|
if (this.enableSequenceLoading && !isLast) {
|
|
54378
54373
|
this.error(
|
|
54379
54374
|
"顺序投料时只能最后一条数据开启编辑状态"
|
|
54380
|
-
/*$t('sys.edhr.mcTable.onlyLastRowCanEdit')*/
|
|
54381
54375
|
);
|
|
54382
54376
|
return;
|
|
54383
54377
|
}
|
|
@@ -54547,9 +54541,9 @@ class FormTmplBomController {
|
|
|
54547
54541
|
/**
|
|
54548
54542
|
* 根据字段key获取子表控制器
|
|
54549
54543
|
*/
|
|
54550
|
-
|
|
54551
|
-
|
|
54552
|
-
|
|
54544
|
+
findTableControllerByField(subFieldKey) {
|
|
54545
|
+
return this.tableControllers[subFieldKey];
|
|
54546
|
+
}
|
|
54553
54547
|
// 方法废弃,word 里改在初始化时记录到 paramsConfig
|
|
54554
54548
|
/**
|
|
54555
54549
|
* 处理字段组件
|
|
@@ -103583,11 +103577,19 @@ async function initializeDocumentEngine(props, payload, result) {
|
|
|
103583
103577
|
MCDataUtil.disableQtyFields(doc.dataManager, `${table_key_}[${index2}]`);
|
|
103584
103578
|
});
|
|
103585
103579
|
rows.forEach((row, rowIndex) => {
|
|
103580
|
+
MCDataUtil.updateViewFieldsDisablement({
|
|
103581
|
+
dataManager: doc.dataManager,
|
|
103582
|
+
rowPath: `$.${subFieldKey}[${rowIndex}]`,
|
|
103583
|
+
disabled: Boolean(
|
|
103584
|
+
tmplBomC?.findTableControllerByField(table_key_)?.getMaterialTypeIsView(row.product_id_)
|
|
103585
|
+
)
|
|
103586
|
+
});
|
|
103586
103587
|
if (row.is_confirmed_) {
|
|
103587
103588
|
MCDataUtil.updateFixedFieldsDisablement({
|
|
103588
103589
|
dataManager: doc.dataManager,
|
|
103589
103590
|
rowPath: `$.${subFieldKey}[${rowIndex}]`,
|
|
103590
|
-
disabled: true
|
|
103591
|
+
disabled: true,
|
|
103592
|
+
disabledFields: ["qty_", "expiration_date_"]
|
|
103591
103593
|
});
|
|
103592
103594
|
}
|
|
103593
103595
|
});
|
|
@@ -130146,7 +130148,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
130146
130148
|
renderSlot(_ctx.$slots, "rdo_version_render", normalizeProps(guardReactiveProps({ record, column, rowIndex })), void 0, true)
|
|
130147
130149
|
]),
|
|
130148
130150
|
empty: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
130149
|
-
createElementVNode("div", { class: "vxe-grid-empty" }, [
|
|
130151
|
+
createElementVNode("div", { class: "vxe-grid-empty-word" }, [
|
|
130150
130152
|
createElementVNode("img", {
|
|
130151
130153
|
src: _imports_0,
|
|
130152
130154
|
alt: ""
|
|
@@ -130160,7 +130162,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
130160
130162
|
};
|
|
130161
130163
|
}
|
|
130162
130164
|
});
|
|
130163
|
-
const BaseVxeTable = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-
|
|
130165
|
+
const BaseVxeTable = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-8ae65aef"]]);
|
|
130164
130166
|
const DEVICE_TYPE_MODEL_KEY = "em_device_type";
|
|
130165
130167
|
const ENTITY_CATEGORY = "entity";
|
|
130166
130168
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
package/dist/word.css
CHANGED
|
@@ -12267,7 +12267,7 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
12267
12267
|
width: 100%;
|
|
12268
12268
|
height: 248px;
|
|
12269
12269
|
}
|
|
12270
|
-
.base-vxe-table-wrapper[data-v-
|
|
12270
|
+
.base-vxe-table-wrapper[data-v-8ae65aef] {
|
|
12271
12271
|
display: flex;
|
|
12272
12272
|
flex-direction: column;
|
|
12273
12273
|
flex: 1;
|
|
@@ -12275,9 +12275,21 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
12275
12275
|
width: 800px;
|
|
12276
12276
|
height: 360px;
|
|
12277
12277
|
}
|
|
12278
|
-
.base-vxe-table-wrapper[data-v-
|
|
12278
|
+
.base-vxe-table-wrapper[data-v-8ae65aef] .dropdown-vxe-table .row--active {
|
|
12279
12279
|
background: #e6f7ff;
|
|
12280
12280
|
}
|
|
12281
|
+
.base-vxe-table-wrapper .vxe-grid-empty-word[data-v-8ae65aef] {
|
|
12282
|
+
display: flex;
|
|
12283
|
+
flex-direction: column;
|
|
12284
|
+
align-items: center;
|
|
12285
|
+
justify-content: center;
|
|
12286
|
+
color: rgba(0, 0, 0, 0.45);
|
|
12287
|
+
margin: 32px 0;
|
|
12288
|
+
}
|
|
12289
|
+
.base-vxe-table-wrapper .vxe-grid-empty-word > img[data-v-8ae65aef] {
|
|
12290
|
+
width: 60px;
|
|
12291
|
+
margin-bottom: 12px;
|
|
12292
|
+
}
|
|
12281
12293
|
.pagination-container[data-v-7a947e96] {
|
|
12282
12294
|
position: relative;
|
|
12283
12295
|
display: flex;
|