浏览代码

字段更改

lichao 3 年之前
父节点
当前提交
3fbe0cee97
共有 1 个文件被更改,包括 10 次插入10 次删除
  1. 10 10
      src/views/businessManagement/salesOrder/detailsPageEdit.vue

+ 10 - 10
src/views/businessManagement/salesOrder/detailsPageEdit.vue

@@ -286,8 +286,8 @@
                 <el-option
                   v-for="(item, index) in salesPriceOtion"
                   :key="index"
-                  :label="item.salesPrice"
-                  :value="item.salesPrice"></el-option>
+                  :label="item.salePrice"
+                  :value="item.salePrice"></el-option>
               </el-select>
               <span v-else>{{ row.price }}</span>
             </template>
@@ -1877,7 +1877,7 @@ export default {
       res.data.forEach(item => {
         getMarketPrice({code: item.code, isFreight: this.form.isFreight, isLabel: this.form.isLabel}).then(response => {
           if (response.data.data.length > 0) {
-            this.$set(item, 'price', response.data.data[0].salesPrice)
+            this.$set(item, 'price', response.data.data[0].salePrice)
           } else {
             this.$set(item, 'price', '0')
           }
@@ -2216,7 +2216,7 @@ export default {
       for (let item in this.goodsListSave) {
         getMarketPrice({code: this.goodsListSave[item].code, isFreight: this.form.isFreight, isLabel: this.form.isLabel}).then(res => {
           if (res.data.data.length > 0) {
-            this.$set(this.goodsListSave[item], 'price', res.data.data[0].salesPrice)
+            this.$set(this.goodsListSave[item], 'price', res.data.data[0].salePrice)
           } else {
             this.$set(this.goodsListSave[item], 'price', '0')
           }
@@ -2280,7 +2280,7 @@ export default {
       for (let item=0;item<this.tableData.length;item++) {
         getMarketPrice({code: this.tableData[item].code, isFreight: this.form.isFreight, isLabel: this.form.isLabel}).then(res => {
           if (res.data.data.length > 0) {
-            this.$set(this.tableData[item], 'price', res.data.data[0].salesPrice)
+            this.$set(this.tableData[item], 'price', res.data.data[0].salePrice)
           } else {
             this.$set(this.tableData[item], 'price', '0')
           }
@@ -2408,7 +2408,7 @@ export default {
     selectionChangePolicyTwo(list) {
       this.policyDataTwo = list
       // this.policyDataTwo.forEach(item => {
-      //   this.$set(item, 'price', item.salesPrice)
+      //   this.$set(item, 'price', item.salePrice)
       // })
       if (this.policyDataTwo.length > 0) {
         this.optionPolicy.selection = false
@@ -2430,7 +2430,7 @@ export default {
           if (!list[item].specialOffer) {
             getMarketPrice({code: list[item].code, isFreight: this.form.isFreight, isLabel: this.form.isLabel}).then(response => {
               if (response.data.data.length > 0) {
-                this.$set(list[item], 'price', response.data.data[0].salesPrice)
+                this.$set(list[item], 'price', response.data.data[0].salePrice)
               } else {
                 this.$set(list[item], 'price', '0')
               }
@@ -2439,16 +2439,16 @@ export default {
             this.$set(list[item], 'price', list[item].specialOffer)
           }
         } else {
-          if (!list[item].salesPrice) {
+          if (!list[item].salePrice) {
             getMarketPrice({code: list[item].code, isFreight: this.form.isFreight, isLabel: this.form.isLabel}).then(response => {
               if (response.data.data.length > 0) {
-                this.$set(list[item], 'price', response.data.data[0].salesPrice)
+                this.$set(list[item], 'price', response.data.data[0].salePrice)
               } else {
                 this.$set(list[item], 'price', '0')
               }
             })
           } else {
-            this.$set(list[item], 'price', list[item].salesPrice)
+            this.$set(list[item], 'price', list[item].salePrice)
           }
           this.$set(buyFree[item], 'price', '0')
           this.$set(buyFree[item], 'orderQuantity',  list[item].salesVolume)