Browse Source

修改显示样式

hella_online_20240829
niexiting 4 months ago
parent
commit
9d0fcc427d
  1. 20
      src/common/style/new_style.css
  2. 5
      src/mycomponents/item/itemCompareQty.vue
  3. 4
      src/mycomponents/job/jobComMainDetailCard.vue
  4. 14
      src/mycomponents/qty/recommendQty.vue

20
src/common/style/new_style.css

@ -2082,19 +2082,19 @@ button::after {
.card_packing_code { .card_packing_code {
color: #3315EB; color: #3315EB;
padding: 5px; padding: 5px;
font-size: 35rpx; font-size: 30rpx;
} }
.card_batch { .card_batch {
color: #9747FF; color: #9747FF;
padding: 5px; padding: 5px;
font-size: 35rpx; font-size: 30rpx;
} }
.card_container { .card_container {
color: #0076F6; color: #0076F6;
padding: 5px; padding: 5px;
font-size: 35rpx; font-size: 30rpx;
} }
@ -2118,13 +2118,13 @@ button::after {
.card_location { .card_location {
color: #DA8910; color: #DA8910;
padding: 5px; padding: 5px;
font-size: 35rpx; font-size: 30rpx;
} }
.card_to_location { .card_to_location {
color: #329362; color: #329362;
padding: 5px; padding: 5px;
font-size: 35rpx; font-size: 30rpx;
} }
.card_location_content { .card_location_content {
@ -2480,9 +2480,17 @@ button[disabled] {
.text_recommend { .text_recommend {
color: #0A84FF; color: #0A84FF;
font-size: 38rpx; font-size: 34rpx;
font-weight: bold;
} }
.text_packQty {
color: #3315EB;
font-size: 40rpx;
font-weight: bold;
}
.text_balance { .text_balance {
font-size: 36rpx; font-size: 36rpx;
} }

5
src/mycomponents/item/itemCompareQty.vue

@ -3,9 +3,10 @@
<view> <view>
<item :dataContent="dataContent"></item> <item :dataContent="dataContent"></item>
</view> </view>
<view style="width: 30%;display: flex;justify-content:flex-end;margin-right: 10rpx;"> <view style="width: 40%;display: flex;justify-content:flex-end;margin-right: 10rpx;">
<recommend-qty v-if="handleQty==0" :dataContent="dataContent" :isShowStatus="false" :isShowStdPack="true" <recommend-qty v-if="handleQty==0" :dataContent="dataContent" :isShowStatus="false" :isShowStdPack="true"
:objTextStyle='objTextStyle'></recommend-qty> ></recommend-qty>
<!-- :objTextStyle='objTextStyle' -->
<compare-qty v-else :dataContent="dataContent" :recommendQty="Number(dataContent.qty)" <compare-qty v-else :dataContent="dataContent" :recommendQty="Number(dataContent.qty)"
:handleQty="Number(handleQty)" :isShowStatus="false" :isShowPackUnit="isShowPackUnit"> :handleQty="Number(handleQty)" :isShowStatus="false" :isShowPackUnit="isShowPackUnit">
</compare-qty> </compare-qty>

4
src/mycomponents/job/jobComMainDetailCard.vue

@ -3,9 +3,9 @@
<view class="task_text" style="border-top: 1px solid #dedede;padding-top: 20rpx;margin-top: 20rpx;"> <view class="task_text" style="border-top: 1px solid #dedede;padding-top: 20rpx;margin-top: 20rpx;">
<!-- 主子表拆分没有数量了 --> <!-- 主子表拆分没有数量了 -->
<itemCompareQty :dataContent="dataContent" :handleQty="dataContent.handleQty" :isShowPackUnit="false" <itemCompareQty :dataContent="dataContent" :handleQty="dataContent.handleQty" :isShowPackUnit="false"
:objTextStyle="{'fontWeight':'bold','fontSize':'40rpx'}"></itemCompareQty> ></itemCompareQty>
<!-- :objTextStyle="{'fontWeight':'bold','fontSize':'40rpx'}" -->
<div class="u-p-l-10"> <div class="u-p-l-10">
<pack v-if="isShowPack && dataContent.packingNumber!=null" :packingCode="dataContent.packingNumber"> <pack v-if="isShowPack && dataContent.packingNumber!=null" :packingCode="dataContent.packingNumber">
</pack> </pack>
<batch v-if="isShowBatch && dataContent.batch!=null" :batch="dataContent.batch"></batch> <batch v-if="isShowBatch && dataContent.batch!=null" :batch="dataContent.batch"></batch>

14
src/mycomponents/qty/recommendQty.vue

@ -3,16 +3,20 @@
<status v-if="isShowStatus" :status='dataContent.inventoryStatus'></status> <status v-if="isShowStatus" :status='dataContent.inventoryStatus'></status>
<view class="uni-flex uni-row center"> <view class="uni-flex uni-row center">
<view class="text_recommend " :style='objTextStyle'> <view class="text_recommend ">
{{Number(dataContent.qty)}} {{Number(dataContent.qty)}}
</view> </view>
<!-- /{{Number(dataContent.packQty)}} --> <!-- /{{Number(dataContent.packQty)}} -->
<!-- v-show="!isShowStdPack" --> <!-- v-show="!isShowStdPack" -->
<uom :uom="dataContent.uom"></uom> <uom :uom="dataContent.uom"></uom>
<view v-if="dataContent.packQty!=undefined" class="uni-flex uni-row ">
<view class="uom">/</view>
<view class="text_packQty">{{ calc(dataContent.qty,dataContent.packQty)}}
</view>
</view>
</view> </view>
<view> <view>
<!-- {{dataContent}} -->
<pack-unit :dataContent="dataContent"></pack-unit> <pack-unit :dataContent="dataContent"></pack-unit>
<!-- <std-pack-qty v-show="isShowStdPack" :dataContent="dataContent"></std-pack-qty> --> <!-- <std-pack-qty v-show="isShowStdPack" :dataContent="dataContent"></std-pack-qty> -->
</view> </view>
@ -66,7 +70,7 @@
type: Boolean, type: Boolean,
default: true default: true
}, },
objTextStyle:{ objTextStyle: {
type: Object, type: Object,
default: null default: null
} }
@ -75,7 +79,9 @@
}, },
methods: { methods: {
calc(qty, packQty) {
return Math.ceil(Number(qty) / Number(packQty));
}
}, },
} }
</script> </script>

Loading…
Cancel
Save