|  | @@ -187,12 +187,20 @@
 | 
											
												
													
														|  |                type="text"
 |  |                type="text"
 | 
											
												
													
														|  |                @click="rePick(row, index)"
 |  |                @click="rePick(row, index)"
 | 
											
												
													
														|  |                :disabled="disabled"
 |  |                :disabled="disabled"
 | 
											
												
													
														|  | -              class="picker"
 |  | 
 | 
											
												
													
														|  |                style="padding:4px 10px;float:left"
 |  |                style="padding:4px 10px;float:left"
 | 
											
												
													
														|  |                >选择</el-button
 |  |                >选择</el-button
 | 
											
												
													
														|  |              >
 |  |              >
 | 
											
												
													
														|  |              <span> {{ row.cname }}</span>
 |  |              <span> {{ row.cname }}</span>
 | 
											
												
													
														|  |            </template>
 |  |            </template>
 | 
											
												
													
														|  | 
 |  | +          <template slot="partsList" slot-scope="{ row, index }">
 | 
											
												
													
														|  | 
 |  | +            <el-button
 | 
											
												
													
														|  | 
 |  | +              size="small"
 | 
											
												
													
														|  | 
 |  | +              type="text"
 | 
											
												
													
														|  | 
 |  | +              @click="partrePick(row, index)"
 | 
											
												
													
														|  | 
 |  | +              :disabled="disabled"
 | 
											
												
													
														|  | 
 |  | +              >操作</el-button
 | 
											
												
													
														|  | 
 |  | +            >
 | 
											
												
													
														|  | 
 |  | +          </template>
 | 
											
												
													
														|  |            <template slot="priorityReferrer" slot-scope="{ row }">
 |  |            <template slot="priorityReferrer" slot-scope="{ row }">
 | 
											
												
													
														|  |              <el-checkbox
 |  |              <el-checkbox
 | 
											
												
													
														|  |                :disabled="!row.$cellEdit"
 |  |                :disabled="!row.$cellEdit"
 | 
											
										
											
												
													
														|  | @@ -350,6 +358,13 @@
 | 
											
												
													
														|  |        reportName="客户询价"
 |  |        reportName="客户询价"
 | 
											
												
													
														|  |        @onClose="onClose()"
 |  |        @onClose="onClose()"
 | 
											
												
													
														|  |      ></report-dialog>
 |  |      ></report-dialog>
 | 
											
												
													
														|  | 
 |  | +    <part-dialog
 | 
											
												
													
														|  | 
 |  | +      ref="part"
 | 
											
												
													
														|  | 
 |  | +      @partOpen="partOpen()"
 | 
											
												
													
														|  | 
 |  | +      :partList="partList"
 | 
											
												
													
														|  | 
 |  | +      @importPart="importPart"
 | 
											
												
													
														|  | 
 |  | +      @partClosed="partClosed"
 | 
											
												
													
														|  | 
 |  | +    />
 | 
											
												
													
														|  |    </div>
 |  |    </div>
 | 
											
												
													
														|  |  </template>
 |  |  </template>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -358,6 +373,7 @@ import tableOption from "./config/customerContact.json";
 | 
											
												
													
														|  |  import goodsOption from "./config/commodity.json";
 |  |  import goodsOption from "./config/commodity.json";
 | 
											
												
													
														|  |  import feeInfo from "@/components/fee-info/main";
 |  |  import feeInfo from "@/components/fee-info/main";
 | 
											
												
													
														|  |  import customerDialog from "@/components/customer-dialog/main";
 |  |  import customerDialog from "@/components/customer-dialog/main";
 | 
											
												
													
														|  | 
 |  | +import partDialog from "@/components/part-dialog/main";
 | 
											
												
													
														|  |  import {
 |  |  import {
 | 
											
												
													
														|  |    detail,
 |  |    detail,
 | 
											
												
													
														|  |    submit,
 |  |    submit,
 | 
											
										
											
												
													
														|  | @@ -669,10 +685,13 @@ export default {
 | 
											
												
													
														|  |        olddata: [],
 |  |        olddata: [],
 | 
											
												
													
														|  |        oldorderFeesList: [],
 |  |        oldorderFeesList: [],
 | 
											
												
													
														|  |        reData: null,
 |  |        reData: null,
 | 
											
												
													
														|  | -      loading:false,
 |  | 
 | 
											
												
													
														|  | 
 |  | +      loading: false,
 | 
											
												
													
														|  |        subLoading: false,
 |  |        subLoading: false,
 | 
											
												
													
														|  | -      pageLoading:false,
 |  | 
 | 
											
												
													
														|  | -      showBut: true
 |  | 
 | 
											
												
													
														|  | 
 |  | +      pageLoading: false,
 | 
											
												
													
														|  | 
 |  | +      showBut: true,
 | 
											
												
													
														|  | 
 |  | +      partreData: {},
 | 
											
												
													
														|  | 
 |  | +      partType: false,
 | 
											
												
													
														|  | 
 |  | +      partList: []
 | 
											
												
													
														|  |      };
 |  |      };
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    props: {
 |  |    props: {
 | 
											
										
											
												
													
														|  | @@ -683,7 +702,8 @@ export default {
 | 
											
												
													
														|  |    components: {
 |  |    components: {
 | 
											
												
													
														|  |      reportDialog,
 |  |      reportDialog,
 | 
											
												
													
														|  |      feeInfo,
 |  |      feeInfo,
 | 
											
												
													
														|  | -    customerDialog
 |  | 
 | 
											
												
													
														|  | 
 |  | +    customerDialog,
 | 
											
												
													
														|  | 
 |  | +    partDialog
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    async created() {
 |  |    async created() {
 | 
											
												
													
														|  |      this.tableOption = await this.getColumnData(
 |  |      this.tableOption = await this.getColumnData(
 | 
											
										
											
												
													
														|  | @@ -742,6 +762,10 @@ export default {
 | 
											
												
													
														|  |          });
 |  |          });
 | 
											
												
													
														|  |        });
 |  |        });
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  | 
 |  | +    partOpen() {
 | 
											
												
													
														|  | 
 |  | +      this.partType = true;
 | 
											
												
													
														|  | 
 |  | +      this.newDetails();
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  |      rePick(row, index) {
 |  |      rePick(row, index) {
 | 
											
												
													
														|  |        this.reData = {
 |  |        this.reData = {
 | 
											
												
													
														|  |          ...row,
 |  |          ...row,
 | 
											
										
											
												
													
														|  | @@ -749,6 +773,17 @@ export default {
 | 
											
												
													
														|  |        };
 |  |        };
 | 
											
												
													
														|  |        this.newDetails();
 |  |        this.newDetails();
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  | 
 |  | +    partrePick(row, index) {
 | 
											
												
													
														|  | 
 |  | +      this.partList = row.partsList;
 | 
											
												
													
														|  | 
 |  | +      this.$refs.part.init(row.partsList, index);
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  | 
 |  | +    importPart(rows, sum, index) {
 | 
											
												
													
														|  | 
 |  | +      this.data[index].partsList = rows;
 | 
											
												
													
														|  | 
 |  | +      this.data[index].partsPrice = sum;
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  | 
 |  | +    partClosed() {
 | 
											
												
													
														|  | 
 |  | +      this.partList = [];
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  |      getcorpId(row) {
 |  |      getcorpId(row) {
 | 
											
												
													
														|  |        this.data[row.index].corpId = row.id;
 |  |        this.data[row.index].corpId = row.id;
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
										
											
												
													
														|  | @@ -895,8 +930,20 @@ export default {
 | 
											
												
													
														|  |        });
 |  |        });
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      importGoods() {
 |  |      importGoods() {
 | 
											
												
													
														|  | -      if (this.reData) {
 |  | 
 | 
											
												
													
														|  | -        console.log(this.reData);
 |  | 
 | 
											
												
													
														|  | 
 |  | +      if (this.partType) {
 | 
											
												
													
														|  | 
 |  | +        this.selectionList.forEach(e => {
 | 
											
												
													
														|  | 
 |  | +          this.partList.push({
 | 
											
												
													
														|  | 
 |  | +            goodId: e.id,
 | 
											
												
													
														|  | 
 |  | +            goodTypeId: e.goodsTypeId,
 | 
											
												
													
														|  | 
 |  | +            goodTypeName: e.goodsTypeName,
 | 
											
												
													
														|  | 
 |  | +            goodName: e.cname,
 | 
											
												
													
														|  | 
 |  | +            price: e.price,
 | 
											
												
													
														|  | 
 |  | +            goodNumber: 0,
 | 
											
												
													
														|  | 
 |  | +            amout: 0,
 | 
											
												
													
														|  | 
 |  | +            $cellEdit: true
 | 
											
												
													
														|  | 
 |  | +          });
 | 
											
												
													
														|  | 
 |  | +        });
 | 
											
												
													
														|  | 
 |  | +      } else if (this.reData) {
 | 
											
												
													
														|  |          if (this.selectionList.length != 1) {
 |  |          if (this.selectionList.length != 1) {
 | 
											
												
													
														|  |            return this.$message.error("重新选择的时候只能选择一条数据");
 |  |            return this.$message.error("重新选择的时候只能选择一条数据");
 | 
											
												
													
														|  |          } else {
 |  |          } else {
 | 
											
										
											
												
													
														|  | @@ -909,6 +956,8 @@ export default {
 | 
											
												
													
														|  |                  item.priceCategory = e.goodsTypeName;
 |  |                  item.priceCategory = e.goodsTypeName;
 | 
											
												
													
														|  |                  item.itemUrl = e.url;
 |  |                  item.itemUrl = e.url;
 | 
											
												
													
														|  |                  item.itemProp = this.reData.itemProp;
 |  |                  item.itemProp = this.reData.itemProp;
 | 
											
												
													
														|  | 
 |  | +                item.partsList = this.reData.partsList;
 | 
											
												
													
														|  | 
 |  | +                item.partsPrice = this.reData.ppartsPrice;
 | 
											
												
													
														|  |                  item.itemDescription = e.cnameDescription;
 |  |                  item.itemDescription = e.cnameDescription;
 | 
											
												
													
														|  |                  item.itemType = this.reData.itemType;
 |  |                  item.itemType = this.reData.itemType;
 | 
											
												
													
														|  |                  item.tradeTerms = this.reData.tradeTerms;
 |  |                  item.tradeTerms = this.reData.tradeTerms;
 | 
											
										
											
												
													
														|  | @@ -936,6 +985,8 @@ export default {
 | 
											
												
													
														|  |              itemUrl: e.url,
 |  |              itemUrl: e.url,
 | 
											
												
													
														|  |              itemProp: null,
 |  |              itemProp: null,
 | 
											
												
													
														|  |              itemDescription: e.cnameDescription,
 |  |              itemDescription: e.cnameDescription,
 | 
											
												
													
														|  | 
 |  | +            partsList: [],
 | 
											
												
													
														|  | 
 |  | +            partsPrice: 0,
 | 
											
												
													
														|  |              itemType: null,
 |  |              itemType: null,
 | 
											
												
													
														|  |              tradeTerms: null,
 |  |              tradeTerms: null,
 | 
											
												
													
														|  |              price: 0,
 |  |              price: 0,
 | 
											
										
											
												
													
														|  | @@ -957,6 +1008,9 @@ export default {
 | 
											
												
													
														|  |        this.selectionList = [];
 |  |        this.selectionList = [];
 | 
											
												
													
														|  |        this.treeDeptId = "";
 |  |        this.treeDeptId = "";
 | 
											
												
													
														|  |        this.reData = null;
 |  |        this.reData = null;
 | 
											
												
													
														|  | 
 |  | +      if (this.partType) {
 | 
											
												
													
														|  | 
 |  | +        this.partType = false;
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      selectionChange(list) {
 |  |      selectionChange(list) {
 | 
											
												
													
														|  |        this.selectionList = list;
 |  |        this.selectionList = list;
 | 
											
										
											
												
													
														|  | @@ -994,7 +1048,7 @@ export default {
 | 
											
												
													
														|  |      getDetail(id) {
 |  |      getDetail(id) {
 | 
											
												
													
														|  |        this.loading = true;
 |  |        this.loading = true;
 | 
											
												
													
														|  |        this.showBut = false;
 |  |        this.showBut = false;
 | 
											
												
													
														|  | -      this.pageLoading= true;
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.pageLoading = true;
 | 
											
												
													
														|  |        detail(id)
 |  |        detail(id)
 | 
											
												
													
														|  |          .then(res => {
 |  |          .then(res => {
 | 
											
												
													
														|  |            this.form = res.data.data;
 |  |            this.form = res.data.data;
 | 
											
										
											
												
													
														|  | @@ -1008,7 +1062,7 @@ export default {
 | 
											
												
													
														|  |          .finally(() => {
 |  |          .finally(() => {
 | 
											
												
													
														|  |            this.loading = false;
 |  |            this.loading = false;
 | 
											
												
													
														|  |            this.showBut = true;
 |  |            this.showBut = true;
 | 
											
												
													
														|  | -          this.pageLoading=false;
 |  | 
 | 
											
												
													
														|  | 
 |  | +          this.pageLoading = false;
 | 
											
												
													
														|  |          });
 |  |          });
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      //修改提交触发
 |  |      //修改提交触发
 | 
											
										
											
												
													
														|  | @@ -1068,6 +1122,9 @@ export default {
 | 
											
												
													
														|  |      //返回列表
 |  |      //返回列表
 | 
											
												
													
														|  |      backToList() {
 |  |      backToList() {
 | 
											
												
													
														|  |        let orderFeesList = this.$refs.feeInfo.submitData();
 |  |        let orderFeesList = this.$refs.feeInfo.submitData();
 | 
											
												
													
														|  | 
 |  | +      console.log(
 | 
											
												
													
														|  | 
 |  | +      this.data, this.olddata
 | 
											
												
													
														|  | 
 |  | +      );
 | 
											
												
													
														|  |        if (
 |  |        if (
 | 
											
												
													
														|  |          contrastObj(this.form, this.oldform) ||
 |  |          contrastObj(this.form, this.oldform) ||
 | 
											
												
													
														|  |          contrastList(this.data, this.olddata) ||
 |  |          contrastList(this.data, this.olddata) ||
 | 
											
										
											
												
													
														|  | @@ -1158,8 +1215,7 @@ export default {
 | 
											
												
													
														|  |          this.$refs.goodsCrud.$refs.dialogColumn.columnBox = false;
 |  |          this.$refs.goodsCrud.$refs.dialogColumn.columnBox = false;
 | 
											
												
													
														|  |        }
 |  |        }
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  | -  },
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | 
 |  | +  }
 | 
											
												
													
														|  |  };
 |  |  };
 | 
											
												
													
														|  |  </script>
 |  |  </script>
 | 
											
												
													
														|  |  
 |  |  
 |