拷贝xinfengtianneng

This commit is contained in:
2024-02-28 10:33:22 +08:00
commit 17110f91a3
110 changed files with 17040 additions and 0 deletions

147
pages/home/home.vue Normal file
View File

@@ -0,0 +1,147 @@
<template>
<view class="home_wraper">
<view class="zd_content">
<view class="header">首页</view>
<view class="userInfo-wrap">
<view class="userInfo">
<text v-if="userName !== ''" class="p1">{{userName}}</text>
<text class="p2">欢迎进入信丰天能手持系统</text>
</view>
<view class="exit" @tap="Quit">
<view class="icon-exit"></view>
<view class="exit-text">退出</view>
</view>
</view>
<view class="zd_home_wrapper">
<view class="menus_wrap">
<view class="sec_menu_wrap">
<view class="sec_menu-item" v-for="(e, i) in menuList" :key="e.id" @tap="toPage(e)">
<image class="menu-img" :src="require('../../static/image/menu/' + e.icon + '.png')" alt="">
<view class="menu-name">{{e.name}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
userName: '',
menuList: [
{id: '1', name: '人工排产', icon: 'RF01', path: '/pages/modules/man-paichan'},
{id: '2', name: '涂线板', icon: 'RF02', path: '/pages/modules/wire-board'},
{id: '3', name: '物料库存', icon: 'RF03', path: '/pages/modules/mater-inventory'}
]
};
},
created () {
this.$store.dispatch('setPublicObj', '')
if (this.$store.getters.userInfo) {
this.userName = JSON.parse(this.$store.getters.userInfo).username
}
},
methods: {
toPage (e) {
let url = e.path
uni.redirectTo({
url: url
})
},
Quit () {
this.$store.dispatch('delUserInfo')
uni.redirectTo({
url: '/pages/login/login'
})
}
}
}
</script>
<style lang="stylus">
@import '../../common/style/mixin.styl';
.home_wraper
_wh(100%, 100%)
overflow hidden
.zd_content
padding 0 24rpx
height 100%
top 0
padding-top calc(var(--status-bar-height) + 86rpx)
background linear-gradient(to bottom, #fae2ca 0%, #fff5ea 20%, #fdfdfd 100%)
.header
position fixed
left 0
top 0
padding-top var(--status-bar-height)
z-index 100
_wh(100%, calc(var(--status-bar-height) + 86rpx))
background-color #f8e6db
_font(36rpx,86rpx,#333,,center)
.userInfo-wrap
_fj()
_wh(100%,190rpx)
padding 0 30rpx
background-color $red
_bis('../../static/image/info_bg.png',auto,100%,right,bottom)
border-radius 12rpx
margin-bottom 24rpx
.userInfo
_fj(,flex-start,column)
.p1
_font(34rpx,1,#fff)
padding-bottom 18rpx
.p2
_font(26rpx,1,#fff)
.exit
_fj()
height 50rpx
padding 0 20rpx
border 1px solid #FF967C
border-radius 20rpx
.icon-exit
_wh(22rpx, 22rpx)
_bis('../../static/image/exit.png',22rpx)
.exit-text
_font(32rpx,50rpx,#fff,,right)
padding-left 10rpx
.zd_home_wrapper
_wh(100%, calc(100% - 238rpx))
margin-bottom 24rpx
overflow-y scroll
.menus_wrap
width 100%
background-color #fff
border-radius: 12rpx;
padding: 14rpx;
margin-bottom 24rpx
box-shadow: 0 4rpx 10rpx 4rpx rgba(0,0,0,.1);
.fir_menu_wrap
_wh(100%, 68rpx)
.fir_menu_title
_font(36rpx, 68rpx, #333, bold,)
.sec_menu_wrap
_fj(flex-start,flex-start,,wrap)
align-content: flex-start
.sec_menu-item
_fj()
flex-direction column
_wh(30%, auto)
margin-bottom 40rpx
_font(26rpx, 60rpx,#e74f1a,,center)
&:nth-child(3n+2)
margin-left 5%
margin-right 5%
::v-deep .menu-img
_wh(100%, auto)
img
position relative
opacity 1
_wh(55%, auto)
margin 0 auto 0.2rpx
.menu-name
_font(28rpx, 38rpx, #444,,center)
</style>

204
pages/login/login.vue Normal file
View File

@@ -0,0 +1,204 @@
<template>
<view class="login_content">
<view class="info-wraper">
<view class="p1">欢迎来到</view>
<view class="p2">信丰天能手持系统</view>
<view class="login-bg"></view>
</view>
<view class="form-wraper">
<view class="input-box">
<input class="large-input" type="text" placeholder="请输入用户名" v-model="user">
</view>
<div class="input-box">
<input class="large-input" :password="!showPassword" placeholder="请输入密码" v-model="password">
<span class="iconfont icon_eye_close" :class="[showPassword ? 'icon_eye_active' : '']" @tap="changePassword">&#xe6a0;</span>
</div>
<view class="radio-box">
<view class="radio-wrap">
<span class="iconfont icon_unchecked" :class="{'icon_checked': saveUser}" @tap="toSaveUser">&#xe66b;</span>
<text class="radio-label">记住用户名</text>
</view>
<text class="setup-text" @tap="setup">设置</text>
<text class="setup-text" @tap="isUpdate">升级版本</text>
</view>
<button class="login-btn" :disabled="disabled" @tap="toLogin">确认登录</button>
<view v-if="version !== ''" class="version-name">v{{version}}</view>
</view>
<Up-grade v-if="grade === true" @closeUpdate="closeUpdate" :androidUrl="androidUrl"></up-grade>
</view>
</template>
<script>
import { RSAencrypt } from '@/utils/jsencrypt.js'
import {handLogin, pdaUpdate} from '@/utils/getData2.js'
import UpGrade from './upgrade.vue'
export default {
components: {
UpGrade
},
data() {
return {
user: this.$store.getters.loginName ? this.$store.getters.loginName : '',
password: '',
showPassword: false,
saveUser: this.$store.getters.loginName ? true : false,
disabled: false,
version: '',
versionCode: '',
grade: false,
androidUrl: ''
}
},
created () {
//#ifdef APP-PLUS
// 获取本地应用资源版本号
plus.runtime.getProperty(plus.runtime.appid, (info) => {
// console.log(JSON.stringify(info));
this.version = info.version;
this.versionCode = info.versionCode ;
})
//#endif
},
methods: {
isUpdate () {
this._pdaUpdate()
},
toSaveUser() {
this.saveUser = !this.saveUser
},
changePassword() {
this.showPassword = !this.showPassword
},
setup () {
uni.redirectTo({
url: '/pages/login/setup'
})
},
async toLogin() {
// uni.redirectTo({
// url: '/pages/home/home'
// })
this.disabled = true
if (this.user === '') {
uni.showToast({
title: '用户名不能为空',
icon: 'none'
})
this.disabled = false
return
}
if (this.password === '') {
uni.showToast({
title: '密码不能为空',
icon: 'none'
})
this.disabled = false
return
}
try {
let res = await handLogin(this.user, RSAencrypt(this.password))
if (this.saveUser) {
this.$store.dispatch('saveLoginName', this.user)
} else {
this.$store.dispatch('delLoginName', '')
}
this.$store.dispatch('saveUserInfo', JSON.stringify(res.user.user))
this.$store.dispatch('saveToken', res.token)
uni.redirectTo({
url: '/pages/home/home'
})
this.disabled = false
} catch (e) {
this.disabled = false
}
},
async _pdaUpdate () {
let res = await pdaUpdate()
// if (res.versionName === this.version) {
// uni.showToast({
// title: '当前为最新版本',
// icon: 'none'
// })
// } else {
// this.grade = true
// this.androidUrl = res.url
// }
this.grade = true
this.androidUrl = res.url
},
closeUpdate () {
this.grade = false
}
}
}
</script>
<style lang="stylus" scoped>
@import '../../common/style/mixin.styl';
.login_content
position: relative
top 0
height: 100%
_bis('../../static/image/login_bg.png', 100%,,bottom)
background-color #fff
overflow: hidden
.info-wraper
position relative
_wh(100%, auto)
padding 190rpx 0 55rpx 0
background linear-gradient(to bottom, #fae2ca 0%, #fff5ea 20%, #fdfdfd 100%)
.p1
position relative
z-index 10
_font(40rpx,75rpx,#444,666)
padding 0 40rpx
.p2
position relative
z-index 10
_font(46rpx,1,#444,600)
padding: 10rpx 40rpx 0 40rpx
.login-bg
position: absolute
z-index: 1
_wh(80%, 100%)
right 0
bottom 0
opacity: 0.3
_bis('../../static/image/bg.png', 100%,,bottom)
.form-wraper
width 100%
padding 0 40rpx
.input-box
_fj()
margin-top 68rpx
height 75rpx
border-bottom 1rpx solid #e2e2e2
.large-input
_wh(calc(100% - 40rpx), 74rpx)
_font(32rpx,74rpx,#999)
padding-left 10rpx
.radio-box
_fj()
margin: 25rpx 0 70rpx 0
height: 34rpx
.radio-wrap
_fj(flex-start)
height: 34rpx
flex: 2
.radio-label
_font(28rpx, 28rpx,#333)
padding-left: 10rpx
.setup-text
_font(28rpx, 28rpx,$red,,right)
padding-left 25rpx
.login-btn
width 100%
border-radius 46rpx
_font(36rpx,92rpx,#fff,,center)
background-color $red
.version-name
width 100%
position: absolute
bottom: 30rpx
_font(30rpx, 60rpx, #999,,center)
</style>

82
pages/login/setup.vue Normal file
View File

@@ -0,0 +1,82 @@
<template>
<view class="zd_container">
<nav-bar title="设置" :inner2="true" @goIn="goIn" :show1="false"></nav-bar>
<view class="zd_content">
<view class="zd_wrapper">
<view class="input-wrap">
<view class="input-label">服务器地址</view>
<input type="text" class="setup-input" placeholder="请输入服务器地址" v-model="addrip">
</view>
</view>
<!-- <view class="zd_wrapper">
<view class="input-wrap">
<view class="input-label">刷新时间(s)</view>
<input type="text" class="setup-input" placeholder="请输入刷新时间" v-model="setTime">
</view>
</view> -->
</view>
<view class="submit-bar">
<button class="submit-button" @click="_submit">确认</button>
</view>
</view>
</template>
<script>
import NavBar from '@/components/NavBar.vue'
export default {
components: {
NavBar
},
data() {
return {
options: [],
index: '',
addrip: this.$store.getters.baseUrl,
setTime: this.$store.getters.setTime / 1000
};
},
methods: {
goIn () {
uni.redirectTo({
url: '/pages/login/login'
})
},
_submit () {
if (this.addrip === '') {
uni.showToast({
title: '服务器地址',
icon: 'none'
})
return
}
if (this.setTime === '') {
uni.showToast({
title: '请填写刷新时间',
icon: 'none'
})
return
}
// 存值
this.$store.dispatch('setConfig',{baseUrl: this.addrip, setTime: this.setTime * 1000, setPrintName: this.index})
uni.redirectTo({
url: '/pages/login/login'
})
}
}
}
</script>
<style lang="stylus">
@import '../../common/style/mixin.styl';
.input-wrap
width 100%
_fj()
.input-label
wh(200rpx, 58rpx)
_font(28rpx,58rpx,#464646)
.setup-input
_wh(calc(100% - 200rpx), 58rpx)
background #fff
_font(28rpx,58rpx,#323232)
padding 0 10rpx
</style>

231
pages/login/upgrade.vue Normal file
View File

@@ -0,0 +1,231 @@
<template>
<view class="mask flex-center">
<view class="content botton-radius">
<view class="content-top">
<text class="content-top-text">发现新版本</text>
<image class="content-top" style="top: 0;" width="100%" height="100%" src="../../static/image/bg_top.png">
</image>
</view>
<view class="content-header"></view>
<view class="content-body">
<view class="title">
<text>又有新版本了升级到最新版本享受更丰富稳定快速的功能和体验</text>
</view>
<view class="footer flex-center">
<template>
<template v-if="!downloadSuccess">
<view class="progress-box flex-column" v-if="downloading">
<progress class="progress" border-radius="35" :percent="downLoadPercent" activeColor="#3DA7FF" show-info stroke-width="10" />
<view style="width:100%;font-size: 28rpx;display: flex;justify-content: space-around;">
<text>安装包下载中请稍后</text>
<text>({{downloadedSize}}/{{packageFileSize}}M)</text>
</view>
</view>
<button v-else class="content-button" style="border: none;color: #fff;" plain @click="updateApp">立即升级</button>
</template>
</template>
</view>
</view>
<image v-if="is_mandatory" class="close-img" src="../../static/image/app_update_close.png" @click.stop="closeUpdate"></image>
</view>
</view>
</template>
<script>
export default {
data () {
return {
downloadSuccess: false,
downloading: false,
downLoadPercent: 0,
downloadedSize: 0,
packageFileSize: 0,
is_mandatory: true
}
},
props: {
androidUrl: String
},
methods: {
updateApp() {
this.is_mandatory = false
this.downloading = true
this.doUpData(this.androidUrl);
},
doUpData(Url) {
const downloadTask = uni.downloadFile({
url: Url,
success: downloadResult => {
if (downloadResult.statusCode == 200) {
this.downloadSuccess = true;
plus.runtime.install(
//安装软件
downloadResult.tempFilePath,
{
force: true
},
function(res) {
plus.runtime.restart();
}
);
}
},
complete: () => {
this.downloading = false;
this.downLoadPercent = 0
this.downloadedSize = 0
this.packageFileSize = 0
}
});
// 下载进度
downloadTask.onProgressUpdate(res => {
this.downLoadPercent = res.progress;
this.downloadedSize = (res.totalBytesWritten / Math.pow(1024, 2)).toFixed(2);
this.packageFileSize = (res.totalBytesExpectedToWrite / Math.pow(1024, 2)).toFixed(2);
});
},
closeUpdate () {
this.$emit('closeUpdate')
}
}
}
</script>
<style>
page {
background: transparent;
}
.flex-center {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
justify-content: center;
align-items: center;
}
.mask {
position: fixed;
z-index: 99;
left: 0;
top: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, .9);
}
.botton-radius {
border-bottom-left-radius: 30rpx;
border-bottom-right-radius: 30rpx;
}
.content {
position: relative;
z-index: 100;
top: 0;
width: 600rpx;
background-color: #fff;
box-sizing: border-box;
padding: 0 50rpx;
font-family: Source Han Sans CN;
}
.text {
/* #ifndef APP-NVUE */
display: block;
/* #endif */
line-height: 200px;
text-align: center;
color: #FFFFFF;
}
.content-top {
position: absolute;
top: -195rpx;
left: 0;
width: 600rpx;
height: 270rpx;
}
.content-top-text {
font-size: 45rpx;
font-weight: bold;
color: #F8F8FA;
position: absolute;
top: 120rpx;
left: 50rpx;
z-index: 1;
}
.content-header {
height: 80rpx;
}
.title {
font-size: 33rpx;
font-weight: bold;
color: #3DA7FF;
line-height: 38rpx;
color: #333;
}
.footer {
height: 150rpx;
display: flex;
align-items: center;
justify-content: space-around;
}
.box-des-scroll {
box-sizing: border-box;
padding: 0 40rpx;
height: 50rpx;
text-align: left;
}
.box-des {
font-size: 26rpx;
color: #000000;
line-height: 50rpx;
}
.progress-box {
width: 100%;
}
.progress {
width: 90%;
height: 40rpx;
border-radius: 35px;
}
.close-img {
width: 70rpx;
height: 70rpx;
z-index: 1000;
position: absolute;
bottom: -120rpx;
left: calc(50% - 70rpx / 2);
}
.content-button {
text-align: center;
flex: 1;
font-size: 30rpx;
font-weight: 400;
color: #FFFFFF;
border-radius: 40rpx;
margin: 0 18rpx;
height: 80rpx;
line-height: 80rpx;
background: linear-gradient(to right, #1785ff, #3DA7FF);
}
.flex-column {
display: flex;
flex-direction: column;
align-items: center;
}
</style>

View File

@@ -0,0 +1,140 @@
<template>
<view class="zd_container">
<nav-bar title="人工排产"></nav-bar>
<view class="zd_content">
<view class="zd_wrapper grid-wraper">
<view class="slide_new">
<table>
<thead>
<tr>
<th>工单号</th>
<th>物料编码</th>
<th>物料名称</th>
<th>工单状态</th>
<th>开工人</th>
<th>创建者</th>
<th>计划量</th>
<th>实际量</th>
</tr>
</thead>
<tbody>
<tr v-for="(e, i) in dataList" :key="i" @tap="toCheck(e)" :class="{'checked': e.workorder_code === pkId}">
<td class="fontcol1">{{e.workorder_code}}</td>
<td>{{e.material_code}}</td>
<td>{{e.material_name}}</td>
<td><view class="fontbg" :class="'fontbg' + e.workorder_status">{{textState(e.workorder_status)}}</view></td>
<td>{{e.operator}}</td>
<td>{{e.create_name}}</td>
<!-- <td><input class="td_input" type="number" v-model="e.plan_qty"></td> -->
<td class="fontcol2">{{e.plan_qty}}</td>
<td class="fontcol2">{{e.real_qty}}</td>
</tr>
</tbody>
</table>
</view>
</view>
</view>
<view class="zd-row submit-bar_new">
<button class="zd-col-11 submit-button_new" :class="{'btn-disabled': !pkId}" :disabled="disabled1" @tap="_productionScheduling">开工</button>
<button class="zd-col-11 submit-button_new" :class="{'btn-disabled': !pkId}" :disabled="disabled2" @tap="_productionComplete">完工</button>
</view>
</view>
</template>
<script>
import NavBar from '@/components/NavBar.vue'
import {manualSortingOrders, productionScheduling, productionComplete} from '@/utils/getData2.js'
export default {
components: {
NavBar
},
data() {
return {
dataList: [],
disabled1: false,
disabled2: false,
pkId: ''
};
},
created () {
this._manualSortingOrders()
},
methods: {
textState (e) {
switch (e) {
case '1':
return '未生产'
break
case '3':
return '生产中'
break
case '4':
return '暂停'
break
default:
return ''
break
}
},
/** grid查询 */
async _manualSortingOrders () {
let res = await manualSortingOrders()
this.dataList = [...res]
},
toCheck (e) {
this.pkId = this.pkId === e.workorder_code ? '' : e.workorder_code
},
/** 开工 */
async _productionScheduling () {
this.disabled1 = true
if (!this.pkId) {
this.disabled1 = false
return
}
try {
let user = ''
if (this.$store.getters.userInfo) {
user = JSON.parse(this.$store.getters.userInfo).username
}
let res = await productionScheduling(this.pkId, user)
this.disabled1 = false
this.pkId = ''
this._manualSortingOrders()
uni.showToast({
title: res.message,
icon: 'none'
})
} catch (e) {
this.disabled1 = false
}
},
/** 完工 */
async _productionComplete () {
this.disabled2 = true
if (!this.pkId) {
this.disabled2 = false
return
}
try {
let user = ''
if (this.$store.getters.userInfo) {
user = JSON.parse(this.$store.getters.userInfo).username
}
let res = await productionComplete(this.pkId, user)
this.disabled2 = false
this.pkId = ''
this._manualSortingOrders()
uni.showToast({
title: res.message,
icon: 'none'
})
} catch (e) {
this.disabled2 = false
}
}
}
}
</script>
<style lang="stylus">
</style>

View File

@@ -0,0 +1,113 @@
<template>
<view class="zd_container">
<nav-bar title="物料库存"></nav-bar>
<view class="zd_content">
<view class="zd_wrapper">
<view class="filter_item">
<view class="filter_label">物料</view>
<view class="filter_input_wraper">
<uni-data-select v-model="index1" :localdata="options1" @change="selectChange1"></uni-data-select>
</view>
</view>
</view>
<view class="item-wrapper">
<view class="item-wrap" v-for="(e, i) in dataList" :key="i">
<view class="zd-row jcflexstart mgb10">
<view class="item-font-1 item-font-5">{{e.material_code}}</view>
<view class="item-line-2"></view>
<view class="item-font-1 item-font-6">{{e.material_name}}</view>
</view>
<view class="zd-row jcflexstart">
<view class="item-font-1 item-font-6">点位:</view>
<view class="item-font-1">{{e.point_code}}{{e.point_name}}</view>
</view>
<view class="zd-row">
<view class="zd-col-20 zd-row jcflexstart">
<view class="item-font-4">设备:</view>
<view class="item-font-4">{{e.vehicle_code}}</view>
</view>
<view class="zd-col-4 item-status" :class="'item-status-' + e.vehicle_type">{{textState(e.vehicle_type)}}</view>
</view>
</view>
</view>
</view>
<view class="zd-row submit-bar_new">
<button class="zd-col-7 submit-button_c" @tap="toClear">清空</button>
<button class="zd-col-15 submit-button_new" @tap="_getInventoryMaterialInfo">查询</button>
</view>
</view>
</template>
<script>
import NavBar from '@/components/NavBar.vue'
import {materialList, getInventoryMaterialInfo} from '@/utils/getData2.js'
export default {
components: {
NavBar
},
data() {
return {
dataList: [],
disabled: false,
options1: [],
index1: '',
pkId: ''
};
},
created () {
this._materialList()
},
methods: {
textState (e) {
switch (e) {
case '1':
return '普涂'
break
case '2':
return '连涂'
break
default:
return ''
break
}
},
selectChange1 (e) {
this.index1 = e
},
/** 下拉框查询 */
async _materialList () {
let res = await materialList()
this.options1 = [...res]
},
async _getInventoryMaterialInfo () {
let res = await getInventoryMaterialInfo(this.index1)
this.dataList = [...res]
},
toClear () {
this.index1 = ''
this.dataList = []
}
}
}
</script>
<style lang="stylus">
.item-font-5
color #2b87ff
font-weight bold
.item-font-6
color #000
.item-font-4
color #323232
.item-status
border-top-left-radius: 15rpx
border-bottom-left-radius: 0
border-top-right-radius: 0
border-bottom-right-radius: 15rpx
.item-status-1
background-color: #f3ccb5;
color: #ff5e00;
.item-status-2
background-color: #96f3b8;
color: #36744c;
</style>

View File

@@ -0,0 +1,119 @@
<template>
<view class="zd_container">
<nav-bar title="涂线板"></nav-bar>
<view class="zd_content">
<view class="zd_wrapper">
<view class="filter_item">
<view class="filter_label">点位编码</view>
<view class="filter_input_wraper">
<input type="text" class="filter_input" v-model="val1">
</view>
</view>
<view class="filter_item">
<view class="filter_label">物料数量</view>
<view class="filter_input_wraper">
<input type="number" class="filter_input" v-model="val2">
</view>
</view>
</view>
<view class="item-wrapper">
<view class="item-wrap" v-for="(e, i) in dataList" :key="i">
<view class="zd-row mgb10">
<view class="zd-col-4 item-font-1">点位1:</view>
<view class="zd-col-9 item-font-2">{{e.point_name1}}</view>
<view class="zd-col-1 item-line-1"></view>
<view class="zd-col-9 item-font-3">{{e.point_name2}}</view>
</view>
<view class="zd-row mgb10">
<view class="zd-col-4 item-font-1">点位2:</view>
<view class="zd-col-9 item-font-2">{{e.point_name3}}</view>
<view class="zd-col-1 item-line-1"></view>
<view class="zd-col-9 item-font-3">{{e.point_name4}}</view>
</view>
<view class="zd-row">
<view class="zd-col-3 item-font-1">备注:</view>
<view class="zd-col-17 item-font-4">{{e.remark}}</view>
<view class="zd-col-4 item-status" :class="'item-status-' + e.task_status">{{textState(e.task_status)}}</view>
</view>
</view>
</view>
</view>
<view class="zd-row submit-bar_new">
<button class="zd-col-5 submit-button_c" @tap="toClear">清空</button>
<button class="zd-col-5 submit-button_c" @tap="_coatedWireIntoStorageTaskShow">刷新</button>
<button class="zd-col-13 submit-button_new" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled" @tap="_coatedWireIntoStorageTask">确认</button>
</view>
</view>
</template>
<script>
import NavBar from '@/components/NavBar.vue'
import {coatedWireIntoStorageTaskShow, coatedWireIntoStorageTask} from '@/utils/getData2.js'
export default {
components: {
NavBar
},
data() {
return {
dataList: [],
disabled: false,
val1: '',
val2: ''
};
},
created () {
this._coatedWireIntoStorageTaskShow()
},
methods: {
textState (e) {
switch (e) {
case '1':
return '创建'
break
case '2':
return '创建完成'
break
case '3':
return '下发'
break
case '4':
return '执行中'
break
default:
return ''
break
}
},
/** grid查询 */
async _coatedWireIntoStorageTaskShow () {
let res = await coatedWireIntoStorageTaskShow()
this.dataList = [...res]
},
toClear () {
this.val1 = ''
this.val2 = ''
},
async _coatedWireIntoStorageTask () {
this.disabled = true
if (!this.val1 || !this.val2) {
this.disabled = false
return
}
try {
let res = await coatedWireIntoStorageTask(this.val1, this.val2)
this.disabled = false
this._coatedWireIntoStorageTaskShow()
uni.showToast({
title: res.message,
icon: 'none'
})
} catch (e) {
this.disabled = false
}
}
}
}
</script>
<style lang="stylus">
</style>