|
@@ -323,15 +323,6 @@
|
|
|
>导出订单明细
|
|
>导出订单明细
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
|
|
- <el-button
|
|
|
|
|
- icon="el-icon-s-order"
|
|
|
|
|
- size="mini"
|
|
|
|
|
- type="warning"
|
|
|
|
|
- @click="openDeliveryNote"
|
|
|
|
|
- >批量导入物流单号
|
|
|
|
|
- </el-button>
|
|
|
|
|
- </el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
<el-button
|
|
|
v-hasPermi="['store:storeOrder:export:details']"
|
|
v-hasPermi="['store:storeOrder:export:details']"
|
|
@@ -362,6 +353,17 @@
|
|
|
>导出发货单
|
|
>导出发货单
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-hasPermi="['store:storeOrder:importShippingOrder']"
|
|
|
|
|
+ icon="el-icon-upload2"
|
|
|
|
|
+ plain
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="success"
|
|
|
|
|
+ @click="openDeliveryNote"
|
|
|
|
|
+ >导入发货单
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </el-col>
|
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
<el-button
|
|
|
v-hasPermi="['store:storeOrder:remove']"
|
|
v-hasPermi="['store:storeOrder:remove']"
|
|
@@ -1079,7 +1081,9 @@ import {
|
|
|
importDeliveryNoteExpressTemplate, exportStoreOrderDetails, exportStoreOrderItemsDetails, exportShippingOrder,
|
|
importDeliveryNoteExpressTemplate, exportStoreOrderDetails, exportStoreOrderItemsDetails, exportShippingOrder,
|
|
|
getErpAccount,
|
|
getErpAccount,
|
|
|
queryErpPhone,
|
|
queryErpPhone,
|
|
|
- saveErpPhone,editErpPhone,batchCreateErpOrder,batchSetErpOrder
|
|
|
|
|
|
|
+ saveErpPhone,editErpPhone,batchCreateErpOrder,batchSetErpOrder,
|
|
|
|
|
+ importShippingOrderTemplate,
|
|
|
|
|
+ getMiniProgramList
|
|
|
} from '@/api/hisStore/storeOrder'
|
|
} from '@/api/hisStore/storeOrder'
|
|
|
import { getUserList } from '@/api/hisStore/user'
|
|
import { getUserList } from '@/api/hisStore/user'
|
|
|
import { getAddressList } from '@/api/hisStore/userAddress'
|
|
import { getAddressList } from '@/api/hisStore/userAddress'
|
|
@@ -2577,19 +2581,18 @@ export default {
|
|
|
},
|
|
},
|
|
|
getAppList() {
|
|
getAppList() {
|
|
|
this.miniAppList = []
|
|
this.miniAppList = []
|
|
|
- const key = 'courseMa.config'
|
|
|
|
|
- getConfigByKey(key).then(response => {
|
|
|
|
|
- const { code, data } = response
|
|
|
|
|
- if (code === 200) {
|
|
|
|
|
- let value = data?.configValue
|
|
|
|
|
- if (value) {
|
|
|
|
|
- console.log('打印-----------------》', value)
|
|
|
|
|
- const appList = JSON.parse(value)
|
|
|
|
|
- this.miniAppList = appList.filter(v => v.type === '1').map(v => {
|
|
|
|
|
- return { appId: v.appid, appName: v.name }
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // 使用订单模块的小程序列表接口,排除公众号,数据更全面
|
|
|
|
|
+ getMiniProgramList().then(response => {
|
|
|
|
|
+ if (response.code === 200 && response.data) {
|
|
|
|
|
+ this.miniAppList = response.data.map(v => {
|
|
|
|
|
+ return { appId: v.appid, appName: v.name }
|
|
|
|
|
+ })
|
|
|
|
|
+ console.log('获取小程序列表成功,数量:', this.miniAppList.length)
|
|
|
}
|
|
}
|
|
|
|
|
+ }).catch(error => {
|
|
|
|
|
+ console.error('获取小程序列表失败:', error)
|
|
|
|
|
+ this.$message.error('获取小程序列表失败')
|
|
|
|
|
+ this.miniAppList = []
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
// 提交发货单
|
|
// 提交发货单
|