Pārlūkot izejas kodu

单价调整,变更令排序

MaiXinRong 2 gadi atpakaļ
vecāks
revīzija
aa6a66e7b0
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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' ],