xiaodai2022 2 jaren geleden
bovenliggende
commit
09736e9e93
1 gewijzigde bestanden met toevoegingen van 69 en 1 verwijderingen
  1. 69 1
      src/views/orderEntry/orderConfirm/index.vue

+ 69 - 1
src/views/orderEntry/orderConfirm/index.vue

@@ -4,6 +4,24 @@
       style="width: 100%"
       v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
     >
+      <show-data-table
+        style="margin: 0; padding: 0"
+        :sitem="sitem"
+        v-if="sitem"
+        :columns="showColumns"
+      >
+        <template slot="status">
+          <el-tag
+            :size="'mini'"
+            v-text="
+              (statusOptions.find((item) => item.value == sitem.status) || {})
+                .label || '--'
+            "
+          ></el-tag>
+        </template>
+      </show-data-table>
+
+      <!-- orderCode -->
       <el-form
         ref="ruleForm"
         :model="ruleForm"
@@ -753,9 +771,41 @@ export default {
   },
   data() {
     return {
+      statusOptions: [],
+      showColumns: [
+        {
+          prop: "status",
+          label: "状态",
+          _slot_: "status",
+          span: 6,
+        },
+        {
+          prop: "creater",
+          label: "导入人",
+          span: 6,
+        },
+           {
+          prop: "addtime",
+          label: "导入时间",
+          span: 6,
+        },
+        {
+          prop: "updater",
+          label: "确认人",
+          span: 6,
+        },
+        {
+          prop: "updater",
+          label: "确认人",
+          span: 6,
+        },
+        
+      ],
+
       showModel: false,
       hasdiff: false,
       activeTabs: "1",
+      sitem: null,
       isMetal: false,
       finishStatus: "finish",
       pickerOptions: {
@@ -763,6 +813,7 @@ export default {
           return time.getTime() > new Date().valueOf();
         },
       },
+
       activeNames: ["0", "1", "2", "3", "4", "5", "10"],
       importSitem: null,
       confirmSitem: null,
@@ -791,6 +842,7 @@ export default {
       options9,
       onlineColumns,
       priceLoding: false,
+      showColumns: [],
     };
   },
   mounted() {
@@ -804,6 +856,7 @@ export default {
       this.loading = true;
       this.rulesThis = this.rules;
       await this.resetForm();
+
       await this.initData();
       this.loading = false;
     },
@@ -857,12 +910,27 @@ export default {
     },
 
     async initData() {
+      this.sitem = null;
       this.loading = true;
       const { code, data, message } = await asyncRequest.detail({
         id: this.queryId,
       });
       if (code === 0) {
-        const { status, import: simport, confirm, user_update } = data;
+        const {
+          status,
+          import: simport,
+          confirm,
+          user_update,
+          orderCode,
+          creater,
+          addtime,
+        } = data;
+        this.sitem = {
+          orderCode,
+          status,
+          creater,
+          addtime,
+        };
         this.importSitem = simport ? JSON.parse(JSON.stringify(simport)) : null;
         this.confirmSitem = confirm
           ? JSON.parse(JSON.stringify(confirm))