This commit is contained in:
闫晓茹 2023-03-03 17:23:31 +08:00
parent 7e91eac02d
commit fe0105be15
3 changed files with 25 additions and 17 deletions

View File

@ -6,7 +6,7 @@ ENV = 'development'
# 泉医到家运营管理平台/开发环境 # 泉医到家运营管理平台/开发环境
# VUE_APP_BASE_API = '/dev-api' # VUE_APP_BASE_API = '/dev-api'
VUE_APP_BASE_API = 'http://192.168.16.30:8088' VUE_APP_BASE_API = 'http://192.168.16.49:8080'
# 路由懒加载 # 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true

View File

@ -351,6 +351,7 @@
v-model.number="scope.row.integralExchangeFlag" v-model.number="scope.row.integralExchangeFlag"
placeholder="请选择积分兑换标识" placeholder="请选择积分兑换标识"
clearable clearable
@change="changeExchangeFlag(scope.row)"
> >
<el-option <el-option
v-for="item in integraloption" v-for="item in integraloption"

View File

@ -85,7 +85,7 @@ export default {
label: "是", label: "是",
}, },
], ],
value:"", value: "",
// 查询参数 // 查询参数
shangjia: { shangjia: {
id: null, id: null,
@ -168,6 +168,12 @@ export default {
// this.goodsCategoryinfo(); // this.goodsCategoryinfo();
}, },
methods: { methods: {
changeExchangeFlag(item) {
if (item.integralExchangeFlag == 0) {
item.integralExchangeCount = ''
item.integralExchangeSill = ''
}
},
imgs(item) { imgs(item) {
this.imgsurl.pictureUrlList.push(item); this.imgsurl.pictureUrlList.push(item);
}, },
@ -218,9 +224,9 @@ export default {
attributePitureUrl: "", attributePitureUrl: "",
goodsPrice: "", goodsPrice: "",
goodsStock: "", goodsStock: "",
integralExchangeCount:null, integralExchangeCount: null,
integralExchangeFlag:null, integralExchangeFlag: null,
integralExchangeSill:null, integralExchangeSill: null,
attributeDetailsSort: null, attributeDetailsSort: null,
idd: this.idd, idd: this.idd,
}; };
@ -265,9 +271,9 @@ export default {
this.StationName = "请选择所属护理站"; this.StationName = "请选择所属护理站";
this.goodDetailsLists = [{ this.goodDetailsLists = [{
attributeName: "", attributeName: "",
integralExchangeCount:null, integralExchangeCount: null,
integralExchangeFlag:null, integralExchangeFlag: null,
integralExchangeSill:null, integralExchangeSill: null,
goodAttributeDetailsLists: [{ goodAttributeDetailsLists: [{
attributePitureUrl: "", attributePitureUrl: "",
goodsPrice: "", goodsPrice: "",
@ -340,9 +346,9 @@ export default {
goodsPrice: "", goodsPrice: "",
goodsStock: "", goodsStock: "",
attributeDetailsSort: null, attributeDetailsSort: null,
integralExchangeCount:null, integralExchangeCount: null,
integralExchangeFlag:null, integralExchangeFlag: null,
integralExchangeSill:null, integralExchangeSill: null,
idd: 9999999, idd: 9999999,
},]; },];
this.resetForm("form"); this.resetForm("form");
@ -383,9 +389,9 @@ export default {
attributePitureUrl: "", attributePitureUrl: "",
goodsPrice: "", goodsPrice: "",
goodsStock: "", goodsStock: "",
integralExchangeCount:null, integralExchangeCount: null,
integralExchangeFlag:null, integralExchangeFlag: null,
integralExchangeSill:null, integralExchangeSill: null,
sort: null, sort: null,
idd: 9999999, idd: 9999999,
},]; },];
@ -420,17 +426,18 @@ export default {
this.form.goodAttributeDetailsLists = []; this.form.goodAttributeDetailsLists = [];
this.form.goodDetailsLists = this.goodDetailsLists; this.form.goodDetailsLists = this.goodDetailsLists;
console.log(this.form.goodDetailsLists) console.log(this.form.goodDetailsLists)
if (!this.form.goodDetailsLists.integralExchangeFlag) { if (!this.form.goodDetailsLists.integralExchangeFlag) {
this.form.goodDetailsLists.integralExchangeFlag = null this.form.goodDetailsLists.integralExchangeFlag = null
} }
if (this.form.goodDetailsLists.integralExchangeSill=="") { if (this.form.goodDetailsLists.integralExchangeSill == "") {
this.form.goodDetailsLists.integralExchangeSill = null this.form.goodDetailsLists.integralExchangeSill = null
} }
if (this.form.goodDetailsLists.integralExchangeCount == "") { if (this.form.goodDetailsLists.integralExchangeCount == "") {
this.form.goodDetailsLists.integralExchangeCount = null this.form.goodDetailsLists.integralExchangeCount = null
} }
this.$refs["form"].validate((valid) => { this.$refs["form"].validate((valid) => {
if (valid) { if (valid) {
if (this.form.goodsInfoId != null) { if (this.form.goodsInfoId != null) {