配置页
This commit is contained in:
@@ -14,22 +14,14 @@
|
|||||||
<input type="text" class="setup-input" placeholder="请输入刷新时间" v-model="setTime">
|
<input type="text" class="setup-input" placeholder="请输入刷新时间" v-model="setTime">
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="zd_wrapper">
|
|
||||||
<view class="input-wrap">
|
|
||||||
<view class="input-label" style="margin-right: 20upx;">客户标签打印</view>
|
|
||||||
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
|
|
||||||
</view>
|
|
||||||
</view> -->
|
|
||||||
</view>
|
</view>
|
||||||
<view class="submit-bar">
|
<view class="submit-bar">
|
||||||
<button class="submit-button" @click="_submit">确认</button>
|
<button class="submit-button" @click="_submit">确认</button>
|
||||||
<!-- <button class="submit-button" @click="_virtualprintType">查询</button> -->
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// import {virtualprintType} from '@/utils/getData2.js'
|
|
||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@@ -43,27 +35,12 @@
|
|||||||
setTime: this.$store.getters.setTime / 1000
|
setTime: this.$store.getters.setTime / 1000
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created () {
|
|
||||||
// this._virtualprintType()
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
goIn () {
|
goIn () {
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
url: '/pages/login/login'
|
url: '/pages/login/login'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/** 选择器 */
|
|
||||||
selectChange(e) {
|
|
||||||
this.index = e
|
|
||||||
},
|
|
||||||
/** 打印机类型下拉框查询 */
|
|
||||||
async _virtualprintType () {
|
|
||||||
let res = await virtualprintType(this.addrip)
|
|
||||||
this.options = [...res.data]
|
|
||||||
// if (this.$store.getters.setPrintName !== '') {
|
|
||||||
// this.index = this.$store.getters.setPrintName
|
|
||||||
// }
|
|
||||||
},
|
|
||||||
_submit () {
|
_submit () {
|
||||||
if (this.addrip === '') {
|
if (this.addrip === '') {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|||||||
16
utils/api.js
16
utils/api.js
@@ -1,16 +0,0 @@
|
|||||||
import request from './request.js'
|
|
||||||
// 登录
|
|
||||||
export const handLogin = (user, password) => request({
|
|
||||||
url:'mobile/auth/login',
|
|
||||||
data: {
|
|
||||||
username: user,
|
|
||||||
password: password
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
// 测试状态码报错接口
|
|
||||||
export const handRequest = () => request({
|
|
||||||
url:'getInfo/4',
|
|
||||||
data: {}
|
|
||||||
})
|
|
||||||
|
|
||||||
@@ -21,43 +21,6 @@ export const handLogin = (user, password) => request({
|
|||||||
password: password
|
password: password
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// export const handLogin = (user, password) => {
|
|
||||||
// let res = {
|
|
||||||
// "user": {
|
|
||||||
// "user": {
|
|
||||||
// "user_id": "1",
|
|
||||||
// "username": "admin",
|
|
||||||
// "person_name": "管理员",
|
|
||||||
// "gender": "男",
|
|
||||||
// "phone": "18312365896",
|
|
||||||
// "email": "201507802@qq.com",
|
|
||||||
// "avatar_name": "avatar-20200806032259161.png",
|
|
||||||
// "avatar_path": "/Users/jie/Documents/work/me/admin/eladmin/~/avatar/avatar-20200806032259161.png",
|
|
||||||
// "password": "f52020dca765fd3943ed40a615dc2c5c",
|
|
||||||
// "is_admin": true,
|
|
||||||
// "is_used": true,
|
|
||||||
// "pwd_reset_user_id": 0,
|
|
||||||
// "pwd_reset_time": null,
|
|
||||||
// "create_id": null,
|
|
||||||
// "create_name": "",
|
|
||||||
// "create_time": "2022-12-01 00:00:00",
|
|
||||||
// "update_id": "1",
|
|
||||||
// "update_name": "admin",
|
|
||||||
// "update_time": "2023-05-06 14:00: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OmRlbCIsImRpY3Q6ZWRpdCIsImRpY3Q6YWRkIiwiZGVwdDpkZWwiLCJkZXB0OmVkaXQiLCJkZXB0OmFkZCIsIm1lbnU6ZGVsIiwibWVudTplZGl0IiwibWVudTphZGQiLCJyb2xlczpkZWwiLCJtZW51Omxpc3QiLCJyb2xlczplZGl0Iiwicm9sZXM6YWRkIiwidXNlcjpkZWwiLCJ1c2VyOmVkaXQiLCJ1c2VyOmFkZCIsInN0b3JhZ2U6ZGVsIiwic3RvcmFnZTplZGl0Iiwic3RvcmFnZTphZGQiLCJzdG9yYWdlOmxpc3QiLCJkaWN0Omxpc3QiLCJkZXB0Omxpc3QiLCJyb2xlczpsaXN0IiwidGltaW5nOmxpc3QiLCJ1c2VyOmxpc3QiLCI5OTkiLCJnZW5Db2RlOmVkaXQiLCJnZW5Db2RlOmRlbCIsImdlbkNvZGU6YWRkIiwiZ2VuQ29kZTpsaXN0Il19fQ.cur9GPyns_MCRCw9vwNogGiCAOxzSd_9-KKythjc9dU"
|
|
||||||
// }
|
|
||||||
// return res
|
|
||||||
// }
|
|
||||||
|
|
||||||
// 测试状态码报错接口
|
|
||||||
export const handRequest = () => request({
|
|
||||||
url:'getInfo/4',
|
|
||||||
data: {}
|
|
||||||
})
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备点检
|
* 设备点检
|
||||||
@@ -83,13 +46,6 @@ export const deviceCheckVerify = (code, user, remark, status) => request({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
// 1.3打印机类型
|
|
||||||
export const virtualprintType = (url) => request1({
|
|
||||||
url: `${url}/` + 'api/pda/virtual/printType',
|
|
||||||
data: {}
|
|
||||||
})
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 强制静置
|
* 强制静置
|
||||||
*/
|
*/
|
||||||
@@ -105,4 +61,75 @@ export const forcedRestingSubmit = (stime, id) => request({
|
|||||||
stand_time: stime,
|
stand_time: stime,
|
||||||
group_id: id
|
group_id: id
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分拣排产
|
||||||
|
*/
|
||||||
|
// 显示工单/刷新
|
||||||
|
export const manualSortingOrders = () => request({
|
||||||
|
url:'api/pda/manualSorting/orders',
|
||||||
|
data: {}
|
||||||
|
})
|
||||||
|
// 开工
|
||||||
|
export const manualSortingProductionScheduling = (code, user) => request({
|
||||||
|
url:'api/pda/manualSorting/productionScheduling',
|
||||||
|
data: {
|
||||||
|
workorder_code: code,
|
||||||
|
username: user
|
||||||
|
}
|
||||||
|
})
|
||||||
|
// 完工
|
||||||
|
export const manualSortingProductionComplete = (code, user) => request({
|
||||||
|
url:'api/pda/manualSorting/productionComplete',
|
||||||
|
data: {
|
||||||
|
workorder_code: code,
|
||||||
|
username: user
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 剩料入库
|
||||||
|
*/
|
||||||
|
// 刷新
|
||||||
|
export const callingResidueMaterialTaskShow = () => request({
|
||||||
|
url:'api/pda/manualSorting/callingResidueMaterialTaskShow',
|
||||||
|
data: {}
|
||||||
|
})
|
||||||
|
// 确认
|
||||||
|
export const callingResidueMaterialTask = (code, qty) => request({
|
||||||
|
url:'api/pda/manualSorting/callingResidueMaterialTask',
|
||||||
|
data: {
|
||||||
|
vehicle_code: code,
|
||||||
|
qty: qty
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 托盘绑定
|
||||||
|
*/
|
||||||
|
// 确认
|
||||||
|
export const manualSortingBindingVehicle = (ocode, tcode) => request({
|
||||||
|
url:'api/pda/manualSorting/bindingVehicle',
|
||||||
|
data: {
|
||||||
|
origin_vehicle_code: ocode,
|
||||||
|
target_vehicle_code: tcode
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 包装入库
|
||||||
|
*/
|
||||||
|
// 刷新
|
||||||
|
export const manualSortingPackingTaskShow = () => request({
|
||||||
|
url:'api/pda/manualSorting/packingTaskShow',
|
||||||
|
data: {}
|
||||||
|
})
|
||||||
|
// 确认
|
||||||
|
export const manualSortingPackingTask = (code, qty) => request({
|
||||||
|
url:'/api/pda/manualSorting/packingTask',
|
||||||
|
data: {
|
||||||
|
vehicle_code: code,
|
||||||
|
qty: qty
|
||||||
|
}
|
||||||
})
|
})
|
||||||
Reference in New Issue
Block a user