tapd相关修改更新
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<view class="viewrecordsTop" v-if="datas.countList">
|
||||
<view style="padding:32rpx 16rpx;">
|
||||
<view @tap="getInOutType('in')">
|
||||
增加数量 <text
|
||||
增加数量 <text
|
||||
style="color: #76ACF0;font-weight: bold;">{{datas.countList.inSumTotal?datas.countList.inSumTotal:'0'}}</text>
|
||||
</view>
|
||||
<view class="df viewdf">
|
||||
@@ -27,7 +27,7 @@
|
||||
</view>
|
||||
<view style="padding:32rpx 16rpx;">
|
||||
<view class="" @tap="getInOutType('out')">
|
||||
减少数量 <text
|
||||
减少数量 <text
|
||||
style="color: #52BDA4;font-weight: bold;">{{datas.countList.outSumTotal?datas.countList.outSumTotal:0}}</text>
|
||||
</view>
|
||||
<view class="df viewdf">
|
||||
@@ -78,7 +78,7 @@
|
||||
</view>
|
||||
<view class="">
|
||||
<view :style="{color:item.inOutType=='in'?'#1bca72':'red'}" style="font-weight: 400;">
|
||||
{{ item.inOutType == 'in' ? '+' : '-' }}{{ item.inOutNumber|0 }}
|
||||
{{ item.inOutType == 'in' ? '+' : '' }}{{ item.inOutNumber|0 }}
|
||||
</view>
|
||||
<view style="font-size: 24rpx;color: #666666;">
|
||||
变动库存
|
||||
@@ -91,24 +91,20 @@
|
||||
|
||||
<script setup>
|
||||
import { onMounted, reactive, ref, computed, getCurrentInstance } from 'vue';
|
||||
import { onLoad } from '@dcloudio/uni-app';
|
||||
import color from '@/commons/color.js';
|
||||
import { stockFlow,consStatistics } from '@/http/api/cons.js';
|
||||
|
||||
let props = defineProps({
|
||||
item: {
|
||||
type: String
|
||||
}
|
||||
})
|
||||
|
||||
let datas = reactive({
|
||||
list: [],
|
||||
countList: {},
|
||||
inOutType: '',
|
||||
inOutItem: '',
|
||||
item: null,
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
let items = JSON.parse(props.item)
|
||||
onLoad((options) => {
|
||||
datas.item = JSON.parse(options.item)
|
||||
getlist()
|
||||
})
|
||||
|
||||
@@ -135,10 +131,9 @@
|
||||
* 获取数据
|
||||
*/
|
||||
function getlist (conTypeId = "", start, end, ) {
|
||||
let ids = JSON.parse(props.item)
|
||||
// 列表
|
||||
stockFlow({
|
||||
conId: ids.id,
|
||||
conId: datas.item.id,
|
||||
inOutType: datas.inOutType,
|
||||
inOutItem: datas.inOutItem
|
||||
}).then(res => {
|
||||
@@ -146,7 +141,7 @@
|
||||
})
|
||||
// 顶部数据
|
||||
consStatistics({
|
||||
conId: ids.id,
|
||||
id: datas.item.id,
|
||||
}).then(res => {
|
||||
datas.countList = res
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user