新购模块对接
This commit is contained in:
parent
c398a0de6b
commit
b74bef31ae
|
|
@ -112,7 +112,7 @@
|
||||||
<el-table-column
|
<el-table-column
|
||||||
type="selection"
|
type="selection"
|
||||||
width="55"
|
width="55"
|
||||||
align="center"
|
align="center" :selectable="selectable"
|
||||||
:reserve-selection="true"
|
:reserve-selection="true"
|
||||||
v-if="!isView"
|
v-if="!isView"
|
||||||
/>
|
/>
|
||||||
|
|
@ -203,10 +203,10 @@
|
||||||
/>
|
/>
|
||||||
<el-table-column label="操作" align="center" width="180" v-if="!isView">
|
<el-table-column label="操作" align="center" width="180" v-if="!isView">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button size="mini" type="success" @click="pass(scope.row)">
|
<el-button size="mini" type="success" @click="pass(scope.row)" v-if="scope.row.status==2">
|
||||||
合格
|
合格
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button size="mini" type="danger" @click="reject(scope.row)">
|
<el-button size="mini" type="danger" @click="reject(scope.row)" v-if="scope.row.status==2">
|
||||||
不合格
|
不合格
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -404,6 +404,15 @@ export default {
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//是否可用勾选框
|
||||||
|
selectable(row) {
|
||||||
|
console.log(row)
|
||||||
|
if (row.status == 2) {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
},
|
||||||
// 返回列表页
|
// 返回列表页
|
||||||
jumpList() {
|
jumpList() {
|
||||||
const obj = { path: "/purchase/goodsAccept" };
|
const obj = { path: "/purchase/goodsAccept" };
|
||||||
|
|
|
||||||
|
|
@ -20,22 +20,22 @@
|
||||||
maxlength="20"
|
maxlength="20"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item prop="status">
|
<el-form-item prop="isFinish">
|
||||||
<el-select
|
<el-select
|
||||||
clearable
|
clearable
|
||||||
filterable
|
filterable
|
||||||
style="width: 240px"
|
style="width: 240px"
|
||||||
placeholder="请选择设备状态"
|
placeholder="状态筛选"
|
||||||
v-model="queryParams.status"
|
v-model="queryParams.isFinish"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
:key="dict.value"
|
:key="dict.id"
|
||||||
:label="dict.label"
|
:label="dict.name"
|
||||||
:value="dict.value"
|
:value="dict.id"
|
||||||
v-for="dict in dict.type.purchase_task_status"
|
v-for="dict in taskStatusList"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item> -->
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button>
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button>
|
||||||
|
|
@ -98,7 +98,7 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="primary"
|
type="primary" v-if="scope.row.taskStatusName == '未完成'"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
>
|
>
|
||||||
验收
|
验收
|
||||||
|
|
@ -286,8 +286,6 @@
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -310,7 +308,7 @@
|
||||||
showSearch: true,
|
showSearch: true,
|
||||||
showHouse: false,
|
showHouse: false,
|
||||||
dateRange:[],
|
dateRange:[],
|
||||||
taskStatusList:[{id:'1',name:'待验收'},{id:'2',name:'验收合格'},{id:'3',name:'验收未通过'}],
|
taskStatusList:[{id:'0',name:'未完成'},{id:'1',name:'已完成'}],
|
||||||
ids:[],
|
ids:[],
|
||||||
// 总条数
|
// 总条数
|
||||||
total: 0,
|
total: 0,
|
||||||
|
|
@ -325,7 +323,7 @@
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
keyWord:undefined,
|
keyWord:undefined,
|
||||||
status:undefined,
|
isFinish:undefined,
|
||||||
},
|
},
|
||||||
openPrint: false,
|
openPrint: false,
|
||||||
printData: {},
|
printData: {},
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,22 @@
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item prop="isFinish">
|
||||||
|
<el-select
|
||||||
|
clearable
|
||||||
|
filterable
|
||||||
|
style="width: 240px"
|
||||||
|
placeholder="状态筛选"
|
||||||
|
v-model="queryParams.isFinish"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
:key="dict.id"
|
||||||
|
:label="dict.name"
|
||||||
|
:value="dict.id"
|
||||||
|
v-for="dict in taskStatusList"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button
|
||||||
|
|
@ -200,13 +216,14 @@
|
||||||
style="margin-bottom: 10px"
|
style="margin-bottom: 10px"
|
||||||
type="normal"
|
type="normal"
|
||||||
@click="handleView(scope.row)"
|
@click="handleView(scope.row)"
|
||||||
v-if="scope.row.taskStatus != 24"
|
|
||||||
>查看</el-button
|
>查看</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
style="margin-bottom: 10px"
|
style="margin-bottom: 10px"
|
||||||
type="primary"
|
type="primary"
|
||||||
|
v-if="scope.row.taskStatusName == '未完成'"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['purchase:info:edit']"
|
v-hasPermi="['purchase:info:edit']"
|
||||||
>编辑</el-button
|
>编辑</el-button
|
||||||
|
|
@ -216,6 +233,7 @@
|
||||||
size="mini"
|
size="mini"
|
||||||
style="margin-bottom: 10px"
|
style="margin-bottom: 10px"
|
||||||
type="success"
|
type="success"
|
||||||
|
v-if="scope.row.taskStatusName == '未完成'"
|
||||||
@click="handleNotice(scope.row)"
|
@click="handleNotice(scope.row)"
|
||||||
v-hasPermi="['purchase:person:notice']"
|
v-hasPermi="['purchase:person:notice']"
|
||||||
>通知</el-button
|
>通知</el-button
|
||||||
|
|
@ -601,6 +619,7 @@ export default {
|
||||||
title: "",
|
title: "",
|
||||||
// 日期范围
|
// 日期范围
|
||||||
dateRange: [],
|
dateRange: [],
|
||||||
|
taskStatusList:[{id:'0',name:'未完成'},{id:'1',name:'已完成'}],
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
|
|
@ -608,6 +627,7 @@ export default {
|
||||||
time: null, //申请时间
|
time: null, //申请时间
|
||||||
name: undefined,
|
name: undefined,
|
||||||
status: undefined,
|
status: undefined,
|
||||||
|
isFinish: undefined,
|
||||||
typeId: "",
|
typeId: "",
|
||||||
keyWord: "",
|
keyWord: "",
|
||||||
},
|
},
|
||||||
|
|
@ -647,6 +667,7 @@ export default {
|
||||||
keyWord: this.queryParams.keyWord,
|
keyWord: this.queryParams.keyWord,
|
||||||
startTime: this.queryParams.time && this.queryParams.time[0],
|
startTime: this.queryParams.time && this.queryParams.time[0],
|
||||||
endTime: this.queryParams.time && this.queryParams.time[1],
|
endTime: this.queryParams.time && this.queryParams.time[1],
|
||||||
|
isFinish: this.queryParams.isFinish,
|
||||||
typeId: this.queryParams.typeId,
|
typeId: this.queryParams.typeId,
|
||||||
pageSize: this.queryParams.pageSize,
|
pageSize: this.queryParams.pageSize,
|
||||||
pageNum: this.queryParams.pageNum,
|
pageNum: this.queryParams.pageNum,
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,22 @@
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item prop="isFinish">
|
||||||
|
<el-select
|
||||||
|
clearable
|
||||||
|
filterable
|
||||||
|
style="width: 240px"
|
||||||
|
placeholder="状态筛选"
|
||||||
|
v-model="queryParams.isFinish"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
:key="dict.id"
|
||||||
|
:label="dict.name"
|
||||||
|
:value="dict.id"
|
||||||
|
v-for="dict in taskStatusList"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button
|
||||||
|
|
@ -199,11 +215,12 @@ export default {
|
||||||
bindList: [], // 列表数据源
|
bindList: [], // 列表数据源
|
||||||
queryTime: [], // 日期数据源
|
queryTime: [], // 日期数据源
|
||||||
selectList: [], // 列表选中数据
|
selectList: [], // 列表选中数据
|
||||||
|
taskStatusList:[{id:'0',name:'未完成'},{id:'1',name:'已完成'}],
|
||||||
// 列表查询参数
|
// 列表查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
status: '',
|
isFinish: '',
|
||||||
endTime: '',
|
endTime: '',
|
||||||
keyWord: '',
|
keyWord: '',
|
||||||
startTime: '',
|
startTime: '',
|
||||||
|
|
|
||||||
|
|
@ -28,17 +28,19 @@
|
||||||
maxlength="20"
|
maxlength="20"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="taskStatus">
|
<el-form-item prop="isFinish">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.taskStatus"
|
|
||||||
placeholder="请选择任务状态"
|
|
||||||
clearable
|
clearable
|
||||||
|
filterable
|
||||||
|
style="width: 240px"
|
||||||
|
placeholder="状态筛选"
|
||||||
|
v-model="queryParams.isFinish"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in taskStatusList"
|
:key="dict.id"
|
||||||
:key="item.id"
|
:label="dict.name"
|
||||||
:label="item.name"
|
:value="dict.id"
|
||||||
:value="item.id"
|
v-for="dict in taskStatusList"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -350,10 +352,7 @@ export default {
|
||||||
showSearch: true,
|
showSearch: true,
|
||||||
showHouse: false,
|
showHouse: false,
|
||||||
dateRange: [],
|
dateRange: [],
|
||||||
taskStatusList: [
|
taskStatusList:[{id:'0',name:'未完成'},{id:'1',name:'已完成'}],
|
||||||
{ id: '21', name: '入库进行中' },
|
|
||||||
{ id: '22', name: '入库已完成' },
|
|
||||||
],
|
|
||||||
ids: [],
|
ids: [],
|
||||||
// 总条数
|
// 总条数
|
||||||
total: 0,
|
total: 0,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue