init
This commit is contained in:
267
pages/manage/cbj-carry.vue
Normal file
267
pages/manage/cbj-carry.vue
Normal file
@@ -0,0 +1,267 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar :title="title"></nav-bar>
|
||||
<view class="zd-row jccenter tab-item-wraper">
|
||||
<view class="zd-col-16 zd-row">
|
||||
<view class="tab-item" :class="{'tab-item_active': tab === 1}" @tap="tab=1">叫料</view>
|
||||
<view class="tab-item" :class="{'tab-item_active': tab === 2}" @tap="tab=2">满料</view>
|
||||
<view class="tab-item" :class="{'tab-item_active': tab === 3}" @tap="tab=3">送空盅</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd_content zd_content_1">
|
||||
<view class="zd_wrapper">
|
||||
<view v-show="tab === 2" class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">载具编码</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<search-box
|
||||
v-model="val1"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">点位</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<zxz-uni-data-select v-model="index1" filterable :localdata="options1"></zxz-uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view v-show="tab === 3" class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">下个点位类型</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<zxz-uni-data-select v-model="index2" filterable :localdata="options2"></zxz-uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-show="tab === 1" class="zd_wrapper grid-wraper">
|
||||
<view class="slide_new">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>点位编码</th>
|
||||
<th>产品牌号</th>
|
||||
<th>入库时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList1" :key="e.pointCode" @click="toChose1(e)" :class="{'checked': e.pointCode === pkId1}">
|
||||
<td>{{e.pointCode}}</td>
|
||||
<td>{{e.materialCode}}</td>
|
||||
<td>{{e.instorageTime}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</view>
|
||||
</view>
|
||||
<view v-show="tab === 2" 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>
|
||||
<th>生产日期</th>
|
||||
<th>载具类型</th>
|
||||
<th>点位编码</th>
|
||||
<th>点位名称</th>
|
||||
<th>区域编码</th>
|
||||
<th>区域名称</th>
|
||||
<th>工单状态</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList2" :key="i" @click="toChose2(e)" :class="{'checked': e.workorder_code === pkId2}">
|
||||
<td>{{e.workorder_code}}</td>
|
||||
<td>{{e.plan_qty}}</td>
|
||||
<td>{{e.real_qty}}</td>
|
||||
<td>{{e.plan_weight}}</td>
|
||||
<td>{{e.real_weight}}</td>
|
||||
<td>{{e.material_ratio}}</td>
|
||||
<td>{{e.raw_material_code}}</td>
|
||||
<td>{{e.produce_order}}</td>
|
||||
<td>{{e.produce_date}}</td>
|
||||
<td>{{e.vehicle_type}}</td>
|
||||
<td>{{e.point_code}}</td>
|
||||
<td>{{e.point_name}}</td>
|
||||
<td>{{e.region_code}}</td>
|
||||
<td>{{e.region_name}}</td>
|
||||
<td>{{['未生产', '已下发', '生产中', '暂停', '完成', '暂存中'][Number(e.workorder_status) - 1]}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-show="tab === 1" class="zd-row submit-bar">
|
||||
<button class="zd-col-5 button-default" @tap="index1 = ''">清空</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !pkId1 || !index1}" :disabled="disabled1" @tap="_cbjqlTask">拆包机叫料</button>
|
||||
<button class="zd-col-8 button-primary" :class="{'button-info': !index1}" @tap="show = true">呼叫空盅</button>
|
||||
</view>
|
||||
<view v-show="tab === 2" class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap="index1 = '', val1 = ''">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !pkId2 || !val1 || !index1}" :disabled="disabled2" @tap="_cbjmlTask">满料入库</button>
|
||||
</view>
|
||||
<view v-show="tab === 3" class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap="index2 = '', index1 = ''">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !index1 || !index2}" :disabled="disabled4" @tap="_cbjskTask">空料位送空蛊</button>
|
||||
</view>
|
||||
<view class="zd_content msg_wrapper" :class="show ? 'popshow' : 'pophide'">
|
||||
<view class="pop-line"></view>
|
||||
<view class="msg_content">
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-24">
|
||||
<span class="filter_label">确定是否呼叫空蛊?</span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-11 button-default" @tap.stop="show = false">关闭</button>
|
||||
<button class="zd-col-11 button-primary" :disabled="disabled3" @tap="_cbjqkTask">确定</button>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="show" class="msg_mask"></view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {unpackShelfInfo, getCbjPoint, cbjqlTask, hnWorkOrder,cbjmlTask,cbjqkTask, cbjskTask} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
tab: 1,
|
||||
title: '',
|
||||
options1: [],
|
||||
index1: '',
|
||||
dataList1: [],
|
||||
pkId1: '',
|
||||
val1: '',
|
||||
dataList2: [],
|
||||
pkId2: '',
|
||||
disabled1: false,
|
||||
disabled2: false,
|
||||
disabled3: false,
|
||||
show: false,
|
||||
options2: [{value: 'CBJXLW', text: '拆包机下料位'},{value: 'KLHW', text: '困料货架'}],
|
||||
index2: '',
|
||||
val2: '',
|
||||
disabled4: false
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
},
|
||||
created () {
|
||||
this._unpackShelfInfo()
|
||||
this._getCbjPoint()
|
||||
this._hnWorkOrder()
|
||||
},
|
||||
methods: {
|
||||
/**货架上未拆包料盅信息 */
|
||||
async _unpackShelfInfo () {
|
||||
let res = await unpackShelfInfo()
|
||||
this.dataList1 = [...res]
|
||||
},
|
||||
/** 拆包机点位下拉框*/
|
||||
async _getCbjPoint () {
|
||||
let res = await getCbjPoint()
|
||||
this.options1 = [...res]
|
||||
},
|
||||
toChose1 (e) {
|
||||
this.pkId1 = this.pkId1 === e.pointCode ? '' : e.pointCode
|
||||
},
|
||||
/** 拆包机叫料 */
|
||||
async _cbjqlTask () {
|
||||
this.disabled1 = true
|
||||
if (!this.pkId1 || !this.index1) {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await cbjqlTask(this.pkId1, this.index1)
|
||||
this.pkId1 = ''
|
||||
this.disabled1 = false
|
||||
this._unpackShelfInfo()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
}
|
||||
},
|
||||
/** 查询混碾工单 */
|
||||
async _hnWorkOrder () {
|
||||
let res = await hnWorkOrder()
|
||||
this.dataList2 = [...res]
|
||||
},
|
||||
toChose2 (e) {
|
||||
this.pkId2 = this.pkId2 === e.workorder_code ? '' : e.workorder_code
|
||||
},
|
||||
/** 满料入库 */
|
||||
async _cbjmlTask () {
|
||||
this.disabled2 = true
|
||||
if (!this.pkId2 || !this.val1 || !this.index1) {
|
||||
this.disabled2 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await cbjmlTask(this.pkId2, this.val1, this.index1)
|
||||
this.pkId2 = ''
|
||||
this.disabled2 = false
|
||||
this._hnWorkOrder()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled2 = false
|
||||
}
|
||||
},
|
||||
/** 呼叫空盅 */
|
||||
async _cbjqkTask () {
|
||||
this.disabled3 = true
|
||||
try {
|
||||
let res = await cbjqkTask(this.index1)
|
||||
this.show = false
|
||||
this.disabled3 = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled3 = false
|
||||
}
|
||||
},
|
||||
/** 拆包机空料位送空蛊 */
|
||||
async _cbjskTask () {
|
||||
this.disabled4 = true
|
||||
try {
|
||||
let res = await cbjskTask(this.index2, this.index1)
|
||||
this.disabled4 = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled4 = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
102
pages/manage/group-task.vue
Normal file
102
pages/manage/group-task.vue
Normal file
@@ -0,0 +1,102 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar :title="title"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">条码</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<search-box
|
||||
v-model="val1"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="JSON.stringify(obj) !== '{}'" class="zd_wrapper">
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">重量</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<input type="number" class="filter_input" v-model="obj.material_weight" disabled>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">数量</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<input type="number" class="filter_input" v-model="obj.material_qty" disabled>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">牌号</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<input type="text" class="filter_input" v-model="obj.material_code" disabled>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="_zpxxTask">确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {zpxxTask} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
val1: '',
|
||||
obj: {},
|
||||
disabled: false
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
},
|
||||
created () {
|
||||
},
|
||||
methods: {
|
||||
clearUp () {
|
||||
this.val1 = ''
|
||||
this.obj = {}
|
||||
},
|
||||
async _zpxxTask () {
|
||||
this.disabled = true
|
||||
if (!this.val1) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await zpxxTask(this.val1)
|
||||
this.disabled = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.obj = res
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
|
||||
</style>
|
||||
152
pages/manage/inst-manage.vue
Normal file
152
pages/manage/inst-manage.vue
Normal file
@@ -0,0 +1,152 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar :title="title"></nav-bar>
|
||||
<view class="zd_content pdt0">
|
||||
<view class="filter_wrapper">
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-8 font-style-1" v-for="e in state" :key="e.id" @tap="changeTab(e)">
|
||||
<view class="font-style-1" :class="{'font-style-2': e.id === tab}">{{e.text}}</view>
|
||||
<view class="tab-line" :class="{'tab-line_active': e.id === tab}"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-wrapper">
|
||||
<view class="item-wrap" v-for="(e, i) in dataList" :key="i" @tap="toCheck(e)" :class="{isChecked: pkId === e.inst_uuid}">
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-15 item-font-1">{{e.task_no}} | {{e.inst_status_name}}</view>
|
||||
<view class="zd-col-9 item-font-2" style="text-align:right">{{e.create_time}}</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-16">
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-6 item-font-3">指令号:</view>
|
||||
<view class="zd-col-18 item-font-4">{{e.inst_no}}</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-10 item-font-3">指令执行步骤:</view>
|
||||
<view class="zd-col-14 item-font-4">{{e.inst_step}}</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-6 item-font-3">载具号:</view>
|
||||
<view class="zd-col-18 item-font-4">{{e.carrier}}</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-6 item-font-3">车号:</view>
|
||||
<view class="zd-col-18 item-font-4">{{e.carno}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-col-8">
|
||||
<view class="item-font-5">{{e.priority}}</view>
|
||||
<view class="item-font-7">优先级</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-10 item-font-6">起始设备:{{e.start_devicecode}}</view>
|
||||
<view class="zd-col-2 item-font-7">––</view>
|
||||
<view class="zd-col-10 item-font-6">目标设备:{{e.next_devicecode}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-7 button-primary" :class="{'button-info': !pkId}" :disabled="disabled" @tap="_handInst('1')">指令撤销</button>
|
||||
<button class="zd-col-7 button-primary" :class="{'button-info': !pkId}" :disabled="disabled" @tap="_handInst('2')">重新下发</button>
|
||||
<button class="zd-col-7 button-primary" :class="{'button-info': !pkId}" :disabled="disabled" @tap="_handInst('3')">强制完成</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {handInsts, handInst} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
state: [{id:'-1', text: '全部'}, {id:'0', text: '就绪'}, {id:'1', text: '执行中'}],
|
||||
tab: '-1',
|
||||
title: '',
|
||||
data: [],
|
||||
dataList: [],
|
||||
pkId: '',
|
||||
disabled: false
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
},
|
||||
created () {
|
||||
this._handInsts()
|
||||
},
|
||||
methods: {
|
||||
toSearch () {
|
||||
this.show = true
|
||||
this.tab = '-1'
|
||||
},
|
||||
async _handInsts () {
|
||||
try {
|
||||
let res = await handInsts(this.val1, this.val2, this.val3)
|
||||
if (res.code === '1') {
|
||||
this.data = [...res.result]
|
||||
this.dataList = [...this.data]
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
|
||||
} catch (e) {
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
},
|
||||
changeTab (e) {
|
||||
this.tab = e.id
|
||||
if (e.id !== '-1') {
|
||||
let arr = this.data.filter(el => {return el.inst_status === e.id})
|
||||
this.dataList = [...arr]
|
||||
} else {
|
||||
this.dataList = [...this.data]
|
||||
}
|
||||
},
|
||||
async _handInst (type) {
|
||||
this.disabled = true
|
||||
if (!this.pkId) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await handInst(type, this.pkId)
|
||||
if (res.code === '1') {
|
||||
this.disabled = false
|
||||
this.tab = '-1'
|
||||
this._handInsts()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} else {
|
||||
this.disabled = false
|
||||
}
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
},
|
||||
toCheck (e) {
|
||||
this.pkId = this.pkId === e.inst_uuid ? '' : e.inst_uuid
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.item-font-1
|
||||
font-size 28rpx
|
||||
</style>
|
||||
115
pages/manage/man-sort.vue
Normal file
115
pages/manage/man-sort.vue
Normal file
@@ -0,0 +1,115 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar :title="title"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-8">
|
||||
<span class="filter_label">人工分拣点位</span>
|
||||
</view>
|
||||
<view class="zd-col-15 filter_select">
|
||||
<zxz-uni-data-select v-model="index1" filterable :localdata="options1"></zxz-uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-8">
|
||||
<span class="filter_label">缓存货架点位</span>
|
||||
</view>
|
||||
<view class="zd-col-15 filter_select">
|
||||
<zxz-uni-data-select v-model="index2" filterable :localdata="options2"></zxz-uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-7 button-default" @tap.stop="clearUp">清空</button>
|
||||
<button class="zd-col-7 button-primary" :class="{'button-info': !index1 || !index2}" :disabled="disabled1" @tap="_rgfjqlTask">叫料</button>
|
||||
<button class="zd-col-7 button-primary" :class="{'button-info': !index1}" :disabled="disabled2" @tap="_rgfjskTask">送空盘</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {rgfjPoint,hchjPoint,rgfjqlTask,rgfjskTask} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
options1: [],
|
||||
index1: '',
|
||||
options2: [],
|
||||
index2: '',
|
||||
disabled1: false,
|
||||
disabled2: false
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
},
|
||||
created () {
|
||||
this._rgfjPoint()
|
||||
this._hchjPoint()
|
||||
},
|
||||
methods: {
|
||||
/** 下拉框*/
|
||||
async _rgfjPoint () {
|
||||
let res = await rgfjPoint()
|
||||
this.options1 = [...res]
|
||||
},
|
||||
async _hchjPoint () {
|
||||
let res = await hchjPoint()
|
||||
this.options2 = [...res]
|
||||
},
|
||||
clearUp () {
|
||||
this.index1 = ''
|
||||
this.index2 = ''
|
||||
this.disabled1 = false
|
||||
this.disabled2 = false
|
||||
},
|
||||
async _rgfjqlTask () {
|
||||
this.disabled1 = true
|
||||
if (!this.index1 || !this.index2) {
|
||||
this.disabled1 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await rgfjqlTask(this.index2, this.index1)
|
||||
this.disabled1 = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
}
|
||||
},
|
||||
async _rgfjskTask () {
|
||||
this.disabled2 = true
|
||||
if (!this.index1) {
|
||||
this.disabled2 = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await rgfjskTask(this.index1)
|
||||
this.disabled2 = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled2 = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
@import '../../common/style/mixin.styl';
|
||||
</style>
|
||||
82
pages/manage/mater-scrap.vue
Normal file
82
pages/manage/mater-scrap.vue
Normal file
@@ -0,0 +1,82 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar :title="title"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-5">
|
||||
<span class="filter_label">载具编码</span>
|
||||
</view>
|
||||
<view class="zd-col-19 filter_select">
|
||||
<search-box
|
||||
v-model="val1"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-22 button-primary" :class="{'button-info': !val1}" :disabled="disabled" @tap="toPop">物料报废</button>
|
||||
</view>
|
||||
<view class="zd_content msg_wrapper" :class="show ? 'popshow' : 'pophide'">
|
||||
<view class="pop-line"></view>
|
||||
<view class="msg_content">
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-24">
|
||||
<span class="filter_label">确定是否执行物料报废?</span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-11 button-default" @tap.stop="show = false">关闭</button>
|
||||
<button class="zd-col-11 button-primary" :disabled="disabled" @tap="_materialScrap">确定</button>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="show" class="msg_mask"></view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {materialScrap} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
val1: '',
|
||||
show: false,
|
||||
disabled: false
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
},
|
||||
methods: {
|
||||
toPop () {
|
||||
if (this.val1) {
|
||||
this.show = true
|
||||
}
|
||||
},
|
||||
async _materialScrap () {
|
||||
this.disabled = true
|
||||
try {
|
||||
let res = await materialScrap(this.val1)
|
||||
this.show = false
|
||||
this.disabled = false
|
||||
this.val1 = ''
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
149
pages/manage/press-carry.vue
Normal file
149
pages/manage/press-carry.vue
Normal file
@@ -0,0 +1,149 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar :title="title"></nav-bar>
|
||||
<view class="zd-row jccenter tab-item-wraper">
|
||||
<view class="zd-col-16 zd-row">
|
||||
<view class="tab-item" :class="{'tab-item_active': tab === 1}" @tap="tab=1">回库</view>
|
||||
<view class="tab-item" :class="{'tab-item_active': tab === 2}" @tap="tab=2">点对点</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd_content zd_content_1">
|
||||
<view class="zd_wrapper">
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-5">
|
||||
<span class="filter_label">上料位</span>
|
||||
</view>
|
||||
<view class="zd-col-19 filter_select">
|
||||
<zxz-uni-data-select v-model="index1" filterable :localdata="options1"></zxz-uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-show="tab === 2" class="zd_wrapper grid-wraper">
|
||||
<view class="slide_new">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>点位编码</th>
|
||||
<th>产品牌号</th>
|
||||
<th>入库时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="e.pointCode" @click="toChose(e)" :class="{'checked': e.pointCode === pkId}">
|
||||
<td>{{e.pointCode}}</td>
|
||||
<td>{{e.materialCode}}</td>
|
||||
<td>{{e.instorageTime}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-show="tab === 1" class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap="index1 = ''">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !index1}" :disabled="disabled" @tap="toPop">强制回货架</button>
|
||||
</view>
|
||||
<view v-show="tab === 2" class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap="index1 = ''">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !index1 || !pkId}" :disabled="disabled" @tap="_yzqlTask">请求上料位</button>
|
||||
</view>
|
||||
<view class="zd_content msg_wrapper" :class="show ? 'popshow' : 'pophide'">
|
||||
<view class="pop-line"></view>
|
||||
<view class="msg_content">
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-24">
|
||||
<span class="filter_label">确定是否强制回货架?</span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-11 button-default" @tap.stop="show = false">关闭</button>
|
||||
<button class="zd-col-11 button-primary" :disabled="disabled" @tap="_qzhhjTask">确定</button>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="show" class="msg_mask"></view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {yjslwPointList, qzhhjTask,packShelfInfo,yzqlTask} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
tab: 1,
|
||||
title: '',
|
||||
options1: [],
|
||||
index1: '',
|
||||
show: false,
|
||||
disabled: false,
|
||||
dataList: [],
|
||||
pkId: ''
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
},
|
||||
created () {
|
||||
this._yjslwPointList()
|
||||
this._packShelfInfo()
|
||||
},
|
||||
methods: {
|
||||
/** 下拉框*/
|
||||
async _yjslwPointList () {
|
||||
let res = await yjslwPointList()
|
||||
this.options1 = [...res]
|
||||
},
|
||||
toPop () {
|
||||
if (this.index1) {
|
||||
this.show = true
|
||||
}
|
||||
},
|
||||
/** 强制回货架 */
|
||||
async _qzhhjTask () {
|
||||
this.disabled = true
|
||||
try {
|
||||
let res = await qzhhjTask(this.index1)
|
||||
this.show = false
|
||||
this.disabled = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
},
|
||||
/** 查询货架上已拆包料盅信息 */
|
||||
async _packShelfInfo () {
|
||||
let res = await packShelfInfo()
|
||||
this.dataList = [...res]
|
||||
},
|
||||
toChose (e) {
|
||||
this.pkId = this.pkId === e.pointCode ? '' : e.pointCode
|
||||
},
|
||||
/** 困料货架点对点到布料机上料位 */
|
||||
async _yzqlTask () {
|
||||
this.disabled = true
|
||||
try {
|
||||
let res = await yzqlTask(this.pkId, this.index1)
|
||||
this.disabled = false
|
||||
this.pkId = ''
|
||||
this._packShelfInfo()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
136
pages/manage/task-manage.vue
Normal file
136
pages/manage/task-manage.vue
Normal file
@@ -0,0 +1,136 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar :title="title"></nav-bar>
|
||||
<view class="zd_content pdt0">
|
||||
<view class="filter_wrapper">
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-8 font-style-1" v-for="e in state" :key="e.id" @tap="changeTab(e)">
|
||||
<view class="font-style-1" :class="{'font-style-2': e.id === tab}">{{e.text}}</view>
|
||||
<view class="tab-line" :class="{'tab-line_active': e.id === tab}"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item-wrapper">
|
||||
<view class="item-wrap" v-for="(e, i) in dataList" :key="i" @tap="toCheck(e)" :class="{isChecked: pkId === e.task_uuid}">
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-10 item-font-1">{{e.task_no}}</view>
|
||||
<view class="zd-col-10 item-font-2" style="text-align:right">{{e.create_time}}</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-16">
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-7 item-font-3">任务状态:</view>
|
||||
<view class="zd-col-17 item-font-4">{{e.task_status_name}}</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-7 item-font-3">载具号:</view>
|
||||
<view class="zd-col-17 item-font-4">{{e.carrier}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-col-8">
|
||||
<view class="item-font-5">{{e.priority}}</view>
|
||||
<view class="item-font-7">优先级</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-10 item-font-6">起始设备:{{e.start_devicecode}}</view>
|
||||
<view class="zd-col-2 item-font-7">––</view>
|
||||
<view class="zd-col-10 item-font-6">目标设备:{{e.next_devicecode}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-11 button-primary" :class="{'button-info': !pkId}" :disabled="disabled" @tap="_handTaskoperation('1')">重新生成</button>
|
||||
<button class="zd-col-11 button-primary" :class="{'button-info': !pkId}" :disabled="disabled" @tap="_handTaskoperation('2')">强制完成</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {handTasks, handTaskoperation} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
state: [{id:'-1', text: '全部'}, {id:'0', text: '就绪'}, {id:'1', text: '执行中'}],
|
||||
tab: '-1',
|
||||
title: '',
|
||||
data: [],
|
||||
dataList: [],
|
||||
pkId: '',
|
||||
disabled: false
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
},
|
||||
created () {
|
||||
this._handTasks()
|
||||
},
|
||||
methods: {
|
||||
async _handTasks () {
|
||||
try {
|
||||
let res = await handTasks()
|
||||
if (res.code === '1') {
|
||||
this.data = [...res.result]
|
||||
this.dataList = [...this.data]
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
} catch (e) {
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
},
|
||||
changeTab (e) {
|
||||
this.tab = e.id
|
||||
if (e.id !== '-1') {
|
||||
let arr = this.data.filter(el => {return el.task_status === e.id})
|
||||
this.dataList = [...arr]
|
||||
} else {
|
||||
this.dataList = [...this.data]
|
||||
}
|
||||
},
|
||||
async _handTaskoperation (type) {
|
||||
this.disabled = true
|
||||
if (!this.pkId) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await handTaskoperation(type, this.pkId)
|
||||
if (res.code === '1') {
|
||||
this.disabled = false
|
||||
this.tab = '-1'
|
||||
this._handTasks()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} else {
|
||||
this.disabled = false
|
||||
}
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
},
|
||||
toCheck (e) {
|
||||
this.pkId = this.pkId === e.task_uuid ? '' : e.task_uuid
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
</style>
|
||||
108
pages/manage/vehicle-unbind.vue
Normal file
108
pages/manage/vehicle-unbind.vue
Normal file
@@ -0,0 +1,108 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar :title="title"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">区域</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<uni-data-select v-model="index1" :localdata="options1" @change="change"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">点位</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<uni-data-select v-model="index2" :localdata="options2"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !index2}" :disabled="disabled" @tap="_vehicleUnbind">解绑</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {vehicleUnbind} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
options1: [{value: 0, text: '困料区域', point: []}, {value: 1, text: '缓存货架区域', point: []}],
|
||||
index1: '',
|
||||
options2: [],
|
||||
index2: '',
|
||||
disabled: false
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
},
|
||||
created () {
|
||||
let point1 = []
|
||||
for (let i = 0; i < 56; i++) {
|
||||
if (i >= 9) {
|
||||
point1.push({value: `KLHW${i+1}`, text: `困料货位${i+1}`})
|
||||
} else {
|
||||
point1.push({value: `KLHW0${i+1}`, text: `困料货位0${i+1}`})
|
||||
}
|
||||
}
|
||||
let point2 = []
|
||||
for (let i = 0; i < 44; i++) {
|
||||
if (i >= 9) {
|
||||
point2.push({value: `HCHJ${i+1}`, text: `缓存货架${i+1}`})
|
||||
} else {
|
||||
point2.push({value: `HCHJ0${i+1}`, text: `缓存货架0${i+1}`})
|
||||
}
|
||||
}
|
||||
this.options1[0].point = point1
|
||||
this.options1[1].point = point2
|
||||
},
|
||||
methods: {
|
||||
change (e) {
|
||||
this.options1.map((el, i) => {
|
||||
if (e === i) {
|
||||
this.options2 = el.point
|
||||
}
|
||||
})
|
||||
},
|
||||
clearUp () {
|
||||
this.index1 = ''
|
||||
this.index2 = ''
|
||||
},
|
||||
async _vehicleUnbind () {
|
||||
this.disabled = true
|
||||
if (!this.index2) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await vehicleUnbind(this.index2)
|
||||
this.disabled = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
|
||||
</style>
|
||||
133
pages/manage/yzhnml-carry.vue
Normal file
133
pages/manage/yzhnml-carry.vue
Normal file
@@ -0,0 +1,133 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar :title="title"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-8">
|
||||
<span class="filter_label">区域</span>
|
||||
</view>
|
||||
<view class="zd-col-15 filter_select">
|
||||
<uni-data-select v-model="index1" :localdata="options1" @change="change"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-8">
|
||||
<span class="filter_label">点位</span>
|
||||
</view>
|
||||
<view class="zd-col-15 filter_select">
|
||||
<uni-data-select v-model="index2" :localdata="options2"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">条码</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<search-box
|
||||
v-model="val1"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">重量</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<input type="number" class="filter_input" v-model="val2">
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">数量</span>
|
||||
</view>
|
||||
<view class="zd-col-17 filter_select">
|
||||
<input type="number" class="filter_input" v-model="val3">
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-15 button-primary" :class="{'button-info': !index2 || !val1 || !val2 || !val3}" :disabled="disabled" @tap="_mlTask">满料搬运</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {mlTask} from '@/utils/getData2.js'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
options1: [{value: 0, text: '混碾区域', point: []}, {value: 1, text: '压制区域', point: []}],
|
||||
index1: '',
|
||||
options2: [],
|
||||
index2: '',
|
||||
val1: '',
|
||||
val2: '',
|
||||
val3: '',
|
||||
disabled: false
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
},
|
||||
created () {
|
||||
let point1 = []
|
||||
for (let i = 0; i < 8; i++) {
|
||||
point1.push({value: `HNJ0${i+1}DJW`, text: `混碾机对接位0${i+1}`})
|
||||
}
|
||||
let point2 = []
|
||||
for (let i = 0; i < 10; i++) {
|
||||
if (i >= 9) {
|
||||
point2.push({value: `YJ${i+1}XLW01`, text: `压制机${i+1}下料位01`}, {value: `YJ${i+1}XLW02`, text: `压制机${i+1}下料位02`})
|
||||
} else {
|
||||
point2.push({value: `YJ0${i+1}XLW01`, text: `压制机0${i+1}下料位01`}, {value: `YJ0${i+1}XLW02`, text: `压制机0${i+1}下料位02`})
|
||||
}
|
||||
}
|
||||
this.options1[0].point = point1
|
||||
this.options1[1].point = point2
|
||||
},
|
||||
methods: {
|
||||
change (e) {
|
||||
this.options1.map((el, i) => {
|
||||
if (e === i) {
|
||||
this.options2 = el.point
|
||||
}
|
||||
})
|
||||
},
|
||||
clearUp () {
|
||||
this.index1 = ''
|
||||
this.index2 = ''
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
this.val3 = ''
|
||||
},
|
||||
async _mlTask () {
|
||||
this.disabled = true
|
||||
if (!this.index2 || !this.val1 || !this.val2 || !this.val3) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await mlTask(this.index2, this.val1, this.val2, this.val3)
|
||||
this.disabled = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user