浏览代码

单价调整,变更令排序

MaiXinRong 2 年之前
父节点
当前提交
aa6a66e7b0
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/controller/revise_controller.js

+ 2 - 1
app/controller/revise_controller.js

@@ -921,7 +921,8 @@ module.exports = app => {
         async _loadChange(ctx) {
             const change = await ctx.service.change.getAllDataByCondition({
                 columns: [ 'cid', 'code', 'name', 'w_code' ],
-                where: { tid: ctx.tender.id }
+                where: { tid: ctx.tender.id },
+                orders: [['code', 'asc']],
             });
             const changeBills = await ctx.service.changeAuditList.getAllDataByCondition({
                 columns: [ 'cid', 'code', 'name', 'unit', 'unit_price' ],