Преглед на файлове

单价调整,变更令排序

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) {
         async _loadChange(ctx) {
             const change = await ctx.service.change.getAllDataByCondition({
             const change = await ctx.service.change.getAllDataByCondition({
                 columns: [ 'cid', 'code', 'name', 'w_code' ],
                 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({
             const changeBills = await ctx.service.changeAuditList.getAllDataByCondition({
                 columns: [ 'cid', 'code', 'name', 'unit', 'unit_price' ],
                 columns: [ 'cid', 'code', 'name', 'unit', 'unit_price' ],