任务优先级,条码新增重量

This commit is contained in:
lyd
2022-11-11 15:14:04 +08:00
parent 0489f65328
commit ddf03aaa0b
7 changed files with 52 additions and 27 deletions

View File

@@ -25,7 +25,7 @@ export default {
},
data() {
return {
title: 'NLADMIN-后台管理',
title: '诺力WMS系统',
logo: Logo
}
}

View File

@@ -26,7 +26,7 @@ module.exports = {
/**
* @description token key
*/
TokenKey: 'EL-ADMIN-TOEKN',
TokenKey: 'NL-CHENHOU-TOEKN',
/**
* @description 请求超时时间毫秒默认2分钟
*/

View File

@@ -2,7 +2,7 @@
<div class="login" :style="'background-image:url('+ Background +');'">
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" label-position="left" label-width="0px" class="login-form">
<h3 class="title">
NL-ADMIN 后台管理系统
诺力WMS系统
</h3>
<el-form-item prop="username">
<el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号">

View File

@@ -102,6 +102,9 @@
:max="100"
/>
</el-form-item>
<el-form-item label="颜色">
<el-color-picker v-model="form.color"></el-color-picker>
</el-form-item>
<el-form-item label="备注">
<el-input v-model="form.remark" type="textarea" style="width: 370px;" />
</el-form-item>
@@ -194,7 +197,9 @@ const defaultForm = {
create_by: null,
create_time: null,
update_by: null,
update_time: null
update_time: null,
color: null,
weight: null
}
export default {
name: 'MaterialLabel',
@@ -270,21 +275,39 @@ export default {
})
},
print() {
const _selectData = this.$refs.table.selection
if (!_selectData || _selectData.length !== 1) {
this.crud.notify('请选择一条记录', CRUD.NOTIFICATION_TYPE.INFO)
return
}
const data = _selectData[0]
debugger
materialLabel.print(data).then(res => {
const code = res.label_code
debugger
this.print2(code)
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.crud.toQuery()
}).cache(err => {
console.log(err.response.data.message)
this.$prompt('', '请输入重量', {
confirmButtonText: '确定',
cancelButtonText: '取消',
inputPattern: /^\d{4}$/,
inputErrorMessage: '重量由四个数字组成',
closeOnClickModal: false
}).then(({ value }) => {
console.log(value)
if (value === null) {
this.crud.notify('请输入重量', CRUD.NOTIFICATION_TYPE.ERROR)
return
}
const _selectData = this.$refs.table.selection
if (!_selectData || _selectData.length !== 1) {
this.crud.notify('请选择一条记录', CRUD.NOTIFICATION_TYPE.INFO)
return
}
const data = _selectData[0]
data.weight = value
materialLabel.print(data).then(res => {
const code = res.label_code
debugger
this.print2(code)
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.crud.toQuery()
}).cache(err => {
console.log(err.response.data.message)
})
}).catch(() => {
this.$message({
type: 'info',
message: '取消输入'
})
})
},
print2(code) {