代码更新

This commit is contained in:
GaoHao
2025-03-10 09:14:57 +08:00
parent 4f65b08c06
commit 490c513f48
48 changed files with 1162 additions and 537 deletions

View File

@@ -47,20 +47,10 @@
</template>
<script setup>
import {
computed,
ref,
reactive,
onMounted,
watch
} from 'vue';
import {
$uploadFile
} from '@/http/yskApi/file.js'
// import { consumableBreakage , productBreakage } from '@/http/yskApi/breakage.js'
import {
tbConsInfoFlowfrmLoss
} from '@/http/yskApi/requestAll.js';
import { ref, reactive, onMounted, watch } from 'vue';
import { uploadFile } from '@/api/index.js'
import { stockReportDamage } from '@/api/cons.js';
const props = defineProps({
show: {
type: Boolean,
@@ -156,9 +146,9 @@
success: (res) => {
let file = res.tempFiles[0];
console.log(res)
$uploadFile(file).then(res => {
uploadFile(file).then(res => {
console.log(res);
vdata.imgUrlList.push(res.data[0])
vdata.imgUrlList.push(res)
}).catch(res => {
console.log(res);
@@ -184,11 +174,10 @@
function affirm() {
let params = {
coverImg: vdata.imgUrlList,
consId: consId.value,
amount: vdata.stockNumber,
shopId: uni.getStorageSync("shopId"),
conId: consId.value,
number: vdata.stockNumber,
}
tbConsInfoFlowfrmLoss(params).then((res) => {
stockReportDamage(params).then((res) => {
show.value = false;
vdata.imgUrlList = [];
vdata.stockNumber = 1;

View File

@@ -27,20 +27,12 @@
</view>
<view>
<view>
<view style="color: #333333;">
{{item.conUnit}}
</view>
<view>
耗材单位
</view>
<view style="color: #333333;"> {{item.conUnit}} </view>
<view> 耗材单位 </view>
</view>
<view>
<view style="color: #318AFE;">
{{item.stockNumber}}
</view>
<view>
剩余库存
</view>
<view style="color: #318AFE;"> {{item.stockNumber}} </view>
<view> 剩余库存 </view>
</view>
</view>
<view>
@@ -89,26 +81,13 @@
</template>
<script setup>
import { onShow } from '@dcloudio/uni-app'
import { ref, reactive, computed } from 'vue';
import myActionSheet from './components/my-action-sheet';
import myReportDamage from './components/my-reportDamage';
import color from '@/commons/color.js';
import {
ref,
reactive,
computed
} from 'vue';
import {
onShow
} from '@dcloudio/uni-app'
import go from '@/commons/utils/go.js';
import {
hasPermission
} from '@/commons/utils/hasPermission.js';
import {
viewConInfoFlowget,
tbConsType,
tbConsTypeList
} from '@/http/yskApi/requestAll.js';
import { hasPermission } from '@/commons/utils/hasPermission.js';
import { getConsPage,getConsGrpupList } from '@/api/cons.js';
let reportDamage = ref(null)
@@ -193,12 +172,14 @@
}
}
/**
* 报损确认
*/
function affirm() {
uni.showToast({
title:'操作成功',
icon:'none'
})
getList()
// 获取分类列表
gettbConsTypeList()