|
@@ -216,6 +216,16 @@
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :xs="24" :sm="8" :lg="8" :offset="0">
|
|
|
+ <el-form-item label="">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ size="small"
|
|
|
+ @click="getMaterialLists(arrIndex)"
|
|
|
+ >搜索</el-button
|
|
|
+ >
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
</el-form>
|
|
|
</el-header>
|
|
|
<el-main height="">
|
|
@@ -390,7 +400,6 @@
|
|
|
|
|
|
<script>
|
|
|
import {
|
|
|
- getId,
|
|
|
addPoliyCondition,
|
|
|
getConditionMaterialList,
|
|
|
getMaterialList,
|
|
@@ -631,25 +640,25 @@ export default {
|
|
|
*/
|
|
|
if (this.newConditionBox.length) {
|
|
|
this.conditList = res.data.records;
|
|
|
- if (this.conditionBox[index].length) {
|
|
|
- for (let n = 0; n < this.newConditionBox.length; n++) {
|
|
|
- for (let m = 0; m < this.newConditionBox[n].length; m++) {
|
|
|
- if (m ==index) {
|
|
|
- this.$set(this.newConditionBox[n],m,[...this.conditionBox[index],...this.newConditionBox[n][m]])
|
|
|
- console.log(this.newConditionBox,'newenewnwn');
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
+ if (this.conditionBox[index].length) {
|
|
|
+ for (let n = 0; n < this.newConditionBox.length; n++) {
|
|
|
+ for (let m = 0; m < this.newConditionBox[n].length; m++) {
|
|
|
+ if (m == index) {
|
|
|
+ this.$set(this.newConditionBox[n], m, [
|
|
|
+ ...this.conditionBox[index],
|
|
|
+ ...this.newConditionBox[n][m],
|
|
|
+ ]);
|
|
|
+ console.log(this.newConditionBox, "newenewnwn");
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
for (let j = 0; j < this.newConditionBox.length; j++) {
|
|
|
for (let o = 0; o < this.newConditionBox[j].length; o++) {
|
|
|
if (o == index) {
|
|
|
for (let i = 0; i < res.data.records.length; i++) {
|
|
|
for (let k = 0; k < this.newConditionBox[j][o].length; k++) {
|
|
|
-
|
|
|
if (
|
|
|
this.newConditionBox[j][o][k].id == res.data.records[i].id
|
|
|
) {
|