优化页面,增加领料催办短信问题
This commit is contained in:
parent
1db5f7cd6f
commit
47481e8fb4
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div class="notice-dialog">
|
||||||
<!-- 消息通知弹框 -->
|
<!-- 消息通知弹框 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
:title="noticeTitle"
|
:title="noticeTitle"
|
||||||
|
|
@ -10,12 +10,18 @@
|
||||||
:before-close="handleCloseDialog"
|
:before-close="handleCloseDialog"
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
:close-on-press-escape="false"
|
:close-on-press-escape="false"
|
||||||
|
top="0vh"
|
||||||
append-to-body
|
append-to-body
|
||||||
|
custom-class="center-dialog"
|
||||||
>
|
>
|
||||||
<el-button class="notice-num" type="primary"
|
<el-button class="notice-num" type="primary"
|
||||||
>重要通知({{ unreadNUm }}/{{ noticeNum }})</el-button
|
>重要通知({{ unreadNUm }}/{{ noticeNum }})</el-button
|
||||||
>
|
>
|
||||||
<el-button class="notice-known" type="primary" @click="handleKnow()"
|
<el-button
|
||||||
|
class="notice-known"
|
||||||
|
type="primary"
|
||||||
|
@click="handleKnow()"
|
||||||
|
:loading="loading"
|
||||||
>我知道了</el-button
|
>我知道了</el-button
|
||||||
>
|
>
|
||||||
<h2 class="release-time">发布时间:{{ releaseTime }}</h2>
|
<h2 class="release-time">发布时间:{{ releaseTime }}</h2>
|
||||||
|
|
@ -49,6 +55,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
unreadNUm: 1,
|
unreadNUm: 1,
|
||||||
noticeListDoc: [],
|
noticeListDoc: [],
|
||||||
|
loading: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -68,7 +75,7 @@ export default {
|
||||||
return this.noticeList[this.unreadNUm - 1].createTime.slice(0, 10)
|
return this.noticeList[this.unreadNUm - 1].createTime.slice(0, 10)
|
||||||
},
|
},
|
||||||
releaseCreateName() {
|
releaseCreateName() {
|
||||||
return this.noticeList[this.unreadNUm - 1].createBy
|
return this.noticeList[this.unreadNUm - 1].nickName
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -85,12 +92,14 @@ export default {
|
||||||
},
|
},
|
||||||
// 点击我知道了
|
// 点击我知道了
|
||||||
async handleKnow() {
|
async handleKnow() {
|
||||||
|
this.loading = true
|
||||||
const params = {
|
const params = {
|
||||||
noticeId: [],
|
noticeId: [],
|
||||||
userId: sessionStorage.getItem('userId'),
|
userId: sessionStorage.getItem('userId'),
|
||||||
}
|
}
|
||||||
params.noticeId.push(this.noticeList[this.unreadNUm - 1].noticeId)
|
params.noticeId.push(this.noticeList[this.unreadNUm - 1].noticeId)
|
||||||
const res = await setQueryNoticeApi(params)
|
const res = await setQueryNoticeApi(params)
|
||||||
|
this.loading = false
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
if (this.noticeNum === 1) {
|
if (this.noticeNum === 1) {
|
||||||
this.$emit('closeDialog', false)
|
this.$emit('closeDialog', false)
|
||||||
|
|
|
||||||
|
|
@ -158,7 +158,7 @@
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="退料数量"
|
label="待退料数量"
|
||||||
align="center"
|
align="center"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
>
|
>
|
||||||
|
|
@ -250,7 +250,7 @@
|
||||||
append-to-body
|
append-to-body
|
||||||
>
|
>
|
||||||
<div style="margin-left: 40px; margin-bottom: 10px"
|
<div style="margin-left: 40px; margin-bottom: 10px"
|
||||||
>退料数量:{{ returnNum }}</div
|
>待退料数量:{{ returnNum }}</div
|
||||||
>
|
>
|
||||||
<el-form
|
<el-form
|
||||||
:model="codeQuery"
|
:model="codeQuery"
|
||||||
|
|
@ -502,7 +502,7 @@
|
||||||
|
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<div style="margin-left: 40px; margin-bottom: 10px"
|
<div style="margin-left: 40px; margin-bottom: 10px"
|
||||||
>退料数量:{{ returnNum }}</div
|
>待退料数量:{{ returnNum }}</div
|
||||||
>
|
>
|
||||||
<el-row :gutter="10" class="mb8" v-if="!dialogIsView">
|
<el-row :gutter="10" class="mb8" v-if="!dialogIsView">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
|
|
@ -531,7 +531,7 @@
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="退料数量"
|
label="待退料数量"
|
||||||
align="center"
|
align="center"
|
||||||
prop="backNum"
|
prop="backNum"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@
|
||||||
@click="handleRevoke(data)"
|
@click="handleRevoke(data)"
|
||||||
icon="el-icon-circle-close"
|
icon="el-icon-circle-close"
|
||||||
style="color: #de3115"
|
style="color: #de3115"
|
||||||
v-if="data.num == 0"
|
v-if="data.num == 0 && returnInfo.taskStatus != 40"
|
||||||
>
|
>
|
||||||
撤回
|
撤回
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
|
||||||
|
|
@ -310,7 +310,9 @@ export default {
|
||||||
const res = await addCompleteSetToolsApi(this.saveParams)
|
const res = await addCompleteSetToolsApi(this.saveParams)
|
||||||
|
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message.success('新增成功!')
|
this.$message.success(
|
||||||
|
!this.editInfo ? '新增成功!' : '修改成功!',
|
||||||
|
)
|
||||||
this.$emit('openHomePage')
|
this.$emit('openHomePage')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -310,7 +310,9 @@ export default {
|
||||||
const res = await addCompleteSetToolsApi(this.saveParams)
|
const res = await addCompleteSetToolsApi(this.saveParams)
|
||||||
|
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message.success('新增成功!')
|
this.$message.success(
|
||||||
|
!this.editInfo ? '新增成功!' : '修改成功!',
|
||||||
|
)
|
||||||
this.$emit('openHomePage')
|
this.$emit('openHomePage')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -65,12 +65,10 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
// 新增
|
// 新增
|
||||||
handleAddComplete() {
|
handleAddComplete() {
|
||||||
console.log('新增!')
|
|
||||||
this.$emit('handleAddComplete')
|
this.$emit('handleAddComplete')
|
||||||
},
|
},
|
||||||
// 编辑
|
// 编辑
|
||||||
handleEdit(data) {
|
handleEdit(data) {
|
||||||
console.log(data, '编辑')
|
|
||||||
this.$emit('handleAddComplete', data)
|
this.$emit('handleAddComplete', data)
|
||||||
},
|
},
|
||||||
// 删除
|
// 删除
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue