收货确认需求修改
This commit is contained in:
@@ -245,8 +245,6 @@
|
||||
this.id = options.id
|
||||
this.title = options.name
|
||||
this.crType = options.type
|
||||
},
|
||||
onLoad () {
|
||||
this._getWarehouseInfo()
|
||||
this._getUserInfo()
|
||||
},
|
||||
|
||||
@@ -45,13 +45,26 @@
|
||||
</view>
|
||||
</view>
|
||||
<!-- 二级表格start -->
|
||||
<view v-if="pkId === e.djid" class="zd-sec-wraper pd0">
|
||||
<view class="table-wrap">
|
||||
<view v-if="pkId === e.djid" class="zd-sec-wraper">
|
||||
<view class="search-confirm-wrap_2">
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-24 zd-row jcflexstart">
|
||||
<view class="zd-col-7"><search-box v-model="val2" :scanShow="false" /></view>
|
||||
</view>
|
||||
<button class="confirm-button" @tap="toSearch2">查询</button>
|
||||
<button v-if="pkObj.djzt !== '审核后'" class="confirm-button" :class="{'confirm-button_disabled': checkArr.length === 0}" :disabled="disabled" @tap="_receiptBillConfirm">确认收货</button>
|
||||
</view>
|
||||
</view>
|
||||
<view class="table-wrap table-wrap_1">
|
||||
<table class="grid-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>序号</th>
|
||||
<th v-if="pkObj.djzt !== '审核后'">选择</th>
|
||||
<th v-if="pkObj.djzt !== '审核后'">
|
||||
<view class="zd-row jcenter">
|
||||
<view class="zd-checkbox" :class="{'zd-checkbox_active': checkArrActive}" @tap="selectAll"></view>
|
||||
</view>
|
||||
</th>
|
||||
<th><text class="fontcol1">采购订单号</text></th>
|
||||
<th>物料编码</th>
|
||||
<th>物料名称</th>
|
||||
@@ -119,17 +132,6 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</view>
|
||||
<view v-if="pkObj.djzt !== '审核后'" class="zd-row jcflexstart mgt10 mgb20">
|
||||
<view class="zd-col-1 zd-row jcenter mgl52">
|
||||
<view class="zd-checkbox" :class="{'zd-checkbox_active': checkArrActive}" @tap="selectAll"></view>
|
||||
</view>
|
||||
<button class="confirm-button" :class="{'confirm-button_disabled': checkArr.length === 0}" :disabled="disabled" @tap="_receiptBillConfirm">确认收货</button>
|
||||
<view class="zd-col-10">
|
||||
<!-- <view class="zd-col-12 zd-row jcflexend">
|
||||
<pagination :total="totalCount2" :page-size="queryParams2.pageSize" :current-page="currentPage2" @page-change="handlePageChange2" />
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 二级表格end -->
|
||||
</view>
|
||||
@@ -202,7 +204,8 @@
|
||||
modalObj: {},
|
||||
disabled: false,
|
||||
value1: '',
|
||||
range1: []
|
||||
range1: [],
|
||||
val2: ''
|
||||
};
|
||||
},
|
||||
onLoad () {
|
||||
@@ -262,7 +265,7 @@
|
||||
},
|
||||
// 二级表格接口
|
||||
async _receiptBillPage () {
|
||||
let res = await receiptBillPage(this.pkObj.djid, this.queryParams2.pageNum + '', this.queryParams2.pageSize + '')
|
||||
let res = await receiptBillPage(this.val2, this.pkObj.djid, this.queryParams2.pageNum + '', this.queryParams2.pageSize + '')
|
||||
if (res.code === 1) {
|
||||
res.result.map(el => {
|
||||
this.$set(el, 'checked', true)
|
||||
@@ -298,6 +301,7 @@
|
||||
toCollapse (e) {
|
||||
this.pkId = this.pkId === e.djid ? '' : e.djid
|
||||
this.pkObj = this.pkId === e.djid ? e : {}
|
||||
this.val2 = ''
|
||||
this.dataList2 = []
|
||||
if (this.pkId === e.djid) {
|
||||
this.queryParams2 = {
|
||||
@@ -308,6 +312,15 @@
|
||||
this._receiptBillPage()
|
||||
}
|
||||
},
|
||||
// 二级表格查询
|
||||
toSearch2 () {
|
||||
this.queryParams2 = {
|
||||
pageSize: 200,
|
||||
pageNum: 1
|
||||
}
|
||||
this.currentPage2 = 1
|
||||
this._receiptBillPage()
|
||||
},
|
||||
// 二级表格多选
|
||||
toCheck2 (e) {
|
||||
e.checked = !e.checked
|
||||
|
||||
Reference in New Issue
Block a user