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) {
returnAll: true
})
}
// 确认发货
// export function purchaseOrderConfirmDelivery(data) {
// params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
// data.routerMethod = `${path}purchaseOrder.confirmDelivery`
// return http(data)
// }
// 根据产品id获取产品、规格列表、升级商品详情
export function getByIdWithSpecification(params) {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.goodsinfo.getByIdWithSpecification`
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 = [
{
id: 2,
label: '全部发货'
},
{
id: 4,
label: '结束发货'
}
]
......
......@@ -20,7 +20,7 @@
<div class="detail-info">
<div>
商品名称:
<span>{{ item.upgradeGoodsName }}</span>
<span>{{ item.upgradeGoodsName }}&nbsp;&nbsp;&nbsp;&nbsp; {{ detailInfo.specificationData }}</span>
</div>
<div>
发货数量:
......@@ -31,9 +31,7 @@
可用库存数量:
<span>{{ item.stockNum }}{{ membraneTypeList.includes(item.goodsType) ? `米` : `件` }}</span>
</div>
<div class="add-btn" @click="addLineTable(index)" v-if="item.deliveryCardList === null || item.deliveryCardList.length == 0">
添加入库记录
</div>
<div class="add-btn" @click="addLineTable(index)" v-if="item.deliveryCardList === null || item.deliveryCardList.length == 0">添加入库记录</div>
</div>
<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">
......@@ -73,9 +71,7 @@
</div>
</GLTable>
</el-form>
<div v-else class="message">
已自动入库至商户的权益卡管理中,可前往“库存管理-权益卡管理”中查询
</div>
<div v-else class="message">已自动入库至商户的权益卡管理中,可前往“库存管理-权益卡管理”中查询</div>
</div>
</template>
<el-dialog width="750px" title="查看发货卡号" :visible.sync="innerVisible" append-to-body>
......@@ -83,7 +79,7 @@
</el-dialog>
<span slot="footer" class="dialog-footer">
<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>
</GLDialog>
<filmDialog :visible.sync="filmVisible" :info="info" maxAddNumAttr="stockAddNum" @handleConfirm="handleFilmConfirm"></filmDialog>
......@@ -187,7 +183,8 @@ export default {
filmVisible: false,
info: {},
filmTypeList: [1, 4, 6, 12, 14],
manageMode: false
manageMode: false,
loading: false
}
},
components: {
......@@ -394,7 +391,9 @@ export default {
params.id = this.detailInfo.orderDeliveryId
}
// console.log(params, 'params----')
this.loading = true
this.$apis.delivery.addPurchaseOrder(params).then(res => {
this.loading = false
if (res.code == 0) {
this.$message({
type: 'success',
......
......@@ -20,7 +20,7 @@
<div class="detail-info">
<div>
商品名称:
<span>{{ detailInfo.upgradeGoodsName }}</span>
<span>{{ detailInfo.upgradeGoodsName }}&nbsp;&nbsp; {{detailInfo.specificationData}}</span>
</div>
<div>
发货数量:
......
......@@ -14,7 +14,7 @@
<GLTable ref="orderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<template slot="putStatus" slot-scope="scope">
<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>
</div>
</template>
......@@ -180,6 +180,11 @@ export default {
prop: 'type'
},
{
label: '规格',
prop: 'specificationData',
width: 100
},
{
label: '系列',
prop: 'goodsName'
},
......
......@@ -18,6 +18,10 @@
收货地址:
<span class="label">{{ detailInfo.provinceName }}{{ detailInfo.cityName }}{{ detailInfo.areaName }}{{ detailInfo.contactAddress }}</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="label">{{ detailInfo.rejectCause }}</span>
......@@ -88,6 +92,11 @@ export default {
width: 100
},
{
label: '规格',
prop: 'specificationData',
width: 100
},
{
label: '系列',
prop: 'goodsName',
width: 100,
......
......@@ -42,7 +42,8 @@
<div class="right">
<div class="name one-line-ellipsis">{{ goodsItem.upgradeGoodsName }}</div>
<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 }}
</div>
<div class="num">
......@@ -62,11 +63,18 @@
</div>
</el-drawer>
<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">
<p class="tips">
<span>请核对收货仓信息:</span>
<el-button type="text" @click="editAddress">修改</el-button>
<span>请核对收货仓信息</span>
<el-button type="text" @click="editAddress">
<!-- <img src="@/images/edit.png" alt="" /> -->
<img src="@/images/edit.png" alt="" class="editIcon" />
修改
</el-button>
</p>
<ul class="orderInfoCom">
<li class="item" v-for="(item, index) in addressInfoList" :key="index">
......@@ -76,6 +84,17 @@
</li>
</ul>
</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>
</div>
</template>
......@@ -93,6 +112,7 @@ export default {
},
data() {
return {
remarks: '',
// addressInfo: {},
throttleSubmit: false,
membraneTypeList,
......@@ -107,23 +127,23 @@ export default {
goodsList: [],
addressInfoList: [
{
label: '店铺名称',
label: '店铺名称:',
name: 'yqMerchantName'
},
{
label: '店铺编号',
label: '店铺编号:',
name: 'yqMerchantId'
},
{
label: '收货人',
label: '收货人:',
name: 'contactName'
},
{
label: '收货人电话',
label: '收货人电话:',
name: 'contactPhone'
},
{
label: '收货地址',
label: '收货地址:',
name: 'contactAddress'
}
],
......@@ -181,6 +201,7 @@ export default {
return this.$message.warning('请选择商品')
} else {
this.selectList = selectList
this.remarks = ''
this.dialogShow = true
this.throttleSubmit = false
}
......@@ -198,7 +219,8 @@ export default {
cityName,
areaId,
areaName,
shoppingCarList: this.selectList
shoppingCarList: this.selectList,
remark: this.remarks
}
if (provinceName === null) {
this.dialogShow = false
......@@ -263,6 +285,8 @@ export default {
const upgradeGoodsList = item.list.reduce((total, cur, index) => {
total.push({
upgradeGoodsName: cur.upgradeGoods.upgradeGoodsName,
specificationType: cur.upgradeGoods.specificationType,
formatSpecificationData: cur.upgradeGoods.formatSpecificationData ? cur.upgradeGoods.formatSpecificationData.replaceAll(';~;', '/') : '',
upgradeGoodsId: cur.upgradeGoodsId,
selectedFlag: cur.selectedFlag == 'Y',
goodsNumber: cur.goodsNumber,
......@@ -320,7 +344,7 @@ export default {
return item
})
// 只有有一个选中并且不是全选状态
this.isIndeterminate = checkoutFlag ? false : isIndeterminate
this.goodsSelectTotalNumber = goodsSelectTotalNumber
this.goodsTotalNumber = goodsTotalNumber
......@@ -559,6 +583,7 @@ li {
font-size: 12px;
font-weight: normal;
color: #666666;
margin-right: 10px;
}
}
......@@ -584,24 +609,50 @@ li {
.addressDialog {
.title {
text-align: center;
font-size: 20px;
color: #f8ba37;
margin: 20px 0 40px 0;
font-weight: 600;
font-size: 18px;
color: #333333;
.confirm {
width: 24px;
height: 24px;
vertical-align: -6px;
}
}
.tips {
height: 40px;
line-height: 40px;
display: flex;
justify-content: space-between;
background: #f4f6fc;
border: 1px solid #e5e5e5;
font-weight: 600;
font-size: 14px;
padding: 0px 20px;
color: #333333;
span {
margin-bottom: 20px;
}
.editIcon {
width: 16px;
height: 16px;
vertical-align: -3px;
}
}
.info {
padding: 15px 20px;
// padding: 15px 20px;
// padding: ;
box-shadow: 0px 0px 5px 0px rgba(136, 152, 157, 0.3);
&.info {
margin-top: 15px;
}
}
.orderInfoCom {
padding: 15px 20px;
}
.item {
margin-bottom: 15px;
}
......@@ -612,5 +663,17 @@ li {
text-align: right;
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>
......@@ -2,44 +2,77 @@
<template>
<div class="purchase">
<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">
<h2>采购订单列表</h2>
<div>
<GLButton type="primary" size="small" @click="handleCreatePurchase" fn="创建采购">商城采购</GLButton>
<GLButton type="primary" plain size="small" @click="handlePutStprage" fn="自采入库">自采入库</GLButton>
<el-button size="small" @click="exportExcel">导出</el-button>
<GLButton type="primary"
size="small"
@click="handleCreatePurchase"
fn="创建采购">商城采购</GLButton>
<GLButton type="primary"
plain
size="small"
@click="handlePutStprage"
fn="自采入库">自采入库</GLButton>
<el-button size="small"
@click="exportExcel">导出</el-button>
</div>
</div>
<!-- 表格区域 开始 -->
<GLTable ref="orderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<template slot="deliveryStatus" slot-scope="scope">
<GLTable ref="orderRef"
:getListApi="getListApi"
:noDataImg="url"
:searchForm="tableSearchForm"
:tableParams="tableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun">
<template slot="deliveryStatus"
slot-scope="scope">
<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>
</div>
</template>
<template slot="putStatus" slot-scope="scope">
<template slot="putStatus"
slot-scope="scope">
<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>
</div>
</template>
<template slot="status" slot-scope="scope">
<template slot="status"
slot-scope="scope">
<div>
<span v-if="scope.scope.status" :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-if="scope.scope.status"
: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>
</div>
</template>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
<div class="table-btns"
slot="auth-button"
slot-scope="scope">
<GLTableButton :buttonList="tableButtonList"
:buttonItem="scope.scope"
:buttonNum="3"></GLTableButton>
</div>
</GLTable>
<!-- 表格区域 end -->
</div>
<orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :paramsObj="paramsObj"></orderDeatilDialog>
<orderDeatilDialog :visible.sync="detailVisible"
v-if="detailVisible"
:paramsObj="paramsObj"></orderDeatilDialog>
</div>
</template>
......@@ -57,7 +90,7 @@ export default {
return {
size: 'small',
url: url,
Spot:['yellowSpot','yellowSpot','ashSpot','redSpot','greenSpot','redSpot','redSpot'],
Spot: ['yellowSpot', 'yellowSpot', 'ashSpot', 'redSpot', 'greenSpot', 'redSpot', 'redSpot'],
searchForm: {
status: '',
deliveryStatus: '',
......@@ -97,7 +130,7 @@ export default {
isClear: true,
maxlength: 50
},
{
{
label: '订单状态',
name: 'statuses',
type: 'select',
......@@ -181,7 +214,7 @@ export default {
fn: '取消'
},
condition: row => {
return row.status == 1&&row.purchaseType == 1
return row.status == 1 && row.purchaseType == 1
},
listeners: {
click: this.handleCancel
......@@ -194,7 +227,7 @@ export default {
type: 'text'
},
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: {
click: this.handleDispatch
......@@ -301,6 +334,12 @@ export default {
merchantName: [],
storeUsageList: [],
purchaseTypeList: purchaseTypeList
},
deliveryStatusOpt: {
1: "ashSpot",
2: "greenSpot",
3: "yellowSpot",
4: "redSpot"
}
}
},
......@@ -332,12 +371,12 @@ export default {
return new Promise(resolve => {
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]
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.placeOrderTimeStr
resolve()
......@@ -361,7 +400,7 @@ export default {
})
this.$refs.orderRef.refreshTable()
})
.catch(() => {})
.catch(() => { })
})
},
handleDispatch(data) {
......@@ -445,9 +484,9 @@ export default {
this.$refs.orderRef.data.length ? (this.$refs.orderRef.tableHeightValues = '') : this.$refs.orderRef.setTableHeightFun()
},
// 创建采购
handleCreatePurchase() {
handleCreatePurchase() {
// let result = await this.checkShipper()
this.$router.push('/purchaseOrder/add')
this.$router.push('/purchaseOrder/add')
},
checkShipper() {
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!