优化页面,增加领料催办短信问题

This commit is contained in:
BianLzhaoMin 2024-07-10 14:12:37 +08:00
parent 1db5f7cd6f
commit 47481e8fb4
6 changed files with 23 additions and 12 deletions

View File

@ -1,5 +1,5 @@
<template>
<div>
<div class="notice-dialog">
<!-- 消息通知弹框 -->
<el-dialog
:title="noticeTitle"
@ -10,12 +10,18 @@
:before-close="handleCloseDialog"
:close-on-click-modal="false"
:close-on-press-escape="false"
top="0vh"
append-to-body
custom-class="center-dialog"
>
<el-button class="notice-num" type="primary"
>重要通知({{ 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
>
<h2 class="release-time">发布时间{{ releaseTime }}</h2>
@ -49,6 +55,7 @@ export default {
return {
unreadNUm: 1,
noticeListDoc: [],
loading: false,
}
},
computed: {
@ -68,7 +75,7 @@ export default {
return this.noticeList[this.unreadNUm - 1].createTime.slice(0, 10)
},
releaseCreateName() {
return this.noticeList[this.unreadNUm - 1].createBy
return this.noticeList[this.unreadNUm - 1].nickName
},
},
@ -85,12 +92,14 @@ export default {
},
//
async handleKnow() {
this.loading = true
const params = {
noticeId: [],
userId: sessionStorage.getItem('userId'),
}
params.noticeId.push(this.noticeList[this.unreadNUm - 1].noticeId)
const res = await setQueryNoticeApi(params)
this.loading = false
if (res.code == 200) {
if (this.noticeNum === 1) {
this.$emit('closeDialog', false)

View File

@ -158,7 +158,7 @@
:show-overflow-tooltip="true"
/>
<el-table-column
label="退料数量"
label="退料数量"
align="center"
:show-overflow-tooltip="true"
>
@ -250,7 +250,7 @@
append-to-body
>
<div style="margin-left: 40px; margin-bottom: 10px"
>退料数量{{ returnNum }}</div
>退料数量{{ returnNum }}</div
>
<el-form
:model="codeQuery"
@ -502,7 +502,7 @@
<div v-else>
<div style="margin-left: 40px; margin-bottom: 10px"
>退料数量{{ returnNum }}</div
>退料数量{{ returnNum }}</div
>
<el-row :gutter="10" class="mb8" v-if="!dialogIsView">
<el-col :span="1.5">
@ -531,7 +531,7 @@
:show-overflow-tooltip="true"
/>
<el-table-column
label="退料数量"
label="退料数量"
align="center"
prop="backNum"
:show-overflow-tooltip="true"

View File

@ -50,7 +50,7 @@
@click="handleRevoke(data)"
icon="el-icon-circle-close"
style="color: #de3115"
v-if="data.num == 0"
v-if="data.num == 0 && returnInfo.taskStatus != 40"
>
撤回
</el-button>

View File

@ -310,7 +310,9 @@ export default {
const res = await addCompleteSetToolsApi(this.saveParams)
if (res.code == 200) {
this.$message.success('新增成功!')
this.$message.success(
!this.editInfo ? '新增成功!' : '修改成功!',
)
this.$emit('openHomePage')
}
}

View File

@ -310,7 +310,9 @@ export default {
const res = await addCompleteSetToolsApi(this.saveParams)
if (res.code == 200) {
this.$message.success('新增成功!')
this.$message.success(
!this.editInfo ? '新增成功!' : '修改成功!',
)
this.$emit('openHomePage')
}
}

View File

@ -65,12 +65,10 @@ export default {
methods: {
//
handleAddComplete() {
console.log('新增!')
this.$emit('handleAddComplete')
},
//
handleEdit(data) {
console.log(data, '编辑')
this.$emit('handleAddComplete', data)
},
//