|
@@ -60,11 +60,21 @@
|
60
|
60
|
<el-button size="medium" type="success" @click="showIn">入库</el-button>
|
61
|
61
|
<el-button size="medium" type="danger" @click="handleInBack">取消入库</el-button> -->
|
62
|
62
|
<el-button type="primary" size="small" @click="showDistribution">配货</el-button>
|
63
|
|
- <el-button type="success" size="small" @click="handleExport" >导出记录</el-button>
|
64
|
63
|
<el-button type="primary" size="small" @click="showOut">出库</el-button>
|
65
|
|
- <el-button type="danger" size="small" @click="handleInBack" :disabled="backAble">取消入库</el-button>
|
|
64
|
+
|
66
|
65
|
<el-button type="primary" size="small" @click="resetButton" :disabled="backAble">重置</el-button>
|
67
|
66
|
<el-button type="primary" size="small" @click="handleRemark1" :disabled="backAble">修改垛位备注</el-button>
|
|
67
|
+ <el-button type="success" size="small" @click="handleExport" >导出记录</el-button>
|
|
68
|
+
|
|
69
|
+ </el-form-item>
|
|
70
|
+ <el-form-item label="" style="margin-top: 0px;margin-left: 10px">
|
|
71
|
+ <el-dropdown placement="bottom" trigger="click" @command="batchOperate">
|
|
72
|
+ <el-button type="danger" size="small"> 其他操作<i class="el-icon-arrow-down el-icon--right"></i></el-button>
|
|
73
|
+ <el-dropdown-menu slot="dropdown">
|
|
74
|
+ <el-dropdown-item command="handleInBack" style="background-color: #f5f5f5;">取消入库</el-dropdown-item>
|
|
75
|
+ </el-dropdown-menu>
|
|
76
|
+ </el-dropdown>
|
|
77
|
+
|
68
|
78
|
</el-form-item>
|
69
|
79
|
<!-- <el-button type="primary" @click="showOut">出库</el-button> -->
|
70
|
80
|
<!-- <el-form-item label=" ">
|
|
@@ -326,6 +336,13 @@
|
326
|
336
|
this.query.materialName = material.name
|
327
|
337
|
this.query.standard = material.standard
|
328
|
338
|
},
|
|
339
|
+ batchOperate(command) {
|
|
340
|
+ switch (command) {
|
|
341
|
+ case "handleInBack":
|
|
342
|
+ this.handleInBack();
|
|
343
|
+ break;
|
|
344
|
+ }
|
|
345
|
+ },
|
329
|
346
|
|
330
|
347
|
showCustomer() {
|
331
|
348
|
this.$refs.PopupCustomer.show()
|
|
@@ -385,28 +402,35 @@
|
385
|
402
|
this.$refs.PopupIn.show()
|
386
|
403
|
},
|
387
|
404
|
handleInBack() {
|
388
|
|
- if (this.selectRows.length < 1) {
|
389
|
|
- this.$message({
|
|
405
|
+ this.$confirm("确认删除吗?", "提示", {
|
|
406
|
+ confirmButtonText:'确认',
|
|
407
|
+ cancelButtonText:'取消',
|
|
408
|
+ type: "warning"
|
|
409
|
+ }).then(() => {
|
|
410
|
+ if (this.selectRows.length < 1) {
|
|
411
|
+ this.$message({
|
390
|
412
|
type: 'error',
|
391
|
413
|
message: '至少选择一条数据!',
|
392
|
|
- });
|
393
|
|
- return
|
394
|
|
- } else {
|
395
|
|
- var url = 'WareIn/back.do'
|
396
|
|
- var param = {
|
397
|
|
- json: JSON.stringify(this.selectRows),
|
398
|
|
- }
|
399
|
|
- axios.post(url, param).then(response => {
|
400
|
|
- if (response.data.code == 0) {
|
401
|
|
- this.getStoreByStackId(response.data.data)
|
402
|
|
- } else {
|
403
|
|
- this.$message({
|
404
|
|
- type: 'error',
|
405
|
|
- message: '操作失败;' + response.data.msg,
|
406
|
|
- });
|
|
414
|
+ });
|
|
415
|
+ return
|
|
416
|
+ } else {
|
|
417
|
+ var url = 'WareIn/back.do'
|
|
418
|
+ var param = {
|
|
419
|
+ json: JSON.stringify(this.selectRows),
|
407
|
420
|
}
|
408
|
|
- });
|
409
|
|
- }
|
|
421
|
+ axios.post(url, param).then(response => {
|
|
422
|
+ if (response.data.code == 0) {
|
|
423
|
+ this.getStoreByStackId(response.data.data)
|
|
424
|
+ } else {
|
|
425
|
+ this.$message({
|
|
426
|
+ type: 'error',
|
|
427
|
+ message: '操作失败;' + response.data.msg,
|
|
428
|
+ });
|
|
429
|
+ }
|
|
430
|
+ });
|
|
431
|
+ }
|
|
432
|
+ }).catch(() => {});
|
|
433
|
+
|
410
|
434
|
},
|
411
|
435
|
resetButton(){ //查询条件重置
|
412
|
436
|
this.query.wareName = '',
|
|
@@ -595,30 +619,6 @@
|
595
|
619
|
handleStackCancelSave(){
|
596
|
620
|
this.stackDialogVisible = false
|
597
|
621
|
},
|
598
|
|
- handleInBack() {
|
599
|
|
- if (this.selectRows.length < 1) {
|
600
|
|
- this.$message({
|
601
|
|
- type: 'error',
|
602
|
|
- message: '至少选择一条数据!',
|
603
|
|
- });
|
604
|
|
- return
|
605
|
|
- } else {
|
606
|
|
- var url = 'WareIn/back.do'
|
607
|
|
- var param = {
|
608
|
|
- json: JSON.stringify(this.selectRows),
|
609
|
|
- }
|
610
|
|
- axios.post(url, param).then(response => {
|
611
|
|
- if (response.data.code == 0) {
|
612
|
|
- this.getStoreByStackId(response.data.data)
|
613
|
|
- } else {
|
614
|
|
- this.$message({
|
615
|
|
- type: 'error',
|
616
|
|
- message: '操作失败;' + response.data.msg,
|
617
|
|
- });
|
618
|
|
- }
|
619
|
|
- });
|
620
|
|
- }
|
621
|
|
- },
|
622
|
622
|
inImport() {
|
623
|
623
|
var url = 'WareIn/inImport.do'
|
624
|
624
|
var json = JSON.stringify(this.imTableData)
|