Commit 4da5812a by 前端

第三轮BUG修复

1 parent db6c0eca
......@@ -26,7 +26,7 @@ export const defaultDeliveryStatusOptions = [
},
{
id: 2,
label: "已发货"
label: "全部发货"
},
{
id: 3,
......@@ -42,7 +42,11 @@ export const defaultPutStatusOptions = [
},
{
id: 2,
label: "已入库"
label: "全部入库"
},
{
id: 3,
label: "部分入库"
}
]
......
<!-- 采购审核 -->
<template>
<d2-container class="container">
<div class="header" slot="header">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" @handleChangeSelect="handleChangeSelect"
:form-data="showFormData">
<div class="header"
slot="header">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
@handleChangeSelect="handleChangeSelect"
:form-data="showFormData">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary" handle>
<el-button :id="tableParams.btnId"
size="small"
type="primary"
handle>
查询
</el-button>
<el-button size="small" @click="handleReset">
<el-button size="small"
@click="handleReset">
重置
</el-button>
</div>
......@@ -21,18 +29,31 @@
<auth-button category="Button" />
</span>
<span>
<el-button type="primary" size="mini" @click="handleExport">
<el-button type="primary"
size="mini"
@click="handleExport">
导出
</el-button>
</span>
</d2-table-header>
<d2-table ref="purchasementReviewTable" :search-form="tableSearchForm" :table-params="tableParams"
:table-data="tableData" :get-list-api="getListApi" :before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
<d2-table ref="purchasementReviewTable"
:search-form="tableSearchForm"
:table-params="tableParams"
:table-data="tableData"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button"
slot-scope="scope"
:data="scope.scope" />
</d2-table>
</div>
<orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :params-obj="paramsObj"></orderDeatilDialog>
<rejectDialog :reject-visible="rejectVisible" v-if="rejectVisible" :params-obj="paramsObj" @dialogClose="dialogClose">
<orderDeatilDialog :visible.sync="detailVisible"
v-if="detailVisible"
:params-obj="paramsObj"></orderDeatilDialog>
<rejectDialog :reject-visible="rejectVisible"
v-if="rejectVisible"
:params-obj="paramsObj"
@dialogClose="dialogClose">
</rejectDialog>
</d2-container>
</template>
......@@ -191,7 +212,7 @@ export default {
},
className: (cellValue) => {
return {
1: 'yellowSpot',
1: 'ashSpot',
2: 'greenSpot',
3: 'ashSpot'
}[cellValue.deliveryStatus]
......
<!-- 采购发货 -->
<template>
<d2-container class="container">
<div class="header" slot="header">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData">
<div class="header"
slot="header">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary" handle>
<el-button :id="tableParams.btnId"
size="small"
type="primary"
handle>
查询
</el-button>
<el-button size="small" @click="handleReset">
<el-button size="small"
@click="handleReset">
重置
</el-button>
</div>
......@@ -20,41 +28,68 @@
<auth-button category="Button" />
</span>
<span>
<el-button type="primary" size="mini" @click="handleExport">
<el-button type="primary"
size="mini"
@click="handleExport">
导出
</el-button>
</span>
</d2-table-header>
<d2-table ref="purchaseAndDeliveryTable" :search-form="tableSearchForm" :table-params="tableParams"
:table-data="tableData" :get-list-api="getListApi" :before-search-fn="beforeSearchFn">
<div slot="auth-button" slot-scope="scope">
<d2-table ref="purchaseAndDeliveryTable"
:search-form="tableSearchForm"
:table-params="tableParams"
:table-data="tableData"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<div slot="auth-button"
slot-scope="scope">
<!-- 查看 -->
<span style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9090401']" />
<auth-button :data="scope.scope"
:show-btn-ids="['9090401']" />
</span>
<!-- 确认发货 -->
<span v-show="scope.scope.status == 2" style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9090402']" />
<span v-show="scope.scope.status == 2"
style="margin-right: 10px;">
<auth-button :data="scope.scope"
:show-btn-ids="['9090402']" />
</span>
<!-- 驳回 -->
<span v-show="scope.scope.deliveryStatus == 1">
<!-- <el-button :data="scope.scope" type="text" @click="handleReject(scope.scope)">驳回</el-button> -->
<auth-button :data="scope.scope" :show-btn-ids="['9090403']" />
<auth-button :data="scope.scope"
:show-btn-ids="['9090403']" />
</span>
</div>
</d2-table>
</div>
<orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :params-obj="paramsObj"></orderDeatilDialog>
<EditOrderDialog v-if="editVisible" :visible.sync="editVisible" :params-obj="dialogData" @editClose="editClose">
<orderDeatilDialog :visible.sync="detailVisible"
v-if="detailVisible"
:params-obj="paramsObj"></orderDeatilDialog>
<EditOrderDialog v-if="editVisible"
:visible.sync="editVisible"
:params-obj="dialogData"
@editClose="editClose">
</EditOrderDialog>
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config"-->
<d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提示" @confirmDialog="handleRejectConfirm"
@closeDialog="handleRejectClose">
<d2-dialog v-if="rejectVisible"
:is-visible="rejectVisible"
title="驳回提示"
@confirmDialog="handleRejectConfirm"
@closeDialog="handleRejectClose">
<div class="reject-dialog">
<el-form :rules="rejectRules" :model="rejectData" label-width="150px" ref="delivery-dialog-form">
<el-form-item label="驳回原因:" prop="rejectCause">
<el-input type="textarea" placeholder="请输入驳回原因" maxlength="50" show-word-limit
v-model.trim="rejectData.rejectCause" class="dis-in-block reject-input" />
<el-form :rules="rejectRules"
:model="rejectData"
label-width="150px"
ref="delivery-dialog-form">
<el-form-item label="驳回原因:"
prop="rejectCause">
<el-input type="textarea"
placeholder="请输入驳回原因"
maxlength="50"
show-word-limit
v-model.trim="rejectData.rejectCause"
class="dis-in-block reject-input" />
</el-form-item>
</el-form>
</div>
......@@ -238,7 +273,7 @@ export default {
},
className: (cellValue) => {
return {
1: 'yellowSpot',
1: 'ashSpot',
2: 'greenSpot',
3: 'ashSpot'
}[cellValue.deliveryStatus]
......
......@@ -237,7 +237,7 @@ export default {
},
className: (cellValue) => {
return {
1: 'yellowSpot',
1: 'ashSpot',
2: 'greenSpot',
3: 'ashSpot'
}[cellValue.deliveryStatus]
......@@ -265,8 +265,9 @@ export default {
},
className: (cellValue) => {
return {
1: 'yellowSpot',
2: 'greenSpot'
1: 'ashSpot',
2: 'greenSpot',
3: 'ashSpot'
}[cellValue.putStatus]
}
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!