zhangyuewww 3 éve
szülő
commit
12377b2737

+ 6 - 0
src/views/contractManagement/purchaseContractAdd.vue

@@ -240,6 +240,7 @@
           prop="unitContractPrice"
         >
           <ws-input
+            @input="pricechange"
             v-model="deptBudgetList.unitContractPrice"
             placeholder="请输入合同单价"
             maxlength="100"
@@ -609,6 +610,7 @@ export default {
       deptBudgetList: {
         deliverType: '1',
         finalTradingVolume: 0,
+        totalContractPrice:0,
         contractGoodsInfo: {
           goodsName: '',
         },
@@ -692,6 +694,9 @@ export default {
     weightchange(e) {
       this.deptBudgetList.finalTradingVolume = e
     },
+    pricechange(e) {
+      this.deptBudgetList.totalContractPrice = e*this.deptBudgetList.weight
+    },
     returnsales() {
       this.$router.push({ path: 'buyContract' })
     },
@@ -1334,6 +1339,7 @@ export default {
               this.deptBudgetList = {
                 deliverType: '1',
                 finalTradingVolume: 0,
+                totalContractPrice:0,
                 contractGoodsInfo: {
                   goodsName: '',
                 },

+ 6 - 0
src/views/contractManagement/salesContractAdd.vue

@@ -258,6 +258,7 @@
             prop="unitContractPrice"
           >
             <ws-input
+              @input="pricechange"
               v-model="deptBudgetList.unitContractPrice"
               placeholder="请输入合同单价"
               maxlength="100"
@@ -621,6 +622,7 @@ export default {
       deptBudgetList: {
         deliverType: '1',
         finalTradingVolume: 0,
+        totalContractPrice:0,
         contractGoodsInfo: {
           goodsName: '',
         },
@@ -1319,6 +1321,7 @@ export default {
               this.deptBudgetList = {
                 deliverType: '1',
                 finalTradingVolume: 0,
+                totalContractPrice:0,
                 contractGoodsInfo: {
                   goodsName: '',
                 },
@@ -1425,6 +1428,9 @@ export default {
     weightchange(e) {
       this.deptBudgetList.finalTradingVolume = e
     },
+    pricechange(e) {
+      this.deptBudgetList.totalContractPrice = e*this.deptBudgetList.weight
+    },
     // 编辑
     editClick(item, index) {
       const map = JSON.parse(JSON.stringify(item))