|
|
@ -382,7 +382,7 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item class="trightbs_item"> |
|
|
|
<uploadTwo class="item_input" ref="uploadImg" v-model="imgPrl" @change="backData" bucket="map" |
|
|
|
<uploadTwo class="item_input" ref="uploadImg" @passfunction = "meetfunction" :imgUrl="imagesg" v-model="imgPrl" @change="backData" bucket="map" |
|
|
|
:upload-data="{ type: '0001' }" |
|
|
|
></uploadTwo> |
|
|
|
</el-form-item> |
|
|
@ -394,7 +394,7 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="20"> |
|
|
|
<el-form-item class="trightbs_item"> |
|
|
|
<upload class="item_input" ref="uploadImg" v-model="imgList" @change="backDatas" bucket="map" |
|
|
|
<upload class="item_input" ref="uploadImg" :minet-list="msg" v-model="imgList" @change="backDatas" bucket="map" |
|
|
|
:upload-data="{ type: '0001' }"></upload> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
@ -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<value.length;i++){ |
|
|
|
this.msg.push(value[i]) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
async addStorehouse() { |
|
|
|
const { data: result } = await this.$http.post( |
|
|
|
"/v1/shstorehouse/save", |
|
|
@ -773,7 +809,11 @@ export default { |
|
|
|
if (result.code == 200) this.$message.success("成功添加仓库"); |
|
|
|
this.getStorehouseList(); |
|
|
|
this.storehouseDialogVisible = false; |
|
|
|
this.clearList(); |
|
|
|
this.clearList() |
|
|
|
this.msg=[] |
|
|
|
this.imgList=[] |
|
|
|
this.imgPrl=[] |
|
|
|
this.imagesg=[] |
|
|
|
}, |
|
|
|
async updataStorehouse() { |
|
|
|
const { data: result } = await this.$http.post( |
|
|
@ -957,6 +997,11 @@ export default { |
|
|
|
backData(value) { |
|
|
|
this.form.picUrl = value[0].response.data |
|
|
|
}, |
|
|
|
meetfunction(val){ |
|
|
|
if(val.length==0){ |
|
|
|
this.form.picUrl='' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.getStorehouseList(); |
|
|
|