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