已添加63个文件
已删除6个文件
已修改22个文件
| | |
| | | <script>
|
| | | <script> |
| | | console.log('app------'); |
| | | // import { pageCount } from '@/util/api/index.js'
|
| | | export default {
|
| | | onLaunch: function() {
|
| | | onLaunch: function() { |
| | | // pageCount({})
|
| | | },
|
| | | onShow: function() {
|
| | | },
|
| | |
| | | module.exports = { |
| | | // baseUrl: 'http://106.14.20.42/test_hfznzz/', |
| | | baseUrl: 'https://hefei.dtkey.cn/test_hfznzz/', |
| | | // baseUrl: 'http://192.168.0.35:10011/', |
| | | // baseUrl: 'https://hefei.dtkey.cn/test_hfznzz/', |
| | | baseUrl: 'https://dmtest.ahapp.net/doumeeplant_api/' |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view> |
| | | <u-tabbar |
| | | :value="index" |
| | | @change="change" |
| | | fixed |
| | | activeColor="#222" |
| | | inactiveColor="#666" |
| | | > |
| | | <u-tabbar-item text="å¾
å"> |
| | | <view class="" slot="active-icon"> |
| | | <image src="@/static/nav_daiban_sel@2x.png" class="icon-style" mode=""></image> |
| | | </view> |
| | | <view class="" slot="inactive-icon"> |
| | | <image src="@/static/nav_daiban@2x.png" class="icon-style" mode=""></image> |
| | | </view> |
| | | </u-tabbar-item> |
| | | <u-tabbar-item text="å·¥ä½å°"> |
| | | <view class="" slot="active-icon"> |
| | | <image src="@/static/nav_gongzuotai_sel@2x.png" class="icon-style" mode=""></image> |
| | | </view> |
| | | <view class="" slot="inactive-icon"> |
| | | <image src="@/static/nav_gongzuotai@2x.png" class="icon-style" mode=""></image> |
| | | </view> |
| | | </u-tabbar-item> |
| | | <u-tabbar-item text="æç"> |
| | | <view class="" slot="active-icon"> |
| | | <image src="@/static/nav_wode_sel@2x.png" class="icon-style" mode=""></image> |
| | | </view> |
| | | <view class="" slot="inactive-icon"> |
| | | <image src="@/static/nav_wode@2x.png" class="icon-style" mode=""></image> |
| | | </view> |
| | | </u-tabbar-item> |
| | | </u-tabbar> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name:"myTabbar", |
| | | props: { |
| | | index: 0 |
| | | }, |
| | | data() { |
| | | return { |
| | | value: 0 |
| | | }; |
| | | }, |
| | | methods: { |
| | | click(index) { |
| | | // console.log('click', index); |
| | | // this.$nextTick(() => { |
| | | // this.value = index |
| | | // if (index==0) { |
| | | // uni.switchTab({ |
| | | // url: '/pages/index/index' |
| | | // }); |
| | | // } else if (index== 1) { |
| | | // uni.switchTab({ |
| | | // url: '/pages/service/service' |
| | | // }); |
| | | // }else { |
| | | // uni.switchTab({ |
| | | // url: '/pages/mine/mine' |
| | | // }); |
| | | // } |
| | | // }) |
| | | }, |
| | | change(index) { |
| | | this.$nextTick(() => { |
| | | this.value = index |
| | | }) |
| | | |
| | | console.log(this.value); |
| | | if (index==0) { |
| | | // console.log('index'); |
| | | uni.switchTab({ |
| | | url: '/pages/index/index' |
| | | }); |
| | | } else if (index== 1) { |
| | | // console.log('workbench'); |
| | | uni.switchTab({ |
| | | url: '/pages/workbench/workbench' |
| | | }); |
| | | }else { |
| | | // console.log('mine'); |
| | | uni.switchTab({ |
| | | url: '/pages/mine/mine' |
| | | }); |
| | | } |
| | | } |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scope> |
| | | .icon-style { |
| | | width: 44rpx; |
| | | height: 44rpx; |
| | | } |
| | | </style> |
| | |
| | | import Vue from 'vue' |
| | | import App from './App' |
| | | |
| | | // vuex
|
| | | import store from './store' |
| | | |
| | | import mixin from './common/mixin' |
| | | |
| | | // å¼å
¥å
¨å±uView
|
| | | import uView from '@/uni_modules/uview-ui' |
| | | Vue.use(uView) |
| | | |
| | | // vuex
|
| | | import store from './store' |
| | | Vue.prototype.$store = store |
| | | store.dispatch('getHeight') |
| | | |
| | | Vue.config.productionTip = false |
| | | |
| | | App.mpType = 'app'
|
| | | Vue.use(uView) |
| | | |
| | | console.log(uni.$u); |
| | | // #ifdef MP
|
| | | // å¼å
¥uView对å°ç¨åºå享çmixinå°è£
|
| | | const mpShare = require('@/uni_modules/uview-ui/libs/mixin/mpShare.js') |
| | |
| | | // #endif |
| | | |
| | | Vue.mixin(mixin) |
| | | // å¼å
¥è¯·æ±å°è£
|
| | | |
| | | const app = new Vue({ |
| | | store,
|
| | | ...App
|
| | | })
|
| | |
|
| | | // å¼å
¥è¯·æ±å°è£
|
| | | require('./util/request/index')(app)
|
| | | // è·åå¾
åæ°é |
| | | store.dispatch('getUpcomingNum')
|
| | |
|
| | | app.$mount() |
| | |
| | | {
|
| | | "pages": [ //pagesæ°ç»ä¸ç¬¬ä¸é¡¹è¡¨ç¤ºåºç¨å¯å¨é¡µï¼åèï¼https://uniapp.dcloud.io/collocation/pages
|
| | | { |
| | | "path": "pages/projectList/projectList", |
| | | "path": "pages/workbench/workbench", |
| | | "style": { |
| | | "navigationBarTitleText": "项ç®å表", |
| | | // "enablePullDownRefresh": true, |
| | | "navigationStyle": "custom" |
| | | "navigationBarTitleText": "å·¥ä½å°", |
| | | "enablePullDownRefresh": false |
| | | } |
| | | |
| | | },{
|
| | | }, |
| | | {
|
| | | "path": "pages/index/index",
|
| | | "style": {
|
| | | "navigationBarTitleText": "uni-app",
|
| | | "navigationStyle": "custom"
|
| | | "navigationBarTitleText": "å¾
å"
|
| | | }
|
| | | }, {
|
| | | "path": "pages/applyList/applyList",
|
| | | }, {
|
| | | "path": "pages/mine/mine",
|
| | | "style": {
|
| | | "navigationBarTitleText": "ä¼ä¸æ¥åå表",
|
| | | "enablePullDownRefresh": false,
|
| | | "navigationBarBackgroundColor": "#F3F6F9"
|
| | | }
|
| | |
|
| | | }, {
|
| | | "path": "pages/comApplyList/comApplyList",
|
| | | "style": {
|
| | | "navigationBarTitleText": "ä¼ä¸æ¥åå表",
|
| | | "navigationBarTitleText": "æç",
|
| | | "enablePullDownRefresh": false
|
| | | }
|
| | |
|
| | | }, {
|
| | | "path": "pages/applyDetail/applyDetail",
|
| | | "style": {
|
| | | "navigationBarTitleText": "ä¼ä¸æ¥å详æ
",
|
| | | "enablePullDownRefresh": false,
|
| | | "navigationStyle": "custom"
|
| | | }
|
| | |
|
| | | }, {
|
| | | "path": "pages/uploadServiceData/uploadServiceData",
|
| | | "style": {
|
| | | "navigationBarTitleText": "ä¸ä¼ æå¡æ°æ®",
|
| | | "enablePullDownRefresh": false
|
| | |
|
| | | }
|
| | |
|
| | | }, {
|
| | | "path": "pages/uploadCheckData/uploadCheckData",
|
| | | "style": {
|
| | | "navigationBarTitleText": "ä¸ä¼ è¯ææ°æ®",
|
| | | "enablePullDownRefresh": false
|
| | | }
|
| | |
|
| | | }
|
| | | ],
|
| | | ,{
|
| | | "path" : "pages/login/login", |
| | | "style" : |
| | | { |
| | | "navigationBarTitleText": "ç»å½", |
| | | "enablePullDownRefresh": false, |
| | | "navigationStyle": "custom" |
| | | } |
| | | |
| | | }
|
| | | ],
|
| | | "globalStyle": {
|
| | | "navigationBarTextStyle": "black",
|
| | | "navigationBarTitleText": "uni-app",
|
| | | "navigationBarTitleText": "uni-app", |
| | | "navigationBarBackgroundColor": "#F3F6F9",
|
| | | "backgroundColor": "#F3F6F9"
|
| | | }, |
| | | "tabBar": { |
| | | "color": "#666666", |
| | | "selectedColor": "#222222", |
| | | "borderStyle": "black", |
| | | "backgroundColor": "#fff", |
| | | "list": [ |
| | | { |
| | | "pagePath": "pages/index/index", |
| | | "iconPath": "static/nav_daiban@2x.png", |
| | | "selectedIconPath": "static/nav_daiban_sel@2x.png", |
| | | "text": "å¾
å" |
| | | }, |
| | | { |
| | | "pagePath": "pages/workbench/workbench", |
| | | "iconPath": "static/nav_gongzuotai@2x.png", |
| | | "selectedIconPath": "static/nav_gongzuotai_sel@2x.png", |
| | | "text": "å·¥ä½å°" |
| | | }, |
| | | { |
| | | "pagePath": "pages/mine/mine", |
| | | "iconPath": "static/nav_wode@2x.png", |
| | | "selectedIconPath": "static/nav_wode_sel@2x.png", |
| | | "text": "æç" |
| | | } |
| | | ] |
| | | },
|
| | | "uniIdRouter": {}
|
| | | } |
| | |
| | | <template>
|
| | | <view class="content">
|
| | | <view class="p40 nav bbox"> |
| | | <view class="">åè¥å¸æºæ¹æ°è½¬è¯ææå¡å¹³å°</view> |
| | | <view class="">欢è¿ç»å½</view> |
| | | </view> |
| | | <view class="p40 mt30"> |
| | | <u--input |
| | | placeholder="请è¾å
¥è´¦å·" |
| | | prefixIcon="account" |
| | | clearable |
| | | v-model="form.account" |
| | | prefixIconStyle="font-size: 40rpx;color: #AAAAAA" |
| | | ></u--input> |
| | | <view class="p20"></view> |
| | | <u--input |
| | | placeholder="请è¾å
¥å¯ç " |
| | | prefixIcon="lock" |
| | | password |
| | | clearable |
| | | v-model="form.password" |
| | | prefixIconStyle="font-size: 40rpx;color: #AAAAAA" |
| | | ></u--input> |
| | | <view class="ptb50"></view> |
| | | <u-button |
| | | :loading="logining" |
| | | type="primary" |
| | | color="#216EEE" |
| | | text="ç»å½" |
| | | size="large" |
| | | @click="loginAction" |
| | | ></u-button> |
| | | </view> |
| | | <view> |
| | |
|
| | | <myTabbar :index="0" />
|
| | | </view>
|
| | | </template>
|
| | |
|
| | | <script> |
| | | |
| | | import { coustomLogin, wxEmpower } from '@/util/api/index' |
| | | <script>
|
| | | // import { coustomLogin, wxEmpower } from '@/util/api/index'
|
| | |
|
| | |
|
| | | import myTabbar from "@/components/myTabber.vue"
|
| | | export default {
|
| | | components: {
|
| | | myTabbar
|
| | | },
|
| | | data() {
|
| | | return {
|
| | | form: { |
| | | account: '', |
| | | password: '', |
| | | }, |
| | | logining: false, |
| | | form: {
|
| | | account: '',
|
| | | password: '',
|
| | | },
|
| | | logining: false,
|
| | | openId: ''
|
| | | }
|
| | | }, |
| | | onLoad() { |
| | | uni.login({ |
| | | success: data => { |
| | | this.wxLogin(data.code) |
| | | }, |
| | | fail: err => { |
| | | uni.$u.toast(err) |
| | | } |
| | | }) |
| | | },
|
| | | onLoad() {
|
| | | // uni.login({
|
| | | // success: data => {
|
| | | // this.wxLogin(data.code)
|
| | | // },
|
| | | // fail: err => {
|
| | | // uni.$u.toast(err)
|
| | | // }
|
| | | // })
|
| | | },
|
| | | methods: {
|
| | | loginAction() { |
| | | if (!this.form.account || !this.form.password) { |
| | | uni.$u.toast('è´¦å·æè
å¯ç ä¸è½ä¸ºç©º') |
| | | } |
| | | this.logining = true |
| | | coustomLogin({...this.form, openid: this.openId}) |
| | | .then(res => { |
| | | this.$store.commit('SETTOKEN', res.token) |
| | | this.$store.commit('SETUSERINFO', res) |
| | | uni.navigateTo({ |
| | | url:'/pages/projectList/projectList' |
| | | }) |
| | | }) |
| | | .finally(() => { |
| | | this.logining = false |
| | | }) |
| | | }, |
| | | wxLogin(code) { |
| | | wxEmpower({code}) |
| | | .then(res => { |
| | | this.openId = res.openid |
| | | if (res.userInfo) { |
| | | this.$store.commit('SETTOKEN', res.userInfo.token) |
| | | this.$store.commit('SETUSERINFO', res.userInfo) |
| | | uni.navigateTo({ |
| | | url:'/pages/projectList/projectList' |
| | | }) |
| | | } |
| | | }) |
| | | .catch(err => { |
| | | uni.$u.toast(err) |
| | | }) |
| | | }
|
| | | // loginAction() {
|
| | | // if (!this.form.account || !this.form.password) {
|
| | | // uni.$u.toast('è´¦å·æè
å¯ç ä¸è½ä¸ºç©º')
|
| | | // }
|
| | | // this.logining = true
|
| | | // coustomLogin({...this.form, openid: this.openId})
|
| | | // .then(res => {
|
| | | // this.$store.commit('SETTOKEN', res.token)
|
| | | // this.$store.commit('SETUSERINFO', res)
|
| | | // uni.navigateTo({
|
| | | // url:'/pages/projectList/projectList'
|
| | | // })
|
| | | // })
|
| | | // .finally(() => {
|
| | | // this.logining = false
|
| | | // })
|
| | | // },
|
| | | // wxLogin(code) {
|
| | | // wxEmpower({code})
|
| | | // .then(res => {
|
| | | // this.openId = res.openid
|
| | | // if (res.userInfo) {
|
| | | // this.$store.commit('SETTOKEN', res.userInfo.token)
|
| | | // this.$store.commit('SETUSERINFO', res.userInfo)
|
| | | // uni.navigateTo({
|
| | | // url:'/pages/projectList/projectList'
|
| | | // })
|
| | | // } |
| | | // })
|
| | | // .catch(err => {
|
| | | // uni.$u.toast(err)
|
| | | // })
|
| | | // }
|
| | | }
|
| | | }
|
| | | </script>
|
| | |
|
| | | <style lang="scss" scoped>
|
| | | .content {
|
| | | // display: flex;
|
| | | // flex-direction: column;
|
| | | // align-items: center;
|
| | | // justify-content: center; |
| | | height: 100vh; |
| | | background-color: #FFFFFF; |
| | | .nav { |
| | | |
| | | width: 750rpx; |
| | | height: 520rpx; |
| | | background: linear-gradient(180deg, #C7EBFF 0%, #FFFFFF 100%); |
| | | display: flex; |
| | | flex-direction: column-reverse; |
| | | color: #293C5B; |
| | | :first-child { |
| | | height: 52rpx; |
| | | font-size: 36rpx; |
| | | line-height: 52rpx; |
| | | } |
| | | :last-child { |
| | | height: 80rpx; |
| | | font-size: 56rpx; |
| | | font-weight: 500; |
| | | line-height: 80rpx; |
| | | margin-bottom: 16rpx; |
| | | } |
| | | }
|
| | | }
|
| | |
|
| | | .logo {
|
| | | height: 200rpx;
|
| | | width: 200rpx;
|
| | | margin-top: 200rpx;
|
| | | margin-left: auto;
|
| | | margin-right: auto;
|
| | | margin-bottom: 50rpx;
|
| | | }
|
| | |
|
| | | .text-area {
|
| | | display: flex;
|
| | | justify-content: center;
|
| | | }
|
| | |
|
| | | .title {
|
| | | font-size: 36rpx;
|
| | | color: #8f8f94;
|
| | | }
|
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="login-content plr60"> |
| | | <view class="login-bg"> |
| | | <image src="@/static/login_bg@2x.png" mode="aspectFill" class="bg-img"></image> |
| | | <image src="@/static/logo@2x.png" mode="aspectFill" class="login-log img180"></image> |
| | | <view class="tc title">DMäºå·¥å</view> |
| | | </view> |
| | | <view class="bg_w rd8 ptb30 pl40 bbox com-input flex input-height"> |
| | | <image src="@/static/login_ic_code@2x.png" mode="" class="img40 mr25"></image> |
| | | <u--input placeholder="ä¼ä¸ä»£ç " border="none"></u--input> |
| | | </view> |
| | | <view class="bg_w rd8 ptb30 pl40 bbox mt40 flex input-height"> |
| | | <image src="@/static/login_ic_phone@2x.png" mode="" class="img40 mr25"></image> |
| | | <u--input placeholder="ææºå·" border="none"></u--input> |
| | | </view> |
| | | <view class="bg_w rd8 ptb30 pl40 bbox mt40 flex input-height"> |
| | | <image src="@/static/login_ic_password@2x.png" mode="" class="img40 mr25"></image> |
| | | <u--input placeholder="å¯ç " border="none"></u--input> |
| | | </view> |
| | | <view class="login-btn mt80">ç«å³ç»å½</view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | bgImg: require('@/static/login_bg@2x.png') |
| | | }; |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .login-content { |
| | | height: 100vh; |
| | | background: #FFFFFF linear-gradient(180deg, rgba(66,117,252,0.2) 0%, rgba(66,117,252,0) 100%); |
| | | .login-bg { |
| | | position: relative; |
| | | height: 812rpx; |
| | | .bg-img { |
| | | position: absolute; |
| | | z-index: 1; |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | .login-log { |
| | | // margin-top: ; |
| | | margin: 356rpx auto 0 auto ; |
| | | left: 0; |
| | | right: 0; |
| | | position: absolute; |
| | | } |
| | | .title { |
| | | position: absolute; |
| | | margin-top: 576rpx; |
| | | left: 0; |
| | | width: 100%; |
| | | height: 60rpx; |
| | | font-size: 44rpx; |
| | | font-weight: 600; |
| | | color: #333333; |
| | | line-height: 60rpx; |
| | | } |
| | | } |
| | | .input-height { |
| | | height: 100rpx; |
| | | } |
| | | .com-input { |
| | | margin-top: -60px; |
| | | } |
| | | .login-btn { |
| | | height: 98rpx; |
| | | background: #4275FC; |
| | | box-shadow: 0rpx 12rpx 24rpx 0rpx rgba(66,117,252,0.2); |
| | | border-radius: 8rpx; |
| | | text-align: center; |
| | | font-size: 32rpx; |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | line-height: 98rpx; |
| | | } |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template>
|
| | | <view>
|
| | |
|
| | | <myTabbar :index="2" />
|
| | | </view>
|
| | | </template>
|
| | |
|
| | | <script>
|
| | | import myTabbar from "@/components/myTabber.vue"
|
| | | export default {
|
| | | components: {
|
| | | myTabbar
|
| | | },
|
| | | data() {
|
| | | return {
|
| | | form: {
|
| | | account: '',
|
| | | password: '',
|
| | | },
|
| | | logining: false,
|
| | | openId: ''
|
| | | }
|
| | | },
|
| | | onLoad() {
|
| | | // uni.login({
|
| | | // success: data => {
|
| | | // this.wxLogin(data.code)
|
| | | // },
|
| | | // fail: err => {
|
| | | // uni.$u.toast(err)
|
| | | // }
|
| | | // })
|
| | | },
|
| | | methods: {
|
| | | // loginAction() {
|
| | | // if (!this.form.account || !this.form.password) {
|
| | | // uni.$u.toast('è´¦å·æè
å¯ç ä¸è½ä¸ºç©º')
|
| | | // }
|
| | | // this.logining = true
|
| | | // coustomLogin({...this.form, openid: this.openId})
|
| | | // .then(res => {
|
| | | // this.$store.commit('SETTOKEN', res.token)
|
| | | // this.$store.commit('SETUSERINFO', res)
|
| | | // uni.navigateTo({
|
| | | // url:'/pages/projectList/projectList'
|
| | | // })
|
| | | // })
|
| | | // .finally(() => {
|
| | | // this.logining = false
|
| | | // })
|
| | | // },
|
| | | // wxLogin(code) {
|
| | | // wxEmpower({code})
|
| | | // .then(res => {
|
| | | // this.openId = res.openid
|
| | | // if (res.userInfo) {
|
| | | // this.$store.commit('SETTOKEN', res.userInfo.token)
|
| | | // this.$store.commit('SETUSERINFO', res.userInfo)
|
| | | // uni.navigateTo({
|
| | | // url:'/pages/projectList/projectList'
|
| | | // })
|
| | | // } |
| | | // })
|
| | | // .catch(err => {
|
| | | // uni.$u.toast(err)
|
| | | // })
|
| | | // }
|
| | | }
|
| | | }
|
| | | </script>
|
| | |
|
| | | <style lang="scss" scoped>
|
| | |
|
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template>
|
| | | <view>
|
| | |
|
| | | <myTabbar :index="1" />
|
| | | </view>
|
| | | </template>
|
| | |
|
| | | <script>
|
| | | import myTabbar from "@/components/myTabber.vue" |
| | | |
| | | export default {
|
| | | components: {
|
| | | myTabbar
|
| | | },
|
| | | data() {
|
| | | return {
|
| | |
|
| | | };
|
| | | },
|
| | | onLoad() { |
| | | uni.hideTabBar()
|
| | | // uni.login({
|
| | | // success: data => {
|
| | | // this.wxLogin(data.code)
|
| | | // },
|
| | | // fail: err => {
|
| | | // uni.$u.toast(err)
|
| | | // }
|
| | | // })
|
| | | },
|
| | | methods: {
|
| | | |
| | | // wxLogin(code) {
|
| | | // wxEmpower({code})
|
| | | // .then(res => {
|
| | | // this.openId = res.openid
|
| | | // if (res.userInfo) {
|
| | | // this.$store.commit('SETTOKEN', res.userInfo.token)
|
| | | // this.$store.commit('SETUSERINFO', res.userInfo)
|
| | | // uni.navigateTo({
|
| | | // url:'/pages/projectList/projectList'
|
| | | // })
|
| | | // } |
| | | // })
|
| | | // .catch(err => {
|
| | | // uni.$u.toast(err)
|
| | | // })
|
| | | // }
|
| | | }
|
| | | }
|
| | | </script>
|
| | |
|
| | | <style lang="scss">
|
| | |
|
| | | </style> |
| | |
| | | import Vue from 'vue'
|
| | | import Vuex from 'vuex'
|
| | | import Vuex from 'vuex' |
| | | import { pageCount } from '@/util/api/index.js'
|
| | |
|
| | | Vue.use(Vuex) // vueçæä»¶æºå¶
|
| | |
|
| | |
| | | token: token || null,
|
| | | menuButtonWidth: menuButtonWidth || '0',
|
| | | statusbarHeight: statusbarHeight || '0',
|
| | | navHeight: navHeight || '0',
|
| | | navHeight: navHeight || '0', |
| | | // å¾
åæ°é |
| | | upcomingNum: { |
| | | d: 0, |
| | | y: 0 |
| | | },
|
| | | },
|
| | | mutations: {
|
| | | setHeight(state, val) {
|
| | |
| | | SETUSERINFO(state, val) { |
| | | state.userInfo = val |
| | | uni.setStorageSync('userInfo', val); |
| | | }, |
| | | SETNUM(state, val) { |
| | | state.upcomingNum.d = val.d |
| | | state.upcomingNum.y = val.y |
| | | }
|
| | | },
|
| | | actions: {
|
| | |
| | | menuButtonWidth
|
| | | })
|
| | | }, |
| | | async getUpcomingNum() { |
| | | let res = await pageCount({}) |
| | | if (res.code === 200) { |
| | | content.commit('SETNUM', { d: res.data.startNum, y: res.data.endNum }) |
| | | } |
| | | } |
| | | }
|
| | | })
|
| | |
|
| | |
| | | console.log('-----------'); |
| | | const http = uni.$u.http |
| | | // ç»å½ |
| | | export function coustomLogin(params) { |
| | | return http.get('/wechat/ordinaryLogin', {params}) |
| | | } |
| | | |
| | | // å¾®ä¿¡ææ |
| | | export function wxEmpower(params) { |
| | | return http.get('/wechat/wxEmpower', {params}) |
| | | } |
| | | // å页æ¥è¯¢é¡¹ç®ä¿¡æ¯ |
| | | export function projectPage(data) { |
| | | return http.post('/wechat/project/page', data) |
| | | } |
| | | |
| | | // æ ¹æ®é¡¹ç®idå页æ¥è¯¢ä¼ä¸æ¥åæ°æ® |
| | | export function getPageByProjectId(data) { |
| | | return http.post('/wechat/getPageByProjectId', data) |
| | | } |
| | | |
| | | // æ ¹æ®IDæ¥è¯¢æ¥å详æ
|
| | | export function declaresDetail(id) { |
| | | return http.get(`/wechat/declares/${id}`) |
| | | } |
| | | |
| | | // æ ¹æ®IDæ¥è¯¢æ¥å详æ
|
| | | export function companyDetail(params) { |
| | | return http.get(`/wechat/company/queryDetail`, { params }) |
| | | } |
| | | |
| | | |
| | | // æ ¹æ®é¡¹ç®idå页æ¥è¯¢ä¼ä¸æ¥åæ°æ® |
| | | export function serviceDetail(data) { |
| | | return http.post('/wechat/declares/serviceDetail', data) |
| | | } |
| | | |
| | | // æ ¹æ®ç»çº¬åº¦éè§£æå°å |
| | | export function getAddrByLatAndLng(params) { |
| | | return http.get(`/wechat/getAddrByLatAndLng`, { params }) |
| | | } |
| | | |
| | | // æ ¹æ®ç³æ¥ç¼ç æ¥è¯¢æå䏿¬¡æ ¸æ¥æè¯ææ°æ® |
| | | export function declareService({id, type}) { |
| | | return http.post(`/wechat/declareService/${id}?type=${type}`) |
| | | } |
| | | |
| | | // ä¸ä¼ æ ¸æ¥èµæ-ä¸ä¼ æå¡èµæ |
| | | export function uploadHCData(data) { |
| | | return http.post(`/wechat/uploadHCData`, data) |
| | | // æ¥è¯¢ç»è®¡å表æ°é |
| | | export function pageCount(data) { |
| | | return http.post('/ext/noticesExt/pageCount', data) |
| | | } |
| | | |
| | | // éåºç»å½ |
| | |
| | | return http.get(`/wechat/logout`) |
| | | } |
| | | |
| | | // æ ¹æ®ç³æ¥idæ¥çç³æ¥è¿åº¦ |
| | | export function getDeclareHistoryList(data) { |
| | | return http.post(`/wechat/getDeclareHistoryList`, data) |
| | | } |
| | |
| | | module.exports = (vm) => { |
| | | // console.log(vm)
|
| | | uni.$u.http.interceptors.request.use((config) => { // å¯ä½¿ç¨async await å弿¥æä½
|
| | | // åå§åè¯·æ±æ¦æªå¨æ¶ï¼ä¼æ§è¡æ¤æ¹æ³ï¼æ¤æ¶data为undefinedï¼èµäºé»è®¤{}
|
| | | // åå§åè¯·æ±æ¦æªå¨æ¶ï¼ä¼æ§è¡æ¤æ¹æ³ï¼æ¤æ¶data为undefinedï¼èµäºé»è®¤{} |
| | | console.log('è¯·æ±æ¦æª');
|
| | | config.data = config.data || {} |
| | | const token = vm.$store.state.token |
| | | if (token) { |
| | |
| | | * ååºæ¦æª
|
| | | * @param {Object} http
|
| | | */ |
| | | import { coustomLogin, wxEmpower } from '@/util/api/index'
|
| | | module.exports = (vm) => {
|
| | | uni.$u.http.interceptors.response.use((response) => {
|
| | | /* 对ååºæååç¹ä»ä¹ å¯ä½¿ç¨async await å弿¥æä½*/
|
| | |
| | | const custom = response.config?.custom
|
| | | if (data.code !== 200) { // æå¡ç«¯è¿åçç¶æç ä¸çäº200ï¼åreject() |
| | | uni.$u.toast(data.message) |
| | | if (data.code === 5112) { |
| | | if (data.code === 401) { |
| | | // console.log('æªç»å½ãç»å½å¤±æ'); |
| | | // æªç»å½ãç»å½å¤±æ |
| | | uni.reLaunch({ |
| | | url: '/pages/index/index' |
| | | url: '/pages/login/login' |
| | | }) |
| | | } |
| | | return Promise.reject(data)
|
| | |
| | | # VUE_APP_BASE_URL = 'http://192.168.0.35:10021/' |
| | | |
| | | # æµè¯æå¡å¨ |
| | | # VUE_APP_BASE_URL = 'https://dmtest.ahapp.net/doumeeplant_api/' |
| | | VUE_APP_BASE_URL = 'https://dmtest.ahapp.net/doumeeplant_api/' |
| | | |
| | |
| | | export default { |
| | | name: 'BaseTable', |
| | | extends: BasePage, |
| | | data () { |
| | | data() { |
| | | return { |
| | | // æ¥å£ |
| | | api: null, |
| | |
| | | * |
| | | * @param extParams é
ç½®åæ° |
| | | */ |
| | | config (extParams) { |
| | | config(extParams) { |
| | | if (extParams == null) { |
| | | throw new Error('Parameter can not be null of method \'config\' .') |
| | | } |
| | |
| | | /** |
| | | * æç´¢ï¼ç¹å»æç´¢æé®æ¶è§¦åï¼ |
| | | */ |
| | | search () { |
| | | search() { |
| | | this.handlePageChange(1) |
| | | }, |
| | | /** |
| | | * 导åºExcelï¼ç¹å»å¯¼åºæé®æ¶è§¦åï¼ |
| | | */ |
| | | exportExcel () { |
| | | exportExcel() { |
| | | this.__checkApi() |
| | | this.$dialog.exportConfirm('确认导åºåï¼') |
| | | .then(() => { |
| | |
| | | /** |
| | | * éç½®æç´¢æ¡ä»¶ï¼ç¹å»éç½®æé®æ¶è§¦åï¼ |
| | | */ |
| | | reset () { |
| | | reset() { |
| | | this.$refs.searchForm.resetFields() |
| | | this.search() |
| | | }, |
| | |
| | | * |
| | | * @param pageSize 页容é |
| | | */ |
| | | handleSizeChange (pageSize) { |
| | | handleSizeChange(pageSize) { |
| | | this.tableData.pagination.pageSize = pageSize |
| | | this.search() |
| | | }, |
| | |
| | | * |
| | | * @param selectedRows å·²éä¸çè¡æ°ç» |
| | | */ |
| | | handleSelectionChange (selectedRows) { |
| | | handleSelectionChange(selectedRows) { |
| | | this.tableData.selectedRows = selectedRows |
| | | }, |
| | | /** |
| | |
| | | * |
| | | * @param sortData æåºåæ° |
| | | */ |
| | | handleSortChange (sortData) { |
| | | handleSortChange(sortData) { |
| | | this.tableData.sorts = [] |
| | | if (sortData.order != null) { |
| | | this.tableData.sorts.push({ |
| | |
| | | * |
| | | * @param pageIndex æ°é¡µç |
| | | */ |
| | | handlePageChange (pageIndex) { |
| | | handlePageChange(pageIndex) { |
| | | this.__checkApi() |
| | | this.tableData.pagination.pageIndex = pageIndex || this.tableData.pagination.pageIndex |
| | | this.isWorking.search = true |
| | |
| | | * @param row è¡å¯¹è±¡ |
| | | * @param childConfirm å é¤åèç¹æ¶æ¯å¦è¿è¡äºæ¬¡ç¡®è®¤ |
| | | */ |
| | | deleteById (row, childConfirm = true) { |
| | | deleteById(row, childConfirm = true) { |
| | | this.__checkApi() |
| | | let message = `确认å é¤${this.module}ã${row[this.configData['field.main']]}ãå?` |
| | | if (childConfirm && row.children != null && row.children.length > 0) { |
| | |
| | | this.isWorking.delete = false |
| | | }) |
| | | }) |
| | | .catch(() => {}) |
| | | .catch(() => { }) |
| | | }, |
| | | /** |
| | | * æ¹éå é¤ï¼ç¹å»æ¹éå 餿¶è§¦åï¼ |
| | | * |
| | | * @param childConfirm å é¤åèç¹æ¶æ¯å¦è¿è¡äºæ¬¡ç¡®è®¤ |
| | | */ |
| | | deleteByIdInBatch (childConfirm = true) { |
| | | deleteByIdInBatch(childConfirm = true) { |
| | | this.__checkApi() |
| | | if (this.tableData.selectedRows.length === 0) { |
| | | this.$tip.warning('请è³å°éæ©ä¸æ¡æ°æ®') |
| | |
| | | this.isWorking.delete = false |
| | | }) |
| | | }) |
| | | .catch(() => {}) |
| | | .catch(() => { }) |
| | | }, |
| | | /** |
| | | * å é¤åå¤çï¼å¨åè¡å 餿å¤è¡å é¤åè°ç¨ |
| | |
| | | * @param deleteCount å 餿°é |
| | | * @private |
| | | */ |
| | | __afterDelete (deleteCount = 1) { |
| | | __afterDelete(deleteCount = 1) { |
| | | this.$tip.apiSuccess('å 餿å') |
| | | // å é¤å½å页æå䏿¡è®°å½æ¶æ¥è¯¢ä¸ä¸é¡µæ°æ® |
| | | if (this.tableData.list.length - deleteCount === 0) { |
| | |
| | | * |
| | | * @private |
| | | */ |
| | | __checkApi () { |
| | | __checkApi() { |
| | | console.log(this.api); |
| | | if (this.api == null) { |
| | | throw new Error('The page is not initialized, you can use method \'this.config\' to initialize this page.') |
| | | } |
| | | }, |
| | | /** |
| | | * æ°åç¸å |
| | | * @param {*} arg1 |
| | | * @param {*} arg2 |
| | | * @returns |
| | | */ |
| | | accAdd(arg1, arg2) { |
| | | return this.changeNum(arg1, arg2) |
| | | }, |
| | | |
| | | /** |
| | | * æ°åç¸å |
| | | * @param {*} arg1 |
| | | * @param {*} arg2 |
| | | * @returns |
| | | */ |
| | | accSub(arg1, arg2) { |
| | | return this.changeNum(arg1, arg2, false) |
| | | }, |
| | | |
| | | /** |
| | | * æ°åç¸ä¹ |
| | | * @param {*} arg1 |
| | | * @param {*} arg2 |
| | | * @returns |
| | | */ |
| | | accMul(arg1, arg2) { |
| | | let m = 0; |
| | | m = accAdd(m, getDecimalLength(arg1)) |
| | | m = accAdd(m, getDecimalLength(arg2)) |
| | | return getNum(arg1) * getNum(arg2) / Math.pow(10, m) |
| | | }, |
| | | |
| | | /** |
| | | * æ°åç¸é¤ |
| | | * @param {*} arg1 |
| | | * @param {*} arg2 |
| | | * @returns |
| | | */ |
| | | accDiv(arg1, arg2) { |
| | | let t1, t2; |
| | | t1 = this.getDecimalLength(arg1) |
| | | t2 = this.getDecimalLength(arg2) |
| | | if (t1 - t2 > 0) { |
| | | return (this.getNum(arg1) / this.getNum(arg2)) / Math.pow(10, t1 - t2) |
| | | } else { |
| | | return (this.getNum(arg1) / this.getNum(arg2)) * Math.pow(10, t2 - t1) |
| | | } |
| | | }, |
| | | |
| | | changeNum(arg1 = '', arg2 = '', isAdd = true) { |
| | | function changeInteger(arg, r, maxR) { |
| | | if (r != maxR) { |
| | | let addZero = '' |
| | | for (let i = 0; i < maxR - r; i++) { |
| | | addZero += '0' |
| | | } |
| | | arg = Number(arg.toString().replace('.', '') + addZero) |
| | | } else { |
| | | arg = this.getNum(arg) |
| | | } |
| | | return arg |
| | | } |
| | | let r1, r2, maxR, m; |
| | | r1 = this.getDecimalLength(arg1) |
| | | r2 = this.getDecimalLength(arg2) |
| | | maxR = Math.max(r1, r2) |
| | | arg1 = changeInteger(arg1, r1, maxR) |
| | | arg2 = changeInteger(arg2, r2, maxR) |
| | | m = Math.pow(10, maxR) |
| | | if (isAdd) { |
| | | return (arg1 + arg2) / m |
| | | } else { |
| | | return (arg1 - arg2) / m |
| | | } |
| | | }, |
| | | |
| | | getDecimalLength(arg = '') { |
| | | try { |
| | | return arg.toString().split(".")[1].length |
| | | } catch (e) { |
| | | return 0 |
| | | } |
| | | }, |
| | | |
| | | getNum(arg = '') { |
| | | return Number(arg.toString().replace(".", "")) |
| | | } |
| | | |
| | | } |
| | | } |
| | | </script> |
| | |
| | | // if (!isEdit) { |
| | | // this.form.materialId = res[0]?res[0].materialId:'' |
| | | // } |
| | | // this.selectMaterial(this.form.materialId) |
| | | if (isEdit) { |
| | | this.selectMaterial(this.form.materialId) |
| | | } |
| | | }) |
| | | .catch(err => { |
| | | console.log(err) |
| | |
| | | layout="total, prev, pager, next, jumper" |
| | | :total="pagination.total" |
| | | @current-change="handlePageChange" |
| | | background> |
| | | </el-pagination> |
| | | background |
| | | ></el-pagination> |
| | | </div> |
| | | </SelectMaterail> |
| | | </GlobalWindow> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="æå±åå·¥ï¼" prop="userIds"> |
| | | <el-select v-model="form.userIds" multiple clearable filterable placeholder="è¯·éæ©" @change="selectUser"> |
| | | <el-select v-model="form.userIds" reserve-keyword multiple clearable filterable placeholder="è¯·éæ©" @change="selectUser"> |
| | | <el-option |
| | | v-for="(item, index) in select()" |
| | | :key="item.id" |
| | |
| | | <SelectMaterail |
| | | ref="selectMaterail" |
| | | @selectData="selectData" |
| | | > |
| | | </SelectMaterail> |
| | | ></SelectMaterail> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | |
| | | }, |
| | | sorts: null |
| | | }).then(res => { |
| | | // console.log('res', res) |
| | | this.pagination.total = res.total |
| | | this.pagination.pageSize = res.capacity |
| | | this.pagination.pageIndex = res.page |
| | | this.tempMaterials = res.records |
| | | this.isSelectMaterial = true |
| | | // console.log('getTempMaterails', this.selectedAllMaterails) |
| | | if (this.selectedAllMaterails[this.pagination.pageIndex]) { |
| | | // debugger |
| | | for (const item of this.selectedAllMaterails[this.pagination.pageIndex]) { |
| | | |
| | | this.$nextTick(() => { |
| | | this.tempMaterials.forEach(tempItem => { |
| | | if (tempItem.id === item.id) { |
| | | console.log(tempItem.mmodelUnionName); |
| | | this.$refs.materials.toggleRowSelection(tempItem, true) |
| | | } |
| | | }) |
| | | }) |
| | | } |
| | | } |
| | | }).catch(err => { |
| | | this.$tip.error(err) |
| | | }) |
| | |
| | | this.getTempMaterails() |
| | | }, |
| | | handleSelectionChange (selectedRows) { |
| | | // console.log(selectedRows) |
| | | console.log(selectedRows) |
| | | this.selectedAllMaterails[this.pagination.pageIndex] = selectedRows |
| | | console.log(this.selectedAllMaterails); |
| | | }, |
| | | selectData () { |
| | | // console.log(this.selectedAllMaterails) |
| | |
| | | this.pagination.pageIndex = res.page |
| | | this.tempMaterials = res.records |
| | | this.isSelectMaterial = true |
| | | if (this.selectedAllMaterails[this.pagination.pageIndex]) { |
| | | for (const item of this.selectedAllMaterails[this.pagination.pageIndex]) { |
| | | this.$nextTick(() => { |
| | | this.tempMaterials.forEach(tempItem => { |
| | | if (tempItem.id === item.id) { |
| | | console.log(tempItem.mmodelUnionName); |
| | | this.$refs.materials.toggleRowSelection(tempItem, true) |
| | | } |
| | | }) |
| | | }) |
| | | } |
| | | } |
| | | }).catch(err => { |
| | | this.$tip.error(err) |
| | | }) |
| | |
| | | handleSelectionChange (selectedRows) { |
| | | // console.log(selectedRows) |
| | | this.selectedAllMaterails[this.pagination.pageIndex] = selectedRows |
| | | console.log(this.selectedMaterails); |
| | | }, |
| | | selectData () { |
| | | console.log(this.selectedAllMaterails) |
| | |
| | | <el-select |
| | | v-model="form.proUserList" |
| | | :disabled="!form.proGroupId" |
| | | reserve-keyword |
| | | multiple |
| | | clearable |
| | | filterable |
| | |
| | | <el-table-column prop="materialName" label="ç©æåç§°" min-width="140px"></el-table-column> |
| | | <el-table-column prop="materialCode" label="ç©æç¼ç " min-width="100px"></el-table-column> |
| | | <el-table-column prop="procedureName" label="å·¥åºåç§°" min-width="100px"></el-table-column> |
| | | <el-table-column prop="salary" label="å·¥èµåä»·ï¼å
)" min-width="100px"></el-table-column> |
| | | <el-table-column prop="salary" label="å·¥èµåä»·ï¼å
)" min-width="100px"> |
| | | <!-- <template slot-scope="{row}"> |
| | | {{ accDiv(row.salary, 100) }} |
| | | </template> --> |
| | | </el-table-column> |
| | | <el-table-column prop="num" label="æ å产åº" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | {{ (row.num == 0 || !row.num) ? '-' : row.num }} |
| | |
| | | <keep-alive><TableLayout v-permissions="['ext:plansext:query']"> |
| | | <!-- æç´¢è¡¨å --> |
| | | <el-form slot="search-form" ref="searchForm" :model="searchForm" label-suffix="ï¼" label-width="110px" inline> |
| | | <el-form-item label="æç´¢ä¿¡æ¯" prop="mixParam"> |
| | | <el-input v-model="searchForm.mixParam" placeholder="请è¾å
¥ç©æåç§°/ç¼ç /å·¥åºåç§°" @keypress.enter.native="search"></el-input> |
| | | <el-form-item label="ç©æä¿¡æ¯" prop="mixParam"> |
| | | <el-input v-model="searchForm.mixParam" placeholder="请è¾å
¥ç©æåç§°/ç¼ç " @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æå计å" prop="workPlanCode"> |
| | | <el-input v-model="searchForm.workPlanCode" placeholder="请è¾å
¥æå计åç¼ç " @keypress.enter.native="search"></el-input> |
| | |
| | | <!-- è¡¨æ ¼åå页 --> |
| | | <template v-slot:table-wrap> |
| | | <ul class="toolbar"> |
| | | <!-- <li v-permissions="['ext:plansext:importExcel']"> |
| | | <li v-permissions="['ext:plansext:distribute']"><el-button type="primary" @click="plansDistribute">æ¹éåé
</el-button></li> |
| | | <li v-permissions="['ext:plansext:importExcel']"> |
| | | <ImportButton |
| | | text="导å
¥" |
| | | template-name="plans_import_template.xlsx" |
| | | template-path="template/plans_import_template.xlsx" |
| | | template-path="/template/plans_import_template.xlsx" |
| | | action="/ext/plansExt/importBatch" |
| | | @success="search" |
| | | /> |
| | | </li> --> |
| | | </li> |
| | | <!-- <li v-permissions="['ext:plansext:create']"><el-button type="primary" @click="$refs.operaPlansExtWindow.open('æ°å»ºç产计å')" >æ°å»º</el-button></li> --> |
| | | <!-- <li v-permissions="['ext:plansext:publish']"><el-button type="primary" @click="planRelease" >åå¸</el-button></li> --> |
| | | <li v-permissions="['ext:plansext:distribute']"><el-button type="primary" @click="plansDistribute">æ¹éåé
</el-button></li> |
| | | <li v-permissions="['ext:plansext:exportExcel']"><el-button type="primary" :loading="isWorking.export" @click="exportExcel">导åº</el-button></li> |
| | | <!-- <li v-permissions="['ext:plansext:exportExcel']"><el-button type="primary" :loading="isWorking.export" @click="exportExcel">导åº</el-button></li> --> |
| | | <!-- <li v-permissions="['ext:plansext:planpink']"><el-button type="primary" @click="$refs.operaWTransferExtWindow.open('计å颿')">计å颿</el-button></li> --> |
| | | <!-- <li v-permissions="['ext:plansext:stockpink']"><el-button type="primary" @click="$refs.operaPlanStaock.open('åºå颿')">åºå颿</el-button></li> --> |
| | | <!-- <li v-permissions="['ext:plansext:delete']"><el-button type="danger" plain @click="deleteByIdInBatch">æ¹éå é¤</el-button></li> --> |
| | |
| | | <el-table-column prop="userInfo.departName" label="é¨é¨" min-width="100px"> </el-table-column> |
| | | <el-table-column prop="jijianSalary" label="计件工èµ" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | {{ row.jijianSalary / 100 }} |
| | | {{ accDiv(Math.round(row.jijianSalary), 100) }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="jishiSalary" label="计æ¶å·¥èµ" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | {{ row.jishiSalary / 100 }} |
| | | {{ accDiv(Math.round(row.jishiSalary), 100) }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="num" label="æ¥å·¥åæ»æ°" min-width="100px"></el-table-column> |
| | | <el-table-column prop="totalSalary" label="å°è®¡å·¥èµ(å
)" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | {{ row.totalSalary / 100 }} |
| | | {{ accDiv(Math.round(row.totalSalary), 100) }} |
| | | </template> |
| | | </el-table-column> |
| | | |
| | |
| | | <span class="long-title-style">{{ row.procedureName }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="qualifiedNum" label="åæ ¼æ°é" min-width="100px"> |
| | | <!-- <el-table-column prop="qualifiedNum" label="åæ ¼æ°é" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span class="valid-style">{{ row.qualifiedNum + row.umodel.name }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="unqualifiedNum" label="ä¸è¯æ°é" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span class="unvalid-style">{{ row.num + row.umodel.name}}</span> |
| | | <!-- <span :class="row.materialDonetype==0 ? 'valid-style' : ''">{{ row.num + row.umodel.name }}</span> --> |
| | | <span class="unvalid-style">{{ row.unqualifiedNum + row.umodel.name}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="num" label="æ¥å·¥æ°é" min-width="100px"></el-table-column> |
| | | <!-- <el-table-column prop="amodel.code" label="å·¥è£
å¨å
·" min-width="100px"></el-table-column> --> |
| | | </el-table-column> --> |
| | | <el-table-column prop="doneType" label="è´¨é屿§" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.materialDonetype==0" class="valid-style">åæ ¼</span> |
| | | <span v-else-if="row.materialDonetype==1" class="unvalid-style">ä¸è¯</span> |
| | | <span v-else>-</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="num" label="æ°é" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span :class="row.materialDonetype==0 ? 'valid-style' : 'unvalid-style'">{{ row.num + row.umodel.name }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- <el-table-column prop="num" label="æ¥å·¥æ°é" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | {{ row.num + row.umodel.name }} |
| | | </template> |
| | | </el-table-column> --> |
| | | <el-table-column prop="deviceCode" label="设å¤" show-overflow-tooltip min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span class="long-title-style" :title="row.deviceCode + ' | ' + row.deviceName">{{ row.deviceCode + ' | ' + row.deviceName}}</span> |
| | |
| | | if (index === 0) { |
| | | sums[index] = 'å计'; |
| | | return; |
| | | } else if (index === 4 || index === 6 || index === 8 || index === 10) { |
| | | } else if (index === 4 || index === 8 || index === 10) { |
| | | // || index === 8 || index === 9 || index === 16 || index === 17 |
| | | sums[index] = '-'; |
| | | return; |