新购到货-通知人员
This commit is contained in:
parent
ad4572febd
commit
1a16d8d016
|
|
@ -1,6 +1,6 @@
|
||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
|
||||||
//机具类型管理列表信息
|
//新购到货-列表
|
||||||
export function getListNewBuy(query) {
|
export function getListNewBuy(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/material/purchase_check_info/list',
|
url: '/material/purchase_check_info/list',
|
||||||
|
|
@ -9,7 +9,7 @@ export function getListNewBuy(query) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//任务 详情
|
//新购到货-二级列表详情
|
||||||
export function getPurchaseCheckInfo(query) {
|
export function getPurchaseCheckInfo(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/material//purchase_check_info/getInfo',
|
url: '/material//purchase_check_info/getInfo',
|
||||||
|
|
@ -18,7 +18,7 @@ export function getPurchaseCheckInfo(query) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 保存--新增
|
// 新购到货-新增
|
||||||
export function addPurchaseCheckInfo(data) {
|
export function addPurchaseCheckInfo(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/material/purchase_check_info',
|
url: '/material/purchase_check_info',
|
||||||
|
|
@ -27,7 +27,7 @@ export function addPurchaseCheckInfo(data) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//人员 详情
|
//通知人员列表
|
||||||
export function getNoticePeople(query) {
|
export function getNoticePeople(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/material/purchase_notice_person/list',
|
url: '/material/purchase_notice_person/list',
|
||||||
|
|
@ -36,7 +36,7 @@ export function getNoticePeople(query) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 人员--删除
|
// 通知人员--删除
|
||||||
export function delPeople(ids) {
|
export function delPeople(ids) {
|
||||||
return request({
|
return request({
|
||||||
url: '/material/purchase_notice_person/' + ids,
|
url: '/material/purchase_notice_person/' + ids,
|
||||||
|
|
@ -65,10 +65,10 @@ export function bmNoticeInfo(data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//机具类型管理列表信息
|
//通知-添加人员-未选择人员
|
||||||
export function getUserAll() {
|
export function getListUnSelected() {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/user/list',
|
url: '/material/purchase_notice_person/listUnSelected',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
|
|
||||||
<el-table v-loading="loading" :data="tableList" ref="multipleTable" row-key="teamId" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="tableList" ref="multipleTable" row-key="teamId" @selection-change="handleSelectionChange" border>
|
||||||
<el-table-column type="selection" width="55" align="center" :reserve-selection="true" />
|
<el-table-column type="selection" width="55" align="center" :reserve-selection="true" />
|
||||||
<el-table-column label="序号" align="center" width="80" type="index">
|
<el-table-column label="序号" align="center" width="80" type="index">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@
|
||||||
style="width: 240px"
|
style="width: 240px"
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
@input="taxRateChange"
|
@input="taxRateChange"
|
||||||
|
|
||||||
/>
|
/>
|
||||||
<span>%</span>
|
<span>%</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -75,14 +76,7 @@
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleSave" >保存</el-button>
|
||||||
type="primary"
|
|
||||||
plain
|
|
||||||
icon="el-icon-plus"
|
|
||||||
size="mini"
|
|
||||||
@click="handleSave"
|
|
||||||
>保存</el-button
|
|
||||||
>
|
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
|
|
@ -267,7 +261,6 @@ import {
|
||||||
getPurchaseCheckInfo,
|
getPurchaseCheckInfo,
|
||||||
equipmentTypeTree,
|
equipmentTypeTree,
|
||||||
addPurchaseCheckInfo,
|
addPurchaseCheckInfo,
|
||||||
// getPurchaseCheckInfo,
|
|
||||||
updatePurchaseCheckInfo,
|
updatePurchaseCheckInfo,
|
||||||
} from '@/api/purchase/goodsArrived'
|
} from '@/api/purchase/goodsArrived'
|
||||||
// import { getUserByRoleList } from '@/api/system/user'
|
// import { getUserByRoleList } from '@/api/system/user'
|
||||||
|
|
@ -462,6 +455,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
taxRateChange(val){
|
taxRateChange(val){
|
||||||
|
this.maForm.taxRate = val.replace(/[^\d.]/g,'')
|
||||||
this.equipmentList.forEach(item=>{
|
this.equipmentList.forEach(item=>{
|
||||||
item.purchasePrice = item.purchaseNoPrice*(1 + val/100)
|
item.purchasePrice = item.purchaseNoPrice*(1 + val/100)
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
v-hasPermi="['newPurchase:tools:add']"
|
v-hasPermi="['newPurchase:tools:add']"
|
||||||
>新增</el-button
|
>设备到货新增</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
|
|
@ -100,20 +100,20 @@
|
||||||
row-key="id"
|
row-key="id"
|
||||||
border
|
border
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
||||||
<el-table-column
|
<el-table-column width="60"
|
||||||
align="center"
|
align="center"
|
||||||
label="序号"
|
label="序号"
|
||||||
type="index"
|
type="index"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center" width="160"
|
||||||
label="到货时间"
|
label="到货时间"
|
||||||
prop="arrivalTime"
|
prop="arrivalTime"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="采购单号"
|
label="采购单号" width="150"
|
||||||
align="center"
|
align="center"
|
||||||
prop="code"
|
prop="code"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
|
|
@ -168,50 +168,45 @@
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="操作时间"
|
label="操作时间"
|
||||||
align="center"
|
align="center" width="160"
|
||||||
prop="createTime"
|
prop="createTime"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<el-table-column label="操作" align="center" width="200">
|
<el-table-column label="操作" align="center" width="250">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini" style="margin-bottom: 10px;"
|
||||||
type="text"
|
type="normal"
|
||||||
icon="el-icon-zoom-in"
|
|
||||||
@click="handleView(scope.row)"
|
@click="handleView(scope.row)"
|
||||||
v-if="scope.row.taskStatus != 24"
|
v-if="scope.row.taskStatus != 24"
|
||||||
>查看</el-button
|
>查看</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini" style="margin-bottom: 10px;"
|
||||||
type="text"
|
type="primary"
|
||||||
icon="el-icon-edit"
|
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['newPurchase:tools:edit']"
|
v-hasPermi="['newPurchase:tools:edit']"
|
||||||
>编辑</el-button
|
>编辑</el-button
|
||||||
>
|
>
|
||||||
|
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini" style="margin-bottom: 10px;"
|
||||||
type="text"
|
type="success"
|
||||||
icon="el-icon-edit"
|
|
||||||
@click="handleNotice(scope.row)"
|
@click="handleNotice(scope.row)"
|
||||||
v-hasPermi="['newPurchase:tools:edit']"
|
v-hasPermi="['newPurchase:tools:edit']"
|
||||||
>通知</el-button
|
>通知</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="warning"
|
||||||
icon="el-icon-edit"
|
|
||||||
@click="handlePrint(scope.row)"
|
@click="handlePrint(scope.row)"
|
||||||
>验收单</el-button
|
>验收单</el-button
|
||||||
>
|
>
|
||||||
|
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="danger"
|
||||||
icon="el-icon-delete"
|
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
v-hasPermi="['newPurchase:tools:del']"
|
v-hasPermi="['newPurchase:tools:del']"
|
||||||
>删除</el-button
|
>删除</el-button
|
||||||
|
|
@ -409,20 +404,18 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-table v-loading="loadingTwo" :data="getListPeople" width="600px" height = "500px" >
|
<el-table :data="getListPeople" width="600px" height="450" >
|
||||||
<el-table-column type="selection" width="55" align="center" :reserve-selection="true" />
|
<el-table-column type="selection" width="55" align="center" :reserve-selection="true" />
|
||||||
<el-table-column label="人员名称" align="center" prop="userName" sortable/>
|
<el-table-column label="人员名称" align="center" prop="userName" :show-overflow-tooltip="true"/>
|
||||||
<el-table-column label="所属机构" align="center" prop="newdeptId" sortable/>
|
<el-table-column label="所属机构" align="center" prop="deptName" :show-overflow-tooltip="true"/>
|
||||||
<el-table-column label="角色" align="center" prop="userRoleName" sortable/>
|
<el-table-column label="角色" align="center" prop="roleName" :show-overflow-tooltip="true"/>
|
||||||
<el-table-column label="联系电话" align="center" prop="telphone" sortable/>
|
<el-table-column label="联系电话" align="center" prop="telphone" :show-overflow-tooltip="true"/>
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="danger"
|
||||||
icon="el-icon-delete"
|
|
||||||
@click="handleDeletePeople(scope.row)"
|
@click="handleDeletePeople(scope.row)"
|
||||||
v-hasPermi="['basic:device:del']"
|
|
||||||
>删除</el-button>
|
>删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
@ -439,7 +432,7 @@
|
||||||
|
|
||||||
<!-- 人员添加 -->
|
<!-- 人员添加 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
:title="title"
|
title="人员添加"
|
||||||
:visible.sync="peopleOpen"
|
:visible.sync="peopleOpen"
|
||||||
v-if="peopleOpen"
|
v-if="peopleOpen"
|
||||||
width="1000px"
|
width="1000px"
|
||||||
|
|
@ -457,14 +450,14 @@
|
||||||
label="人员账号"
|
label="人员账号"
|
||||||
align="center"
|
align="center"
|
||||||
key="userName"
|
key="userName"
|
||||||
prop="userName"
|
prop="userName" width="120"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="人员名称"
|
label="人员名称"
|
||||||
align="center"
|
align="center"
|
||||||
key="nickName"
|
key="nickName"
|
||||||
prop="nickName"
|
prop="nickName" width="120"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
|
@ -484,9 +477,9 @@
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="联系电话"
|
label="联系电话"
|
||||||
align="center"
|
align="center"
|
||||||
key="phonenumber"
|
key="telphone"
|
||||||
prop="phonenumber"
|
prop="telphone"
|
||||||
width="120"
|
|
||||||
/>
|
/>
|
||||||
<!-- <el-table-column
|
<!-- <el-table-column
|
||||||
label="操作"
|
label="操作"
|
||||||
|
|
@ -520,9 +513,10 @@ import {
|
||||||
getAcceptanceForm,
|
getAcceptanceForm,
|
||||||
purchaseCheckInfoRemove,
|
purchaseCheckInfoRemove,
|
||||||
getNoticePeople,
|
getNoticePeople,
|
||||||
getUserAll,
|
getListUnSelected,
|
||||||
addNoticeUser,
|
addNoticeUser,
|
||||||
bmNoticeInfo,
|
bmNoticeInfo,
|
||||||
|
delPeople
|
||||||
} from '@/api/purchase/goodsArrived'
|
} from '@/api/purchase/goodsArrived'
|
||||||
// import {
|
// import {
|
||||||
// getRepairedList,
|
// getRepairedList,
|
||||||
|
|
@ -595,33 +589,6 @@ export default {
|
||||||
// this.getTypeList()
|
// this.getTypeList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 多选框选中-添加人员
|
|
||||||
handleSelectionUser(selection) {
|
|
||||||
// console.log(selection)
|
|
||||||
this.chosenUserList = selection
|
|
||||||
},
|
|
||||||
|
|
||||||
//添加人员
|
|
||||||
addUser() {
|
|
||||||
if (this.chosenUserList.length < 1) {
|
|
||||||
this.$message.error('请选择人员!')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
// console.log(this.chosenUserList,"chosenUserList")
|
|
||||||
addNoticeUser(this.chosenUserList).then((response) => {
|
|
||||||
if (response.code == 200) {
|
|
||||||
// this.getNoticeUserList()
|
|
||||||
this.peopleOpen = false
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
/** 查询所有用户列表--可添加人员 */
|
|
||||||
getAllUserList() {
|
|
||||||
getUserAll().then((response) => {
|
|
||||||
this.userList = response.rows
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
// getTypeList() {
|
// getTypeList() {
|
||||||
// getTypeList({ level: '3' }).then((response) => {
|
// getTypeList({ level: '3' }).then((response) => {
|
||||||
|
|
@ -686,15 +653,13 @@ export default {
|
||||||
|
|
||||||
handleNotice(row){
|
handleNotice(row){
|
||||||
this.reset()
|
this.reset()
|
||||||
this.$set(
|
this.form.taskId = row.taskId;
|
||||||
this.form,
|
this.$set(this.form,'remark','各位同事您好,请于' + this.getNowTime() + '在宏源工业园,进行机具验收。')
|
||||||
'remark',
|
this.getNoticeList()
|
||||||
'各位同事您好,请于' +
|
|
||||||
this.getNowTime() +
|
|
||||||
'在宏源工业园,进行机具验收。'
|
|
||||||
)
|
|
||||||
this.showPeople = true;
|
this.showPeople = true;
|
||||||
const taskId = row.taskId;
|
},
|
||||||
|
getNoticeList(){
|
||||||
|
const taskId = this.form.taskId;
|
||||||
getNoticePeople({taskId: taskId}).then((response) => {
|
getNoticePeople({taskId: taskId}).then((response) => {
|
||||||
this.getListPeople = response.rows;
|
this.getListPeople = response.rows;
|
||||||
this.showPeople = true
|
this.showPeople = true
|
||||||
|
|
@ -702,12 +667,50 @@ export default {
|
||||||
this.title = '通知'
|
this.title = '通知'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
addUserOpen() {
|
addUserOpen() {
|
||||||
this.getAllUserList()
|
this.getAllUserList()
|
||||||
this.peopleOpen = true
|
this.peopleOpen = true
|
||||||
},
|
},
|
||||||
|
/** 查询所有用户列表--可添加人员 */
|
||||||
|
getAllUserList() {
|
||||||
|
getListUnSelected().then((response) => {
|
||||||
|
this.userList = response.rows
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
// 多选框选中-添加人员
|
||||||
|
handleSelectionUser(selection) {
|
||||||
|
// console.log(selection)
|
||||||
|
this.chosenUserList = selection
|
||||||
|
},
|
||||||
|
|
||||||
|
//添加人员
|
||||||
|
addUser() {
|
||||||
|
if (this.chosenUserList.length < 1) {
|
||||||
|
this.$message.error('请选择人员!')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
// console.log(this.chosenUserList,"chosenUserList")
|
||||||
|
addNoticeUser(this.chosenUserList).then((response) => {
|
||||||
|
if (response.code == 200) {
|
||||||
|
this.getNoticeList()
|
||||||
|
this.peopleOpen = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleDeletePeople(row){
|
||||||
|
const ids = row.id
|
||||||
|
this.$modal
|
||||||
|
.confirm('是否删除所选择的通知人员?')
|
||||||
|
.then(function () {
|
||||||
|
return delPeople(ids)
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
this.getNoticeList()
|
||||||
|
this.$modal.msgSuccess('删除成功')
|
||||||
|
})
|
||||||
|
.catch(() => {})
|
||||||
|
},
|
||||||
//确认消息通知
|
//确认消息通知
|
||||||
configNotice() {
|
configNotice() {
|
||||||
this.$refs['form'].validate((valid) => {
|
this.$refs['form'].validate((valid) => {
|
||||||
|
|
@ -742,24 +745,25 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
// 人员取消按钮
|
// 人员取消按钮
|
||||||
cancel() {
|
cancel() {
|
||||||
this.showPeople = false;
|
this.showPeople = false;
|
||||||
this.reset();
|
this.reset();
|
||||||
},
|
},
|
||||||
|
|
||||||
// 表单重置
|
// 表单重置
|
||||||
reset() {
|
reset() {
|
||||||
this.form = {};
|
this.form = {
|
||||||
|
taskId:"",
|
||||||
|
remark:"",
|
||||||
|
};
|
||||||
this.resetForm("form");
|
this.resetForm("form");
|
||||||
},
|
},
|
||||||
// 多选框选中数据
|
// // 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
// handleSelectionChange(selection) {
|
||||||
this.ids = selection.map((item) => item.taskId)
|
// this.ids = selection.map((item) => item.taskId)
|
||||||
this.single = selection.length != 1
|
// this.single = selection.length != 1
|
||||||
this.multiple = !selection.length
|
// this.multiple = !selection.length
|
||||||
},
|
// },
|
||||||
|
|
||||||
/** 验收按钮 */
|
/** 验收按钮 */
|
||||||
handleAccept(row) {
|
handleAccept(row) {
|
||||||
|
|
@ -840,20 +844,8 @@ export default {
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
handleDeletePeople(row){
|
|
||||||
const ids = row.id
|
},
|
||||||
this.$modal
|
|
||||||
.confirm('是否确认删除所选择的数据项?')
|
|
||||||
.then(function () {
|
|
||||||
return deletePeople(ids)
|
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
this.handleNotice(row)
|
|
||||||
this.$modal.msgSuccess('删除成功')
|
|
||||||
})
|
|
||||||
.catch(() => {})
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
$route: {
|
$route: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue