Bläddra i källkod

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

dw 2 dagar sedan
förälder
incheckning
7f15de5d34
2 ändrade filer med 14 tillägg och 9 borttagningar
  1. 8
    3
      src/components/PopupOut.vue
  2. 6
    6
      src/view/ware/storeWithoutCancel.vue

+ 8
- 3
src/components/PopupOut.vue Visa fil

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

+ 6
- 6
src/view/ware/storeWithoutCancel.vue Visa fil

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

Loading…
Avbryt
Spara