This commit is contained in:
parent
eec42076e8
commit
6dd3c9d393
|
|
@ -51,7 +51,15 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 上传图片 -->
|
<!-- 上传图片 -->
|
||||||
<u-modal :show="imgModal" :title="imgModelTitle" showCancelButton @cancel="imgModal = false" @confirm="uploadImg">
|
<u-modal
|
||||||
|
:show="imgModal"
|
||||||
|
:title="imgModelTitle"
|
||||||
|
showCancelButton
|
||||||
|
:cancelText="cancelText"
|
||||||
|
:showConfirmButton="showConBtn"
|
||||||
|
@cancel="imgModal = false"
|
||||||
|
@confirm="uploadImg"
|
||||||
|
>
|
||||||
<view class="slot-content" style="display: flex; flex-direction: column; align-items: center">
|
<view class="slot-content" style="display: flex; flex-direction: column; align-items: center">
|
||||||
<uni-file-picker
|
<uni-file-picker
|
||||||
v-model="imgList"
|
v-model="imgList"
|
||||||
|
|
@ -86,6 +94,8 @@ export default {
|
||||||
isLoading: false,
|
isLoading: false,
|
||||||
actionUrl: config.baseUrl + '/gz_car' + config.uploadFileUrlGzCar,
|
actionUrl: config.baseUrl + '/gz_car' + config.uploadFileUrlGzCar,
|
||||||
token: uni.getStorageSync('App-Token'),
|
token: uni.getStorageSync('App-Token'),
|
||||||
|
cancelText: '取消',
|
||||||
|
showConBtn: true,
|
||||||
row: {},
|
row: {},
|
||||||
imgModal: false,
|
imgModal: false,
|
||||||
readonly: false,
|
readonly: false,
|
||||||
|
|
@ -145,6 +155,8 @@ export default {
|
||||||
console.log('🚀 ~ openImgModal ~ this.row:', this.row)
|
console.log('🚀 ~ openImgModal ~ this.row:', this.row)
|
||||||
this.imgModal = true
|
this.imgModal = true
|
||||||
if (type == 1) {
|
if (type == 1) {
|
||||||
|
this.showConBtn = false
|
||||||
|
this.cancelText = '关闭'
|
||||||
this.readonly = true
|
this.readonly = true
|
||||||
this.imgModelTitle = '查看到货确认单照片'
|
this.imgModelTitle = '查看到货确认单照片'
|
||||||
this.imgList = item.fileList
|
this.imgList = item.fileList
|
||||||
|
|
@ -153,6 +165,8 @@ export default {
|
||||||
})
|
})
|
||||||
console.log('🚀 ~ openImgModal ~ this.imgList', this.imgList)
|
console.log('🚀 ~ openImgModal ~ this.imgList', this.imgList)
|
||||||
} else {
|
} else {
|
||||||
|
this.showConBtn = true
|
||||||
|
this.cancelText = '取消'
|
||||||
this.readonly = false
|
this.readonly = false
|
||||||
this.imgModelTitle = '上传到货确认单照片'
|
this.imgModelTitle = '上传到货确认单照片'
|
||||||
this.imgList = []
|
this.imgList = []
|
||||||
|
|
@ -241,7 +255,7 @@ export default {
|
||||||
isDetail: true,
|
isDetail: true,
|
||||||
// 到货
|
// 到货
|
||||||
isArrival: true,
|
isArrival: true,
|
||||||
active: 1,
|
active: 1
|
||||||
}
|
}
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/sendACarSystem/details?params=${JSON.stringify(params)}`
|
url: `/pages/sendACarSystem/details?params=${JSON.stringify(params)}`
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,9 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- 空状态 -->
|
||||||
|
<u-empty v-if="tableList.length == 0" mode="data"></u-empty>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue