|
@@ -482,15 +482,15 @@
|
|
:disabled="sonDisable"
|
|
:disabled="sonDisable"
|
|
size="mini"
|
|
size="mini"
|
|
v-model="scope.row.materialCode"
|
|
v-model="scope.row.materialCode"
|
|
- @clear="cleanMx(scope.$index, '物料编码')"
|
|
|
|
- @focus="chooseMaterial(scope.$index)"
|
|
|
|
|
|
+ @clear="cleanMx(scope.row.$index, '物料编码')"
|
|
|
|
+ @focus="chooseMaterial(scope.row.$index)"
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
:disabled="sonDisable"
|
|
:disabled="sonDisable"
|
|
slot="append"
|
|
slot="append"
|
|
icon="el-icon-more"
|
|
icon="el-icon-more"
|
|
- @click="chooseMaterial(scope.$index)"
|
|
|
|
|
|
+ @click="chooseMaterial(scope.row.$index)"
|
|
></el-button>
|
|
></el-button>
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -1685,7 +1685,9 @@ export default {
|
|
computed: {
|
|
computed: {
|
|
showMaterialInfo: {
|
|
showMaterialInfo: {
|
|
get() {
|
|
get() {
|
|
- return this.materialInfo.filter(({ delFlag }) => delFlag !== "2");
|
|
|
|
|
|
+ return this.materialInfo
|
|
|
|
+ .map((item, index) => ({ ...item, $index: index }))
|
|
|
|
+ .filter(({ delFlag }) => delFlag !== "2");
|
|
},
|
|
},
|
|
set() {},
|
|
set() {},
|
|
},
|
|
},
|
|
@@ -2014,8 +2016,9 @@ export default {
|
|
customerLogisticName: null,
|
|
customerLogisticName: null,
|
|
};
|
|
};
|
|
this.materialInfo.push(newLine);
|
|
this.materialInfo.push(newLine);
|
|
|
|
+ console.log(this.materialInfo);
|
|
},
|
|
},
|
|
- delLine($index) {
|
|
|
|
|
|
+ delLine(index, { $index }) {
|
|
// this.materialInfo.splice(index, 1);
|
|
// this.materialInfo.splice(index, 1);
|
|
this.materialInfo = this.materialInfo.map((item, index) => ({
|
|
this.materialInfo = this.materialInfo.map((item, index) => ({
|
|
...item,
|
|
...item,
|