Quellcode durchsuchen

更新 接口路径

wzh vor 3 Jahren
Ursprung
Commit
663f24f75f

+ 1 - 1
miniprogram/pages/voyageManage/createVoyage/createVoyage.js

@@ -147,7 +147,7 @@ Page({
       pieces: this.data.pieces,
     }
 
-    let res = await postApi('/voyage/backstage/add', postData)
+    let res = await postApi('/voyage/add', postData)
     wx.hideLoading({
       success: (res) => {},
     })

+ 2 - 2
miniprogram/pages/voyageManage/createVoyage/createVoyage.wxml

@@ -20,13 +20,13 @@
   <view class="df aic jcsb line">
     <view>装货港</view>
     <view>
-      <RemotePicker placeholder="选择装货港" bind:selectItem="selectLoadPort" url="/port/backstage/getCol"></RemotePicker>
+      <RemotePicker placeholder="选择装货港" bind:selectItem="selectLoadPort" url="/port/getCol"></RemotePicker>
     </view>
   </view>
   <view class="df aic jcsb line" wx:for="{{dischargePorts}}">
     <view>卸货港 #{{index+1}}</view>
     <view>
-      <RemotePicker placeholder="输入卸货港" id="{{'disc'+index}}" style="width: 200rpx;" bind:selectItem="selectDiscPort" data-index="{{index}}" url="/port/backstage/getCol"></RemotePicker>
+      <RemotePicker placeholder="输入卸货港" id="{{'disc'+index}}" style="width: 200rpx;" bind:selectItem="selectDiscPort" data-index="{{index}}" url="/port/getCol"></RemotePicker>
     </view>
     <image bindtap="deleteDischargePort" data-index="{{index}}" src="../../../images/delete.png" class="delete"></image>
   </view>

+ 1 - 1
miniprogram/pages/voyageManage/myDaily/examine/examine.js

@@ -25,7 +25,7 @@ Page({
     })
   },
   async checkMedia(e) {
-    let res = await postApi('/dayReport/backstage/audit', {
+    let res = await postApi('/dayReport/audit', {
       audit: e.currentTarget.dataset.audit,
       mediaId: this.data.media.id
     })

+ 4 - 4
miniprogram/pages/voyages/detail/detail.js

@@ -345,7 +345,7 @@ Page({
       })
       return
     }
-    let res = await postApi("/voyage/backstage/addNewPort", {
+    let res = await postApi("/voyage/addNewPort", {
       loginAccountId: wx.getStorageSync('loginAccountId'),
       voyageId: this.data.id,
       portId: this.data.currentDischargePortId
@@ -391,7 +391,7 @@ Page({
     if (this.data.loadEndTime && this.data.loadEndTime.length == 10) this.data.loadEndTime = this.data.loadEndTime + " 00:00:00"
 
 
-    let res = await postApi("/voyage/backstage/update", {
+    let res = await postApi("/voyage/update", {
       ...this.data,
       loginAccountId: wx.getStorageSync('loginAccountId')
     })
@@ -418,7 +418,7 @@ Page({
       title: "确认完成航次?",
       success: async e => {
         if (e.confirm) {
-          let res = await postApi("/voyage/backstage/finish", {
+          let res = await postApi("/voyage/finish", {
             loginAccountId: wx.getStorageSync('loginAccountId'),
             voyageId: this.data.id
           })
@@ -437,7 +437,7 @@ Page({
       title: "确认取消航次?",
       success: async e => {
         if (e.confirm) {
-          let res = await postApi("/voyage/backstage/cancel", {
+          let res = await postApi("/voyage/cancel", {
             loginAccountId: wx.getStorageSync('loginAccountId'),
             id: this.data.id
           })

+ 1 - 1
miniprogram/pages/voyages/detail/detail.wxml

@@ -57,7 +57,7 @@
         <view class="df aic jcsb line">
           <view>卸货港</view>
           <view>
-            <RemotePicker bind:selectItem="selectDischargePort" url="/port/backstage/getCol"></RemotePicker>
+            <RemotePicker bind:selectItem="selectDischargePort" url="/port/getCol"></RemotePicker>
           </view>
         </view>
         <view class="df aic jcsa">