取消
This commit is contained in:
parent
03c1545347
commit
3838aa3447
@ -884,9 +884,11 @@ export default {
|
|||||||
if(this.imgone !=this.form.goodsPictureUrl ){
|
if(this.imgone !=this.form.goodsPictureUrl ){
|
||||||
obj.pictureUrlList.push(this.form.goodsPictureUrl);
|
obj.pictureUrlList.push(this.form.goodsPictureUrl);
|
||||||
}
|
}
|
||||||
|
if (obj.pictureUrlList.length > 0) {
|
||||||
updatePicture(obj).then((res) => {
|
updatePicture(obj).then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.reset();
|
this.reset();
|
||||||
this.StationName = "请选择所属护理站";
|
this.StationName = "请选择所属护理站";
|
||||||
@ -1031,6 +1033,7 @@ export default {
|
|||||||
this.StationName = row.nurseStationName;
|
this.StationName = row.nurseStationName;
|
||||||
getGoodsInfo(id).then((response) => {
|
getGoodsInfo(id).then((response) => {
|
||||||
this.form = response.data[0];
|
this.form = response.data[0];
|
||||||
|
this.imgone = this.form.goodsPictureUrl;
|
||||||
if (response.data[0].goodAttributeDetailsLists) {
|
if (response.data[0].goodAttributeDetailsLists) {
|
||||||
this.goodDetailsLists = response.data[0].goodAttributeDetailsLists;
|
this.goodDetailsLists = response.data[0].goodAttributeDetailsLists;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -296,9 +296,11 @@ export default {
|
|||||||
if(this.imgone !=this.form.goodsCategoryPicture ){
|
if(this.imgone !=this.form.goodsCategoryPicture ){
|
||||||
obj.pictureUrlList.push(this.form.goodsCategoryPicture);
|
obj.pictureUrlList.push(this.form.goodsCategoryPicture);
|
||||||
}
|
}
|
||||||
updatePicture (obj).then((res) => {
|
if (obj.pictureUrlList.length > 0) {
|
||||||
|
updatePicture(obj).then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.reset();
|
this.reset();
|
||||||
},
|
},
|
||||||
@ -346,6 +348,7 @@ export default {
|
|||||||
const id = row.id || this.ids;
|
const id = row.id || this.ids;
|
||||||
getGoodsCategory(id).then((response) => {
|
getGoodsCategory(id).then((response) => {
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
|
this.imgone = this.form.goodsCategoryPicture;
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "修改商品分类信息";
|
this.title = "修改商品分类信息";
|
||||||
console.log(this.form);
|
console.log(this.form);
|
||||||
|
|||||||
@ -34,7 +34,10 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="商品用途" prop="goodsPurpose">
|
<el-form-item label="商品用途" prop="goodsPurpose">
|
||||||
<el-select v-model="queryParams.goodsPurpose" placeholder="请选择商品用途">
|
<el-select
|
||||||
|
v-model="queryParams.goodsPurpose"
|
||||||
|
placeholder="请选择商品用途"
|
||||||
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in goods"
|
v-for="item in goods"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
@ -177,7 +180,6 @@
|
|||||||
v-hasPermi="['system:operateGoodInfo:remove']"
|
v-hasPermi="['system:operateGoodInfo:remove']"
|
||||||
>删除</el-button
|
>删除</el-button
|
||||||
>
|
>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -237,7 +239,6 @@
|
|||||||
"
|
"
|
||||||
>{{ StationName }}</el-button
|
>{{ StationName }}</el-button
|
||||||
>
|
>
|
||||||
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="商品分类名称" prop="goodsCategoryId">
|
<el-form-item label="商品分类名称" prop="goodsCategoryId">
|
||||||
<el-select
|
<el-select
|
||||||
@ -488,12 +489,14 @@ import editor from "@/components/Editor";
|
|||||||
import { getListByUser } from "@/api/system/userlist.js";
|
import { getListByUser } from "@/api/system/userlist.js";
|
||||||
import stationAcatar from "../stationAvatar/index.vue";
|
import stationAcatar from "../stationAvatar/index.vue";
|
||||||
import baseurl from "@/api/baseurl.js";
|
import baseurl from "@/api/baseurl.js";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { stationAcatar, editor },
|
components: { stationAcatar, editor },
|
||||||
name: "OperateGoodsInfo",
|
name: "OperateGoodsInfo",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
imgone:"",
|
imgone: "",
|
||||||
|
|
||||||
imageUrl: "", //商品图片
|
imageUrl: "", //商品图片
|
||||||
value: "",
|
value: "",
|
||||||
datas: null,
|
datas: null,
|
||||||
@ -694,12 +697,14 @@ export default {
|
|||||||
cancel() {
|
cancel() {
|
||||||
console.log(this.form);
|
console.log(this.form);
|
||||||
var obj = { pictureUrlList: [] };
|
var obj = { pictureUrlList: [] };
|
||||||
if(this.imgone !=this.form.goodsPictureUrl ){
|
if (this.imgone!= this.form.goodsPictureUrl) {
|
||||||
obj.pictureUrlList.push(this.form.goodsPictureUrl);
|
obj.pictureUrlList.push(this.form.goodsPictureUrl);
|
||||||
}
|
}
|
||||||
|
if (obj.pictureUrlList.length > 0) {
|
||||||
updatePicture(obj).then((res) => {
|
updatePicture(obj).then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.reset();
|
this.reset();
|
||||||
this.StationName = "请选择所属护理站";
|
this.StationName = "请选择所属护理站";
|
||||||
@ -718,7 +723,7 @@ export default {
|
|||||||
];
|
];
|
||||||
},
|
},
|
||||||
clickinnerVisible() {
|
clickinnerVisible() {
|
||||||
this.innerVisible = true
|
this.innerVisible = true;
|
||||||
},
|
},
|
||||||
nurseclick(row) {
|
nurseclick(row) {
|
||||||
console.log(this.form);
|
console.log(this.form);
|
||||||
@ -727,9 +732,9 @@ export default {
|
|||||||
this.StationName = row.nurseStationName;
|
this.StationName = row.nurseStationName;
|
||||||
this.innerVisible = false;
|
this.innerVisible = false;
|
||||||
},
|
},
|
||||||
handleQuery2(){
|
handleQuery2() {
|
||||||
this.queryParams.pageNum = 1;
|
this.queryParams.pageNum = 1;
|
||||||
this.info()
|
this.info();
|
||||||
},
|
},
|
||||||
// getList2(){
|
// getList2(){
|
||||||
// getListByUser(this.nurseStationqueryParams).then((res) => {
|
// getListByUser(this.nurseStationqueryParams).then((res) => {
|
||||||
@ -739,18 +744,16 @@ export default {
|
|||||||
// },
|
// },
|
||||||
resetQuery2() {
|
resetQuery2() {
|
||||||
this.resetForm("queryForm");
|
this.resetForm("queryForm");
|
||||||
this.getListByUserquery={
|
(this.getListByUserquery = {
|
||||||
pageNum:1,
|
pageNum: 1,
|
||||||
pageSize:10
|
pageSize: 10,
|
||||||
},
|
}),
|
||||||
this.handleQuery2();
|
this.handleQuery2();
|
||||||
|
|
||||||
},
|
},
|
||||||
addcancel() {
|
addcancel() {
|
||||||
this.innerVisible = false;
|
this.innerVisible = false;
|
||||||
// this.innerVisiblexg = false;
|
// this.innerVisiblexg = false;
|
||||||
this.resetQuery2();
|
this.resetQuery2();
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 表单重置
|
// 表单重置
|
||||||
@ -805,7 +808,7 @@ export default {
|
|||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.reset();
|
this.reset();
|
||||||
this.nurseStationId=""
|
this.nurseStationId = "";
|
||||||
this.title = "商品基本信息";
|
this.title = "商品基本信息";
|
||||||
// this.nurseName = "请选择护理员";
|
// this.nurseName = "请选择护理员";
|
||||||
this.StationName = "请选择所属护理站";
|
this.StationName = "请选择所属护理站";
|
||||||
@ -827,6 +830,7 @@ export default {
|
|||||||
this.StationName = row.nurseStationName;
|
this.StationName = row.nurseStationName;
|
||||||
getGoodsInfo(id).then((response) => {
|
getGoodsInfo(id).then((response) => {
|
||||||
this.form = response.data[0];
|
this.form = response.data[0];
|
||||||
|
this.imgone = this.form.goodsPictureUrl;
|
||||||
if (response.data[0].goodAttributeDetailsLists) {
|
if (response.data[0].goodAttributeDetailsLists) {
|
||||||
this.goodDetailsLists = response.data[0].goodAttributeDetailsLists;
|
this.goodDetailsLists = response.data[0].goodAttributeDetailsLists;
|
||||||
}
|
}
|
||||||
@ -880,7 +884,7 @@ export default {
|
|||||||
// console.log('this.OrderDetailsList :>> ', this.OrderDetailsList);
|
// console.log('this.OrderDetailsList :>> ', this.OrderDetailsList);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch(() => { });
|
.catch(() => {});
|
||||||
},
|
},
|
||||||
// handleDelete(row) {
|
// handleDelete(row) {
|
||||||
// const ids = row.id || this.ids;
|
// const ids = row.id || this.ids;
|
||||||
|
|||||||
@ -853,15 +853,17 @@ export default {
|
|||||||
cancel() {
|
cancel() {
|
||||||
console.log(this.form);
|
console.log(this.form);
|
||||||
var obj = { pictureUrlList: [] };
|
var obj = { pictureUrlList: [] };
|
||||||
if(this.imgone !=this.form.stationIntroducePcitureUrl ){
|
if(this.imgone!=this.form.stationIntroducePcitureUrl ){
|
||||||
obj.pictureUrlList.push(this.form.stationIntroducePcitureUrl);
|
obj.pictureUrlList.push(this.form.stationIntroducePcitureUrl);
|
||||||
}
|
}
|
||||||
if(this.imgtwo !=this.form.stationPictureUrl ){
|
if(this.imgtwo!=this.form.stationPictureUrl ){
|
||||||
obj.pictureUrlList.push(this.form.stationPictureUrl);
|
obj.pictureUrlList.push(this.form.stationPictureUrl);
|
||||||
}
|
}
|
||||||
|
if (obj.pictureUrlList.length > 0) {
|
||||||
updatePicture(obj).then((res) => {
|
updatePicture(obj).then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.reset();
|
this.reset();
|
||||||
this.value3 = "";
|
this.value3 = "";
|
||||||
@ -972,6 +974,8 @@ export default {
|
|||||||
getStation(id).then((response) => {
|
getStation(id).then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
|
this.imgone = this.form.stationIntroducePcitureUrl;
|
||||||
|
this.imgtwo = this.form.stationPictureUrl;
|
||||||
this.looknurseStationLabel = response.data.nurseStationLabel;
|
this.looknurseStationLabel = response.data.nurseStationLabel;
|
||||||
console.log(this.list);
|
console.log(this.list);
|
||||||
this.open = true;
|
this.open = true;
|
||||||
|
|||||||
@ -728,7 +728,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
imageUrl: "",
|
imageUrl: "",
|
||||||
img1:"",
|
imgone:"",
|
||||||
// 用户导入参数
|
// 用户导入参数
|
||||||
upload: {
|
upload: {
|
||||||
// 是否显示弹出层(用户导入)
|
// 是否显示弹出层(用户导入)
|
||||||
@ -776,11 +776,7 @@ export default {
|
|||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
},
|
},
|
||||||
pictureList: {
|
|
||||||
pictureUrlList: [
|
|
||||||
|
|
||||||
],
|
|
||||||
},
|
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
@ -1010,12 +1006,14 @@ export default {
|
|||||||
cancel() {
|
cancel() {
|
||||||
console.log(this.form.nurseStationItem);
|
console.log(this.form.nurseStationItem);
|
||||||
var obj = { pictureUrlList: [] };
|
var obj = { pictureUrlList: [] };
|
||||||
if (this.img1 != this.form.nurseStationItem.itemPictureUrl) {
|
if (this.imgone!= this.form.nurseStationItem.itemPictureUrl) {
|
||||||
obj.pictureUrlList.push(this.form.nurseStationItem.itemPictureUrl);
|
obj.pictureUrlList.push(this.form.nurseStationItem.itemPictureUrl);
|
||||||
}
|
}
|
||||||
|
if (obj.pictureUrlList.length > 0) {
|
||||||
updatePicture(obj).then((res) => {
|
updatePicture(obj).then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.reset();
|
this.reset();
|
||||||
@ -1126,11 +1124,12 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
this.reset();
|
this.reset();s
|
||||||
const id = row.id || this.ids;
|
const id = row.id || this.ids;
|
||||||
getNurseItem(id).then((response) => {
|
getNurseItem(id).then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
|
this.imgone = this.form.nurseStationItem.itemPictureUrl;
|
||||||
if (this.form.nurseStationItemPrices == []) {
|
if (this.form.nurseStationItemPrices == []) {
|
||||||
var obj = {
|
var obj = {
|
||||||
serveDurationUnit: "",
|
serveDurationUnit: "",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user