|
@@ -379,8 +379,14 @@
|
|
|
v-if="!columnNoRoutList.includes('收货地址')"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-if="scope.row.addressPlace.indexOf('新地址')>=0" style="color:red">{{scope.row.addressPlace}}</span>
|
|
|
- <span v-show="scope.row.addressPlace.indexOf('新地址')<0">{{scope.row.addressPlace}}</span>
|
|
|
+ <span
|
|
|
+ v-if="scope.row.addressPlace.indexOf('新地址') >= 0"
|
|
|
+ style="color:red"
|
|
|
+ >{{ scope.row.addressPlace }}</span
|
|
|
+ >
|
|
|
+ <span v-show="scope.row.addressPlace.indexOf('新地址') < 0">{{
|
|
|
+ scope.row.addressPlace
|
|
|
+ }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
@@ -965,9 +971,12 @@
|
|
|
<template slot="prefix">
|
|
|
{{ steelMap.remark }}
|
|
|
</template> -->
|
|
|
- </el-input></el-form-item>
|
|
|
+ </el-input></el-form-item
|
|
|
+ >
|
|
|
<el-form-item>
|
|
|
- <el-button @click="openRemarkPic" type="primary">备注图片</el-button>
|
|
|
+ <el-button @click="openRemarkPic" type="primary"
|
|
|
+ >备注图片</el-button
|
|
|
+ >
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
@@ -1265,7 +1274,7 @@
|
|
|
:before-close="closeUpload2"
|
|
|
>
|
|
|
<el-form style="margin-left:20%">
|
|
|
- <el-form-item >
|
|
|
+ <el-form-item>
|
|
|
<el-upload
|
|
|
ref="remarkPic"
|
|
|
list-type="picture-card"
|
|
@@ -1996,8 +2005,8 @@ export default {
|
|
|
filterMap: {},
|
|
|
//权限控制
|
|
|
notRoutList: [],
|
|
|
- remarkPic:false,
|
|
|
- remarkPicList:[],
|
|
|
+ remarkPic: false,
|
|
|
+ remarkPicList: [],
|
|
|
location: null,
|
|
|
orderNumber: null,
|
|
|
capacityNumber: null,
|
|
@@ -2297,7 +2306,7 @@ export default {
|
|
|
// console.log('headCellStyle column.property: ', column.property)
|
|
|
if (column.property && this.headColumnList.includes(column.property)) {
|
|
|
console.log(this.headColumnList, 'this.headColumnList', column.property)
|
|
|
- return { color: 'red !important', fontWeight: 700, fontSize: '15px' }
|
|
|
+ return { fontWeight: 700, fontSize: '15px' }
|
|
|
//return {}
|
|
|
}
|
|
|
return {}
|
|
@@ -2928,32 +2937,32 @@ export default {
|
|
|
downloadFile(src, `${this.downloadCapacityNo}${title}照片`, '.jpg')
|
|
|
// this.dialogVisible = true
|
|
|
},
|
|
|
- openRemarkPic(){
|
|
|
+ openRemarkPic() {
|
|
|
//获取图片到本地
|
|
|
- this.axios.post("/api/v1/uc/getPicture",this.steelMap).then((res)=>{
|
|
|
- console.log(res);
|
|
|
+ this.axios.post('/api/v1/uc/getPicture', this.steelMap).then(res => {
|
|
|
+ console.log(res)
|
|
|
if (res.data) {
|
|
|
- let remarkPicList=[]
|
|
|
- res.data.forEach((e, index) => {
|
|
|
- creatImageFile(e, 'file2-' + index).then(res => {
|
|
|
- remarkPicList.push({
|
|
|
- name: 'file' + index,
|
|
|
- raw: res,
|
|
|
- url: e
|
|
|
- })
|
|
|
+ let remarkPicList = []
|
|
|
+ res.data.forEach((e, index) => {
|
|
|
+ creatImageFile(e, 'file2-' + index).then(res => {
|
|
|
+ remarkPicList.push({
|
|
|
+ name: 'file' + index,
|
|
|
+ raw: res,
|
|
|
+ url: e
|
|
|
})
|
|
|
})
|
|
|
- this.remarkPicList=remarkPicList;
|
|
|
- }else{
|
|
|
+ })
|
|
|
+ this.remarkPicList = remarkPicList
|
|
|
+ } else {
|
|
|
this.remarkPicList = []
|
|
|
}
|
|
|
- this.remarkPic=true;
|
|
|
- });
|
|
|
+ this.remarkPic = true
|
|
|
+ })
|
|
|
},
|
|
|
- uploadRemarkPic(){
|
|
|
- if(this.remarkPicList.length<=0){
|
|
|
+ uploadRemarkPic() {
|
|
|
+ if (this.remarkPicList.length <= 0) {
|
|
|
this.$message.error('请上传图片!')
|
|
|
- return;
|
|
|
+ return
|
|
|
}
|
|
|
//上传备注图片
|
|
|
let formData = new window.FormData()
|
|
@@ -2971,9 +2980,9 @@ export default {
|
|
|
this.axios(options).then(res => {
|
|
|
console.log(res)
|
|
|
this.$message.success('暂存成功!')
|
|
|
- this.remarkPic=false;
|
|
|
- this.steelMap.urls = res.data;
|
|
|
- this.closeUpload2();
|
|
|
+ this.remarkPic = false
|
|
|
+ this.steelMap.urls = res.data
|
|
|
+ this.closeUpload2()
|
|
|
})
|
|
|
},
|
|
|
openReceive() {
|
|
@@ -3143,11 +3152,6 @@ export default {
|
|
|
this.$refs.arrival.clearFiles()
|
|
|
this.$refs.receive.clearFiles()
|
|
|
},
|
|
|
- closeUpload2() {
|
|
|
- this.remarkPic = false
|
|
|
- this.isLoading = false
|
|
|
- this.$refs.remarkPic.clearFiles()
|
|
|
- },
|
|
|
//防抖函数--防止用户重复点击
|
|
|
debounce(func, delay) {
|
|
|
let timer = null
|