Commit 334e11eb by 前端

Merge branch 'SAAS+V4.56.0-0908' into 'SAAS+V4.56.2'

上线完合并到目前开发分支

See merge request !487
2 parents f0183ee3 efb52e6a
<template>
<d2-dialog :title="title"
:is-visible.sync="selectGoodsVisible"
width="70%"
btn-ok-label="确定"
@confirmDialog="handleSelectGoodsConfirm"
@closeDialog="handleSelectGoodsClose"
class="selectGoods">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:label-width="'100px'"
:form-data="showFormData">
<d2-dialog :title="title" :is-visible.sync="selectGoodsVisible" width="70%" btn-ok-label="确定"
@confirmDialog="handleSelectGoodsConfirm" @closeDialog="handleSelectGoodsClose" class="selectGoods">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :label-width="'100px'"
:form-data="showFormData">
<template slot="commodityCode">
<el-input :style="{ width: '100%'}"
placeholder="请输入商品ID"
v-model.trim="searchForm['commodityCode']"
:clearable="true"
:maxlength="50"
@input="event => searchInput(event, 'commodityCode')" />
<el-input :style="{ width: '100%' }" placeholder="请输入商品ID" v-model.trim="searchForm['commodityCode']"
:clearable="true" :maxlength="50" @input="event => searchInput(event, 'commodityCode')" />
</template>
<template slot="type">
<el-input :style="{ width: '100%'}"
placeholder="请输入商品编码"
v-model.trim="searchForm['type']"
:clearable="true"
:maxlength="50"
@input="event => searchInput(event, 'type')" />
<el-input :style="{ width: '100%' }" placeholder="请输入商品编码" v-model.trim="searchForm['type']" :clearable="true"
:maxlength="50" @input="event => searchInput(event, 'type')" />
</template>
<template slot="thirdPartyCode">
<el-input :style="{ width: '100%'}"
placeholder="请输入第三方编码"
v-model.trim="searchForm['thirdPartyCode']"
:clearable="true"
:maxlength="50"
@input="event => searchInput(event, 'thirdPartyCode')" />
<el-input :style="{ width: '100%' }" placeholder="请输入第三方编码" v-model.trim="searchForm['thirdPartyCode']"
:clearable="true" :maxlength="50" @input="event => searchInput(event, 'thirdPartyCode')" />
</template>
<template slot="baseGoodsCommodityCode">
<el-input :style="{ width: '100%'}"
placeholder="请输入系列ID"
v-model.trim="searchForm['baseGoodsCommodityCode']"
:clearable="true"
:maxlength="50"
@input="event => searchInput(event, 'baseGoodsCommodityCode')" />
<el-input :style="{ width: '100%' }" placeholder="请输入系列ID" v-model.trim="searchForm['baseGoodsCommodityCode']"
:clearable="true" :maxlength="50" @input="event => searchInput(event, 'baseGoodsCommodityCode')" />
</template>
<template slot="goodsCascader">
<el-cascader :options="baseData.productTypeList"
style="width: 100%;"
v-model="tempGoodsType"
:placeholder="'请选择'"
filterable
@change="selectAddAttr($event)"
clearable
:props="{ checkStrictly: true, label: 'categoryName', value: 'categoryType' }">
<el-cascader :options="baseData.productTypeList" style="width: 100%;" v-model="tempGoodsType"
:placeholder="'请选择'" filterable @change="selectAddAttr($event)" clearable
:props="{ checkStrictly: true, label: 'categoryName', value: 'categoryType' }">
</el-cascader>
</template>
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId"
size="small"
type="primary">
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
</el-button>
</div>
<d2-table ref="groundingIndexTable"
:has-num="false"
:search-form="searchForm"
:table-params="tableParams"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun">
<template slot="select_btn"
slot-scope="scope">
<el-radio v-model="selectedRowId"
:label="scope.scope.id"
:disabled="packageSelectIds && packageSelectIds.includes(scope.scope.id)">{{ '' }}</el-radio>
<d2-table ref="groundingIndexTable" :has-num="false" :search-form="searchForm" :table-params="tableParams"
:get-list-api="getListApi" :before-search-fn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<template slot="select_btn" slot-scope="scope">
<el-radio v-model="selectedRowId" :label="scope.scope.id"
:disabled="packageSelectIds && packageSelectIds.includes(scope.scope.id)">{{ '' }}</el-radio>
</template>
<template slot="carName" slot-scope="scope">
<el-tooltip v-if="scope.scope.carTypeConfigList && scope.scope.carTypeConfigList.length" placement="top">
<div slot="content" class="car-type-list">
<div v-for="(item, index) in scope.scope.carTypeConfigList" :key="index">{{ item.seriesName }}</div>
</div>
<div>{{ scope.scope.carTypeConfigList | formatCar }}</div>
</el-tooltip>
<div v-else>-</div>
</template>
</d2-table>
</d2-dialog>
......@@ -102,6 +73,15 @@ export default {
default: () => []
}
},
filters: {
formatCar(list) {
console.log(list, 'list')
let str = list.map(item => {
return item.seriesName
}).join(',')
return str.length > 15 ? str.substring(0, 15) + '...' : str
}
},
data() {
return {
getListApi: getUpgradeProductList,
......@@ -217,9 +197,11 @@ export default {
}, {
label: '适用车型',
prop: '',
formatter: (cellValue) => {
return cellValue?.carTypeConfigList?.length ? cellValue.carTypeConfigList.map(item => item.seriesName).join('/') : '-'
}
addHtml: 'carName',
width: 200
// formatter: (cellValue) => {
// return cellValue?.carTypeConfigList?.length ? cellValue.carTypeConfigList.map(item => item.seriesName).join('/') : '-'
// }
}, {
label: '所属系列',
prop: 'goodsName',
......@@ -316,6 +298,11 @@ export default {
}
</script>
<style lang="scss" scoped>
.car-type-list {
max-height: 300px;
overflow-y: scroll;
}
.show-search {
::v-deep .d2-search-block {
padding: 0;
......
<template>
<div>
<baseDialog :is-show.sync="dialogShow"
:dialog-config="dialogConfig.config"
@handleClick="handleAddConfirm"
class="detail-content-warn">
<baseDialog :is-show.sync="dialogShow" :dialog-config="dialogConfig.config" @handleClick="handleAddConfirm"
class="detail-content-warn">
<div v-loading="loading">
<div class="form_div">
<div class="tipsDiv">
......@@ -11,43 +9,26 @@
{{ paramsObj.customer.customerName + ' | ' + paramsObj.customer.customerPhone }}
</div>
</div>
<el-form label-width="100px"
:model="infoForm"
ref="editRef"
:rules="formRules">
<el-form-item label="预约时间:"
required>
<el-form label-width="100px" :model="infoForm" ref="editRef" :rules="formRules">
<el-form-item label="预约时间:" required>
<el-col :span="10">
<el-form-item prop="dateTime">
<el-date-picker v-model="infoForm.dateTime"
type="date"
class="default-width"
placeholder="选择日期"
value-format="yyyy-MM-dd"
@change="inviteStatMerchantList"
:picker-options="datePickerOptions">
<el-date-picker v-model="infoForm.dateTime" :clearable="false" type="date" class="default-width"
placeholder="选择日期" value-format="yyyy-MM-dd" @change="inviteStatMerchantList(true)"
:picker-options="datePickerOptions">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="1"></el-col>
<el-col :span="13">
<el-form-item prop="times">
<el-select v-model="infoForm.times"
filterable
placeholder="请选择"
class="default-width">
<el-option v-for="(item, key) in timesOpt"
:key="key"
:label="item.confValue"
:value="item.confId"
:disabled="item.disabled">
<el-select v-model="infoForm.times" filterable placeholder="请选择" class="default-width">
<el-option v-for="(item, key) in timesOpt" :key="key" :label="item.confValue" :value="item.confId"
:disabled="item.disabled">
</el-option>
</el-select>
<el-button type="text"
size="small"
class="timesSle"
v-if="paramsObj.inviteDate"
@click="cancelInvite">取消预约</el-button>
<el-button type="text" size="small" class="timesSle" v-if="paramsObj.inviteDate"
@click="cancelInvite">取消预约</el-button>
</el-form-item>
</el-col>
</el-form-item>
......@@ -167,11 +148,14 @@ export default {
// 截取时分(去掉秒)
this.infoForm.times = dateTimeStr.split(' ')[1].substring(0, 5) // "09:00"
this.inviteStatMerchantList()
this.inviteStatMerchantList(false)
}
},
inviteStatMerchantList() {
inviteStatMerchantList(flag) {
if (flag) {
this.infoForm.times = ''
}
var params = {}
params.merchantId = this.paramsObj.yqMerchantId
params.startDate = this.infoForm.dateTime
......@@ -263,24 +247,29 @@ export default {
color: #333333;
margin: 10px 0 20px 0;
}
.el-icon-circle-close {
color: #ffffff;
}
.form_div {
color: #333333;
.tipsDiv {
height: 28px;
margin-bottom: 20px;
.tipsText {
padding-left: 20px;
font-size: 14px;
}
}
}
.default-width {
width: 170px;
}
.timesSle {
padding-left: 10px;
}
......
......@@ -239,7 +239,7 @@ export default {
prop: "remark"
}, {
label: '操作人',
prop: 'updatedBy'
prop: 'updatedUserName'
}
]
},
......
......@@ -171,7 +171,7 @@
<el-form-item :prop="item.name" :label="item.label ? item.label + ':' : ''" :id="item.name"
:label-width="item.label ? '180px' : '0px'" class="dis-in-block"
:style="{ 'margin-bottom': !item.type ? '0px' : '22px' }">
<el-button icon="el-icon-plus" @click="handleClick">选择上架门店</el-button>
<el-button icon="el-icon-plus" @click="handleClick">选择上架商户</el-button>
<relateStoreTable v-if="$$(formData['merchantRefList'], 'length')"
:merchant-goods-ref-list="formData['merchantRefList']" @handleDelete="handleDelete">
</relateStoreTable>
......@@ -305,8 +305,8 @@
@handleRelateStoreClose="handleRelateStoreClose">
<el-row slot>
<el-form :model="storeSearchForm" ref="relate" :inline="true">
<el-form-item label="门店名称:">
<el-input v-model.trim="storeSearchForm.merchantName" placeholder="门店名称" @keydown.native="handleStoreInput"
<el-form-item label="商户名称:">
<el-input v-model.trim="storeSearchForm.merchantName" placeholder="商户名称" @keydown.native="handleStoreInput"
clearable />
</el-form-item>
<el-form-item label="商户号:">
......@@ -375,34 +375,11 @@ export default {
show: false,
rules: {
merchantRefList: [
{ required: true, message: "请选择上架门店", trigger: "change" }
{ required: true, message: "请选择上架商户", trigger: "change" }
],
// sceneType: [
// { required: true, message: "请选择业务场景", trigger: "change" }
// ],
upgradeGoodsId: [
{ required: true, message: "请选择上架商品", trigger: "change" }
],
// position: [
// { required: true, message: "请选择上架部位", trigger: "change" }
// ],
// productType: [
// { required: true, message: "请选择产品类型", trigger: "change" }
// ],
// baseSupplyMode: [
// {
// required: true,
// message: "请选择基础产品供货模式",
// trigger: "change"
// }
// ],
// upgradeSupplyMode: [
// {
// required: true,
// message: "请选择升级/产品供货模式",
// trigger: "change"
// }
// ],
purchasePrice: [
{ required: true, message: "请输入采购价", trigger: "blur" },
{
......@@ -925,7 +902,7 @@ export default {
handleRelateStoreConfirm(selectedData) {
if (!selectedData.length) {
this.$message({
message: "请选择关联门店",
message: "请选择关联商户",
type: "warning",
showClose: true
})
......
......@@ -3,8 +3,8 @@
<el-table :data="merchantGoodsRefList" style="width: 100%" :header-row-style="headerRowStyle"
header-cell-class-name="header-cell-class-name" border>
<el-table-column align="center" width="60px" label="序号" type="index" />
<el-table-column prop="merchantName" label="门店名称" align="center" />
<el-table-column prop="merchantId" label="门店商户号" align="center" />
<el-table-column prop="merchantName" label="商户名称" align="center" />
<el-table-column prop="merchantId" label="商户号" align="center" />
<el-table-column prop="yqMerchantName" label="商户类型" align="center">
<template slot-scope="scope">
<span>{{merchantClassifyList.find(item => item.confId == scope.row.merchantType).confLabel}}</span>
......
......@@ -200,7 +200,7 @@ export default {
}
},
filteredExpenseCategoryRules() {
const allowedIds = [1, 2, 302, 701]
const allowedIds = [1, 2, 3, 701]
return this.financialObj.goodsTypeGroupRules[
this.editableTabsValue - 1
].expenseCategoryRules.filter(item =>
......@@ -320,7 +320,7 @@ export default {
console.log("this.settleTimeObj: ", this.settleTimeObj)
},
getExpenseCategoryCalculateType(value, num) {
if (!value || num == null) {
if (!value || value == 7 || num == null) {
return "-"
}
// console.log('num: ', num)
......
......@@ -74,7 +74,7 @@ export default {
},
methods: {
getExpenseCategoryCalculateType(value, num, name) {
if (!value || num == null) {
if (!value || value == 7 || num == null) {
return "-"
}
......
......@@ -216,7 +216,7 @@ export default {
merchantLevelList: [],
PlatformLevelList: [
{
merchantId: "-1",
merchantId: -1,
showMerchantName: "嘀加智慧云",
merchantName: "嘀加智慧云",
userType: 1
......
......@@ -31,7 +31,7 @@
<el-radio-group v-model="form2['id' + item.expenseCategoryId]" @change="
(e) => handleClearValid2(e, 'id' + item.expenseCategoryId)
">
<el-radio v-for="(el, index) in tableSelectOptions" :key="index" :label="+el.merchantId" />
<el-radio v-for="(el, index2) in tableSelectOptions" :key="index2" :label="el.merchantId" />
</el-radio-group>
</el-form-item>
</td>
......@@ -69,7 +69,7 @@
<el-radio-group v-model="form['id' + item.expenseCategoryId]" @change="
(e) => handleClearValid(e, 'id' + item.expenseCategoryId)
">
<el-radio v-for="(el, index) in tableSelectOptions" :key="index" :label="+el.merchantId" />
<el-radio v-for="(el, index2) in tableSelectOptions" :key="index2" :label="el.merchantId" />
</el-radio-group>
</el-form-item>
</td>
......@@ -324,6 +324,13 @@ export default {
return opt.merchantId == element
}) == -1 && (this.form[key] = "")
}
for (const key in this.form2) {
const element = this.form2[key]
this.tableSelectOptions.findIndex((opt) => {
return opt.merchantId == element
}) == -1 && (this.form2[key] = "")
}
this.$forceUpdate()
},
handleClearValid2(e, validField) {
this.$forceUpdate()
......
<!-- 发货单详情弹窗 -->
<template>
<div>
<baseDialog title="详细信息"
:is-show.sync="detailVisible"
:config="dialogConfig.setting"
:dialog-config="dialogConfig.config"
width="1050px"
:no-cancel="true"
btn-ok-label="关闭"
@closeDialog="handleClose"
@confirmDialog="handleClose">
<baseDialog title="详细信息" :is-show.sync="detailVisible" :config="dialogConfig.setting"
:dialog-config="dialogConfig.config" width="1050px" :no-cancel="true" btn-ok-label="关闭" @closeDialog="handleClose"
@confirmDialog="handleClose">
<div class="stockMonthDailog">
<div class="addressTitle">
<img src="../images/addressIcon.webp"
alt=""
class="icon">
<img src="../images/addressIcon.webp" alt="" class="icon">
<span class="title">{{ recordInfo.merchantName }}</span>
</div>
<div class="address-info"
v-if="detailInfo[0]">
<div class="address-info" v-if="detailInfo[0]">
<span class="name">收货人:<span class="label">{{ detailInfo[0].contactName }}</span></span>
<span class="phone">电话:<span class="label">{{ detailInfo[0].contactPhone }}</span></span>
<span class="address">收货地址:<span
class="label">{{ detailInfo[0].contactAddress }}</span></span>
<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="address-info" v-if="detailInfo[0]">
<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">
<div>
发货单号:
......@@ -44,22 +32,15 @@
<span>{{ itemList.deliveryDate }}</span>
</div>
</div>
<d2-table ref="recordTable"
:table-data="itemList.deliveryDetailList"
:table-params="tableParams"
:has-page="false">
<span slot="deliveryCard"
slot-scope="scope">
<template
v-if="scope.scope.deliveryCardList && scope.scope.deliveryCardList.length > 1">
<d2-table ref="recordTable" :table-data="itemList.deliveryDetailList" :table-params="tableParams"
:has-page="false">
<span slot="deliveryCard" slot-scope="scope">
<template v-if="scope.scope.deliveryCardList && scope.scope.deliveryCardList.length > 1">
<!-- {{ scope.scope.deliveryCardList.length || 0 }} -->
<span>+{{ scope.scope.deliveryCardList.length }} </span>
<el-button mini
type="text"
@click="handleDeliveryCard(scope.scope.deliveryCardList)">查看</el-button>
<el-button mini type="text" @click="handleDeliveryCard(scope.scope.deliveryCardList)">查看</el-button>
</template>
<template
v-else-if="scope.scope.deliveryCardList && scope.scope.deliveryCardList.length == 1">
<template v-else-if="scope.scope.deliveryCardList && scope.scope.deliveryCardList.length == 1">
<!-- {{ scope.scope.deliveryCardList.length || 0 }} -->
<span>{{ scope.scope.deliveryCardList[0] }}</span>
<!-- <el-button mini type="text" @click="handleDeliveryCard(scope.scope.deliveryCardList)">查看</el-button> -->
......@@ -70,20 +51,11 @@
</div>
</div>
</baseDialog>
<baseDialog title="查看发货卡号"
:config="carDialogConfig.setting"
:dialog-config="carDialogConfig.config"
:is-show.sync="handleDeliveryCardVisible"
width="500px"
:no-cancel="true"
btn-ok-label="关闭"
@closeDialog="handleDeliveryCardVisible = false"
@confirmDialog="handleDeliveryCardVisible = false">
<d2-table class="deliveryCardCon"
ref="recordTable"
:table-data="deliveryCardList"
:table-params="innerParams"
:has-page="false">
<baseDialog title="查看发货卡号" :config="carDialogConfig.setting" :dialog-config="carDialogConfig.config"
:is-show.sync="handleDeliveryCardVisible" width="500px" :no-cancel="true" btn-ok-label="关闭"
@closeDialog="handleDeliveryCardVisible = false" @confirmDialog="handleDeliveryCardVisible = false">
<d2-table class="deliveryCardCon" ref="recordTable" :table-data="deliveryCardList" :table-params="innerParams"
:has-page="false">
</d2-table>
</baseDialog>
</div>
......@@ -279,7 +251,7 @@ export default {
font-size: 14px;
color: #666666;
> span {
>span {
margin-right: 20px;
margin-bottom: 10px;
}
......
......@@ -218,7 +218,9 @@ export default {
}
]
},
detailInfo: {},
detailInfo: {
purchaseOrderRemark: '',
},
examineStatusClass: {
2: 'greenSp',
4: 'redSp',
......
<!-- 仓库/工厂发货 -->
<template>
<d2-container class="container">
<div class="header"
slot="header">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData">
<div class="header" slot="header">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId"
size="small"
type="primary"
handle>
<el-button :id="tableParams.btnId" size="small" type="primary" handle>
查询
</el-button>
<el-button size="small"
@click="handleReset">
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
......@@ -33,26 +25,17 @@
</el-button>
</span> -->
</d2-table-header>
<d2-table ref="purchaseAndDeliveryTable"
:search-form="tableSearchForm"
:table-params="tableParams"
:table-data="tableData"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<div slot="auth-button"
slot-scope="scope">
<d2-table ref="purchaseAndDeliveryTable" :search-form="tableSearchForm" :table-params="tableParams"
:table-data="tableData" :get-list-api="getListApi" :before-search-fn="beforeSearchFn">
<div slot="auth-button" slot-scope="scope">
<!-- 查看 -->
<span style="margin-right: 10px;"
v-if="scope.scope.deliveryStatus != 1">
<auth-button :data="scope.scope"
:show-btn-ids="['9090701']" />
<span style="margin-right: 10px;" v-if="scope.scope.deliveryStatus != 1">
<auth-button :data="scope.scope" :show-btn-ids="['9090701']" />
</span>
<!-- 确认发货 -->
<!-- style="margin-right: 10px;" -->
<span v-show="scope.scope.deliveryStatus != 2"
style="margin-right: 10px;">
<auth-button :data="scope.scope"
:show-btn-ids="['9090702']" />
<span v-if="scope.scope.deliveryStatus == 1 || scope.scope.deliveryStatus == 3" style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9090702']" />
</span>
<!-- <el-button :data="scope.scope" type="text" @click="handleDelivery(scope.scope)">发货</el-button> -->
<!-- 发货 -->
......@@ -67,35 +50,19 @@
</div>
</d2-table>
</div>
<orderDeatilDialog :visible.sync="detailVisible"
v-if="detailVisible"
:record-info="paramsObj"></orderDeatilDialog>
<EditOrderDialog v-if="editVisible"
:page="'factory'"
:visible.sync="editVisible"
:params-obj="dialogData"
@editClose="editClose">
<orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :record-info="paramsObj"></orderDeatilDialog>
<EditOrderDialog v-if="editVisible" :page="'factory'" :visible.sync="editVisible" :params-obj="dialogData"
@editClose="editClose">
</EditOrderDialog>
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting"-->
<baseDialog :is-show.sync="rejectVisible"
:dialog-config="rejectConfig.config"
@handleClick="handleRejectConfirm">
<baseDialog :is-show.sync="rejectVisible" :dialog-config="rejectConfig.config" @handleClick="handleRejectConfirm">
<!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm"
@closeDialog="handleRejectClose"> -->
<div class="reject-dialog">
<el-form :rules="rejectRules"
:model="rejectData"
label-width="150px"
ref="delivery-dialog-form">
<el-form-item label="驳回原因:"
prop="rejectCause">
<el-input type="textarea"
placeholder="请输入驳回原因"
maxlength="50"
:rows="3"
show-word-limit
v-model.trim="rejectData.rejectCause"
class="dis-in-block reject-input" />
<el-form :rules="rejectRules" :model="rejectData" label-width="150px" ref="delivery-dialog-form">
<el-form-item label="驳回原因:" prop="rejectCause">
<el-input type="textarea" placeholder="请输入驳回原因" maxlength="50" :rows="3" show-word-limit
v-model.trim="rejectData.rejectCause" class="dis-in-block reject-input" />
</el-form-item>
</el-form>
</div>
......
......@@ -2,12 +2,7 @@
<template>
<d2-container class="container">
<div class="header" slot="header">
<d2-search
ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData"
>
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary" handle>
......@@ -29,94 +24,50 @@
<auth-button category="Button" :show-btn-ids="['9090405']" />
</span>
</d2-table-header>
<d2-table
ref="purchaseAndDeliveryTable"
:search-form="tableSearchForm"
:table-params="tableParams"
:table-data="tableData"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn"
>
<d2-table ref="purchaseAndDeliveryTable" :search-form="tableSearchForm" :table-params="tableParams"
:table-data="tableData" :get-list-api="getListApi" :before-search-fn="beforeSearchFn">
<div slot="auth-button" slot-scope="scope" width="400">
<!-- 查看 -->
<span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9090401']" />
</span>
<!-- 确认发货 -->
<span
v-show="scope.scope.deliveryStatus != 2"
style="margin-right: 10px"
>
<span v-if="scope.scope.deliveryStatus == 1 || scope.scope.deliveryStatus == 3" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9090402']" />
</span>
<!-- 分配 -->
<span
v-show="
scope.scope.deliveryStatus != 2 && scope.scope.deliveryStatus != 4
"
style="margin-right: 10px"
>
<span v-if="scope.scope.deliveryStatus != 2 && scope.scope.deliveryStatus != 4
" style="margin-right: 10px">
<!-- <el-button :data="scope.scope" type="text" @click="handleAllocat(scope.scope)">分配</el-button> -->
<auth-button :data="scope.scope" :show-btn-ids="['9090404']" />
</span>
<!-- 驳回 -->
<span
v-show="scope.scope.deliveryStatus == 1 && scope.scope.status == 5"
>
<span v-if="scope.scope.deliveryStatus == 1 && scope.scope.status == 5">
<auth-button :data="scope.scope" :show-btn-ids="['9090403']" />
</span>
<!-- 结束 -->
<span v-show="scope.scope.deliveryStatus == 3">
<span v-if="scope.scope.deliveryStatus == 3">
<auth-button :data="scope.scope" :show-btn-ids="['9090406']" />
</span>
</div>
</d2-table>
</div>
<orderDeatilDialog
:visible.sync="detailVisible"
v-if="detailVisible"
:params-obj="paramsObj"
></orderDeatilDialog>
<EditOrderDialog
v-if="editVisible"
:is-empty-edit="true"
:visible.sync="editVisible"
:params-obj="dialogData"
@editClose="editClose"
>
<orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :params-obj="paramsObj"></orderDeatilDialog>
<EditOrderDialog v-if="editVisible" :is-empty-edit="true" :visible.sync="editVisible" :params-obj="dialogData"
@editClose="editClose">
</EditOrderDialog>
<AllocateDialog
v-if="allocateVisible"
:visible.sync="allocateVisible"
:params-obj="allocateData"
@editClose="allocateClose"
>
<AllocateDialog v-if="allocateVisible" :visible.sync="allocateVisible" :params-obj="allocateData"
@editClose="allocateClose">
</AllocateDialog>
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting"-->
<baseDialog
:is-show.sync="rejectVisible"
:dialog-config="rejectConfig.config"
@handleClick="handleRejectConfirm"
>
<baseDialog :is-show.sync="rejectVisible" :dialog-config="rejectConfig.config" @handleClick="handleRejectConfirm">
<!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm"
@closeDialog="handleRejectClose"> -->
<div class="reject-dialog">
<el-form
:rules="rejectRules"
:model="rejectData"
label-width="150px"
ref="delivery-dialog-form"
>
<el-form :rules="rejectRules" :model="rejectData" label-width="150px" ref="delivery-dialog-form">
<el-form-item label="驳回原因:" prop="rejectCause">
<el-input
type="textarea"
placeholder="请输入驳回原因"
maxlength="50"
:rows="3"
show-word-limit
v-model.trim="rejectData.rejectCause"
class="dis-in-block reject-input"
/>
<el-input type="textarea" placeholder="请输入驳回原因" maxlength="50" :rows="3" show-word-limit
v-model.trim="rejectData.rejectCause" class="dis-in-block reject-input" />
</el-form-item>
</el-form>
</div>
......@@ -127,29 +78,14 @@
</div> -->
<!-- </d2-dialog> -->
</baseDialog>
<baseDialog
:is-show.sync="endVisible"
:dialog-config="endConfig.config"
@handleClick="handleEndConfirm"
>
<baseDialog :is-show.sync="endVisible" :dialog-config="endConfig.config" @handleClick="handleEndConfirm">
<!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm"
@closeDialog="handleRejectClose"> -->
<div class="reject-dialog">
<el-form
:model="terminateDelivery"
label-width="150px"
ref="delivery-dialog-form"
>
<el-form :model="terminateDelivery" label-width="150px" ref="delivery-dialog-form">
<el-form-item label="备注:" prop="rejectCause">
<el-input
type="textarea"
placeholder="请输入备注信息"
maxlength="200"
:rows="3"
show-word-limit
v-model.trim="terminateDelivery.terminateDeliveryInstruction"
class="dis-in-block reject-input"
/>
<el-input type="textarea" placeholder="请输入备注信息" maxlength="200" :rows="3" show-word-limit
v-model.trim="terminateDelivery.terminateDeliveryInstruction" class="dis-in-block reject-input" />
</el-form-item>
</el-form>
<p style="margin-left: 150px">
......@@ -186,7 +122,7 @@ import EditOrderDialog from "./components/EditOrderDialog"
import AllocateDialog from "./components/AllocateDialog"
// import { limitPrice } from '@/common/format'
export default {
name: "PurchaseOrder",
name: "PurchaseAndDelivery",
components: {
orderDeatilDialog,
EditOrderDialog,
......@@ -439,9 +375,9 @@ export default {
formatter: (cellValue) => {
return cellValue.auditDetail.reviewedDate
? Util.dateFormate(
cellValue.auditDetail.reviewedDate,
"YYYY-MM-DD HH:mm:ss"
)
cellValue.auditDetail.reviewedDate,
"YYYY-MM-DD HH:mm:ss"
)
: "--"
}
}
......@@ -689,11 +625,13 @@ export default {
.reject-input {
color: red;
::v-deep .el-textarea__inner{
::v-deep .el-textarea__inner {
height: 79px;
width: 432px !important;
}
}
::v-deep .el-textarea .el-input__count {
right: 90px;
bottom: -10px;
......
......@@ -47,7 +47,7 @@
slot-scope="scope">
<!-- 关联技师 -->
<span style="margin-right: 10px;"
v-if="scope.scope.orderStatus != 12">
v-if="scope.scope.subOrderStatus != 2">
<auth-button :data="scope.scope"
:show-btn-ids="['9080302']" />
</span>
......@@ -287,7 +287,7 @@ export default {
}
}, {
label: '操作人',
prop: 'updatedBy',
prop: 'updatedUserName',
width: '100px'
}, {
label: '最后操作时间',
......
......@@ -591,7 +591,7 @@ export default {
return dayjs(value).format('YYYY年MM月DD日')
},
getExpenseCategoryCalculateType(value, num) {
if (!value || num == null) {
if (!value || value == 7 || num == null) {
return '-'
}
// console.log('num: ', num)
......
......@@ -596,7 +596,7 @@ export default {
}
},
getExpenseCategoryCalculateType(value, num) {
if (!value || num == null) {
if (!value || value == 7 || num == null) {
return "-"
}
// 1按毛利比例 2按收入比例 3按固定金额 4按(产值-流量成本) 5按(产值-流量成本-其他费用不包含产品成本) 6按(产值-流量成本-其他费用包含产品成本) 8按(收入-自定义其他费用) 9按(收入-其他费用)
......
......@@ -80,7 +80,7 @@
:key="initIdx">
<template v-if="ininItem.nodeType == 1">
<div class="detail-i" :class="{ 'isRed': filterIsRed(ininItem, 1) }">{{ ininItem.expenseCategoryName
}}</div>
}}</div>
<div class="detail-i" :class="{ 'isRed': filterIsRed(ininItem, 2) }">{{ ininItem.calculateMode == 1
? '按品类计算' :
ininItem.calculateMode == 2 ? '按整单计算' :
......@@ -107,7 +107,7 @@
</template>
<template v-if="ininItem.nodeType == 2">
<div class="detail-i" :class="{ 'isRed': filterIsRed(ininItem, 1) }">{{ ininItem.expenseCategoryName
}}</div>
}}</div>
<div class="detail-i" :class="{ 'isRed': !item.diffTypes.length && filterIsRed(ininItem, 2) }">{{
ininItem.calculateMode == 1 ? '按品类计算' :
ininItem.calculateMode == 2 ? '按整单计算' :
......@@ -169,7 +169,7 @@
:key="initIdx">
<template v-if="ininItem.nodeType == 1">
<div class="detail-i" :class="{ 'isRed': filterIsRed(ininItem, 1) }">{{ ininItem.expenseCategoryName
}}</div>
}}</div>
<div class="detail-i" :class="{ 'isRed': filterIsRed(ininItem, 2) }">{{ ininItem.calculateMode == 1
? '按品类计算' :
ininItem.calculateMode == 2 ? '按整单计算' :
......@@ -196,7 +196,7 @@
</template>
<template v-if="ininItem.nodeType == 2">
<div class="detail-i" :class="{ 'isRed': filterIsRed(ininItem, 1) }">{{ ininItem.expenseCategoryName
}}</div>
}}</div>
<div class="detail-i" :class="{ 'isRed': filterIsRed(ininItem, 2) }">{{ ininItem.calculateMode == 1
? '按品类计算' :
ininItem.calculateMode == 2 ? '按整单计算' :
......@@ -419,7 +419,10 @@ export default {
copyValue?.goodsTypeGroupRules?.map(item => {
let otherObj = {}
this.otherCostList.map(otherItem => {
// console.log(item?.[otherItem.name] == 'Y')
// console.log(otherItem.name == 'commission')
if (item?.[otherItem.name] == 'Y' || otherItem.name == 'commission') {
console.log('otherItem', item)
otherObj = item?.merchantDistributionRules?.find(ele => ele.expenseCategoryName == otherItem.text) || {}
otherObj.nodeType = 1 // 不可拓展类目
otherObj.isCost = true
......@@ -428,6 +431,7 @@ export default {
otherObj.expenseCategoryValue = otherItem.ratename ? item[otherItem.ratename] : null
let index = item.expenseCategoryRuleTargetTypeGroups?.findIndex(ele => ele.targetType == 3)
if (index > -1) {
console.log(item?.expenseCategoryRuleTargetTypeGroups[index]?.expenseCategoryRuleLevels, 'item?.expenseCategoryRuleTargetTypeGroups[index]?.expenseCategoryRuleLevels')
if (item?.expenseCategoryRuleTargetTypeGroups[index]?.expenseCategoryRuleLevels?.findIndex(v => v.expenseCategoryName == otherItem.text) <= 0) {
item?.expenseCategoryRuleTargetTypeGroups?.[index].expenseCategoryRuleLevels.unshift(otherObj)
}
......@@ -552,7 +556,7 @@ export default {
}
},
getExpenseCategoryCalculateType(value, num) {
if (!value || num == null) {
if (!value || value == 7 || num == null) {
return '-'
}
let res
......
......@@ -691,7 +691,7 @@ export default {
}
},
getExpenseCategoryCalculateType(value, num) {
if (!value || num == null) {
if (!value || value == 7 || num == null) {
return "-"
}
// 1按毛利比例 2按收入比例 3按固定金额 4按(产值-流量成本) 5按(产值-流量成本-其他费用不包含产品成本) 6按(产值-流量成本-其他费用包含产品成本) 8按(收入-自定义其他费用) 9按(收入-其他费用)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!