|
@@ -67,7 +67,7 @@
|
|
<a-button size="small" @click='editList'>修改</a-button>
|
|
<a-button size="small" @click='editList'>修改</a-button>
|
|
<a-button size="small" @click="delectList">删除</a-button>
|
|
<a-button size="small" @click="delectList">删除</a-button>
|
|
<a-button size="small" @click="detailList">详情</a-button>
|
|
<a-button size="small" @click="detailList">详情</a-button>
|
|
- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl">
|
|
|
|
|
|
+ <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" @change="handleUploadChange" :action="importExcelUrl">
|
|
<a-button size="small">导入</a-button>
|
|
<a-button size="small">导入</a-button>
|
|
</a-upload>
|
|
</a-upload>
|
|
<a-button size="small" @click="exportList('安全库存列表')">导出</a-button>
|
|
<a-button size="small" @click="exportList('安全库存列表')">导出</a-button>
|
|
@@ -201,7 +201,7 @@
|
|
url: {
|
|
url: {
|
|
list: "/production/safetyStock/list",
|
|
list: "/production/safetyStock/list",
|
|
},
|
|
},
|
|
- importExcelUrl:'/production/safetyStock/importExcel',
|
|
|
|
|
|
+ importExcelUrl:window._CONFIG['domianURL'] + '/production/safetyStock/importExcel',
|
|
// ---------workflow by fhf start -------------
|
|
// ---------workflow by fhf start -------------
|
|
serviceName: 'assetAllocationService',
|
|
serviceName: 'assetAllocationService',
|
|
// ---------workflow by fhf end -------------
|
|
// ---------workflow by fhf end -------------
|
|
@@ -366,7 +366,16 @@
|
|
},
|
|
},
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ handleUploadChange({ file, fileList }){
|
|
|
|
+ if (file.status === 'done'&&file.response.success) {
|
|
|
|
+ this.$message.success(file.response.message)
|
|
|
|
+ this.getTableList()
|
|
|
|
+ }else if(file.status === 'done'&&!file.response.success){
|
|
|
|
+ this.$message.error(file.response.message)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|