Browse Source

前端gjy

18513069273 4 years ago
parent
commit
fe41cc0127

File diff suppressed because it is too large
+ 6 - 20320
package-lock.json


+ 2 - 3
package.json

@@ -2,7 +2,7 @@
   "name": "@winsea-product/winsea-product-platform-front",
   "version": "6.6.3-2-hot",
   "description": "用户前台前端",
-  "author": "赢海科技",
+  "author": "中天",
   "main": "main.js",
   "build": {
     "appId": "com.hangge.demo",
@@ -76,7 +76,7 @@
   },
   "devDependencies": {
     "@babel/core": "7.0.0",
-    "autoprefixer": "^7.1.2",
+    "autoprefixer": "^9.5.1",
     "@babel/register": "7.0.0",
     "@pixul/node-rancher-api": "^1.4.0",
     "@vue/cli-plugin-babel": "3.6.0",
@@ -84,7 +84,6 @@
     "@vue/cli-plugin-pwa": "^3.12.1",
     "@vue/cli-service": "3.5.3",
     "@vue/test-utils": "1.0.0-beta.29",
-    "autoprefixer": "^9.5.1",
     "babel-core": "7.0.0-bridge.0",
     "babel-plugin-dynamic-import-node": "^2.3.3",
     "chai": "^4.1.2",

+ 1 - 1
src/api/V2/contract/index.js

@@ -13,7 +13,7 @@ export const API_POST_CUSTOM_DOWN_DELETE = '/customDropDown/api/saveDelete'
 // 导出
 export const API_POST_EXPORT = '/contractManagementInfo/export'
 // 操作历史
-export const API_POST_BILL_OPERATE_HIS = '/billOperateHis/query/commonBillOperateHis'
+export const API_GET_BILL_OPERATE_HIS = '/billOperateHis/query/commonBillOperateHis'
 // 修改当前状态
 export const API_POST_EDITSTATUS = '/contractManagementInfo/editStatus'
 

+ 3 - 0
src/model/contarct/index.js

@@ -4,6 +4,7 @@ import { appRx } from '../defalutConfig/indexRx'
 import {
     API_GET_CONTRACT_TENANT,
     API_POST_ADD_CONTRACT_TENANT,
+    API_GET_EXAMINE_HISTORY,
     API_POST_MANNER_OF_PACKING_TENANT,
     API_GET_CUSTOMDROPDOWN_CUSTOMDROPDOWN,
     API_POST_CUSTOM_DOWN_ADD,
@@ -19,6 +20,8 @@ export const getList = appRx.get(API_GET_CONTRACT_TENANT, errorCatcher, errorHan
 export const addList = appRx.post(API_POST_ADD_CONTRACT_TENANT, errorCatcher, errorHandle, filter)
 // 查看数据或包装方式
 export const packList = appRx.get(API_POST_MANNER_OF_PACKING_TENANT, errorCatcher, errorHandle, filter)
+//查看
+export const getInquiry = appRx.get(API_GET_EXAMINE_HISTORY, errorCatcher, errorHandle, filter)
 // 下拉
 export const xiala = appRx.get(API_GET_CUSTOMDROPDOWN_CUSTOMDROPDOWN, errorCatcher, errorHandle, filter)
 export const addxiala = appRx.post(API_POST_CUSTOM_DOWN_ADD, errorCatcher, errorHandle, filter)

+ 1 - 0
src/views/contractManagement/purchaseContract.vue

@@ -251,6 +251,7 @@ export default {
         searchKeyWord: this.searchKeyWord,
         startDate: this.startDate,
         endDate: this.endDate,
+        contrPage:this.contrPage,
       })
         .toPromise()
         .then((response) => {

+ 2 - 1
src/views/contractManagement/purchaseContractExamine.vue

@@ -24,7 +24,7 @@
     >
       <div class="remark">
       <h3>基本信息</h3>
-    </div>
+      </div>
         <ws-info-table>
           <ws-form-item
             label="合同编号"
@@ -139,6 +139,7 @@
           </ws-form-item>
         </ws-info-table>
       </base-card>
+      
       <!--面试信息-->
       <div class="remark">
       <h3>货物信息</h3>

+ 89 - 63
src/views/contractManagement/salesContract.vue

@@ -2,12 +2,41 @@
 <!--2019年5月30日 20:25:16 by jlx-->
 <template>
   <div>
-    <BaseHeaderLayout :leftSpan="16"> 
-     
+    <BaseHeaderLayout :leftSpan="10">
       <template slot="left">
-       
-       
-        <ws-date-picker class="times"
+        <ws-button
+          type="primary"
+          :disable="checkBtn"
+          @click="handleAdd()"
+          v-hasPermission="
+            `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
+          "
+          >添加</ws-button
+        >
+        <ws-button
+          :disable="checkBtn"
+          @click="enquiry(3)"
+          v-hasPermission="
+            `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
+          "
+          >导出</ws-button
+        >
+      </template>
+      <template slot="right">
+        <ws-select
+          v-model="deptBudgetList.crtDutyId"
+          placeholder=""
+          class="typeselect"
+          @change="selectCrtDuty"
+        >
+          <ws-option
+            v-for="item in taskTypeList"
+            :key="item.value"
+            :label="item.value"
+            :value="item.value"
+          />
+        </ws-select>
+        <ws-date-picker
           :picker-options="pickerBeginDateBefore"
           v-model="deptBudgetList.birthday"
           type="date"
@@ -17,7 +46,7 @@
           value-format="yyyy-MM-dd"
         />
         <span>至</span>
-        <ws-date-picker class="times"
+        <ws-date-picker
           :picker-options="pickerBeginDateBefore"
           v-model="deptBudgetList.birthday"
           type="date"
@@ -26,7 +55,7 @@
           format="yyyy-MM-dd"
           value-format="yyyy-MM-dd"
         />
-        <ws-input 
+        <ws-input
           v-model="deptBudgetList.interviewOpinion"
           placeholder="可按照合同编号、买方名称、卖方名称进行查找"
           clearable
@@ -44,42 +73,8 @@
           "
           >查找</ws-button
         >
-          <ws-select
-          v-model="deptBudgetList.crtDutyId"
-          placeholder=""
-          class="typeselect"
-          @change="selectCrtDuty"
-        >
-       
-          <ws-option class="topcenter"
-            v-for="item in taskTypeList"
-            :key="item.value"
-            :label="item.value"
-            :value="item.value"
-          />
-        </ws-select>
-      </template>
-       <template slot="right" >
-         
-        <ws-button
-          type="primary"
-          :disable="checkBtn"
-          @click="handleAdd()"
-          v-hasPermission="
-            `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
-          "
-          >添加</ws-button
-        >
-        <ws-button
-          :disable="checkBtn"
-          @click="enquiry(3)"
-          v-hasPermission="
-            `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
-          "
-          >导出</ws-button
-        >
       </template>
-    </BaseHeaderLayout> 
+    </BaseHeaderLayout>
     <el-table :data="tableData" style="width: 100%; margin-top: 10px">
       <el-table-column type="index" />
       <el-table-column prop="date" label="合同编号" width="80">
@@ -124,8 +119,12 @@
 </template>
 <script>
 import {
-  getList
-} from '@/model/procurement/spare'
+  getList,
+  export1,
+  editstatus,
+  billoperatehis,
+} from '@/model/contarct/index'
+import { dayjs } from 'base-core-lib'
 export default {
   name: 'viewSpareMoney',
   watch: {
@@ -154,7 +153,6 @@ export default {
       contractForm: {},
       categoryIndex: 0,
       rulesVendor: {},
-      pickerBeginDateBefore:{},
       tableData: [{ date: 1111, name: 'qqqq', address: 'errrtt' }],
       taskTypeList: [
         { value: '未完成(默认)' },
@@ -180,27 +178,22 @@ export default {
         interviewResult: '1',
         interviewOpinion: '',
         aliasName: '',
-
-        
+        currentPage: 1,
+        pageSize: 10,
+        searchType: 1,
+        searchTypeText: '未完成',
+        searchKeyWord: '',
+        contractType: 1,
+        startDate: null,
+        endDate: null,
       },
     }
   },
   created() {
-    //cg.viewBudget
-    //cg.viewSpareMoney
-    // this.getVesselData();
     this.getList()
     this.showType = this.isShow
   },
   methods: {
-    getList(){
-      getList({
-        
-      }).toPromise().then(response => {
-        this.contractList = response
-      })
-    },
-    selectCrtDuty(){},
     // 关闭 dialog时 处理文件url 初始化upload组件
     handleClose() {
       this.dialogViewSpareMoney = false
@@ -223,13 +216,46 @@ export default {
     listQuery() {},
     total() {},
     clearfiltQuery() {},
+    selectCrtDuty() {},
+    pickerBeginDateBefore: {
+      disabledDate: (time) => {
+        return time.getTime() > Date.now()
+      },
+    },
+    getList() {
+      console.log(
+        this.contractType,
+        this.currentPage,
+        this.pageSize,
+        this.searchType,
+        this.searchKeyWord,
+        this.startDate,
+        this.endDate,
+        this.contrPage
+      )
+      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>
-
 <style lang="scss" scoped>
-
-
+.typeselect {
+  width: 500px;
+}
 .padding-xs {
   padding: 15px;
   text-align: right;
@@ -308,7 +334,7 @@ export default {
 }
 .box-app {
   display: inline-block;
-  
+  float: left;
   margin-left: 30px;
   line-height: 50px;
 }
@@ -391,4 +417,4 @@ export default {
     padding: 0 !important;
   }
 }
-</style>
+</style>

+ 43 - 18
src/views/contractManagement/salesContractExamine.vue

@@ -1,5 +1,7 @@
+
 <!--销售合同-->
 <!--2019年5月30日 20:25:16 by jlx-->
+
 <template>
   <div class="container">
     <el-row>
@@ -28,10 +30,10 @@
             <ws-form-item label="合同编号"
                           span="1"
                           prop="seafarerName">
-              <!-- <ws-input 
+               <ws-input 
                         v-model="deptBudgetList.seafarerName"
                         maxlength="100"
-                        size="small" /> -->
+                        size="small" /> 
 
               <span v-if="!isEdited || deptBudgetList.add || registered === '1'"
                    
@@ -52,7 +54,7 @@
               ">
               {{
                 deptBudgetList.crtDutyName
-              }}</span>
+              }}
             </ws-form-item>
             <br>
             <!--买方-->
@@ -426,7 +428,7 @@
                          @change="selectDuty">
                 <ws-option v-for="item in dutyList"
                            :key="item.dutyId"
-                           v-if="item.enabled"
+                           
                            :label="item.chineseName"
                            :value="item.dutyId" />
               </ws-select>
@@ -683,27 +685,37 @@
                 deptBudgetList.interviewResult
               }}</span>
             </ws-form-item>
-           
+            
+           <div class="remark">
+          <h3>备注信息</h3>
+        </div>
+        {{deptBudgetList.contractProcessInfo.remarks}}
+        <img :src="deptBudgetList.contractProcessInfo.addressUrl" alt="">
+
           </ws-info-table>
   </ws-form>
-  
   </div>
   
 </template>
 
 <script>
-export default {
-  data() {
-    return {
-      tableData: [],
-      deptBudgetList: {},
-      ruleDeptBudget: [],
-    }
-  },
-  created() {
+import { getInquiry } from '@/model/contarct/index'
+
+  export default {
+    data() {
+      return {
+        tableData: [],
+        deptBudgetList:{},
+        ruleDeptBudget:[]
+      }
+    },
+    created() {
     //cg.viewBudget
     //cg.viewSpareMoney
     // this.getVesselData();
+   
+    this.getInquiry()
+    
     this.showType = this.isShow
   },
   methods: {
@@ -713,9 +725,22 @@ export default {
     },
     handleExamine() {},
     approve() {},
-  },
-}
+    getInquiry(){
+      getInquiry({}).toPromise().then(response => {
+        this.contractForm = response
+      })
+      // }).then(response => {
+      //   this.getInquiry = response
+    } 
+
+      //  // 获取数据
+      // this.getInquiry({  
+      // }).then(response => {
+      //   this.getInquiry = response
+    },
+  }  
 </script>
+
 <style lang="scss" scoped>
 .bg-left {
   padding-left: 30px;
@@ -865,4 +890,4 @@ export default {
   overflow: scroll;
   height: 93vh;
 }
-</style>
+</style>

+ 1 - 1
src/viewsjs/procurement/procurementBasic/contractDetail.js

@@ -69,7 +69,7 @@ export default {
       // 获取数据
       getTypeList({
         compId: sessionStorage.getItem('ws-pf_compId'),
-        constCode: 'CONTRACT_TYPE'
+        constCode: 'CONTRACT_INQUIRY'
       }).toPromise().then(response => {
         this.contractList = response
       })

Some files were not shown because too many files changed in this diff