|
|
@ -1,147 +1,123 @@ |
|
|
|
<template> |
|
|
|
<div class="app-container"> |
|
|
|
<div v-show="viewState ==1"> |
|
|
|
<button-bar view-title="采购管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle" /> |
|
|
|
<button-bar view-title="包装物采购销售管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle" /> |
|
|
|
<div class="main-content"> |
|
|
|
<div class="searchcon"> |
|
|
|
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button> |
|
|
|
<div v-show="isSearchShow" class="search"> |
|
|
|
<el-form ref="listQueryform" :inline="true" :model="listQuery" class="tab-header"> |
|
|
|
<el-form-item label="采购订单编号"> |
|
|
|
<el-input v-model="listQuery.params.bankName" maxlength="20" placeholder="请输入采购订单编号" class="addinputw" |
|
|
|
clearable /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="采购日期"> |
|
|
|
<el-date-picker v-model="listQuery.params.date" type="date" :picker-options="pickerOptions" clearable |
|
|
|
value-format="yyyy-MM-dd" placeholder="选择日期" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="商品名称"> |
|
|
|
<el-input v-model="listQuery.params.bankName" maxlength="20" placeholder="请输入采购商品名称" class="addinputw" |
|
|
|
clearable /> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<div class="btn" style="text-align: center;"> |
|
|
|
<el-button type="primary" icon="el-icon-search" size="small" @click="handleReset">查询</el-button> |
|
|
|
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handleFilter">重置</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<el-row style="margin-left: 20px;margin-right: 20px;"> |
|
|
|
<el-col> |
|
|
|
<el-tabs v-model="tabActiveName" @tab-click="handleOrder"> |
|
|
|
<el-tab-pane label="原油订单列表" name="uplog"> |
|
|
|
<div> |
|
|
|
<el-table v-loading="tableLoading1" :data="logList" border style="width: 100%"> |
|
|
|
<el-col> |
|
|
|
<el-tabs v-model="tabActiveName" @tab-click="handleOrder"> |
|
|
|
<el-tab-pane label="包装物采购订单列表" name="uplog"> |
|
|
|
<div class="searchcon"> |
|
|
|
<el-button size="small" class="searchbtn" |
|
|
|
@click="clicksearchShow1">{{ searchxianshitit1 }}</el-button> |
|
|
|
<div v-show="isSearchShow1" class="search"> |
|
|
|
<el-form ref="listQueryform1" :inline="true" :model="listQuery" class="tab-header"> |
|
|
|
<el-form-item label="订单编号"> |
|
|
|
<el-input v-model="listQuery.params.orderNumber" maxlength="20" placeholder="请输入订单编号" |
|
|
|
class="addinputw" clearable /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="日期"> |
|
|
|
<el-date-picker v-model="listQuery.params.date" type="date" :picker-options="pickerOptions" |
|
|
|
clearable value-format="yyyy-MM-dd" placeholder="选择日期" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="供应商名称"> |
|
|
|
<el-input v-model="listQuery.params.supplierName" maxlength="20" placeholder="请输入供应商名称" |
|
|
|
class="addinputw" clearable /> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<div class="btn" style="text-align: center;"> |
|
|
|
<el-button type="primary" icon="el-icon-search" size="small" @click="handleReset1">查询</el-button> |
|
|
|
<el-button type="primary" icon="el-icon-refresh" size="small" |
|
|
|
@click="handleFilter1">重置</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div> |
|
|
|
<el-table v-loading="tableLoading1" :data="list" border style="width: 100%"> |
|
|
|
<el-table-column label="序号" type="index" width="80" :index="indexMethod" align="center" /> |
|
|
|
<el-table-column label="操作" wid align="center" width="220"> |
|
|
|
<el-table-column label="操作" wid align="center" width="200" > |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button type="primary" size="mini" @click="toDetail(scope.row)">详情</el-button> |
|
|
|
<el-button type="primary" size="mini" @click="toEdit(scope.row)">编辑</el-button> |
|
|
|
<el-button type="primary" size="mini" @click="doDel(scope.row)">删除</el-button> |
|
|
|
<el-button type="primary" size="mini" v-show="scope.row.state==1" |
|
|
|
@click="toEdit(scope.row)">编辑</el-button> |
|
|
|
<el-button type="primary" size="mini" v-show="scope.row.state==1" |
|
|
|
@click="doDel(scope.row)">删除</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="订单编号" prop="orderNumber" align="center" /> |
|
|
|
<el-table-column label="合同日期" prop="contractSigningDate" width="100" align="center" /> |
|
|
|
<el-table-column label="商品类型" prop="typeName" width="100" align="center" /> |
|
|
|
<el-table-column label="商品编码" prop="productCode" width="80" align="center" /> |
|
|
|
<el-table-column label="商品名称" prop="tradeName" width="180" align="center" /> |
|
|
|
<el-table-column label="单价" prop="price" width="80" align="center" /> |
|
|
|
<el-table-column label="数量" prop="weight" width="100" align="center" /> |
|
|
|
<el-table-column label="单位" prop="weight" width="100" align="center" /> |
|
|
|
<el-table-column label="合同日期" prop="contractSigningDate" width="120" align="center" /> |
|
|
|
<el-table-column label="到货日期" prop="arrivalDate" width="120" align="center" /> |
|
|
|
<el-table-column label="供应商名称" prop="supplierName" align="center" /> |
|
|
|
<el-table-column label="供应商" prop="supplierName" align="center" /> |
|
|
|
<el-table-column label="订单状态" prop="state" width="150" align="center" /> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div class="pages"> |
|
|
|
<!-- 翻页 --> |
|
|
|
<pagination v-show="logListTotal > 0" :total="logListTotal" :page.sync="logListQuery.current" |
|
|
|
:limit.sync="logListQuery.size" class="pagination" @pagination="loadLogList" /> |
|
|
|
</div> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="包装物订单列表" name="k112"> |
|
|
|
<div> |
|
|
|
<el-table v-loading="tableLoading2" :data="in112List" border style="width: 100%"> |
|
|
|
<el-table-column fixed width="100" type="index" label="序号" :index="indexMethod2" align="center" /> |
|
|
|
<el-table-column prop="supplierName" label="供应商名称" align="center" /> |
|
|
|
<el-table-column prop="code" label="商品编码" width="120" align="center" /> |
|
|
|
<el-table-column prop="proName" label="商品名称" align="center" /> |
|
|
|
<el-table-column prop="number" label="单品数量" width="100"align="center" /> |
|
|
|
<el-table-column prop="orderAmount" label="订单商品价值" width="140" align="center" /> |
|
|
|
<el-table-column prop="actualArrivalNumber" label="实际到货数量" width="140"align="center" /> |
|
|
|
<el-table-column prop="actualArrival" label="实际到货价值" width="120" align="center" /> |
|
|
|
<el-table-column prop="transitNumber" label="在途货数量" width="120" align="center" /> |
|
|
|
<el-table-column prop="transit" label="在途货价值" width="120"align="center" /> |
|
|
|
<el-table-column prop="exceed" label="超出货价值" width="120"align="center" /> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div class="pages"> |
|
|
|
<!-- 翻页 --> |
|
|
|
<pagination v-show="in112ListTotal > 0" :total="in112ListTotal" :page.sync="in112ListQuery.current" |
|
|
|
:limit.sync="in112ListQuery.size" class="pagination" @pagination="loadIn112List" /> |
|
|
|
</div> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="原料订单列表" name="all"> |
|
|
|
<div> |
|
|
|
<el-table v-loading="tableLoading3" :data="inallList" border style="width: 100%"> |
|
|
|
<el-table-column fixed width="100" type="index" label="序号" :index="indexMethod3" align="center" /> |
|
|
|
<el-table-column prop="supplierName" label="供应商名称" align="center" /> |
|
|
|
<el-table-column prop="code" label="订单编号" align="center" /> |
|
|
|
<el-table-column prop="orderAmount" label="订单金额" align="center" /> |
|
|
|
<el-table-column prop="purchaseDate" label="订单日期" align="center" /> |
|
|
|
<el-table-column prop="arrivalDate" label="到货日期" align="center" /> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div class="pages"> |
|
|
|
<!-- 翻页 --> |
|
|
|
<pagination v-show="inallListTotal > 0" :total="inallListTotal" :page.sync="inallListQuery.current" |
|
|
|
:limit.sync="inallListQuery.size" class="pagination" @pagination="loadInallList" /> |
|
|
|
<el-table-column label="商品种类" prop="amount" width="120" align="center" /> |
|
|
|
<el-table-column label="总价值" prop="totalValue" width="120" align="center" /> |
|
|
|
<el-table-column label="订单状态" prop="stateValue" width="150" align="center" /> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div class="pages"> |
|
|
|
<!-- 翻页 --> |
|
|
|
<pagination v-show="listTotal > 0" :total="listTotal" :page.sync="listQuery.current" |
|
|
|
:limit.sync="listQuery.size" class="pagination" @pagination="loadLogList" /> |
|
|
|
</div> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="包装物销售订单列表" name="k112"> |
|
|
|
<div class="searchcon"> |
|
|
|
<el-button size="small" class="searchbtn" |
|
|
|
@click="clicksearchShow2">{{ searchxianshitit2 }}</el-button> |
|
|
|
<div v-show="isSearchShow2" class="search"> |
|
|
|
<el-form ref="listQueryform" :inline="true" :model="listQuery2" class="tab-header"> |
|
|
|
<el-form-item label="订单编号"> |
|
|
|
<el-input v-model="listQuery2.params.orderNumber" maxlength="20" placeholder="请输入订单编号" |
|
|
|
class="addinputw" clearable /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="日期"> |
|
|
|
<el-date-picker v-model="listQuery2.params.date" type="date" :picker-options="pickerOptions" |
|
|
|
clearable value-format="yyyy-MM-dd" placeholder="选择日期" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="商品名称"> |
|
|
|
<el-input v-model="listQuery2.params.tradeName" maxlength="20" placeholder="请输入采购商品名称" |
|
|
|
class="addinputw" clearable /> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<div class="btn" style="text-align: center;"> |
|
|
|
<el-button type="primary" icon="el-icon-search" size="small" @click="handleReset2">查询</el-button> |
|
|
|
<el-button type="primary" icon="el-icon-refresh" size="small" |
|
|
|
@click="handleFilter2">重置</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-tab-pane> |
|
|
|
</div> |
|
|
|
|
|
|
|
</el-tabs> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<div> |
|
|
|
<el-table v-loading="tableLoading2" :data="list2" border style="width: 100%"> |
|
|
|
<el-table-column fixed width="100" type="index" label="序号" :index="indexMethod2" align="center" /> |
|
|
|
<el-table-column prop="supplierName" label="供应商名称" align="center" /> |
|
|
|
<el-table-column prop="code" label="商品编码" width="120" align="center" /> |
|
|
|
<el-table-column prop="proName" label="商品名称" align="center" /> |
|
|
|
<el-table-column prop="number" label="单品数量" width="100" align="center" /> |
|
|
|
<el-table-column prop="orderAmount" label="订单商品价值" width="140" align="center" /> |
|
|
|
<el-table-column prop="actualArrivalNumber" label="实际到货数量" width="140" align="center" /> |
|
|
|
<el-table-column prop="actualArrival" label="实际到货价值" width="120" align="center" /> |
|
|
|
<el-table-column prop="transitNumber" label="在途货数量" width="120" align="center" /> |
|
|
|
<el-table-column prop="transit" label="在途货价值" width="120" align="center" /> |
|
|
|
<el-table-column prop="exceed" label="超出货价值" width="120" align="center" /> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div class="pages"> |
|
|
|
<!-- 翻页 --> |
|
|
|
<pagination v-show="listTotal2 > 0" :total="listTotal2" :page.sync="listQuery2.current" |
|
|
|
:limit.sync="listQuery2.size" class="pagination" @pagination="loadLogList2" /> |
|
|
|
</div> |
|
|
|
</el-tab-pane> |
|
|
|
|
|
|
|
<div class="listtop"> |
|
|
|
<div class="tit">采购订单列表</div> |
|
|
|
<!-- 翻页分页 --> |
|
|
|
<!-- <pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> --> |
|
|
|
</div> |
|
|
|
<div class=""> |
|
|
|
<el-table v-loading="listLoading" :data="list" border style="width: 100%;"> |
|
|
|
<!-- <el-table-column type="selection" align="center" width="50"/> --> |
|
|
|
<el-table-column label="序号" type="index" width="80" :index="indexMethod" align="center" /> |
|
|
|
<el-table-column label="操作" wid align="center" width="220"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button type="primary" size="mini" @click="toDetail(scope.row)">详情</el-button> |
|
|
|
<el-button type="primary" size="mini" @click="toEdit(scope.row)">编辑</el-button> |
|
|
|
<el-button type="primary" size="mini" @click="doDel(scope.row)">删除</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="订单编号" prop="orderNumber" align="center" /> |
|
|
|
<el-table-column label="合同日期" prop="contractSigningDate" width="100" align="center" /> |
|
|
|
<el-table-column label="商品类型" prop="typeName" width="100" align="center" /> |
|
|
|
<el-table-column label="商品编码" prop="productCode" width="80" align="center" /> |
|
|
|
<el-table-column label="商品名称" prop="tradeName" width="180" align="center" /> |
|
|
|
<el-table-column label="单价" prop="price" width="80" align="center" /> |
|
|
|
<el-table-column label="数量" prop="weight" width="100" align="center" /> |
|
|
|
<el-table-column label="单位" prop="weight" width="100" align="center" /> |
|
|
|
<el-table-column label="供应商名称" prop="supplierName" align="center" /> |
|
|
|
<el-table-column label="供应商" prop="supplierName" align="center" /> |
|
|
|
<el-table-column label="订单状态" prop="state" width="150" align="center" /> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div class="pages"> |
|
|
|
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" |
|
|
|
:limit.sync="listQuery.size" class="pagination" @pagination="getList" /> |
|
|
|
</div> |
|
|
|
</el-tabs> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<packagProcureAdd v-show="viewState ==2 || viewState ==3" ref="divAdd" @doback="resetState" @reloadlist="getList" /> |
|
|
|
<packagProcureInfo v-show="viewState ==4" ref="divInfo" @doback="resetState" @reloadlist="getList" /> |
|
|
|
<packagProcureAdd v-show="viewState ==2 || viewState ==3" ref="divAdd" @doback="resetState" |
|
|
|
@reloadlist="loadLogList" /> |
|
|
|
<packagProcureInfo v-show="viewState ==4" ref="divInfo" @doback="resetState" @reloadlist="loadLogList" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -152,8 +128,10 @@ |
|
|
|
import ButtonBar from '@/components/ButtonBar' |
|
|
|
import packagProcureAdd from './packagProcureAdd.vue' |
|
|
|
import packagProcureInfo from './packagProcureInfo.vue' |
|
|
|
import { |
|
|
|
parseTime |
|
|
|
} from '@/utils/index' |
|
|
|
export default { |
|
|
|
name: 'CustomerManagement', |
|
|
|
components: { |
|
|
|
Pagination, |
|
|
|
pageye, |
|
|
@ -166,12 +144,13 @@ |
|
|
|
return { |
|
|
|
tabActiveName: 'uplog', |
|
|
|
index: "0", |
|
|
|
isSearchShow: false, |
|
|
|
searchxianshitit: '显示查询条件', |
|
|
|
isSearchShow1: false, |
|
|
|
searchxianshitit1: '显示查询条件', |
|
|
|
isSearchShow2: false, |
|
|
|
searchxianshitit2: '显示查询条件', |
|
|
|
btndisabled: false, |
|
|
|
tableLoading1: false, |
|
|
|
tableLoading2: false, |
|
|
|
tableLoading3: false, |
|
|
|
btnList: [{ |
|
|
|
type: 'primary', |
|
|
|
size: 'small', |
|
|
@ -188,15 +167,29 @@ |
|
|
|
btnLabel: '关闭' |
|
|
|
} |
|
|
|
], |
|
|
|
isSearchShow: false, |
|
|
|
searchxianshitit: '显示查询条件', |
|
|
|
list: [], |
|
|
|
listTotal: 1, |
|
|
|
listQuery: { |
|
|
|
current: 1, |
|
|
|
size: 10, |
|
|
|
params: { |
|
|
|
bankName: '', |
|
|
|
type: '1', // 原油1 包装物2 原料3 |
|
|
|
orderNumber: '', |
|
|
|
date: '', |
|
|
|
supplierName: '', |
|
|
|
// state: "1", // 1待提交 2经理 3监管 4银行 5财务 6待入库 7已办结 |
|
|
|
}, |
|
|
|
total: 0 |
|
|
|
}, |
|
|
|
list2: [], |
|
|
|
listTotal2: 1, |
|
|
|
listQuery2: { |
|
|
|
current: 1, |
|
|
|
size: 10, |
|
|
|
params: { |
|
|
|
orderNumber: '', |
|
|
|
date: '', |
|
|
|
supplierName: '', |
|
|
|
// state: "1", // 1待提交 2经理 3监管 4银行 5财务 6待入库 7已办结 |
|
|
|
}, |
|
|
|
total: 0 |
|
|
|
}, |
|
|
@ -212,7 +205,8 @@ |
|
|
|
this.$refs['btnbar'].setButtonList(this.btnList) |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.init() |
|
|
|
this.loadLogList() |
|
|
|
// this.loadLogList2() |
|
|
|
// 加载列表 |
|
|
|
}, |
|
|
|
methods: { |
|
|
@ -230,17 +224,61 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
// 搜索条件效果 |
|
|
|
clicksearchShow() { |
|
|
|
this.isSearchShow = !this.isSearchShow |
|
|
|
if (this.isSearchShow) { |
|
|
|
this.searchxianshitit = '隐藏查询条件' |
|
|
|
clicksearchShow1() { |
|
|
|
this.isSearchShow1 = !this.isSearchShow1 |
|
|
|
if (this.isSearchShow1) { |
|
|
|
this.searchxianshitit1 = '隐藏查询条件' |
|
|
|
} else { |
|
|
|
this.searchxianshitit = '显示查询条件' |
|
|
|
this.searchxianshitit1 = '显示查询条件' |
|
|
|
} |
|
|
|
}, |
|
|
|
// 初始化 |
|
|
|
init() { |
|
|
|
this.getList() |
|
|
|
// 搜索条件效果 |
|
|
|
clicksearchShow2() { |
|
|
|
this.isSearchShow2 = !this.isSearchShow2 |
|
|
|
if (this.isSearchShow2) { |
|
|
|
this.searchxianshitit2 = '隐藏查询条件' |
|
|
|
} else { |
|
|
|
this.searchxianshitit2 = '显示查询条件' |
|
|
|
} |
|
|
|
}, |
|
|
|
handleOrder(tab, event) { |
|
|
|
console.log("tab", tab) |
|
|
|
this.index = tab.index |
|
|
|
|
|
|
|
switch (tab.index) { |
|
|
|
// 采购 |
|
|
|
case "0": |
|
|
|
if (this.list.length == 0) |
|
|
|
this.loadLogList() |
|
|
|
break; |
|
|
|
// 销售 |
|
|
|
case "1": |
|
|
|
if (this.list2.length == 0) |
|
|
|
this.loadIn112List() |
|
|
|
break; |
|
|
|
default: |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 查询列表信息 |
|
|
|
loadLogList() { |
|
|
|
this.tableLoading1 = true |
|
|
|
req.loadLogList(this.listQuery).then((response) => { |
|
|
|
this.tableLoading1 = false |
|
|
|
if (response.success) { |
|
|
|
console.log("response.data", response.data) |
|
|
|
this.list = response.data.records |
|
|
|
this.listQuery.total = response.data.total |
|
|
|
this.listTotal = response.data.total |
|
|
|
this.listQuery.current = response.data.current |
|
|
|
this.listQuery.size = response.data.size |
|
|
|
} else { |
|
|
|
this.list = [] |
|
|
|
this.listQuery.total = 0 |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 序号 |
|
|
|
indexMethod(index) { |
|
|
@ -249,39 +287,86 @@ |
|
|
|
return pageindex |
|
|
|
}, |
|
|
|
// 查询列表信息 |
|
|
|
getList() { |
|
|
|
this.listLoading = true |
|
|
|
req.listPage(this.listQuery).then((response) => { |
|
|
|
this.listLoading = false |
|
|
|
loadLogList2() { |
|
|
|
this.tableLoading2 = true |
|
|
|
req.loadLogList2(this.listQuery2).then((response) => { |
|
|
|
this.tableLoading2 = false |
|
|
|
if (response.success) { |
|
|
|
this.list = response.data.records |
|
|
|
this.listQuery.total = response.data.total |
|
|
|
this.list2 = response.data.records |
|
|
|
this.listQuery2.total = response.data.total |
|
|
|
this.listTotal2 = response.data.total |
|
|
|
this.listQuery2.current = response.data.current |
|
|
|
this.listQuery2.size = response.data.size |
|
|
|
} else { |
|
|
|
this.list = [] |
|
|
|
this.listQuery.total = 0 |
|
|
|
this.list2 = [] |
|
|
|
this.listQuery2.total = 0 |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 序号 |
|
|
|
indexMethod2(index) { |
|
|
|
var pagestart = (this.listQuery2.current - 1) * this.listQuery2.size |
|
|
|
var pageindex = index + 1 + pagestart |
|
|
|
return pageindex |
|
|
|
}, |
|
|
|
// 查询按钮 |
|
|
|
handleReset() { |
|
|
|
this.listQuery.current = 1 |
|
|
|
this.getList() |
|
|
|
handleReset1() { |
|
|
|
this.loadLogList() |
|
|
|
}, |
|
|
|
// 重置 |
|
|
|
handleFilter() { |
|
|
|
handleFilter1() { |
|
|
|
|
|
|
|
this.listQuery = { |
|
|
|
current: 1, |
|
|
|
size: 10, |
|
|
|
total: 0, |
|
|
|
params: { |
|
|
|
bankName: "" |
|
|
|
orderNumber: '', |
|
|
|
tradeName: '', |
|
|
|
date: "", |
|
|
|
type: '1', |
|
|
|
// state: "1", // 1待提交 2经理 3监管 4银行 5财务 6待入库 7已办结 |
|
|
|
} |
|
|
|
} |
|
|
|
this.loadLogList() |
|
|
|
}, |
|
|
|
|
|
|
|
// 查询按钮 |
|
|
|
handleReset2() { |
|
|
|
this.loadIn112List() |
|
|
|
}, |
|
|
|
// 重置 |
|
|
|
handleFilter2() { |
|
|
|
|
|
|
|
this.listQuery2 = { |
|
|
|
current: 1, |
|
|
|
size: 10, |
|
|
|
total: 0, |
|
|
|
params: { |
|
|
|
orderNumber: '', |
|
|
|
tradeName: '', |
|
|
|
date: "", |
|
|
|
type: '1', |
|
|
|
// state: "1", // 1待提交 2经理 3监管 4银行 5财务 6待入库 7已办结 |
|
|
|
} |
|
|
|
} |
|
|
|
this.getList() |
|
|
|
this.loadIn112List() |
|
|
|
}, |
|
|
|
// 打开添加 |
|
|
|
toAdd() { |
|
|
|
this.viewState = 2 |
|
|
|
switch (this.index) { |
|
|
|
// 采购 |
|
|
|
case "0": |
|
|
|
this.viewState = 2 |
|
|
|
break; |
|
|
|
// 销售 |
|
|
|
case "1": |
|
|
|
this.viewState = 2 |
|
|
|
break; |
|
|
|
default: |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
// 打开修改 |
|
|
|
toEdit(row) { |
|
|
@ -296,27 +381,49 @@ |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
req.delBySids(row.sid).then((response) => { |
|
|
|
if (response.success) { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
type: 'success', |
|
|
|
message: '删除成功' |
|
|
|
}) |
|
|
|
this.getList() |
|
|
|
} else { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
type: 'error', |
|
|
|
message: '删除失败' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
if ("0" == this.index) { |
|
|
|
req.procureDelBySids(row.sid).then((response) => { |
|
|
|
if (response.success) { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
type: 'success', |
|
|
|
message: '删除成功' |
|
|
|
}) |
|
|
|
this.loadLogList() |
|
|
|
} else { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
type: 'error', |
|
|
|
message: '删除失败' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
if ("1" == this.index) { |
|
|
|
req.procureDelBySids(row.sid).then((response) => { |
|
|
|
if (response.success) { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
type: 'success', |
|
|
|
message: '删除成功' |
|
|
|
}) |
|
|
|
this.loadLogList() |
|
|
|
} else { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
type: 'error', |
|
|
|
message: '删除失败' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
toDetail(row) { |
|
|
|
this.viewState = 4 |
|
|
|
this.$refs['divInfo'].showAdd(row.sid) |
|
|
|
this.$refs['divInfo'].showAdd(row) |
|
|
|
}, |
|
|
|
resetState() { |
|
|
|
this.viewState = 1 |
|
|
|