gjy 4 년 전
부모
커밋
fef8abe9ce
2개의 변경된 파일87개의 추가작업 그리고 29개의 파일을 삭제
  1. 7 18
      src/views/contractManagement/salesContract.vue
  2. 80 11
      src/views/contractManagement/salesContractExamine.vue

+ 7 - 18
src/views/contractManagement/salesContract.vue

@@ -229,7 +229,12 @@ export default {
       this.dialogViewSpareMoney = false
     },
     handleExamine(row) {
-      this.$router.push({ path: 'salesContractExamine' })
+      
+      this.$router.push({
+        
+        name: 'salesContractExamine',
+        params: { id: row.id },
+        })
     },
     handleAdd() {
       this.$router.push({ path: 'salesContractAdd' })
@@ -252,23 +257,7 @@ export default {
         return time.getTime() > Date.now()
       },
     },
-    getList() {
-      getList({
-        compId: sessionStorage.getItem('ws-pf_compId'),
-        contractType: this.contractType,
-        currentPage: this.currentPage,
-        pageSize: this.pageSize,
-        searchType: this.searchType,
-        searchKeyWord: this.searchKeyWord,
-        startDate: this.startDate,
-        endDate: this.endDate,
-        contrPage: this.contrPage,
-      })
-        .toPromise()
-        .then((response) => {
-          this.contractList = response
-        })
-    },
+    
   },
 }
 </script>

+ 80 - 11
src/views/contractManagement/salesContractExamine.vue

@@ -18,6 +18,7 @@
         >
       </el-col>
     </el-row>
+   
     <ws-form
       ref="deptBudgetList"
       :rules="mainReportAdd"
@@ -260,8 +261,9 @@
         <div class="remark">
           <h3>备注信息</h3>
         </div>
-        {{deptBudgetList.contractProcessInfo.remarks}}
-        <img :src="deptBudgetList.contractProcessInfo.addressUrl" alt="">
+        {{deptBudgetList.remarks}}
+        <img :src="deptBudgetList.addressUrl" alt="">
+
       <!-- </base-card> -->
 
     </ws-form>
@@ -279,8 +281,16 @@
 </template>
 
 <script>
-import { getVesselOne } from '@/model/procurement/basic'
-import{getList}from'@/model/contarct/index'
+import {
+  getList,
+  packList,
+  addList,
+  xiala,
+  addxiala,
+  editxiala,
+  delxiala,
+  examineList,
+} from '@/model/contarct/index'
 import { dayjs } from 'base-core-lib'
 export default {
   name: 'viewSpareMoney',
@@ -307,20 +317,79 @@ export default {
       year: '',
       // 提交类型
       submitType: true,
-      tableData: [{ date: 1111, name: 'qqqq', address: 'errrtt' }],
+      tableData: [],
       ruleDeptBudget: [],
-      deptBudgetList: {},
+      deptBudgetList: {
+        contractProcessInfo: {},
+        contractGoodsInfo: {},
+      },
       mainReportAdd: {},
+      list: {},
     }
   },
+
   created() {
-    //cg.viewBudget
-    //cg.viewSpareMoney
-    // this.getVesselData();
+    this.loaddata()
     this.showType = this.isShow
     this.getList()
   },
   methods: {
+    
+    loaddata() {
+      // 数据
+      examineList({ id: this.$route.params.id })
+        .toPromise()
+        .then((response) => {
+          this.deptBudgetList = response
+        })
+      // 包装方式
+      packList({ constId: 'CON1' })
+        .toPromise()
+        .then((response) => {
+          this.packtypeList = response
+        })
+      // 验收方式
+      this.getUnitList()
+      // 货名
+      packList({ constId: 'CON2' })
+        .toPromise()
+        .then((response) => {
+          this.goodnameList = response
+        })
+      // 品级
+      packList({ constId: 'CON3' })
+        .toPromise()
+        .then((response) => {
+          this.gradeList = response
+        })
+      // 双章
+      packList({ constId: 'CON4' })
+        .toPromise()
+        .then((response) => {
+          this.ChapterTwoList = response
+        })
+    },
+    getUnitList() {
+      xiala({
+        compId: sessionStorage.getItem('ws-pf_compId'),
+        constCode: 'TYPEYAN',
+      })
+        .toPromise()
+        .then((response) => {
+          this.unitList = response
+          let currItem
+          this.unitList.forEach((item, index, arr) => {
+            item.flag = 'delete'
+            if (this.vModel == item.constKey) {
+              currItem = item
+            }
+          })
+          //
+          if (currItem) {
+            this.selectContract(currItem.constValue)
+          }
+        })
+    },
     // 关闭 dialog时 处理文件url 初始化upload组件
     handleClose() {
       this.dialogViewSpareMoney = false
@@ -328,7 +397,7 @@ export default {
     handleExamine() {},
     approve() {},
     returnsales() {
-      this.$router.push({ path: 'purchaseContract' })
+      this.$router.push({ path: 'salesContract' })
     },
   },
 }
@@ -488,4 +557,4 @@ export default {
   overflow: scroll;
   height: 93vh;
 }
-</style>
+</style>