代码更新

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;