This commit is contained in:
Teng 2025-11-20 17:13:50 +08:00
commit 41b9502fc5
3 changed files with 29 additions and 16 deletions

View File

@ -803,17 +803,19 @@
<view class="right-bottom" v-show="!typechange"> <view class="right-bottom" v-show="!typechange">
<view class="right-bottom-left"> <view class="right-bottom-left">
<image class="left-img" <image class="left-img"
:src="showvalue?.materialImg?serverUrl + showvalue?.materialImg : '/static/zhiniaoku.png'" :src="showvalue?.materialImg?serverUrl + showvalue?.materialImg : '/static/index/warehouse/procurement/k.png'"
mode="aspectFill"></image> mode="aspectFill"></image>
<view class="left-tags"> <view class="left-tags">
<view class="tags-one" v-if="showvalue.categoryId_dictText"> <view class="tags-one" v-if="showvalue.categoryId_dictText">
{{showvalue.categoryId_dictText}} {{showvalue.categoryId_dictText}}
</view> </view>
<view class="tags-one" v-if="showvalue.typeId_dictText">{{showvalue.typeId_dictText}}</view> <view class="tags-one" v-if="showvalue.typeId_dictText">
<!-- <view class="tags-one" v-if="showvalue.medicationId_dictText"> {{showvalue.typeId_dictText}}
</view>
<view class="tags-one" v-if="showvalue.medicationId_dictText">
{{showvalue.medicationId_dictText}} {{showvalue.medicationId_dictText}}
</view> --> </view>
</view> </view>
</view> </view>
<view class="right-bottom-right"> <view class="right-bottom-right">
@ -1474,7 +1476,7 @@
} }
const tagsArray = [`待入库`, `挂账中`, `已入库`, `已销账`,] const tagsArray = [`待入库`, `挂账中`, `已入库`, `已销账`,]
const clickmiddle = (index : number) => { const clickmiddle = (index : number) => {
// console.log(showvalue.value) console.log(showvalue.value)
middletarget.value = index; middletarget.value = index;
showvalue.value = InvoicingList.value[index]; showvalue.value = InvoicingList.value[index];
showvalue.value.jianhuobtn = false; showvalue.value.jianhuobtn = false;
@ -2606,6 +2608,7 @@
height: 100%; height: 100%;
width: 30%; width: 30%;
padding-left: 30rpx; padding-left: 30rpx;
padding-top: 30rpx;
.left-img { .left-img {
width: 250rpx; width: 250rpx;

View File

@ -182,7 +182,8 @@
cgdwflag.value = false; cgdwflag.value = false;
type.value = {}; type.value = {};
sx.value = false; sx.value = false;
gysidnum.value = 0 gysidnum.value = 0;
isZero.value = false;
} }
}) })
const jssl=()=>{ const jssl=()=>{
@ -216,7 +217,7 @@
const calculatorArray = [1, 2, 3, 4, 5, 6, 7, 8, 9, "AC", 0, "AE"]; const calculatorArray = [1, 2, 3, 4, 5, 6, 7, 8, 9, "AC", 0, "AE"];
const stringShow = ref("0000"); const stringShow = ref("0000");
const relNumber = ref(0); const relNumber = ref(0);
// const isZero = ref(false); const isZero = ref(false);
const clickKuai = (item : any, index : number) => { const clickKuai = (item : any, index : number) => {
blueNumber.value = index; blueNumber.value = index;
setTimeout(() => { setTimeout(() => {
@ -234,7 +235,13 @@
cy() cy()
return return
} }
if(isZero.value == false){
isZero.value = true;
relNumber.value = item;
stringShow.value = toFixed4ByPadStart(relNumber.value);
cy()
return
}
if (digitCountByString(relNumber.value) > 3) { if (digitCountByString(relNumber.value) > 3) {
} else { } else {

View File

@ -123,7 +123,7 @@
<view class="" :style="Number(v.status)>1?{color: `#1083F8`}:{}"> <view class="" :style="Number(v.status)>1?{color: `#1083F8`}:{}">
完结 完结
</view> </view>
<view style="font-size: 25rpx;" v-if="Number(v.status)>0 && v.jhBy"> <view style="font-size: 25rpx;" v-if="Number(v.status)>0 && v.wjBy ">
{{ "[ " + v.wjBy + " ]" }} {{ "[ " + v.wjBy + " ]" }}
</view> </view>
</view> </view>
@ -504,7 +504,7 @@
const form = reactive({ const form = reactive({
nuId: uni.getStorageSync('nuId'), nuId: uni.getStorageSync('nuId'),
pageNo: 1, pageNo: 1,
pageSize: 9, pageSize: -1,
categoryId: '', categoryId: '',
typeId: '', typeId: '',
medicationId: '', medicationId: '',
@ -529,12 +529,12 @@
middletarget.value = index; middletarget.value = index;
showvalue.value = InvoicingList.value[index]; showvalue.value = InvoicingList.value[index];
Object.assign(form, mobanform) Object.assign(form, mobanform)
form.pageSize = -1;
} }
const InvoicingList = ref([]) const InvoicingList = ref([])
const queryInvo = () => { const queryInvo = () => {
queryCgdInfoList(form).then(res => { queryCgdInfoList(form).then(res => {
// console.log(res.result.records) console.log(res.result.records,form)
InvoicingList.value = []; InvoicingList.value = [];
InvoicingList.value.push(...res.result.records); InvoicingList.value.push(...res.result.records);
clickmiddle(middletarget.value); clickmiddle(middletarget.value);
@ -935,6 +935,7 @@
.middle-img { .middle-img {
width: 150rpx; width: 150rpx;
height: 150rpx; height: 150rpx;
margin: 0.3vw 0 0 0.15vw;
} }
.middle-right { .middle-right {
@ -1002,11 +1003,13 @@
.right-bottom-left { .right-bottom-left {
height: 100%; height: 100%;
width: 30%; width: 30%;
padding-left: 30rpx; padding-left: 55rpx;
.left-img { .left-img {
width: 300rpx; width: 270rpx;
height: 300rpx; height: 270rpx;
margin-left: 2vw;
margin-top: 5vw;
} }
.left-tags { .left-tags {