吉福庄APP,基于若依原版开发
wangzhenxin
2024-05-03 e31b7ee59b5d087d58325c4234290f3307503d9d
成本计算
28 files added
7 files modified
3 files deleted
94 ■■■■■ changed files
config.js 8 ●●●● patch | view | raw | blame | history
pages/calc/food/calc.vue 16 ●●●●● patch | view | raw | blame | history
pages/index.vue 2 ●●● patch | view | raw | blame | history
pages/login.vue 2 ●●● patch | view | raw | blame | history
pages/work/index.vue 66 ●●●●● patch | view | raw | blame | history
static/images/banner/banner01.jpg patch | view | raw | blame | history
static/images/banner/banner02.jpg patch | view | raw | blame | history
static/images/banner/banner03.jpg patch | view | raw | blame | history
static/images/banner/banner1.jpg patch | view | raw | blame | history
static/images/jfz/B.jpg patch | view | raw | blame | history
static/images/jfz/BLGT.jpg patch | view | raw | blame | history
static/images/jfz/BWD.jpg patch | view | raw | blame | history
static/images/jfz/CTD.jpg patch | view | raw | blame | history
static/images/jfz/CXLJ.jpg patch | view | raw | blame | history
static/images/jfz/DJB.jpg patch | view | raw | blame | history
static/images/jfz/DJF.jpg patch | view | raw | blame | history
static/images/jfz/FKM.jpg patch | view | raw | blame | history
static/images/jfz/FMJMJ.jpg patch | view | raw | blame | history
static/images/jfz/FQJ.jpg patch | view | raw | blame | history
static/images/jfz/JBZ.jpg patch | view | raw | blame | history
static/images/jfz/JD.jpg patch | view | raw | blame | history
static/images/jfz/JTR.jpg patch | view | raw | blame | history
static/images/jfz/KRGL.jpg patch | view | raw | blame | history
static/images/jfz/KRJ.jpg patch | view | raw | blame | history
static/images/jfz/LJY.jpg patch | view | raw | blame | history
static/images/jfz/SC.jpg patch | view | raw | blame | history
static/images/jfz/SLJ.jpg patch | view | raw | blame | history
static/images/jfz/SMG.jpg patch | view | raw | blame | history
static/images/jfz/TJJ.jpg patch | view | raw | blame | history
static/images/jfz/WMSTD.jpg patch | view | raw | blame | history
static/images/jfz/XHS.jpg patch | view | raw | blame | history
static/images/jfz/YC.jpg patch | view | raw | blame | history
static/images/jfz/YML.jpg patch | view | raw | blame | history
static/images/jfz/YTS.jpg patch | view | raw | blame | history
static/images/jfz/ZGL.jpg patch | view | raw | blame | history
static/images/jfz/ZS.jpg patch | view | raw | blame | history
static/logo.png patch | view | raw | blame | history
static/logo200.png patch | view | raw | blame | history
config.js
@@ -1,7 +1,7 @@
// 应用全局配置
module.exports = {
  //baseUrl: 'https://vue.ruoyi.vip/prod-api',
  baseUrl: 'http://localhost:8080',
  baseUrl: 'http://192.168.31.190:8080',
  // 应用信息
  appInfo: {
    // 应用名称
@@ -22,5 +22,9 @@
        url: "https://ruoyi.vip/protocol.html"
      }
    ]
  }
  },
  devServer:{
      host:'0.0.0.0',
      disableHostCheck:true,
  },
}
pages/calc/food/calc.vue
@@ -1,8 +1,8 @@
<template>
  <view class="container">
    <view class="example">
        <uni-collapse ref="collapse" v-model="value">
            <uni-collapse-item title="产品数量" name="0" >
        <uni-collapse ref="collapse" accordion v-model="colValue">
            <uni-collapse-item title="产品数量" name="i0" >
                <view class="content">
                    <uni-forms ref="form" labelWidth="100px" v-for="food in foods">
                      <uni-forms-item :label="food.name" :name="food.code">
@@ -12,13 +12,13 @@
                    <button type="primary" @click="submit">开始测算</button>
                </view>
            </uni-collapse-item>
            <uni-collapse-item title="计算结果" name="1">
            <uni-collapse-item title="计算结果" name="i1">
                <view class="content" v-for="res in calcResult">
                    <uni-section :title="res.maTypeName" type="line">
                        <uni-list v-for="m in res.materialList">
                            <uni-list-item :title="m.maName" :note="'数量:'+m.qty+m.unit+'  成本:'+m.amount+'元'"
                                                thumb="https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/unicloudlogo.png"
                                                thumb-size="sm" rightText="" />
                                                :thumb="'/static/images/jfz/'+m.maCode+'.jpg'"
                                                thumb-size="medium" rightText="" />
                        </uni-list>
                    </uni-section>
                </view>
@@ -34,7 +34,7 @@
  export default {
    data() {
      return {
        value:['0'],
        colValue:'i0',
        foods: [
            { code:'A0001',name: '整只鸡腿卷饼',qty: 0 },
            { code:'A0002',name: '田园半腿卷饼',qty: 0 },
@@ -80,7 +80,9 @@
      submit(ref) {
        getFoodMaterialCostList(this.foods).then(response => {
            this.calcResult = response.data;
            this.value = ['1'];
            //this.colValue = 'i1';
            this.$refs.collapse.$children[0].$children[0].isOpen = false;
            this.$refs.collapse.$children[0].$children[1].isOpen = true;
          })
      }
    }
pages/index.vue
@@ -2,7 +2,7 @@
  <view class="content">
    <image class="logo" src="@/static/logo.png"></image>
    <view class="text-area">
      <text class="title">Hello RuoYi</text>
      <text class="title">吉福庄 连锁经营助手</text>
    </view>
  </view>
</template>
pages/login.vue
@@ -3,7 +3,7 @@
    <view class="logo-content align-center justify-center flex">
      <image style="width: 100rpx;height: 100rpx;" :src="globalConfig.appInfo.logo" mode="widthFix">
      </image>
      <text class="title">若依移动端登录</text>
      <text class="title">吉福庄 连锁经营助手</text>
    </view>
    <view class="login-form-content">
      <view class="input-item flex align-center">
pages/work/index.vue
@@ -13,71 +13,41 @@
    <!-- 宫格组件 -->
    <uni-section title="业务系统" type="line"></uni-section>
    <view class="grid-body">
        <uni-grid :column="4" :showBorder="false" @change="changeGrid">
        <uni-grid :column="4" :showBorder="false" v-for="m in menu1" @change="changeGrid" :index="m.id">
          <uni-grid-item>
            <view class="grid-item-box">
              <uni-icons type="calendar" size="30"></uni-icons>
              <text class="text">测算成本</text>
              <text class="text">{{m.name}}</text>
            </view>
          </uni-grid-item>
          </uni-grid-item>
        </uni-grid>
    </view>
    <!-- 宫格组件 -->
    <uni-section title="系统管理" type="line"></uni-section>
    <uni-section title="知识中心" type="line"></uni-section>
    <view class="grid-body">
      <uni-grid :column="4" :showBorder="false" @change="changeGrid">
        <uni-grid-item>
          <view class="grid-item-box">
            <uni-icons type="person-filled" size="30"></uni-icons>
            <text class="text">用户管理</text>
          </view>
        </uni-grid-item>
        <uni-grid-item>
          <view class="grid-item-box">
            <uni-icons type="staff-filled" size="30"></uni-icons>
            <text class="text">角色管理</text>
          </view>
        </uni-grid-item>
        <uni-grid-item>
          <view class="grid-item-box">
            <uni-icons type="color" size="30"></uni-icons>
            <text class="text">菜单管理</text>
          </view>
        </uni-grid-item>
      <uni-grid :column="4" :showBorder="false" @change="changeGrid1">
        <uni-grid-item>
          <view class="grid-item-box">
            <uni-icons type="settings-filled" size="30"></uni-icons>
            <text class="text">部门管理</text>
            <text class="text">产品学习</text>
          </view>
        </uni-grid-item>
        <uni-grid-item>
          <view class="grid-item-box">
            <uni-icons type="heart-filled" size="30"></uni-icons>
            <text class="text">岗位管理</text>
            <text class="text">经营之道</text>
          </view>
        </uni-grid-item>
        <uni-grid-item>
          <view class="grid-item-box">
            <uni-icons type="bars" size="30"></uni-icons>
            <text class="text">字典管理</text>
            <text class="text">行业资讯</text>
          </view>
        </uni-grid-item>
        <uni-grid-item>
          <view class="grid-item-box">
            <uni-icons type="gear-filled" size="30"></uni-icons>
            <text class="text">参数设置</text>
          </view>
        </uni-grid-item>
        <uni-grid-item>
          <view class="grid-item-box">
            <uni-icons type="chat-filled" size="30"></uni-icons>
            <text class="text">通知公告</text>
          </view>
        </uni-grid-item>
        <uni-grid-item>
          <view class="grid-item-box">
            <uni-icons type="wallet-filled" size="30"></uni-icons>
            <text class="text">日志管理</text>
            <text class="text">总部讲师</text>
          </view>
        </uni-grid-item>
      </uni-grid>
@@ -91,15 +61,21 @@
      return {
        current: 0,
        swiperDotIndex: 0,
        menu1:[
            { code:'A0001',name: '成本测算',id: '0' },
            { code:'A0002',name: '单品速查',id: '1' },
            { code:'A0003',name: '损耗分析',id: '2' },
            { code:'A0004',name: '通知公告',id: '3' },
        ],
        data: [{
            image: '/static/images/banner/banner01.jpg'
            image: '/static/images/banner/banner1.jpg'
          },
          {
/*          {
            image: '/static/images/banner/banner02.jpg'
          },
          {
            image: '/static/images/banner/banner03.jpg'
          }
          } */
        ]
      }
    },
@@ -118,6 +94,12 @@
            default:
                this.$modal.showToast('模块建设中~')
        }
      },
      changeGrid1(e) {
        switch(e.detail.index){
            default:
                this.$modal.showToast('模块建设中~')
        }
      }
    }
  }
static/images/banner/banner01.jpg
Binary files differ
static/images/banner/banner02.jpg
Binary files differ
static/images/banner/banner03.jpg
Binary files differ
static/images/banner/banner1.jpg
static/images/jfz/B.jpg
static/images/jfz/BLGT.jpg
static/images/jfz/BWD.jpg
static/images/jfz/CTD.jpg
static/images/jfz/CXLJ.jpg
static/images/jfz/DJB.jpg
static/images/jfz/DJF.jpg
static/images/jfz/FKM.jpg
static/images/jfz/FMJMJ.jpg
static/images/jfz/FQJ.jpg
static/images/jfz/JBZ.jpg
static/images/jfz/JD.jpg
static/images/jfz/JTR.jpg
static/images/jfz/KRGL.jpg
static/images/jfz/KRJ.jpg
static/images/jfz/LJY.jpg
static/images/jfz/SC.jpg
static/images/jfz/SLJ.jpg
static/images/jfz/SMG.jpg
static/images/jfz/TJJ.jpg
static/images/jfz/WMSTD.jpg
static/images/jfz/XHS.jpg
static/images/jfz/YC.jpg
static/images/jfz/YML.jpg
static/images/jfz/YTS.jpg
static/images/jfz/ZGL.jpg
static/images/jfz/ZS.jpg
static/logo.png

static/logo200.png