新购新增联调4
This commit is contained in:
parent
c16548d169
commit
24f30cce3f
|
|
@ -36,6 +36,14 @@ export function updatePurchaseCheckInfo(data) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 新购到货--删除
|
||||||
|
export function purchaseCheckInfoRemove(ids) {
|
||||||
|
return request({
|
||||||
|
url: '/material/purchase_check_info/' + ids,
|
||||||
|
method: 'delete',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
//通知人员列表
|
//通知人员列表
|
||||||
export function getNoticePeople(query) {
|
export function getNoticePeople(query) {
|
||||||
return request({
|
return request({
|
||||||
|
|
@ -45,8 +53,6 @@ export function getNoticePeople(query) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 人员管理--新增
|
// 人员管理--新增
|
||||||
export function addNoticeUser(data) {
|
export function addNoticeUser(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|
@ -56,7 +62,7 @@ export function addNoticeUser(data) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 人员通知-通知
|
||||||
export function bmNoticeInfo(data) {
|
export function bmNoticeInfo(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/material/purchase_notice_person/batchSendSms',
|
url: '/material/purchase_notice_person/batchSendSms',
|
||||||
|
|
@ -81,7 +87,7 @@ export function delPeople(ids) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取机具类型树2
|
//获取机具类型树
|
||||||
export function equipmentTypeTree(query) {
|
export function equipmentTypeTree(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/material/ma_type/equipmentType',
|
url: '/material/ma_type/equipmentType',
|
||||||
|
|
@ -90,7 +96,6 @@ export function equipmentTypeTree(query) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 上传报告附件
|
// 上传报告附件
|
||||||
export function uploadPurchaseFile(data) {
|
export function uploadPurchaseFile(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|
@ -101,57 +106,4 @@ export function uploadPurchaseFile(data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export function getHouseDetail(id) {
|
|
||||||
return request({
|
|
||||||
url: '/material/wh_house_info/'+ id,
|
|
||||||
method: 'get',
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export function queryKeeperNameApi(query) {
|
|
||||||
return request({
|
|
||||||
url: '/material/ma_type/selectMaTypeListByTypeId',
|
|
||||||
method: 'get',
|
|
||||||
params: query
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export function delHouse(id) {
|
|
||||||
return request({
|
|
||||||
url: '/material/wh_house_info/' + id,
|
|
||||||
method: 'delete',
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
export function editHouse(data) {
|
|
||||||
return request({
|
|
||||||
url: '/material/wh_house_info',
|
|
||||||
method: 'put',
|
|
||||||
data: data,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
export function addHouse(data) {
|
|
||||||
return request({
|
|
||||||
url: '/material/wh_house_info',
|
|
||||||
method: 'post',
|
|
||||||
data: data,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
export function getProjectList(query) {
|
|
||||||
return request({
|
|
||||||
url: '/material/base/bmProjectInfo/projectInfoAll',
|
|
||||||
method: 'get',
|
|
||||||
params: query
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@
|
||||||
<el-table-column label="采购价格(元含税)" align="center" prop="purchaseTaxPrice" width="80"/>
|
<el-table-column label="采购价格(元含税)" align="center" prop="purchaseTaxPrice" width="80"/>
|
||||||
<el-table-column label="采购价格(元不含税)" align="center" prop="purchasePrice" width="98"/>
|
<el-table-column label="采购价格(元不含税)" align="center" prop="purchasePrice" width="98"/>
|
||||||
<el-table-column label="税率" align="center" prop="taxRate" />
|
<el-table-column label="税率" align="center" prop="taxRate" />
|
||||||
<el-table-column label="操作人" align="center" prop="createUserName" />
|
<el-table-column label="操作人" align="center" prop="createBy" />
|
||||||
<el-table-column label="操作时间" align="center" prop="createTime" />
|
<el-table-column label="操作时间" align="center" prop="createTime" />
|
||||||
<el-table-column label="状态" align="center" prop="taskStatus">
|
<el-table-column label="状态" align="center" prop="taskStatus">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
|
@ -88,7 +88,7 @@
|
||||||
<span v-if="scope.row.taskStatus==8">驳回待入库</span>
|
<span v-if="scope.row.taskStatus==8">驳回待入库</span>
|
||||||
<span v-if="scope.row.taskStatus==9">入库进行中</span>
|
<span v-if="scope.row.taskStatus==9">入库进行中</span>
|
||||||
<span v-if="scope.row.taskStatus==10">未完成</span>
|
<span v-if="scope.row.taskStatus==10">未完成</span>
|
||||||
<span v-else>/</span>
|
<!-- <span v-else>/</span> -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -533,7 +533,6 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const newDataListNew = [...this.equipmentList, ...tempList]
|
const newDataListNew = [...this.equipmentList, ...tempList]
|
||||||
const map = new Map()
|
const map = new Map()
|
||||||
for (let item of newDataListNew) {
|
for (let item of newDataListNew) {
|
||||||
|
|
@ -769,6 +768,26 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
// console.log(row.id)
|
||||||
|
this.$modal
|
||||||
|
.confirm('是否确认删除所选择的数据项?')
|
||||||
|
.then(() => {
|
||||||
|
this.deviceType.forEach((e, index) => {
|
||||||
|
if (e[3] === row.typeId) {
|
||||||
|
this.deviceType.splice(index, 1)
|
||||||
|
this.propsKey++
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.equipmentList.forEach((item, index) => {
|
||||||
|
if (item.id == row.id) {
|
||||||
|
this.equipmentList.splice(index, 1)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
.catch(() => {})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -153,7 +153,7 @@
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="物资厂家"
|
label="物资厂家"
|
||||||
align="center"
|
align="center"
|
||||||
prop="remark"
|
prop="supplier"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
@ -161,7 +161,7 @@
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="操作人"
|
label="操作人"
|
||||||
align="center"
|
align="center"
|
||||||
prop="updateBy"
|
prop="createBy"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
@ -169,7 +169,7 @@
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="操作时间"
|
label="操作时间"
|
||||||
align="center" width="160"
|
align="center" width="160"
|
||||||
prop="updateTime"
|
prop="createTime"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
@ -207,7 +207,7 @@
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="danger"
|
type="danger"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDeletePurchase(scope.row)"
|
||||||
v-hasPermi="['purchase:info:remove']"
|
v-hasPermi="['purchase:info:remove']"
|
||||||
>删除</el-button
|
>删除</el-button
|
||||||
>
|
>
|
||||||
|
|
@ -828,13 +828,12 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
handleDelete(row) {
|
handleDeletePurchase(row) {
|
||||||
// console.log(row)
|
// console.log(row)
|
||||||
const taskIds = row.taskId || this.ids
|
|
||||||
this.$modal
|
this.$modal
|
||||||
.confirm('是否确认删除所选择的数据项?')
|
.confirm('是否确认删除所选择的数据项?')
|
||||||
.then(function () {
|
.then(function () {
|
||||||
return purchaseCheckInfoRemove(taskIds)
|
return purchaseCheckInfoRemove(row.id)
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue