1
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
<el-button type="primary" size="small" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
||||
<el-button size="small" icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
||||
<el-button type="warning" size="small" icon="el-icon-download" @click="handleExport" v-hasPermi="['system:jdorder:export']">导出</el-button>
|
||||
<el-button type="success" size="small" icon="el-icon-setting" @click="showAutoWriteConfig = true" title="配置H-TF订单自动写入腾讯文档">H-TF自动写入配置</el-button>
|
||||
<el-button type="info" size="small" icon="el-icon-user" @click="handleTestUserInfo" title="测试腾讯文档用户信息接口">测试用户信息</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -347,6 +348,9 @@
|
||||
</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
<!-- H-TF订单自动写入配置 -->
|
||||
<tencent-doc-auto-write-config v-model="showAutoWriteConfig" @config-updated="handleAutoConfigUpdated" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -354,11 +358,13 @@
|
||||
import { listJDOrders, updateJDOrder, delJDOrder, fetchLogisticsManually } from '@/api/system/jdorder'
|
||||
import { fillLogisticsByOrderNo, getTokenStatus, getTencentDocAuthUrl, testUserInfo } from '@/api/jarvis/tendoc'
|
||||
import ListLayout from '@/components/ListLayout'
|
||||
import TencentDocAutoWriteConfig from './components/TencentDocAutoWriteConfig'
|
||||
|
||||
export default {
|
||||
name: 'JDOrderList',
|
||||
components: {
|
||||
ListLayout
|
||||
ListLayout,
|
||||
TencentDocAutoWriteConfig
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -396,6 +402,8 @@ export default {
|
||||
currentOrder: null,
|
||||
tokenValid: false,
|
||||
tokenStatusChecked: false,
|
||||
// H-TF订单自动写入配置
|
||||
showAutoWriteConfig: false,
|
||||
// 获取物流信息对话框
|
||||
fetchLogisticsDialogVisible: false,
|
||||
fetchLogisticsLoading: false,
|
||||
@@ -894,6 +902,11 @@ export default {
|
||||
|
||||
const resultText = JSON.stringify(this.fetchLogisticsResult, null, 2)
|
||||
this.copyToClipboard(resultText)
|
||||
},
|
||||
|
||||
/** H-TF订单自动写入配置更新后的回调 */
|
||||
handleAutoConfigUpdated() {
|
||||
this.$message.success('H-TF订单自动写入配置已更新')
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user