Browse Source

修改弹窗的相应提示信息BUG和修改退料显示领料BUG

阿赫 11 months ago
parent
commit
abdefa82b0

+ 3 - 3
zkqy-admin/src/main/resources/application.yml

@@ -192,10 +192,10 @@ projectDownloadZip:
 OpenAuthorization2:
   MES:
     # 单点获取code、token、userinfo主机地址
-    URL: http://192.168.110.114:8066/oauth2
+    URL: http://192.168.110.129:8066/oauth2
     # 系统标识
     BASIC: mes
     # 重定向本系统主机地址
-    REDIRECT_URL: http://192.168.110.114:1025
+    REDIRECT_URL: http://192.168.110.129:1025
     # 回调地址
-    CALLBACK: http://192.168.110.114:8066/oauth/callback
+    CALLBACK: http://192.168.110.129:8066/oauth/callback

+ 1 - 1
zkqy-ui/.env.development

@@ -17,7 +17,7 @@ VUE_CLI_BABEL_TRANSPILE_MODULES = true
 # VUE_APP_BASE_API1 = 'http://192.168.110.15:8066/'
 # VUE_APP_BASE_API1 = 'http://192.168.110.120:8066/'
 # VUE_APP_BASE_API1 = 'http://192.168.110.76:8066/'
-VUE_APP_BASE_API1 = 'http://192.168.110.83:8066/'
+VUE_APP_BASE_API1 = 'http://192.168.110.129:8066/'
 
 # ws地址
 VUE_APP_BASE_WS_API = '//192.168.110.15:8721'

+ 1 - 1
zkqy-ui/src/views/login.vue

@@ -283,7 +283,7 @@ export default {
           }
           let form = {
             // uri: "?client_id=mestools&scope=basic&response_type=code&state=AB1357&redirect_uri=http://192.168.110.125:8066/oauth/callback",
-            uri: "?client_id=mestools&scope=basic&response_type=code&state=AB1357&redirect_uri=http://192.168.110.125:8066/oauth/callback",
+            uri: "?client_id=lth&scope=basic&response_type=code&state=AB1357&redirect_uri=http://192.168.110.129:8066/oauth/callback",
             ...this.loginForm,
             tenantID: this.tenantId,
           };

+ 7 - 5
zkqy-ui/src/views/orderMange/requisitionOrders/index.vue

@@ -167,12 +167,12 @@
                 @pagination="getList"/>
 
     <!-- 添加或修改领料单对话框 -->
-    <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body :before-close="cancel">
+    <el-dialog :title="requistionOrdersType?'修改退料单':'修改领料单'" :visible.sync="open" width="800px" append-to-body :before-close="cancel">
       <el-form ref="form" :model="form" :rules="rules" label-width="80px">
         <el-row :gutter="20">
           <el-col :span="8">
             <el-form-item label="单据类型" prop="requistionOrdersType">
-              <el-select v-model="form.requistionOrdersType" filterable placeholder="请选择任务领料"
+              <el-select v-model="form.requistionOrdersType" filterable placeholder="请选择任务"
                          :disabled="requistionState" @change="handleRequistionState(form.requistionOrdersType)">
                 <el-option key="0" label="领料" :value=0></el-option>
                 <el-option key="1" label="退料" :value=1></el-option>
@@ -180,8 +180,8 @@
             </el-form-item>
           </el-col>
           <el-col :span="8">
-            <el-form-item label="领料任务" prop="taskCode">
-              <el-select v-model="form.taskCode" filterable placeholder="请选择任务领料" :disabled="requistionState"
+            <el-form-item :label="requistionOrdersType?'退料任务':'领料任务'" prop="taskCode">
+              <el-select v-model="form.taskCode" filterable placeholder="请选择任务" :disabled="requistionState"
                          @change="handleRequistionState(form.requistionOrdersType)">
                 <el-option v-for="item in taskList" :key="item.saleProductsId" :label="item.saleProductsTaskName"
                            :value="item.saleProductsId"></el-option>
@@ -189,7 +189,7 @@
             </el-form-item>
           </el-col>
           <el-col :span="8">
-            <el-form-item label="领料日期" prop="requisitionDate">
+            <el-form-item :label="requistionOrdersType?'退料日期':'领料日期'" prop="requisitionDate">
               <el-date-picker style="width: 100%" v-model="form.requisitionDate" type="date"
                               value-format="yyyy-MM-dd" placeholder="请选择领料日期"
                               :disabled="requistionState"></el-date-picker>
@@ -442,7 +442,9 @@ export default {
     },
     /** 修改按钮操作 */
     handleUpdate(row) {
+      //console.log(row)
       this.reset();
+      this.requistionOrdersType = row.requistionOrdersType;
       const id = row.id || this.ids
       // 获取领料任务
       this.getTaskList();

+ 1 - 1
zkqy-ui/vue.config.js

@@ -43,7 +43,7 @@ module.exports = {
         //target: `http://192.168.128.171:8066`,
         //target: `http://192.168.128.171:8066`,
         //target: `http://62.234.61.92:8066`,
-        target: `http://192.168.110.83:8066`,
+        target: `http://192.168.110.129:8066`,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''