Commit a782a69f by 前端

BUG修复

1 parent 84d4fb19
......@@ -58,7 +58,7 @@ export const routerName = {
{
authId: "9080202",
parentId: "90802",
label: "查看",
label: "统计",
handle: "look"
}
],
......
<template>
<baseDialog :is-show.sync="dialogShow" :config="dialogConfig.setting" :dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose">
<div class="detail-content" v-if="dialogShow">
<baseDialog :is-show.sync="dialogShow"
:config="dialogConfig.setting"
:dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose">
<div class="detail-content"
v-if="dialogShow">
<div class="addressTitle">
<img src="../images/addressIcon.webp" alt="" class="icon">
<img src="../images/addressIcon.webp"
alt=""
class="icon">
<span class="title">{{ paramsObj.merchantName }}</span>
</div>
<div class="address-info">
......@@ -11,9 +16,16 @@
<span class="phone">电话:<span class="label">{{ detailInfo.contactPhone }}</span></span>
<span class="address">收货地址:<span class="label">{{ detailInfo.contactAddress }}</span></span>
</div>
<div class="address-info"
v-if="detailInfo.rejectCause">
<span class="address">驳回原因:<span class="label">{{ detailInfo.rejectCause }}</span></span>
</div>
<div class="table-class">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" @refreshTable="refreshTable"
:table-data="detailInfo.tableData" :table-total="detailInfo.tableTotal">
<d2-table ref="purchaseOrderDetailTable"
:table-params="tableParams"
@refreshTable="refreshTable"
:table-data="detailInfo.tableData"
:table-total="detailInfo.tableTotal">
</d2-table>
</div>
</div>
......@@ -153,7 +165,7 @@ export default {
font-size: 14px;
color: #666666;
>span {
> span {
margin-right: 20px;
margin-bottom: 10px;
}
......
......@@ -76,7 +76,8 @@ export default {
status: '',
deliveryStatus: '',
putStatus: '',
merchantId: '',
// merchantId: '',
merchantName: '',
sortType: 2,
orderTimeStr: []
},
......@@ -96,14 +97,20 @@ export default {
isClear: true,
pickerOptions: 'rangePickerOptions'
},
// {
// label: '下单门店',
// name: 'merchantId',
// type: 'select',
// optionList: [],
// optionId: 'merchantNo',
// optionLabel: 'merchantName',
// optionsName: 'merchantName'
// },
{
label: '下单门店',
name: 'merchantId',
type: 'select',
optionList: [],
optionId: 'merchantNo',
optionLabel: 'merchantName',
optionsName: 'merchantName'
name: 'merchantName',
type: 'input',
isClear: true
},
{
label: '订单状态',
......
<!-- 采购订单 -->
<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>
</div>
<div class="d2-container-content">
<d2-table-header>
<span slot="left" v-if="!userInfo.beSuper && userInfo.beYQMerchant">
<span slot="left"
v-if="!userInfo.beSuper && userInfo.beYQMerchant">
<!-- <auth-button category="Button" /> -->
<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="purchaseOrderTable" :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="purchaseOrderTable"
: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="['9090102']" />
<auth-button :data="scope.scope"
:show-btn-ids="['9090102']" />
</span>
<!-- 取消 -->
<span style="margin-right: 10px;"
v-show="scope.scope.status == 1 && !userInfo.beSuper && userInfo.beYQMerchant">
<auth-button :data="scope.scope" :show-btn-ids="['9090103']" />
v-show="scope.scope.status == 1 && !userInfo.beSuper && userInfo.beYQMerchant">
<auth-button :data="scope.scope"
:show-btn-ids="['9090103']" />
</span>
<!-- 入库 -->
<span v-show="scope.scope.putStatus == 1 && !userInfo.beSuper && userInfo.beYQMerchant">
<auth-button :data="scope.scope" :show-btn-ids="['9090104']" />
<auth-button :data="scope.scope"
:show-btn-ids="['9090104']" />
</span>
</div>
</d2-table>
</div>
<orderDeatilDialog :visible.sync="detailVisible" :params-obj="paramsObj"></orderDeatilDialog>
<orderDeatilDialog :visible.sync="detailVisible"
:params-obj="paramsObj"></orderDeatilDialog>
</d2-container>
</template>
......@@ -66,8 +86,10 @@ export default {
status: '',
deliveryStatus: '',
putStatus: '',
merchantId: '',
putMerchantId: '',
// merchantId: '',
// putMerchantId: '',
merchantName: '',
putMerchantName: '',
sortType: 1,
orderTimeStr: [],
putTimeStr: []
......@@ -122,24 +144,36 @@ export default {
isClear: true,
pickerOptions: 'rangePickerOptions'
},
// {
// label: '下单门店',
// name: 'merchantId',
// type: 'select',
// optionList: [],
// optionId: 'merchantNo',
// optionLabel: 'merchantName',
// optionsName: 'merchantName'
// },
{
label: '下单门店',
name: 'merchantId',
type: 'select',
optionList: [],
optionId: 'merchantNo',
optionLabel: 'merchantName',
optionsName: 'merchantName'
name: 'merchantName',
type: 'input',
isClear: true
},
// {
// label: '入库门店',
// name: 'putMerchantId',
// type: 'select',
// optionList: [],
// optionId: 'merchantNo',
// optionLabel: 'merchantName',
// optionsName: 'merchantName'
// }
{
label: '入库门店',
name: 'putMerchantId',
type: 'select',
optionList: [],
optionId: 'merchantNo',
optionLabel: 'merchantName',
optionsName: 'merchantName'
}
name: 'putMerchantName',
type: 'input',
isClear: true
},
],
getListApi: getPurchaseOrderList,
// 表格参数
......
......@@ -173,6 +173,12 @@ export default {
label: '调入门店',
prop: 'callInMerchantName',
}, {
label: '承运单号',
prop: 'deliveryNumber',
}, {
label: '承运公司',
prop: 'deliveryCompany',
}, {
label: '备注',
prop: 'remark',
}
......
......@@ -62,7 +62,8 @@ export default {
merchantId: '',
goodsType: '',
businessCode: '',
goodsSeries: ''
goodsSeries: '',
deliveryNumber: ''
},
searchFormSearch: {},
searchSelectObj: {
......@@ -115,6 +116,12 @@ export default {
maxlength: '20',
isClear: true
}, {
label: '发货单号',
name: 'deliveryNumber',
type: 'input',
maxlength: '20',
isClear: true
}, {
label: '系列',
name: 'goodsSeries',
type: 'input',
......@@ -194,7 +201,12 @@ export default {
}
}, {
label: '关联业务单号',
prop: 'businessCode'
prop: 'businessCode',
width: 150
}, {
label: '关联发货单号',
prop: 'deliveryNumber',
width: 150
}, {
label: '入库仓库',
prop: 'yqMerchantName',
......@@ -311,7 +323,8 @@ export default {
merchantId: '',
goodsType: '',
businessCode: '',
goodsSeries: ''
goodsSeries: '',
deliveryNumber: ''
}
this.$refs.recordTable.refreshTable()
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!