Browse Source

前端gjy

gjy 3 years ago
parent
commit
8f822029c2

+ 15 - 5
src/views/purchasingManagement/purchaseOrderList.vue

@@ -515,12 +515,13 @@
             placeholder
             class="deal"
             placeholder="请输入成交价"
+            @change='transaction'
           >
             <ws-option
-              v-for="item in transactionRecordList"
+              v-for="item in transactionRecordList1"
               :key="item.constKey"
-              :label="item.transactionPrice"
-              :value="item.transactionPrice"
+              :label="item.key"
+              :value="item.key"
             />
           </ws-select>
         </el-form-item>
@@ -924,7 +925,6 @@ export default {
       enter: {
         closePositionList: [],
       },
-      transactionRecordList: [],
       taskTypeList: [
         { value: '待审核', type: 1 },
         { value: '执行中', type: 2 },
@@ -955,6 +955,7 @@ export default {
       basis: 0,
       replenishlist: {},
       closePositionList1: {},
+      transactionRecordList1: [],
       transactionRecordList: {},
       closePositionList: [],
       historyList: [],
@@ -972,6 +973,15 @@ export default {
     this.showType = this.isShow
   },
   methods: {
+    transaction(e){
+      for (let i = 0; i < this.transactionRecordList1.length; i++) {
+        if(this.transactionRecordList1[i].key==e){
+          if(this.closePositionList1.openPosition>this.transactionRecordList1[i].value){
+            this.closePositionList1.openPosition=this.transactionRecordList1[i].value
+          }
+        }
+      }
+    },
     cancel() {
       this.dialogFormVisible8 = false
       this.customerlist.cardAddressUrl1 = ''
@@ -1220,7 +1230,7 @@ export default {
       })
         .toPromise()
         .then((response) => {
-          this.transactionRecordList = response
+          this.transactionRecordList1 = response
         })
     },
     unfreeze(item) {

+ 3 - 0
src/views/statisticalReport/purchaseClosingCashierList.vue

@@ -300,6 +300,7 @@ export default {
       modification:[],
       contractNo: '',
       compId: sessionStorage.getItem('ws-pf_compId'),
+      roleId: sessionStorage.getItem('ws-pf_roleId'),
       deptCircularPage: {},
       warehouseList: [],
       deptBudgetList: {},
@@ -469,6 +470,7 @@ export default {
         .toPromise()
         .then(response => {
           this.warehouseList = response
+          this.deptBudgetTotal=response.total
         })
       getpurchasecontractno({
         compId: sessionStorage.getItem('ws-pf_compId'),
@@ -479,6 +481,7 @@ export default {
         .toPromise()
         .then(response => {
            this.contractNoList = response
+           
         })
     },
     handleRemove(file) {

+ 1 - 0
src/views/statisticalReport/purchaseReceiptStatisticsList.vue

@@ -1060,6 +1060,7 @@ export default {
           for (var i = 0; i < response.records.length; i++) {
             response.records[i].identification = 'false'
           }
+          this.deptBudgetTotal=response.total
           this.warehouseList = response
         })
       getpurchaseincontractno({

+ 1 - 0
src/views/statisticalReport/salesClosingCashierList.vue

@@ -628,6 +628,7 @@ export default {
       })
         .toPromise()
         .then(response => {
+          this.deptBudgetTotal=response.total
           this.saleList = response
         })
       getsaleclosingcontractno({

+ 1 - 0
src/views/statisticalReport/salesDeliveryReportList.vue

@@ -744,6 +744,7 @@ export default {
       })
         .toPromise()
         .then(response => {
+          this.deptBudgetTotal=response.total
           this.warehouseList = response
         })
       getsaleoutcontractno({