商品更新时间

This commit is contained in:
THK3121 2023-06-05 16:49:43 +08:00
parent 30f27dc831
commit 48bec930f2
4 changed files with 24 additions and 15 deletions

View File

@ -3,7 +3,7 @@ ENV = 'development'
//http://192.168.1.43:8324/admin //http://192.168.1.43:8324/admin
// http://mer.crmeb.net/admin // http://mer.crmeb.net/admin
# base api # base api
# VUE_APP_BASE_API = 'http://0.0.0.0:8324' #VUE_APP_BASE_API = 'http://0.0.0.0:8324'
#VUE_APP_BASE_API = 'https://mer1.crmeb.net' #VUE_APP_BASE_API = 'https://mer1.crmeb.net'
VUE_APP_BASE_API = 'https://crmeb-test.shop.lihaink.cn' VUE_APP_BASE_API = 'https://crmeb-test.shop.lihaink.cn'
#VUE_APP_BASE_API_Two = 'https://nk.lihaink.cn' #VUE_APP_BASE_API_Two = 'https://nk.lihaink.cn'

View File

@ -231,7 +231,7 @@
<el-form-item label="商圈" :label-width="formLabelWidth" > <el-form-item label="商圈" :label-width="formLabelWidth" >
<el-cascader v-model="form.info" :options="form.options" @change="handleChange1" ></el-cascader> <el-cascader v-model="form.info" :options="form.options" @change="handleChange1" ></el-cascader>
<el-cascader v-model="form.info1" :options="form.options1" @change="handleChange2" ></el-cascader> <el-cascader v-model="form.info1" :options="form.options1" @change="handleChange2" ></el-cascader>
<el-cascader v-model="form.info2" :options="form.options2" @change="handleChange3($event,form.options2)" ></el-cascader> <el-cascader v-model="form.info2 " :options="form.options2" @change="handleChange3($event,form.options2)" ></el-cascader>
</el-form-item> </el-form-item>
<el-form-item label="商户账号" :label-width="formLabelWidth" prop="mer_account"> <el-form-item label="商户账号" :label-width="formLabelWidth" prop="mer_account">
<el-input v-model="form.mer_account" autocomplete="off" placeholder="请输入商户账号" :disabled="!add"></el-input> <el-input v-model="form.mer_account" autocomplete="off" placeholder="请输入商户账号" :disabled="!add"></el-input>
@ -449,6 +449,7 @@ export default {
// console.log(value); // console.log(value);
}, },
async handleChange1(value){ async handleChange1(value){
console.log(value);
const data = {area_code:value[0]} const data = {area_code:value[0]}
const promise = await getShopAddressApi_two(data) const promise = await getShopAddressApi_two(data)
console.log(promise.data) console.log(promise.data)
@ -459,7 +460,11 @@ export default {
} }
console.log(this.form.info1) console.log(this.form.info1)
}, },
async handleChange2(value){ async handleChange2(value,ID){
console.log(value,ID);
if(value!==value){
this.form.info2=0
}
const data = {street_code:value[0]} const data = {street_code:value[0]}
const promise = await getShopAddressApi_three(data) const promise = await getShopAddressApi_three(data)
for(let item of promise.data){ for(let item of promise.data){
@ -475,6 +480,7 @@ export default {
// id = item.id // id = item.id
// } // }
// } // }
console.log(e);
if(this.form.info instanceof Array){ if(this.form.info instanceof Array){
this.form.area_id = this.form.info[0] this.form.area_id = this.form.info[0]
}else{ }else{
@ -488,7 +494,7 @@ export default {
if(this.form.info2 instanceof Array){ if(this.form.info2 instanceof Array){
this.form.village_id = this.form.info2[0] this.form.village_id = this.form.info2[0]
}else{ }else{
this.form.village_id = this.form.info2 this.form.village_id = this.form.info2[14]
} }
// this.form.street_id = this.form.info1[0] // this.form.street_id = this.form.info1[0]
// this.form.village_id = id // this.form.village_id = id
@ -557,6 +563,7 @@ export default {
this.open2(res.message) this.open2(res.message)
// //
this.popFormVisible=false this.popFormVisible=false
} }
} catch (error) { } catch (error) {
this.open4(error.message) this.open4(error.message)
@ -708,6 +715,7 @@ export default {
this.add =false this.add =false
const promise = await merchantUpdateApi(id) const promise = await merchantUpdateApi(id)
console.log('promise',promise); console.log('promise',promise);
console.log(this.form);
const res = promise.data const res = promise.data
this.merid = res.mer_id this.merid = res.mer_id
this.form.mer_name = res.mer_name // this.form.mer_name = res.mer_name //
@ -729,10 +737,10 @@ export default {
this.handleChange1(val) this.handleChange1(val)
this.form.info1 = res.geo_address.street_id //code this.form.info1 = res.geo_address.street_id //code
this.form.info2 = res.geo_address.village_id //id this.form.info2 = res.geo_address.village_id //id
let vala = [] let vala = []
let ID=res.geo_address.street_id
vala.push(res.geo_address.street_id) vala.push(res.geo_address.street_id)
this.handleChange2(vala) this.handleChange2(vala,ID)
this.form.commission_rate = res.commission_rate this.form.commission_rate = res.commission_rate
this.form.mer_keyword = res.mer_keyword this.form.mer_keyword = res.mer_keyword
this.form.mer_address = res.mer_address this.form.mer_address = res.mer_address

View File

@ -142,6 +142,7 @@
</el-rate> </el-rate>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="update_time" label="更新时间" min-width="150" />
<el-table-column prop="rank" label="排序" min-width="70" /> <el-table-column prop="rank" label="排序" min-width="70" />
<el-table-column prop="status" label="是否显示" min-width="100"> <el-table-column prop="status" label="是否显示" min-width="100">
<template slot-scope="scope"> <template slot-scope="scope">