Commit 1662a2ee by wangzhihui

```

feat(purchaseOrder): 新增经理审核状态并优化采购订单页面

新增了ID为2的经理审核状态选项到常量配置中。

修复了采购订单页面的以下问题:
- 调整了表单组件的代码格式以提高可读性
- 更新了状态显示逻辑,添加对ID为11的状态的支持
- 修正了交付状态选项的数据格式,统一使用单引号
- 扩展了状态筛选条件,将ID为9和11的状态包含在内
- 清理了多余的空行和代码格式
```
1 parent 35ff515b
...@@ -6,8 +6,13 @@ export const defaultStatusOptions = [ ...@@ -6,8 +6,13 @@ export const defaultStatusOptions = [
}, },
{ {
id: 2, id: 2,
label: '经理审核'
},
{
id: 10,
label: '总监审核' label: '总监审核'
}, },
{ {
id: 8, id: 8,
label: '商务审核' label: '商务审核'
......
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
<template> <template>
<div class="purchase"> <div class="purchase">
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="2" :formObj="searchForm" :formData="showFormData" <GLCombiForm ref="showSearch" :rowNumber="2" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
@handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header"> <div class="table-header">
<h2>采购订单列表</h2> <h2>采购订单列表</h2>
<div> <div>
...@@ -14,9 +13,7 @@ ...@@ -14,9 +13,7 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="orderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" <GLTable ref="orderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
:tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun">
<template slot="deliveryStatus" slot-scope="scope"> <template slot="deliveryStatus" slot-scope="scope">
<div> <div>
<span v-if="scope.scope.deliveryStatus" :class="deliveryStatusOpt[scope.scope.deliveryStatus]"></span> <span v-if="scope.scope.deliveryStatus" :class="deliveryStatusOpt[scope.scope.deliveryStatus]"></span>
...@@ -25,15 +22,14 @@ ...@@ -25,15 +22,14 @@
</template> </template>
<template slot="putStatus" slot-scope="scope"> <template slot="putStatus" slot-scope="scope">
<div> <div>
<span v-if="scope.scope.putStatus" <span v-if="scope.scope.putStatus" :class="[scope.scope.putStatus == 1 ? 'ashSpot' : scope.scope.putStatus == 2 ? 'greenSpot' : 'yellowSpot']"></span>
:class="[scope.scope.putStatus == 1 ? 'ashSpot' : scope.scope.putStatus == 2 ? 'greenSpot' : 'yellowSpot']"></span>
<span>{{ scope.scope.putStatus | putOrderStatus }}</span> <span>{{ scope.scope.putStatus | putOrderStatus }}</span>
</div> </div>
</template> </template>
<template slot="status" slot-scope="scope"> <template slot="status" slot-scope="scope">
<div> <div>
<span v-if="scope.scope.status" :class="Spot[scope.scope.status - 1]"></span> <span v-if="scope.scope.status" :class="Spot[scope.scope.status - 1]"></span>
<span v-if="scope.scope.status == 4 || scope.scope.status == 6 || scope.scope.status == 7 || scope.scope.status == 9">已驳回</span> <span v-if="scope.scope.status == 4 || scope.scope.status == 6 || scope.scope.status == 7 || scope.scope.status == 9 || scope.scope.status == 11">已驳回</span>
<span v-else>{{ scope.scope.status | orderStatus }}</span> <span v-else>{{ scope.scope.status | orderStatus }}</span>
</div> </div>
</template> </template>
...@@ -44,8 +40,7 @@ ...@@ -44,8 +40,7 @@
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
<orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :paramsObj="paramsObj"></orderDeatilDialog> <orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :paramsObj="paramsObj"></orderDeatilDialog>
<orderReturnDialog :visible.sync="detailReturnVisible" v-if="detailReturnVisible" :paramsObj="paramsObj" <orderReturnDialog :visible.sync="detailReturnVisible" v-if="detailReturnVisible" :paramsObj="paramsObj" @handleConfirm="handleDetailReturnConfirm"></orderReturnDialog>
@handleConfirm="handleDetailReturnConfirm"></orderReturnDialog>
</div> </div>
</template> </template>
...@@ -327,10 +322,10 @@ export default { ...@@ -327,10 +322,10 @@ export default {
purchaseTypeList: purchaseTypeList purchaseTypeList: purchaseTypeList
}, },
deliveryStatusOpt: { deliveryStatusOpt: {
1: "ashSpot", 1: 'ashSpot',
2: "greenSpot", 2: 'greenSpot',
3: "yellowSpot", 3: 'yellowSpot',
4: "redSpot" 4: 'redSpot'
} }
} }
}, },
...@@ -366,7 +361,7 @@ export default { ...@@ -366,7 +361,7 @@ export default {
this.tableSearchForm = this.getParams() this.tableSearchForm = this.getParams()
if (this.tableSearchForm.statuses) { if (this.tableSearchForm.statuses) {
if (this.tableSearchForm.statuses == 4) { if (this.tableSearchForm.statuses == 4) {
this.tableSearchForm.statuses = [4, 6, 7] this.tableSearchForm.statuses = [4, 6, 7, 9, 11]
} else { } else {
this.tableSearchForm.statuses = [this.tableSearchForm.statuses] this.tableSearchForm.statuses = [this.tableSearchForm.statuses]
} }
...@@ -394,7 +389,7 @@ export default { ...@@ -394,7 +389,7 @@ export default {
}) })
this.$refs.orderRef.refreshTable() this.$refs.orderRef.refreshTable()
}) })
.catch(() => { }) .catch(() => {})
}) })
}, },
handleDispatch(data) { handleDispatch(data) {
...@@ -502,7 +497,6 @@ export default { ...@@ -502,7 +497,6 @@ export default {
}).then(() => { }).then(() => {
resolve(false) resolve(false)
}) })
} else { } else {
resolve(true) resolve(true)
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!