订单发货

This commit is contained in:
@fawn-nine
2023-10-27 17:15:52 +08:00
parent 16d7333f46
commit acafce7c6b
4 changed files with 35 additions and 29 deletions

View File

@@ -394,6 +394,7 @@
title="修改收货信息"
:visible.sync="changeAddVisible"
width="500"
v-loading="addressLoad"
:close="changeAddHandleClose">
<div>
<el-form ref="addressFormRef" :model="addressForm" label-width="120px" :rules="addressFormRule">
@@ -598,7 +599,8 @@ export default {
{ required: true, message: '请选择要修改的省市区', trigger: 'blur' }
]
},
SheetSelectionList:[]
SheetSelectionList:[],
addressLoad:false, // 省份加载动画
}
},
components: {
@@ -699,7 +701,8 @@ export default {
console.log('关闭了', this.addressForm)
},
changeAddressShow(val){
console.log(val,'val')
console.log(val,'val')
this.addressLoad = true
this.$http({
url: this.$http.adornUrl('/api/province/getProvince'),
method: 'post',
@@ -726,10 +729,13 @@ export default {
this.countyEntity = this.cityEntity.cityList.find((val,index,arr)=>{
return val.regionCode == this.addressForm.cityCode
})
console.log(this.provinceEntity,addressForm,'this.provinceEntity')
console.log(this.provinceEntity,this.addressForm,'this.provinceEntity')
}
}).catch( e => {
console.log(e,'e')
this.addressLoad = false
}).catch((err) => {
console.log(err,'e')
this.$message.error('初始化地址信息失败!')
this.addressLoad = false
})
this.changeAddVisible = true

View File

@@ -416,25 +416,25 @@ export default {
},
// 获取订单下的快递单
getOrderSheetList(){
this.$http({
url: this.$http.adornUrl('/express/getPrintTemplateList'),
method: 'get',
params: this.$http.adornParams({
'expressOrderSn': this.query.orderSn,
})
/// data: {}
}).then(({ data }) => {
console.log(data.result,'面单列表')
if (data && data.code === 0) {
this.sheetList = data.result.data
// this.MDtotalPage = data.result.totalDataSize
} else {
// this.PrintSheetList = []
// this.totalPage = 0
}
})
},
// getOrderSheetList(){
// this.$http({
// url: this.$http.adornUrl('/express/getPrintTemplateList'),
// method: 'get',
// params: this.$http.adornParams({
// 'expressOrderSn': this.query.orderSn,
// })
// /// data: {}
// }).then(({ data }) => {
// console.log(data.result,'面单列表')
// if (data && data.code === 0) {
// this.sheetList = data.result.data
// // this.MDtotalPage = data.result.totalDataSize
// } else {
// // this.PrintSheetList = []
// // this.totalPage = 0
// }
// })
// },
// 获取数据列表
getData() {
this.dataListLoading = true

View File

@@ -130,8 +130,8 @@
<div style="clear: both;">
<el-form-item label="是否包邮" prop="isFreeMail">
<el-radio-group v-model="dataForm.isFreeMail">
<el-radio :label="'0'"></el-radio>
<el-radio :label="'1'"></el-radio>
<el-radio :label="0"></el-radio>
<el-radio :label="1"></el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="是否为新书上市" prop="isNew" label-width="200">
@@ -219,7 +219,7 @@
weight: '',
pubDate: '',
// format: '', // 开本
isFreeMail: '1', // 是否包邮
isFreeMail: 1, // 是否包邮
// pageNum: '',
// quality: '', // 内文用纸
isNew:0,

View File

@@ -7,9 +7,9 @@
// api接口请求地址
// window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.100:9200/pb';
// window.SITE_CONFIG['baseUrl'] = 'http://59.110.212.44:9200/pb';
// window.SITE_CONFIG['baseUrl'] = 'https://testapi.nuttyreading.com'; // 线上测试环境
window.SITE_CONFIG['baseUrl'] = 'https://testapi.nuttyreading.com'; // 线上测试环境
// window.SITE_CONFIG['baseUrl'] = 'https://api.nuttyreading.com'; // 线上正式环境
window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.38:9200/pb';
// window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.38:9200/pb';
// window.SITE_CONFIG['baseUrl'] = 'http://59.110.212.44:9200/pb';
// cdn地址 = 域名 + 版本号