Mr.Shi
2023-08-28 9de02ff413d636cdfbaaaf134f01b929cbfb2409
小程序
已添加1个文件
已删除1个文件
已修改3个文件
86 ■■■■■ 文件已修改
minipro_standard/components/Warehouse.vue 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
minipro_standard/main.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
minipro_standard/pages.json 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
minipro_standard/pages_adjust/components/Warehouse.vue 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
minipro_standard/pages_adjust/pages/addReceipt/addReceipt.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
minipro_standard/components/Warehouse.vue
ÎļþÒÑɾ³ý
minipro_standard/main.js
@@ -1,8 +1,6 @@
import Vue from 'vue'
import App from './App'
import mixin from './common/mixin'
import 'vant/lib/index.css'
// å¼•入全局uView
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
minipro_standard/pages.json
@@ -74,11 +74,6 @@
        "navigationBarTitleText": "uni-app",
        "navigationBarBackgroundColor": "#ffffff",
        "backgroundColor": "#ffffff"
<<<<<<< HEAD
=======
>>>>>>> 9e4d7b06a15aabe0141a991fe9358802a0590378
    },
    "tabBar": {
        "color": "#666666",
minipro_standard/pages_adjust/components/Warehouse.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,41 @@
<template>
    <u-popup :show="show" mode="bottom" :closeable="true" :round="10" @close="close">
        <view class="title">
            <text>选择仓库</text>
        </view>
    </u-popup>
</template>
<script>
    export default {
        name:"Warehouse",
        props: {
            show: Boolean
        },
        data() {
            return {
            };
        },
        methods: {
            close() {
                this.$emit('close')
            }
        }
    }
</script>
<style lang="scss" scoped>
    .title {
        width: 100%;
        height: 85rpx;
        line-height: 85rpx;
        text-align: center;
        text {
            font-size: 30rpx;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #222222;
        }
    }
</style>
minipro_standard/pages_adjust/pages/addReceipt/addReceipt.vue
@@ -10,7 +10,7 @@
            </view>
            <view class="rework_list_item">
                <text><b>*</b>入库仓库</text>
                <view class="rework_list_item_right">
                <view class="rework_list_item_right" @click="warehouseShow = true">
                    <text :class="form.warehouseName ? 'black' : ''">{{form.warehouseName ? form.warehouseName : '请选择'}}</text>
                    <van-icon name="arrow" size="20" color="#999999" />
                </view>
@@ -82,11 +82,15 @@
            <button class="rework_footer_submit">提交</button>
        </view>
        <u-toast ref="uToast"></u-toast>
        <!-- ä»“库 -->
        <Warehouse :show="warehouseShow" @close="close" @value="getValue" />
    </view>
</template>
<script>
    import Warehouse from '../../components/Warehouse.vue'
    export default {
        components: { Warehouse },
        data() {
            return {
                form: {
@@ -95,10 +99,18 @@
                    type: '',
                    typeName: ''
                },
                list: []
                list: [],
                warehouseShow: false
            };
        },
        methods: {
            getValue(val) {
                this.warehouseShow = false
            },
            close() {
                this.warehouseShow = false
            },
            // æ·»åŠ æ˜Žç»†
            addItem() {
                if (!this.form.warehouseId) return this.$refs.uToast.show({ type: 'default', message: "请选择入库仓库" })
                this.list.push({