|
@@ -321,6 +321,7 @@ class StageIm {
|
|
|
(!im.pid || im.pid === d.pid) &&
|
|
|
(!im.pos_name || im.pos_name === d.pos_name);
|
|
|
});
|
|
|
+ break;
|
|
|
case imType.zl.value:
|
|
|
cd = this._.find(this.details, function (d) {
|
|
|
return im.lid === d.lid &&
|
|
@@ -331,6 +332,7 @@ class StageIm {
|
|
|
(!im.pid || im.pid === d.pid) &&
|
|
|
(!im.pos_name || im.pos_name === d.pos_name);
|
|
|
});
|
|
|
+ break;
|
|
|
case imType.bw.value:
|
|
|
cd = this._.find(this.details, function (d) {
|
|
|
return im.lid === d.lid &&
|
|
@@ -341,6 +343,7 @@ class StageIm {
|
|
|
(!im.pid || im.pid === d.pid) &&
|
|
|
(!im.pos_name || im.pos_name === d.pos_name);
|
|
|
});
|
|
|
+ break;
|
|
|
case imType.bb.value:
|
|
|
cd = this._.find(this.details, function (d) {
|
|
|
return im.lid === d.lid &&
|
|
@@ -349,6 +352,7 @@ class StageIm {
|
|
|
(!im.pid || im.pid === d.pid) &&
|
|
|
(!im.pos_name || im.pos_name === d.pos_name);
|
|
|
});
|
|
|
+ break;
|
|
|
}
|
|
|
if (cd) {
|
|
|
im.custom_define = im.custom_define !== null ? (cd.custom_define ? cd.custom_define.split(',') : []) : this.imFields;
|
|
@@ -1019,7 +1023,7 @@ class StageIm {
|
|
|
// 生成数据(需要缓存,并清理缓存)
|
|
|
const pre = (this.stage.im_pre && this.stage.im_pre !== '') ? this.stage.im_pre + this.splitChar : '';
|
|
|
for (const [i, im] of this.ImData.entries()) {
|
|
|
- im.im_code = pre + this._getNumberFormat(this.stage.order, 2) + this.splitChar + this._getNumberFormat(i + this.stage.im_start_num + 1, 3);
|
|
|
+ im.im_code = pre + this._getNumberFormat(this.stage.order, 2) + this.splitChar + this._getNumberFormat(i + this.stage.im_start_num, 3);
|
|
|
if (im.gclBills) {
|
|
|
for (const b of im.gclBills) {
|
|
|
b.im_code = im.im_code;
|