店铺详情收款码下载处理,耗材报损增加
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
<uni-icons type="right" size="16" color="#000"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
<text class="u-font-28 color-666" @click="reportDamage">报损</text>
|
||||
<text class="u-font-28 color-666" @click="changeClick">修改</text>
|
||||
</view>
|
||||
|
||||
@@ -89,7 +90,7 @@
|
||||
import {
|
||||
ColorMain
|
||||
} from '@/commons/color.js'
|
||||
const emits = defineEmits(['radioClick', 'changeClick', 'xiajia','del'])
|
||||
const emits = defineEmits(['radioClick', 'reportDamage','changeClick', 'xiajia','del'])
|
||||
const props = defineProps({
|
||||
index: {
|
||||
type: Number
|
||||
@@ -142,7 +143,10 @@
|
||||
function changeClick() {
|
||||
emits('changeClick', props.index)
|
||||
}
|
||||
|
||||
|
||||
function reportDamage () {
|
||||
emits('reportDamage', props.index)
|
||||
}
|
||||
function xiajia() {
|
||||
emits('xiajia', props.index)
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
<view class="goods-list u-p-30" >
|
||||
<template v-if="pageData.goodsList.length">
|
||||
<view class="u-m-b-32" v-for="(item,index) in pageData.goodsList" :key="index">
|
||||
<my-goods @changeClick="goodsChangeClick" @radioClick="goodsRadioClick" :index="index" :data="item"
|
||||
<my-goods @changeClick="goodsChangeClick" @reportDamage="reportDamageClick" @radioClick="goodsRadioClick" :index="index" :data="item"
|
||||
@del="goodsDel"
|
||||
:showChecked="showChecked" :showDetail="pageData.showGoodsDetail"></my-goods>
|
||||
</view>
|
||||
@@ -118,6 +118,9 @@
|
||||
</view>
|
||||
</template>
|
||||
</my-model>
|
||||
|
||||
<!-- 商品报损 -->
|
||||
<my-reportDamage ref="reportDamage" :title="'商品报损'" :type="'product'" :show="reportShow" :item="pageData.reportData" @affirm="affirm"></my-reportDamage>
|
||||
</view>
|
||||
|
||||
</template>
|
||||
@@ -145,6 +148,7 @@
|
||||
import myModel from "@/components/my-components/my-model.vue"
|
||||
import myButton from "@/components/my-components/my-button.vue"
|
||||
import mySwitch from "@/components/my-components/my-switch.vue"
|
||||
import myReportDamage from '@/components/my-components/my-reportDamage';
|
||||
import {
|
||||
$tbProduct,
|
||||
$upProSort,
|
||||
@@ -173,7 +177,9 @@
|
||||
category:'',
|
||||
categoryShow:false,
|
||||
categoryName:'',
|
||||
hasAjax:false
|
||||
hasAjax:false,
|
||||
reportShow: false, //是否显示报损
|
||||
reportData: {}, //报损数据
|
||||
})
|
||||
function onCategoryShowChange(show){
|
||||
console.log(show);
|
||||
@@ -208,7 +214,12 @@
|
||||
const control = ref(null)
|
||||
const model = ref(null)
|
||||
const goodsStockModel = ref(null)
|
||||
|
||||
let reportDamage = ref(null) //报损组件
|
||||
// 商品报损
|
||||
function reportDamageClick(index) {
|
||||
pageData.reportData = pageData.goodsList[index]
|
||||
reportDamage.value.open();
|
||||
}
|
||||
function returnGoodsStockData() {
|
||||
return reactive({
|
||||
sort: 0,
|
||||
@@ -256,6 +267,7 @@
|
||||
Object.assign(goodsStockData,goods)
|
||||
goodsStockModel.value.open()
|
||||
}
|
||||
|
||||
//删除商品
|
||||
function goodsDel(index){
|
||||
const goods = pageData.goodsList[index]
|
||||
|
||||
Reference in New Issue
Block a user