This commit is contained in:
binbin_pan 2025-01-20 10:03:06 +08:00
parent eec42076e8
commit 6dd3c9d393
2 changed files with 19 additions and 2 deletions

View File

@ -51,7 +51,15 @@
</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">
<uni-file-picker
v-model="imgList"
@ -86,6 +94,8 @@ export default {
isLoading: false,
actionUrl: config.baseUrl + '/gz_car' + config.uploadFileUrlGzCar,
token: uni.getStorageSync('App-Token'),
cancelText: '取消',
showConBtn: true,
row: {},
imgModal: false,
readonly: false,
@ -145,6 +155,8 @@ export default {
console.log('🚀 ~ openImgModal ~ this.row:', this.row)
this.imgModal = true
if (type == 1) {
this.showConBtn = false
this.cancelText = '关闭'
this.readonly = true
this.imgModelTitle = '查看到货确认单照片'
this.imgList = item.fileList
@ -153,6 +165,8 @@ export default {
})
console.log('🚀 ~ openImgModal ~ this.imgList', this.imgList)
} else {
this.showConBtn = true
this.cancelText = '取消'
this.readonly = false
this.imgModelTitle = '上传到货确认单照片'
this.imgList = []
@ -241,7 +255,7 @@ export default {
isDetail: true,
//
isArrival: true,
active: 1,
active: 1
}
uni.navigateTo({
url: `/pages/sendACarSystem/details?params=${JSON.stringify(params)}`

View File

@ -27,6 +27,9 @@
</div>
</div>
</div>
<!-- 空状态 -->
<u-empty v-if="tableList.length == 0" mode="data"></u-empty>
</div>
</div>
</template>