This commit is contained in:
蔡玲
2024-11-25 10:03:21 +08:00
parent 8852de5c11
commit c70c544b20
5 changed files with 77 additions and 18 deletions

View File

@@ -3,16 +3,19 @@
<nav-bar title="调拨维护"></nav-bar>
<view class="search-confirm-wrap">
<view class="zd-row">
<view class="zd-col-24 zd-row jcflexstart">
<view class="zd-col-7"><search-box placeholder="输入查询条件" v-model="val1" /></view>
<view class="zd-col-8 select_wraper mgl10">
<view class="zd-col-15 zd-row jcflexstart">
<view class="zd-col-10"><search-box placeholder="输入查询条件" v-model="val1" /></view>
<view class="zd-col-7 select_wraper mgl10">
<zxz-uni-data-select placeholder="选择调出组织信息" v-model="value2" filterable :localdata="range1"></zxz-uni-data-select>
</view>
<view class="zd-col-8 select_wraper mgl10">
<view class="zd-col-7 select_wraper mgl10">
<zxz-uni-data-select placeholder="选择调入组织信息" v-model="value1" filterable :localdata="range1"></zxz-uni-data-select>
</view>
</view>
<button class="confirm-button" @tap="toSearch">查询</button>
<view class="zd-col-9 zd-row jcflexend">
<button class="confirm-button" @tap="toSearch">查询</button>
<button class="confirm-button" :disabled="disabled1" @tap="_easOutInBillSync">同步</button>
</view>
</view>
</view>
<view class="zd-row jcflexstart table-title_wraper">调拨单</view>
@@ -151,7 +154,7 @@
import ScanInput from '@/components/ScanInput.vue'
import Pagination from '@/components/Pagination.vue'
import GridDetail from '@/components/GridDetail.vue'
import {getWarehouseInfo, getOrganizationInfo, allocationPage, allocationBillDetail, allocationBillConfirm, allocationBillDetailUpdate} from '@/utils/getData2.js'
import {getWarehouseInfo, getOrganizationInfo, allocationPage, allocationBillDetail, allocationBillConfirm, allocationBillDetailUpdate, easOutInBillSync} from '@/utils/getData2.js'
export default {
components: {
NavBar,
@@ -405,6 +408,20 @@
getDetails (type,e) {
this.delShow = !this.delShow
this.detailObj = {type: type, data:e}
},
// 同步
async _easOutInBillSync () {
this.disabled1 = true
try {
let res = await easOutInBillSync('ALLO')
uni.showToast({
title: res.desc,
icon: 'none'
})
this.disabled1 = false
} catch (e) {
this.disabled1 = false
}
}
}
}