Commit 6923cebb by 前端

Merge branch 'SAAS+V4.46-1031' into 'develop'

上线合并

See merge request !18
2 parents 1d0b0f48 b1249dee
This diff could not be displayed because it is too large.
...@@ -234,11 +234,17 @@ export function checkShipper(params) { ...@@ -234,11 +234,17 @@ export function checkShipper(params) {
returnAll: true returnAll: true
}) })
} }
// 确认发货 // 根据产品id获取产品、规格列表、升级商品详情
// export function purchaseOrderConfirmDelivery(data) { export function getByIdWithSpecification(params) {
// params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale` params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
// data.routerMethod = `${path}purchaseOrder.confirmDelivery` params.routerMethod = `dj.api.goodsinfo.getByIdWithSpecification`
// return http(data) return http({
// } url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default { checkShipper, get4SRefByYqShopList, selectByOrderCode, purchaseOrderDelete, getManageMode, getMerchantList, purchaseOrderPutIn, exportExcel, shoppingCarUpdateNumber, purchaseOrderAdd, shoppingCarAdd, shoppingCarRemove, updateSelectedFlag, listGroupByGoodsType, getPurchaseOrderList, purchaseOrderCancelOrCheck, purchaseOrderDetail, listWithPagePurchaseInfo, addressGet, addressSave } export default { checkShipper, get4SRefByYqShopList, selectByOrderCode, purchaseOrderDelete, getManageMode, getMerchantList, purchaseOrderPutIn, exportExcel, shoppingCarUpdateNumber, purchaseOrderAdd, shoppingCarAdd, shoppingCarRemove, updateSelectedFlag, listGroupByGoodsType, getPurchaseOrderList, purchaseOrderCancelOrCheck, purchaseOrderDetail, listWithPagePurchaseInfo, addressGet, addressSave, getByIdWithSpecification }
...@@ -42,6 +42,10 @@ export const defaultDeliveryStatusOptions = [ ...@@ -42,6 +42,10 @@ export const defaultDeliveryStatusOptions = [
{ {
id: 2, id: 2,
label: '全部发货' label: '全部发货'
},
{
id: 4,
label: '结束发货'
} }
] ]
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<div class="detail-info"> <div class="detail-info">
<div> <div>
商品名称: 商品名称:
<span>{{ item.upgradeGoodsName }}</span> <span>{{ item.upgradeGoodsName }}&nbsp;&nbsp;&nbsp;&nbsp; {{ detailInfo.specificationData }}</span>
</div> </div>
<div> <div>
发货数量: 发货数量:
...@@ -31,9 +31,7 @@ ...@@ -31,9 +31,7 @@
可用库存数量: 可用库存数量:
<span>{{ item.stockNum }}{{ membraneTypeList.includes(item.goodsType) ? `米` : `件` }}</span> <span>{{ item.stockNum }}{{ membraneTypeList.includes(item.goodsType) ? `米` : `件` }}</span>
</div> </div>
<div class="add-btn" @click="addLineTable(index)" v-if="item.deliveryCardList === null || item.deliveryCardList.length == 0"> <div class="add-btn" @click="addLineTable(index)" v-if="item.deliveryCardList === null || item.deliveryCardList.length == 0">添加入库记录</div>
添加入库记录
</div>
</div> </div>
<el-form ref="addForm" :model="item" size="small" :rules="rules" v-if="item.deliveryCardList === null || item.deliveryCardList.length == 0"> <el-form ref="addForm" :model="item" size="small" :rules="rules" v-if="item.deliveryCardList === null || item.deliveryCardList.length == 0">
<GLTable :tableData="item.goodsWarehousingList" :noDataImg="url" :tableParams="tableParams" :hasPage="false"> <GLTable :tableData="item.goodsWarehousingList" :noDataImg="url" :tableParams="tableParams" :hasPage="false">
...@@ -73,9 +71,7 @@ ...@@ -73,9 +71,7 @@
</div> </div>
</GLTable> </GLTable>
</el-form> </el-form>
<div v-else class="message"> <div v-else class="message">已自动入库至商户的权益卡管理中,可前往“库存管理-权益卡管理”中查询</div>
已自动入库至商户的权益卡管理中,可前往“库存管理-权益卡管理”中查询
</div>
</div> </div>
</template> </template>
<el-dialog width="750px" title="查看发货卡号" :visible.sync="innerVisible" append-to-body> <el-dialog width="750px" title="查看发货卡号" :visible.sync="innerVisible" append-to-body>
...@@ -83,7 +79,7 @@ ...@@ -83,7 +79,7 @@
</el-dialog> </el-dialog>
<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" :loading="loading">保存入库</el-button>
</span> </span>
</GLDialog> </GLDialog>
<filmDialog :visible.sync="filmVisible" :info="info" maxAddNumAttr="stockAddNum" @handleConfirm="handleFilmConfirm"></filmDialog> <filmDialog :visible.sync="filmVisible" :info="info" maxAddNumAttr="stockAddNum" @handleConfirm="handleFilmConfirm"></filmDialog>
...@@ -187,7 +183,8 @@ export default { ...@@ -187,7 +183,8 @@ export default {
filmVisible: false, filmVisible: false,
info: {}, info: {},
filmTypeList: [1, 4, 6, 12, 14], filmTypeList: [1, 4, 6, 12, 14],
manageMode: false manageMode: false,
loading: false
} }
}, },
components: { components: {
...@@ -394,7 +391,9 @@ export default { ...@@ -394,7 +391,9 @@ export default {
params.id = this.detailInfo.orderDeliveryId params.id = this.detailInfo.orderDeliveryId
} }
// console.log(params, 'params----') // console.log(params, 'params----')
this.loading = true
this.$apis.delivery.addPurchaseOrder(params).then(res => { this.$apis.delivery.addPurchaseOrder(params).then(res => {
this.loading = false
if (res.code == 0) { if (res.code == 0) {
this.$message({ this.$message({
type: 'success', type: 'success',
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<div class="detail-info"> <div class="detail-info">
<div> <div>
商品名称: 商品名称:
<span>{{ detailInfo.upgradeGoodsName }}</span> <span>{{ detailInfo.upgradeGoodsName }}&nbsp;&nbsp; {{detailInfo.specificationData}}</span>
</div> </div>
<div> <div>
发货数量: 发货数量:
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<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="putStatus" slot-scope="scope"> <template slot="putStatus" slot-scope="scope">
<div> <div>
<span :class="[scope.scope.putStatus == 1 ? 'ashSpot' :scope.scope.putStatus == 2? 'greenSpot':'yellowSpot']"></span> <span :class="[scope.scope.putStatus == 1 ? 'ashSpot' : scope.scope.putStatus == 2 ? 'greenSpot' : 'yellowSpot']"></span>
<span>{{ scope.scope.putStatus | puStatus }}</span> <span>{{ scope.scope.putStatus | puStatus }}</span>
</div> </div>
</template> </template>
...@@ -180,6 +180,11 @@ export default { ...@@ -180,6 +180,11 @@ export default {
prop: 'type' prop: 'type'
}, },
{ {
label: '规格',
prop: 'specificationData',
width: 100
},
{
label: '系列', label: '系列',
prop: 'goodsName' prop: 'goodsName'
}, },
......
...@@ -18,6 +18,10 @@ ...@@ -18,6 +18,10 @@
收货地址: 收货地址:
<span class="label">{{ detailInfo.provinceName }}{{ detailInfo.cityName }}{{ detailInfo.areaName }}{{ detailInfo.contactAddress }}</span> <span class="label">{{ detailInfo.provinceName }}{{ detailInfo.cityName }}{{ detailInfo.areaName }}{{ detailInfo.contactAddress }}</span>
</span> </span>
<span class="address" v-if="detailInfo.purchaseOrderRemark">
备注:
<span class="label">{{ detailInfo.purchaseOrderRemark }}</span>
</span>
<span class="address" v-if="detailInfo.rejectCause"> <span class="address" v-if="detailInfo.rejectCause">
驳回原因: 驳回原因:
<span class="label">{{ detailInfo.rejectCause }}</span> <span class="label">{{ detailInfo.rejectCause }}</span>
...@@ -88,6 +92,11 @@ export default { ...@@ -88,6 +92,11 @@ export default {
width: 100 width: 100
}, },
{ {
label: '规格',
prop: 'specificationData',
width: 100
},
{
label: '系列', label: '系列',
prop: 'goodsName', prop: 'goodsName',
width: 100, width: 100,
......
...@@ -42,7 +42,8 @@ ...@@ -42,7 +42,8 @@
<div class="right"> <div class="right">
<div class="name one-line-ellipsis">{{ goodsItem.upgradeGoodsName }}</div> <div class="name one-line-ellipsis">{{ goodsItem.upgradeGoodsName }}</div>
<div class="price"> <div class="price">
<span class="label">商品价格:</span> <!-- v-if="goodsItem.specificationType == 2" .replace(';~;', '/')-->
<span class="label" v-if="goodsItem.specificationType == 2">{{ goodsItem.formatSpecificationData }}</span>
¥{{ goodsItem.purchasePrice }} ¥{{ goodsItem.purchasePrice }}
</div> </div>
<div class="num"> <div class="num">
...@@ -62,11 +63,18 @@ ...@@ -62,11 +63,18 @@
</div> </div>
</el-drawer> </el-drawer>
<GLDialog class="addressDialog" mode="big" bigTitle="结算确认" okText="确定结算" :visible.sync="dialogShow" :close-on-click-modal="false" @onOk="handleSubmit" @onCancel="dialogShow = false"> <GLDialog class="addressDialog" mode="big" bigTitle="结算确认" okText="确定结算" :visible.sync="dialogShow" :close-on-click-modal="false" @onOk="handleSubmit" @onCancel="dialogShow = false">
<h4 class="title">确认要结算订单吗?</h4> <h4 class="title">
<img src="@/images/confirm.png" alt="" class="confirm" />
确认要结算订单吗?
</h4>
<div class="info"> <div class="info">
<p class="tips"> <p class="tips">
<span>请核对收货仓信息:</span> <span>请核对收货仓信息</span>
<el-button type="text" @click="editAddress">修改</el-button> <el-button type="text" @click="editAddress">
<!-- <img src="@/images/edit.png" alt="" /> -->
<img src="@/images/edit.png" alt="" class="editIcon" />
修改
</el-button>
</p> </p>
<ul class="orderInfoCom"> <ul class="orderInfoCom">
<li class="item" v-for="(item, index) in addressInfoList" :key="index"> <li class="item" v-for="(item, index) in addressInfoList" :key="index">
...@@ -76,6 +84,17 @@ ...@@ -76,6 +84,17 @@
</li> </li>
</ul> </ul>
</div> </div>
<div class="info">
<p class="tips">
<span>订单备注</span>
</p>
<div class="item-remark orderInfoCom">
<div class="label">备注:</div>
<div class="item-content">
<el-input show-word-limit type="textarea" maxlength="200" :rows="3" placeholder="备注说明" v-model="remarks"></el-input>
</div>
</div>
</div>
</GLDialog> </GLDialog>
</div> </div>
</template> </template>
...@@ -93,6 +112,7 @@ export default { ...@@ -93,6 +112,7 @@ export default {
}, },
data() { data() {
return { return {
remarks: '',
// addressInfo: {}, // addressInfo: {},
throttleSubmit: false, throttleSubmit: false,
membraneTypeList, membraneTypeList,
...@@ -107,23 +127,23 @@ export default { ...@@ -107,23 +127,23 @@ export default {
goodsList: [], goodsList: [],
addressInfoList: [ addressInfoList: [
{ {
label: '店铺名称', label: '店铺名称:',
name: 'yqMerchantName' name: 'yqMerchantName'
}, },
{ {
label: '店铺编号', label: '店铺编号:',
name: 'yqMerchantId' name: 'yqMerchantId'
}, },
{ {
label: '收货人', label: '收货人:',
name: 'contactName' name: 'contactName'
}, },
{ {
label: '收货人电话', label: '收货人电话:',
name: 'contactPhone' name: 'contactPhone'
}, },
{ {
label: '收货地址', label: '收货地址:',
name: 'contactAddress' name: 'contactAddress'
} }
], ],
...@@ -181,6 +201,7 @@ export default { ...@@ -181,6 +201,7 @@ export default {
return this.$message.warning('请选择商品') return this.$message.warning('请选择商品')
} else { } else {
this.selectList = selectList this.selectList = selectList
this.remarks = ''
this.dialogShow = true this.dialogShow = true
this.throttleSubmit = false this.throttleSubmit = false
} }
...@@ -198,7 +219,8 @@ export default { ...@@ -198,7 +219,8 @@ export default {
cityName, cityName,
areaId, areaId,
areaName, areaName,
shoppingCarList: this.selectList shoppingCarList: this.selectList,
remark: this.remarks
} }
if (provinceName === null) { if (provinceName === null) {
this.dialogShow = false this.dialogShow = false
...@@ -263,6 +285,8 @@ export default { ...@@ -263,6 +285,8 @@ export default {
const upgradeGoodsList = item.list.reduce((total, cur, index) => { const upgradeGoodsList = item.list.reduce((total, cur, index) => {
total.push({ total.push({
upgradeGoodsName: cur.upgradeGoods.upgradeGoodsName, upgradeGoodsName: cur.upgradeGoods.upgradeGoodsName,
specificationType: cur.upgradeGoods.specificationType,
formatSpecificationData: cur.upgradeGoods.formatSpecificationData ? cur.upgradeGoods.formatSpecificationData.replaceAll(';~;', '/') : '',
upgradeGoodsId: cur.upgradeGoodsId, upgradeGoodsId: cur.upgradeGoodsId,
selectedFlag: cur.selectedFlag == 'Y', selectedFlag: cur.selectedFlag == 'Y',
goodsNumber: cur.goodsNumber, goodsNumber: cur.goodsNumber,
...@@ -559,6 +583,7 @@ li { ...@@ -559,6 +583,7 @@ li {
font-size: 12px; font-size: 12px;
font-weight: normal; font-weight: normal;
color: #666666; color: #666666;
margin-right: 10px;
} }
} }
...@@ -584,24 +609,50 @@ li { ...@@ -584,24 +609,50 @@ li {
.addressDialog { .addressDialog {
.title { .title {
text-align: center; text-align: center;
font-size: 20px;
color: #f8ba37;
margin: 20px 0 40px 0; margin: 20px 0 40px 0;
font-weight: 600;
font-size: 18px;
color: #333333;
.confirm {
width: 24px;
height: 24px;
vertical-align: -6px;
}
} }
.tips { .tips {
height: 40px;
line-height: 40px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
background: #f4f6fc;
border: 1px solid #e5e5e5;
font-weight: 600;
font-size: 14px;
padding: 0px 20px;
color: #333333;
span { span {
margin-bottom: 20px; margin-bottom: 20px;
} }
.editIcon {
width: 16px;
height: 16px;
vertical-align: -3px;
}
} }
.info { .info {
padding: 15px 20px; // padding: 15px 20px;
// padding: ;
box-shadow: 0px 0px 5px 0px rgba(136, 152, 157, 0.3); box-shadow: 0px 0px 5px 0px rgba(136, 152, 157, 0.3);
&.info {
margin-top: 15px;
}
}
.orderInfoCom {
padding: 15px 20px;
} }
.item { .item {
margin-bottom: 15px; margin-bottom: 15px;
} }
...@@ -612,5 +663,17 @@ li { ...@@ -612,5 +663,17 @@ li {
text-align: right; text-align: right;
margin-right: 10px; margin-right: 10px;
} }
.item-remark {
display: flex;
.item-content {
width: 500px;
}
::v-deep .el-input__count {
right: -50px;
bottom: 5px;
font-size: 12px;
color: #999999;
}
}
} }
</style> </style>
...@@ -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-if="scope.scope.status==4||scope.scope.status==6||scope.scope.status==7">已驳回</span>
<span v-else>{{ scope.scope.status | orderStatus }}</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: '',
...@@ -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
...@@ -194,7 +227,7 @@ export default { ...@@ -194,7 +227,7 @@ export default {
type: 'text' type: 'text'
}, },
condition: row => { condition: row => {
return (row.purchaseType == 1 && row.deliveryStatus == 2) || (row.purchaseType == 1 && row.deliveryStatus == 3) return (row.purchaseType == 1 && row.deliveryStatus == 2) || (row.purchaseType == 1 && row.deliveryStatus == 3)||(row.purchaseType == 1 && row.deliveryStatus == 4)
}, },
listeners: { listeners: {
click: this.handleDispatch click: this.handleDispatch
...@@ -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"
} }
} }
}, },
...@@ -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) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!