首页催办发送接口调试

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

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -208,10 +208,6 @@
</script> </script>
<style scoped> <style scoped>
.el-table :empty::before {
content: '-';
color: gray;
}
.margin-top { .margin-top {
margin-top: -15px; 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: `https://z.csgmall.com.cn`,
target: `http://10.40.92.14:8080`, //福 target: `http://10.40.92.14:8080`, //福
// target: `http://10.40.92.8:8080`, //福
//******** 注意事项 ********* */ //******** 注意事项 ********* */
//1.全局替换qrUrl二维码扫码提供的网址-发布服务器的地址; //1.全局替换qrUrl二维码扫码提供的网址-发布服务器的地址;