|
@@ -1,11 +1,13 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<basic-container v-show="show" class="page-crad">
|
|
|
- <el-tabs v-model="tabsType" type="card" @tab-click="handleClick">
|
|
|
+ <el-tabs v-model="tabsName" type="card" @tab-click="handleClick">
|
|
|
<el-tab-pane label="待采购" name="first"></el-tab-pane>
|
|
|
- <el-tab-pane label="业务单据" name="second"></el-tab-pane>
|
|
|
+ <el-tab-pane label="采购中" name="second"></el-tab-pane>
|
|
|
+ <el-tab-pane label="采购完成" name="third"></el-tab-pane>
|
|
|
+ <el-tab-pane label="全部" name="fourth"></el-tab-pane>
|
|
|
</el-tabs>
|
|
|
- <avue-crud v-show="tabsType == 'first'" ref="procureCrud" :page.sync="treatPage" :option="procureOption"
|
|
|
+ <avue-crud v-show="tabsName == 'first'" ref="procureCrud" :page.sync="treatPage" :option="procureOption"
|
|
|
:data="procureData" @refresh-change="listBYStatusfun(treatPage)"
|
|
|
@resetColumn="resetColumnTwo('procureCrud', 'procureOption', 'procureOptionList', 2.3)"
|
|
|
@saveColumn="saveColumnTwo('procureCrud', 'procureOption', 'procureOptionList', 2.3)">
|
|
@@ -14,12 +16,12 @@
|
|
|
</el-button>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
- <avue-crud v-show="tabsType == 'second'" ref="crud" :option="option" :data="dataList" v-model="form"
|
|
|
- :page.sync="page" :search.sync="search" @search-change="searchChange" @current-change="currentChange"
|
|
|
- @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad" :table-loading="loading"
|
|
|
- @saveColumn="saveColumn" @resetColumn="resetColumn" :cell-style="cellStyle"
|
|
|
- @selection-change="selectionChange" @expand-change="expandChange"
|
|
|
- @search-criteria-switch="searchCriteriaSwitch">
|
|
|
+ <avue-crud v-show="tabsName == 'second' || tabsName == 'third' || tabsName == 'fourth'" ref="crud"
|
|
|
+ :option="option" :data="dataList" v-model="form" :page.sync="page" :search.sync="search"
|
|
|
+ @search-change="searchChange" @current-change="currentChange" @size-change="sizeChange"
|
|
|
+ @refresh-change="refreshChange" @on-load="onLoad" :table-loading="loading" @saveColumn="saveColumn"
|
|
|
+ @resetColumn="resetColumn" :cell-style="cellStyle" @selection-change="selectionChange"
|
|
|
+ @expand-change="expandChange" @search-criteria-switch="searchCriteriaSwitch">
|
|
|
<template slot-scope="{ row }" slot="expand">
|
|
|
<avue-crud ref="itemCrud" :data="row.itemData" :option="itemOption" :table-loading="row.itemLoading"
|
|
|
@resetColumn="resetColumnTwo('itemCrud', 'itemOption', 'itemOptionList', 2.2)"
|
|
@@ -247,7 +249,8 @@ export default {
|
|
|
name: "customerInformation",
|
|
|
data() {
|
|
|
return {
|
|
|
- tabsType: 'first',
|
|
|
+ tabsName: 'first',
|
|
|
+ tabType: '',
|
|
|
procureData: [], // 待采购数据
|
|
|
// 待采购配置
|
|
|
procureOption: [],
|
|
@@ -710,6 +713,16 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleClick() {
|
|
|
+ if (this.tabsName == 'second') {
|
|
|
+ this.tabType = 1
|
|
|
+ } else if (this.tabsName == 'third') {
|
|
|
+ this.tabType = 2
|
|
|
+ } else if (this.tabsName == 'fourth') {
|
|
|
+ this.tabType = ''
|
|
|
+ }
|
|
|
+ this.onLoad(this.page, this.search);
|
|
|
+ },
|
|
|
// 采购任务弹窗打开
|
|
|
caigorenwufun() {
|
|
|
this.dialogVisible = true;
|
|
@@ -1015,6 +1028,10 @@ export default {
|
|
|
};
|
|
|
delete params.requiredDeliveryDate
|
|
|
}
|
|
|
+ params={
|
|
|
+ ...params,
|
|
|
+ tabType:this.tabType
|
|
|
+ }
|
|
|
this.loading = true;
|
|
|
this.dataList.forEach(item => {
|
|
|
this.$refs.crud.toggleRowExpansion(item, false);
|