Jelajahi Sumber

审批也能进行修改订单

lxf 1 tahun lalu
induk
melakukan
66cdb464bf

+ 1 - 1
src/components/process/order.vue

@@ -413,7 +413,7 @@ const route = useRoute();
 const submit = ref(null);
 const departmentList = ref([]);
 const judgeStatus = () => {
-  if (route.query.processType == 20 || route.query.processType == 10) {
+  if (route.query.processType == 20) {
     return true;
   }
   if (props.queryData.recordList && props.queryData.recordList.length > 0) {

+ 12 - 4
src/views/process/processApproval/index.vue

@@ -15,7 +15,15 @@
             type="primary"
             size="small"
             @click="clickViewPackaging()"
-            v-if="queryData.query.processType && ['10', '20'].includes(queryData.query.processType) && queryData.query.flowKey == 'order'"
+            v-if="queryData.query.processType && queryData.query.processType == '20' && queryData.query.flowKey == 'order'"
+            v-preReClick>
+            包装配置
+          </el-button>
+          <el-button
+            type="primary"
+            size="small"
+            @click="handlePackagingConfiguration()"
+            v-if="queryData.query.processType && queryData.query.processType == '10' && queryData.query.flowKey == 'order'"
             v-preReClick>
             包装配置
           </el-button>
@@ -43,14 +51,14 @@
             <el-button
               type="primary"
               v-if="!queryData.query.processType || ['30', '40'].includes(queryData.query.processType)"
-              @click="handleSaveDraft"
+              @click="handleSaveDraft()"
               v-preReClick>
               保存草稿
             </el-button>
             <el-button
               type="primary"
               v-if="(!queryData.query.processType || ['30', '40'].includes(queryData.query.processType)) && queryData.query.flowKey == 'order'"
-              @click="handlePackagingConfiguration"
+              @click="handlePackagingConfiguration()"
               v-preReClick>
               包装配置
             </el-button>
@@ -72,7 +80,7 @@
         </el-form-item>
         <el-form-item>
           <div style="width: 100%; text-align: center">
-            <el-button type="primary" @click="handleSelectUser" v-preReClick>提交</el-button>
+            <el-button type="primary" @click="handleSelectUser()" v-preReClick>提交</el-button>
           </div>
         </el-form-item>
       </el-form>