|
@@ -91,7 +91,7 @@ export default {
|
|
|
methods: {
|
|
methods: {
|
|
|
getList() {
|
|
getList() {
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
- getRequest("/store/healthStoreOrder/list", this.queryParams).then(response => {
|
|
|
|
|
|
|
+ getRequest("/store/store/storeOrder/list", this.queryParams).then(response => {
|
|
|
this.list = response.rows || [];
|
|
this.list = response.rows || [];
|
|
|
this.total = response.total || 0;
|
|
this.total = response.total || 0;
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
@@ -129,7 +129,7 @@ export default {
|
|
|
handleUpdate(row) {
|
|
handleUpdate(row) {
|
|
|
this.reset();
|
|
this.reset();
|
|
|
const id = row.id || this.ids;
|
|
const id = row.id || this.ids;
|
|
|
- getRequest("/store/healthStoreOrder/" + id).then(response => {
|
|
|
|
|
|
|
+ getRequest("/store/store/storeOrder/" + id).then(response => {
|
|
|
this.form = response.data;
|
|
this.form = response.data;
|
|
|
this.open = true;
|
|
this.open = true;
|
|
|
this.title = "修改";
|
|
this.title = "修改";
|
|
@@ -139,13 +139,13 @@ export default {
|
|
|
this.$refs["form"].validate(valid => {
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
if (this.form.id != null) {
|
|
if (this.form.id != null) {
|
|
|
- putRequest("/store/healthStoreOrder", this.form).then(response => {
|
|
|
|
|
|
|
+ putRequest("/store/store/storeOrder", this.form).then(response => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
this.open = false;
|
|
|
this.getList();
|
|
this.getList();
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
- postRequest("/store/healthStoreOrder", this.form).then(response => {
|
|
|
|
|
|
|
+ postRequest("/store/store/storeOrder", this.form).then(response => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.open = false;
|
|
this.open = false;
|
|
|
this.getList();
|
|
this.getList();
|
|
@@ -161,7 +161,7 @@ export default {
|
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
- return delRequest("/store/healthStoreOrder/" + ids);
|
|
|
|
|
|
|
+ return delRequest("/store/store/storeOrder/" + ids);
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
this.getList();
|
|
this.getList();
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
this.$modal.msgSuccess("删除成功");
|