|
|
@@ -645,9 +645,12 @@
|
|
|
if (newVal && newVal.length > 0 && !newVal[0].sampleCode) {
|
|
|
let count = newVal ? newVal.length : 0;
|
|
|
const codeList = await this.batchCodes(count);
|
|
|
+ console.log(codeList, 'codeList 0000');
|
|
|
+ console.log(newVal, 'newVal');
|
|
|
newVal.map(async (el, index) => {
|
|
|
if (!el.sampleCode) {
|
|
|
- el.sampleCode = codeList[index];
|
|
|
+ this.$set(el, 'sampleCode', codeList[index]);
|
|
|
+ // el.sampleCode = codeList[index];
|
|
|
}
|
|
|
});
|
|
|
}
|