Commit c5a46928 by 前端

Merge branch 'v4.22.0' into 'master'

V4.22.0

See merge request !4
2 parents bb1b422c f307800f
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
export const defaultStatusOptions = [ export const defaultStatusOptions = [
{ {
id: 1, id: 1,
label: "待审核" label: "运营审核"
}, },
{ {
id: 2, id: 2,
label: "已审核" label: "商务审核"
}, },
{ {
id: 3, id: 3,
...@@ -15,7 +15,19 @@ export const defaultStatusOptions = [ ...@@ -15,7 +15,19 @@ export const defaultStatusOptions = [
{ {
id: 4, id: 4,
label: "已驳回" label: "已驳回"
},
{
id: 5,
label: "已审核"
} }
// {
// id: 6,
// label: "已审核"
// },
// {
// id: 7,
// label: "已驳回"
// }
] ]
// 发货状态 // 发货状态
export const defaultDeliveryStatusOptions = [ export const defaultDeliveryStatusOptions = [
......
...@@ -63,14 +63,12 @@ ...@@ -63,14 +63,12 @@
</el-form> </el-form>
</div> </div>
</template> </template>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button size="small" @click="dialogShow = false">关闭</el-button> <el-button size="small" @click="dialogShow = false">关闭</el-button>
<el-button type="primary" size="small" @click="handleSave">保存入库</el-button> <el-button type="primary" size="small" @click="handleSave">保存入库</el-button>
</span> </span>
</GLDialog> </GLDialog>
</template> </template>
<script> <script>
import BigNumber from 'bignumber.js' import BigNumber from 'bignumber.js'
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
...@@ -92,7 +90,6 @@ export default { ...@@ -92,7 +90,6 @@ export default {
get() { get() {
if (this.visible) { if (this.visible) {
this.getDetail() this.getDetail()
} }
return this.visible return this.visible
}, },
...@@ -210,18 +207,18 @@ export default { ...@@ -210,18 +207,18 @@ export default {
this.$apis.delivery.getDeliveryDetail({ id: this.id }).then(res => { this.$apis.delivery.getDeliveryDetail({ id: this.id }).then(res => {
if (res.code == 0) { if (res.code == 0) {
res.data.deliveryDetailList.forEach(item => { res.data.deliveryDetailList.forEach(item => {
item.goodsWarehousingList =[ item.goodsWarehousingList = [
{ {
increaseStockNum: '', increaseStockNum: '',
yqMerchantId: '', yqMerchantId: '',
yqMerchantName: '', yqMerchantName: '',
merchantId: '', merchantId: '',
merchantName: '' merchantName: ''
} }
] ]
}) })
this.detailInfo = res.data this.detailInfo = res.data
this.getMerchantList() this.getMerchantList()
} }
}) })
}, },
...@@ -287,7 +284,6 @@ export default { ...@@ -287,7 +284,6 @@ export default {
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.detail-info { .detail-info {
display: flex; display: flex;
......
<template> <template>
<GLDialog v-if="dialogShow" bigTitle="详细信息" mode="big" :visible.sync="dialogShow" :close-on-click-modal="false"> <GLDialog v-if="dialogShow" bigTitle="详细信息" mode="big" :visible.sync="dialogShow" :close-on-click-modal="false" :hasFooter="false">
<div class="detail-info"> <div class="detail-info">
<div> <div>
发货单号: 发货单号:
...@@ -39,10 +39,6 @@ ...@@ -39,10 +39,6 @@
</el-form> </el-form>
</div> </div>
</template> </template>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="dialogShow = false">关闭</el-button>
</span>
</GLDialog> </GLDialog>
</template> </template>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<span class="num">{{ goodsInfo.purchaseOrderCount || 0 }}笔</span> <span class="num">{{ goodsInfo.purchaseOrderCount || 0 }}笔</span>
</span> </span>
</div> </div>
<div class="productCode">商品编码:{{goodsInfo.type}}</div> <div class="productCode">商品编码:{{goodsInfo.upgradeGoodsList&&goodsInfo.upgradeGoodsList[selectIndex].type}}</div>
<div class="skuCon"> <div class="skuCon">
<div class="label">规格:</div> <div class="label">规格:</div>
<div class="itemCon"> <div class="itemCon">
...@@ -264,7 +264,7 @@ export default { ...@@ -264,7 +264,7 @@ export default {
.skuItem { .skuItem {
box-sizing: border-box; box-sizing: border-box;
width: 234px; min-width: 234px;
height: 36px; height: 36px;
background: #ffffff; background: #ffffff;
border: 1px solid #e7edf9; border: 1px solid #e7edf9;
......
...@@ -29,15 +29,11 @@ ...@@ -29,15 +29,11 @@
<template slot="status" slot-scope="scope"> <template slot="status" slot-scope="scope">
<div> <div>
<span v-if="scope.scope.status" :class="[scope.scope.status == 1 ? 'yellowSpot' : scope.scope.status == 2 ? 'greenSpot' : scope.scope.status == 3 ? 'ashSpot' : 'redSpot']"></span> <span v-if="scope.scope.status" :class="[scope.scope.status == 1 ? 'yellowSpot' : scope.scope.status == 2 ? 'greenSpot' : scope.scope.status == 3 ? 'ashSpot' : 'redSpot']"></span>
<span>{{ 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" slot="auth-button" slot-scope="scope">
<!-- <el-button type="text" @click="handleDetail(scope.scope)">查看</el-button>
<GLButton type="text" size="small" v-show="scope.scope.putStatus == 1 && scope.scope.purchaseType == 2" @click="handleDelete(scope.scope)" fn="删除">删除</GLButton>
<GLButton type="text" size="small" v-show="scope.scope.putStatus == 1" @click="handleEdit(scope.scope)" fn="编辑">编辑</GLButton>
<GLButton type="text" size="small" v-show="scope.scope.status == 1" @click="handleCancel(scope.scope)" fn="取消">取消</GLButton>
<GLButton type="text" size="small" v-show="(scope.scope.putStatus == 1 && scope.scope.deliveryStatus == 2 && scope.scope.purchaseType == 1) || (scope.scope.putStatus == 1 && scope.scope.purchaseType == 2)" @click="handleWarehousing(scope.scope)" fn="入库">入库</GLButton> -->
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton> <GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
</div> </div>
</GLTable> </GLTable>
...@@ -100,9 +96,9 @@ export default { ...@@ -100,9 +96,9 @@ export default {
isClear: true, isClear: true,
maxlength: 50 maxlength: 50
}, },
{ {
label: '订单状态', label: '订单状态',
name: 'status', name: 'statuses',
type: 'select', type: 'select',
optionList: [], optionList: [],
optionId: 'id', optionId: 'id',
...@@ -127,41 +123,6 @@ export default { ...@@ -127,41 +123,6 @@ export default {
optionLabel: 'label', optionLabel: 'label',
optionsName: 'putStatusOptions' optionsName: 'putStatusOptions'
}, },
// {
// label: '入库时间',
// name: 'warehousingTimeStr',
// type: 'datePicker',
// isClear: true,
// pickerOptions: 'beforeRangePickerOptions'
// },
// {
// label: '下单门店',
// name: 'merchantId',
// type: 'select',
// optionList: [],
// optionId: 'merchantNo',
// optionLabel: 'merchantName',
// optionsName: 'merchantName'
// },
// {
// label: '入库门店',
// name: 'putMerchantId',
// type: 'select',
// optionList: [],
// optionId: 'merchantNo',
// optionLabel: 'merchantName',
// optionsName: 'merchantName'
// },
// {
// label: '使用门店',
// name: 'storeUsage',
// type: 'select',
// optionList: [],
// optionId: 'merchantNo',
// optionLabel: 'merchantName',
// optionsName: 'storeUsageList'
// },
{ {
label: '采购类型', label: '采购类型',
name: 'purchaseType', name: 'purchaseType',
...@@ -219,26 +180,12 @@ export default { ...@@ -219,26 +180,12 @@ export default {
fn: '取消' fn: '取消'
}, },
condition: row => { condition: row => {
return row.status == 1 return row.status == 1&&row.purchaseType == 1
}, },
listeners: { listeners: {
click: this.handleCancel click: this.handleCancel
} }
}, },
// {
// type: 'GLButton',
// name: '入库',
// attrs: {
// type: 'text',
// fn: '入库'
// },
// condition: row => {
// return (row.putStatus == 1 && row.deliveryStatus == 2 && row.purchaseType == 1) || (row.putStatus == 1 && row.purchaseType == 2)
// },
// listeners: {
// click: this.handleWarehousing
// }
// },
{ {
type: 'el-button', type: 'el-button',
name: '发货单', name: '发货单',
...@@ -386,6 +333,13 @@ export default { ...@@ -386,6 +333,13 @@ export default {
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
this.tableSearchForm = this.getParams() this.tableSearchForm = this.getParams()
if (this.tableSearchForm.statuses) {
if (this.tableSearchForm.statuses == 4) {
this.tableSearchForm.statuses = [4, 6, 7]
} else {
this.tableSearchForm.statuses = [this.tableSearchForm.statuses]
}
}
delete this.tableSearchForm.warehousingTimeStr delete this.tableSearchForm.warehousingTimeStr
delete this.tableSearchForm.placeOrderTimeStr delete this.tableSearchForm.placeOrderTimeStr
resolve() resolve()
...@@ -493,10 +447,9 @@ export default { ...@@ -493,10 +447,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()
}, },
// 创建采购 // 创建采购
async handleCreatePurchase() { handleCreatePurchase() {
let result = await this.checkShipper() // let result = await this.checkShipper()
console.log(result) this.$router.push('/purchaseOrder/add')
if (result) this.$router.push('/purchaseOrder/add')
}, },
checkShipper() { checkShipper() {
return new Promise(resolve => { return new Promise(resolve => {
......
...@@ -230,7 +230,6 @@ export default { ...@@ -230,7 +230,6 @@ export default {
this.$apis.purchaseShopping.selectByOrderCode({ orderCode: this.orderCode }).then(res => { this.$apis.purchaseShopping.selectByOrderCode({ orderCode: this.orderCode }).then(res => {
res.forEach(item => { res.forEach(item => {
item.putYqMerchantId = String(item.putYqMerchantId) item.putYqMerchantId = String(item.putYqMerchantId)
item.putMerchantId = item.putMerchantId
item.refByYqShopList = [] item.refByYqShopList = []
this.getRefByYqShopList(item, item.putYqMerchantId) this.getRefByYqShopList(item, item.putYqMerchantId)
}) })
...@@ -267,7 +266,7 @@ export default { ...@@ -267,7 +266,7 @@ export default {
this.getRefByYqShopList(data, id) this.getRefByYqShopList(data, id)
}, },
handleStoreSelect(data, id) { handleStoreSelect(data, id) {
this.refByYqShopList.forEach(item => { data.refByYqShopList.forEach(item => {
if (item.merchantId == id) { if (item.merchantId == id) {
data.putMerchantName = item.merchantName data.putMerchantName = item.merchantName
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!