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