zhongtianhaoyuan 4 years ago
parent
commit
d215383e16
3 changed files with 81 additions and 14 deletions
  1. 4 6
      src/api/V2/contract/index.js
  2. 76 7
      src/views/contractManagement/salesContractAdd.vue
  3. 1 1
      vue.config.js

+ 4 - 6
src/api/V2/contract/index.js

@@ -1,6 +1,5 @@
 // 根据ID,常量类别获常量数据
-export const API_GET_CONTRACT_TENANT = '/contractManagementInfo/selectInfo'
-                                        
+export const API_GET_CONTRACT_TENANT = '/contractManagementInfo/selectInfo'                    
 export const API_POST_ADD_CONTRACT_TENANT = '/contractManagementInfo/api/addInfo'
 export const API_POST_MANNER_OF_PACKING_TENANT = '/commonSysParameter/getInfo'
 // 验收下拉
@@ -14,7 +13,6 @@ export const API_POST_CUSTOM_DOWN_DELETE = '/customDropDown/api/saveDelete'
 // 导出
 export const API_POST_EXPORT = '/contractManagementInfo/export'
 // 操作历史
-export const API_GET_BILL_OPERATE_HIS = '/billOperateHis/query/commonBillOperateHis'
-// 修改当前状态
-export const API_POST_EDITSTATUS = '/contractManagementInfo/editStatus'
-
+export const API_POST_BILL_OPERATE_HIS = '/billOperateHis/query/commonBillOperateHis'
+// 操作历史
+export const API_POST_EDITSTATUS = '/contractManagementInfo/editStatus'

+ 76 - 7
src/views/contractManagement/salesContractAdd.vue

@@ -499,7 +499,7 @@
         />
       </ws-form>
     </div>
-    <div style="text-align: right; padding: 10px">
+    <div style="text-align: right; padding: 10px" class="center">
       <el-button class="bg-bottom" type="primary" size="small" @click="submit()"
         >提交</el-button
       >
@@ -543,19 +543,20 @@ export default {
       // 提交类型
       submitType: true,
       tableData: [{ date: 1111, name: 'qqqq', address: 'errrtt' }],
-      selectpackingMethod: {},
+     
       packtypeList: [],
       compId: sessionStorage.getItem('ws-pf_compId'),
       mainReportAdd: {},
       appendixIdsAdd: '',
       size: 10,
-      uploadSuccess: {},
+      // uploadSuccess: {},
+      // onChange:{},
       unitList: [],
       goodnameList: [],
-      selectgrade: {},
+
       gradeList: [],
       ChapterTwoList: [],
-      onChange: {},
+
       deptBudgetList: {
         contractGoodsInfo: {
           goodsName: '',
@@ -568,8 +569,9 @@ export default {
           return time.getTime() > Date.now()
         },
       },
-
-      selectunitList: {},
+      // selectpackingMethod: {},
+      // selectgrade: {},
+      // selectunitList: {},
       // selectDuty: {},
       // isEdited: false,
       // registered: {},
@@ -624,6 +626,23 @@ export default {
           this.ChapterTwoList = response
         })
     },
+    // 上传附件
+    uploadSuccess(data, files, url) {
+      console.log(data, files, url)
+
+      // this.deptBudgetList.
+      // this.formData.append('files', files)
+      // this.feedbackObj.uploadNameAttachment = data.appendixName
+      // this.feedbackObj.pathUploadAttachment = data.appendixPath
+      // // this.newAppendixs = files
+      // this.onChangeFlag = true
+    },
+    onChange(files) {
+      this.fileNum = files
+      this.$refs.upload.handleSaveBill().then((res) => {
+        console.log(files)
+      })
+    },
     getUnitList() {
       xiala({
         compId: sessionStorage.getItem('ws-pf_compId'),
@@ -702,6 +721,56 @@ export default {
           })
       }
     },
+    selectContract(val) {
+      let key = this.unitList.find((item) => item.constValue === val).constKey
+      this.pleaseChoose = val
+    },
+    selectContract(val) {
+      let key = this.unitList.find((item) => item.constValue === val).constKey
+      this.pleaseChoose = val
+    },
+    handleExamine() {},
+    approve() {},
+    returnsales() {
+      this.$router.push({ path: 'purchaseContract' })
+    },
+    selectChapterTwo(e) {
+      for (var i = 0; i < this.ChapterTwoList.length; i++) {
+        if (this.ChapterTwoList[i].constValue == e) {
+          this.deptBudgetList.gradeKey = this.ChapterTwoList[i].constKey
+        }
+      }
+    },
+    selectunitList(e) {
+      for (var i = 0; i < this.unitList.length; i++) {
+        if (this.unitList[i].constValue == e) {
+          this.deptBudgetList.packingMethodKey = this.unitList[i].constKey
+        }
+      }
+    },
+    selectgrade(e) {
+      for (var i = 0; i < this.gradeList.length; i++) {
+        if (this.gradeList[i].constValue == e) {
+          this.deptBudgetList.gradeKey = this.gradeList[i].constKey
+        }
+      }
+    },
+    selectgoodsName(e) {
+      for (var i = 0; i < this.goodnameList.length; i++) {
+        if (this.goodnameList[i].constValue == e) {
+          this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
+        }
+      }
+    },
+    selectpackingMethod(e) {
+      for (var i = 0; i < this.packtypeList.length; i++) {
+        if (this.packtypeList[i].constValue == e) {
+          this.deptBudgetList.acceptanceMethodKey = this.packtypeList[
+            i
+          ].constKey
+        }
+      }
+    },
     // 编辑
     editClick(item, index) {
       const map = JSON.parse(JSON.stringify(item))

+ 1 - 1
vue.config.js

@@ -144,7 +144,7 @@ module.exports = {
         // target: 'http://standard-dev.winsea.com/', //目标地址
         // target: 'http://localhost:8090/',
         // target: 'http://192.168.1.124:8090/',
-        target: 'http://192.168.1.124:8090/',
+        target: 'http://192.168.1.110:8090/',
         // target: 'http://192.168.24.5:8098',//目标地址
         // target: 'http://product-server.winsea.com/',
         // target: 'http://192.168.24.5:8098',//目标地址