gjy 3 tahun lalu
induk
melakukan
ab10cac031

+ 15 - 1
src/views/taskManagement/tranManagementWarehouseInOutTaskAdd.vue

@@ -82,7 +82,7 @@
 					</el-form-item>
 					<!-- 品级 -->
 					<el-form-item label="品级">
-						<el-select disabled v-model="dataList.grade" placeholder class="typeselect"
+						<el-select :disabled='gradestatus' v-model="dataList.grade" placeholder class="typeselect"
 							@change="selectpackingMethod">
 							<el-option v-for="item in gradeList" :key="item.constKey" :label="item.constValue"
 								:value="item.constValue" />
@@ -409,6 +409,7 @@
 		},
 		data() {
 			return {
+				gradestatus:true,
 				flag: 1,
 				//弹出框
 				dialogViewSpareMoney: false,
@@ -659,6 +660,19 @@
 				for (var i = 0; i < this.warehouseNameList.length; i++) {
 					if (this.warehouseNameList[i].id == e) {
 						this.dataList.warehouseName = this.warehouseNameList[i].warehouseName
+						if(this.dataList.taskTypeKey==3||this.dataList1.taskTypeKey==3){
+							if(this.warehouseNameList[i].warehouseType==2){
+								this.$set(this.dataList, 'goodsName', this.warehouseNameList[i].goodsName)
+								this.$set(this.dataList, 'grade', this.warehouseNameList[i].grade)
+								this.$set(this.dataList1, 'goodsName', this.warehouseNameList[i].goodsName)
+								this.$set(this.dataList1, 'grade', this.warehouseNameList[i].grade)
+								this.gradestatus=true
+							}else{
+								this.gradestatus=false
+							}
+						}
+						
+						console.log(this.warehouseNameList[i])
 						//经办人
 						getstaff({
 								compId: sessionStorage.getItem('ws-pf_compId'),