This commit is contained in:
xd 2024-04-16 16:14:52 +08:00
parent f48c665c41
commit bf9424fcca
2 changed files with 9 additions and 123 deletions

View File

@ -26,56 +26,14 @@
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['priceVerification:priceVerification:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['priceVerification:priceVerification:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['priceVerification:priceVerification:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['priceVerification:priceVerification:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="priceVerificationList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="核价单Id" align="center" prop="quotHjId" />
<el-table-column label="核价单号" align="center" prop="quotHjCode" />
<el-table-column label="核价单Id" align="center" prop="quotHjId" v-if="false"/>
<el-table-column label="核价单号" align="center" prop="quotHjCode">
<template slot-scope="scope">
<el-link :underline="false" type="primary" @click="handleUpdate(scope.row)">{{scope.row.quotHjCode}}</el-link>
</template>
</el-table-column>
<el-table-column label="核价类型" align="center" prop="quotHjPricingType" />
<el-table-column label="核价日期" align="center" prop="quotHjPricingDate" width="180">
<template slot-scope="scope">
@ -83,26 +41,8 @@
</template>
</el-table-column>
<el-table-column label="备注" align="center" prop="quotHjRemark" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['priceVerification:priceVerification:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['priceVerification:priceVerification:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
@ -199,22 +139,6 @@ export default {
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
quotHjId: null,
quotHjCode: null,
quotHjPricingType: null,
quotHjPricingDate: null,
quotHjRemark: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
@ -233,20 +157,13 @@ export default {
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加报价单-核价单";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const quotHjId = row.quotHjId || this.ids
getPriceVerification(quotHjId).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改报价单-核价单";
this.title = "核价单信息";
});
},
/** 提交按钮 */
@ -268,22 +185,6 @@ export default {
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const quotHjIds = row.quotHjId || this.ids;
this.$modal.confirm('是否确认删除报价单-核价单编号为"' + quotHjIds + '"的数据项?').then(function() {
return delPriceVerification(quotHjIds);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('priceVerification/priceVerification/export', {
...this.queryParams
}, `priceVerification_${new Date().getTime()}.xlsx`)
}
}
};

View File

@ -941,22 +941,7 @@ export default {
this.getList();
})
},
/** 删除按钮操作 */
handleDelete(row) {
const quotJsqrIds = row.quotJsqrId || this.ids;
this.$modal.confirm('是否确认删除报价单-技术确认单编号为"' + quotJsqrIds + '"的数据项?').then(function() {
return delJsqr(quotJsqrIds);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('jsqr/jsqr/export', {
...this.queryParams
}, `jsqr_${new Date().getTime()}.xlsx`)
},
//-
getQuotJsgfFileList(){
const param = {relationId:this.form.quotId,fileType:'quotJsgfFile'}