Commit 511e9788 by 前端

Merge branch 'dev_v4.22.0' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into dev_v4.22.0
2 parents 67b9c53c 43950fc5
......@@ -66,7 +66,8 @@ export function getMerchantOutputValueTarget(data) {
export function setMerchantOutputValueTarget(data) {
data.method = `${path2}workbench.inputMerchantOutputValueTarget`
return request(data)
return request(data, "post")
// return request(data)
}
// 隐私协议标题查询
......
......@@ -57,6 +57,7 @@ const request = (
* 调后端接口 - url = ''
*/
const url = baseConfig[baseApiName].baseURL
// const url = "/api"
/**
* 调后端接口,请使用以下代码。
*/
......
......@@ -102,6 +102,7 @@ fetch(
)
.then((response) => {
const { code, data } = response
console.log("response", response)
if (code == "200") {
console.log(data)
......@@ -109,10 +110,7 @@ fetch(
// console.log("baseConfig", baseConfig)
// window.$fetchConfig = data
} else {
// response.axios.baseURL =
// "http://192.168.3.226:9203/rop-dj-smartcarlife/router"
// "http://192.168.1.169:8392/rop-dj-smartcarlife/router"
// baseConfig = {
// response = {
// // 系统名字
// sysName: "嘀加智享车生活",
// // 系统说明
......
......@@ -208,7 +208,15 @@ export const routerName = {
authId: "9040603",
parentId: "90406",
label: "打印",
handle: "handlePrint"
handle: "handlePrint",
ruleObj: {
attr: "mode",
rule: {
0: "打印",
1: "打印"
},
disabledStatusList: [1]
}
},
{
authId: "9040605",
......
......@@ -71,6 +71,12 @@ export const routerName = {
}
},
handle: "handleWarehousing"
},
{
authId: "9090105",
parentId: "90901",
label: "发货单",
handle: "handleSendgoods"
}
],
component: _import("purchase/purchaseOrder")
......
......@@ -42,7 +42,7 @@ export const routerName = {
ruleObj: {
attr: "status",
rule: {
0: "待编辑",
0: "待配置",
1: "编辑"
}
// disabledStatusList: [0]
......
......@@ -40,8 +40,8 @@ export const routerName = {
ruleObj: {
attr: "mode",
rule: {
0: "查看",
1: "查看"
0: "打印",
1: "打印"
},
disabledStatusList: [1]
}
......
......@@ -387,6 +387,9 @@ export default {
_formData.goodsTypeName = _valueObj?.goodsTypeName
_formData.goodsType = _valueObj?.goodsType
_formData.serviceItemNames = _valueObj?.serviceItemNames
_formData.productType = [] // 切换上架商品 将服务类型清空
_formData.baseSupplyMode = '' // 切换上架商品 将基础供货模式清空
_formData.upgradeSupplyMode = '' // 切换上架商品 将升级/产品供货模式清空
}
},
handleClose() {
......
......@@ -34,7 +34,7 @@
:filter-list-data="true">
<div class="material" slot="img" slot-scope="scope">
<img class="pro-img" :src="scope.scope.goodsInfo.thumbUrl">
<span class="good_name">{{ scope.scope.baseGoodsName || scope.scope.goodsInfo.goodsName }}</span>
<span class="good_name">{{ scope.scope.goodsInfo.goodsName }}</span>
</div>
<div v-if="Object.keys(scope.scope).includes('upgradeGoodsList')"
slot="auth-button"
......
......@@ -5,7 +5,7 @@
<div class="searchWrap">
<el-col :span="11">
<el-date-picker v-model="search.targetDate" :clearable="false" type="month" format="yyyy 年 MM 月"
value-format="yyyy-MM" :picker-options="pickerOptions" placeholder="选择月" />
@change="getList" value-format="yyyy-MM" :picker-options="pickerOptions" placeholder="选择月" />
</el-col>
<el-col :span="9">
<el-input v-model="search.keyword" clearable placeholder="输入门店名称搜索" />
......@@ -165,16 +165,31 @@ export default {
return 'background:#F4F6FC'
},
async handleConfirmImport() {
const filterList = this.tableData.filter((item) => {
let filterList = this.tableData.filter((item) => {
// 删除无需字段 避免后台类型报错
delete item.createdDate
delete item.updatedDate
// delete item.createdDate
// delete item.updatedDate
// delete item.createdBy
// delete item.updatedBy
// delete item.deletedFlag
// delete item.targetDate
return (item.isEdit && item.outputValue) || item.deployScene || item.businessScene
})
filterList = filterList.map((item) => {
return {
merchantName: item.merchantName,
merchantId: item.merchantId,
outputValue: item.outputValue,
deployScene: item.deployScene,
businessScene: item.businessScene,
dataMonth: item.dataMonth
}
})
if (filterList.length) {
// console.log('请求修改')
// const result =
await setMerchantOutputValueTarget({ list: filterList })
// await setMerchantOutputValueTarget({ list: filterList })
await setMerchantOutputValueTarget({ dataString: JSON.stringify(filterList) })
// console.log(result)
}
// else {
......
<!-- 下载对账单 -->
<template>
<d2-dialog title="退款备注"
:is-visible="signRefundVisible"
class="accountDailog"
@closeDialog="handleClose"
@confirmDialog="handleAddConfirm">
<el-form ref="refundForm"
:model="infoForm"
:rules="formRules">
<d2-dialog title="退款备注" :is-visible="signRefundVisible" class="accountDailog" @closeDialog="handleClose"
@confirmDialog="handleAddConfirm">
<el-form ref="refundForm" :model="infoForm" :rules="formRules">
<el-form-item prop="remark">
<el-input v-clear-emoij
type="textarea"
:rows="5"
placeholder="不超过100个字。"
maxlength="100"
show-word-limit
v-model="infoForm.remark" />
<el-input v-clear-emoij type="textarea" :rows="5" placeholder="不超过100个字。" maxlength="100" show-word-limit
v-model="infoForm.remark" />
</el-form-item>
</el-form>
</d2-dialog>
......@@ -85,11 +75,12 @@ export default {
}
}
</script>
<style>
<style scoped>
.accountDailog .el-dialog {
margin-top: 20vh !important;
min-width: 700px;
}
.accountDailog .el-select-dropdown__item {
width: 395px !important;
}
......
......@@ -208,8 +208,7 @@ export default {
}
const attrNameList = ['upgradeGoodsId', 'type', 'upgradeGoodsName', 'conversionValue', 'goodsName', 'goodsCode', 'goodsType', 'goodsTypeName']
this.detailInfo.tableData.forEach((item, idx) => {
console.log(this.nowPurNumList[idx])
if (this.nowPurNumList[idx] != 0) {
if (this.nowPurNumList[idx] && this.nowPurNumList[idx] != 0) {
params.deliveryDetailList.push({
..._.pick(item, attrNameList),
purchaseNumber: this.nowPurNumList[idx]
......
......@@ -84,6 +84,9 @@ export default {
}
}
},
mounted() {
this.dynamicParams()
},
data() {
return {
dialogConfig: {
......@@ -143,16 +146,6 @@ export default {
formatter: (cellValue) => {
return "¥" + cellValue.goodsTotalPrice
}
},
{
label: '已发货数量',
prop: 'purchaseNumber',
width: 110
},
{
label: '已入库数量',
prop: 'inputNumber',
width: 110
}
]
},
......@@ -165,6 +158,42 @@ export default {
}
},
methods: {
dynamicParams() {
console.log(this.paramsObj.purchaseType);
if (this.paramsObj.purchaseType == 1) {
this.tableParams.tableColumns.push(
{
label: '已发货数量',
prop: 'purchaseNumber',
width: 110,
line: 1
},
{
label: '已入库数量',
prop: 'inputNumber',
width: 110,
line: 1
}
)
} else {
this.tableParams.tableColumns.push(
{
label: '入库仓库',
prop: 'putYqMerchantName',
width: 100,
line: 1
},
{
label: '入库门店',
prop: 'putMerchantName',
width: 100,
line: 1
}
)
}
},
handleDetailClose() {
this.dialogShow = false
},
......
<!-- 驳回 -->
<template>
<d2-dialog title="驳回提示"
:is-visible="rejectVisible"
class="accountDailog"
@closeDialog="handleClose"
@confirmDialog="handleAddConfirm">
<baseDialog :dialog-config="dialogConfig" :is-show.sync="visible" class="accountDailog" @handleClick="handleAddConfirm">
<div class="reject-dialog">
<el-form ref="refundForm"
label-width="150px"
:model="infoForm"
:rules="formRules">
<el-form-item label="驳回原因:"
prop="rejectCause">
<el-input type="textarea"
placeholder="请输入驳回原因"
maxlength="50"
show-word-limit
v-model="infoForm.rejectCause"
class="dis-in-block reject-input" />
<el-form ref="refundForm" label-width="150px" :model="infoForm" :rules="formRules">
<el-form-item label="驳回原因:" prop="rejectCause">
<el-input type="textarea" :row="4" placeholder="请输入驳回原因" maxlength="50" show-word-limit
v-model="infoForm.rejectCause" class=" reject-input" />
</el-form-item>
</el-form>
</div>
</d2-dialog>
</baseDialog>
</template>
<script>
......@@ -35,7 +23,10 @@ export default {
infoForm: {
rejectCause: ''
},
dialogConfig: {
title: '驳回提示',
width: '750px'
},
formRules: {
rejectCause: [{ required: true, message: '请输入驳回原因', trigger: 'change' }]
}
......@@ -52,6 +43,21 @@ export default {
default: {}
}
},
computed: {
visible: {
get() {
// if (this.visible) {
// // 注册全局监听事件 [ 目前只考虑鼠标解除触发 ]
// window.addEventListener('mousedown', this.watchContextmenu)
// }
return this.rejectVisible
},
set(newVal) {
this.$emit('dialogClose', newVal)
// this.$emit('update:visible', newVal)
}
}
},
watch: {
},
......@@ -67,15 +73,19 @@ export default {
methods: {
handleAddConfirm() {
// return
this.$refs.refundForm.validate(valid => {
if (valid) {
// console.log(valid)
// return
var infoForm = deepClone(this.infoForm)
var params = {}
params.rejectCause = infoForm.rejectCause
params.orderCode = this.paramsObj.orderCode
purchaseOrderReject(params).then(res => {
this.notice.okTips('操作成功')
this.handleClose(true)
// this.handleClose(true)
this.visible = true
})
}
})
......@@ -90,16 +100,20 @@ export default {
<style lang="scss" scoped>
.reject-dialog {
margin: 65px 0;
.reject-input .el-textarea__inner {
height: 79px;
width: 432px;
.reject-input {
::v-deep .el-textarea__inner {
height: 70px;
}
}
.el-textarea .el-input__count {
right: 90px;
bottom: -10px;
font-size: 12px;
color: #999999;
}
.tips {
color: #999999;
}
......
......@@ -69,7 +69,7 @@ export const defaultDeliveryStatusOptions = [
},
{
id: 2,
label: "已发货"
label: "全部发货"
},
{
id: 3,
......@@ -85,7 +85,11 @@ export const defaultPutStatusOptions = [
},
{
id: 2,
label: "已入库"
label: "全部入库"
},
{
id: 3,
label: "部分入库"
}
]
......
......@@ -62,7 +62,7 @@ export default {
deliveryNumber: '',
deliveryCompany: '',
deliveryDate: '',
orderCode: '',
orderCode: this.$route.params.orderCode || '',
merchantName: '',
putStatus: ''
},
......
<!-- 采购审核-运营审核 -->
<template>
<d2-container class="container">
<div class="header"
slot="header">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
@handleChangeSelect="handleChangeSelect"
:form-data="showFormData">
<div class="header" slot="header">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" @handleChangeSelect="handleChangeSelect"
: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>
......@@ -29,30 +21,18 @@
<auth-button category="Button" />
</span>
<span>
<el-button type="primary"
size="mini"
@click="handleExport">
<el-button type="primary" size="mini" @click="handleExport">
导出
</el-button>
</span>
</d2-table-header>
<d2-table ref="purchasementReviewTable"
:search-form="tableSearchForm"
:table-params="tableParams"
:table-data="tableData"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button"
slot-scope="scope"
:data="scope.scope" />
<d2-table ref="purchasementReviewTable" :search-form="tableSearchForm" :table-params="tableParams"
:table-data="tableData" :get-list-api="getListApi" :before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
</d2-table>
</div>
<orderDeatilDialog :visible.sync="detailVisible"
:params-obj="paramsObj"></orderDeatilDialog>
<rejectDialog :reject-visible="rejectVisible"
v-if="rejectVisible"
:params-obj="paramsObj"
@dialogClose="dialogClose">
<orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :params-obj="paramsObj"></orderDeatilDialog>
<rejectDialog :reject-visible="rejectVisible" v-if="rejectVisible" :params-obj="paramsObj" @dialogClose="dialogClose">
</rejectDialog>
</d2-container>
</template>
......@@ -139,7 +119,8 @@ export default {
optionId: 'id',
optionLabel: 'label',
optionsName: 'purchasingPatternOptions'
}, {
},
{
label: '发货主体',
name: 'sendOutMerchantName',
type: 'input',
......@@ -198,7 +179,10 @@ export default {
},
{
label: '发货主体',
prop: 'sendOutMerchantName'
prop: 'sendOutMerchantName',
formatter: (cellValue) => {
return cellValue.sendOutMerchantName ? cellValue.sendOutMerchantName : '-'
}
},
{
label: '发货状态',
......@@ -208,8 +192,9 @@ export default {
},
className: (cellValue) => {
return {
1: 'yellowSpot',
2: 'greenSpot'
1: 'ashSpot',
2: 'greenSpot',
3: 'yellowSpot'
}[cellValue.deliveryStatus]
}
},
......@@ -360,11 +345,12 @@ export default {
handleDetail(row) {
this.paramsObj = {
orderCode: row.orderCode,
merchantName: row.merchantName
merchantName: row.merchantName,
purchaseType: row.purchaseType
}
this.detailVisible = true
},
//驳回
// 驳回
handleReject(row) {
this.paramsObj = {
orderCode: row.orderCode
......@@ -372,14 +358,14 @@ export default {
this.rejectVisible = true
},
dialogClose(flag) {
console.log(flag)
this.rejectVisible = !this.rejectVisible
if (flag) {
this.$refs.purchasementReviewTable.refreshTable()
}
},
}
}
}
</script>
<style lang="scss" scoped>
</style>
<style lang="scss" scoped></style>
<!-- 采购发货 -->
<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>
......@@ -28,75 +20,51 @@
<auth-button category="Button" />
</span>
<span>
<el-button type="primary"
size="mini"
@click="handleExport">
<el-button type="primary" size="mini" @click="handleExport">
导出
</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;">
<auth-button :data="scope.scope"
:show-btn-ids="['9090401']" />
<auth-button :data="scope.scope" :show-btn-ids="['9090401']" />
</span>
<!-- 确认发货 -->
<span v-show="scope.scope.status == 2"
style="margin-right: 10px;">
<auth-button :data="scope.scope"
:show-btn-ids="['9090402']" />
<span v-show="scope.scope.status == 2" style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9090402']" />
</span>
<!-- 驳回 -->
<span v-show="scope.scope.deliveryStatus == 1">
<!-- <el-button :data="scope.scope" type="text" @click="handleReject(scope.scope)">驳回</el-button> -->
<auth-button :data="scope.scope"
:show-btn-ids="['9090403']" />
<auth-button :data="scope.scope" :show-btn-ids="['9090403']" />
</span>
</div>
</d2-table>
</div>
<orderDeatilDialog :visible.sync="detailVisible"
:params-obj="paramsObj"></orderDeatilDialog>
<EditOrderDialog v-if="editVisible"
:visible.sync="editVisible"
:params-obj="dialogData"
@editClose="editClose"></EditOrderDialog>
<baseDialog v-if="rejectVisible"
:is-show.sync="rejectVisible"
:config="rejectConfig.setting"
:dialog-config="rejectConfig.config"
@closeDialog="handleRejectClose">
<orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :params-obj="paramsObj"></orderDeatilDialog>
<EditOrderDialog v-if="editVisible" :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">
<!-- <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"
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>
<div class="footer">
<!-- <div class="footer">
<el-button @click="handleRejectClose">取消</el-button>
<el-button @click="handleRejectConfirm"
type="primary"
v-preventReClick
:loading="$store.state.d2admin.loading.value">确认</el-button>
</div>
<el-button @click="handleRejectConfirm" type="primary" v-preventReClick
:loading="$store.state.d2admin.loading.value">确认</el-button>
</div> -->
<!-- </d2-dialog> -->
</baseDialog>
</d2-container>
</template>
......@@ -125,9 +93,10 @@ export default {
rejectConfig: {
setting: {
showClose: true,
appendToBody: true,
btnList: [
]
// appendToBody: true,
isShowFooter: true
// btnList: [
// ]
},
config: {
title: '驳回提示',
......@@ -272,9 +241,9 @@ export default {
},
className: (cellValue) => {
return {
1: 'yellowSpot',
1: 'ashSpot',
2: 'greenSpot',
3: 'ashSpot'
3: 'yellowSpot'
}[cellValue.deliveryStatus]
}
},
......@@ -433,6 +402,8 @@ export default {
handleRejectConfirm() {
this.$refs['delivery-dialog-form'].validate(valid => {
if (valid) {
// console.log(valid)
// return
purchaseOrderReject({ ...this.rejectData }).then(res => {
this.handleRejectClose()
this.notice.okTips()
......@@ -455,26 +426,30 @@ export default {
handleDetail(row) {
this.paramsObj = {
orderCode: row.orderCode,
merchantName: row.merchantName
merchantName: row.merchantName,
purchaseType: row.purchaseType
}
this.detailVisible = true
}
}
}
</script>
<style lang="scss">
<style lang="scss" scoped>
.reject-dialog {
margin: 65px 0;
.reject-input .el-textarea__inner {
height: 79px;
width: 432px;
}
.el-textarea .el-input__count {
right: 90px;
bottom: -10px;
font-size: 12px;
color: #999999;
}
.tips {
color: #999999;
}
......
......@@ -56,14 +56,21 @@
:show-btn-ids="['9090103']" />
</span>
<!-- 入库 -->
<span v-show="scope.scope.putStatus == 1 && !userInfo.beSuper && userInfo.beYQMerchant">
<span style="margin-right: 10px;"
v-show="scope.scope.putStatus == 1 && !userInfo.beSuper && userInfo.beYQMerchant">
<auth-button :data="scope.scope"
: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)">
<auth-button :data="scope.scope"
:show-btn-ids="['9090105']" />
</span>
</div>
</d2-table>
</div>
<orderDeatilDialog :visible.sync="detailVisible"
v-if="detailVisible"
:params-obj="paramsObj"></orderDeatilDialog>
</d2-container>
</template>
......@@ -230,8 +237,9 @@ export default {
},
className: (cellValue) => {
return {
1: 'yellowSpot',
2: 'greenSpot'
1: 'ashSpot',
2: 'greenSpot',
3: 'yellowSpot'
}[cellValue.deliveryStatus]
}
},
......@@ -257,8 +265,9 @@ export default {
},
className: (cellValue) => {
return {
1: 'yellowSpot',
2: 'greenSpot'
1: 'ashSpot',
2: 'greenSpot',
3: 'yellowSpot'
}[cellValue.putStatus]
}
},
......@@ -445,6 +454,15 @@ export default {
purchaseType: row.purchaseType
}
this.detailVisible = true
},
//发货单
handleSendgoods(row) {
this.$router.push({
name: 'invoiceRecord',
params: {
orderCode: row.orderCode
}
})
}
}
}
......
......@@ -323,8 +323,10 @@ export default {
},
methods: {
validateAccount(rule, value, callback, item) {
console.log(item)
value < item.low
// console.log(item)
// console.log(value)
// 避免字符串转换问题
Number(value) < Number(item.low)
? callback(new Error(`价格不能小于${item.low}万元`))
: callback()
},
......
......@@ -2,21 +2,13 @@
<template>
<div>
<d2-container>
<div class="header"
slot="header"
style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData" />
<div class="header" slot="header" style="padding: 10px 20px;">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData" />
<div class="up-btns">
<el-button :id="tableParams.btnId"
size="small"
type="primary">
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
</el-button>
<el-button size="small"
@click="handleReset">
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
......@@ -25,14 +17,9 @@
<d2-table-header>
<auth-button category="Button" />
</d2-table-header>
<d2-table ref="recordTable"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button"
slot-scope="scope"
:data="scope.scope" />
<d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
</d2-table>
</div>
</d2-container>
......@@ -231,6 +218,10 @@ export default {
{
confId: '3',
confLabel: '调拨入库'
},
{
confId: '4',
confLabel: '订单入库'
}
],
productTypeList: [],
......@@ -276,10 +267,10 @@ export default {
yqMerchantId: merchantId
}).then(res => {
this.baseData.merchantIdList = res || []
//总店
let _headOffice = this.baseData.yqMerchantList.find(item => item.merchantNo === merchantId)
// 总店
const _headOffice = this.baseData.yqMerchantList.find(item => item.merchantNo === merchantId)
_headOffice.merchantId = _headOffice.merchantNo
//门店选项中加入总店
// 门店选项中加入总店
this.baseData.merchantIdList.push(_headOffice)
this.getOptionsList()
})
......
<!-- 服务商管理 -->
<template>
<d2-container class="service-manage">
<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" />
<div class="up-btns">
<el-button :id="tableParams.btnId"
size="small"
type="primary">
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
</el-button>
<el-button size="small"
@click="handleReset">
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
</div>
<div class="d2-container-content">
<d2-table ref="serviceStoreTable"
:search-form="searchForm"
:table-params="tableParams"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button"
slot-scope="scope"
:show-btn-ids="['9060503']"
:data="scope.scope" />
<d2-table ref="serviceStoreTable" :search-form="searchForm" :table-params="tableParams" :get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" slot-scope="scope" :show-btn-ids="['9060503']" :data="scope.scope" />
</d2-table>
</div>
</d2-container>
......@@ -73,12 +60,15 @@ export default {
tableOption: true,
tableColumns: [{
label: '服务商名称',
width: 180,
prop: 'partnerMerchantName'
}, {
label: '商户号',
width: 150,
prop: 'partnerMerchantId'
}, {
label: '登录账号',
width: 150,
prop: 'accountName'
}, {
label: '采购模式',
......@@ -95,21 +85,41 @@ export default {
}
}, {
label: '下级园区店',
prop: 'subMerchantName',
prop: '',
html: true,
width: 200,
formatter: (cellValue) => {
return cellValue?.subMerchantName || '-'
var html = '-'
var list = []
if (cellValue.subMerchantsInfo && cellValue.subMerchantsInfo.length > 0) {
cellValue.subMerchantsInfo.map(item => {
list.push(item.merchantName)
})
html = list.join('<br>')
}
return html
}
}, {
label: '下级园区店商户号',
width: '180',
prop: 'subMerchantName',
prop: '',
html: true,
formatter: (cellValue) => {
return cellValue?.subMerchantId || '-'
var html = '-'
var list = []
if (cellValue.subMerchantsInfo && cellValue.subMerchantsInfo.length > 0) {
cellValue.subMerchantsInfo.map(item => {
list.push(item.merchantId)
})
html = list.join('<br>')
}
return html
}
}, {
label: '关联园区店',
prop: 'yqMerchantId',
html: true,
width: 200,
formatter: (cellValue) => {
var html = ''
var list = []
......@@ -139,20 +149,21 @@ export default {
}
}, {
label: '最近更新时间',
prop: 'lastRefDate',
prop: 'updatedDate',
// prop: 'lastRefDate',
width: '160',
formatter: (cellValue) => {
return Util.dateFormate(cellValue.lastRefDate, 'YYYY-MM-DD HH:mm:ss')
return cellValue.updatedDate ? Util.dateFormate(cellValue.updatedDate, 'YYYY-MM-DD HH:mm:ss') : '-'
}
}]
},
}
}
},
components: {
},
mounted() {},
mounted() { },
methods: {
...mapActions({
......@@ -179,7 +190,7 @@ export default {
this.close({ tagName: '/editService' })
this.$router.push({
name: 'editService',
params: { serviceMerchantId: row.partnerMerchantId}
params: { serviceMerchantId: row.partnerMerchantId }
})
}
}
......@@ -188,6 +199,7 @@ export default {
</script>
<style lang="scss" scoped>
::v-deep .service-manage {
/*下拉选择框-多选-内容过长-用...代替 begin */
.el-tag.el-tag--info {
background-color: #f4f4f5;
......@@ -198,9 +210,11 @@ export default {
text-overflow: ellipsis;
overflow: hidden;*/
}
.el-tag.el-tag--info {
width: calc(100% - 200px);
}
.el-tag.el-tag--info .el-select__tags-text {
width: calc(100% - 20px);
float: left;
......@@ -208,6 +222,7 @@ export default {
text-overflow: ellipsis;
overflow: hidden;
}
/*下拉选择框-多选-内容过长-用...代替 end */
.el-select-dropdown__item {
......
......@@ -2,52 +2,34 @@
<template>
<div>
<d2-container>
<div class="header"
slot="header"
style="padding: 10px 20px">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData" />
<div class="header" slot="header" style="padding: 10px 20px">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData" />
<div class="up-btns">
<el-button :id="tableParams.btnId"
size="small"
type="primary">
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
</el-button>
<el-button size="small"
@click="handleReset"> 重置 </el-button>
<el-button size="small" @click="handleReset"> 重置 </el-button>
</div>
</div>
<div class="d2-container-content">
<d2-table-header>
<el-button class="default-blue-btn"
plain
@click="handleExport"
size="small">导出</el-button>
<el-button class="default-blue-btn" plain @click="handleExport" size="small">导出</el-button>
</d2-table-header>
<d2-table ref="damageTable"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<div slot-scope="scope"
slot="auth-button"
class="btnClass">
<d2-table ref="damageTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:before-search-fn="beforeSearchFn">
<div slot-scope="scope" slot="auth-button" class="btnClass">
<!-- 查看 -->
<!-- <auth-button
v-if="[1, 2, 3, -1, 5].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)"
:show-btn-ids="['9040601']" :data="scope.scope" /> -->
<!-- 打印报价单 -->
<auth-button v-if="[1, 2, 3, -1, 5].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)"
:show-btn-ids="['9040603']"
:data="scope.scope" />
<auth-button
v-if="[1, 2, 3, -1, 5].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)"
:show-btn-ids="['9040603']" :data="scope.scope" />
<!-- 打印合同 -->
<auth-button v-if="[2].includes(scope.scope.equityOrderStatus) && [3, 5].includes(scope.scope.orderStatus)"
:show-btn-ids="['9040605']"
:data="scope.scope" />
<auth-button :show-btn-ids="['9040602']"
:data="scope.scope" />
:show-btn-ids="['9040605']" :data="scope.scope" />
<auth-button :show-btn-ids="['9040602']" :data="scope.scope" />
</div>
</d2-table>
</div>
......@@ -175,17 +157,26 @@ export default {
{
label: "报价金额/元",
prop: "quotedPrice",
width: "200px"
width: "200px",
formatter: (cellValue) => {
return cellValue.quotedPrice ? (cellValue.quotedPrice / 100).toFixed(2) : "-"
}
},
{
label: "预计权益金额/元",
prop: "estEquityPrice",
width: "250px"
width: "250px",
formatter: (cellValue) => {
return cellValue.estEquityPrice ? (cellValue.estEquityPrice / 100).toFixed(2) : "-"
}
},
{
label: "实际权益金额/元",
prop: "equityPrice",
width: "250px"
width: "250px",
formatter: (cellValue) => {
return cellValue.equityPrice ? (cellValue.equityPrice / 100).toFixed(2) : "-"
}
},
{
label: "商户名称",
......
......@@ -74,19 +74,19 @@ module.exports = {
// lintOnSave: true,
lintOnSave: false,
devServer: {
// port: 8082,
// publicPath, // 和 publicPath 保持一致
// port: 8082,
// proxy: {
// "/dj-carlife-web": {
// // 拦截链接中有/musicApi
// target: "http://192.168.3.226:9203/rop-dj-smartcarlife/router", // API服务器的地址
// "/api": {
// // target: "http://192.168.3.102:9203/rop-dj-smartcarlife/router", // API服务器的地址
// target: "http://dj.glsx.com.cn/rop-dj-smartcarlife/router", // API服务器的地址
// changeOrigin: true,
// pathRewrite: {
// // "^/dev-api/vue-admin-template/user/login": "/user"
// "^/api": ""
// }
// }
// },
https: false,
// https: true,
host: getIpAddress()
},
css: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!