|
|
@@ -140,16 +140,21 @@ export default {
|
|
|
_self.loading = true;
|
|
|
AssetInventoryResource.departmentGeneratesCountSheet(param).then(
|
|
|
data => {
|
|
|
- data.datas.forEach(function(item){
|
|
|
- var organizationName = {
|
|
|
- name: item.organizationName,
|
|
|
- documentNo: item.documentNo,
|
|
|
- documentName: item.name,
|
|
|
- id: item.id,
|
|
|
- };
|
|
|
- _self.organizationNames.push(organizationName);
|
|
|
- });
|
|
|
- Notify.success('成功', '全公司生成盘点单成功', 2000);
|
|
|
+ if(data.errorCode != 0){
|
|
|
+ Notify.error('失败', data.errorMessage, false);
|
|
|
+ }else{
|
|
|
+ data.datas.forEach(function(item){
|
|
|
+ var organizationName = {
|
|
|
+ name: item.organizationName,
|
|
|
+ documentNo: item.documentNo,
|
|
|
+ documentName: item.name,
|
|
|
+ id: item.id,
|
|
|
+ };
|
|
|
+ _self.organizationNames.push(organizationName);
|
|
|
+ });
|
|
|
+ Notify.success('成功', '全公司生成盘点单成功', 2000);
|
|
|
+ }
|
|
|
+
|
|
|
_self.isShow = true;
|
|
|
_self.loading = false;
|
|
|
}, xmlHttpRequest => {
|