Sfoglia il codice sorgente

1.出库弹窗中点击出库按钮操作,loading画面加载完成之后不再自动关闭弹窗,loading画面加载完成之后,禁用出库按钮

dw 2 giorni fa
parent
commit
7f15de5d34
2 ha cambiato i file con 14 aggiunte e 9 eliminazioni
  1. 8
    3
      src/components/PopupOut.vue
  2. 6
    6
      src/view/ware/storeWithoutCancel.vue

+ 8
- 3
src/components/PopupOut.vue Vedi File

@@ -35,7 +35,7 @@
35 35
 					</el-select>
36 36
 				</el-form-item>
37 37
 				<el-form-item label="">
38
-					<el-button style="margin-left: 25px" size="medium" type="success" @click="handleOut">出库</el-button>
38
+					<el-button style="margin-left: 25px" size="medium" :disabled="isOk" type="success" @click="handleOut">出库</el-button>
39 39
 				</el-form-item>
40 40
 			</el-form>
41 41
 			<el-table :data="customerTableData" border style="width: 99%;" v-if="customerTableVisible">
@@ -119,6 +119,7 @@
119 119
 		data() {
120 120
 			return {
121 121
         loading:false,
122
+        isOk:false,
122 123
 				trucks: [],
123 124
 				truckNo: '',
124 125
 				customerTableData: [],
@@ -244,15 +245,18 @@
244 245
 				axios.post(url, param).then(response => {
245 246
 					if (response.data.code == 0) {
246 247
 						this.showCustomerTable()
248
+            this.isOk = true;
247 249
 					} else {
248 250
 						this.$message({
249 251
 							type: 'error',
250 252
 							message: '失败!' + response.data.msg,
251 253
 						});
254
+            this.isOk = false
252 255
 					}
253 256
           this.loading = false;
254
-          this.close()
255
-          this.dialogVisible = false
257
+
258
+          // this.close()
259
+          // this.dialogVisible = false
256 260
 				});
257 261
 			},
258 262
 			close() {
@@ -268,6 +272,7 @@
268 272
 				this.tableData = []
269 273
 				this.truckNo = ''
270 274
 				this.customerTableVisible = false
275
+        this.isOk = false
271 276
 				this.$emit('receviceFromChild')
272 277
 
273 278
 			},

+ 6
- 6
src/view/ware/storeWithoutCancel.vue Vedi File

@@ -17,7 +17,7 @@
17 17
 				<!-- <el-button size="small" type="danger" @click="handleInBack" :disabled="backAble">取消入库</el-button> -->
18 18
 				<el-button type="primary" size="small" @click="showDistribution">配货</el-button>
19 19
 				<el-button type="primary" size="small" @click="showOut">出库</el-button>
20
-			</el-col> 
20
+			</el-col>
21 21
 			<el-col :span="2">
22 22
 				<el-row style=" margin:10px;">
23 23
 				</el-row>
@@ -108,9 +108,9 @@
108 108
 			</el-col>
109 109
 		</el-row>
110 110
 
111
-		<!-- 
111
+		<!--
112 112
 		<el-table :data="tableData" border ref="multipleTable" @select="handleTableSelect">
113
-			 
113
+
114 114
 			<el-table-column type="selection" width="40" header-align="center" align="center"></el-table-column>
115 115
 			<el-table-column prop="layer" label="层数" width="60" show-overflow-tooltip header-align="center" align="center">
116 116
 			</el-table-column>
@@ -180,7 +180,7 @@
180 180
 		<popup-distribution ref="PopupDistribution" @receviceFromChild="receviceFromDistreibution" :selectRows="selectRows"></popup-distribution>
181 181
 		<popup-out ref="PopupOut" @receviceFromChild="receviceFromOut"></popup-out>
182 182
 		<popup-in ref="PopupIn" @receviceFromChild="receviceFromIn" :wares="options" :wareId="query.wareId" :stack="moveFromStack"></popup-in>
183
- 
183
+
184 184
 
185 185
 		<el-dialog title="库房明细" :visible.sync="importDialogVisible" width="1000px">
186 186
 
@@ -271,7 +271,7 @@
271 271
 	import PopupDistribution from '@/components/PopupDistribution.vue'
272 272
 	import PopupOut from '@/components/PopupOut.vue'
273 273
 	import PopupIn from '@/components/PopupIn.vue'
274
- 
274
+
275 275
 	import {
276 276
 		mapState
277 277
 	} from 'vuex'
@@ -280,7 +280,7 @@
280 280
 		components: {
281 281
 			PopupStackWithSelectWare,
282 282
 			PopupStack,
283
-		 
283
+
284 284
 			PopupDistribution,
285 285
 			PopupOut,
286 286
 			PopupIn,

Loading…
Annulla
Salva