|  | @@ -1,40 +1,6 @@
 | 
	
		
			
				|  |  |  <template>
 | 
	
		
			
				|  |  |    <div class="wagonLoadbu">
 | 
	
		
			
				|  |  |      <page-title>返回</page-title>
 | 
	
		
			
				|  |  | -    <!-- <div class="top">
 | 
	
		
			
				|  |  | -      <div class="text">物资:</div>
 | 
	
		
			
				|  |  | -      <el-select
 | 
	
		
			
				|  |  | -        v-model="materialId"
 | 
	
		
			
				|  |  | -        filterable
 | 
	
		
			
				|  |  | -        remote
 | 
	
		
			
				|  |  | -        reserve-keyword
 | 
	
		
			
				|  |  | -        placeholder="选择物资名"
 | 
	
		
			
				|  |  | -        :remote-method="searchMaterialName"
 | 
	
		
			
				|  |  | -        @change="searchSupplierName();getPurchaseOrderNo()">
 | 
	
		
			
				|  |  | -        <el-option
 | 
	
		
			
				|  |  | -          v-for="item in materialNames"
 | 
	
		
			
				|  |  | -          :key="item.materialId"
 | 
	
		
			
				|  |  | -          :label="item.materialName"
 | 
	
		
			
				|  |  | -          :value="item.materialId">
 | 
	
		
			
				|  |  | -        </el-option>
 | 
	
		
			
				|  |  | -      </el-select>
 | 
	
		
			
				|  |  | -      <div class="text">发货单位:</div>
 | 
	
		
			
				|  |  | -       <el-select
 | 
	
		
			
				|  |  | -        v-model="supplierId"
 | 
	
		
			
				|  |  | -        filterable
 | 
	
		
			
				|  |  | -        remote
 | 
	
		
			
				|  |  | -        reserve-keyword
 | 
	
		
			
				|  |  | -        placeholder="选择发货单位"
 | 
	
		
			
				|  |  | -        :remote-method="searchSupplierName"
 | 
	
		
			
				|  |  | -        @change="getPurchaseOrderNo();supplierIdChange()">
 | 
	
		
			
				|  |  | -        <el-option
 | 
	
		
			
				|  |  | -          v-for="item in supplierNames"
 | 
	
		
			
				|  |  | -          :key="item.supplierId"
 | 
	
		
			
				|  |  | -          :label="item.supplierName"
 | 
	
		
			
				|  |  | -          :value="item.supplierId">
 | 
	
		
			
				|  |  | -        </el-option>
 | 
	
		
			
				|  |  | -      </el-select>
 | 
	
		
			
				|  |  | -    </div> -->
 | 
	
		
			
				|  |  |       <div class="purchaseOrder_table">
 | 
	
		
			
				|  |  |        <div class="search" style="display:flex">
 | 
	
		
			
				|  |  |          <div style="margin-top: 18px;margin-left:10px">
 | 
	
	
		
			
				|  | @@ -68,14 +34,13 @@
 | 
	
		
			
				|  |  |        @click="makeSure" 
 | 
	
		
			
				|  |  |        style="margin: 10px;">确认配单
 | 
	
		
			
				|  |  |        </el-button>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  | +      <!-- 采购订单号 -->
 | 
	
		
			
				|  |  |        <dilTable
 | 
	
		
			
				|  |  |          v-bind.sync="purchaseOption"
 | 
	
		
			
				|  |  |          @radio-change="orderChange"
 | 
	
		
			
				|  |  |        ></dilTable>
 | 
	
		
			
				|  |  |      </div>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      <!-- <div class="material form">
 | 
	
		
			
				|  |  |        <span class="text">物资:</span>
 | 
	
		
			
				|  |  |        <el-input v-model="materialName" disabled> </el-input>
 | 
	
	
		
			
				|  | @@ -97,12 +62,12 @@
 | 
	
		
			
				|  |  |        <el-input v-model="remark" @blur="onBlur" > </el-input>
 | 
	
		
			
				|  |  |        <span class="span"></span>
 | 
	
		
			
				|  |  |      </div>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      <div class="form">
 | 
	
		
			
				|  |  |        <div class="form_box">  
 | 
	
		
			
				|  |  |        <dil-form :formId="361" v-model="form1" ref="from1"></dil-form>
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  |      </div> -->
 | 
	
		
			
				|  |  | +    <!--待补录表格-->
 | 
	
		
			
				|  |  |      <div class="wagonLoadbu_table">
 | 
	
		
			
				|  |  |        <dilTable
 | 
	
		
			
				|  |  |          v-bind.sync="option"
 | 
	
	
		
			
				|  | @@ -111,10 +76,8 @@
 | 
	
		
			
				|  |  |        ></dilTable>
 | 
	
		
			
				|  |  |      </div>
 | 
	
		
			
				|  |  |      
 | 
	
		
			
				|  |  | -    
 | 
	
		
			
				|  |  | -   
 | 
	
		
			
				|  |  |      <!-- 模态窗口 -->
 | 
	
		
			
				|  |  | -    <el-drawer :visible.sync="drawer" :direction="direction" size="30%">
 | 
	
		
			
				|  |  | +    <!-- <el-drawer :visible.sync="drawer" :direction="direction" size="30%">
 | 
	
		
			
				|  |  |        <el-input
 | 
	
		
			
				|  |  |          placeholder="请输入内容"
 | 
	
		
			
				|  |  |          v-model="inputText"
 | 
	
	
		
			
				|  | @@ -147,7 +110,7 @@
 | 
	
		
			
				|  |  |            @radio-change="currentRadioChange3"
 | 
	
		
			
				|  |  |          ></dilTable>
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  | -    </el-drawer>
 | 
	
		
			
				|  |  | +    </el-drawer> -->
 | 
	
		
			
				|  |  |    </div>
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -239,8 +202,7 @@ export default {
 | 
	
		
			
				|  |  |        else{
 | 
	
		
			
				|  |  |          let map = {
 | 
	
		
			
				|  |  |            resultIdList:this.selecTionListMap,
 | 
	
		
			
				|  |  | -          purchaseOrderId:this.purchaseOrderId,
 | 
	
		
			
				|  |  | -          insertUpdateRemark: this.form1.insertUpdateRemark
 | 
	
		
			
				|  |  | +          purchaseOrderId:this.purchaseOrderId
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          let that=this;
 | 
	
		
			
				|  |  |          this.axios.post('/api/v1/tms/updateDomesticLoadResult',map).then((res)=>{
 | 
	
	
		
			
				|  | @@ -250,8 +212,7 @@ export default {
 | 
	
		
			
				|  |  |                message: "配单成功!",
 | 
	
		
			
				|  |  |                type: "success",
 | 
	
		
			
				|  |  |              });
 | 
	
		
			
				|  |  | -            that.purchaseOption.requestUrl += "&i="+new Date();
 | 
	
		
			
				|  |  | -            console.log();
 | 
	
		
			
				|  |  | +            that.tableChange();
 | 
	
		
			
				|  |  |              // this.cancel();//不退出
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |          })
 | 
	
	
		
			
				|  | @@ -272,7 +233,6 @@ export default {
 | 
	
		
			
				|  |  |        this.supplierId=selection.supplierId;
 | 
	
		
			
				|  |  |        this.supplierName=selection.supplierName;
 | 
	
		
			
				|  |  |        this.remark=selection.resultForeignShipName;
 | 
	
		
			
				|  |  | -      this.tableChange();
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      //表格选中
 | 
	
		
			
				|  |  |      selectionChange(selection) {
 | 
	
	
		
			
				|  | @@ -287,13 +247,11 @@ export default {
 | 
	
		
			
				|  |  |        this.materialName = selection.materialName;
 | 
	
		
			
				|  |  |        this.materialId = selection.materialId;
 | 
	
		
			
				|  |  |        this.getPurchaseOrderNo();
 | 
	
		
			
				|  |  | -      this.tableChange();
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      currentRadioChange2(selection) {
 | 
	
		
			
				|  |  |        this.supplierName = selection.supplierName;
 | 
	
		
			
				|  |  |        this.supplierId = selection.supplierId;
 | 
	
		
			
				|  |  |        this.getPurchaseOrderNo();
 | 
	
		
			
				|  |  | -      this.tableChange();
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      currentRadioChange3(selection) {
 | 
	
		
			
				|  |  |        this.unloadPointId = selection.warehouseId;
 | 
	
	
		
			
				|  | @@ -342,6 +300,7 @@ export default {
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      searchOrder(){
 | 
	
		
			
				|  |  | +      //查询订单
 | 
	
		
			
				|  |  |        if((typeof this.search1)!="undefined" && (typeof this.search2)!='undefined'){
 | 
	
		
			
				|  |  |          let requestUrl="/api/v1/tms/findPurchaseOrderList?apiId=81";
 | 
	
		
			
				|  |  |          if(this.search1!=null){
 | 
	
	
		
			
				|  | @@ -398,13 +357,8 @@ export default {
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      tableChange(){
 | 
	
		
			
				|  |  | -      //重新查询配单车辆
 | 
	
		
			
				|  |  | -      if(typeof this.materialId !='undefined'&& this.materialId!=null && typeof this.supplierId!='undefined' && this.supplierId!=null){
 | 
	
		
			
				|  |  | -         this.option.requestUrl=
 | 
	
		
			
				|  |  | -          "/api/v1/tms/getTmstrainWagonLoad?apiId=209&resultType=10&materialId="
 | 
	
		
			
				|  |  | -          +this.materialId+"&supplierId="
 | 
	
		
			
				|  |  | -          +this.supplierId;
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  | +      //刷新表格
 | 
	
		
			
				|  |  | +      this.option.requestUrl="/api/v1/tms/getTmstrainWagonLoad?apiId=209&resultType=10&i="+new Date();
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |  };
 |