diff --git a/src/api/system/area.js b/src/api/system/area.js
new file mode 100644
index 0000000..fa736d6
--- /dev/null
+++ b/src/api/system/area.js
@@ -0,0 +1,79 @@
+import request from '@/utils/request'
+
+
+// 查询区域列表(不分页) 点击push
+export function selectAreaList(areaName, parentCode) {
+ return request({
+ url: `/system/area/selectAreaList?areaName=${areaName}&parentCode=${parentCode}`,
+ method: 'get',
+ })
+}
+
+//搜索
+// 查询区域列表(不分页)
+export function selectAreaListquery(areaName) {
+ return request({
+ url: `/system/area/selectAreaList?areaName=${areaName}`,
+ method: 'get',
+ })
+}
+
+//开局
+// 查询区域列表(不分页)
+export function selectAreaListinfo(areaName) {
+ return request({
+ url: `/system/area/selectAreaList?areaLevel=${areaName}`,
+ method: 'get',
+ })
+}
+
+// 查询区域列表
+export function listArea(query) {
+ return request({
+ url: '/system/area/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询区域详细
+export function getArea(id) {
+ return request({
+ url: '/system/area/' + id,
+ method: 'get'
+ })
+}
+
+// 新增区域
+export function addArea(data) {
+ return request({
+ url: '/system/area/add',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改区域
+export function updateArea(data) {
+ return request({
+ url: '/system/area/edit',
+ method: 'POST',
+ data: data
+ })
+}
+
+// 删除区域
+export function delArea(id) {
+ return request({
+ url: '/system/area/' + id,
+ method: 'POST'
+ })
+}
+
+//边远地区
+export function updateRemoteSigns(id, remoteSigns) {
+ return request({
+ url: `/system/area/updateRemoteSigns?id=${id}&remoteSigns=${remoteSigns}`,
+ method: 'POST'
+ })
+}
\ No newline at end of file
diff --git a/src/views/system/OperateGoodsInfo/index.vue b/src/views/system/OperateGoodsInfo/index.vue
index 999364b..c8b3c8a 100644
--- a/src/views/system/OperateGoodsInfo/index.vue
+++ b/src/views/system/OperateGoodsInfo/index.vue
@@ -122,7 +122,6 @@
align="center"
prop="goodsCategoryName"
/>
-
{{ scope.row.goodsPurpose == "BUSINESS" ? "买卖" : "" }}
@@ -151,7 +150,6 @@
-
{{ StationName }}
+
+
+
-
+
@@ -356,7 +362,7 @@
style="margin-top: 20px"
>
0) {
updatePicture(this.imgsurl).then((res) => {});
- }
- this.imgsurl={pictureUrlList:[]};
+ }
+ this.imgsurl = { pictureUrlList: [] };
this.open = false;
this.reset();
this.StationName = "请选择所属护理站";
@@ -242,7 +244,7 @@ export default {
attributePitureUrl: "",
goodsPrice: "",
goodsStock: "",
- sort: "",
+ attributeDetailsSort: null,
}, ],
}, ];
},
@@ -308,7 +310,7 @@ export default {
attributePitureUrl: "",
goodsPrice: "",
goodsStock: "",
- sort: "",
+ attributeDetailsSort: null,
ids: 9999999,
}, ];
this.resetForm("form");
@@ -350,7 +352,7 @@ export default {
attributePitureUrl: "",
goodsPrice: "",
goodsStock: "",
- sort: "",
+ sort: null,
ids: 9999999,
}, ];
this.open = true;
@@ -387,13 +389,17 @@ export default {
this.form.id = this.form.goodsInfoId;
this.form.goodDetailsLists.forEach(e => {
e.goodsPrice = Number(e.goodsPrice)
+ if (e.attributeDetailsSort == '') {
+ e.attributeDetailsSort = null
+ }
+ // e.sort = e.attributeDetailsSort
})
updateGoodsInfo(this.form).then((response) => {
var obj = { pictureUrlList: [] };
if (this.imgone != this.form.goodsPictureUrl) {
obj.pictureUrlList.push(this.imgone);
}
- this.imgsurl={pictureUrlList:[]};
+ this.imgsurl = { pictureUrlList: [] };
if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => {
console.log(res);
@@ -406,9 +412,9 @@ export default {
});
} else {
this.form.goodDetailsLists.forEach(e => {
- e.goodsPrice = Number(e.goodsPrice)
- })
- // this.nurseStationId=this.form.nurseStationId
+ e.goodsPrice = Number(e.goodsPrice)
+ })
+ // this.nurseStationId=this.form.nurseStationId
addGoodsInfo(this.form).then((response) => {
console.log(this.form);
this.$modal.msgSuccess("新增成功");
@@ -482,4 +488,4 @@ export default {
});
},
},
-};
+};
\ No newline at end of file
diff --git a/src/views/system/area/index.vue b/src/views/system/area/index.vue
new file mode 100644
index 0000000..a088609
--- /dev/null
+++ b/src/views/system/area/index.vue
@@ -0,0 +1,605 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+ 修改
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 否
+ 是
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/goodsOrder/index.vue b/src/views/system/goodsOrder/index.vue
index 10d6c0b..d1f9a3a 100644
--- a/src/views/system/goodsOrder/index.vue
+++ b/src/views/system/goodsOrder/index.vue
@@ -36,6 +36,14 @@
+
+
+
+
{{ scope.row.orderChannel == "MOBILE_APP" ? "手机APP" : "" }}
@@ -128,7 +142,7 @@
{{ scope.row.orderChannel == "ALI_PAY_APPLET" ? "支付宝小程序" : "" }}
-
+
+
0) {
updatePicture(this.imgsurl).then((res) => {});
- }
- this.imgsurl={pictureUrlList:[]};
+ }
+ this.imgsurl = { pictureUrlList: [] };
this.open = false;
this.reset();
+ this.arealist = []
+ this.citylist = []
+ this.streetlist = []
},
// 表单重置
reset() {
@@ -373,7 +376,7 @@ export default {
if (this.imgtwo != this.form.stationPictureUrl) {
obj.pictureUrlList.push(this.imgtwo);
}
- this.imgsurl={pictureUrlList:[]};
+ this.imgsurl = { pictureUrlList: [] };
if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => {});
}
@@ -458,4 +461,4 @@ export default {
this.upload.isUploading = true;
},
},
-};
+};
\ No newline at end of file
diff --git a/src/views/system/stationAvatar/index.vue b/src/views/system/stationAvatar/index.vue
index 19235f7..b92f238 100644
--- a/src/views/system/stationAvatar/index.vue
+++ b/src/views/system/stationAvatar/index.vue
@@ -72,7 +72,7 @@
-
+
+
提 交
@@ -217,19 +217,21 @@ export default {
// 上传图片
uploadImg() {
let formData = new FormData();
- formData.append("file", this.previews.data);
- formData.append("type", this.types);
- updateNurseStationHeads(formData).then((response) => {
- this.options.img = baseurl + response.imgUrl;
- this.$emit("imgUrl", response.imgUrl);
- console.log(this.items);
- console.log(this.types);
- if (this.types == "attributePitureUrl") {
- this.items.attributePitureUrl = response.imgUrl;
- this.$emit("item", JSON.stringify(this.items));
- }
+ if (this.previews.data) {
+ formData.append("file", this.previews.data);
+ formData.append("type", this.types);
+ updateNurseStationHeads(formData).then((response) => {
+ this.options.img = baseurl + response.imgUrl;
+ this.$emit("imgUrl", response.imgUrl);
+ if (this.types == "attributePitureUrl") {
+ this.items.attributePitureUrl = response.imgUrl;
+ this.$emit("item", JSON.stringify(this.items));
+ }
+ this.openimg = false;
+ });
+ } else {
this.openimg = false;
- });
+ }
},
// 实时预览
realTime(data) {