首页催办发送接口调试

This commit is contained in:
BianLzhaoMin 2024-04-17 13:20:11 +08:00
parent ce1e2d59ff
commit b677a7ff11
10 changed files with 1948 additions and 1518 deletions

View File

@ -32,7 +32,7 @@ export const getToPersonInfoAp = (data) => {
/* 催办信息发送 */
export const sendUrgingMessageApi = (data) => {
return request.post('/**', data)
return request.post('/material/todo/urgentProcessing', data)
}

File diff suppressed because it is too large Load Diff

View File

@ -135,267 +135,338 @@
>批量审核</el-button
>
</el-col> -->
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
>导出</el-button
>
</el-col>
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="typeList">
<el-table-column label="序号" sortable align="center" type="index" />
<el-table-column label="退料单号" align="center" prop="code" :show-overflow-tooltip="true"/>
<el-table-column label="退料单位" align="center" prop="unitName" :show-overflow-tooltip="true"/>
<el-table-column label="退料工程" align="center" prop="lotName" :show-overflow-tooltip="true"/>
<el-table-column label="退料机具" align="center" prop="typeName" :show-overflow-tooltip="true"/>
<el-table-column label="退料人员" align="center" prop="backPerson" :show-overflow-tooltip="true"/>
<el-table-column label="联系电话" align="center" prop="phone" :show-overflow-tooltip="true"/>
<el-table-column label="申请时间" align="center" prop="backTime" :show-overflow-tooltip="true"/>
<el-table-column label="协议号" align="center" prop="agreementCode" :show-overflow-tooltip="true"/>
<el-table-column label="退料状态" align="center" prop="taskName" :show-overflow-tooltip="true">
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="250">
<template slot-scope="scope">
<el-button size="mini" plain icon="el-icon-zoom-in" @click="handleSee(scope.row, 'see')">
查看
</el-button>
<el-button size="mini" type="warning" @click="handleReturn(scope.row, 'see')" v-if="scope.row.taskStatus!='40'">
退料
</el-button>
<el-button size="mini" type="primary" @click="handlePrint(scope.row)">
退料单
</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 退料单 -->
<dialogForm
:dialogTitle="title"
:isShowFlag.sync="isShowOneFlag"
:rowObj="rowObj"
:priKey="priKey"
></dialogForm>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
>导出</el-button
>
</el-col>
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="typeList">
<el-table-column
label="序号"
sortable
align="center"
type="index"
/>
<el-table-column
label="退料单号"
align="center"
prop="code"
:show-overflow-tooltip="true"
/>
<el-table-column
label="退料单位"
align="center"
prop="unitName"
:show-overflow-tooltip="true"
/>
<el-table-column
label="退料工程"
align="center"
prop="lotName"
:show-overflow-tooltip="true"
/>
<el-table-column
label="退料机具"
align="center"
prop="typeName"
:show-overflow-tooltip="true"
/>
<el-table-column
label="退料人员"
align="center"
prop="backPerson"
:show-overflow-tooltip="true"
/>
<el-table-column
label="联系电话"
align="center"
prop="phone"
:show-overflow-tooltip="true"
/>
<el-table-column
label="申请时间"
align="center"
prop="backTime"
:show-overflow-tooltip="true"
/>
<el-table-column
label="协议号"
align="center"
prop="agreementCode"
:show-overflow-tooltip="true"
/>
<el-table-column
label="退料状态"
align="center"
prop="taskName"
:show-overflow-tooltip="true"
>
</el-table-column>
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
width="250"
>
<template slot-scope="scope">
<el-button
size="mini"
plain
icon="el-icon-zoom-in"
@click="handleSee(scope.row, 'see')"
>
查看
</el-button>
<el-button
size="mini"
type="warning"
@click="handleReturn(scope.row, 'see')"
v-if="scope.row.taskStatus != '40'"
>
退料
</el-button>
<el-button
size="mini"
type="primary"
@click="handlePrint(scope.row)"
>
退料单
</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 退料单 -->
<dialogForm
:dialogTitle="title"
:isShowFlag.sync="isShowOneFlag"
:rowObj="rowObj"
:priKey="priKey"
></dialogForm>
</div>
</template>
<script>
import { getBackAuditList, getViewByExamine, ApiBackApplyAudit,ApiBackApplyRefuse,getBackReceiveList } from "@/api/claimAndRefund/return.js"
import { getInfo } from "@/api/login";
import { getUnitData, getProData, getAgreementInfoById, } from "@/api/claimAndRefund/receive.js"
import dialogForm from "./dialogFormExame.vue";
export default {
// name: "ReturnExamine",
components: { dialogForm, },
data() {
return {
type: '',
isShowOneFlag: false,//退
priKey: '',
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
typeList: [],
//
title: "",
//
open: false,
//
dateRange: [],
//
queryParams: {
pageNum: 1,
pageSize: 10,
keyWord: '',//
unitId: "",//id
lotId: '',//id
taskStatus: '',//
typeId: '',//
time: '',
agreementCode: '',//
startTime: '',
endTime: ''
</template>
<script>
import {
getBackAuditList,
getViewByExamine,
ApiBackApplyAudit,
ApiBackApplyRefuse,
getBackReceiveList,
} from '@/api/claimAndRefund/return.js'
import { getInfo } from '@/api/login'
import {
getUnitData,
getProData,
getAgreementInfoById,
} from '@/api/claimAndRefund/receive.js'
import dialogForm from './dialogFormExame.vue'
export default {
// name: "ReturnExamine",
components: { dialogForm },
data() {
return {
type: '',
isShowOneFlag: false, //退
priKey: '',
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
typeList: [],
//
title: '',
//
open: false,
//
dateRange: [],
//
queryParams: {
pageNum: 1,
pageSize: 10,
keyWord: '', //
unitId: '', //id
lotId: '', //id
taskStatus: '', //
typeId: '', //
time: '',
agreementCode: '', //
startTime: '',
endTime: '',
},
companyId: '',
deptOptions: [],
unitList: [],
proList: [],
taskStatusList: [
{
name: '待审核',
id: '37',
},
{
name: '已审核',
id: '38',
},
],
rowObj: {},
}
},
companyId: '',
deptOptions: [],
unitList: [],
proList: [],
taskStatusList: [
{
name: '待审核',
id: '37'
},
{
name: '已审核',
id: '38'
}
],
rowObj: {},
};
},
created() {
this.initSelectData()
this.InitIGetInfo()
},
methods: {
InitIGetInfo() {
getInfo().then(res => {
this.companyId = res.user.companyId
this.getList();
})
},
//
handleNodeClick(ev) {
},
//
initSelectData() {
this.GetUnitData()
this.GetProData()
},
//
async GetUnitData() {
const params = {
}
const res = await getUnitData(params)
this.unitList = res.data
console.log('GetUnitData ======================', res)
},
//
async GetProData() {
const params = {
id: this.queryParams.unitId
}
const res = await getProData(params)
this.proList = res.data
console.log('GetProData ======================', res)
},
//
async InitGetAgreementInfoById() {
const {
unitId,
proId
} = this.queryParams
if (!unitId || !proId) {
return
}
const params = {
unitId: unitId,
projectId: proId
}
const res = await getAgreementInfoById(params)
// this.proList = res.data
console.log('getAgreementInfoById ======================', res)
this.queryParams.agreementCode = res.data.agreementCode
},
getAgreementByProId() {
this.InitGetAgreementInfoById()
},
getAgreementByUnit() {
this.GetProData()
},
/** 查询列表 startTime,结束日期endTime */
async getList() {
// this.loading = true;
this.queryParams.startTime = this.dateRange[0]
this.queryParams.endTime = this.dateRange[1]
try {
let params = {
flag:1,
companyId: this.companyId,
...this.queryParams
}
console.log("paramsparamsparams", params)
const res = await getBackReceiveList(params)
this.typeList = res.data.rows;
this.total = res.data.total;
this.loading = false;
} catch (error) {
}
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.dateRange = [];
// this.resetForm("queryForm");
this.$refs.queryForm.resetFields()
this.initSelectData()
this.handleQuery();
},
//退
handlePrint(row) {
// this.title = "退";
this.isShowOneFlag = true
this.rowObj = row
},
//
handleSee(row) {
this.$tab.closeOpenPage({
path:'/claimAndRefund/returnInDetail',
query:{
Id:row.id,
isView:true,
}
})
},
//退
handleReturn(row) {
this.$tab.closeOpenPage({
path:'/claimAndRefund/returnInDetail',
query:{
Id:row.id,
taskId:row.taskId
}
})
},
/** 导出按钮操作 */
handleExport() {
this.download('base/backReceive/export', {
...this.queryParams
}, `退料接收_${new Date().getTime()}.xlsx`)
},
}}
created() {
this.initSelectData()
this.InitIGetInfo()
},
methods: {
InitIGetInfo() {
getInfo().then((res) => {
this.companyId = res.user.companyId
this.getList()
})
},
//
handleNodeClick(ev) {},
//
initSelectData() {
this.GetUnitData()
this.GetProData()
},
//
async GetUnitData() {
const params = {}
const res = await getUnitData(params)
this.unitList = res.data
console.log('GetUnitData ======================', res)
},
//
async GetProData() {
const params = {
id: this.queryParams.unitId,
}
const res = await getProData(params)
this.proList = res.data
console.log('GetProData ======================', res)
},
//
async InitGetAgreementInfoById() {
const { unitId, proId } = this.queryParams
if (!unitId || !proId) {
return
}
const params = {
unitId: unitId,
projectId: proId,
}
const res = await getAgreementInfoById(params)
// this.proList = res.data
console.log('getAgreementInfoById ======================', res)
this.queryParams.agreementCode = res.data.agreementCode
},
getAgreementByProId() {
this.InitGetAgreementInfoById()
},
getAgreementByUnit() {
this.GetProData()
},
/** 查询列表 startTime,结束日期endTime */
async getList() {
// this.loading = true;
this.queryParams.startTime = this.dateRange[0]
this.queryParams.endTime = this.dateRange[1]
try {
let params = {
flag: 1,
companyId: this.companyId,
...this.queryParams,
}
console.log('paramsparamsparams', params)
const res = await getBackReceiveList(params)
this.typeList = res.data.rows
this.total = res.data.total
this.loading = false
} catch (error) {}
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1
this.getList()
},
/** 重置按钮操作 */
resetQuery() {
this.dateRange = []
// this.resetForm("queryForm");
this.$refs.queryForm.resetFields()
this.initSelectData()
this.handleQuery()
},
//退
handlePrint(row) {
// this.title = "退";
this.isShowOneFlag = true
this.rowObj = row
},
//
handleSee(row) {
this.$tab.closeOpenPage({
path: '/claimAndRefund/return/returnInDetail',
query: {
Id: row.id,
isView: true,
},
})
},
//退
handleReturn(row) {
this.$tab.closeOpenPage({
path: '/claimAndRefund/return/returnInDetail',
query: {
Id: row.id,
taskId: row.taskId,
},
})
},
/** 导出按钮操作 */
handleExport() {
this.download(
'base/backReceive/export',
{
...this.queryParams,
},
`退料接收_${new Date().getTime()}.xlsx`,
)
},
},
}
</script>
<style lang="scss" scoped>
.submit_box {

File diff suppressed because it is too large Load Diff

View File

@ -122,7 +122,7 @@
> </el-button
>
<!-- 代办事件为新购任务时显示催办按钮 -->
<!-- 代办事件为领料任务时显示催办按钮 -->
<el-button
size="mini"
type="text"
@ -321,15 +321,13 @@
taskStatus,
})
res.map((e) => {
if (e.phonenumber) {
this.toPersonInfo.push({
noticeUser: e.userId,
phone: e.phonenumber,
modelName: '领料催办',
companyId: e.companyId,
v_name: e.nickName,
})
}
this.toPersonInfo.push({
noticeUser: e.userId,
phone: e.phonenumber,
modelName: '领料催办',
companyId: e.companyId,
v_name: e.nickName,
})
})
this.sendMessageParams.message = `宁夏送变电工程有限公司提示:您有一条任务单号为 ${taskCode} 的待办任务未处理,请及时处理。`
@ -346,10 +344,7 @@
/* 催办发送 */
async submitForm() {
this.sendMessageParams.bmNoticeInfoList = this.toPersonInfo
const { data: res } = await sendUrgingMessageApi(
this.sendMessageParams,
)
const res = await sendUrgingMessageApi(this.sendMessageParams)
if (res.code == 200) {
this.$message.success('发送成功!')
this.toPersonInfo = []

View File

@ -208,10 +208,6 @@
</script>
<style scoped>
.el-table :empty::before {
content: '-';
color: gray;
}
.margin-top {
margin-top: -15px;
}

View File

@ -0,0 +1,12 @@
<template>
<div>
<!-- 盘点报废 -->
盘点报废
</div>
</template>
<script>
export default {}
</script>
<style></style>

View File

@ -0,0 +1,12 @@
<template>
<div>
<!-- 预报废管理 -->
预报废管理
</div>
</template>
<script>
export default {}
</script>
<style></style>

View File

@ -0,0 +1,12 @@
<template>
<div>
<!-- 报废管理 -->
报废管理
</div>
</template>
<script>
export default {}
</script>
<style></style>

View File

@ -43,6 +43,7 @@ module.exports = {
// target: `https://z.csgmall.com.cn`,
target: `http://10.40.92.14:8080`, //福
// target: `http://10.40.92.8:8080`, //福
//******** 注意事项 ********* */
//1.全局替换qrUrl二维码扫码提供的网址-发布服务器的地址;