Browse Source

移库出库修改

zhongtianhaoyuan 2 years ago
parent
commit
a355d4c610
1 changed files with 6 additions and 4 deletions
  1. 6 4
      pages/erp/exWarehousing/exWarehousing.vue

+ 6 - 4
pages/erp/exWarehousing/exWarehousing.vue

@@ -112,7 +112,7 @@
 				<view class="left">车牌号</view>
 				<!-- 他运合同车牌号输入 -->
 				<input v-model='detailData.carNo' @click.stop="handleShowKeyboard":disabled="true"  class="right-bottom" placeholder="请输入车牌号" v-if="!showCar"></input>
-				<view v-show="showCar" @click="carno = true" v-if="inOutNoList.inOutType=='移库出库'|| (showCar&&contractType=='1')"><!-- showCar = true时为自运  carjudge为切换状态 contractType==1 为销售合同-->
+				<view v-show="showCar" @click="carno = true" v-if="detailData.inOutType == '移库出库'|| (showCar&&contractType=='1')"><!-- showCar = true时为自运  carjudge为切换状态 contractType==1 为销售合同-->
 					<view v-if="detailData.tranCarNo">
 						{{detailData.carNo?detailData.carNo +'('+detailData.tranCarNo+')':"请选择车牌号"}}
 					</view>
@@ -346,7 +346,7 @@
 				carChange1:"手动填写",
 				carjudge:false,
 				contractType:"",
-				contractList:[]
+				contractList:[],
 			}
 		},
 		computed: {
@@ -553,6 +553,7 @@
 			},
 			inOutChange(e) {
 				this.detailData.inOutTaskNo = this.inOutNoList[e[0]].inOutTaskNo
+				this.detailData.inOutType  = this.inOutNoList[e[0]].inOutType
 				// this.contractType = this.inOutNoList[e[0]].contractType //获取合同类型   用于判断输入车牌号
 				this.detailData.agent = this.inOutNoList[e[0]].agent
 				if (this.inOutNoList[e[0]].contractNo) {
@@ -564,10 +565,11 @@
 					if (this.contractList[i].contractNo == this.detailData.contractNo) {
 						this.contractType = this.contractList[i].contractType //获取合同类型   用于判断输入车牌号
 					}
+					
 					if (this.contractList[i].deliverType == '1') { //判断自运1,他运2合同
-						that.showCar = true
+						this.showCar = true
 					} else {
-						that.showCar = false
+						this.showCar = false
 					}
 				}
 				this.detailData.goodsName = this.inOutNoList[e[0]].goodsName