Quellcode durchsuchen

订单管理新增产品数量框问题修改

yejian016332 vor 3 Jahren
Ursprung
Commit
fdac9fbcc1

+ 16 - 18
imcs-ui/src/views/zuihou/runManageCenter/orderMgr/components/draftOrder/components/Select.vue

@@ -1,15 +1,15 @@
 <template>
-  <el-dialog 
-  	:close-on-click-modal="false" 
-  	:close-on-press-escape="false" 
-  	:title="title" 
+  <el-dialog
+  	:close-on-click-modal="false"
+  	:close-on-press-escape="false"
+  	:title="title"
   	:append-to-body="true"
-  	:visible.sync="isVisible" 
-  	width="960px" 
+  	:visible.sync="isVisible"
+  	width="960px"
   	top="50px"
   >
     <el-form ref="form" :model="tenant" :rules="rules" label-position="right" label-width="130px">
-    	
+
     	<div class="filter-container">
     	<span>
     		<span>{{$t("prepare.searchForm.productName")}}:</span>
@@ -50,7 +50,7 @@
 	      </el-button>
       </span>
     </div>
-	    
+
 	    <!-- 列表数据 -->
 	    <el-table
 	      :key="tableKey"
@@ -70,7 +70,7 @@
 	      <el-table-column align="center" type="selection" width="40px" :reserve-selection="true" />
 	      <el-table-column v-for="item in tableData.titleList" :key="item.id" :prop="item.field" :label='item.text' :show-overflow-tooltip="true" width="180px"></el-table-column>
 	    </el-table>
-	    
+
 	    <!-- 【分页组件】-->
 	    <pagination
 	      v-show="tableData.count > 9"
@@ -79,7 +79,7 @@
 	      :total="Number(tableData.count)"
 	      @pagination="fetch"
 	    />
-    	
+
     </el-form>
     <div slot="footer" class="dialog-footer">
       <el-button plain type="warning" @click="isVisible = false">{{ $t('common.cancel') }}</el-button>
@@ -166,8 +166,8 @@ export default {
       this.tableData.push({
       	key: "WKS_"+ Math.random(),
       	id: '',
-      	positionSort: this.tableData.length + 1, 
-      	size: '', 
+      	positionSort: this.tableData.length + 1,
+      	size: '',
       	remark: '',
       	isEdit: true
       })
@@ -214,7 +214,7 @@ export default {
     		})
       	// 给新的数据赋值
     		this.tableData = arr;
-    		
+
       }).catch(() => {})
     },
     // 【修改】按钮事件
@@ -272,8 +272,6 @@ export default {
     	this.selection.forEach(item => {
     		// 页面需要参数: bomId
     		item.bomId = item.id
-    		// 默认添加数量1
-    		item.bomNum = 1
     	})
     	// 把选择的数据提交到父组件
     	this.$emit("success", this.selection)
@@ -322,7 +320,7 @@ export default {
     },
     fetch (params = {}) {
       this.loading = true
-			
+
 			// 分页信息
       this.queryParams.current = params.current ? params.current : this.queryParams.current
       this.queryParams.size = params.size ? params.size : this.queryParams.size
@@ -338,7 +336,7 @@ export default {
         }
         // eslint-disable-next-line no-return-assign
       }).finally(() => this.loading = false)
-     
+
     },
   }
 }
@@ -372,4 +370,4 @@ export default {
 	margin-left: 10px;
 	color: #1890ff;
 }
-</style>
+</style>