diff --git a/src/views/productionTesting/components/trialStandard.vue b/src/views/productionTesting/components/trialStandard.vue
index ed5910c..018c60a 100644
--- a/src/views/productionTesting/components/trialStandard.vue
+++ b/src/views/productionTesting/components/trialStandard.vue
@@ -321,7 +321,7 @@ export default {
handleEdit(row,index) {
getDetail({id:row.id}).then(res =>{
console.log('res--------------',res)
- if(JSON.stringify(res.data.data.attach) != '{}'){
+ if(res.data.data.attach && JSON.stringify(res.data.data.attach) != '{}'){
this.fileList = [
{
name:res.data.data.attach.originalName,
diff --git a/src/views/warehouseManagement/materialMaintenance.vue b/src/views/warehouseManagement/materialMaintenance.vue
index f5b65f6..c4108dd 100644
--- a/src/views/warehouseManagement/materialMaintenance.vue
+++ b/src/views/warehouseManagement/materialMaintenance.vue
@@ -10,8 +10,8 @@
{{ row.materialGoods.goodsCode }}
-
- 新增
+
+ 新增
@@ -491,6 +491,18 @@ export default {
},
methods: {
+ handleAdd(){
+ if(this.goodsCode == ''){
+ this.$message.error('请填写物料编码')
+ return
+ }
+ addGoods(this.goodsCode).then(res =>{
+ if(res.data.code == 200){
+ this.$message.success('添加成功')
+ this.onLoad()
+ }
+ })
+ },
searchChange(params, done){
this.query = params;
this.page.currentPage = 1;
@@ -502,7 +514,6 @@ export default {
this.onLoad()
},
beforeOpen(done, type){
- console.log('form-----------------',this.form)
if(type == 'edit'){
this.form.minWarning = this.form.minWarning != '' ? this.form.minWarning : false
this.form.reissueType = (this.form.reissueType && this.form.reissueType != -1) ? this.form.reissueType : 0
diff --git a/src/views/warehouseManagement/materialPreserve.vue b/src/views/warehouseManagement/materialPreserve.vue
index 51df5d9..9a608fd 100644
--- a/src/views/warehouseManagement/materialPreserve.vue
+++ b/src/views/warehouseManagement/materialPreserve.vue
@@ -4,7 +4,7 @@
@row-del="rowDel" @search-change="searchChange" @search-reset="searchReset"
@row-save="rowSave" @row-update="rowUpdate" :before-open="beforeOpen"
@selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
- @refresh-change="refreshChange" @on-load="onLoad">
+ @refresh-change="refreshChange" @on-load="onLoad" >