hurx 1 周之前
父節點
當前提交
d6ce3ce682
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. 7 2
      src/views/order/saleOrder/index.vue

+ 7 - 2
src/views/order/saleOrder/index.vue

@@ -108,6 +108,11 @@
             <dict-tag :options="order_source" :value="scope.row.orderSource" />
           </template>
         </el-table-column>
+        <el-table-column label="所属项目" align="center" prop="dataSource">
+          <template #default="scope">
+            {{ scope.row.dataSource == 'zhongche' ? '中车' : '--' }}
+          </template>
+        </el-table-column>
         <!-- <el-table-column label="审核状态" align="center" prop="checkStatus">
           <template #default="scope">
             <dict-tag :options="order_check_status" :value="scope.row.checkStatus" />
@@ -508,7 +513,7 @@ const handleCheck = async (row?: OrderMainVO) => {
 
 /** 审核按钮操作 */
 const handleCancel = async (row?: OrderMainVO) => {
-  const oldValue = row.checkStatus; // 保存旧值
+  const oldValue = row.orderStatus; // 保存旧值
 
   // 弹出审核选择对话框
   try {
@@ -519,7 +524,7 @@ const handleCancel = async (row?: OrderMainVO) => {
   } catch (error) {
     // 用户取消或操作失败
     if (error !== 'cancel' && error !== 'close') {
-      row.checkStatus = oldValue; // 失败回滚
+      row.orderStatus = oldValue; // 失败回滚
       proxy?.$modal.msgError('操作失败,请重试');
     }
   }