报损新增
This commit is contained in:
@@ -71,12 +71,14 @@
|
||||
</view>
|
||||
|
||||
<my-action-sheet @itemClick="sheetClick" ref="refMoreSheet" :list="actionSheet.list"></my-action-sheet>
|
||||
<my-reportDamage ref="reportDamage" :item="report.data" @affirm="affirm"></my-reportDamage>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import color from '@/commons/color.js';
|
||||
import myEmpty from '../components/empty.vue';
|
||||
import productItem from './components/product-item.vue';
|
||||
import myReportDamage from '@/components/my-components/my-reportDamage';
|
||||
import myButton from '@/components/my-components/my-button';
|
||||
import myActionSheet from '@/components/my-components/my-action-sheet';
|
||||
import {$getStockOperate} from '@/http/yskApi/invoicing.js'
|
||||
@@ -85,7 +87,7 @@
|
||||
onReady,
|
||||
onShow,
|
||||
onPageScroll,
|
||||
onPullDownRefresh
|
||||
onPullDownRefresh,
|
||||
} from '@dcloudio/uni-app';
|
||||
import go from '@/commons/utils/go.js'
|
||||
import {
|
||||
@@ -101,8 +103,25 @@
|
||||
}
|
||||
let refMoreSheet = ref(null)
|
||||
const actionSheet = reactive({
|
||||
list: ['编辑', '清点', '入库', '出库', '删除']
|
||||
list: ['报损', '编辑', '清点', '入库', '出库', '删除'],
|
||||
})
|
||||
|
||||
let reportDamage = ref(null)
|
||||
const report = reactive({
|
||||
data: {
|
||||
thumbnail: 'https://cashier-oss.oss-cn-beijing.aliyuncs.com/upload/20240918/a17a62b7b55a4b65a2a2542050672b34.png',
|
||||
name: "美式咖啡",
|
||||
title: "商品报损",
|
||||
unit: "杯",
|
||||
},
|
||||
})
|
||||
/**
|
||||
* 报损确认
|
||||
*/
|
||||
function affirm () {
|
||||
console.log(2)
|
||||
}
|
||||
|
||||
|
||||
function moreShow() {
|
||||
console.log(refMoreSheet.value);
|
||||
@@ -110,6 +129,15 @@
|
||||
}
|
||||
function sheetClick(index){
|
||||
console.log(index);
|
||||
// 报损
|
||||
switch (index){
|
||||
case 0:
|
||||
//打开报损弹窗
|
||||
reportDamage.value.open();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
const product = reactive({
|
||||
list: new Array(1).fill(1)
|
||||
|
||||
Reference in New Issue
Block a user