diff --git a/warehousing-system/project_web/src/components/initial_value/storehouse.vue b/warehousing-system/project_web/src/components/initial_value/storehouse.vue
index 048a02a8..2e533371 100644
--- a/warehousing-system/project_web/src/components/initial_value/storehouse.vue
+++ b/warehousing-system/project_web/src/components/initial_value/storehouse.vue
@@ -382,7 +382,7 @@
-
@@ -394,7 +394,7 @@
-
@@ -699,8 +699,25 @@ export default {
mapApiKey: "map",
shouhuoArrive: {},
fullscreenloading: null,
+ msg: [],
+ imagesg:[],
+ meetfunctions:[]
};
},
+ watch: {
+ imgList:{
+ deep: true,
+ immediate: true,
+ handler(newVal, oldVal) {
+ console.log(newVal);
+ const aa=[]
+ for (var i = 0; i < newVal.length; i++) {
+ aa.push(newVal[i].sid)
+ }
+ this.form.pics = aa
+ }
+ },
+ },
methods: {
// 序号
indexMethod(index) {
@@ -750,6 +767,8 @@ export default {
},
addStorehouseDialog() {
this.clearList()
+ this.imgPrl=[]
+ this.imgList=[]
this.title = "新增仓库";
this.storehouseDialogVisible = true;
},
@@ -759,12 +778,29 @@ export default {
this.custList = result.data
}
},
- updataStorehousedialog(storehouse) {
- console.log(storehouse);
- this.form = storehouse;
+ async updataStorehousedialog(storehouse) {
+ this.clearList()
+ this.imgList=[]
+ this.msg=[]
+ this.imgPrl=[]
+ this.imagesg=[]
this.title = "修改仓库";
this.storehouseDialogVisible = true;
- },
+ const { data: result } = await this.$http.get(
+ `/v1/shstorehouse/fetchDetailsBySid/${storehouse.sid}`
+ );
+ if (result.code == 200) {
+ this.form = result.data;
+ let value=result.data.pics
+ const picImg=result.data.picUrl
+ this.imagesg.push({
+ url:picImg
+ })
+ for(let i=0;i {
- this.Init()
- })
+ // this.$nextTick(() => {
+ // this.Init()
+ // })
},
created() {
@@ -131,6 +136,7 @@
imgFiles.push(o.url)
})
this.$emit('fileChange', this.files)
+ this.$emit("passfunction",this.files)
},
handleRemove(file, fileList) {
console.log('file:' + JSON.stringify(file))
diff --git a/warehousing-system/project_web/src/components/uploadFile/upload_yanchejianchaTuBiao.vue b/warehousing-system/project_web/src/components/uploadFile/upload_yanchejianchaTuBiao.vue
index b31e09ba..02463be5 100644
--- a/warehousing-system/project_web/src/components/uploadFile/upload_yanchejianchaTuBiao.vue
+++ b/warehousing-system/project_web/src/components/uploadFile/upload_yanchejianchaTuBiao.vue
@@ -48,7 +48,13 @@
uploadData: {
type: Object,
default: {}
+ },
+ MinetList: {
+ type: Array,
+ default: function () {
+ return []
}
+ }
},
data() {
return {
@@ -76,12 +82,28 @@
handler(newVal, oldVal) {
this.files = newVal
}
- }
+ },
+ MinetList: {
+ deep: true,
+ immediate: true,
+ handler(newVal, oldVal) {
+ let copy = newVal.slice();
+ if (copy !== undefined) {
+ // this.files = []
+ for (var i = 0; i < copy.length; i++) {
+ this.files.push({
+ url: copy[i].fileUrl,
+ name: copy[i].fileName,
+ sid: copy[i].sid,
+ })
+
+ }
+ }
+ }
+ },
},
mounted() {
- this.$nextTick(() => {
- this.Init()
- })
+ // this.Init()
},
created() {
@@ -95,15 +117,7 @@
},
// 页面第一次加载
Init() {
- if (this.name !== undefined) {
- this.files = []
- for (var i = 0; i < this.name.length; i++) {
- this.files.push({
- name: this.name[i],
- url: this.name[i]
- })
- }
- }
+
},
handlePictureCardPreview(file) {
this.dialogVisible = true
@@ -123,6 +137,7 @@
url: file.response.data.fileUrl,
sid: file.response.data.sid
})
+ console.log( this.files);
this.$emit('change', this.files)
this.$emit('eett', this.files)
}
@@ -135,6 +150,7 @@
imgFiles.push(o.url)
})
this.$emit('fileChange', this.files)
+ console.log(this.files);
},
handleRemove(file, fileList) {
console.log('file:' + JSON.stringify(file))
@@ -209,7 +225,7 @@
}
// console.log('event:', event)
}
- }
+ },
}