{"remainingRequest":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/views/order/components/modifyOrderPrice.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/views/order/components/modifyOrderPrice.vue","mtime":1701742078556},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport { modifyOrderAmountApi } from '@/api/order';\n\nexport default {\n  props: ['showModifyOrderPriceDialog', 'orderInfo'],\n\n  data() {\n    return {\n      newPrice: '',\n    };\n  },\n\n  methods: {\n    onCancel() {\n      this.$emit('closeModifyOrderPriceDialog');\n    },\n\n    confirmModifyPrice() {\n      let params = {\n        newPrice: parseFloat(this.newPrice).toFixed(2),\n        orderNo: this.orderInfo.orderNo,\n      };\n\n      modifyOrderAmountApi(params).then((res) => {\n        this.$message({\n          message: '成功修改价格',\n          type: 'success',\n          showClose: true\n        })\n\n        this.onCancel();\n        this.$emit('updateList');\n      });\n    },\n  },\n};\n",null]}