Bläddra i källkod

commit 合同采购销售

yu jie 4 år sedan
förälder
incheckning
d1af1dc308
2 ändrade filer med 19 tillägg och 11 borttagningar
  1. 2 1
      package.json
  2. 17 10
      src/views/information/spot-contract/components/detail/index.vue

+ 2 - 1
package.json

@@ -36,9 +36,10 @@
         "@vue/cli-plugin-typescript": "~4.5.0",
         "@vue/cli-plugin-vuex": "~4.5.0",
         "@vue/cli-service": "~4.5.0",
-        "@vue/compiler-sfc": "^3.0.0",
+        "@vue/compiler-sfc": "^3.0.11",
         "@vue/eslint-config-prettier": "^6.0.0",
         "@vue/eslint-config-typescript": "^5.0.2",
+        "@vue/runtime-core": "^3.0.11",
         "cross-env": "^7.0.3",
         "eslint": "^6.7.2",
         "eslint-plugin-prettier": "^3.1.3",

+ 17 - 10
src/views/information/spot-contract/components/detail/index.vue

@@ -107,16 +107,23 @@ export default defineComponent({
 
                 tabList.value = [0, 4, 6].includes(props.selectedRow.contracctstatus)
                     ? [{ key: 1, name: '合同详情' }]
-                    : [
-                          { key: 1, name: '合同详情' },
-                          { key: 2, name: '点价记录' },
-                          { key: 3, name: '交收记录' },
-                          { key: 4, name: '款项记录' },
-                          { key: 5, name: '发票记录' },
-                          { key: 6, name: '入库记录' },
-                          { key: 7, name: '出库记录' },
-                          { key: 8, name: '变更记录' },
-                      ];
+                    : (props.selectedRow.contracttype === 1 ? [
+                        { key: 1, name: '合同详情' },
+                        { key: 2, name: '点价记录' },
+                        { key: 3, name: '交收记录' },
+                        { key: 4, name: '款项记录' },
+                        { key: 5, name: '发票记录' },
+                        { key: 6, name: '入库记录' },
+                        { key: 8, name: '变更记录' },
+                    ]:[
+                        { key: 1, name: '合同详情' },
+                        { key: 2, name: '点价记录' },
+                        { key: 3, name: '交收记录' },
+                        { key: 4, name: '款项记录' },
+                        { key: 5, name: '发票记录' },
+                        { key: 7, name: '出库记录' },
+                        { key: 8, name: '变更记录' },
+                    ]);
                 activeKey.value = 1;
             }
         });