Commit fe291fec by 张立顺

Merge branch 'SAAS+V4.40.0-0624' into SAAS+V4.41.1

2 parents c2d1720f ec886c63
...@@ -236,3 +236,22 @@ export function shipmentTerminate(data) { ...@@ -236,3 +236,22 @@ export function shipmentTerminate(data) {
data.method = "dj.api.smarcarlife.purchaseOrder.shipmentTerminate" data.method = "dj.api.smarcarlife.purchaseOrder.shipmentTerminate"
return request(data, "post") return request(data, "post")
} }
export function getShipWarehousePage(data) {
data.method = `dj.api.smartcarlife.shipWarehouse.page`
return request(data,'post')
}
/**
* 仓库/工厂发货-保存
* @param {*} data
*/
export function saveShipWarehouse(data){
data.method = `dj.api.smartcarlife.shipWarehouse.save`
return request(data,'post')
}
/**
* 删除发货仓库
*/
export function deleteShipWarehouse(data){
data.method = `dj.api.smartcarlife.shipWarehouse.remove`
return request(data,'post')
}
...@@ -12,6 +12,10 @@ ...@@ -12,6 +12,10 @@
<span class="phone">电话:<span class="label">{{ detailInfo.contactPhone }}</span></span> <span class="phone">电话:<span class="label">{{ detailInfo.contactPhone }}</span></span>
<span class="address">收货地址:<span class="label">{{ detailInfo.contactAddress }}</span></span> <span class="address">收货地址:<span class="label">{{ detailInfo.contactAddress }}</span></span>
</div> </div>
<div class="address-info"
v-if="detailInfo.purchaseOrderRemark">
<span class="address">备注:<span class="label">{{ detailInfo.purchaseOrderRemark }}</span></span>
</div>
<div class="table-class"> <div class="table-class">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :has-page="hasPage" <d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :has-page="hasPage"
@refreshTable="refreshTable" :table-data="detailInfo.tableData" :table-total="detailInfo.tableTotal"> @refreshTable="refreshTable" :table-data="detailInfo.tableData" :table-total="detailInfo.tableTotal">
...@@ -114,6 +118,11 @@ export default { ...@@ -114,6 +118,11 @@ export default {
}, },
{ {
label: '规格',
prop: 'specificationData'
},
{
label: '系列', label: '系列',
prop: 'goodsName' prop: 'goodsName'
}, },
......
<!-- 审核 --> <!-- 审核 -->
<template> <template>
<baseDialog :dialog-config="dialogConfig" :is-show.sync="visible" class="accountDailog" @handleClick="handleAddConfirm"> <baseDialog
:dialog-config="dialogConfig"
:is-show.sync="visible"
class="accountDailog"
@handleClick="handleAddConfirm"
>
<div class="reject-dialog"> <div class="reject-dialog">
<glsx-combi-form class="edit-form-container" ref="editFormRef" label-width="150px" default-width="350px" <glsx-combi-form
:form-ref="editChildRef" :form-obj="infoForm" :form-data="editFormData" :form-rules="formRules"></glsx-combi-form> class="edit-form-container"
ref="editFormRef"
label-width="150px"
default-width="350px"
:form-ref="editChildRef"
:form-obj="infoForm"
:form-data="editFormData"
:form-rules="formRules"
></glsx-combi-form>
<span :style="{ 'margin-left': '150px' }">{{ txtObj[fromPage] }}</span> <span :style="{ 'margin-left': '150px' }">{{ txtObj[fromPage] }}</span>
</div> </div>
</baseDialog> </baseDialog>
</template> </template>
<script> <script>
import { operatorreviewOperatorAudit, businessreviewBusinessAudit } from '@/api/purchaseShopping.js' import {
operatorreviewOperatorAudit,
businessreviewBusinessAudit
} from "@/api/purchaseShopping.js"
import { getShippingEntityInfoAll } from "@api/serviceManage" import { getShippingEntityInfoAll } from "@api/serviceManage"
import { deepClone } from '@/common/util' import { deepClone } from "@/common/util"
export default { export default {
name: 'CheckDialog', name: "CheckDialog",
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
txtObj: { txtObj: {
procurementReview: '说明:订单审核后会自动流转至商务进行复审', procurementReview: "说明:订单审核后会自动流转至商务进行复审",
procurementBusiness: '说明:订单审核后会自动流转至供应商进行确认并发货' procurementBusiness: "说明:订单审核后会自动流转至供应商进行确认并发货"
}, },
infoForm: { infoForm: {
sendOutMerchantId: '' sendOutMerchantId: ""
}, },
dialogConfig: { dialogConfig: {
title: '审核', title: "审核",
width: '750px' width: "750px"
}, },
editChildRef: 'editChildRef', editChildRef: "editChildRef",
formRules: { formRules: {
sendOutMerchantId: [{ required: true, message: '请选择发货主体', trigger: 'change' }] sendOutMerchantId: [
{ required: true, message: "请选择发货主体", trigger: "change" }
]
}, },
editFormData: [{ editFormData: [
label: '发货主体', {
name: 'sendOutMerchantId', label: "发货主体",
isHide: true, name: "sendOutMerchantId",
type: 'select', isHide: true,
optionList: [], type: "select",
optionId: 'shippingEntityId', optionList: [],
optionLabel: 'shippingEntity', optionId: "shippingEntityId",
optionsName: 'shippingEntityList' optionLabel: "shippingEntity",
}, { optionsName: "shippingEntityList"
label: '备注', },
name: 'remark', {
type: 'input', label: "备注",
inputType: 'textarea', name: "remark",
maxlength: '200', type: "input",
showLimit: true inputType: "textarea",
}], maxlength: "200",
showLimit: true
}
],
baseData: { baseData: {
shippingEntityList: [] shippingEntityList: []
} }
...@@ -59,7 +80,7 @@ export default { ...@@ -59,7 +80,7 @@ export default {
props: { props: {
fromPage: { fromPage: {
type: String, type: String,
default: 'procurementReview' default: "procurementReview"
}, },
checkVisible: { checkVisible: {
type: Boolean, type: Boolean,
...@@ -76,46 +97,73 @@ export default { ...@@ -76,46 +97,73 @@ export default {
return this.checkVisible return this.checkVisible
}, },
set(newVal) { set(newVal) {
this.$emit('dialogClose', { flag: newVal, attrName: 'checkVisible' }) this.$emit("dialogClose", { flag: newVal, attrName: "checkVisible" })
} }
} }
}, },
mounted() { mounted() {
this.showOrHideAttr('editFormData', '发货主体', this.fromPage == 'procurementBusiness') this.showOrHideAttr(
if (this.fromPage != 'procurementBusiness') { "editFormData",
"发货主体",
this.fromPage == "procurementBusiness"
)
if (this.fromPage != "procurementBusiness") {
// 获取发货主体数据 // 获取发货主体数据
getShippingEntityInfoAll({}).then(res => { getShippingEntityInfoAll({}).then((res) => {
this.baseData.shippingEntityList = res || [] this.baseData.shippingEntityList = res || []
this.getOptionsList('editFormData', false) this.getOptionsList("editFormData", false)
}) })
} }
}, },
methods: { methods: {
showOrHideAttr(formName, label, isHide) { showOrHideAttr(formName, label, isHide) {
const idx = this[formName].findIndex(item => item.label == label) const idx = this[formName].findIndex((item) => item.label == label)
this[formName][idx].isHide = isHide this[formName][idx].isHide = isHide
}, },
getOptionsList(formName, hasAll = true, refreshSigle) { getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) { if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle) var item = this[formName].find((k) => k.name == refreshSigle)
var index = this[formName].findIndex(k => k.name == refreshSigle) var index = this[formName].findIndex((k) => k.name == refreshSigle)
this.$set(this[formName][index], 'optionList', deepClone(this.baseData[item.optionsName])) this.$set(
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') { this[formName][index],
"optionList",
deepClone(this.baseData[item.optionsName])
)
if (
hasAll &&
this.baseData[item.optionsName].length &&
this.baseData[item.optionsName][0][
this[formName][index].optionLabel
] !== "全部"
) {
const temp = {} const temp = {}
temp[this[formName][index].optionId] = '' temp[this[formName][index].optionId] = ""
temp[this[formName][index].optionLabel] = '全部' temp[this[formName][index].optionLabel] = "全部"
this[formName][index].optionList.unshift(temp) this[formName][index].optionList.unshift(temp)
} }
} else { } else {
this[formName].forEach((item, index) => { this[formName].forEach((item, index) => {
if (item.type === 'select' && this.baseData[item.optionsName].length) { if (
this.$set(this[formName][index], 'optionList', deepClone(this.baseData[item.optionsName])) item.type === "select" &&
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') { this.baseData[item.optionsName].length
) {
this.$set(
this[formName][index],
"optionList",
deepClone(this.baseData[item.optionsName])
)
if (
hasAll &&
this.baseData[item.optionsName].length &&
this.baseData[item.optionsName][0][
this[formName][index].optionLabel
] !== "全部"
) {
const temp = {} const temp = {}
temp[this[formName][index].optionId] = '' temp[this[formName][index].optionId] = ""
temp[this[formName][index].optionLabel] = '全部' temp[this[formName][index].optionLabel] = "全部"
this[formName][index].optionList.unshift(temp) this[formName][index].optionList.unshift(temp)
} }
} }
...@@ -125,7 +173,7 @@ export default { ...@@ -125,7 +173,7 @@ export default {
handleAddConfirm() { handleAddConfirm() {
// return // return
this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => { this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => {
if (valid) { if (valid) {
// console.log(valid) // console.log(valid)
// return // return
...@@ -134,10 +182,13 @@ export default { ...@@ -134,10 +182,13 @@ export default {
params.sendOutMerchantId = infoForm.sendOutMerchantId params.sendOutMerchantId = infoForm.sendOutMerchantId
params.remark = infoForm.remark params.remark = infoForm.remark
params.orderCode = this.paramsObj.orderCode params.orderCode = this.paramsObj.orderCode
const _api = this.fromPage == 'procurementBusiness' ? businessreviewBusinessAudit : operatorreviewOperatorAudit const _api =
this.fromPage == "procurementBusiness"
? businessreviewBusinessAudit
: operatorreviewOperatorAudit
_api(params).then(res => { _api(params).then((res) => {
this.notice.okTips('操作成功') this.notice.okTips("操作成功")
this.visible = true this.visible = true
}) })
} }
...@@ -162,17 +213,16 @@ export default { ...@@ -162,17 +213,16 @@ export default {
font-size: 12px; font-size: 12px;
color: #999999; color: #999999;
} }
.tips { .tips {
color: #999999; color: #999999;
} }
} }
.edit-form-container{ .edit-form-container {
::v-deep .el-textarea { ::v-deep .el-textarea {
width: 432px!important; width: 432px !important;
.el-textarea__inner{ .el-textarea__inner {
height: 70px!important; height: 70px !important;
font-family: auto; font-family: auto;
} }
} }
......
...@@ -9,6 +9,10 @@ ...@@ -9,6 +9,10 @@
<span>{{ detailInfo.deliveryNumber }}</span> <span>{{ detailInfo.deliveryNumber }}</span>
</div> </div>
<div> <div>
发货仓库:
<span>{{ detailInfo.shippingWarehouseName }}</span>
</div>
<div>
承运公司: 承运公司:
<span>{{ detailInfo.deliveryCompany }}</span> <span>{{ detailInfo.deliveryCompany }}</span>
</div> </div>
...@@ -22,7 +26,7 @@ ...@@ -22,7 +26,7 @@
<div class="detail-info"> <div class="detail-info">
<div> <div>
商品名称: 商品名称:
<span>{{ item.upgradeGoodsName }}</span> <span>{{ item.upgradeGoodsName }}&nbsp;&nbsp;&nbsp;&nbsp; {{item.specificationData}}</span>
</div> </div>
<div> <div>
发货数量: 发货数量:
......
...@@ -24,6 +24,10 @@ ...@@ -24,6 +24,10 @@
<span class="address">收货地址:<span <span class="address">收货地址:<span
class="label">{{ detailInfo[0].contactAddress }}</span></span> class="label">{{ detailInfo[0].contactAddress }}</span></span>
</div> </div>
<div class="address-info"
v-if="detailInfo[0].purchaseOrderRemark">
<span class="address">备注:<span class="label">{{ detailInfo[0].purchaseOrderRemark }}</span></span>
</div>
<div v-for="(itemList, index) in detailInfo" <div v-for="(itemList, index) in detailInfo"
:key="index"> :key="index">
<div class="detail-info"> <div class="detail-info">
...@@ -148,6 +152,10 @@ export default { ...@@ -148,6 +152,10 @@ export default {
prop: 'type' prop: 'type'
}, },
{ {
label: '规格',
prop: 'specificationData'
},
{
label: '发货数量', label: '发货数量',
prop: 'purchaseNumber', prop: 'purchaseNumber',
formatter: cellValue => { formatter: cellValue => {
......
...@@ -11,10 +11,14 @@ ...@@ -11,10 +11,14 @@
<span class="phone">电话:<span class="label">{{ detailInfo.contactPhone }}</span></span> <span class="phone">电话:<span class="label">{{ detailInfo.contactPhone }}</span></span>
<span class="address">收货地址:<span class="label">{{ detailInfo.contactAddress }}</span></span> <span class="address">收货地址:<span class="label">{{ detailInfo.contactAddress }}</span></span>
</div> </div>
<!-- <div class="address-info" <div class="address-info"
v-if="detailInfo.rejectCause"> v-if="detailInfo.purchaseOrderRemark">
<span class="address">驳回原因:<span class="label">{{ detailInfo.rejectCause }}</span></span> <span class="address">备注:<span class="label">{{ detailInfo.purchaseOrderRemark }}</span></span>
</div> --> </div>
<div class="address-info"
v-if="detailInfo.terminateDeliveryInstruction">
<span class="address">结束发货说明:<span class="label">{{ detailInfo.terminateDeliveryInstruction }}</span></span>
</div>
<div class="table-class"> <div class="table-class">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" @refreshTable="refreshTable" <d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" @refreshTable="refreshTable"
:table-data="detailInfo.tableData" :table-total="detailInfo.tableTotal"> :table-data="detailInfo.tableData" :table-total="detailInfo.tableTotal">
...@@ -143,6 +147,11 @@ export default { ...@@ -143,6 +147,11 @@ export default {
}, },
{ {
label: '规格',
prop: 'specificationData'
},
{
label: '系列', label: '系列',
prop: 'goodsName' prop: 'goodsName'
}, },
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
:show-btn-ids="['9090104']" /> :show-btn-ids="['9090104']" />
</span> </span>
<span style="margin-right: 10px;" <span style="margin-right: 10px;"
v-show="(scope.scope.purchaseType == 1 && scope.scope.deliveryStatus == 2) || (scope.scope.purchaseType == 1 && scope.scope.deliveryStatus == 3)"> v-show="(scope.scope.purchaseType == 1 && scope.scope.deliveryStatus == 2) || (scope.scope.purchaseType == 1 && scope.scope.deliveryStatus == 3)||(scope.scope.purchaseType == 1 && scope.scope.deliveryStatus == 4)">
<auth-button :data="scope.scope" <auth-button :data="scope.scope"
:show-btn-ids="['9090105']" /> :show-btn-ids="['9090105']" />
</span> </span>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!