Browse Source

修改库存余额

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

13
mycomponents/status/status.vue

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

4
pages/inventoryMove/coms/comMovebalance.vue

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

Loading…
Cancel
Save