代码更新
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user