|  | @@ -1,5 +1,5 @@
 | 
	
		
			
				|  |  |  <template>
 | 
	
		
			
				|  |  | -  <div class="borderless">
 | 
	
		
			
				|  |  | +  <div class="borderless" v-loading="pageLoading">
 | 
	
		
			
				|  |  |      <div class="customer-head">
 | 
	
		
			
				|  |  |        <div class="customer-back">
 | 
	
		
			
				|  |  |          <!--        <i class="back-icon el-icon-arrow-left"></i><i style="font-style:normal">返回管理列表</i>-->
 | 
	
	
		
			
				|  | @@ -333,8 +333,8 @@
 | 
	
		
			
				|  |  |          :destroy-on-close="true"
 | 
	
		
			
				|  |  |          :close-on-press-escape="false"
 | 
	
		
			
				|  |  |          @close="closeGoods">
 | 
	
		
			
				|  |  | -      <el-row style="height: 0;">
 | 
	
		
			
				|  |  | -        <el-col :span="5">
 | 
	
		
			
				|  |  | +      <el-row :style="{height: rowHeight}">
 | 
	
		
			
				|  |  | +        <el-col :span="5" style="height: 100%;overflow-y: auto">
 | 
	
		
			
				|  |  |            <div>
 | 
	
		
			
				|  |  |              <el-scrollbar>
 | 
	
		
			
				|  |  |                <basic-container>
 | 
	
	
		
			
				|  | @@ -375,8 +375,8 @@
 | 
	
		
			
				|  |  |          :destroy-on-close="true"
 | 
	
		
			
				|  |  |          :close-on-press-escape="false"
 | 
	
		
			
				|  |  |          @close="closePolicy">
 | 
	
		
			
				|  |  | -      <el-row style="height: 0;">
 | 
	
		
			
				|  |  | -        <el-col :span="5">
 | 
	
		
			
				|  |  | +      <el-row :style="{height: rowHeight}">
 | 
	
		
			
				|  |  | +        <el-col :span="5" style="height: 100%;overflow-y: auto">
 | 
	
		
			
				|  |  |            <div>
 | 
	
		
			
				|  |  |              <el-scrollbar>
 | 
	
		
			
				|  |  |                <basic-container>
 | 
	
	
		
			
				|  | @@ -424,8 +424,8 @@
 | 
	
		
			
				|  |  |          :destroy-on-close="true"
 | 
	
		
			
				|  |  |          :close-on-press-escape="false"
 | 
	
		
			
				|  |  |          @close="closeFees">
 | 
	
		
			
				|  |  | -      <el-row style="height: 0;">
 | 
	
		
			
				|  |  | -        <el-col :span="5">
 | 
	
		
			
				|  |  | +      <el-row :style="{height: rowHeight}">
 | 
	
		
			
				|  |  | +        <el-col :span="5" style="height: 100%;overflow-y: auto">
 | 
	
		
			
				|  |  |            <div>
 | 
	
		
			
				|  |  |              <el-scrollbar>
 | 
	
		
			
				|  |  |                <basic-container>
 | 
	
	
		
			
				|  | @@ -1045,10 +1045,23 @@ export default {
 | 
	
		
			
				|  |  |        purchasePriceOption: [],
 | 
	
		
			
				|  |  |        // 销售价格
 | 
	
		
			
				|  |  |        salesPriceOtion: [],
 | 
	
		
			
				|  |  | +      // 弹窗高度
 | 
	
		
			
				|  |  | +      rowHeight: '',
 | 
	
		
			
				|  |  | +      // 查询时loading页面
 | 
	
		
			
				|  |  | +      pageLoading: false,
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | +  mounted() {
 | 
	
		
			
				|  |  | +    this.$nextTick(() => {
 | 
	
		
			
				|  |  | +      // 监听浏览器高度变化,改变表格高度
 | 
	
		
			
				|  |  | +      window.onresize = () => {
 | 
	
		
			
				|  |  | +        this.rowHeight = (window.innerHeight - 130) + 'px'
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    })
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  |    //初始化查询
 | 
	
		
			
				|  |  |    async created() {
 | 
	
		
			
				|  |  | +    this.rowHeight = (window.innerHeight - 130) + 'px'
 | 
	
		
			
				|  |  |      this.customerContact = await this.getColumnData(this.getColumnName(15), customerContact);
 | 
	
		
			
				|  |  |      this.advantageProject = await this.getColumnData(this.getColumnName(16), advantageProject);
 | 
	
		
			
				|  |  |      this.getWorkDicts("payment_term").then(res => {
 | 
	
	
		
			
				|  | @@ -1083,6 +1096,7 @@ export default {
 | 
	
		
			
				|  |  |        row.itemId = event.id
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      queryData(id, isCopy = false){
 | 
	
		
			
				|  |  | +      this.pageLoading = true
 | 
	
		
			
				|  |  |        detail(id).then(res => {
 | 
	
		
			
				|  |  |          this.form = res.data.data;
 | 
	
		
			
				|  |  |          this.contactsData = this.form.orderItemsList
 | 
	
	
		
			
				|  | @@ -1135,11 +1149,6 @@ export default {
 | 
	
		
			
				|  |  |            goodsNum.push(item.sort)
 | 
	
		
			
				|  |  |            purchaseAmount += Number(item.purchaseAmount)
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  | -        // if (Number(this.form.grossProfit) != 0) {
 | 
	
		
			
				|  |  | -        //   this.form.grossProfitRate = (((Number(this.form.grossProfit) - Number(purchaseAmount)) / Number(this.form.grossProfit)) * 100).toFixed(2)
 | 
	
		
			
				|  |  | -        // } else {
 | 
	
		
			
				|  |  | -        //   this.form.grossProfitRate = '0.00'
 | 
	
		
			
				|  |  | -        // }
 | 
	
		
			
				|  |  |          if (goodsNum.length == 0) {
 | 
	
		
			
				|  |  |            this.maxGoodsNum = 0;
 | 
	
		
			
				|  |  |          } else {
 | 
	
	
		
			
				|  | @@ -1176,6 +1185,7 @@ export default {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        }).finally(() => {
 | 
	
		
			
				|  |  |          this.saveLoading = false
 | 
	
		
			
				|  |  | +        this.pageLoading = false
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      // 复制新单
 | 
	
	
		
			
				|  | @@ -1978,4 +1988,17 @@ export default {
 | 
	
		
			
				|  |  |  ::v-deep .el-form-item__content{
 | 
	
		
			
				|  |  |    line-height: 32px;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  | +///deep/ .avue-tree {
 | 
	
		
			
				|  |  | +//  display: flex;
 | 
	
		
			
				|  |  | +//  flex-direction: column;
 | 
	
		
			
				|  |  | +//  overflow-y: hidden;
 | 
	
		
			
				|  |  | +//  height: 100%;
 | 
	
		
			
				|  |  | +//}
 | 
	
		
			
				|  |  | +///deep/ .avue-tree__filter {
 | 
	
		
			
				|  |  | +//  flex-shrink: 1;
 | 
	
		
			
				|  |  | +//}
 | 
	
		
			
				|  |  | +///deep/ .avue-tree__content {
 | 
	
		
			
				|  |  | +//  height: calc(100% - 32px);
 | 
	
		
			
				|  |  | +//  overflow-y: auto;
 | 
	
		
			
				|  |  | +//}
 | 
	
		
			
				|  |  |  </style>
 |