|
|
@ -360,6 +360,9 @@ export default { |
|
|
|
return |
|
|
|
} |
|
|
|
for (const val in this.data1) { |
|
|
|
if (this.data1[val].code.indexOf('heartbeat') !== -1) { |
|
|
|
this.data1[val].db = beforeStr + '.' + afterStr.substring(0, 1) + (parseInt(endNumber) - 1) |
|
|
|
} |
|
|
|
if (this.data1[val].code.indexOf('status') !== -1) { |
|
|
|
this.data1[val].db = beforeStr + '.' + afterStr.substring(0, 1) + (parseInt(endNumber) + 1) |
|
|
|
} |
|
|
@ -414,17 +417,35 @@ export default { |
|
|
|
return |
|
|
|
} |
|
|
|
for (const val in this.data2) { |
|
|
|
if (this.data2[val].code.indexOf('to_command') !== -1) { |
|
|
|
this.data2[val].db = beforeStr + '.W0' |
|
|
|
} |
|
|
|
if (this.data2[val].code.indexOf('to_error') !== -1) { |
|
|
|
this.data2[val].db = beforeStr + '.' + afterStr.substring(0, 1) + (parseInt(endNumber) + 2) |
|
|
|
this.data2[val].db = beforeStr + '.W2' |
|
|
|
} |
|
|
|
if (this.data2[val].code.indexOf('to_order_No') !== -1) { |
|
|
|
this.data2[val].db = beforeStr + '.' + 'STRING' + (parseInt(endNumber) + 4) + '.50' |
|
|
|
this.data2[val].db = beforeStr + '.STRING4.50' |
|
|
|
} |
|
|
|
if (this.data2[val].code.indexOf('to_weight') !== -1) { |
|
|
|
this.data2[val].db = beforeStr + '.' + 'D' + (parseInt(endNumber) + 54) |
|
|
|
if (this.data2[val].code.indexOf('to_qty') !== -1) { |
|
|
|
this.data2[val].db = beforeStr + '.D54' |
|
|
|
} |
|
|
|
if (this.data2[val].code.indexOf('to_material_code') !== -1) { |
|
|
|
this.data2[val].db = beforeStr + '.' + 'STRING' + (parseInt(endNumber) + 58) + '.50' |
|
|
|
this.data2[val].db = beforeStr + '.STRING58.50' |
|
|
|
} |
|
|
|
if (this.data2[val].code.indexOf('to_product_code') !== -1) { |
|
|
|
this.data2[val].db = beforeStr + '.W108' |
|
|
|
} |
|
|
|
if (this.data2[val].code.indexOf('to_AlongSide') !== -1) { |
|
|
|
this.data2[val].db = beforeStr + '.W110' |
|
|
|
} |
|
|
|
if (this.data2[val].code.indexOf('to_BshortSide') !== -1) { |
|
|
|
this.data2[val].db = beforeStr + '.W112' |
|
|
|
} |
|
|
|
if (this.data2[val].code.indexOf('to_Htrapezoidal') !== -1) { |
|
|
|
this.data2[val].db = beforeStr + '.W114' |
|
|
|
} |
|
|
|
if (this.data2[val].code.indexOf('to_Wthickness') !== -1) { |
|
|
|
this.data2[val].db = beforeStr + '.W116' |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|