|
@@ -98,8 +98,18 @@ c<template>
|
|
|
|
|
|
<!-- 操作按钮区域 -->
|
|
|
<a-card :bordered="false" style="marginTop:10px;">
|
|
|
- <div class="table-operator">
|
|
|
+ <div class="table-page-search-wrapper">
|
|
|
+ <a-form layout="inline">
|
|
|
<a-row :gutter="24">
|
|
|
+ <a-col :md="6" :sm="8">
|
|
|
+ <a-form-item label="账套">
|
|
|
+ <j-search-select-tag
|
|
|
+ placeholder="请选择账套"
|
|
|
+ v-model="account"
|
|
|
+ dict="view_account,account,account">
|
|
|
+ </j-search-select-tag>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-input placeholder="请输入" v-model="dingDan"></a-input>
|
|
|
</a-col>
|
|
@@ -109,7 +119,7 @@ c<template>
|
|
|
|
|
|
</a-row>
|
|
|
|
|
|
-
|
|
|
+ </a-form>
|
|
|
|
|
|
</div>
|
|
|
|
|
@@ -266,6 +276,7 @@ export default {
|
|
|
// current: 0,
|
|
|
// pageSize: 0
|
|
|
},
|
|
|
+ account:'',//单条同步条件
|
|
|
dateRange:[],
|
|
|
dataRangeMode:['date','date'],
|
|
|
spinDelayMS:500, // 加载框延迟时间
|
|
@@ -319,18 +330,23 @@ export default {
|
|
|
//单条同步
|
|
|
synchronizationOne(){
|
|
|
this.$nextTick(() => {
|
|
|
- var parameter = this.dingDan
|
|
|
- this.loading = true
|
|
|
- oneSyncy({parameter}).then(res => {
|
|
|
- if (res.success) {
|
|
|
- this.loading =false
|
|
|
- this.queryParam.orderNumber = this.dingDan
|
|
|
- this.getOrderList();
|
|
|
- this.$message.success(res.message)
|
|
|
- }else{
|
|
|
- this.$message.error(res.message)
|
|
|
- }
|
|
|
- })
|
|
|
+ if(this.account == '' || !this.account){
|
|
|
+ this.$message.error('请选择账套号!')
|
|
|
+ }else{
|
|
|
+ var parameter = this.dingDan
|
|
|
+ this.loading = true
|
|
|
+ oneSyncy({parameter,account:this.account}).then(res => {
|
|
|
+ if (res.success) {
|
|
|
+ this.loading =false
|
|
|
+ this.queryParam.orderNumber = this.dingDan
|
|
|
+ this.getOrderList();
|
|
|
+ this.$message.success(res.message)
|
|
|
+ }else{
|
|
|
+ this.$message.error(res.message)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
|