Просмотр исходного кода

景聚庭-入库选择商品带出商品信息

huangguoce 7 часов назад
Родитель
Сommit
a4b4be5cd4

+ 1 - 1
src/views/psiManagement/materialType/TypeForm.vue

@@ -1,6 +1,6 @@
 <template>
 	<div>
-		<el-dialog :title="title" :close-on-click-modal="false" draggable width="500px" @close="close"
+		<el-dialog :title="title" :close-on-click-modal="false" draggable width="500px" append-to-body @close="close"
 			@keyup.enter.native="doSubmit" v-model="visible">
 			<el-form :model="inputForm" ref="inputForm" v-loading="loading" :class="method === 'view' ? 'readonly' : ''"
 				:disabled="method === 'view'" label-width="100px" @submit.native.prevent>

+ 3 - 3
src/views/psiManagement/wareHouse/WareHouseAddForm.vue

@@ -465,9 +465,6 @@ export default {
 						this.loading = false
 					})
 				} else {
-					if (method === 'add') {
-						this.inputForm.wareHouseDate = new Date()
-					}
 					this.$refs.uploadComponent.newUpload(method, this.inputForm.files, 'psi')
 				}
 			})
@@ -568,6 +565,9 @@ export default {
 			this.inputForm.wareHouse[this.indexRow].wareHouseTypeId = rows.id
 			this.inputForm.wareHouse[this.indexRow].wareHouseType = rows.name
 			this.inputForm.wareHouse[this.indexRow].tradeName = rows.name
+			this.inputForm.wareHouse[this.indexRow].brand = rows.brand
+			this.inputForm.wareHouse[this.indexRow].specification = rows.specification || rows.spec
+			this.inputForm.wareHouse[this.indexRow].company = rows.company
 			// this.inputForm.detailInfos[this.indexRow].procurementType = rows.name
 			this.indexRow = ''
 			this.$forceUpdate()