Commit 308b687c by 前端

Merge branch 'SAAS+V4.39.0-0603' into 'master'

上线合并

See merge request !11
2 parents 0ab2b070 3deff537
This diff could not be displayed because it is too large.
...@@ -42,6 +42,10 @@ export const defaultDeliveryStatusOptions = [ ...@@ -42,6 +42,10 @@ export const defaultDeliveryStatusOptions = [
{ {
id: 2, id: 2,
label: '全部发货' label: '全部发货'
},
{
id: 4,
label: '结束发货'
} }
] ]
......
...@@ -2,44 +2,77 @@ ...@@ -2,44 +2,77 @@
<template> <template>
<div class="purchase"> <div class="purchase">
<div class="container"> <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"> <div class="table-header">
<h2>采购订单列表</h2> <h2>采购订单列表</h2>
<div> <div>
<GLButton type="primary" size="small" @click="handleCreatePurchase" fn="创建采购">商城采购</GLButton> <GLButton type="primary"
<GLButton type="primary" plain size="small" @click="handlePutStprage" fn="自采入库">自采入库</GLButton> size="small"
<el-button size="small" @click="exportExcel">导出</el-button> @click="handleCreatePurchase"
fn="创建采购">商城采购</GLButton>
<GLButton type="primary"
plain
size="small"
@click="handlePutStprage"
fn="自采入库">自采入库</GLButton>
<el-button size="small"
@click="exportExcel">导出</el-button>
</div> </div>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="orderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="orderRef"
<template slot="deliveryStatus" slot-scope="scope"> :getListApi="getListApi"
:noDataImg="url"
:searchForm="tableSearchForm"
:tableParams="tableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun">
<template slot="deliveryStatus"
slot-scope="scope">
<div> <div>
<span v-if="scope.scope.deliveryStatus" :class="[scope.scope.deliveryStatus == 1 ? 'ashSpot' : scope.scope.deliveryStatus == 2 ? 'greenSpot' : 'yellowSpot']"></span> <span v-if="scope.scope.deliveryStatus"
:class="deliveryStatusOpt[scope.scope.deliveryStatus]"></span>
<span>{{ scope.scope.deliveryStatus | deliveryStatus }}</span> <span>{{ scope.scope.deliveryStatus | deliveryStatus }}</span>
</div> </div>
</template> </template>
<template slot="putStatus" slot-scope="scope"> <template slot="putStatus"
slot-scope="scope">
<div> <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> <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"
<span v-if="scope.scope.status==4||scope.scope.status==6||scope.scope.status==7">已驳回</span> :class="Spot[scope.scope.status-1]"></span>
<span v-else>{{ scope.scope.status | orderStatus }}</span> <span
v-if="scope.scope.status==4||scope.scope.status==6||scope.scope.status==7">已驳回</span>
<span v-else>{{ scope.scope.status | orderStatus }}</span>
</div> </div>
</template> </template>
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns"
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton> slot="auth-button"
slot-scope="scope">
<GLTableButton :buttonList="tableButtonList"
:buttonItem="scope.scope"
:buttonNum="3"></GLTableButton>
</div> </div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
<orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :paramsObj="paramsObj"></orderDeatilDialog> <orderDeatilDialog :visible.sync="detailVisible"
v-if="detailVisible"
:paramsObj="paramsObj"></orderDeatilDialog>
</div> </div>
</template> </template>
...@@ -57,7 +90,7 @@ export default { ...@@ -57,7 +90,7 @@ export default {
return { return {
size: 'small', size: 'small',
url: url, url: url,
Spot:['yellowSpot','yellowSpot','ashSpot','redSpot','greenSpot','redSpot','redSpot'], Spot: ['yellowSpot', 'yellowSpot', 'ashSpot', 'redSpot', 'greenSpot', 'redSpot', 'redSpot'],
searchForm: { searchForm: {
status: '', status: '',
deliveryStatus: '', deliveryStatus: '',
...@@ -97,7 +130,7 @@ export default { ...@@ -97,7 +130,7 @@ export default {
isClear: true, isClear: true,
maxlength: 50 maxlength: 50
}, },
{ {
label: '订单状态', label: '订单状态',
name: 'statuses', name: 'statuses',
type: 'select', type: 'select',
...@@ -181,7 +214,7 @@ export default { ...@@ -181,7 +214,7 @@ export default {
fn: '取消' fn: '取消'
}, },
condition: row => { condition: row => {
return row.status == 1&&row.purchaseType == 1 return row.status == 1 && row.purchaseType == 1
}, },
listeners: { listeners: {
click: this.handleCancel click: this.handleCancel
...@@ -301,6 +334,12 @@ export default { ...@@ -301,6 +334,12 @@ export default {
merchantName: [], merchantName: [],
storeUsageList: [], storeUsageList: [],
purchaseTypeList: purchaseTypeList purchaseTypeList: purchaseTypeList
},
deliveryStatusOpt: {
1: "ashSpot",
2: "greenSpot",
3: "yellowSpot",
4: "redSpot"
} }
} }
}, },
...@@ -332,12 +371,12 @@ export default { ...@@ -332,12 +371,12 @@ export default {
return new Promise(resolve => { return new Promise(resolve => {
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]
} else { } else {
this.tableSearchForm.statuses = [this.tableSearchForm.statuses] this.tableSearchForm.statuses = [this.tableSearchForm.statuses]
}
} }
}
delete this.tableSearchForm.warehousingTimeStr delete this.tableSearchForm.warehousingTimeStr
delete this.tableSearchForm.placeOrderTimeStr delete this.tableSearchForm.placeOrderTimeStr
resolve() resolve()
...@@ -361,7 +400,7 @@ export default { ...@@ -361,7 +400,7 @@ export default {
}) })
this.$refs.orderRef.refreshTable() this.$refs.orderRef.refreshTable()
}) })
.catch(() => {}) .catch(() => { })
}) })
}, },
handleDispatch(data) { handleDispatch(data) {
...@@ -445,9 +484,9 @@ export default { ...@@ -445,9 +484,9 @@ export default {
this.$refs.orderRef.data.length ? (this.$refs.orderRef.tableHeightValues = '') : this.$refs.orderRef.setTableHeightFun() this.$refs.orderRef.data.length ? (this.$refs.orderRef.tableHeightValues = '') : this.$refs.orderRef.setTableHeightFun()
}, },
// 创建采购 // 创建采购
handleCreatePurchase() { handleCreatePurchase() {
// let result = await this.checkShipper() // let result = await this.checkShipper()
this.$router.push('/purchaseOrder/add') this.$router.push('/purchaseOrder/add')
}, },
checkShipper() { checkShipper() {
return new Promise(resolve => { return new Promise(resolve => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!