首页催办发送接口调试
This commit is contained in:
parent
ce1e2d59ff
commit
b677a7ff11
|
|
@ -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
|
|
@ -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>
|
||||
<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>
|
||||
<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 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-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>
|
||||
</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: ''
|
||||
<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) {
|
||||
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
|
||||
|
||||
},
|
||||
//获取渲染下拉数据
|
||||
initSelectData() {
|
||||
this.GetUnitData()
|
||||
this.GetProData()
|
||||
},
|
||||
// 获取 来往单位 列表数据
|
||||
async GetUnitData() {
|
||||
const params = {
|
||||
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");
|
||||
|
||||
}
|
||||
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`)
|
||||
},
|
||||
|
||||
|
||||
}}
|
||||
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
|
|
@ -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 = []
|
||||
|
|
|
|||
|
|
@ -208,10 +208,6 @@
|
|||
</script>
|
||||
|
||||
<style scoped>
|
||||
.el-table :empty::before {
|
||||
content: '-';
|
||||
color: gray;
|
||||
}
|
||||
.margin-top {
|
||||
margin-top: -15px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,12 @@
|
|||
<template>
|
||||
<div>
|
||||
<!-- 盘点报废 -->
|
||||
盘点报废
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {}
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<template>
|
||||
<div>
|
||||
<!-- 预报废管理 -->
|
||||
预报废管理
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {}
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<template>
|
||||
<div>
|
||||
<!-- 报废管理 -->
|
||||
报废管理
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {}
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
|
|
@ -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二维码扫码提供的网址-发布服务器的地址;
|
||||
|
|
|
|||
Loading…
Reference in New Issue