Explorar el Código

Merge branch 'master' of http://git.zthymaoyi.com:3000/gdc/yiliangyiyun-pc

gjy hace 3 años
padre
commit
88253b773c

+ 12 - 4
src/views/tradeServicesManagement/approveWarehouseReceipt.vue

@@ -379,10 +379,10 @@ export default {
   data() {
     return {
       deptBudgetList: {},
-	costOne:true,
-	costTwo:true,
-	costThree:true,
-	costFour:true,
+      costOne:true,
+      costTwo:true,
+      costThree:true,
+      costFour:true,
       size: 10,
       compId: localStorage.getItem('ws-pf_compId'),
       compOptionList: [],
@@ -442,6 +442,7 @@ export default {
 				    this.deptBudgetList.otherFeeFlag = "显示中"
 			  }
 		  }
+      this.customEdit()
 	  },
 	  customEdit(){
 		  this.deptBudgetList.amountDue = Number(this.deptBudgetList.paymentAmount) + Number(this.deptBudgetList.applicationAmount ? this.deptBudgetList.applicationAmount : 0) + Number(this.deptBudgetList.supervisionFee ? this.deptBudgetList.supervisionFee : 0) + Number(this.deptBudgetList.insurancePremium ? this.deptBudgetList.insurancePremium : 0) + Number(this.deptBudgetList.otherFee? this.deptBudgetList.otherFee : 0)
@@ -475,6 +476,7 @@ export default {
           .toPromise()
           .then((response) => {
             this.$message.success('驳回成功')
+            this.handleClose()
             this.$router.push({
           path: 'warehouseReceiptRegulation'
         })
@@ -560,6 +562,7 @@ export default {
       if (!this.adoptText || this.adoptText.length > 50) {
         this.$message.error('审核意见不能为空且不能超出50字')
       } else {
+        this.deptBudgetList.amountToRepaid = this.deptBudgetList.amountDue
 		WarehouseReceiptUpdate(this.deptBudgetList)
         .toPromise()
         .then((response) => {
@@ -573,6 +576,7 @@ export default {
           .toPromise()
           .then((response) => {
             this.$message.success('审批成功')
+            this.handleClose()
             this.$router.push({
           path: 'warehouseReceiptRegulation'
         })
@@ -669,6 +673,10 @@ export default {
          this.deptBudgetList.supervisionFee = ""
           this.deptBudgetList.insurancePremium = ""
            this.deptBudgetList.otherFee = ""
+            this.costOne=true
+            this.costTwo=true
+            this.costThree=true
+            this.costFour=true
         })
         .catch((req) => {
           

+ 65 - 14
src/views/tradeServicesManagement/inOutRecord.vue

@@ -24,12 +24,12 @@
     </el-row>
     <el-row>
       <el-col :span="12">
-        <el-col :span="6">
-          <span>{{ deptBudgetList.warehouseName }}({{deptBudgetList.warehouseNo}}仓位)</span
-          ><span>现有储量:{{deptBudgetList.nowWeight}}吨</span>
-        </el-col>
-        <el-col :span="18">
-          <el-date-picker
+          <div class="span_css">
+              <span>{{ deptBudgetList.warehouseName }}({{deptBudgetList.warehouseNo}}仓位)</span><span>现有储量:{{deptBudgetList.nowWeight}}吨</span>
+          </div>
+      </el-col>
+      <el-col :span="8">
+         <el-date-picker
             v-model="value2"
             type="daterange"
             align="right"
@@ -38,13 +38,13 @@
             start-placeholder="开始日期"
             end-placeholder="结束日期"
             :picker-options="pickerOptions"
+            @change="find"
           >
           </el-date-picker>
-        </el-col>
       </el-col>
-      <el-col :span="12" class="bg-right">
+      <el-col :span="4" class="bg-right">
         <el-button
-          class="bg-bottom"
+          class="bg-bottom bottom_css"
           type="primary"
           size="small"
           @click="adjustmentchange()"
@@ -52,7 +52,7 @@
           调整</el-button
         >
         <el-button
-          class="bg-bottom"
+          class="bg-bottom bottom_css"
           type="primary"
           size="small"
           @click="print()"
@@ -97,7 +97,7 @@
       </el-table-column>
       <el-table-column prop="inOutDate" label="出入库日期"> </el-table-column>
     </el-table>
-    <el-dialog :visible.sync="isShowadjustment" title="收款截图">
+    <el-dialog :visible.sync="isShowadjustment" title="调整">
       <div>
         <el-input
           v-model="adjustment"
@@ -113,6 +113,7 @@
     <div class="print-type" v-show="isShowPrintType">
       <div class="print-type-content">
         <div class="print-type-title">打印凭证</div>
+        <div class="count">打印共{{selection.length}}条</div>
         <div class="print-type-checkbox">
           <el-checkbox-group v-model="ruleForm.type">
             <el-checkbox
@@ -415,7 +416,7 @@ export default {
   data() {
     return {
       recordList: [],
-      value2: '',
+      value2: [],
       customerList: {},
       isShowadjustment: false,
       adjustment: '',
@@ -444,6 +445,8 @@ export default {
        printList1: [],
       newList:[],
       count:0,
+      startDate:"",
+      endDate:"",
     }
   },
   activated() {
@@ -455,6 +458,15 @@ export default {
     this.getList()
   },
   methods: {
+    find(){
+        this.startDate = ""
+        this.endDate = ""
+      if(this.value2){
+          this.startDate = this.dateFormat('YYYY-mm-dd', this.value2[0])
+          this.endDate = this.dateFormat('YYYY-mm-dd', this.value2[1])
+      }
+      this.getList()
+    },
     getList() {
       getrecord({
         compId: sessionStorage.getItem('ws-pf_compId'),
@@ -462,6 +474,8 @@ export default {
         positionId: this.deptBudgetList.positionId,
         warehouseName: this.deptBudgetList.warehouseName,
         searchType: this.searchType,
+        startDate:this.startDate,
+        endDate:this.endDate,
         currentPage: this.currentPage,
         pageSize: this.pageSize,
       })
@@ -494,6 +508,28 @@ export default {
           this.deptBudgetTotal = res.total
         })
     },
+    dateFormat(fmt, date) {
+				let ret
+				const opt = {
+					'Y+': date.getFullYear().toString(), // 年
+					'm+': (date.getMonth() + 1).toString(), // 月
+					'd+': date.getDate().toString(), // 日
+					'H+': date.getHours().toString(), // 时
+					// "M+": date.getMinutes().toString(),         // 分
+					// "S+": date.getSeconds().toString()          // 秒
+					// 有其他格式化字符需求可以继续添加,必须转化成字符串
+				}
+				for (let k in opt) {
+					ret = new RegExp('(' + k + ')').exec(fmt)
+					if (ret) {
+						fmt = fmt.replace(
+							ret[1],
+							ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, '0')
+						)
+					}
+				}
+				return fmt
+			},
      handleSizeChange(val) {
       console.log(`每页 ${val} 条`)
       this.pageSize = val
@@ -567,7 +603,7 @@ export default {
         }
     },
     async printSettlementSheet(list){
-      for(let i = 0 ; i < list.length ; i++ ){
+      for(let i = 0 ; i < list.length ; i++){
            getpaymentexamine({ id: list[i].paymentId })
                .toPromise()
                .then((res) => {
@@ -650,6 +686,9 @@ export default {
 .bg-bottom {
   margin: 15px 0px;
 }
+.bottom_css{
+  margin: 0 0 15px 15px;
+}
 .bg-left.title::before {
   content: '';
   display: inline-block;
@@ -668,6 +707,10 @@ export default {
   z-index: 99;
   opacity: 0.3;
 }
+.count{
+  text-align: center;
+  margin-bottom: 10px;
+}
 
 .print-type {
   position: absolute;
@@ -685,7 +728,8 @@ export default {
 .print-type-title {
   text-align: center;
   font-size: 18px;
-  margin: 20px;
+  // margin: 20px;
+  margin: 20px 20px 10px;
 }
 .print-type-checkbox {
   padding-left: 20px;
@@ -845,4 +889,11 @@ table tr td {
  /deep/.el-table .cell{
     text-align: center;
   }
+  
+    .span_css{
+      width: 600px;
+      margin-left: 30px;
+      line-height: 30px;
+    }
+  
 </style>

+ 3 - 1
src/views/tradeServicesManagement/repayment.vue

@@ -139,12 +139,14 @@
         deptBudgetTotal:0,
         compId:localStorage.getItem('ws-pf_compId'),
         id:"",
+        contractNo:"",
         accessoryTFs:false,
         appendixIdss:"",
 			}
 		},
 		activated() {
      this.id = this.$route.query.id;
+     this.contractNo = this.$route.query.contractNo
 		this.getList()
 		},
 		methods: {
@@ -158,7 +160,7 @@
         .then((response) => {
          this.repayment = response
          this.stillMoney.amountToRepaid =  this.repayment.amountToRepaid
-          getRepaymentList({compId:this.repayment.compId,tradeWarehouseReceiptid:this.repayment.id,currentPage:this.currentPage,pageSize:this.pageSize}).toPromise()
+          getRepaymentList({compId:this.repayment.compId,tradeWarehouseReceiptid:this.repayment.id,currentPage:this.currentPage,pageSize:this.pageSize,contractNo:this.contractNo}).toPromise()
           .then((response) => {
             this.recordList = response.records
             //  this.stillMoney.amountToRepaid =  this.repayment.amountToRepaid

+ 2 - 0
src/views/tradeServicesManagement/reviewWarehouseReceipt.vue

@@ -375,6 +375,7 @@ export default {
           .toPromise()
           .then((response) => {
             this.$message.success('驳回成功')
+            this.handleClose()
             this.$router.push({
           path: 'warehouseReceiptRegulation'
         })
@@ -395,6 +396,7 @@ export default {
           .toPromise()
           .then((response) => {
             this.$message.success('审核成功')
+            this.handleClose()
             this.$router.push({
           path: 'warehouseReceiptRegulation'
         })

+ 14 - 18
src/views/tradeServicesManagement/warehouseReceiptAdd.vue

@@ -84,12 +84,12 @@
       <div>外审部门</div>
       <el-form-item prop="bank" label="银行">
         <el-select v-model="deptBudgetList.bank" placeholder="请选择银行" @change="bankChange">
-          <el-option :label="item.constName" :value="item.constName" v-for="(item,index) in bankList" :key="index"></el-option>
+          <el-option :label="item.constValue" :value="item.constValue" v-for="(item,index) in bankList" :key="index"></el-option>
         </el-select>
       </el-form-item>
       <el-form-item label="第三方" span="1" prop="three" class="forlist">
         <el-select v-model="deptBudgetList.three" placeholder="无" @change="threeChange">
-          <el-option :label="item1.constName" :value="item1.constName" v-for="(item1,index) in threeList" :key="index"></el-option>
+          <el-option :label="item1.constValue" :value="item1.constValue" v-for="(item1,index) in threeList" :key="index"></el-option>
           <!-- <el-option label="第三方2" value="three2"></el-option> -->
         </el-select>
       </el-form-item>
@@ -199,27 +199,24 @@
           .then(response => {
             this.warehouseList = response
             this.deptBudgetList.warehouseName = response[0].warehouseName
-            this.cwNumberList = response[0].positionInfos
-            this.deptBudgetList.warehouseNo = response[0].positionInfos.length != 0 ? response[0].positionInfos[0]
-              .binNumber : ''
-            this.deptBudgetList.baseId = response[0].positionInfos.length != 0 ? response[0].positionInfos[0]
-              .baseId : ''
             this.deptBudgetList.warehouseAddress = response[0].warehousePrivate + response[0].warehouseCity +
               response[0].warehouseArea + response[0].detailedAddress
+              if(response[0].goodsNameInfos){
             this.goodsList = response[0].goodsNameInfos
-            this.deptBudgetList.nowWeight = response[0].goodsNameInfos.length != 0 ? response[0].goodsNameInfos[0]
-              .storage : ''
+            this.deptBudgetList.nowWeight = response[0].goodsNameInfos.length != 0 ? response[0].goodsNameInfos[0].storage : ''
             this.deptBudgetList.useWeight = response[0].goodsNameInfos[0].useStorage
-            // this.deptBudgetList.useWeight = '10'
-            this.deptBudgetList.goodsName = response[0].goodsNameInfos.length != 0 ? response[0].goodsNameInfos[0]
-              .goodsName : ''
+            this.deptBudgetList.goodsName = response[0].goodsNameInfos.length != 0 ? response[0].goodsNameInfos[0].goodsName : ''
+            this.deptBudgetList.goodsNameKey = response[0].goodsNameInfos.length != 0 ? response[0].goodsNameInfos[0].goodsNameKey : ''
+              }
+              if(response[0].positionInfos){
+                 this.deptBudgetList.warehouseNoId = response[0].positionInfos.length != 0 ? response[0].positionInfos[0].id : ''
+                 this.cwNumberList = response[0].positionInfos
+                this.deptBudgetList.warehouseNo = response[0].positionInfos.length != 0 ? response[0].positionInfos[0].binNumber : ''
+                 this.deptBudgetList.baseId = response[0].positionInfos.length != 0 ? response[0].positionInfos[0].baseId : ''
+              }
             this.deptBudgetList.warehouseId = response[0].id
             if (!this.deptBudgetList.renown) this.deptBudgetList.renown = this.compOptionList[0].compName
             if (!this.deptBudgetList.renownId) this.deptBudgetList.renownId = this.compOptionList[0].compId
-            this.deptBudgetList.warehouseNoId = response[0].positionInfos.length != 0 ? response[0].positionInfos[0]
-              .id : ''
-            this.deptBudgetList.goodsNameKey = response[0].goodsNameInfos.length != 0 ? response[0].goodsNameInfos[0]
-              .goodsNameKey : ''
           })
       },
       //货名切换
@@ -286,7 +283,6 @@
         }
       },
       inoutput() {
-        console.log(this.warehouseList.warehouseNo)
         this.$router.push({
           name: 'inOutRecord',
           query: {
@@ -383,7 +379,7 @@
               })
             }).catch((req) => {
               // this.tableData = response.records
-              this.$message.success('提交失败')
+              this.$message.error('提交失败')
             })
           })
         }

+ 2 - 2
src/views/tradeServicesManagement/warehouseReceiptEdit.vue

@@ -166,12 +166,12 @@
       <div class="title1">外审部门</div>
       <el-form-item prop="bank" label="银行" span="1">
         <el-select v-model="deptBudgetList.bank" placeholder="请选择银行" @change="bankChange">
-         <el-option :label="item.constName" :value="item.constName" v-for="(item,index) in bankList" :key="index"></el-option>
+         <el-option :label="item.constValue" :value="item.constValue" v-for="(item,index) in bankList" :key="index"></el-option>
         </el-select>
       </el-form-item>
       <el-form-item label="第三方" span="1" prop="taskNo" class="forlist" >
           <el-select v-model="deptBudgetList.three" placeholder="无" @change="threeChange">
-        <el-option :label="item1.constName" :value="item1.constName" v-for="(item1,index) in threeList" :key="index"></el-option>
+        <el-option :label="item1.constValue" :value="item1.constValue" v-for="(item1,index) in threeList" :key="index"></el-option>
         </el-select>
       </el-form-item>
       <div>

+ 7 - 2
src/views/tradeServicesManagement/warehouseReceiptRegulation.vue

@@ -47,7 +47,12 @@
         <el-table-column prop="amountDue" label="应还金额(元)" width="150"></el-table-column>
         <el-table-column prop="amountRepaid" label="已还金额(元)" width="150"></el-table-column>
         <el-table-column prop="amountToRepaid" label="待还金额(元)" width="150"></el-table-column>
-        <el-table-column prop="status" label="状态"></el-table-column>
+        <el-table-column prop="approveStatus" label="状态">
+          <template slot-scope="scope">
+            <span v-if="scope.row.status == '待还款'">{{scope.row.status}}</span>
+            <span v-else>{{scope.row.approveStatus}}</span>
+          </template>
+        </el-table-column>
         <el-table-column prop="address" label="操作" width="300">
           <template slot-scope="scope">
             <el-button size="mini" v-hasPermission=" `tradeServicesManagement.tradeService.view`" @click="lookBtnClick(scope.row, 2)">
@@ -165,7 +170,7 @@
         let repayment = JSON.stringify(row)
         this.$router.push({
           name: 'repayment',
-          query:{id:row.id}
+          query:{id:row.id,contractNo:row.contractNo}
         })
       },
       rowEditBtnClick(row) {