|
@@ -309,13 +309,17 @@ export default {
|
|
|
},
|
|
|
// 导入模板成功
|
|
|
saveTpl () {
|
|
|
- this.showTplModal = false
|
|
|
- importShelfTemplate({ shelfSn: this.$route.params.sn, templateSn: this.tplSn }).then(res => {
|
|
|
- if (res.status == 200) {
|
|
|
- this.$message.success(res.message)
|
|
|
- this.resetSearchForm()
|
|
|
- }
|
|
|
- })
|
|
|
+ if (!this.spinning) {
|
|
|
+ this.spinning = true
|
|
|
+ importShelfTemplate({ shelfSn: this.$route.params.sn, templateSn: this.tplSn }).then(res => {
|
|
|
+ if (res.status == 200) {
|
|
|
+ this.$message.success(res.message)
|
|
|
+ this.showTplModal = false
|
|
|
+ this.resetSearchForm()
|
|
|
+ }
|
|
|
+ this.spinning = false
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
// 导出产品
|
|
|
handleExport () {
|