|
@@ -103,9 +103,10 @@
|
|
|
<el-input
|
|
|
class="inline-input"
|
|
|
v-model="materialTimes"
|
|
|
- placeholder="趟次"
|
|
|
+ placeholder="趟次-非必填"
|
|
|
:trigger-on-focus="false"
|
|
|
@input="onInputTimes()"
|
|
|
+ @blur="onblur()"
|
|
|
>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
@@ -420,6 +421,16 @@ export default {
|
|
|
this.$message.warning('趟次请输入数字')
|
|
|
}
|
|
|
},
|
|
|
+ onblur(){
|
|
|
+ this.isMoreTrips = false
|
|
|
+ if(this.materaialTimes <= 0){
|
|
|
+ this.$message.warning('趟次必须大于0')
|
|
|
+ this.materialTimes = null
|
|
|
+ }
|
|
|
+ if(this.materialTimes > 1 ){
|
|
|
+ this.isMoreTrips = true
|
|
|
+ }
|
|
|
+ },
|
|
|
onInputPriority(scope){
|
|
|
if(!isNumber(scope)){
|
|
|
this.$message.warning('装卸货次序请输入数字')
|
|
@@ -447,7 +458,7 @@ export default {
|
|
|
this.inputLine = "零星中转"
|
|
|
}
|
|
|
if(this.orderType == 19){
|
|
|
- this.inputLine = "零星退货"
|
|
|
+ this.inputLine = "退货"
|
|
|
}
|
|
|
},
|
|
|
drawTable(){
|
|
@@ -586,18 +597,12 @@ export default {
|
|
|
},
|
|
|
// 确认
|
|
|
makeSure() {
|
|
|
- let amOrder = {
|
|
|
- supplierId:this.supplierId,
|
|
|
- lineId:this.lineId,
|
|
|
- carrierId: this.carrierId,
|
|
|
- orderType:this.orderType,
|
|
|
- receiveId: this.consigneeId,
|
|
|
- userId:getCookie("orgCode"),
|
|
|
- mapList: this.tableData,
|
|
|
- isMoreTrips:Number(this.isMoreTrips)
|
|
|
+ if(this.isMoreTrips == false){
|
|
|
+ this.materialTimes = 1
|
|
|
+ }
|
|
|
+ if(Number(this.materialTimes) != 0){
|
|
|
+ this.isMoreTrips = true
|
|
|
}
|
|
|
- console.log(amOrder)
|
|
|
- debugger
|
|
|
this.disabled = true
|
|
|
if(this.supplierId==null||this.lineId==null||this.consigneeId==null||this.carrierId==null){
|
|
|
this.disabled = false
|