Browse Source

修改库存余额

wms3.0_pda
聂喜婷 1 year ago
parent
commit
69913f06c2
  1. 21
      mycomponents/balance/moveStatus.vue
  2. 13
      mycomponents/status/status.vue
  3. 4
      pages/inventoryMove/coms/comMovebalance.vue

21
mycomponents/balance/moveStatus.vue

@ -1,14 +1,18 @@
<template> <template>
<view class="uni-inline-item" style="font-size: 30rpx;"> <view class="uni-row uni-flex center" style="font-size: 30rpx;">
<view :class="statusStyle(fromInventoryStatus)"> <!-- <view :class="statusStyle(fromInventoryStatus)">
{{statusDesc(fromInventoryStatus)}} {{statusDesc(fromInventoryStatus)}}
</view> </view> -->
> <status :status='fromInventoryStatus'></status>
<view :class="statusStyle(toInventoryStatus)"> <text style="color:#909399 ; ">
>
</text>
<status :status='toInventoryStatus'></status>
<!-- <view :class="statusStyle(toInventoryStatus)">
{{statusDesc(toInventoryStatus)}} {{statusDesc(toInventoryStatus)}}
</view> </view> -->
</view> </view>
</template> </template>
@ -18,8 +22,11 @@
getInventoryStatusStyle, getInventoryStatusStyle,
getInventoryStatusName getInventoryStatusName
} from '@/common/directory.js'; } from '@/common/directory.js';
import status from '@/mycomponents/status/status.vue'
export default { export default {
components: {}, components: {
status
},
data() { data() {
return { return {

13
mycomponents/status/status.vue

@ -2,6 +2,9 @@
<view class="center" style="margin: 5rpx;"> <view class="center" style="margin: 5rpx;">
<view :class="statusStyle(status)"> <view :class="statusStyle(status)">
<text v-if="showDesc" >
{{statusDesc(status)}}
</text>
</view> </view>
</view> </view>
</template> </template>
@ -9,6 +12,7 @@
<script> <script>
import { import {
getInventoryStatusStyle, getInventoryStatusStyle,
getInventoryStatusName
} from '@/common/directory.js'; } from '@/common/directory.js';
export default { export default {
data() { data() {
@ -22,11 +26,18 @@
type: String, type: String,
default: "1" default: "1"
}, },
showDesc: {
type: Boolean,
default: false
},
}, },
methods: { methods: {
statusStyle: function(val) { statusStyle: function(val) {
return getInventoryStatusStyle(val); return getInventoryStatusStyle(val);
}, },
statusDesc(value) {
return getInventoryStatusName(value)
}
} }
} }
</script> </script>

4
pages/inventoryMove/coms/comMovebalance.vue

@ -15,12 +15,12 @@
<compare-qty v-else :dataContent="dataContent" :recommendQty="dataContent.qty" <compare-qty v-else :dataContent="dataContent" :recommendQty="dataContent.qty"
:handleQty="dataContent.record.qty" :isShowStdPack="isShowStdPack"> :handleQty="dataContent.record.qty" :isShowStdPack="isShowStdPack">
</compare-qty> </compare-qty>
<moveStatus v-if="dataContent.inventoryStatus!=dataContent.toInventoryStatus" <moveStatus v-if="dataContent.inventoryStatus!=dataContent.toInventoryStatus"
:fromInventoryStatus="fromInventoryStatus" :toInventoryStatus="toInventoryStatus"> :fromInventoryStatus="fromInventoryStatus" :toInventoryStatus="toInventoryStatus">
</moveStatus> </moveStatus>
<status :status='fromInventoryStatus'></status> <status v-else :status='fromInventoryStatus'></status>
</view> </view>
<!-- <view class="" v-if="isDevlement()"> <!-- <view class="" v-if="isDevlement()">
<view class="" style="font-size: 40rpx;"> <view class="" style="font-size: 40rpx;">

Loading…
Cancel
Save