测试问题修改

This commit is contained in:
BianLzhaoMin 2024-04-25 16:28:47 +08:00
parent 14bfda5e94
commit 3797f88699
2 changed files with 35 additions and 136 deletions

View File

@ -303,10 +303,9 @@ export default {
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
<<<<<<< HEAD
const proIds = row.proId || this.ids const proIds = row.proId || this.ids
this.$modal this.$modal
.confirm('是否确认删除数据项?') .confirm('是否确认删除所选择的数据项?')
.then(function () { .then(function () {
return delProject(proIds) return delProject(proIds)
}) })
@ -315,15 +314,6 @@ export default {
this.$modal.msgSuccess('删除成功') this.$modal.msgSuccess('删除成功')
}) })
.catch(() => {}) .catch(() => {})
=======
const proIds = row.proId || this.ids;
this.$modal.confirm('是否确认删除所选择的数据项?').then(function() {
return delProject(proIds);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
>>>>>>> 0e681358a987a27cf0ca5da93cd80f30abbe2c0c
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {

View File

@ -1,13 +1,6 @@
<template> <template>
<div class="app-container" id="accessoryWarehousing"> <div class="app-container" id="accessoryWarehousing">
<el-form <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
:model="queryParams"
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="100px"
>
<el-form-item label="关键字" prop="keyWord"> <el-form-item label="关键字" prop="keyWord">
<el-input <el-input
v-model="queryParams.keyWord" v-model="queryParams.keyWord"
@ -29,13 +22,7 @@
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="配件类型" prop="partId"> <el-form-item label="配件类型" prop="partId">
<el-select <el-select v-model="queryParams.partId" placeholder="请选择配件类型" clearable filterable style="width: 240px">
v-model="queryParams.partId"
placeholder="请选择配件类型"
clearable
filterable
style="width: 240px"
>
<el-option <el-option
v-for="typeItem in typeList" v-for="typeItem in typeList"
:key="typeItem.partId" :key="typeItem.partId"
@ -110,45 +97,20 @@
code code
<!-- <el-table-column type="selection" width="55" align="center" /> --> <!-- <el-table-column type="selection" width="55" align="center" /> -->
<el-table-column label="采购单号" align="center" prop="code" /> <el-table-column label="采购单号" align="center" prop="code" />
<el-table-column <el-table-column label="采购日期" align="center" prop="purchaseTime" :show-overflow-tooltip="true" />
label="采购日期" <el-table-column label="到货日期" align="center" prop="arrivalTime" :show-overflow-tooltip="true" />
align="center"
prop="purchaseTime"
:show-overflow-tooltip="true"
/>
<el-table-column
label="到货日期"
align="center"
prop="arrivalTime"
:show-overflow-tooltip="true"
/>
<el-table-column <el-table-column
label="配件类型" label="配件类型"
align="center" align="center"
prop="purchasingTypeName" prop="purchasingTypeName"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column label="采购员" align="center" prop="purchaserName" :show-overflow-tooltip="true" />
label="采购员"
align="center"
prop="purchaserName"
:show-overflow-tooltip="true"
/>
<el-table-column label="提交入库人员" align="center" prop="createBy" :show-overflow-tooltip="true" /> <el-table-column label="提交入库人员" align="center" prop="createBy" :show-overflow-tooltip="true" />
<el-table-column <el-table-column label="提交入库时间" align="center" prop="createTime" :show-overflow-tooltip="true" />
label="提交入库时间"
align="center"
prop="createTime"
:show-overflow-tooltip="true"
/>
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" /> <el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
<el-table-column <el-table-column label="状态" align="center" prop="taskStatusResult" :show-overflow-tooltip="true" />
label="状态"
align="center"
prop="taskStatusResult"
: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 size="mini" icon="el-icon-zoom-in" @click="handleView(scope.row)">查看</el-button> <el-button size="mini" icon="el-icon-zoom-in" @click="handleView(scope.row)">查看</el-button>
@ -158,14 +120,18 @@
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-if="scope.row.taskStatus == 69" v-if="scope.row.taskStatus == 69"
>审核</el-button> >
审核
</el-button>
<el-button <el-button
size="mini" size="mini"
type="info" type="info"
icon="el-icon-edit" icon="el-icon-edit"
v-if="scope.row.taskStatus == 70" v-if="scope.row.taskStatus == 70"
@click="handlePrint(scope.row)" @click="handlePrint(scope.row)"
>入库单</el-button> >
入库单
</el-button>
<!-- <el-button--> <!-- <el-button-->
<!-- size="mini"--> <!-- size="mini"-->
<!-- type="text"--> <!-- type="text"-->
@ -186,21 +152,8 @@
/> />
<!-- 添加或修改参数配置对话框 --> <!-- 添加或修改参数配置对话框 -->
<el-dialog <el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body :close-on-click-modal="false">
:title="title" <el-form :model="query" ref="query" size="small" :inline="true" v-show="showSearch" label-width="68px">
:visible.sync="open"
width="1000px"
append-to-body
:close-on-click-modal="false"
>
<el-form
:model="query"
ref="query"
size="small"
:inline="true"
v-show="showSearch"
label-width="68px"
>
<el-form-item label="关键字" prop="keyWord"> <el-form-item label="关键字" prop="keyWord">
<el-input <el-input
v-model="query.keyWord" v-model="query.keyWord"
@ -293,12 +246,7 @@
<!-- >导出</el-button>--> <!-- >导出</el-button>-->
<!-- </el-col>--> <!-- </el-col>-->
</el-row> </el-row>
<el-table <el-table v-loading="loading" :data="detailTableList" @selection-change="handleSelectionChange" height="400">
v-loading="loading"
:data="detailTableList"
@selection-change="handleSelectionChange"
height="400"
>
<el-table-column type="selection" width="55" align="center" :selectable="selectable" /> <el-table-column type="selection" width="55" align="center" :selectable="selectable" />
<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">
@ -306,12 +254,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="配件类型" align="center" prop="typeName" :show-overflow-tooltip="true" /> <el-table-column label="配件类型" align="center" prop="typeName" :show-overflow-tooltip="true" />
<el-table-column <el-table-column label="规格型号" align="center" prop="specificationType" :show-overflow-tooltip="true" />
label="规格型号"
align="center"
prop="specificationType"
:show-overflow-tooltip="true"
/>
<el-table-column label="数量" align="center" prop="checkNum" :show-overflow-tooltip="true" /> <el-table-column label="数量" align="center" prop="checkNum" :show-overflow-tooltip="true" />
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" /> <el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
<el-table-column label="状态" align="center" prop="statusResult"> <el-table-column label="状态" align="center" prop="statusResult">
@ -330,18 +273,10 @@
width="150" width="150"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button size="mini" type="text" @click="pass(scope.row)" v-if="scope.row.status == 1">通过</el-button>
size="mini" <el-button size="mini" type="text" v-if="scope.row.status == 1" @click="refused(scope.row)">
type="text" 不通过
@click="pass(scope.row)" </el-button>
v-if="scope.row.status == 1"
>通过</el-button>
<el-button
size="mini"
type="text"
v-if="scope.row.status == 1"
@click="refused(scope.row)"
>不通过</el-button>
<!-- <el-button--> <!-- <el-button-->
<!-- size="mini"--> <!-- size="mini"-->
<!-- type="text"--> <!-- type="text"-->
@ -366,16 +301,9 @@
<el-dialog :visible.sync="openPrint" width="900px" append-to-body> <el-dialog :visible.sync="openPrint" width="900px" append-to-body>
<div style="height: 400px; overflow-y: scroll"> <div style="height: 400px; overflow-y: scroll">
<vue-easy-print tableShow ref="remarksPrintRef" class="print"> <vue-easy-print tableShow ref="remarksPrintRef" class="print">
<div <div class="title" style="text-align: center; font-weight: 600; font-size: 16px">入库单</div>
class="title"
style="
text-align: center;
font-weight: 600;
font-size: 16px;
"
>入库单</div>
<div class="info" style="margin-top: 10px; display: flex; flex-wrap: wrap"> <div class="info" style="margin-top: 10px; display: flex; flex-wrap: wrap">
<div <!-- <div
class="item" class="item"
style=" style="
width: 50%; width: 50%;
@ -385,19 +313,11 @@
" "
> >
<span>工程名称</span> <span>工程名称</span>
</div> </div> -->
<div <div class="item" style="width: 50%; flex-shrink: 0; margin-bottom: 5px; font-size: 14px">
class="item"
style="
width: 50%;
flex-shrink: 0;
margin-bottom: 5px;
font-size: 14px;
"
>
<span>日期</span> <span>日期</span>
</div> </div>
<div <!-- <div
class="item" class="item"
style=" style="
width: 50%; width: 50%;
@ -407,8 +327,8 @@
" "
> >
<span>领料单号</span> <span>领料单号</span>
</div> </div> -->
<div <!-- <div
class="item" class="item"
style=" style="
width: 50%; width: 50%;
@ -418,16 +338,12 @@
" "
> >
<span>车辆信息</span> <span>车辆信息</span>
</div> </div> -->
</div> </div>
<el-table <el-table
:data="printTableData" :data="printTableData"
class="table" class="table"
style=" style="margin-top: 20px; padding-bottom: 1px; padding-right: 1px"
margin-top: 20px;
padding-bottom: 1px;
padding-right: 1px;
"
border border
> >
<!-- <el-table-column type="selection" width="55" align="center" />--> <!-- <el-table-column type="selection" width="55" align="center" />-->
@ -440,14 +356,7 @@
<!-- <el-table-column label="出库方式" align="center" prop="manageTypeName" /> --> <!-- <el-table-column label="出库方式" align="center" prop="manageTypeName" /> -->
</el-table> </el-table>
<div <div class="fillIn" style="margin-top: 20px; display: flex; justify-content: space-between">
class="fillIn"
style="
margin-top: 20px;
display: flex;
justify-content: space-between;
"
>
<div class="item" style="width: 25%"> <div class="item" style="width: 25%">
<span>审核</span> <span>审核</span>
</div> </div>