|
@@ -463,7 +463,7 @@ module.exports = app => {
|
|
|
* @param {int} id 工料id
|
|
|
* @return {void}
|
|
|
*/
|
|
|
- async dels(datas, checklist = false) {
|
|
|
+ async dels(datas, checklist = false, fromCheckList = false) {
|
|
|
if (!this.ctx.tender || !this.ctx.material) {
|
|
|
throw '数据错误';
|
|
|
}
|
|
@@ -486,7 +486,7 @@ module.exports = app => {
|
|
|
await transaction.commit();
|
|
|
// console.log(datas);
|
|
|
const gclList = await this.ctx.service.materialListGcl.getAllDataByCondition({ where: { tid: this.ctx.tender.id } });
|
|
|
- return checklist ? gclList : {
|
|
|
+ return fromCheckList ? gclList : {
|
|
|
gclList,
|
|
|
materialListData: await this.getMaterialData(this.ctx.tender.id, this.ctx.material.id),
|
|
|
};
|