This commit is contained in:
parent
26e304f7d6
commit
e6f48885e0
|
|
@ -2,8 +2,8 @@
|
||||||
"name" : "护理单元",
|
"name" : "护理单元",
|
||||||
"appid" : "__UNI__FB2D473",
|
"appid" : "__UNI__FB2D473",
|
||||||
"description" : "护理单元",
|
"description" : "护理单元",
|
||||||
"versionName" : "1.7.1",
|
"versionName" : "1.7.2",
|
||||||
"versionCode" : 171,
|
"versionCode" : 172,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|
|
||||||
|
|
@ -108,3 +108,12 @@ export const voidedCgdMain = (params) => {
|
||||||
data: params,
|
data: params,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//修改库房物料是否启用
|
||||||
|
export const updateWarehouserEnabled = (params) => {
|
||||||
|
return request({
|
||||||
|
url: `${uni.getStorageSync('serverUrl')}/api/pad/invoicing/updateWarehouserEnabled`,
|
||||||
|
method: 'post',
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
@ -48,11 +48,13 @@
|
||||||
<scroll-view scroll-y="true" scroll-with-animation :scroll-top="scrolltop" class="scroll-Y"
|
<scroll-view scroll-y="true" scroll-with-animation :scroll-top="scrolltop" class="scroll-Y"
|
||||||
@scrolltolower="scrolltolower" :lower-threshold="200" @scroll="scrollview">
|
@scrolltolower="scrolltolower" :lower-threshold="200" @scroll="scrollview">
|
||||||
<view class="boxitem" v-for="(v,i) in InvoicingList" :key='i'
|
<view class="boxitem" v-for="(v,i) in InvoicingList" :key='i'
|
||||||
:class="{'yujing':Number(v.lowerLimit)>=Number(v.kcsl),'active':shopitem==i}"
|
:class="{'yujing':Number(v.lowerLimit)>=Number(v.kcsl),'active':shopitem==i,'ty':v.izEnabled=='1'}"
|
||||||
@click="shopclick(i)">
|
@click="shopclick(i)">
|
||||||
<view>{{v.materialName}}</view>
|
<view>
|
||||||
<view>规格型号: {{v.specificationModel}}</view>
|
{{v.materialName}}
|
||||||
|
</view>
|
||||||
<view>采购单位: {{v.materialUnits}}</view>
|
<view>采购单位: {{v.materialUnits}}</view>
|
||||||
|
<view>规格型号: {{v.specificationModel}}</view>
|
||||||
<view>
|
<view>
|
||||||
<view class="carditem" :class="{'hl':v.tagType==1,'yl':v.tagType==2,'bj':v.tagType>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"
|
<image src="/static/index/warehouse/procurement/hl.png" mode="aspectFill"
|
||||||
|
|
@ -228,9 +230,11 @@
|
||||||
<view class="rightcont">
|
<view class="rightcont">
|
||||||
<view>
|
<view>
|
||||||
<text>{{caigouobj.materialName}}</text>
|
<text>{{caigouobj.materialName}}</text>
|
||||||
<view class="swsh guodu" :class="shyp?'act':''" @click="switchshyp">
|
<view class="swsh guodu" :class="caigouobj.izEnabled=='0'?'act':''" @click="caiswitchshyp(caigouobj.izEnabled,caigouobj.id)">
|
||||||
<view class="guodu"></view>
|
<view class="guodu"></view>
|
||||||
</view>
|
</view>
|
||||||
|
<view style="margin-left: 5rpx;white-space: nowrap;">{{caigouobj.izEnabled_dictText}}</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<view>物料编码: {{caigouobj.materialNo}}</view>
|
<view>物料编码: {{caigouobj.materialNo}}</view>
|
||||||
|
|
@ -340,7 +344,17 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="mengban" v-if="wlxq" @click="qingkong"></view>
|
<view class="mengban" v-if="wlxq" @click="qingkong"></view>
|
||||||
<view class="wuliao guodu" :class="wlxq?'':'uncrkcard'">
|
<view class="wuliao guodu" :class="wlxq?'':'uncrkcard'">
|
||||||
<view class="name">{{wuliaoobj.materialName}}</view>
|
<view class="name">
|
||||||
|
<view>{{wuliaoobj.materialName}}</view>
|
||||||
|
<view>
|
||||||
|
<view class="swsh guodu" :class="caigouobj.izEnabled=='0'?'act':''"
|
||||||
|
@click="caiswitchshyp(caigouobj.izEnabled,caigouobj.id)">
|
||||||
|
<view class="guodu"></view>
|
||||||
|
</view>
|
||||||
|
<text>{{caigouobj.izEnabled_dictText}}</text>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="znk tp">
|
<view class="znk tp">
|
||||||
<image class="crkcard-img"
|
<image class="crkcard-img"
|
||||||
:src="wuliaoobj.materialImg?serverUrl + wuliaoobj.materialImg : '/static/index/warehouse/procurement/k.png'"
|
:src="wuliaoobj.materialImg?serverUrl + wuliaoobj.materialImg : '/static/index/warehouse/procurement/k.png'"
|
||||||
|
|
@ -389,7 +403,7 @@
|
||||||
|
|
||||||
<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,queryWlInfoByWlId,addShoppingCartList,queryShoppingCartList } from './api/lunpan.js'
|
import { queryInvoicingList,updateWarehouserEnabled, getMaterialTreeData, queryNuInfoByNuId, updateKfstatus,queryWlInfoByWlId,addShoppingCartList,queryShoppingCartList } from './api/lunpan.js'
|
||||||
import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app"
|
import { onShow, onLoad, onHide, onPageScroll } from "@dcloudio/uni-app"
|
||||||
import shadowview from './components/ShadowView.vue';
|
import shadowview from './components/ShadowView.vue';
|
||||||
import calculator from './components/calculator.vue';
|
import calculator from './components/calculator.vue';
|
||||||
|
|
@ -443,6 +457,23 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
const caiswitchshyp = (code:string,id:string,s:string) =>{
|
||||||
|
let obj = {
|
||||||
|
id:id,
|
||||||
|
izEnabled: code=='0' ? '1' : '0'
|
||||||
|
}
|
||||||
|
updateWarehouserEnabled(obj).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
caigouobj.value.izEnabled = (code=='0' ? '1' : '0');
|
||||||
|
caigouobj.value.izEnabled_dictText = (code =='0' ? '停用' : '启用');
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'error',
|
||||||
|
title: res.message
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
const shopclick = (i : number, k : number) => {
|
const shopclick = (i : number, k : number) => {
|
||||||
if (k == 2) {
|
if (k == 2) {
|
||||||
let num = Math.ceil((i + 1) / 2)
|
let num = Math.ceil((i + 1) / 2)
|
||||||
|
|
@ -709,6 +740,16 @@
|
||||||
gysarr.value = [];
|
gysarr.value = [];
|
||||||
caigouobj.value = InvoicingList.value[shopitem.value];
|
caigouobj.value = InvoicingList.value[shopitem.value];
|
||||||
caigouobj.value.Limitnum = Number(caigouobj.value?.upperLimit)-Number(caigouobj.value.kcsl);
|
caigouobj.value.Limitnum = Number(caigouobj.value?.upperLimit)-Number(caigouobj.value.kcsl);
|
||||||
|
if(shyp.value==false){
|
||||||
|
uni.showToast({
|
||||||
|
icon:'none',
|
||||||
|
title:'该仓库已关闭,无法采购~'
|
||||||
|
})
|
||||||
|
setTimeout(()=>{
|
||||||
|
anmidex.value = -1;
|
||||||
|
},1000)
|
||||||
|
return
|
||||||
|
}
|
||||||
let n = [];
|
let n = [];
|
||||||
let id = [];
|
let id = [];
|
||||||
n = caigouobj.value.suppliers_dictText.split(/[, ]+/);
|
n = caigouobj.value.suppliers_dictText.split(/[, ]+/);
|
||||||
|
|
@ -725,8 +766,9 @@
|
||||||
anmidex.value = -1;
|
anmidex.value = -1;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
|
caigouobj.value = InvoicingList.value[shopitem.value];
|
||||||
let obj = {
|
let obj = {
|
||||||
wlId:InvoicingList.value[shopitem.value].wlId,
|
wlId:caigouobj.value.wlId,
|
||||||
nuId:form.nuId
|
nuId:form.nuId
|
||||||
}
|
}
|
||||||
queryWlInfoByWlId(obj).then(res=>{
|
queryWlInfoByWlId(obj).then(res=>{
|
||||||
|
|
@ -757,6 +799,13 @@
|
||||||
const timers = ref(true)
|
const timers = ref(true)
|
||||||
const connfig = () =>{
|
const connfig = () =>{
|
||||||
if(timers.value==false){return}
|
if(timers.value==false){return}
|
||||||
|
if(caigouobj.value.izEnabled=='1'){
|
||||||
|
uni.showToast({
|
||||||
|
icon:'none',
|
||||||
|
title:'该物料已关闭,无法采购~'
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
timers.value=false;
|
timers.value=false;
|
||||||
let dt = {
|
let dt = {
|
||||||
nuId:form.nuId,
|
nuId:form.nuId,
|
||||||
|
|
@ -967,11 +1016,29 @@
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-weight: bold;
|
|
||||||
font-size: 1.4vw;
|
|
||||||
color: #212327;
|
|
||||||
height: 3vw;
|
height: 3vw;
|
||||||
line-height: 1.5vw;
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
view{
|
||||||
|
>&:nth-child(1){
|
||||||
|
width: 80%;
|
||||||
|
height: 3vw;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1.4vw;
|
||||||
|
color: #212327;
|
||||||
|
line-height: 1.5vw;
|
||||||
|
}
|
||||||
|
>&:nth-child(2){
|
||||||
|
width: 20%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
text{
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1953,7 +2020,7 @@
|
||||||
background: rgba(255, 255, 255, .7);
|
background: rgba(255, 255, 255, .7);
|
||||||
border-radius: 1.6vw;
|
border-radius: 1.6vw;
|
||||||
margin: 0 1.3vw 1.2vw 0;
|
margin: 0 1.3vw 1.2vw 0;
|
||||||
border: 2px dashed #fff;
|
border: 2px solid #fff;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 2.3vw;
|
padding: 2.3vw;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
@ -1976,13 +2043,16 @@
|
||||||
|
|
||||||
|
|
||||||
&:nth-child(1) {
|
&:nth-child(1) {
|
||||||
font-weight: bold;
|
|
||||||
font-size: 1.5vw;
|
|
||||||
color: #333;
|
color: #333;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
width: 100%;
|
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1.5vw;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&:nth-child(2) {
|
&:nth-child(2) {
|
||||||
|
|
@ -2084,10 +2154,18 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.ty{
|
||||||
|
background: #e8e9ed !important;
|
||||||
|
border: 2px solid #f5f5f5;
|
||||||
|
view{
|
||||||
|
color: #666666 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.active {
|
.active {
|
||||||
border: 2px dashed #017DE9 !important;
|
border: 2px dashed #017DE9 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.swsh {
|
.swsh {
|
||||||
width: 2.7vw;
|
width: 2.7vw;
|
||||||
height: 1.5vw;
|
height: 1.5vw;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue