Commit 1662a2ee by wangzhihui

```

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

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

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