This commit is contained in:
parent
4b36343dde
commit
e457e335c9
|
|
@ -176,3 +176,36 @@ export const pickingInfo = (params) => {
|
||||||
data: params
|
data: params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//(业务)查询随行单照片集合
|
||||||
|
export const querySxdList = (params) => {
|
||||||
|
return request({
|
||||||
|
url: `${uni.getStorageSync('serverUrl')}/api/pad/invoicing/querySxdList`,
|
||||||
|
method: 'get',
|
||||||
|
data: params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
//(业务)查询随行单照片集合
|
||||||
|
export const addSxd = (params) => {
|
||||||
|
return request({
|
||||||
|
url: `${uni.getStorageSync('serverUrl')}/api/pad/invoicing/addSxd`,
|
||||||
|
method: 'post',
|
||||||
|
data: params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export const queryJhzpList = (params) => {
|
||||||
|
return request({
|
||||||
|
url: `${uni.getStorageSync('serverUrl')}/api/pad/invoicing/queryJhzpList`,
|
||||||
|
method: 'get',
|
||||||
|
data: params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// (业务)采购单拣货记录
|
||||||
|
export const queryPickingRecordList = (params) => {
|
||||||
|
return request({
|
||||||
|
url: `${uni.getStorageSync('serverUrl')}/api/pad/invoicing/queryPickingRecordList`,
|
||||||
|
method: 'get',
|
||||||
|
data: params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,7 @@
|
||||||
z-index: 21;
|
z-index: 21;
|
||||||
padding: 0 10%;
|
padding: 0 10%;
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
|
border: 1px solid #999;
|
||||||
}
|
}
|
||||||
.zhezhao {
|
.zhezhao {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|
|
||||||
|
|
@ -333,20 +333,21 @@
|
||||||
采购单号:
|
采购单号:
|
||||||
</text>
|
</text>
|
||||||
<text class="photowall-right">
|
<text class="photowall-right">
|
||||||
10120251024012
|
{{plsbuy[lefttarget]?.cgdNo}}
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="photowall-other">
|
<scroll-view scroll-y="true" class="photowall-other" scroll-with-animation v-if="topbuttontarget==0">
|
||||||
<view class="photowall-other-one" v-for="(item,index) in [1,1,1,1,1]" :key="index">
|
<view class="photowall-other-one" v-for="(item,index) in jhdanarr" :key="index" @click="previewImage(item,index,jhdanarr,2)">
|
||||||
<image style="width: 100%;height: 70%;" src="/static/ceshiyaoshan.png" />
|
<image style="width: 100%;height: 70%;border-radius: 30rpx;"
|
||||||
|
:src="item.jhPic?serverUrl + item.jhPic:'/static/ceshiyaoshan.png'" mode="aspectFill" :lazy-load="true"/>
|
||||||
<view style="margin-top: 20rpx;">
|
<view style="margin-top: 20rpx;">
|
||||||
<text style="color: #888888;">
|
<text style="color: #888888;">
|
||||||
上传时间:
|
上传时间:
|
||||||
</text>
|
</text>
|
||||||
<text style="margin-left: 15rpx;">
|
<text style="margin-left: 15rpx;">
|
||||||
2025.10.11 10:12:56
|
{{item.createTime}}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
<view style="margin-top: 10rpx;">
|
<view style="margin-top: 10rpx;">
|
||||||
|
|
@ -354,13 +355,37 @@
|
||||||
上传人:
|
上传人:
|
||||||
</text>
|
</text>
|
||||||
<text>
|
<text>
|
||||||
赵晓璇
|
{{item.createBy}}
|
||||||
|
</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</scroll-view>
|
||||||
|
<scroll-view scroll-y="true" class="photowall-other" scroll-with-animation v-if="topbuttontarget==1">
|
||||||
|
<view class="photowall-other-one" v-for="(item,index) in suixingdanarr" :key="index" @click="previewImage(item,index,suixingdanarr,1)">
|
||||||
|
<image style="width: 100%;height: 70%;border-radius: 30rpx;"
|
||||||
|
:src="item.sxdPic?serverUrl + item.sxdPic:'/static/ceshiyaoshan.png'" mode="aspectFill"/>
|
||||||
|
<view style="margin-top: 20rpx;">
|
||||||
|
<text style="color: #888888;">
|
||||||
|
上传时间:
|
||||||
|
</text>
|
||||||
|
<text style="margin-left: 15rpx;">
|
||||||
|
{{item.createTime}}
|
||||||
|
</text>
|
||||||
|
</view>
|
||||||
|
<view style="margin-top: 10rpx;">
|
||||||
|
<text style="color: #888888;letter-spacing: 8.9rpx;">
|
||||||
|
上传人:
|
||||||
|
</text>
|
||||||
|
<text>
|
||||||
|
{{item.createBy}}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="photowall-other-one" v-if="topbuttontarget==1">
|
<view class="photowall-other-one" v-if="topbuttontarget==1">
|
||||||
<view
|
<view
|
||||||
style="width: 100%;height: 70%;display: flex;flex-direction: column;justify-content: center;align-items: center;background-color:#fafdff ;border: 1rpx solid #78B1EB;border-radius: 30rpx;"
|
style="width: 100%;height: 70%;display: flex;flex-direction: column;
|
||||||
|
justify-content: center;align-items: center;position: absolute;top:3vw;left: 0;
|
||||||
|
background-color:#fafdff ;border: 1rpx solid #78B1EB;border-radius: 30rpx;"
|
||||||
@click="uplod(1)"
|
@click="uplod(1)"
|
||||||
>
|
>
|
||||||
<image style="width: 70rpx;height: 70rpx;margin-bottom: 5rpx;"
|
<image style="width: 70rpx;height: 70rpx;margin-bottom: 5rpx;"
|
||||||
|
|
@ -370,8 +395,12 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
|
||||||
|
|
||||||
|
|
||||||
<view class="contain-left">
|
<view class="contain-left">
|
||||||
<view class="left-select-more" v-show="openselect">
|
<view class="left-select-more" v-show="openselect">
|
||||||
<view class="more-bottom">
|
<view class="more-bottom">
|
||||||
|
|
@ -907,7 +936,7 @@
|
||||||
<view class="right-bottom" v-show="typechange==1" style="padding: 0 50rpx;flex-direction: column;">
|
<view class="right-bottom" v-show="typechange==1" style="padding: 0 50rpx;flex-direction: column;">
|
||||||
<view style="width: 100%;display: flex;justify-content: space-between;margin-top: 20rpx;">
|
<view style="width: 100%;display: flex;justify-content: space-between;margin-top: 20rpx;">
|
||||||
<view style="font-size: 35rpx;font-weight: 600;margin-left: 20rpx;">
|
<view style="font-size: 35rpx;font-weight: 600;margin-left: 20rpx;">
|
||||||
留置针敷贴(医用...
|
{{showvalue.wlName}}
|
||||||
</view>
|
</view>
|
||||||
<view style="color: black;">
|
<view style="color: black;">
|
||||||
<text style="color: #888888;">
|
<text style="color: #888888;">
|
||||||
|
|
@ -915,31 +944,31 @@
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
<text style="font-weight: 600;">
|
<text style="font-weight: 600;">
|
||||||
100
|
{{showvalue.purchaseQuantity}}
|
||||||
</text>
|
</text>
|
||||||
|
{{showvalue.wlUnits}}
|
||||||
片
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="width: 110%;height: 400rpx;display: flex;flex-wrap: wrap;">
|
<scroll-view style="width: 110%;height: 400rpx;display: flex;flex-wrap: wrap;" scroll-y="true"
|
||||||
|
scroll-with-animation @scrolltolower="lhjlfy()">
|
||||||
<view
|
<view
|
||||||
style="width: 45%;height: 180rpx;background-color: #F9F9F9;border-radius: 30rpx;margin-right: 2%;margin-top: 20rpx;padding: 0 30rpx;color: #888888;"
|
style=" display: inline-block;width: 45%;height: 180rpx;background-color: #F9F9F9;border-radius: 30rpx;margin-right: 2%;margin-top: 20rpx;padding: 0 30rpx;color: #888888;"
|
||||||
v-for="(item,index) in [1,1,1,1]" :key="index">
|
v-for="(item,index) in lhjlarr" :key="index">
|
||||||
<view
|
<view
|
||||||
style="width: 100%;justify-content: space-between;display: flex;align-items: center;height: 60rpx;margin-top: 20rpx;">
|
style="width: 100%;justify-content: space-between;display: flex;align-items: center;height: 60rpx;margin-top: 20rpx;">
|
||||||
<view class="">
|
<view class="">
|
||||||
拣货数量:
|
拣货数量:
|
||||||
<text style="font-weight: 600;color: black;">
|
<text style="font-weight: 600;color: black;">
|
||||||
20
|
{{item.crkNum}}
|
||||||
</text>
|
</text>
|
||||||
<text style="color: black;">
|
<text style="color: black;">
|
||||||
片
|
{{showvalue.wlUnits}}
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
style="width: 110rpx;height: 50rpx;border-radius: 30rpx;display: flex;justify-content: center;align-items: center;border: 1rpx solid #C3C3C3;background-color: #f1f1f1;color: #888888;margin-top: -10rpx;">
|
style="width: 110rpx;height: 50rpx;border-radius: 30rpx;display: flex;justify-content: center;align-items: center;border: 1rpx solid #C3C3C3;background-color: #f1f1f1;color: #888888;margin-top: -10rpx;">
|
||||||
{{ index?`销账`:`入库` }}
|
{{ item.crkStatus_dictText}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="width: 100%;justify-content: space-between;display: flex;">
|
<view style="width: 100%;justify-content: space-between;display: flex;">
|
||||||
|
|
@ -947,14 +976,14 @@
|
||||||
采购单价:
|
采购单价:
|
||||||
|
|
||||||
<text style="font-weight: 600;color: black;">
|
<text style="font-weight: 600;color: black;">
|
||||||
¥1.50
|
¥{{item.oldPrice}}
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="">
|
<view class="">
|
||||||
拣货人:
|
拣货人:
|
||||||
<text style="color: black;">
|
<text style="color: black;">
|
||||||
梁嘉豪
|
{{item.createBy}}
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -962,26 +991,27 @@
|
||||||
<view style="width: 100%;justify-content: space-between;display: flex;margin-top: 10rpx;">
|
<view style="width: 100%;justify-content: space-between;display: flex;margin-top: 10rpx;">
|
||||||
<view class="">
|
<view class="">
|
||||||
到货单价:
|
到货单价:
|
||||||
|
|
||||||
<text style="font-weight: 600;color: black;">
|
<text style="font-weight: 600;color: black;">
|
||||||
¥1.50
|
¥{{item.newPrice}}
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="">
|
<view class="">
|
||||||
2025.10.03 10:10:30
|
{{item.createTime}}
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
style="width: 100%;display: flex;justify-content: center;color: #C3C3C3;margin-top: 20rpx;">
|
style="width: 100%;display: flex;justify-content: center;color: #C3C3C3;margin-top: 20rpx;">
|
||||||
<image
|
<image v-if="statustory=='loading'"
|
||||||
style="width: 25rpx;height: 25rpx;margin-right: 10rpx;margin-top: 5rpx;margin-left: -10rpx;"
|
style="width: 25rpx;height: 25rpx;margin-right: 10rpx;margin-top: 5rpx;margin-left: -10rpx;"
|
||||||
src="/static/index/warehouse/procurement/picking/loading.png" />
|
src="/static/index/warehouse/procurement/picking/loading.png" />
|
||||||
点击加载更多
|
<text v-if="statustory=='loading'">上划加载更多</text>
|
||||||
</view>
|
<text v-if="statustory=='nomore'">已加载全部~</text>
|
||||||
|
<text v-if="statustory=='loadmore'">加载中~</text>
|
||||||
</view>
|
</view>
|
||||||
|
</scroll-view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -1055,12 +1085,13 @@
|
||||||
|
|
||||||
<view class="mengban" v-if="open==1"> </view>
|
<view class="mengban" v-if="open==1"> </view>
|
||||||
<equiment :open="open==1" @del="del()" @back="open = 0" :content="'是否删除此图片?'"></equiment>
|
<equiment :open="open==1" @del="del()" @back="open = 0" :content="'是否删除此图片?'"></equiment>
|
||||||
|
<equiment :open="open==2" @del="sctp(1)" @back="open = 0" :content="'是否销账此物料?'"></equiment>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted, reactive, onBeforeUnmount, computed, nextTick, defineProps, onUnmounted } from 'vue';
|
import { ref, onMounted, reactive, onBeforeUnmount, computed, nextTick, defineProps, onUnmounted } from 'vue';
|
||||||
import { queryInvoicingList, getCgdMaterialTreeData, queryNuInfoByNuId, updateKfstatus, queryCgdList, queryCgdInfoList, queryWlInfoByWlId, voidedCgdMain, getCgrLis, getGysList, upload, editPrice, pickingInfo } from './api/lunpan.js'
|
import { queryPickingRecordList,queryJhzpList,addSxd,querySxdList,queryInvoicingList, getCgdMaterialTreeData, queryNuInfoByNuId, updateKfstatus, queryCgdList, queryCgdInfoList, queryWlInfoByWlId, voidedCgdMain, getCgrLis, getGysList, upload, editPrice, pickingInfo } from './api/lunpan.js'
|
||||||
import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app"
|
import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app"
|
||||||
import calendar from '@/component/public/calendar.vue'
|
import calendar from '@/component/public/calendar.vue'
|
||||||
import superpicker from '@/component/public/superpicker.vue'
|
import superpicker from '@/component/public/superpicker.vue'
|
||||||
|
|
@ -1443,7 +1474,9 @@
|
||||||
showvalue.value.jianhuobtn = true;
|
showvalue.value.jianhuobtn = true;
|
||||||
}
|
}
|
||||||
Object.assign(form, mobanform)
|
Object.assign(form, mobanform)
|
||||||
|
lhjpageNo.value = 1;
|
||||||
|
lhjlarr.value = [];
|
||||||
|
lhjilu()
|
||||||
}
|
}
|
||||||
const InvoicingList = ref([])
|
const InvoicingList = ref([])
|
||||||
const queryInvo = (index : number) => {
|
const queryInvo = (index : number) => {
|
||||||
|
|
@ -1452,6 +1485,26 @@
|
||||||
clickmiddle(index);
|
clickmiddle(index);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
const lhjlarr = ref([])
|
||||||
|
const lhjpageNo = ref(1)
|
||||||
|
const statustory = ref('loading')
|
||||||
|
const lhjilu = () =>{
|
||||||
|
let obj = {
|
||||||
|
cgdId:showvalue.value.cgdId,
|
||||||
|
wlId:showvalue.value.wlId,
|
||||||
|
pageNo: lhjpageNo.value,
|
||||||
|
pageSize: 10,
|
||||||
|
}
|
||||||
|
queryPickingRecordList(obj).then(res=>{
|
||||||
|
lhjlarr.value.push(...res.result.records)
|
||||||
|
statustory.value = (res.result.total == lhjlarr.value.length || res.result.records.length==0 ? 'nomore' : 'loadmore')
|
||||||
|
})
|
||||||
|
}
|
||||||
|
const lhjlfy =()=>{
|
||||||
|
if(statustory.value == 'nomore' ){return}
|
||||||
|
lhjpageNo.value++;
|
||||||
|
lhjilu()
|
||||||
|
}
|
||||||
const search = () => {
|
const search = () => {
|
||||||
// if (!plzinfo.cgdParamInfo) return
|
// if (!plzinfo.cgdParamInfo) return
|
||||||
plzinfo.pageNo = 1;
|
plzinfo.pageNo = 1;
|
||||||
|
|
@ -1545,13 +1598,69 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const donghuaopo = ref(false)
|
const donghuaopo = ref(false)
|
||||||
|
const suixingdanarr = ref([])
|
||||||
|
const jhdanarr = ref([])
|
||||||
|
|
||||||
const donghuastart = (index : number) => {
|
const donghuastart = (index : number) => {
|
||||||
|
if(index==1){
|
||||||
|
sxdarr()
|
||||||
|
}else{
|
||||||
|
JhzpList()
|
||||||
|
}
|
||||||
|
|
||||||
topbuttontarget.value = index;
|
topbuttontarget.value = index;
|
||||||
donghuaopo.value = false;
|
donghuaopo.value = false;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
donghuaopo.value = true;
|
donghuaopo.value = true;
|
||||||
}, 100)
|
}, 100)
|
||||||
}
|
}
|
||||||
|
const Jhz = ref(1)
|
||||||
|
const JhzpList =()=>{
|
||||||
|
let obj = {
|
||||||
|
cgdId:plsbuy.value[lefttarget.value].id,
|
||||||
|
}
|
||||||
|
queryJhzpList(obj).then(res=>{
|
||||||
|
jhdanarr.value=res.result
|
||||||
|
})
|
||||||
|
}
|
||||||
|
const sxdarr = ()=>{
|
||||||
|
let obj = {
|
||||||
|
cgdId:plsbuy.value[lefttarget.value].id,
|
||||||
|
pageNo:1,
|
||||||
|
pageSize:-1
|
||||||
|
}
|
||||||
|
querySxdList(obj).then(res=>{
|
||||||
|
console.log(res.result.records)
|
||||||
|
suixingdanarr.value = res.result.records
|
||||||
|
})
|
||||||
|
}
|
||||||
|
const sxdupld = (e)=>{
|
||||||
|
let now = new Date();
|
||||||
|
let year = now.getFullYear();
|
||||||
|
let month = now.getMonth() + 1;
|
||||||
|
uni.uploadFile({
|
||||||
|
url: uni.getStorageSync('serverUrl') + '/sys/common/upload',
|
||||||
|
filePath: e,
|
||||||
|
name: 'file',
|
||||||
|
formData: {
|
||||||
|
biz: 'sxdPic/'+year+'/'+month
|
||||||
|
},
|
||||||
|
header: {
|
||||||
|
'X-Access-Token': uni.getStorageSync('token')
|
||||||
|
},
|
||||||
|
success: res => {
|
||||||
|
const data = JSON.parse(res.data)
|
||||||
|
addSxd({sxdPic:data.message,cgdId:plsbuy.value[lefttarget.value].id}).then(resd=>{
|
||||||
|
if(resd.success){
|
||||||
|
sxdarr()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
fail: () => {
|
||||||
|
uni.showToast({ title: '上传失败', icon: 'none' })
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
// 上传
|
// 上传
|
||||||
const albumlist = ref([])
|
const albumlist = ref([])
|
||||||
const uplod = (type:number) => {
|
const uplod = (type:number) => {
|
||||||
|
|
@ -1568,7 +1677,8 @@
|
||||||
if(!type){
|
if(!type){
|
||||||
albumlist.value.push(res.tempFilePath)
|
albumlist.value.push(res.tempFilePath)
|
||||||
}else if(type==1){
|
}else if(type==1){
|
||||||
console.log("成功!")
|
sxdupld(res.tempFilePath)
|
||||||
|
console.log(res.tempFilePath)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -1577,12 +1687,46 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// 预览
|
// 预览
|
||||||
const previewImage = (v, i, arr) => {
|
const previewImage = (v, i, arr ,n) => {
|
||||||
|
if(n==1){
|
||||||
|
let u = []
|
||||||
|
arr.forEach(e=>{
|
||||||
|
u.push(serverUrl.value+e.sxdPic)
|
||||||
|
})
|
||||||
uni.previewImage({
|
uni.previewImage({
|
||||||
current: i,
|
current: i,
|
||||||
urls: arr
|
urls: u,
|
||||||
|
showmenu:false,
|
||||||
|
longPressActions: {
|
||||||
|
itemList: [],
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
else if(n==2){
|
||||||
|
let u = []
|
||||||
|
arr.forEach(e=>{
|
||||||
|
u.push(serverUrl.value+e.jhPic)
|
||||||
|
})
|
||||||
|
uni.previewImage({
|
||||||
|
current: i,
|
||||||
|
urls: u,
|
||||||
|
showmenu:false,
|
||||||
|
longPressActions: {
|
||||||
|
itemList: [],
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
uni.previewImage({
|
||||||
|
current: i,
|
||||||
|
urls: arr,
|
||||||
|
showmenu:false,
|
||||||
|
longPressActions: {
|
||||||
|
itemList: [],
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
// 删除1个
|
// 删除1个
|
||||||
const deldex = ref(-1)
|
const deldex = ref(-1)
|
||||||
const del = () => {
|
const del = () => {
|
||||||
|
|
@ -1663,7 +1807,7 @@
|
||||||
let obj = {
|
let obj = {
|
||||||
jhId: showvalue.value.id,
|
jhId: showvalue.value.id,
|
||||||
jhNum: showvalue.value.num,
|
jhNum: showvalue.value.num,
|
||||||
jhType: xdex.value,
|
jhType: e,
|
||||||
jhPic: str == '' ? null : str,
|
jhPic: str == '' ? null : str,
|
||||||
cgdId: showvalue.value.cgdId
|
cgdId: showvalue.value.cgdId
|
||||||
}
|
}
|
||||||
|
|
@ -1680,20 +1824,22 @@
|
||||||
queryInvo(middletarget.value)
|
queryInvo(middletarget.value)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const xdex = ref(-1)
|
|
||||||
const addupimg = ref([])
|
const addupimg = ref([])
|
||||||
const sctp = (e : number ) => {
|
const sctp = (e : number ) => {
|
||||||
if (albumlist.value.length == 0 ) {
|
if (albumlist.value.length == 0 ) {
|
||||||
fag(e)
|
fag(e)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
let now = new Date();
|
||||||
|
let year = now.getFullYear();
|
||||||
|
let month = now.getMonth() + 1;
|
||||||
albumlist.value.forEach(item => {
|
albumlist.value.forEach(item => {
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: uni.getStorageSync('serverUrl') + '/sys/common/upload',
|
url: uni.getStorageSync('serverUrl') + '/sys/common/upload',
|
||||||
filePath: item,
|
filePath: item,
|
||||||
name: 'file',
|
name: 'file',
|
||||||
formData: {
|
formData: {
|
||||||
biz: 'jhPic'
|
biz: 'jhPic/'+year+'/'+month
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
'X-Access-Token': uni.getStorageSync('token')
|
'X-Access-Token': uni.getStorageSync('token')
|
||||||
|
|
@ -1715,7 +1861,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const config = (e) => {
|
const config = (e) => {
|
||||||
xdex.value = e;
|
|
||||||
if (e == 1) {
|
if (e == 1) {
|
||||||
open.value = 2;
|
open.value = 2;
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -2982,16 +3127,18 @@
|
||||||
|
|
||||||
.photowall-other {
|
.photowall-other {
|
||||||
width: 110%;
|
width: 110%;
|
||||||
|
height:67vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
|
||||||
margin-top: 40rpx;
|
margin-top: 40rpx;
|
||||||
|
|
||||||
.photowall-other-one {
|
.photowall-other-one {
|
||||||
width: 28.5%;
|
width: 28.5%;
|
||||||
height: 400rpx;
|
height: 400rpx;
|
||||||
margin-right: 3%;
|
margin-right:3vw;
|
||||||
margin-bottom: 3%;
|
margin-bottom: 3%;
|
||||||
border-radius: 30rpx;
|
border-radius: 30rpx;
|
||||||
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
// background-color: red;
|
// background-color: red;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue