前端修改
This commit is contained in:
parent
eff89495bd
commit
c69a2e9f5e
|
|
@ -721,7 +721,7 @@
|
||||||
this.dateRange = []
|
this.dateRange = []
|
||||||
// this.resetForm("queryForm");
|
// this.resetForm("queryForm");
|
||||||
this.$refs.queryForm.resetFields()
|
this.$refs.queryForm.resetFields()
|
||||||
this.initSelectData()45
|
this.initSelectData()
|
||||||
this.handleQuery()
|
this.handleQuery()
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -196,152 +196,7 @@
|
||||||
:priKey="priKey"
|
:priKey="priKey"
|
||||||
></dialogForm>
|
></dialogForm>
|
||||||
|
|
||||||
<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"
|
|
||||||
:show-overflow-tooltip="true"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<!-- 状态 37-待审核 38-已审核 -->
|
|
||||||
<el-button type="text" v-if="scope.row.taskStatus == '37'">
|
|
||||||
待审核
|
|
||||||
</el-button>
|
|
||||||
<el-button
|
|
||||||
type="text"
|
|
||||||
style="color: #67c23a"
|
|
||||||
v-if="scope.row.taskStatus == '38'"
|
|
||||||
>
|
|
||||||
已审核
|
|
||||||
</el-button>
|
|
||||||
<el-button type="text" v-if="scope.row.taskStatus == '39'">
|
|
||||||
退料核查
|
|
||||||
</el-button>
|
|
||||||
<el-button
|
|
||||||
type="text"
|
|
||||||
style="color: #67c23a"
|
|
||||||
v-if="scope.row.taskStatus == '40'"
|
|
||||||
>
|
|
||||||
退料完成
|
|
||||||
</el-button>
|
|
||||||
<el-button
|
|
||||||
type="text"
|
|
||||||
style="color: #67c23a"
|
|
||||||
v-if="scope.row.taskStatus == '101'"
|
|
||||||
>
|
|
||||||
退料驳回
|
|
||||||
</el-button>
|
|
||||||
</template>
|
|
||||||
</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')"
|
|
||||||
>
|
|
||||||
退料
|
|
||||||
</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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -538,203 +393,9 @@
|
||||||
...this.queryParams
|
...this.queryParams
|
||||||
}, `退料接收_${new Date().getTime()}.xlsx`)
|
}, `退料接收_${new Date().getTime()}.xlsx`)
|
||||||
},
|
},
|
||||||
|
|
||||||
<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: {},
|
|
||||||
}
|
|
||||||
},
|
|
||||||
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
|
|
||||||
|
|
||||||
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('material/backApply/exportExamine', {
|
|
||||||
// ...this.queryParams
|
|
||||||
// }, `退料审核单_${new Date().getTime()}.xlsx`)
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.submit_box {
|
.submit_box {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue