This commit is contained in:
parent
a228498d19
commit
74a0ba2e5f
|
|
@ -2,8 +2,8 @@
|
||||||
"name" : "护理单元",
|
"name" : "护理单元",
|
||||||
"appid" : "__UNI__FB2D473",
|
"appid" : "__UNI__FB2D473",
|
||||||
"description" : "护理单元",
|
"description" : "护理单元",
|
||||||
"versionName" : "1.6.6",
|
"versionName" : "1.6.7",
|
||||||
"versionCode" : 166,
|
"versionCode" : 167,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,35 @@
|
||||||
|
// 引入 request 文件
|
||||||
|
import request from '@/request/guanli.js'
|
||||||
|
|
||||||
|
// 查询仓库对应物料
|
||||||
|
export const queryInvoicingList = (params) => {
|
||||||
|
return request({
|
||||||
|
url: `${uni.getStorageSync('serverUrl')}/api/pad/invoicing/queryInvoicingList`,
|
||||||
|
method: 'get',
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const getMaterialTreeData = () => {
|
||||||
|
return request({
|
||||||
|
url: `${uni.getStorageSync('serverUrl')}/api/pad/invoicing/getMaterialTreeData`,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export const queryNuInfoByNuId = (params) => {
|
||||||
|
return request({
|
||||||
|
url: `${uni.getStorageSync('serverUrl')}/api/pad/invoicing/queryNuInfoByNuId`,
|
||||||
|
method: 'get',
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 修改库房启用停用
|
||||||
|
|
||||||
|
export const updateKfstatus = (params) => {
|
||||||
|
return request({
|
||||||
|
url: `${uni.getStorageSync('serverUrl')}/api/pad/invoicing/updateKfstatus`,
|
||||||
|
method: 'post',
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,42 @@
|
||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
<view class="shadow guodu" :class="opacity?'heig':''" ></view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
opacity: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false, // 初始不显示阴影
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less">
|
||||||
|
.shadow {
|
||||||
|
width: 100%;
|
||||||
|
height: 0;
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
bottom: 0vw;
|
||||||
|
border-radius: 50%;
|
||||||
|
filter: blur(15rpx);
|
||||||
|
background: linear-gradient(to top, RGBA(239, 240, 244, 1), RGBA(239, 240, 244, .1)); /* 根据需要调整 */
|
||||||
|
}
|
||||||
|
.guodu{
|
||||||
|
transition: .4s;
|
||||||
|
-webkit-transform-style: preserve-3d;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
}
|
||||||
|
.heig{
|
||||||
|
height: 16vw !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
@ -2,33 +2,70 @@
|
||||||
<view>
|
<view>
|
||||||
<!-- 采购 -->
|
<!-- 采购 -->
|
||||||
<view class="box">
|
<view class="box">
|
||||||
<view class="lefts">
|
<view class="leftr" v-if="shyp">
|
||||||
<scroll-view scroll-y="true" scroll-with-animation :scroll-top="scrolltop" class="scroll-Y" @scrolltoupper="upper" @scrolltolower="lower" @scroll="scroll">
|
<scroll-view scroll-y="true" scroll-with-animation :scroll-top="scrolltop" class="scroll-Y" @scrolltolower="scrolltolower" :lower-threshold="400" @scroll="scrollview">
|
||||||
<view class="boxitem" v-for="(v,i) in 66" :key='i' :class="{'yujing':i==1,'active':i==0}">
|
<view class="boxibigtem" v-for="(v,i) in InvoicingList" :key='i'
|
||||||
<view>纸尿裤-拉拉裤纸尿裤-拉拉裤</view>
|
:class="{'yujing':Number(v.lowerLimit)>=Number(v.kcsl),'active':shopitem==i}" @click="shopclick(i,2)">
|
||||||
<view>规格型号: 800mm*680mm</view>
|
<view>{{v.materialName}}</view>
|
||||||
<view>采购单位: 片</view>
|
<view>规格型号: {{v.specificationModel}}</view>
|
||||||
|
<view>采购单位: {{v.materialUnits}}</view>
|
||||||
<view>
|
<view>
|
||||||
<view class="carditem" :class="{'hl':i==0,'yl':i==1,'bj':i>=2}">
|
<view class="carditem" :class="{'hl':v.tagType==1,'yl':v.tagType==2,'bj':v.tagType>2}">
|
||||||
<image src="/static/index/warehouse/procurement/hl.png" mode="aspectFill" v-if="i==0"></image>
|
<image src="/static/index/warehouse/procurement/hl.png" mode="aspectFill" v-if="v.tagType==1"></image>
|
||||||
<image src="/static/index/warehouse/procurement/yl.png" mode="aspectFill" v-if="i==1"></image>
|
<image src="/static/index/warehouse/procurement/yl.png" mode="aspectFill" v-if="v.tagType==2"></image>
|
||||||
<image src="/static/index/warehouse/procurement/bj.png" mode="aspectFill" v-if="i>=2"></image>
|
<image src="/static/index/warehouse/procurement/bj.png" mode="aspectFill" v-if="v.tagType>2"></image>
|
||||||
保洁
|
{{v.tagName}}
|
||||||
</view>
|
</view>
|
||||||
<view class="znk">
|
<view class="znk">
|
||||||
<image src="/static/index/warehouse/procurement/znk.png" mode="aspectFill"></image>
|
<image :src="v.materialImg?serverUrl + v.materialImg : '/static/index/warehouse/procurement/k.png'" mode="aspectFill"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="num">
|
<view class="num">
|
||||||
<view>500</view>
|
<view>{{v.kcsl}}</view>
|
||||||
<view>库存数量</view>
|
<view>库存数量</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="height: 23vw;"></view>
|
<view style="height: 23vw;width: 100%;padding:10vw 40vw ;">
|
||||||
|
<u-loadmore :status="status" />
|
||||||
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
|
<shadowview :opacity="opacity" ></shadowview>
|
||||||
<view class="mblbg"> </view>
|
<view class="mblbg"> </view>
|
||||||
<view class="fxj">
|
<view class="fxj">
|
||||||
<arrowkeys @movecard="movecard" :getblue="getblue" :moveleft="45" rightbuttonname="扫描"/>
|
<arrowkeys @movecard="movecard($event,1)" :getblue="getblue" :moveleft="45" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="lefts" v-if="!shyp">
|
||||||
|
<scroll-view scroll-y="true" scroll-with-animation :scroll-top="scrolltop" class="scroll-Y" @scrolltolower="scrolltolower" :lower-threshold="200" @scroll="scrollview">
|
||||||
|
<view class="boxitem" v-for="(v,i) in InvoicingList" :key='i' :class="{'yujing':Number(v.lowerLimit)>=Number(v.kcsl),'active':shopitem==i}" @click="shopclick(i)">
|
||||||
|
<view>{{v.materialName}}</view>
|
||||||
|
<view>规格型号: {{v.specificationModel}}</view>
|
||||||
|
<view>采购单位: {{v.materialUnits}}</view>
|
||||||
|
<view>
|
||||||
|
<view class="carditem" :class="{'hl':v.tagType==1,'yl':v.tagType==2,'bj':v.tagType>2}">
|
||||||
|
<image src="/static/index/warehouse/procurement/hl.png" mode="aspectFill" v-if="v.tagType==1"></image>
|
||||||
|
<image src="/static/index/warehouse/procurement/yl.png" mode="aspectFill" v-if="v.tagType==2"></image>
|
||||||
|
<image src="/static/index/warehouse/procurement/bj.png" mode="aspectFill" v-if="v.tagType>2"></image>
|
||||||
|
{{v.tagName}}
|
||||||
|
</view>
|
||||||
|
<view class="znk">
|
||||||
|
<image :src="v.materialImg?serverUrl + v.materialImg : '/static/index/warehouse/procurement/k.png'" mode="aspectFill"></image>
|
||||||
|
</view>
|
||||||
|
<view class="num">
|
||||||
|
<view>{{v.kcsl}}</view>
|
||||||
|
<view>库存数量</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view style="height: 23vw;width: 100%;padding:10vw 40vw ;">
|
||||||
|
<u-loadmore :status="status" />
|
||||||
|
</view>
|
||||||
|
</scroll-view>
|
||||||
|
<shadowview :opacity="opacity" ></shadowview>
|
||||||
|
<view class="mblbg"> </view>
|
||||||
|
<view class="fxj">
|
||||||
|
<arrowkeys @movecard="movecard" :getblue="getblue" :moveleft="45" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="rights">
|
<view class="rights">
|
||||||
|
|
@ -41,20 +78,20 @@
|
||||||
<view class="guodu"></view>
|
<view class="guodu"></view>
|
||||||
</view>
|
</view>
|
||||||
<text>
|
<text>
|
||||||
{{shyp?'启用':'停用'}}
|
{{!shyp?'两列':'三列'}}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="jqry">
|
<view class="jqry">
|
||||||
<view class="left tp">
|
<view class="left tp">
|
||||||
<image src="/static/index/warehouse/procurement/jqr.png" mode="aspectFill"></image>
|
<image :src="cellobj?.fzrHeadPath?serverUrl + cellobj?.fzrHeadPath:'/static/index/warehouse/procurement/jqr.png'" mode="aspectFill"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="rigname">
|
<view class="rigname">
|
||||||
<view>李树奎</view>
|
<view>{{cellobj?.fzr}}</view>
|
||||||
<view>
|
<view>
|
||||||
<text>男</text>
|
<!-- <text>男</text>
|
||||||
<text>50岁</text>
|
<text>50岁</text> -->
|
||||||
<text>13358863266</text>
|
<text>{{cellobj?.fzrTel?cellobj?.fzrTel:'-'}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -67,29 +104,28 @@
|
||||||
<view class="scroltype">
|
<view class="scroltype">
|
||||||
<scroll-view scroll-y="true" scroll-with-animation
|
<scroll-view scroll-y="true" scroll-with-animation
|
||||||
:scroll-top="scroll.scrolltop3" class="scroll-Y" >
|
:scroll-top="scroll.scrolltop3" class="scroll-Y" >
|
||||||
<view :class="scroll.act3==i?'act':''" v-for="(v,i) in ['活血化瘀止痛类','通络止痛类']" @click="typescroll(3,i)">
|
<view :class="scroll.act3==i?'act':''" v-for="(v,i) in TreeData[scroll.act1]?.children[scroll.act2]?.children"
|
||||||
{{v}}
|
@click="typescroll(3,i,v)">
|
||||||
|
{{v.title}}
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
|
|
||||||
<scroll-view scroll-y="true" scroll-with-animation
|
<scroll-view scroll-y="true" scroll-with-animation
|
||||||
:scroll-top="scroll.scrolltop2" class="scroll-Y" >
|
:scroll-top="scroll.scrolltop2" class="scroll-Y" >
|
||||||
<view :class="scroll.act2==i?'act':''" v-for="(v,i) in ['液体制剂','中药制剂','中医辩证']" @click="typescroll(2,i)">
|
<view :class="scroll.act2==i?'act':''" v-for="(v,i) in TreeData[scroll.act1]?.children" @click="typescroll(2,i,v)">
|
||||||
{{v}}
|
{{v.title}}
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
|
|
||||||
<scroll-view scroll-y="true" scroll-with-animation
|
<scroll-view scroll-y="true" scroll-with-animation
|
||||||
:scroll-top="scroll.scrolltop1" class="scroll-Y">
|
:scroll-top="scroll.scrolltop1" class="scroll-Y scrl1">
|
||||||
<view :class="scroll.act1==i?'act':''"
|
<view :class="scroll.act1==i?'act':''"
|
||||||
v-for="(v,i) in
|
v-for="(v,i) in TreeData"
|
||||||
['中医中药','生活用品','医疗用品','医疗器械','耗材用品','食材用品','生活用品',
|
@click="typescroll(1,i,v)">
|
||||||
'中医中药','生活用品','医疗用品','医疗器械','耗材用品','食材用品','生活用品']"
|
<image :src="serverUrl + v.appCheckIconPath" mode="aspectFill" v-if="scroll.act1==i"></image>
|
||||||
@click="typescroll(1,i)">
|
<image :src="serverUrl + v.appIconPath" mode="aspectFill" v-else></image>
|
||||||
<image src="/static/index/warehouse/procurement/Purchase/Purchase09.png" mode="aspectFill" v-if="scroll.act1==i"></image>
|
|
||||||
<image src="/static/index/warehouse/procurement/Purchase/Purchase01.png" mode="aspectFill" v-else></image>
|
|
||||||
<text>
|
<text>
|
||||||
{{v}}
|
{{v.title}}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
|
|
@ -99,7 +135,7 @@
|
||||||
<view v-for="(v,i) in animArray" :key="i" @click="admiclick(i)">
|
<view v-for="(v,i) in animArray" :key="i" @click="admiclick(i)">
|
||||||
<view>
|
<view>
|
||||||
<image :src="v.imgurl" mode="aspectFill" v-if="anmidex!=i"></image>
|
<image :src="v.imgurl" mode="aspectFill" v-if="anmidex!=i"></image>
|
||||||
<donghua width="1.5vw" height="1.5vw" :links="v.url" :playing="i === anmidex"
|
<donghua width="2vw" height="2vw" :links="v.url" :playing="i === anmidex"
|
||||||
v-show="i === anmidex" class="donghua"/>
|
v-show="i === anmidex" class="donghua"/>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
@ -109,8 +145,11 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="serchs">
|
<view class="serchs">
|
||||||
<input type="text" placeholder="物料名称/物料编码/物料简拼" />
|
<view class="ipt">
|
||||||
<view>
|
<input type="text" placeholder="物料名称/物料编码/物料简拼" v-model="form.wlParamInfo"/>
|
||||||
|
<image src="/static/index/warehouse/procurement/x.png" mode="aspectFill" v-if="form.wlParamInfo" @click="search(0)"></image>
|
||||||
|
</view>
|
||||||
|
<view @click="search" class="scr">
|
||||||
检索
|
检索
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -122,49 +161,227 @@
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted, reactive,onBeforeUnmount, computed, nextTick,defineProps } from 'vue';
|
import { ref, onMounted, reactive,onBeforeUnmount, computed, nextTick,defineProps } from 'vue';
|
||||||
|
import { queryInvoicingList ,getMaterialTreeData,queryNuInfoByNuId,updateKfstatus } from './api/lunpan.js'
|
||||||
|
import { onShow, onLoad, onHide ,onPageScroll } from "@dcloudio/uni-app"
|
||||||
|
import shadowview from './components/ShadowView.vue';
|
||||||
const navurl = ref('');
|
const navurl = ref('');
|
||||||
|
const InvoicingList = ref([]);
|
||||||
|
const TreeData = ref([]);
|
||||||
|
const cellobj = ref({});
|
||||||
|
|
||||||
|
const serverUrl = ref('');
|
||||||
const scrolltop = ref(0)
|
const scrolltop = ref(0)
|
||||||
|
const shopitem = ref(0)
|
||||||
const getblue = ref(false);
|
const getblue = ref(false);
|
||||||
const shyp = ref(false);
|
const shyp = ref(false);
|
||||||
const scroll = reactive({scrolltop1:0,scrolltop2:0,scrolltop3:0,act1:0,act2:0,act3:0});
|
const opacity = ref(false);
|
||||||
|
const scrollnum = ref(0);
|
||||||
|
|
||||||
const switchshyp = ( )=>{
|
const scroll = reactive({scrolltop1:0,scrolltop2:0,scrolltop3:0,act1:-1,act2:-1,act3:-1});
|
||||||
shyp.value = shyp.value?false:true;
|
const form = reactive({
|
||||||
|
nuId:'',
|
||||||
|
pageNo:1,
|
||||||
|
pageSize:9,
|
||||||
|
categoryId:'',
|
||||||
|
typeId:'',
|
||||||
|
medicationId:'',
|
||||||
|
wlParamInfo:''
|
||||||
|
})
|
||||||
|
const switchshyp = ()=>{
|
||||||
|
let obj = {
|
||||||
|
id:cellobj.value.id,
|
||||||
|
status:shyp.value?'5':'2'
|
||||||
|
}
|
||||||
|
updateKfstatus(obj).then(res=>{
|
||||||
|
console.log(res)
|
||||||
|
if(res.success){
|
||||||
|
shyp.value = shyp.value?false:true;
|
||||||
|
cell();
|
||||||
|
}else{
|
||||||
|
uni.showToast({
|
||||||
|
icon:'error',
|
||||||
|
title:res.message
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
const typescroll = (e: number,i: number)=>{
|
const shopclick = (i:number , k:number )=>{
|
||||||
scroll['act'+e] = i;
|
if(k==2){
|
||||||
scroll['scrolltop'+e] = (i -2) * 50;
|
let num = Math.ceil((i+1)/2)
|
||||||
|
scrolltop.value = (num -2) * 270;
|
||||||
|
shopitem.value =i;
|
||||||
|
}else{
|
||||||
|
let num = Math.ceil((i+1)/3)
|
||||||
|
scrolltop.value = (num -2) * 240;
|
||||||
|
shopitem.value =i;
|
||||||
|
}
|
||||||
|
|
||||||
console.log(scroll['scrolltop'+e]);
|
|
||||||
console.log(scroll['act'+e])
|
|
||||||
}
|
}
|
||||||
const movecard = (type : number) => {
|
|
||||||
console.log(type)
|
const typescroll = (e: number,i: number,v:object)=>{
|
||||||
switch (type){
|
if(e==1){
|
||||||
case 0:
|
scroll.act2 = -1;
|
||||||
// 上
|
scroll.act3 = -1;
|
||||||
break;
|
scroll.scrolltop2 = 0;
|
||||||
case 1:
|
scroll.scrolltop3 = 0;
|
||||||
// →
|
form.categoryId = v?.categoryId;
|
||||||
break;
|
form.typeId = '';
|
||||||
case 2:
|
form.medicationId = '';
|
||||||
// 下
|
if(scroll.act1 == i){
|
||||||
break;
|
scroll.act1 = -1;
|
||||||
case 3:
|
form.categoryId = '';
|
||||||
// ←
|
form.pageNo = 1;
|
||||||
break;
|
InvoicingList.value = [];
|
||||||
case 4:
|
queryInvo();
|
||||||
// 扫描
|
return
|
||||||
|
}
|
||||||
break;
|
}
|
||||||
case 5:
|
if(e==2){
|
||||||
// 返回
|
scroll.act3 = -1;
|
||||||
uni.navigateBack()
|
scroll.scrolltop3 = 0;
|
||||||
break;
|
form.categoryId = v?.categoryId;
|
||||||
|
form.typeId = v?.typeId;
|
||||||
default:
|
form.medicationId = '';
|
||||||
break;
|
}
|
||||||
}
|
if(e==3){
|
||||||
|
form.categoryId = v?.categoryId;
|
||||||
|
form.typeId = v?.typeId;
|
||||||
|
form.medicationId = v?.key;
|
||||||
|
}
|
||||||
|
scroll['act'+e] = i;
|
||||||
|
scroll['scrolltop'+e] = (i -2) * 50;
|
||||||
|
form.pageNo = 1;
|
||||||
|
InvoicingList.value = [];
|
||||||
|
shopitem.value = 0;
|
||||||
|
queryInvo();
|
||||||
|
}
|
||||||
|
const search = (x:number)=>{
|
||||||
|
if(x===0){form.wlParamInfo = ''}
|
||||||
|
form.pageNo = 1;
|
||||||
|
InvoicingList.value = [];
|
||||||
|
queryInvo();
|
||||||
|
}
|
||||||
|
onLoad(()=>{
|
||||||
|
form.nuId = uni.getStorageSync('nuId');
|
||||||
|
serverUrl.value = uni.getStorageSync('serverUrl')+'/sys/common/static/';
|
||||||
|
getMaterial();
|
||||||
|
queryInvo();
|
||||||
|
cell();
|
||||||
|
})
|
||||||
|
const cell = ()=>{
|
||||||
|
queryNuInfoByNuId(form).then(res=>{
|
||||||
|
console.log(res.result)
|
||||||
|
cellobj.value = res.result;
|
||||||
|
shyp.value = res.result.status==5?false:true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
const getMaterial = () =>{
|
||||||
|
getMaterialTreeData().then(res=>{
|
||||||
|
TreeData.value = res.result
|
||||||
|
})
|
||||||
|
}
|
||||||
|
const setout = ref(true)
|
||||||
|
let times = null;
|
||||||
|
const status = ref('loadmore')
|
||||||
|
onPageScroll((e)=>{
|
||||||
|
console.log(e)
|
||||||
|
})
|
||||||
|
const scrolltolower = ()=>{
|
||||||
|
if(!setout){return}
|
||||||
|
status.value = 'loading'
|
||||||
|
setout.value = false;
|
||||||
|
form.pageNo++;
|
||||||
|
queryInvo()
|
||||||
|
times = setTimeout(()=>{
|
||||||
|
setout.value = true
|
||||||
|
},1000)
|
||||||
|
}
|
||||||
|
const scrollview = (e:number)=>{
|
||||||
|
if(e.detail.scrollTop>scrollnum.value){
|
||||||
|
opacity.value = true;
|
||||||
|
setTimeout(()=>{
|
||||||
|
opacity.value = false;
|
||||||
|
},900)
|
||||||
|
}else{
|
||||||
|
opacity.value = false;
|
||||||
|
}
|
||||||
|
scrollnum.value = e.detail.scrollTop;
|
||||||
|
}
|
||||||
|
const queryInvo = ()=>{
|
||||||
|
queryInvoicingList(form).then(res=>{
|
||||||
|
InvoicingList.value.push(...res.result.records);
|
||||||
|
status.value = res.result.total == InvoicingList.value.length? 'nomore':'loadmore'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
const movecard = (type : number,l:number) => {
|
||||||
|
if(l==1){
|
||||||
|
switch (type){
|
||||||
|
case 0:
|
||||||
|
// 上
|
||||||
|
shopitem.value = shopitem.value<1?shopitem.value=0:shopitem.value-2
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
// →
|
||||||
|
shopitem.value = shopitem.value>=InvoicingList.value.length-1?InvoicingList.value.length-1:shopitem.value+1
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
// 下
|
||||||
|
shopitem.value = shopitem.value>=InvoicingList.value.length-2?shopitem.value=0:shopitem.value+2
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
shopitem.value = shopitem.value==0?shopitem.value=InvoicingList.value.length-1:shopitem.value-1
|
||||||
|
// ←
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
// 扫描
|
||||||
|
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
// 返回
|
||||||
|
uni.navigateBack({
|
||||||
|
delta:1
|
||||||
|
})
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
shopclick(shopitem.value,2)
|
||||||
|
}else{
|
||||||
|
switch (type){
|
||||||
|
case 0:
|
||||||
|
// 上
|
||||||
|
shopitem.value = shopitem.value<2?shopitem.value=0:shopitem.value-3
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
// →
|
||||||
|
shopitem.value = shopitem.value>InvoicingList.value.length?shopitem.value=0:shopitem.value+1
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
// 下
|
||||||
|
shopitem.value = shopitem.value>InvoicingList.value.length?shopitem.value=0:shopitem.value+3
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
shopitem.value = shopitem.value==0?shopitem.value=InvoicingList.value.length:shopitem.value-1
|
||||||
|
// ←
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
// 扫描
|
||||||
|
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
// 返回
|
||||||
|
uni.navigateBack({
|
||||||
|
delta:1
|
||||||
|
})
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
shopclick(shopitem.value,0)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
// 通用的生成函数
|
// 通用的生成函数
|
||||||
function genPaths(base, prefix, count, ext = 'png', startIndex = 0, pad = false) {
|
function genPaths(base, prefix, count, ext = 'png', startIndex = 0, pad = false) {
|
||||||
|
|
@ -268,13 +485,13 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
padding: 0vw 2vw 0;
|
padding: 0vw 1vw 0;
|
||||||
.rights{
|
.rights{
|
||||||
width: 25vw;
|
width: 27vw;
|
||||||
height:calc(100% - 4vw);
|
height:calc(100% - 4vw);
|
||||||
margin-top: 4vw;
|
margin-top: 4vw;
|
||||||
.serchs{
|
.serchs{
|
||||||
width: 23.2vw;
|
width: 27vw;
|
||||||
height: 3.2vw;
|
height: 3.2vw;
|
||||||
background: rgba(255,255,255,.5);
|
background: rgba(255,255,255,.5);
|
||||||
border-radius: 1.6vw;
|
border-radius: 1.6vw;
|
||||||
|
|
@ -282,13 +499,24 @@
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 0.5vw;
|
padding: 0.5vw;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
input{
|
margin-top: 1.1vw;
|
||||||
width: 18vw;
|
.ipt{
|
||||||
height: 2.4vw;
|
display: flex;
|
||||||
font-size: 0.9vw;
|
align-items: center;
|
||||||
padding-left: 1.6vw;
|
image{
|
||||||
|
width: 2.2vw;
|
||||||
|
height: 2.2vw;
|
||||||
|
margin-left: 0.5vw;
|
||||||
|
}
|
||||||
|
input{
|
||||||
|
width: 18vw;
|
||||||
|
height: 2.4vw;
|
||||||
|
font-size: 1.1vw;
|
||||||
|
padding-left: 1.6vw;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
view{
|
|
||||||
|
.scr{
|
||||||
width: 4.2vw;
|
width: 4.2vw;
|
||||||
height: 2.4vw;
|
height: 2.4vw;
|
||||||
background: url('/static/index/warehouse/procurement/sh.png')no-repeat;
|
background: url('/static/index/warehouse/procurement/sh.png')no-repeat;
|
||||||
|
|
@ -311,22 +539,22 @@
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
||||||
>view{
|
>view{
|
||||||
width: 8vw;
|
width:8.5vw;
|
||||||
height: 3.2vw;
|
height: 3.7vw;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: .9vw;
|
font-size: 1.3vw;
|
||||||
color: #212327;
|
color: #212327;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
margin: .7vw 0;
|
margin: 0.25vw 0;
|
||||||
border-radius: 1.6vw;
|
border-radius: 1.6vw;
|
||||||
view{
|
view{
|
||||||
margin-right: .4vw;
|
margin-right: .4vw;
|
||||||
image{
|
image{
|
||||||
width: 1.5vw;
|
width: 2vw;
|
||||||
height: 1.5vw;
|
height: 2vw;
|
||||||
}
|
}
|
||||||
.donghua{
|
.donghua{
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
@ -334,7 +562,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
text{
|
text{
|
||||||
margin-top: 0.1vw;
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -349,15 +576,15 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
.scroll-Y{
|
.scroll-Y{
|
||||||
width: 7vw;
|
width: 8.5vw;
|
||||||
height:calc(54vh - 2vw);
|
height:calc(54vh - 2vw);
|
||||||
view{
|
view{
|
||||||
width: 7vw;
|
width: 100%;
|
||||||
height: 3.8vw;
|
height: 3.8vw;
|
||||||
background: rgba(255,255,255,.5);
|
background: rgba(255,255,255,.5);
|
||||||
border-radius: 1.9vw;
|
border-radius: 1.9vw;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: .9vw;
|
font-size: 1.3vw;
|
||||||
color: #212327;
|
color: #212327;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
@ -369,12 +596,13 @@
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
>image{
|
>image{
|
||||||
width: 1.8vw;
|
width: 2vw;
|
||||||
height: 1.8vw;
|
height: 2vw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.act{
|
.act{
|
||||||
background: rgba(255,255,255,1) !important;
|
background: rgba(255,255,255,1) !important;
|
||||||
|
font-weight: 600;
|
||||||
color: #0385FA !important;
|
color: #0385FA !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -385,26 +613,25 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
margin: .4vw 0 .4vw 0;
|
margin: .4vw 0 .4vw 0;
|
||||||
>view{
|
view{
|
||||||
width: 7vw;
|
width: 7vw;
|
||||||
height: 1.9vw;
|
height: 1.9vw;
|
||||||
background: rgba(255,255,255,.5);
|
border-radius: 1vw;
|
||||||
border-radius: .9vw;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: .9vw;
|
font-size: 1.2vw;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.shitem{
|
.shitem{
|
||||||
width: 24.0vw;
|
width: 27vw;
|
||||||
height: 10.3vw;
|
height: 10.3vw;
|
||||||
background: #E8E9ED;
|
background: #E8E9ED;
|
||||||
border-radius: 1.6vw;
|
border-radius: 1.6vw;
|
||||||
padding: 1.8vw;
|
padding:1.2vw 1.8vw;
|
||||||
.jqry{
|
.jqry{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -412,36 +639,42 @@
|
||||||
.left{
|
.left{
|
||||||
width: 5vw;
|
width: 5vw;
|
||||||
height: 5vw;
|
height: 5vw;
|
||||||
|
margin-right: .8vw;
|
||||||
|
border-radius: .3vw;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.rigname{
|
.rigname{
|
||||||
height: 3vw;
|
height: 4vw;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
&:nth-child(1){
|
view{
|
||||||
font-weight: bold;
|
&:nth-child(1){
|
||||||
font-size: 1.4vw;
|
font-weight: bold;
|
||||||
color: #212327;
|
font-size: 1.4vw;
|
||||||
}
|
color: #212327;
|
||||||
&:nth-child(2){
|
}
|
||||||
width: 11vw;
|
&:nth-child(2){
|
||||||
font-weight: 400;
|
width: 11vw;
|
||||||
font-size: 1vw;
|
font-weight: 400;
|
||||||
color: #212327;
|
font-size: 1vw;
|
||||||
display: flex;
|
color: #212327;
|
||||||
justify-content: space-between;
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.shypk{
|
.shypk{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
|
||||||
view{
|
view{
|
||||||
&:nth-child(1){
|
&:nth-child(1){
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 1.0vw;
|
font-size: 1.1vw;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
}
|
}
|
||||||
&:nth-child(2){
|
&:nth-child(2){
|
||||||
|
|
@ -450,7 +683,7 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
text{
|
text{
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: .8vw;
|
font-size: 1vw;
|
||||||
color: #666666;
|
color: #666666;
|
||||||
}
|
}
|
||||||
.guodu{
|
.guodu{
|
||||||
|
|
@ -552,20 +785,24 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
>&:nth-child(1){
|
&:nth-child(1){
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 1.3vw;
|
font-size: 1.5vw;
|
||||||
color: #212327;
|
color: #333;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
width: 100%;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
>&:nth-child(2){
|
&:nth-child(2){
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 10rpx;
|
font-size: 1.2vw;
|
||||||
color: #555555;
|
color: #555555;
|
||||||
margin-top: .9vw;
|
margin-top: .9vw;
|
||||||
}
|
}
|
||||||
>&:nth-child(3){
|
&:nth-child(3){
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 10rpx;
|
font-size: .9vw;
|
||||||
color: #666666;
|
color: #666666;
|
||||||
margin-top: .6vw;
|
margin-top: .6vw;
|
||||||
}
|
}
|
||||||
|
|
@ -583,27 +820,27 @@
|
||||||
left: 2.5vw;
|
left: 2.5vw;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
view{
|
view{
|
||||||
&:nth-child(1){
|
&:nth-child(1){
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 2.2vw;
|
font-size: 2.2vw;
|
||||||
color: #333333;
|
color: #555;
|
||||||
margin-bottom: .6vw;
|
|
||||||
}
|
}
|
||||||
&:nth-child(2){
|
&:nth-child(2){
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: .9vw;
|
font-size: 1vw;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
.znk{
|
.znk{
|
||||||
width: 12vw;
|
width: 7vw;
|
||||||
height: 11.5vw;
|
height: 6.5vw;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 1.5vw;
|
||||||
bottom: 0;
|
bottom:1vw;
|
||||||
image{
|
image{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
@ -626,10 +863,13 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.yujing{
|
|
||||||
background:rgba(255, 87, 87, 0.095);
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
.yujing{
|
||||||
border: 2px solid rgba(255, 102, 107, 0.51) !important;
|
border: 2px solid rgba(255, 102, 107, 0.51) !important;
|
||||||
box-shadow: 0 0 8px rgba(255, 102, 107, 0.51);
|
box-shadow: 0 0 8px rgba(255, 102, 107, 0.051) inset;
|
||||||
view{
|
view{
|
||||||
.num{
|
.num{
|
||||||
view{
|
view{
|
||||||
|
|
@ -644,8 +884,152 @@
|
||||||
.active{
|
.active{
|
||||||
border: 2px dashed #017DE9 !important;
|
border: 2px dashed #017DE9 !important;
|
||||||
}
|
}
|
||||||
|
// 大图
|
||||||
|
|
||||||
|
.leftr{
|
||||||
|
width: 70vw;
|
||||||
|
margin-left: 1vw;
|
||||||
|
height:calc(100%);
|
||||||
|
position: relative;
|
||||||
|
.fxj{
|
||||||
|
width: 30vw;
|
||||||
|
height: 16vw;
|
||||||
|
position: absolute;
|
||||||
|
left: 1vw;
|
||||||
|
bottom: 0vw;
|
||||||
|
z-index: 11;
|
||||||
|
border-radius: 1.6vw;
|
||||||
|
}
|
||||||
|
.mblbg{
|
||||||
|
width: 35vw;
|
||||||
|
height: 16vw;
|
||||||
|
position: absolute;
|
||||||
|
left: -1vw;
|
||||||
|
bottom: 0vw;
|
||||||
|
border-radius: 1.6vw;
|
||||||
|
filter: blur(15rpx);
|
||||||
|
background: RGBA(239, 240, 244, 1);
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
.scroll-Y{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
.boxitem{
|
||||||
|
&:nth-child(1),&:nth-child(2),&:nth-child(3){
|
||||||
|
margin-top: 4vw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.boxibigtem{
|
||||||
|
&:nth-child(1),&:nth-child(2){
|
||||||
|
margin-top: 4vw;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
.boxibigtem{
|
||||||
|
width: 33.3vw;
|
||||||
|
height: 21.7vw;
|
||||||
|
background: rgba(255,255,255,.7);
|
||||||
|
border-radius: 1.6vw;
|
||||||
|
margin: 0 1.3vw 1.2vw 0;
|
||||||
|
border: 2px dashed #fff;
|
||||||
|
display: inline-block;
|
||||||
|
padding: 2.3vw;
|
||||||
|
position: relative;
|
||||||
|
>view{
|
||||||
|
.hl{
|
||||||
|
color: #0385FA;
|
||||||
|
background: #E7F0FB;
|
||||||
|
}
|
||||||
|
.yl{
|
||||||
|
background:#DCF6F3;
|
||||||
|
color: #00C6A9;
|
||||||
|
}
|
||||||
|
.bj{
|
||||||
|
background: #E9EBFC;
|
||||||
|
color: #727BFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
&:nth-child(1){
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1.5vw;
|
||||||
|
color: #333;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
width: 100%;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
&:nth-child(2){
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 1.2vw;
|
||||||
|
color: #555555;
|
||||||
|
margin-top: .9vw;
|
||||||
|
}
|
||||||
|
&:nth-child(3){
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 1.2vw;
|
||||||
|
color: #666666;
|
||||||
|
margin-top: .6vw;
|
||||||
|
}
|
||||||
|
>&:nth-child(4){
|
||||||
|
width: 100%;
|
||||||
|
height: 10vw;
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
bottom: 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
.num{
|
||||||
|
position: absolute;
|
||||||
|
bottom: 2vw;
|
||||||
|
left: 2.5vw;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
view{
|
||||||
|
&:nth-child(1){
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 2.2vw;
|
||||||
|
color: #555;
|
||||||
|
}
|
||||||
|
&:nth-child(2){
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 1vw;
|
||||||
|
color: #999999;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
.znk{
|
||||||
|
width: 10vw;
|
||||||
|
height: 9.5vw;
|
||||||
|
position: absolute;
|
||||||
|
right: 1.5vw;
|
||||||
|
bottom:1vw;
|
||||||
|
image{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.carditem{
|
||||||
|
width: 5.8vw;
|
||||||
|
height: 2.1vw;
|
||||||
|
border-radius: 1.0vw;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: .9vw;
|
||||||
|
margin-top: .8vw;
|
||||||
|
image{
|
||||||
|
width: 1.4vw;
|
||||||
|
height: 1.4vw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 794 B |
Binary file not shown.
|
Before Width: | Height: | Size: 9.3 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 28 KiB |
Loading…
Reference in New Issue