优化权限流程
This commit is contained in:
parent
1272ccda12
commit
3db5bbb1f0
|
|
@ -126,6 +126,7 @@
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
:data="leaseAuditList"
|
:data="leaseAuditList"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
|
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
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -77,6 +77,7 @@
|
||||||
end-placeholder="结束日期"
|
end-placeholder="结束日期"
|
||||||
type="date"
|
type="date"
|
||||||
value-format="yyyy-MM-dd"
|
value-format="yyyy-MM-dd"
|
||||||
|
style="width: 240px"
|
||||||
>
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -152,11 +153,19 @@
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
:data="typeList"
|
:data="typeList"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
|
border
|
||||||
>
|
>
|
||||||
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
||||||
<el-table-column label="序号" align="center" width="80" type="index">
|
<el-table-column
|
||||||
|
label="序号"
|
||||||
|
align="center"
|
||||||
|
width="80"
|
||||||
|
type="index"
|
||||||
|
>
|
||||||
<template scope="scope">
|
<template scope="scope">
|
||||||
<span>{{ (queryParams.pageNum - 1) * 10 + scope.$index + 1 }}</span>
|
<span>{{
|
||||||
|
(queryParams.pageNum - 1) * 10 + scope.$index + 1
|
||||||
|
}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
|
@ -262,16 +271,11 @@
|
||||||
prop="remark"
|
prop="remark"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column label="操作" align="center" width="180">
|
||||||
label="操作"
|
|
||||||
align="center"
|
|
||||||
class-name="small-padding fixed-width"
|
|
||||||
width="250"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
plain
|
type="text"
|
||||||
icon="el-icon-zoom-in"
|
icon="el-icon-zoom-in"
|
||||||
@click="handleSee(scope.row, 'see')"
|
@click="handleSee(scope.row, 'see')"
|
||||||
>查看</el-button
|
>查看</el-button
|
||||||
|
|
@ -287,21 +291,21 @@
|
||||||
> -->
|
> -->
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="info"
|
type="text"
|
||||||
v-if="scope.row.taskStatus == '101'"
|
v-if="scope.row.taskStatus == '101'"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
>驳回提交</el-button
|
>驳回提交</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="danger"
|
type="text"
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
>删除</el-button
|
>删除</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="info"
|
type="text"
|
||||||
@click="handlePrint(scope.row)"
|
@click="handlePrint(scope.row)"
|
||||||
>退料单</el-button
|
>退料单</el-button
|
||||||
>
|
>
|
||||||
|
|
@ -428,9 +432,18 @@
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<el-table-column label="序号" align="center" width="80" type="index">
|
<el-table-column
|
||||||
|
label="序号"
|
||||||
|
align="center"
|
||||||
|
width="80"
|
||||||
|
type="index"
|
||||||
|
>
|
||||||
<template scope="scope">
|
<template scope="scope">
|
||||||
<span>{{ (dialogQueryParams.pageNum - 1) * 10 + scope.$index + 1 }}</span>
|
<span>{{
|
||||||
|
(dialogQueryParams.pageNum - 1) * 10 +
|
||||||
|
scope.$index +
|
||||||
|
1
|
||||||
|
}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
|
@ -550,471 +563,470 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listPartTypeApi } from '@/api/repairTest/repair'
|
import { listPartTypeApi } from '@/api/repairTest/repair'
|
||||||
import {
|
import {
|
||||||
ApiGetBackApplyList,
|
ApiGetBackApplyList,
|
||||||
getViewByApply,
|
getViewByApply,
|
||||||
backApplyDelApi,
|
backApplyDelApi,
|
||||||
submitBackApplyApi,
|
submitBackApplyApi,
|
||||||
} from '@/api/claimAndRefund/return.js'
|
} from '@/api/claimAndRefund/return.js'
|
||||||
import { getInfo, h } from '@/api/login'
|
import { getInfo, h } from '@/api/login'
|
||||||
import {
|
import {
|
||||||
getUnitData,
|
getUnitData,
|
||||||
getProData,
|
getProData,
|
||||||
getAgreementInfoById,
|
getAgreementInfoById,
|
||||||
// getUseNumByTypeId
|
// getUseNumByTypeId
|
||||||
} from '@/api/claimAndRefund/receive.js'
|
} from '@/api/claimAndRefund/receive.js'
|
||||||
import dialogForm from './dialogForm.vue'
|
import dialogForm from './dialogForm.vue'
|
||||||
import Tree from './tree.vue'
|
import Tree from './tree.vue'
|
||||||
// 10:42开始日期startTime,结束日期endTime 机具类型typeId
|
// 10:42开始日期startTime,结束日期endTime 机具类型typeId
|
||||||
// http://localhost/claimAndRefund/return/returnApply
|
// http://localhost/claimAndRefund/return/returnApply
|
||||||
export default {
|
export default {
|
||||||
name: '',
|
name: '',
|
||||||
dicts: ['sys_normal_disable'],
|
dicts: ['sys_normal_disable'],
|
||||||
components: { dialogForm, Tree },
|
components: { dialogForm, Tree },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
fullscreenLoading: false,
|
fullscreenLoading: false,
|
||||||
type: '',
|
type: '',
|
||||||
isShowOneFlag: false,
|
isShowOneFlag: false,
|
||||||
priKey: '',
|
priKey: '',
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: true,
|
loading: true,
|
||||||
// 选中数组
|
// 选中数组
|
||||||
ids: [],
|
ids: [],
|
||||||
// 非单个禁用
|
// 非单个禁用
|
||||||
single: true,
|
single: true,
|
||||||
// 非多个禁用
|
// 非多个禁用
|
||||||
multiple: true,
|
multiple: true,
|
||||||
// 显示搜索条件
|
// 显示搜索条件
|
||||||
showSearch: true,
|
showSearch: true,
|
||||||
// 总条数
|
// 总条数
|
||||||
total: 0,
|
total: 0,
|
||||||
// 字典表格数据
|
// 字典表格数据
|
||||||
typeList: [],
|
typeList: [],
|
||||||
// 弹出层标题
|
// 弹出层标题
|
||||||
title: '',
|
title: '',
|
||||||
// 是否显示弹出层
|
// 是否显示弹出层
|
||||||
open: false,
|
open: false,
|
||||||
// 日期范围
|
// 日期范围
|
||||||
dateRange: [],
|
dateRange: [],
|
||||||
deptList: [],
|
deptList: [],
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
keyWord: '', //关键字
|
keyWord: '', //关键字
|
||||||
unitId: '', //单位id
|
unitId: '', //单位id
|
||||||
lotId: '', //工程id
|
lotId: '', //工程id
|
||||||
taskStatus: '', //状态
|
taskStatus: '', //状态
|
||||||
typeId: '', //工机具类型
|
typeId: '', //工机具类型
|
||||||
time: '',
|
time: '',
|
||||||
agreementCode: '', //协议
|
agreementCode: '', //协议
|
||||||
startTime: '',
|
startTime: '',
|
||||||
endTime: '',
|
endTime: '',
|
||||||
proId: '',
|
proId: '',
|
||||||
},
|
},
|
||||||
dialogQueryParams: {
|
dialogQueryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
},
|
},
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
dictName: [
|
dictName: [
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: '字典名称不能为空',
|
|
||||||
trigger: 'blur',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
dictType: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: '字典类型不能为空',
|
|
||||||
trigger: 'blur',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
openOne: false,
|
|
||||||
openTwo: false,
|
|
||||||
openTextOne: '',
|
|
||||||
openTextTwo: '',
|
|
||||||
openTextThree: '',
|
|
||||||
companyId: '',
|
|
||||||
deptOptions: [],
|
|
||||||
unitList: [],
|
|
||||||
proList: [],
|
|
||||||
taskStatusList: [
|
|
||||||
{
|
{
|
||||||
name: '待退料审核',
|
required: true,
|
||||||
id: '37',
|
message: '字典名称不能为空',
|
||||||
},
|
trigger: 'blur',
|
||||||
{
|
|
||||||
name: '退料审核通过',
|
|
||||||
id: '38',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '退料核查中',
|
|
||||||
id: '39',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '退料完成',
|
|
||||||
id: '40',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '退料审核驳回',
|
|
||||||
id: '101',
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
rowObj: {},
|
dictType: [
|
||||||
loadingType: '',
|
{
|
||||||
loadingTotal: 0,
|
required: true,
|
||||||
loadingList: [],
|
message: '字典类型不能为空',
|
||||||
|
trigger: 'blur',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
openOne: false,
|
||||||
|
openTwo: false,
|
||||||
|
openTextOne: '',
|
||||||
|
openTextTwo: '',
|
||||||
|
openTextThree: '',
|
||||||
|
companyId: '',
|
||||||
|
deptOptions: [],
|
||||||
|
unitList: [],
|
||||||
|
proList: [],
|
||||||
|
taskStatusList: [
|
||||||
|
{
|
||||||
|
name: '待退料审核',
|
||||||
|
id: '37',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '退料审核通过',
|
||||||
|
id: '38',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '退料核查中',
|
||||||
|
id: '39',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '退料完成',
|
||||||
|
id: '40',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '退料审核驳回',
|
||||||
|
id: '101',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
rowObj: {},
|
||||||
|
loadingType: '',
|
||||||
|
loadingTotal: 0,
|
||||||
|
loadingList: [],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
// this.getList();
|
||||||
|
this.initSelectData()
|
||||||
|
this.InitIGetInfo()
|
||||||
|
this.getTree()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getTree() {
|
||||||
|
listPartTypeApi().then((response) => {
|
||||||
|
// console.log('🚀 ~ listPartTypeApi ~ response:', response);
|
||||||
|
this.deptList = response.data
|
||||||
|
})
|
||||||
|
},
|
||||||
|
selectDrop(value) {
|
||||||
|
this.queryParams.typeId = value
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 查询字典类型列表 startTime,结束日期endTime */
|
||||||
|
async getList() {
|
||||||
|
this.loading = true
|
||||||
|
if (this.queryParams.time && this.queryParams.time.length > 0) {
|
||||||
|
this.queryParams.startTime = this.queryParams.time[0]
|
||||||
|
this.queryParams.endTime = this.queryParams.time[1]
|
||||||
}
|
}
|
||||||
},
|
|
||||||
created() {
|
|
||||||
// this.getList();
|
|
||||||
this.initSelectData()
|
|
||||||
this.InitIGetInfo()
|
|
||||||
this.getTree()
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
getTree() {
|
|
||||||
listPartTypeApi().then((response) => {
|
|
||||||
// console.log('🚀 ~ listPartTypeApi ~ response:', response);
|
|
||||||
this.deptList = response.data
|
|
||||||
})
|
|
||||||
},
|
|
||||||
selectDrop(value) {
|
|
||||||
this.queryParams.typeId = value
|
|
||||||
},
|
|
||||||
|
|
||||||
/** 查询字典类型列表 startTime,结束日期endTime */
|
try {
|
||||||
async getList() {
|
let params = {
|
||||||
this.loading = true
|
companyId: this.companyId,
|
||||||
if (this.queryParams.time && this.queryParams.time.length > 0) {
|
...this.queryParams,
|
||||||
this.queryParams.startTime = this.queryParams.time[0]
|
|
||||||
this.queryParams.endTime = this.queryParams.time[1]
|
|
||||||
}
|
}
|
||||||
|
const res = await ApiGetBackApplyList(params)
|
||||||
try {
|
this.typeList = res.data.rows
|
||||||
|
this.total = res.data.total
|
||||||
|
this.loading = false
|
||||||
|
} catch (error) {}
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false
|
||||||
|
this.reset()
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
dictId: undefined,
|
||||||
|
dictName: undefined,
|
||||||
|
dictType: undefined,
|
||||||
|
status: '0',
|
||||||
|
remark: undefined,
|
||||||
|
}
|
||||||
|
this.resetForm('form')
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.queryParams.time = null
|
||||||
|
// this.resetForm("queryForm");
|
||||||
|
this.$refs.queryForm.resetFields()
|
||||||
|
this.$refs.mychildSon.inputValue = ''
|
||||||
|
this.initSelectData()
|
||||||
|
this.handleQuery()
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
// this.reset();
|
||||||
|
// // this.open = true;
|
||||||
|
// // this.title = "计划借调";
|
||||||
|
this.$tab.closeOpenPage('/claimAndRefund/return/returnApplyAdd')
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map((item) => item.dictId)
|
||||||
|
this.single = selection.length != 1
|
||||||
|
this.multiple = !selection.length
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.$tab.closeOpenPage({
|
||||||
|
path: '/claimAndRefund/return/returnApplyAdd',
|
||||||
|
query: {
|
||||||
|
Id: row.id,
|
||||||
|
isEdit: true,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 退料单
|
||||||
|
handleUpdateOrder() {
|
||||||
|
this.title = '查看'
|
||||||
|
this.isShowOneFlag = true
|
||||||
|
},
|
||||||
|
// 提交
|
||||||
|
handleSubmit() {
|
||||||
|
this.title = '确认操作'
|
||||||
|
this.openTextOne = '确认提交申请么?'
|
||||||
|
this.openTextTwo = '确认提交申请么?'
|
||||||
|
this.openOne = true
|
||||||
|
},
|
||||||
|
submitOpenOneForm() {
|
||||||
|
this.openTextThree = '提交成功!'
|
||||||
|
this.openTwo = true
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm: function () {
|
||||||
|
this.$refs['queryForm1'].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
let backApplyInfo = []
|
||||||
|
for (let i = 0; i < this.loadingList.length; i++) {
|
||||||
|
this.loadingList[i].companyId = this.companyId
|
||||||
|
}
|
||||||
|
backApplyInfo.push({
|
||||||
|
backPerson: '张三',
|
||||||
|
phone: '1234578988',
|
||||||
|
remark: '1425备注',
|
||||||
|
backTime: '2023-12-14',
|
||||||
|
// backPerson: this.dialogQueryParams.backPerson,
|
||||||
|
// phone: this.dialogQueryParams.phone,
|
||||||
|
// remark: this.dialogQueryParams.remark,
|
||||||
|
// backTime: this.dialogQueryParams.backTime,
|
||||||
|
companyId: this.companyId,
|
||||||
|
})
|
||||||
let params = {
|
let params = {
|
||||||
companyId: this.companyId,
|
companyId: this.companyId,
|
||||||
...this.queryParams,
|
agreementId: this.rowObj.agreementId,
|
||||||
|
backApplyInfo: JSON.stringify(backApplyInfo),
|
||||||
|
backApplyDetails: JSON.stringify(this.loadingList),
|
||||||
}
|
}
|
||||||
const res = await ApiGetBackApplyList(params)
|
console.log('param----', params)
|
||||||
this.typeList = res.data.rows
|
submitBackApplyApi(params).then((res) => {})
|
||||||
this.total = res.data.total
|
// if (this.form.dictId != undefined) {
|
||||||
this.loading = false
|
// updateType(this.form).then(response => {
|
||||||
} catch (error) {}
|
// this.$modal.msgSuccess("修改成功");
|
||||||
},
|
// this.open = false;
|
||||||
// 取消按钮
|
// this.getList();
|
||||||
cancel() {
|
// });
|
||||||
this.open = false
|
// } else {
|
||||||
this.reset()
|
// addType(this.form).then(response => {
|
||||||
},
|
// this.$modal.msgSuccess("新增成功");
|
||||||
// 表单重置
|
// this.open = false;
|
||||||
reset() {
|
// this.getList();
|
||||||
this.form = {
|
// });
|
||||||
dictId: undefined,
|
// }
|
||||||
dictName: undefined,
|
} else {
|
||||||
dictType: undefined,
|
|
||||||
status: '0',
|
|
||||||
remark: undefined,
|
|
||||||
}
|
}
|
||||||
this.resetForm('form')
|
})
|
||||||
},
|
},
|
||||||
/** 搜索按钮操作 */
|
/** 删除按钮操作 */
|
||||||
handleQuery() {
|
handleDelete(row) {
|
||||||
this.queryParams.pageNum = 1
|
let param = {
|
||||||
this.getList()
|
id: row.id + '',
|
||||||
},
|
}
|
||||||
/** 重置按钮操作 */
|
this.$modal
|
||||||
resetQuery() {
|
.confirm('是否确认删除所选择的数据项?')
|
||||||
this.queryParams.time = null
|
.then(() => {
|
||||||
// this.resetForm("queryForm");
|
return backApplyDelApi(param)
|
||||||
this.$refs.queryForm.resetFields()
|
|
||||||
this.$refs.mychildSon.inputValue = ''
|
|
||||||
this.initSelectData()
|
|
||||||
this.handleQuery()
|
|
||||||
},
|
|
||||||
/** 新增按钮操作 */
|
|
||||||
handleAdd() {
|
|
||||||
// this.reset();
|
|
||||||
// // this.open = true;
|
|
||||||
// // this.title = "计划借调";
|
|
||||||
this.$tab.closeOpenPage('/claimAndRefund/return/returnApplyAdd')
|
|
||||||
},
|
|
||||||
// 多选框选中数据
|
|
||||||
handleSelectionChange(selection) {
|
|
||||||
this.ids = selection.map((item) => item.dictId)
|
|
||||||
this.single = selection.length != 1
|
|
||||||
this.multiple = !selection.length
|
|
||||||
},
|
|
||||||
/** 修改按钮操作 */
|
|
||||||
handleUpdate(row) {
|
|
||||||
this.$tab.closeOpenPage({
|
|
||||||
path: '/claimAndRefund/return/returnApplyAdd',
|
|
||||||
query: {
|
|
||||||
Id: row.id,
|
|
||||||
isEdit: true,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
},
|
.then(() => {
|
||||||
// 退料单
|
this.getList()
|
||||||
handleUpdateOrder() {
|
// this.$modal.msgSuccess('删除成功');
|
||||||
this.title = '查看'
|
this.$message.success('操作成功!')
|
||||||
this.isShowOneFlag = true
|
|
||||||
},
|
|
||||||
// 提交
|
|
||||||
handleSubmit() {
|
|
||||||
this.title = '确认操作'
|
|
||||||
this.openTextOne = '确认提交申请么?'
|
|
||||||
this.openTextTwo = '确认提交申请么?'
|
|
||||||
this.openOne = true
|
|
||||||
},
|
|
||||||
submitOpenOneForm() {
|
|
||||||
this.openTextThree = '提交成功!'
|
|
||||||
this.openTwo = true
|
|
||||||
},
|
|
||||||
/** 提交按钮 */
|
|
||||||
submitForm: function () {
|
|
||||||
this.$refs['queryForm1'].validate((valid) => {
|
|
||||||
if (valid) {
|
|
||||||
let backApplyInfo = []
|
|
||||||
for (let i = 0; i < this.loadingList.length; i++) {
|
|
||||||
this.loadingList[i].companyId = this.companyId
|
|
||||||
}
|
|
||||||
backApplyInfo.push({
|
|
||||||
backPerson: '张三',
|
|
||||||
phone: '1234578988',
|
|
||||||
remark: '1425备注',
|
|
||||||
backTime: '2023-12-14',
|
|
||||||
// backPerson: this.dialogQueryParams.backPerson,
|
|
||||||
// phone: this.dialogQueryParams.phone,
|
|
||||||
// remark: this.dialogQueryParams.remark,
|
|
||||||
// backTime: this.dialogQueryParams.backTime,
|
|
||||||
companyId: this.companyId,
|
|
||||||
})
|
|
||||||
let params = {
|
|
||||||
companyId: this.companyId,
|
|
||||||
agreementId: this.rowObj.agreementId,
|
|
||||||
backApplyInfo: JSON.stringify(backApplyInfo),
|
|
||||||
backApplyDetails: JSON.stringify(this.loadingList),
|
|
||||||
}
|
|
||||||
console.log('param----', params)
|
|
||||||
submitBackApplyApi(params).then((res) => {})
|
|
||||||
// if (this.form.dictId != undefined) {
|
|
||||||
// updateType(this.form).then(response => {
|
|
||||||
// this.$modal.msgSuccess("修改成功");
|
|
||||||
// this.open = false;
|
|
||||||
// this.getList();
|
|
||||||
// });
|
|
||||||
// } else {
|
|
||||||
// addType(this.form).then(response => {
|
|
||||||
// this.$modal.msgSuccess("新增成功");
|
|
||||||
// this.open = false;
|
|
||||||
// this.getList();
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
} else {
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
},
|
.catch(() => {
|
||||||
/** 删除按钮操作 */
|
// this.$modal.msgError('删除失败');
|
||||||
handleDelete(row) {
|
})
|
||||||
let param = {
|
},
|
||||||
id: row.id + '',
|
handlePrint(row) {
|
||||||
}
|
this.isShowOneFlag = true
|
||||||
this.$modal
|
this.rowObj = row
|
||||||
.confirm('是否确认删除所选择的数据项?')
|
},
|
||||||
.then(() => {
|
|
||||||
return backApplyDelApi(param)
|
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
this.getList()
|
|
||||||
// this.$modal.msgSuccess('删除成功');
|
|
||||||
this.$message.success('操作成功!')
|
|
||||||
})
|
|
||||||
.catch(() => {
|
|
||||||
// this.$modal.msgError('删除失败');
|
|
||||||
})
|
|
||||||
},
|
|
||||||
handlePrint(row) {
|
|
||||||
this.isShowOneFlag = true
|
|
||||||
this.rowObj = row
|
|
||||||
},
|
|
||||||
|
|
||||||
handleSee(row, type) {
|
handleSee(row, type) {
|
||||||
this.dialogQueryParams.unitName = row.unitName
|
this.dialogQueryParams.unitName = row.unitName
|
||||||
this.dialogQueryParams.lotName = row.lotName
|
this.dialogQueryParams.lotName = row.lotName
|
||||||
this.dialogQueryParams.agreementCode = row.agreementCode
|
this.dialogQueryParams.agreementCode = row.agreementCode
|
||||||
this.dialogQueryParams.backPerson = row.backPerson
|
this.dialogQueryParams.backPerson = row.backPerson
|
||||||
this.dialogQueryParams.phone = row.phone
|
this.dialogQueryParams.phone = row.phone
|
||||||
this.dialogQueryParams.backTime = row.backTime + ''
|
this.dialogQueryParams.backTime = row.backTime + ''
|
||||||
this.$set(this.dialogQueryParams, 'keyWord', '')
|
this.$set(this.dialogQueryParams, 'keyWord', '')
|
||||||
this.loadingType = type
|
this.loadingType = type
|
||||||
this.rowObj = row
|
this.rowObj = row
|
||||||
this.open = true
|
this.open = true
|
||||||
this.getDialogList()
|
this.getDialogList()
|
||||||
},
|
},
|
||||||
handlUpdate(row, type) {
|
handlUpdate(row, type) {
|
||||||
this.loadingType = type
|
this.loadingType = type
|
||||||
this.rowObj = row
|
this.rowObj = row
|
||||||
this.open = true
|
this.open = true
|
||||||
this.getDialogList()
|
this.getDialogList()
|
||||||
},
|
},
|
||||||
|
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
this.download(
|
this.download(
|
||||||
'material/backApply/export',
|
'material/backApply/export',
|
||||||
{
|
{
|
||||||
...this.queryParams,
|
...this.queryParams,
|
||||||
},
|
},
|
||||||
`退料申请单_${new Date().getTime()}.xlsx`,
|
`退料申请单_${new Date().getTime()}.xlsx`,
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
getDialogList() {
|
getDialogList() {
|
||||||
let params = {
|
let params = {
|
||||||
id: this.rowObj.id,
|
id: this.rowObj.id,
|
||||||
agreementId: this.rowObj.agreementId,
|
agreementId: this.rowObj.agreementId,
|
||||||
keyWord: this.dialogQueryParams.keyWord,
|
keyWord: this.dialogQueryParams.keyWord,
|
||||||
pageNum: this.dialogQueryParams.pageNum,
|
pageNum: this.dialogQueryParams.pageNum,
|
||||||
pageSize: this.dialogQueryParams.pageSize,
|
pageSize: this.dialogQueryParams.pageSize,
|
||||||
}
|
}
|
||||||
getViewByApply(params).then((res) => {
|
getViewByApply(params).then((res) => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
this.loadingList = res.data.rows
|
this.loadingList = res.data.rows
|
||||||
/* this.loadingList.forEach(item=>{
|
/* this.loadingList.forEach(item=>{
|
||||||
getUseNumByTypeId({ typeId:item.typeId }).then(res=>{
|
getUseNumByTypeId({ typeId:item.typeId }).then(res=>{
|
||||||
item.useNum = res.data
|
item.useNum = res.data
|
||||||
})
|
})
|
||||||
|
|
||||||
})*/
|
})*/
|
||||||
this.loadingTotal = res.data.total
|
this.loadingTotal = res.data.total
|
||||||
})
|
})
|
||||||
},
|
|
||||||
InitIGetInfo() {
|
|
||||||
getInfo().then((res) => {
|
|
||||||
this.companyId = res.user.companyId
|
|
||||||
this.getList()
|
|
||||||
})
|
|
||||||
},
|
|
||||||
handleNodeClick(ev) {
|
|
||||||
console.log(ev)
|
|
||||||
},
|
|
||||||
initSelectData() {
|
|
||||||
this.GetUnitData()
|
|
||||||
this.GetProData()
|
|
||||||
},
|
|
||||||
// 获取 来往单位 列表数据
|
|
||||||
async GetUnitData() {
|
|
||||||
const params = {}
|
|
||||||
const res = await getUnitData(params)
|
|
||||||
this.unitList = res.data
|
|
||||||
},
|
|
||||||
// 获取 工程名称 列表数据
|
|
||||||
async GetProData() {
|
|
||||||
const params = {
|
|
||||||
id: this.queryParams.unitId,
|
|
||||||
}
|
|
||||||
const res = await getProData(params)
|
|
||||||
this.proList = res.data
|
|
||||||
},
|
|
||||||
// 获取 协议ID 列表数据
|
|
||||||
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
|
|
||||||
this.queryParams.agreementCode = res.data.agreementCode
|
|
||||||
},
|
|
||||||
getAgreementByUnitAndProId() {
|
|
||||||
this.InitGetAgreementInfoById()
|
|
||||||
},
|
|
||||||
getAgreementByProId() {
|
|
||||||
this.InitGetAgreementInfoById()
|
|
||||||
},
|
|
||||||
getAgreementByUnit() {
|
|
||||||
this.GetProData()
|
|
||||||
},
|
|
||||||
handleQuery1() {
|
|
||||||
this.getDialogList()
|
|
||||||
},
|
|
||||||
resetQuery1() {
|
|
||||||
this.dialogQueryParams.keyWord = ''
|
|
||||||
this.getDialogList()
|
|
||||||
},
|
|
||||||
|
|
||||||
},
|
},
|
||||||
watch: {
|
InitIGetInfo() {
|
||||||
$route: {
|
getInfo().then((res) => {
|
||||||
handler(to) {
|
this.companyId = res.user.companyId
|
||||||
if (to.query.keyWord) {
|
this.getList()
|
||||||
this.queryParams.keyWord = to.query.keyWord
|
})
|
||||||
}
|
|
||||||
},
|
|
||||||
deep: true,
|
|
||||||
immediate: true,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
handleNodeClick(ev) {
|
||||||
|
console.log(ev)
|
||||||
|
},
|
||||||
|
initSelectData() {
|
||||||
|
this.GetUnitData()
|
||||||
|
this.GetProData()
|
||||||
|
},
|
||||||
|
// 获取 来往单位 列表数据
|
||||||
|
async GetUnitData() {
|
||||||
|
const params = {}
|
||||||
|
const res = await getUnitData(params)
|
||||||
|
this.unitList = res.data
|
||||||
|
},
|
||||||
|
// 获取 工程名称 列表数据
|
||||||
|
async GetProData() {
|
||||||
|
const params = {
|
||||||
|
id: this.queryParams.unitId,
|
||||||
|
}
|
||||||
|
const res = await getProData(params)
|
||||||
|
this.proList = res.data
|
||||||
|
},
|
||||||
|
// 获取 协议ID 列表数据
|
||||||
|
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
|
||||||
|
this.queryParams.agreementCode = res.data.agreementCode
|
||||||
|
},
|
||||||
|
getAgreementByUnitAndProId() {
|
||||||
|
this.InitGetAgreementInfoById()
|
||||||
|
},
|
||||||
|
getAgreementByProId() {
|
||||||
|
this.InitGetAgreementInfoById()
|
||||||
|
},
|
||||||
|
getAgreementByUnit() {
|
||||||
|
this.GetProData()
|
||||||
|
},
|
||||||
|
handleQuery1() {
|
||||||
|
this.getDialogList()
|
||||||
|
},
|
||||||
|
resetQuery1() {
|
||||||
|
this.dialogQueryParams.keyWord = ''
|
||||||
|
this.getDialogList()
|
||||||
|
},
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
$route: {
|
||||||
|
handler(to) {
|
||||||
|
if (to.query.keyWord) {
|
||||||
|
this.queryParams.keyWord = to.query.keyWord
|
||||||
|
}
|
||||||
|
},
|
||||||
|
deep: true,
|
||||||
|
immediate: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.submit_box {
|
.submit_box {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-start;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.submit_box_title {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-start;
|
flex-direction: column;
|
||||||
align-items: center;
|
margin-left: 15px;
|
||||||
|
|
||||||
.submit_box_title {
|
:first-child {
|
||||||
display: flex;
|
font-size: 14px;
|
||||||
flex-direction: column;
|
|
||||||
margin-left: 15px;
|
|
||||||
|
|
||||||
:first-child {
|
|
||||||
font-size: 14px;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
:last-child {
|
|
||||||
margin-top: 6px;
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.submit_box_two {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
flex-wrap: nowrap;
|
|
||||||
align-items: center;
|
|
||||||
margin-left: 30%;
|
|
||||||
|
|
||||||
.submit_box_title {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
margin-left: 10px;
|
|
||||||
font-size: 18px;
|
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
::v-deep.el-table .fixed-width .el-button--mini {
|
:last-child {
|
||||||
width: 60px !important;
|
margin-top: 6px;
|
||||||
margin-bottom: 10px;
|
font-size: 12px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.dialog-footer {
|
}
|
||||||
|
|
||||||
|
.submit_box_two {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
align-items: center;
|
||||||
|
margin-left: 30%;
|
||||||
|
|
||||||
|
.submit_box_title {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
flex-direction: column;
|
||||||
align-items: center;
|
margin-left: 10px;
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep.el-table .fixed-width .el-button--mini {
|
||||||
|
width: 60px !important;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.dialog-footer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -153,6 +153,7 @@
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
:data="typeList"
|
:data="typeList"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
|
border
|
||||||
>
|
>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
type="selection"
|
type="selection"
|
||||||
|
|
@ -271,23 +272,18 @@
|
||||||
prop="remark"
|
prop="remark"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column label="操作" align="center" width="180">
|
||||||
label="操作"
|
|
||||||
align="center"
|
|
||||||
class-name="small-padding fixed-width"
|
|
||||||
width="250"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
plain
|
type="text"
|
||||||
icon="el-icon-zoom-in"
|
icon="el-icon-zoom-in"
|
||||||
@click="handleSee(scope.row, 'see')"
|
@click="handleSee(scope.row, 'see')"
|
||||||
>查看</el-button
|
>查看</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="primary"
|
type="text"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
v-if="scope.row.applyStatus == '0'"
|
v-if="scope.row.applyStatus == '0'"
|
||||||
v-hasPermi="['receive:examine:nbry-jjfgs']"
|
v-hasPermi="['receive:examine:nbry-jjfgs']"
|
||||||
|
|
@ -297,7 +293,7 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="primary"
|
type="text"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
v-if="scope.row.applyStatus == '0'"
|
v-if="scope.row.applyStatus == '0'"
|
||||||
v-hasPermi="['receive:examine:nbry-sbfgs']"
|
v-hasPermi="['receive:examine:nbry-sbfgs']"
|
||||||
|
|
@ -307,7 +303,7 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="info"
|
type="text"
|
||||||
@click="handlePrint(scope.row)"
|
@click="handlePrint(scope.row)"
|
||||||
>退料单</el-button
|
>退料单</el-button
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue