|
@@ -98,6 +98,22 @@
|
|
:inline="true"
|
|
:inline="true"
|
|
class="demo-form-inline"
|
|
class="demo-form-inline"
|
|
label-width="80px"
|
|
label-width="80px"
|
|
|
|
+ >
|
|
|
|
+ <el-form-item label="趟次">
|
|
|
|
+ <el-input
|
|
|
|
+ class="inline-input"
|
|
|
|
+ v-model="materialTimes"
|
|
|
|
+ placeholder="趟次"
|
|
|
|
+ :trigger-on-focus="false"
|
|
|
|
+ @input="onInputTimes()"
|
|
|
|
+ >
|
|
|
|
+ </el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ <el-form
|
|
|
|
+ :inline="true"
|
|
|
|
+ class="demo-form-inline"
|
|
|
|
+ label-width="80px"
|
|
>
|
|
>
|
|
<el-form-item label="选择物资">
|
|
<el-form-item label="选择物资">
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -282,6 +298,10 @@ export default {
|
|
{
|
|
{
|
|
value:14,
|
|
value:14,
|
|
label:'中转'
|
|
label:'中转'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ value:19,
|
|
|
|
+ label:'退货'
|
|
}
|
|
}
|
|
],
|
|
],
|
|
orderType:null,
|
|
orderType:null,
|
|
@@ -426,6 +446,9 @@ export default {
|
|
if(this.orderType == 14){
|
|
if(this.orderType == 14){
|
|
this.inputLine = "零星中转"
|
|
this.inputLine = "零星中转"
|
|
}
|
|
}
|
|
|
|
+ if(this.orderType == 19){
|
|
|
|
+ this.inputLine = "零星退货"
|
|
|
|
+ }
|
|
},
|
|
},
|
|
drawTable(){
|
|
drawTable(){
|
|
this.materialOptions.requestUrl = "/api/v1/uc/selectAllMaterialName?apiId=395" +"&test=" + new Date()
|
|
this.materialOptions.requestUrl = "/api/v1/uc/selectAllMaterialName?apiId=395" +"&test=" + new Date()
|
|
@@ -517,7 +540,8 @@ export default {
|
|
materialSpecification:e.materialSpecification,
|
|
materialSpecification:e.materialSpecification,
|
|
materialName:e.materialName,
|
|
materialName:e.materialName,
|
|
materialCode:e.materialCode,
|
|
materialCode:e.materialCode,
|
|
- materialId:e.materialId
|
|
|
|
|
|
+ materialId:e.materialId,
|
|
|
|
+ materialPriority:1
|
|
}
|
|
}
|
|
this.tableData.push(addmap)
|
|
this.tableData.push(addmap)
|
|
})
|
|
})
|
|
@@ -609,10 +633,13 @@ export default {
|
|
orderType:this.orderType,
|
|
orderType:this.orderType,
|
|
receiveId: this.consigneeId,
|
|
receiveId: this.consigneeId,
|
|
userId:getCookie("orgCode"),
|
|
userId:getCookie("orgCode"),
|
|
|
|
+ orderTime:this.materialTimes,
|
|
mapList: this.tableData,
|
|
mapList: this.tableData,
|
|
isMoreTrips:Number(this.isMoreTrips)
|
|
isMoreTrips:Number(this.isMoreTrips)
|
|
|
|
|
|
};
|
|
};
|
|
|
|
+ console.log(amsOrder)
|
|
|
|
+ debugger
|
|
this.axios.post("/api/v1/ams/addSporadicOrders", amsOrder).then((res) => {
|
|
this.axios.post("/api/v1/ams/addSporadicOrders", amsOrder).then((res) => {
|
|
if (res.data.code == "200") {
|
|
if (res.data.code == "200") {
|
|
this.onClickCancel()
|
|
this.onClickCancel()
|