diff --git a/src/views/baseInfo/warehouses/warehouse/warehouseAdd.vue b/src/views/baseInfo/warehouses/warehouse/warehouseAdd.vue
index 24928ff..aba31b9 100644
--- a/src/views/baseInfo/warehouses/warehouse/warehouseAdd.vue
+++ b/src/views/baseInfo/warehouses/warehouse/warehouseAdd.vue
@@ -121,6 +121,7 @@
longitude: '',
latitude: '',
lngAndLat: '',
+ belongingPlace: '',
usageStatus: 1,
address: '',
squareMeter: '',
@@ -182,7 +183,7 @@
return
}
-
+ this.submitdisabled = true
req.saveWarehouse(this.formobj)
.then(resp => {
if (resp.success) {
@@ -194,9 +195,12 @@
this.handleReturn('true')
} else {
// 根据resp.code进行异常情况处理
+ this.submitdisabled = false
}
})
- .catch(() => {})
+ .catch(() => {
+ this.submitdisabled = false
+ })
},
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
@@ -211,6 +215,7 @@
longitude: '',
latitude: '',
lngAndLat: '',
+ belongingPlace: '',
usageStatus: 1,
address: '',
squareMeter: '',
@@ -222,6 +227,7 @@
userSid: window.sessionStorage.getItem('userSid'),
createOrgSid: window.sessionStorage.getItem('orgSid'),
}
+ this.submitdisabled = false
this.$emit('doback')
},
showAdd() {},
@@ -248,6 +254,7 @@
console.log('backData:', value)
this.formobj.address = value.address
this.formobj.lngAndLat = value.lngAndLat
+ this.formobj.belongingPlace = value.belongingPlace
}
}
@@ -349,4 +356,4 @@
}
}
-
\ No newline at end of file
+
diff --git a/src/views/baseInfo/warehouses/warehouse/warehouseAdd2.vue b/src/views/baseInfo/warehouses/warehouse/warehouseAdd2.vue
index 2c1f622..d584048 100644
--- a/src/views/baseInfo/warehouses/warehouse/warehouseAdd2.vue
+++ b/src/views/baseInfo/warehouses/warehouse/warehouseAdd2.vue
@@ -44,7 +44,8 @@
geocoder: null,
addressInfo: {
lngAndLat: "",
- address: ""
+ address: "",
+ belongingPlace: ""
},
pointList: [],
geolocation: null,
@@ -270,6 +271,7 @@
console.log('getAddress:', result.regeocode)
that.addressInfo.address = result.regeocode.formattedAddress;
that.addressInfo.lngAndLat = lng + ',' + lat
+ that.addressInfo.belongingPlace = result.regeocode.addressComponent.province
that.showInfoWindow(marker); //自定义信息窗体
// let thisPosition = {
// address: that.address,
diff --git a/src/views/baseInfo/warehouses/warehouseArea/warehouseAreaAdd.vue b/src/views/baseInfo/warehouses/warehouseArea/warehouseAreaAdd.vue
index 8126d74..c8d2f0e 100644
--- a/src/views/baseInfo/warehouses/warehouseArea/warehouseAreaAdd.vue
+++ b/src/views/baseInfo/warehouses/warehouseArea/warehouseAreaAdd.vue
@@ -146,7 +146,7 @@
})
return
}
-
+ this.submitdisabled = true
req.saveWarehousearea(this.formobj)
.then(resp => {
if (resp.success) {
@@ -158,9 +158,12 @@
this.handleReturn('true')
} else {
// 根据resp.code进行异常情况处理
+ this.submitdisabled = false
}
})
- .catch(() => {})
+ .catch(() => {
+ this.submitdisabled = false
+ })
},
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
@@ -181,6 +184,7 @@
createOrgSid: window.sessionStorage.getItem('orgSid'),
}
+ this.submitdisabled = false
this.$emit('doback')
},
showAdd() {
diff --git a/src/views/baseInfo/warehouses/warehouseAreaType/warehouseAreaTypeAdd.vue b/src/views/baseInfo/warehouses/warehouseAreaType/warehouseAreaTypeAdd.vue
index cdc12af..0ac8e3b 100644
--- a/src/views/baseInfo/warehouses/warehouseAreaType/warehouseAreaTypeAdd.vue
+++ b/src/views/baseInfo/warehouses/warehouseAreaType/warehouseAreaTypeAdd.vue
@@ -64,7 +64,7 @@
})
return
}
-
+ this.submitdisabled = true
req.saveWarehousearea(this.formobj)
.then(resp => {
if (resp.success) {
@@ -76,9 +76,12 @@
this.handleReturn('true')
} else {
// 根据resp.code进行异常情况处理
+ this.submitdisabled = false
}
})
- .catch(() => {})
+ .catch(() => {
+ this.submitdisabled = false
+ })
},
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
@@ -91,6 +94,7 @@
userSid: window.sessionStorage.getItem('userSid'),
createOrgSid: window.sessionStorage.getItem('orgSid'),
}
+ this.submitdisabled = false
this.$emit('doback')
},
showAdd() {},
diff --git a/src/views/goods/brands/brandsAdd.vue b/src/views/goods/brands/brandsAdd.vue
index c23227d..ec129ab 100644
--- a/src/views/goods/brands/brandsAdd.vue
+++ b/src/views/goods/brands/brandsAdd.vue
@@ -61,7 +61,7 @@
品牌Logo
+ :upload-data="{ type: '0001' }" :class="{'hide': hideUploadBtn}" @change="backData" />
@@ -126,7 +126,7 @@
userSid: window.sessionStorage.getItem('userSid'),
createOrgSid: window.sessionStorage.getItem('orgSid'),
},
- hideUploadBtn: false,
+ hideUploadBtn: true,
hideUploadBtn2: false,
rules: {
brandName: [{
@@ -198,6 +198,7 @@
// }
this.$refs['form_obj'].validate((valid) => {
if (valid) {
+ this.submitdisabled = true
req.saveBrands(this.formobj)
.then(resp => {
if (resp.success) {
@@ -209,14 +210,15 @@
this.handleReturn('true')
} else {
// 根据resp.code进行异常情况处理
+ this.submitdisabled = false
}
})
- .catch(() => {})
+ .catch(() => {
+ this.submitdisabled = false
+ })
}
})
-
-
},
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
@@ -234,6 +236,7 @@
userSid: window.sessionStorage.getItem('userSid'),
createOrgSid: window.sessionStorage.getItem('orgSid'),
}
+ this.submitdisabled = false
this.$emit('doback')
},
showAdd() {
diff --git a/src/views/goods/category/categoryAdd.vue b/src/views/goods/category/categoryAdd.vue
index 1b9f4f8..0143134 100644
--- a/src/views/goods/category/categoryAdd.vue
+++ b/src/views/goods/category/categoryAdd.vue
@@ -270,6 +270,7 @@
this.$refs['form_obj'].validate((valid) => {
if (valid) {
+ this.submitdisabled = true
req.saveTypes(this.formobj)
.then(resp => {
if (resp.success) {
@@ -281,9 +282,12 @@
this.handleReturn('true')
} else {
// 根据resp.code进行异常情况处理
+ this.submitdisabled = false
}
})
- .catch(() => {})
+ .catch(() => {
+ this.submitdisabled = false
+ })
}
})
@@ -307,6 +311,7 @@
userSid: window.sessionStorage.getItem('userSid'),
createOrgSid: window.sessionStorage.getItem('orgSid'),
}
+ this.submitdisabled = false
this.$emit('doback')
},
showAdd() {
diff --git a/src/views/goods/factory/factoryAdd.vue b/src/views/goods/factory/factoryAdd.vue
index dbebac1..d3edfd1 100644
--- a/src/views/goods/factory/factoryAdd.vue
+++ b/src/views/goods/factory/factoryAdd.vue
@@ -153,6 +153,7 @@
this.$refs['form_obj'].validate((valid) => {
if (valid) {
+ this.submitdisabled = true
req.saveFacturer(this.formobj)
.then(resp => {
if (resp.success) {
@@ -164,9 +165,12 @@
this.handleReturn('true')
} else {
// 根据resp.code进行异常情况处理
+ this.submitdisabled = false
}
})
- .catch(() => {})
+ .catch(() => {
+ this.submitdisabled = false
+ })
}
})
@@ -185,6 +189,7 @@
userSid: window.sessionStorage.getItem('userSid'),
createOrgSid: window.sessionStorage.getItem('orgSid'),
}
+ this.submitdisabled = false
this.$emit('doback')
},
showAdd() {
diff --git a/src/views/goods/goods/goodsAdd.vue b/src/views/goods/goods/goodsAdd.vue
index b274eb0..1ebca15 100644
--- a/src/views/goods/goods/goodsAdd.vue
+++ b/src/views/goods/goods/goodsAdd.vue
@@ -889,6 +889,7 @@
console.log('>>>>>>>>>saveOrUpdate', this.formobj)
this.$refs['form_obj'].validate((valid) => {
if (valid) {
+ this.submitdisabled = true
req.saveGoods(this.formobj)
.then(resp => {
if (resp.success) {
@@ -900,9 +901,12 @@
this.handleReturn('true')
} else {
// 根据resp.code进行异常情况处理
+ this.submitdisabled = false
}
})
- .catch(() => {})
+ .catch(() => {
+ this.submitdisabled = false
+ })
}
})
},
@@ -935,6 +939,7 @@
userSid: window.sessionStorage.getItem('userSid'),
createOrgSid: window.sessionStorage.getItem('orgSid'),
}
+ this.submitdisabled = false
this.$emit('doback')
},
showAdd() {
diff --git a/src/views/goods/goods/goodsAdd2.vue b/src/views/goods/goods/goodsAdd2.vue
index 24a4880..b8954f8 100644
--- a/src/views/goods/goods/goodsAdd2.vue
+++ b/src/views/goods/goods/goodsAdd2.vue
@@ -371,9 +371,10 @@
console.log('>>>>>>>>>saveOrUpdate', this.formobj)
this.$refs['form_obj'].validate((valid) => {
if (valid) {
-
+ this.submitdisabled = true
req.saveGoods(this.formobj)
.then(resp => {
+
if (resp.success) {
this.$message({
showClose: true,
@@ -383,9 +384,12 @@
this.handleReturn('true')
} else {
// 根据resp.code进行异常情况处理
+ this.submitdisabled = false
}
})
- .catch(() => {})
+ .catch(() => {
+ this.submitdisabled = false
+ })
}
})
@@ -423,6 +427,7 @@
"agencyPrice": "",
"picPath": []
}
+ this.submitdisabled = false
this.$emit('doback')
},
showAdd() {
diff --git a/src/views/goods/unit/unitAdd.vue b/src/views/goods/unit/unitAdd.vue
index 599ba91..07f03d5 100644
--- a/src/views/goods/unit/unitAdd.vue
+++ b/src/views/goods/unit/unitAdd.vue
@@ -94,6 +94,7 @@
// }
this.$refs['form_obj'].validate((valid) => {
if (valid) {
+ this.submitdisabled = true
req.saveUnits(this.formobj)
.then(resp => {
if (resp.success) {
@@ -105,9 +106,12 @@
this.handleReturn('true')
} else {
// 根据resp.code进行异常情况处理
+ this.submitdisabled = false
}
})
- .catch(() => {})
+ .catch(() => {
+ this.submitdisabled = false
+ })
}
})
@@ -124,6 +128,7 @@
userSid: window.sessionStorage.getItem('userSid'),
createOrgSid: window.sessionStorage.getItem('orgSid'),
}
+ this.submitdisabled = false
this.$emit('doback')
},
showAdd() {