luobang 2 年之前
父節點
當前提交
58a230e722
共有 3 個文件被更改,包括 63 次插入3 次删除
  1. 1 1
      build/utils.js
  2. 1 1
      config/index.js
  3. 61 1
      src/views/ADMINISTRATORS/components/ADMINISTRATORS1.vue

+ 1 - 1
build/utils.js

@@ -16,7 +16,7 @@ const devPathSrc = path.resolve(__dirname, '../../../src') // node_modules应用
 //       统计报表       组织机构/系统管理 采购  仓储
 //  'statisticalReport','systemConfig','TMS','WMS','workFlow','ADMINISTRATORS']
 //let devModules = ["index", "statisticalReport", "appoint", "sale"];
-let devModules = ['index', 'statisticalReport', 'appoint', 'ADMINISTRATORS']
+let devModules = ['all']
 
 if (pathSrc.indexOf('node_modules') > -1) {
   devModules = require('../../../cors.js').devModules

+ 1 - 1
config/index.js

@@ -73,7 +73,7 @@ let proxyTable = {
   // 所有数据的请求域名地址
   '/api/v1': {
     target: 'http://172.16.33.166:80',
-    //target: 'http://localhost:8080',
+    // target: 'http://localhost:8080',
     // target: "http://192.168.1.101:8080",
     ws: true,
     pathRewrite: {

+ 61 - 1
src/views/ADMINISTRATORS/components/ADMINISTRATORS1.vue

@@ -364,6 +364,48 @@
               </div>
             </div>
           </el-tab-pane>
+          <el-tab-pane label="运输订单状态调整接口" name="eighth">
+            <div class="admin2">
+              <div class="carrier from">
+                <el-form
+                  :inline="true"
+                  class="demo-form-inline"
+                  label-width="80px"
+                >
+                  <el-form-item label="车牌号:">
+                    <el-autocomplete
+                      class="inline-input"
+                      v-model="capacityName"
+                      :fetch-suggestions="querySearchCapacity"
+                      placeholder="车牌号"
+                      :trigger-on-focus="false"
+                      @select="handleSelectCapacity"
+                    >
+                      <template slot-scope="{ item }">
+                        <div class="name">{{ item.capacityNumber }}</div>
+                      </template>
+                    </el-autocomplete>
+                  </el-form-item>
+                </el-form>
+              </div>
+              <div class="poundNo from">
+                <span class="text">运输订单号:</span>
+                <el-input v-model="orderNumber" disabled></el-input>
+              </div>
+              <div class="poundNo from">
+                <span class="text">订单状态:</span>
+                <el-input v-model.number="orderStatus"></el-input>
+              </div>
+              <div class="button_box">
+                <el-button
+                  type="primary"
+                  @click="updateOrderStatus"
+                  :disabled="disabled"
+                  >确认</el-button
+                >
+              </div>
+            </div>
+          </el-tab-pane>
         </el-tabs>
       </div>
     </template>
@@ -401,7 +443,8 @@ export default {
       lineQuence: null,
       gatePostList: [],
       enFactoryGatepost: null,
-      gatePostId: null
+      gatePostId: null,
+      orderStatus: null
     }
   },
   created() {
@@ -412,6 +455,23 @@ export default {
     this.information()
   },
   methods: {
+    updateOrderStatus() {
+      if (
+        this.orderNumber != null &&
+        this.orderNumber != '' &&
+        this.orderStatus != null
+      ) {
+        this.axios
+          .post('/api/v1/bp/updateOrderStatus', {
+            orderNumber: this.orderNumber,
+            orderStatus: this.orderStatus
+          })
+          .then(res => {
+            this.$message.success('修改成功')
+            this.$router.go(0)
+          })
+      }
+    },
     updateCanwork() {
       console.log(this.orderNumber)
       this.axios