Commit 1231b7b1 by zhangxw

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

…stem into zhangxw_dev_v4.22.0
2 parents 13614b0e 43950fc5
Showing 34 changed files with 930 additions and 303 deletions
...@@ -66,7 +66,8 @@ export function getMerchantOutputValueTarget(data) { ...@@ -66,7 +66,8 @@ export function getMerchantOutputValueTarget(data) {
export function setMerchantOutputValueTarget(data) { export function setMerchantOutputValueTarget(data) {
data.method = `${path2}workbench.inputMerchantOutputValueTarget` data.method = `${path2}workbench.inputMerchantOutputValueTarget`
return request(data) return request(data, "post")
// return request(data)
} }
// 隐私协议标题查询 // 隐私协议标题查询
......
...@@ -57,6 +57,7 @@ const request = ( ...@@ -57,6 +57,7 @@ const request = (
* 调后端接口 - url = '' * 调后端接口 - url = ''
*/ */
const url = baseConfig[baseApiName].baseURL const url = baseConfig[baseApiName].baseURL
// const url = "/api"
/** /**
* 调后端接口,请使用以下代码。 * 调后端接口,请使用以下代码。
*/ */
......
...@@ -626,7 +626,13 @@ export const invouceType = [ ...@@ -626,7 +626,13 @@ export const invouceType = [
] ]
// 服务商管理 采购模式 // 服务商管理 采购模式
export const procureModeList = [ export const procureModeList = [
{ confId: 1, confName: '直营' }, { confId: 1, confName: "直营" },
{ confId: 2, confName: '批发' }, { confId: 2, confName: "批发" },
{ confId: 3, confName: '代销' } { confId: 3, confName: "代销" }
]
//开店审核 申请状态
export const applyStatus = [
{ confId: 1, confName: "待审核" },
{ confId: 2, confName: "已审核" },
{ confId: 3, confName: "已驳回" }
] ]
...@@ -102,6 +102,7 @@ fetch( ...@@ -102,6 +102,7 @@ fetch(
) )
.then((response) => { .then((response) => {
const { code, data } = response const { code, data } = response
console.log("response", response)
if (code == "200") { if (code == "200") {
console.log(data) console.log(data)
...@@ -109,10 +110,7 @@ fetch( ...@@ -109,10 +110,7 @@ fetch(
// console.log("baseConfig", baseConfig) // console.log("baseConfig", baseConfig)
// window.$fetchConfig = data // window.$fetchConfig = data
} else { } else {
// response.axios.baseURL = // response = {
// "http://192.168.3.226:9203/rop-dj-smartcarlife/router"
// "http://192.168.1.169:8392/rop-dj-smartcarlife/router"
// baseConfig = {
// // 系统名字 // // 系统名字
// sysName: "嘀加智享车生活", // sysName: "嘀加智享车生活",
// // 系统说明 // // 系统说明
......
...@@ -208,7 +208,15 @@ export const routerName = { ...@@ -208,7 +208,15 @@ export const routerName = {
authId: "9040603", authId: "9040603",
parentId: "90406", parentId: "90406",
label: "打印", label: "打印",
handle: "handlePrint" handle: "handlePrint",
ruleObj: {
attr: "mode",
rule: {
0: "打印",
1: "打印"
},
disabledStatusList: [1]
}
}, },
{ {
authId: "9040605", authId: "9040605",
......
...@@ -580,5 +580,42 @@ export const routerName = { ...@@ -580,5 +580,42 @@ export const routerName = {
activePath: "/deviceManage" activePath: "/deviceManage"
}, },
component: _import("systemConfig/deviceManage/deviceHistory") component: _import("systemConfig/deviceManage/deviceHistory")
},
90618: {
path: "/openshopProcess",
name: "openshopProcess",
meta: {
title: "开店审核",
authId: "90618",
parentId: "906",
cache: false
},
auth: [
{
authId: "9061801",
parentId: "90618",
label: "审核",
ruleObj: {
attr: "status",
rule: {
1: "审核"
}
},
handle: "handleCheck"
},
{
authId: "9061802",
parentId: "90618",
label: "驳回",
ruleObj: {
attr: "status",
rule: {
1: "驳回"
}
},
handle: "handleReject"
}
],
component: _import("systemConfig/OpenshopProcess/index")
} }
} }
...@@ -71,6 +71,12 @@ export const routerName = { ...@@ -71,6 +71,12 @@ export const routerName = {
} }
}, },
handle: "handleWarehousing" handle: "handleWarehousing"
},
{
authId: "9090105",
parentId: "90901",
label: "发货单",
handle: "handleSendgoods"
} }
], ],
component: _import("purchase/purchaseOrder") component: _import("purchase/purchaseOrder")
......
...@@ -38,7 +38,15 @@ export const routerName = { ...@@ -38,7 +38,15 @@ export const routerName = {
authId: "9100102", authId: "9100102",
parentId: "91001", parentId: "91001",
label: "编辑", label: "编辑",
handle: "handleEdit" handle: "handleEdit",
ruleObj: {
attr: "status",
rule: {
0: "待配置",
1: "编辑"
}
// disabledStatusList: [0]
}
}, },
{ {
authId: "9100103", authId: "9100103",
......
...@@ -36,7 +36,15 @@ export const routerName = { ...@@ -36,7 +36,15 @@ export const routerName = {
authId: "9110103", authId: "9110103",
parentId: "91101", parentId: "91101",
label: "打印", label: "打印",
handle: "handlePrint" handle: "handlePrint",
ruleObj: {
attr: "mode",
rule: {
0: "打印",
1: "打印"
},
disabledStatusList: [1]
}
} }
], ],
component: _import("vehicleDamage/vehicleDamageList") component: _import("vehicleDamage/vehicleDamageList")
......
...@@ -387,6 +387,9 @@ export default { ...@@ -387,6 +387,9 @@ export default {
_formData.goodsTypeName = _valueObj?.goodsTypeName _formData.goodsTypeName = _valueObj?.goodsTypeName
_formData.goodsType = _valueObj?.goodsType _formData.goodsType = _valueObj?.goodsType
_formData.serviceItemNames = _valueObj?.serviceItemNames _formData.serviceItemNames = _valueObj?.serviceItemNames
_formData.productType = [] // 切换上架商品 将服务类型清空
_formData.baseSupplyMode = '' // 切换上架商品 将基础供货模式清空
_formData.upgradeSupplyMode = '' // 切换上架商品 将升级/产品供货模式清空
} }
}, },
handleClose() { handleClose() {
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
:filter-list-data="true"> :filter-list-data="true">
<div class="material" slot="img" slot-scope="scope"> <div class="material" slot="img" slot-scope="scope">
<img class="pro-img" :src="scope.scope.goodsInfo.thumbUrl"> <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>
<div v-if="Object.keys(scope.scope).includes('upgradeGoodsList')" <div v-if="Object.keys(scope.scope).includes('upgradeGoodsList')"
slot="auth-button" slot="auth-button"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div class="searchWrap"> <div class="searchWrap">
<el-col :span="11"> <el-col :span="11">
<el-date-picker v-model="search.targetDate" :clearable="false" type="month" format="yyyy 年 MM 月" <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>
<el-col :span="9"> <el-col :span="9">
<el-input v-model="search.keyword" clearable placeholder="输入门店名称搜索" /> <el-input v-model="search.keyword" clearable placeholder="输入门店名称搜索" />
...@@ -165,16 +165,31 @@ export default { ...@@ -165,16 +165,31 @@ export default {
return 'background:#F4F6FC' return 'background:#F4F6FC'
}, },
async handleConfirmImport() { async handleConfirmImport() {
const filterList = this.tableData.filter((item) => { let filterList = this.tableData.filter((item) => {
// 删除无需字段 避免后台类型报错 // 删除无需字段 避免后台类型报错
delete item.createdDate // delete item.createdDate
delete item.updatedDate // delete item.updatedDate
// delete item.createdBy
// delete item.updatedBy
// delete item.deletedFlag
// delete item.targetDate
return (item.isEdit && item.outputValue) || item.deployScene || item.businessScene 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) { if (filterList.length) {
// console.log('请求修改') // console.log('请求修改')
// const result = // const result =
await setMerchantOutputValueTarget({ list: filterList }) // await setMerchantOutputValueTarget({ list: filterList })
await setMerchantOutputValueTarget({ dataString: JSON.stringify(filterList) })
// console.log(result) // console.log(result)
} }
// else { // else {
......
<!-- 下载对账单 --> <!-- 下载对账单 -->
<template> <template>
<d2-dialog title="退款备注" <d2-dialog title="退款备注" :is-visible="signRefundVisible" class="accountDailog" @closeDialog="handleClose"
:is-visible="signRefundVisible" @confirmDialog="handleAddConfirm">
class="accountDailog" <el-form ref="refundForm" :model="infoForm" :rules="formRules">
@closeDialog="handleClose"
@confirmDialog="handleAddConfirm">
<el-form ref="refundForm"
:model="infoForm"
:rules="formRules">
<el-form-item prop="remark"> <el-form-item prop="remark">
<el-input v-clear-emoij <el-input v-clear-emoij type="textarea" :rows="5" placeholder="不超过100个字。" maxlength="100" show-word-limit
type="textarea" v-model="infoForm.remark" />
:rows="5"
placeholder="不超过100个字。"
maxlength="100"
show-word-limit
v-model="infoForm.remark" />
</el-form-item> </el-form-item>
</el-form> </el-form>
</d2-dialog> </d2-dialog>
...@@ -85,11 +75,12 @@ export default { ...@@ -85,11 +75,12 @@ export default {
} }
} }
</script> </script>
<style> <style scoped>
.accountDailog .el-dialog { .accountDailog .el-dialog {
margin-top: 20vh !important; margin-top: 20vh !important;
min-width: 700px; min-width: 700px;
} }
.accountDailog .el-select-dropdown__item { .accountDailog .el-select-dropdown__item {
width: 395px !important; width: 395px !important;
} }
......
...@@ -83,7 +83,7 @@ export default { ...@@ -83,7 +83,7 @@ export default {
}, },
config: { config: {
title: '采购发货', title: '采购发货',
width: '1010px' width: '1050px'
} }
}, },
isSubmit: false, isSubmit: false,
...@@ -188,7 +188,7 @@ export default { ...@@ -188,7 +188,7 @@ export default {
const _index = scope.index const _index = scope.index
const _oldVal = this.oldPurNumList[_index] || 0 const _oldVal = this.oldPurNumList[_index] || 0
const _maxVal = _row.goodsNumber - _row.purchaseNumber const _maxVal = _row.goodsNumber - _row.purchaseNumber
this.nowPurNumList[_index] = limitPrice(val, _oldVal, 2, 0, 0, _maxVal) this.nowPurNumList[_index] = limitPrice(val, _oldVal, 9999, 0, 0, _maxVal)
this.oldPurNumList = JSON.parse(JSON.stringify(this.nowPurNumList)) this.oldPurNumList = JSON.parse(JSON.stringify(this.nowPurNumList))
}, },
submit() { submit() {
...@@ -208,8 +208,7 @@ export default { ...@@ -208,8 +208,7 @@ export default {
} }
const attrNameList = ['upgradeGoodsId', 'type', 'upgradeGoodsName', 'conversionValue', 'goodsName', 'goodsCode', 'goodsType', 'goodsTypeName'] const attrNameList = ['upgradeGoodsId', 'type', 'upgradeGoodsName', 'conversionValue', 'goodsName', 'goodsCode', 'goodsType', 'goodsTypeName']
this.detailInfo.tableData.forEach((item, idx) => { this.detailInfo.tableData.forEach((item, idx) => {
console.log(this.nowPurNumList[idx]) if (this.nowPurNumList[idx] && this.nowPurNumList[idx] != 0) {
if (this.nowPurNumList[idx] != 0) {
params.deliveryDetailList.push({ params.deliveryDetailList.push({
..._.pick(item, attrNameList), ..._.pick(item, attrNameList),
purchaseNumber: this.nowPurNumList[idx] purchaseNumber: this.nowPurNumList[idx]
......
...@@ -28,6 +28,12 @@ ...@@ -28,6 +28,12 @@
:table-total="detailInfo.tableTotal"> :table-total="detailInfo.tableTotal">
</d2-table> </d2-table>
</div> </div>
<div class="examine-record">
<div class="title">审核记录</div>
<div>
<div><span><span class="dot"></span></span></div>
</div>
</div>
</div> </div>
</baseDialog> </baseDialog>
</template> </template>
...@@ -60,6 +66,9 @@ export default { ...@@ -60,6 +66,9 @@ export default {
} }
} }
}, },
mounted() {
this.dynamicParams()
},
data() { data() {
return { return {
dialogConfig: { dialogConfig: {
...@@ -100,7 +109,17 @@ export default { ...@@ -100,7 +109,17 @@ export default {
label: '采购数量', label: '采购数量',
prop: 'goodsNumber', prop: 'goodsNumber',
formatter: (cellValue) => { formatter: (cellValue) => {
return membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.goodsNumber}卷/${cellValue.conversionValue ? cellValue.goodsNumber * cellValue.conversionValue : '-'}米` : `${cellValue.goodsNumber}件` // return membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.goodsNumber}卷/${cellValue.conversionValue ? cellValue.goodsNumber * cellValue.conversionValue : '-'}米` : `${cellValue.goodsNumber}件`
let condition = membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.goodsNumber}卷` : `${cellValue.goodsNumber}件`
return this.paramsObj.purchaseType == 1 ? condition : `${cellValue.goodsNumber}件`
}
},
{
label: '库存总量',
prop: 'goodsTypeName',
formatter: cellValue => {
let condition = membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.conversionValue ? cellValue.goodsNumber * cellValue.conversionValue : '-'}米` : `${cellValue.goodsNumber}件`
return this.paramsObj.purchaseType == 1 ? condition : `${cellValue.goodsNumber}件`
} }
}, },
{ {
...@@ -116,6 +135,42 @@ export default { ...@@ -116,6 +135,42 @@ export default {
} }
}, },
methods: { 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() { handleDetailClose() {
this.dialogShow = false this.dialogShow = false
}, },
...@@ -178,4 +233,30 @@ export default { ...@@ -178,4 +233,30 @@ export default {
min-width: 500px; min-width: 500px;
} }
} }
.examine-record {
width: 968px;
height: 157px;
background: #ffffff;
border: 1px solid #e5e5e5;
margin-top: 23px;
.title {
margin: 16px 20px;
width: 64px;
height: 22px;
font-family: PingFangSC-Medium;
font-weight: 600;
font-size: 16px;
color: #333333;
text-align: center;
}
.dot {
width: 6px;
height: 6px;
background: #185efe;
border-radius: 6px;
display: inline-block;
}
}
</style> </style>
<!-- 驳回 --> <!-- 驳回 -->
<template> <template>
<d2-dialog title="驳回提示" <baseDialog :dialog-config="dialogConfig" :is-show.sync="visible" class="accountDailog" @handleClick="handleAddConfirm">
:is-visible="rejectVisible"
class="accountDailog"
@closeDialog="handleClose"
@confirmDialog="handleAddConfirm">
<div class="reject-dialog"> <div class="reject-dialog">
<el-form ref="refundForm" <el-form ref="refundForm" label-width="150px" :model="infoForm" :rules="formRules">
label-width="150px" <el-form-item label="驳回原因:" prop="rejectCause">
:model="infoForm" <el-input type="textarea" :row="4" placeholder="请输入驳回原因" maxlength="50" show-word-limit
:rules="formRules"> v-model="infoForm.rejectCause" class=" reject-input" />
<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-item> </el-form-item>
</el-form> </el-form>
</div> </div>
</d2-dialog> </baseDialog>
</template> </template>
<script> <script>
...@@ -35,7 +23,10 @@ export default { ...@@ -35,7 +23,10 @@ export default {
infoForm: { infoForm: {
rejectCause: '' rejectCause: ''
}, },
dialogConfig: {
title: '驳回提示',
width: '750px'
},
formRules: { formRules: {
rejectCause: [{ required: true, message: '请输入驳回原因', trigger: 'change' }] rejectCause: [{ required: true, message: '请输入驳回原因', trigger: 'change' }]
} }
...@@ -52,6 +43,21 @@ export default { ...@@ -52,6 +43,21 @@ export default {
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: { watch: {
}, },
...@@ -67,15 +73,19 @@ export default { ...@@ -67,15 +73,19 @@ export default {
methods: { methods: {
handleAddConfirm() { handleAddConfirm() {
// return
this.$refs.refundForm.validate(valid => { this.$refs.refundForm.validate(valid => {
if (valid) { if (valid) {
// console.log(valid)
// return
var infoForm = deepClone(this.infoForm) var infoForm = deepClone(this.infoForm)
var params = {} var params = {}
params.rejectCause = infoForm.rejectCause params.rejectCause = infoForm.rejectCause
params.orderCode = this.paramsObj.orderCode params.orderCode = this.paramsObj.orderCode
purchaseOrderReject(params).then(res => { purchaseOrderReject(params).then(res => {
this.notice.okTips('操作成功') this.notice.okTips('操作成功')
this.handleClose(true) // this.handleClose(true)
this.visible = true
}) })
} }
}) })
...@@ -90,16 +100,20 @@ export default { ...@@ -90,16 +100,20 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.reject-dialog { .reject-dialog {
margin: 65px 0; margin: 65px 0;
.reject-input .el-textarea__inner {
height: 79px; .reject-input {
width: 432px; ::v-deep .el-textarea__inner {
height: 70px;
}
} }
.el-textarea .el-input__count { .el-textarea .el-input__count {
right: 90px; right: 90px;
bottom: -10px; bottom: -10px;
font-size: 12px; font-size: 12px;
color: #999999; color: #999999;
} }
.tips { .tips {
color: #999999; color: #999999;
} }
......
...@@ -26,7 +26,7 @@ export const defaultDeliveryStatusOptions = [ ...@@ -26,7 +26,7 @@ export const defaultDeliveryStatusOptions = [
}, },
{ {
id: 2, id: 2,
label: "已发货" label: "全部发货"
}, },
{ {
id: 3, id: 3,
...@@ -42,7 +42,11 @@ export const defaultPutStatusOptions = [ ...@@ -42,7 +42,11 @@ export const defaultPutStatusOptions = [
}, },
{ {
id: 2, id: 2,
label: "已入库" label: "全部入库"
},
{
id: 3,
label: "部分入库"
} }
] ]
...@@ -69,3 +73,15 @@ export const purchasingPatternOptions = [ ...@@ -69,3 +73,15 @@ export const purchasingPatternOptions = [
// 5: "按(产值-流量成本-其他费用不包含产品成本))比例", // 5: "按(产值-流量成本-其他费用不包含产品成本))比例",
// 6: "按(产值-流量成本-其他费用包含产品成本)比例" // 6: "按(产值-流量成本-其他费用包含产品成本)比例"
// } // }
//采购类型
export const purchaseTypeList = [
{
id: 1,
label: "商城采购"
},
{
id: 2,
label: "自采入库"
}
]
...@@ -62,7 +62,7 @@ export default { ...@@ -62,7 +62,7 @@ export default {
deliveryNumber: '', deliveryNumber: '',
deliveryCompany: '', deliveryCompany: '',
deliveryDate: '', deliveryDate: '',
orderCode: '', orderCode: this.$route.params.orderCode || '',
merchantName: '', merchantName: '',
putStatus: '' putStatus: ''
}, },
......
<!-- 采购审核 --> <!-- 采购审核 -->
<template> <template>
<d2-container class="container"> <d2-container class="container">
<div class="header" <div class="header" slot="header">
slot="header"> <d2-search ref="showSearch" class="show-search" :search-form="searchForm" @handleChangeSelect="handleChangeSelect"
<d2-search ref="showSearch" :form-data="showFormData">
class="show-search"
:search-form="searchForm"
@handleChangeSelect="handleChangeSelect"
:form-data="showFormData">
</d2-search> </d2-search>
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" <el-button :id="tableParams.btnId" size="small" type="primary" handle>
size="small"
type="primary"
handle>
查询 查询
</el-button> </el-button>
<el-button size="small" <el-button size="small" @click="handleReset">
@click="handleReset">
重置 重置
</el-button> </el-button>
</div> </div>
...@@ -29,37 +21,25 @@ ...@@ -29,37 +21,25 @@
<auth-button category="Button" /> <auth-button category="Button" />
</span> </span>
<span> <span>
<el-button type="primary" <el-button type="primary" size="mini" @click="handleExport">
size="mini"
@click="handleExport">
导出 导出
</el-button> </el-button>
</span> </span>
</d2-table-header> </d2-table-header>
<d2-table ref="purchasementReviewTable" <d2-table ref="purchasementReviewTable" :search-form="tableSearchForm" :table-params="tableParams"
:search-form="tableSearchForm" :table-data="tableData" :get-list-api="getListApi" :before-search-fn="beforeSearchFn">
:table-params="tableParams" <auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
:table-data="tableData"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button"
slot-scope="scope"
:data="scope.scope" />
</d2-table> </d2-table>
</div> </div>
<orderDeatilDialog :visible.sync="detailVisible" <orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :params-obj="paramsObj"></orderDeatilDialog>
:params-obj="paramsObj"></orderDeatilDialog> <rejectDialog :reject-visible="rejectVisible" v-if="rejectVisible" :params-obj="paramsObj" @dialogClose="dialogClose">
<rejectDialog :reject-visible="rejectVisible"
v-if="rejectVisible"
:params-obj="paramsObj"
@dialogClose="dialogClose">
</rejectDialog> </rejectDialog>
</d2-container> </d2-container>
</template> </template>
<script> <script>
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
import { defaultStatusOptions, defaultDeliveryStatusOptions, defaultPutStatusOptions } from './constant' import { defaultStatusOptions, defaultDeliveryStatusOptions, defaultPutStatusOptions, purchasingPatternOptions } from './constant'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { getPurchaseOrderList, getMerchantList, purchaseOrderCancelOrCheck, purchaseOrderExport } from '@/api/purchaseShopping.js' import { getPurchaseOrderList, getMerchantList, purchaseOrderCancelOrCheck, purchaseOrderExport } from '@/api/purchaseShopping.js'
import orderDeatilDialog from './components/orderDetailDialog' import orderDeatilDialog from './components/orderDetailDialog'
...@@ -79,7 +59,8 @@ export default { ...@@ -79,7 +59,8 @@ export default {
// merchantId: '', // merchantId: '',
merchantName: '', merchantName: '',
sortType: 2, sortType: 2,
orderTimeStr: [] orderTimeStr: [],
purchasingPattern: ''
}, },
tableSearchForm: {}, tableSearchForm: {},
tableData: [], tableData: [],
...@@ -107,13 +88,13 @@ export default { ...@@ -107,13 +88,13 @@ export default {
// optionsName: 'merchantName' // optionsName: 'merchantName'
// }, // },
{ {
label: '下单门店', label: '下单商户',
name: 'merchantName', name: 'merchantName',
type: 'input', type: 'input',
isClear: true isClear: true
}, },
{ {
label: '订单状态', label: '状态',
name: 'status', name: 'status',
type: 'select', type: 'select',
optionList: [], optionList: [],
...@@ -129,6 +110,22 @@ export default { ...@@ -129,6 +110,22 @@ export default {
optionId: 'id', optionId: 'id',
optionLabel: 'label', optionLabel: 'label',
optionsName: 'defaultDeliveryStatusOptions' optionsName: 'defaultDeliveryStatusOptions'
},
{
label: '采购模式',
name: 'purchasingPattern',
type: 'select',
optionList: [],
optionId: 'id',
optionLabel: 'label',
optionsName: 'purchasingPatternOptions'
},
{
label: '发货主体',
name: 'sendOutMerchantName',
type: 'input',
isClear: true,
maxlength: 50
} }
], ],
getListApi: getPurchaseOrderList, getListApi: getPurchaseOrderList,
...@@ -174,6 +171,20 @@ export default { ...@@ -174,6 +171,20 @@ export default {
prop: 'contactAddress' prop: 'contactAddress'
}, },
{ {
label: '采购模式',
prop: 'purchasingPattern',
formatter: (cellValue) => {
return purchasingPatternOptions.find(item => item.id == cellValue.purchasingPattern)?.label || '-'
}
},
{
label: '发货主体',
prop: 'sendOutMerchantName',
formatter: (cellValue) => {
return cellValue.sendOutMerchantName ? cellValue.sendOutMerchantName : '-'
}
},
{
label: '发货状态', label: '发货状态',
prop: 'deliveryStatus', prop: 'deliveryStatus',
formatter: (cellValue) => { formatter: (cellValue) => {
...@@ -181,23 +192,24 @@ export default { ...@@ -181,23 +192,24 @@ export default {
}, },
className: (cellValue) => { className: (cellValue) => {
return { return {
1: 'yellowSpot', 1: 'ashSpot',
2: 'greenSpot' 2: 'greenSpot',
3: 'yellowSpot'
}[cellValue.deliveryStatus] }[cellValue.deliveryStatus]
} }
}, },
{ {
label: '订单状态', label: '状态',
prop: 'status', prop: 'status',
formatter: (cellValue) => { formatter: (cellValue) => {
return defaultStatusOptions.find(item => item.id == cellValue.status).label || '-' return defaultStatusOptions.find(item => item.id == cellValue.status)?.label || '-'
}, },
className: (cellValue) => { className: (cellValue) => {
return { return {
1: 'yellowSpot', 1: 'yellowSpot',
2: 'greenSpot', 2: 'greenSpot',
3: 'ashSpot', 3: 'ashSpot',
4: 'ashSpot' 4: 'redSpot'
}[cellValue.status] }[cellValue.status]
} }
} }
...@@ -243,7 +255,8 @@ export default { ...@@ -243,7 +255,8 @@ export default {
this.baseData = { this.baseData = {
defaultStatusOptions: deepClone(defaultStatusOptions), defaultStatusOptions: deepClone(defaultStatusOptions),
defaultDeliveryStatusOptions: deepClone(defaultDeliveryStatusOptions), defaultDeliveryStatusOptions: deepClone(defaultDeliveryStatusOptions),
defaultPutStatusOptions: deepClone(defaultPutStatusOptions) defaultPutStatusOptions: deepClone(defaultPutStatusOptions),
purchasingPatternOptions: deepClone(purchasingPatternOptions)
} }
this.showFormData.forEach((item, index) => { this.showFormData.forEach((item, index) => {
if (item.type === 'select' && this.baseData[item.optionsName]) { if (item.type === 'select' && this.baseData[item.optionsName]) {
...@@ -332,11 +345,12 @@ export default { ...@@ -332,11 +345,12 @@ export default {
handleDetail(row) { handleDetail(row) {
this.paramsObj = { this.paramsObj = {
orderCode: row.orderCode, orderCode: row.orderCode,
merchantName: row.merchantName merchantName: row.merchantName,
purchaseType: row.purchaseType
} }
this.detailVisible = true this.detailVisible = true
}, },
//驳回 // 驳回
handleReject(row) { handleReject(row) {
this.paramsObj = { this.paramsObj = {
orderCode: row.orderCode orderCode: row.orderCode
...@@ -344,14 +358,14 @@ export default { ...@@ -344,14 +358,14 @@ export default {
this.rejectVisible = true this.rejectVisible = true
}, },
dialogClose(flag) { dialogClose(flag) {
console.log(flag)
this.rejectVisible = !this.rejectVisible this.rejectVisible = !this.rejectVisible
if (flag) { if (flag) {
this.$refs.purchasementReviewTable.refreshTable() this.$refs.purchasementReviewTable.refreshTable()
} }
}, }
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped></style>
</style>
...@@ -25,7 +25,8 @@ ...@@ -25,7 +25,8 @@
</el-button> </el-button>
</span> </span>
</d2-table-header> </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"> <div slot="auth-button" slot-scope="scope">
<!-- 查看 --> <!-- 查看 -->
<span style="margin-right: 10px;"> <span style="margin-right: 10px;">
...@@ -43,20 +44,27 @@ ...@@ -43,20 +44,27 @@
</div> </div>
</d2-table> </d2-table>
</div> </div>
<orderDeatilDialog :visible.sync="detailVisible" :params-obj="paramsObj"></orderDeatilDialog> <orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :params-obj="paramsObj"></orderDeatilDialog>
<EditOrderDialog v-if="editVisible" :visible.sync="editVisible" :params-obj="dialogData" @editClose="editClose"></EditOrderDialog> <EditOrderDialog v-if="editVisible" :visible.sync="editVisible" :params-obj="dialogData" @editClose="editClose">
<baseDialog v-if="rejectVisible" :is-show.sync="rejectVisible" :config="rejectConfig.setting" :dialog-config="rejectConfig.config" @closeDialog="handleRejectClose"> </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"> <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-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-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-item>
</el-form> </el-form>
</div> </div>
<div class="footer"> <!-- <div class="footer">
<el-button @click="handleRejectClose">取消</el-button> <el-button @click="handleRejectClose">取消</el-button>
<el-button @click="handleRejectConfirm" type="primary" v-preventReClick :loading="$store.state.d2admin.loading.value">确认</el-button> <el-button @click="handleRejectConfirm" type="primary" v-preventReClick
</div> :loading="$store.state.d2admin.loading.value">确认</el-button>
</div> -->
<!-- </d2-dialog> -->
</baseDialog> </baseDialog>
</d2-container> </d2-container>
</template> </template>
...@@ -85,9 +93,10 @@ export default { ...@@ -85,9 +93,10 @@ export default {
rejectConfig: { rejectConfig: {
setting: { setting: {
showClose: true, showClose: true,
appendToBody: true, // appendToBody: true,
btnList: [ isShowFooter: true
] // btnList: [
// ]
}, },
config: { config: {
title: '驳回提示', title: '驳回提示',
...@@ -219,7 +228,10 @@ export default { ...@@ -219,7 +228,10 @@ export default {
}, },
{ {
label: '发货主体', label: '发货主体',
prop: 'sendOutMerchantName' prop: 'sendOutMerchantName',
formatter: (cellValue) => {
return cellValue.sendOutMerchantName ? cellValue.sendOutMerchantName : '-'
}
}, },
{ {
label: '发货状态', label: '发货状态',
...@@ -229,9 +241,9 @@ export default { ...@@ -229,9 +241,9 @@ export default {
}, },
className: (cellValue) => { className: (cellValue) => {
return { return {
1: 'yellowSpot', 1: 'ashSpot',
2: 'greenSpot', 2: 'greenSpot',
3: 'ashSpot' 3: 'yellowSpot'
}[cellValue.deliveryStatus] }[cellValue.deliveryStatus]
} }
}, },
...@@ -239,13 +251,14 @@ export default { ...@@ -239,13 +251,14 @@ export default {
label: '订单状态', label: '订单状态',
prop: 'status', prop: 'status',
formatter: (cellValue) => { formatter: (cellValue) => {
return defaultStatusOptions.find(item => item.id == cellValue.status).label || '-' return defaultStatusOptions.find(item => item.id == cellValue.status)?.label || '-'
}, },
className: (cellValue) => { className: (cellValue) => {
return { return {
1: 'yellowSpot', 1: 'yellowSpot',
2: 'greenSpot', 2: 'greenSpot',
3: 'ashSpot' 3: 'ashSpot',
4: 'redSpot'
}[cellValue.status] }[cellValue.status]
} }
}, },
...@@ -389,6 +402,8 @@ export default { ...@@ -389,6 +402,8 @@ export default {
handleRejectConfirm() { handleRejectConfirm() {
this.$refs['delivery-dialog-form'].validate(valid => { this.$refs['delivery-dialog-form'].validate(valid => {
if (valid) { if (valid) {
// console.log(valid)
// return
purchaseOrderReject({ ...this.rejectData }).then(res => { purchaseOrderReject({ ...this.rejectData }).then(res => {
this.handleRejectClose() this.handleRejectClose()
this.notice.okTips() this.notice.okTips()
...@@ -411,26 +426,30 @@ export default { ...@@ -411,26 +426,30 @@ export default {
handleDetail(row) { handleDetail(row) {
this.paramsObj = { this.paramsObj = {
orderCode: row.orderCode, orderCode: row.orderCode,
merchantName: row.merchantName merchantName: row.merchantName,
purchaseType: row.purchaseType
} }
this.detailVisible = true this.detailVisible = true
} }
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
.reject-dialog { .reject-dialog {
margin: 65px 0; margin: 65px 0;
.reject-input .el-textarea__inner { .reject-input .el-textarea__inner {
height: 79px; height: 79px;
width: 432px; width: 432px;
} }
.el-textarea .el-input__count { .el-textarea .el-input__count {
right: 90px; right: 90px;
bottom: -10px; bottom: -10px;
font-size: 12px; font-size: 12px;
color: #999999; color: #999999;
} }
.tips { .tips {
color: #999999; color: #999999;
} }
......
...@@ -56,21 +56,28 @@ ...@@ -56,21 +56,28 @@
:show-btn-ids="['9090103']" /> :show-btn-ids="['9090103']" />
</span> </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" <auth-button :data="scope.scope"
:show-btn-ids="['9090104']" /> :show-btn-ids="['9090104']" />
</span> </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> </div>
</d2-table> </d2-table>
</div> </div>
<orderDeatilDialog :visible.sync="detailVisible" <orderDeatilDialog :visible.sync="detailVisible"
v-if="detailVisible"
:params-obj="paramsObj"></orderDeatilDialog> :params-obj="paramsObj"></orderDeatilDialog>
</d2-container> </d2-container>
</template> </template>
<script> <script>
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
import { defaultStatusOptions, defaultDeliveryStatusOptions, defaultPutStatusOptions } from './constant' import { defaultStatusOptions, defaultDeliveryStatusOptions, defaultPutStatusOptions, purchaseTypeList } from './constant'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { getPurchaseOrderList, getMerchantList, purchaseOrderCancelOrCheck, purchaseOrderPutIn } from '@/api/purchaseShopping.js' import { getPurchaseOrderList, getMerchantList, purchaseOrderCancelOrCheck, purchaseOrderPutIn } from '@/api/purchaseShopping.js'
import orderDeatilDialog from './components/orderDetailDialog' import orderDeatilDialog from './components/orderDetailDialog'
...@@ -92,7 +99,8 @@ export default { ...@@ -92,7 +99,8 @@ export default {
putMerchantName: '', putMerchantName: '',
sortType: 1, sortType: 1,
orderTimeStr: [], orderTimeStr: [],
putTimeStr: [] // putTimeStr: [],
purchaseType: ''
}, },
tableSearchForm: {}, tableSearchForm: {},
tableData: [], tableData: [],
...@@ -104,6 +112,19 @@ export default { ...@@ -104,6 +112,19 @@ export default {
isClear: true isClear: true
}, },
{ {
label: '下单时间',
name: 'placeOrderTimeStr',
type: 'datePicker',
isClear: true,
pickerOptions: 'rangePickerOptions'
},
{
label: '下单商户',
name: 'merchantName',
type: 'input',
isClear: true
},
{
label: '订单状态', label: '订单状态',
name: 'status', name: 'status',
type: 'select', type: 'select',
...@@ -131,19 +152,21 @@ export default { ...@@ -131,19 +152,21 @@ export default {
optionsName: 'defaultPutStatusOptions' optionsName: 'defaultPutStatusOptions'
}, },
{ {
label: '下单时间', label: '采购类型',
name: 'placeOrderTimeStr', name: 'purchaseType',
type: 'datePicker', type: 'select',
isClear: true, optionList: [],
pickerOptions: 'rangePickerOptions' optionId: 'id',
}, optionLabel: 'label',
{ optionsName: 'purchaseTypeList'
label: '入库时间', }
name: 'warehousingTimeStr', // {
type: 'datePicker', // label: '入库时间',
isClear: true, // name: 'warehousingTimeStr',
pickerOptions: 'rangePickerOptions' // type: 'datePicker',
}, // isClear: true,
// pickerOptions: 'rangePickerOptions'
// },
// { // {
// label: '下单门店', // label: '下单门店',
// name: 'merchantId', // name: 'merchantId',
...@@ -153,12 +176,6 @@ export default { ...@@ -153,12 +176,6 @@ export default {
// optionLabel: 'merchantName', // optionLabel: 'merchantName',
// optionsName: 'merchantName' // optionsName: 'merchantName'
// }, // },
{
label: '下单门店',
name: 'merchantName',
type: 'input',
isClear: true
},
// { // {
// label: '入库门店', // label: '入库门店',
// name: 'putMerchantId', // name: 'putMerchantId',
...@@ -168,12 +185,12 @@ export default { ...@@ -168,12 +185,12 @@ export default {
// optionLabel: 'merchantName', // optionLabel: 'merchantName',
// optionsName: 'merchantName' // optionsName: 'merchantName'
// } // }
{ // {
label: '入库门店', // label: '入库门店',
name: 'putMerchantName', // name: 'putMerchantName',
type: 'input', // type: 'input',
isClear: true // isClear: true
}, // },
], ],
getListApi: getPurchaseOrderList, getListApi: getPurchaseOrderList,
// 表格参数 // 表格参数
...@@ -202,10 +219,17 @@ export default { ...@@ -202,10 +219,17 @@ export default {
width: 150 width: 150
}, },
{ {
label: '下单门店', label: '下单商户',
prop: 'merchantName' prop: 'merchantName'
}, },
{ {
label: '采购类型',
prop: 'purchaseType',
formatter: (cellValue) => {
return purchaseTypeList.find(item => item.id == cellValue.purchaseType)?.label || '-'
}
},
{
label: '发货状态', label: '发货状态',
prop: 'deliveryStatus', prop: 'deliveryStatus',
formatter: (cellValue) => { formatter: (cellValue) => {
...@@ -213,53 +237,55 @@ export default { ...@@ -213,53 +237,55 @@ export default {
}, },
className: (cellValue) => { className: (cellValue) => {
return { return {
1: 'yellowSpot', 1: 'ashSpot',
2: 'greenSpot' 2: 'greenSpot',
3: 'yellowSpot'
}[cellValue.deliveryStatus] }[cellValue.deliveryStatus]
} }
}, },
{ // {
label: '承运公司', // label: '承运公司',
prop: 'deliveryCompany', // prop: 'deliveryCompany',
formatter: (cellValue) => { // formatter: (cellValue) => {
return cellValue.deliveryCompany || '--' // return cellValue.deliveryCompany || '--'
} // }
}, // },
{ // {
label: '承运单号', // label: '承运单号',
prop: 'deliveryNumber', // prop: 'deliveryNumber',
formatter: (cellValue) => { // formatter: (cellValue) => {
return cellValue.deliveryNumber || '--' // return cellValue.deliveryNumber || '--'
} // }
}, // },
{ {
label: '入库状态', label: '入库状态',
prop: 'putStatus', prop: 'putStatus',
formatter: (cellValue) => { formatter: (cellValue) => {
return defaultPutStatusOptions.find(item => item.id == cellValue.putStatus).label || '-' return defaultPutStatusOptions.find(item => item.id == cellValue.putStatus)?.label || '-'
}, },
className: (cellValue) => { className: (cellValue) => {
return { return {
1: 'yellowSpot', 1: 'ashSpot',
2: 'greenSpot' 2: 'greenSpot',
3: 'yellowSpot'
}[cellValue.putStatus] }[cellValue.putStatus]
} }
}, },
{ // {
label: '入库时间', // label: '入库时间',
prop: 'putTime', // prop: 'putTime',
formatter: (cellValue) => { // formatter: (cellValue) => {
return cellValue.putTime ? Util.dateFormate(cellValue.putTime, 'YYYY-MM-DD HH:mm:ss') : '--' // return cellValue.putTime ? Util.dateFormate(cellValue.putTime, 'YYYY-MM-DD HH:mm:ss') : '--'
}, // },
width: 150 // width: 150
}, // },
{ // {
label: '入库门店', // label: '入库门店',
prop: 'putMerchantName', // prop: 'putMerchantName',
formatter: (cellValue) => { // formatter: (cellValue) => {
return cellValue.putMerchantName || '--' // return cellValue.putMerchantName || '--'
} // }
}, // },
{ {
label: '订单状态', label: '订单状态',
prop: 'status', prop: 'status',
...@@ -270,7 +296,8 @@ export default { ...@@ -270,7 +296,8 @@ export default {
return { return {
1: 'yellowSpot', 1: 'yellowSpot',
2: 'greenSpot', 2: 'greenSpot',
3: 'ashSpot' 3: 'ashSpot',
4: 'redSpot'
}[cellValue.status] }[cellValue.status]
} }
} }
...@@ -282,7 +309,8 @@ export default { ...@@ -282,7 +309,8 @@ export default {
baseData: { baseData: {
defaultStatusOptions: [], defaultStatusOptions: [],
defaultDeliveryStatusOptions: [], defaultDeliveryStatusOptions: [],
defaultPutStatusOptions: [] defaultPutStatusOptions: [],
purchaseTypeList: []
}, },
paramsObj: {} paramsObj: {}
} }
...@@ -314,7 +342,8 @@ export default { ...@@ -314,7 +342,8 @@ export default {
this.baseData = { this.baseData = {
defaultStatusOptions: deepClone(defaultStatusOptions), defaultStatusOptions: deepClone(defaultStatusOptions),
defaultDeliveryStatusOptions: deepClone(defaultDeliveryStatusOptions), defaultDeliveryStatusOptions: deepClone(defaultDeliveryStatusOptions),
defaultPutStatusOptions: deepClone(defaultPutStatusOptions) defaultPutStatusOptions: deepClone(defaultPutStatusOptions),
purchaseTypeList: deepClone(purchaseTypeList)
} }
this.showFormData.forEach((item, index) => { this.showFormData.forEach((item, index) => {
if (item.type === 'select' && this.baseData[item.optionsName]) { if (item.type === 'select' && this.baseData[item.optionsName]) {
...@@ -340,11 +369,11 @@ export default { ...@@ -340,11 +369,11 @@ export default {
this.tableSearchForm.orderTimeStr[1] = new Date(this.tableSearchForm.placeOrderTimeStr[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59' this.tableSearchForm.orderTimeStr[1] = new Date(this.tableSearchForm.placeOrderTimeStr[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
delete this.tableSearchForm.placeOrderTimeStr delete this.tableSearchForm.placeOrderTimeStr
} }
if (this.tableSearchForm.warehousingTimeStr) { // if (this.tableSearchForm.warehousingTimeStr) {
this.tableSearchForm.putTimeStr[0] = new Date(this.tableSearchForm.warehousingTimeStr[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00' // this.tableSearchForm.putTimeStr[0] = new Date(this.tableSearchForm.warehousingTimeStr[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
this.tableSearchForm.putTimeStr[1] = new Date(this.tableSearchForm.warehousingTimeStr[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59' // this.tableSearchForm.putTimeStr[1] = new Date(this.tableSearchForm.warehousingTimeStr[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
delete this.tableSearchForm.warehousingTimeStr // delete this.tableSearchForm.warehousingTimeStr
} // }
}, },
handleReset() { handleReset() {
for (const key in this.searchForm) { for (const key in this.searchForm) {
...@@ -352,7 +381,7 @@ export default { ...@@ -352,7 +381,7 @@ export default {
} }
this.searchForm.sortType = 1 this.searchForm.sortType = 1
this.searchForm.orderTimeStr = [] this.searchForm.orderTimeStr = []
this.searchForm.putTimeStr = [] // this.searchForm.putTimeStr = []
this.$refs.purchaseOrderTable.refreshTable() this.$refs.purchaseOrderTable.refreshTable()
}, },
// 创建采购 // 创建采购
...@@ -421,9 +450,19 @@ export default { ...@@ -421,9 +450,19 @@ export default {
handleDetail(row) { handleDetail(row) {
this.paramsObj = { this.paramsObj = {
orderCode: row.orderCode, orderCode: row.orderCode,
merchantName: row.merchantName merchantName: row.merchantName,
purchaseType: row.purchaseType
} }
this.detailVisible = true this.detailVisible = true
},
//发货单
handleSendgoods(row) {
this.$router.push({
name: 'invoiceRecord',
params: {
orderCode: row.orderCode
}
})
} }
} }
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<el-form label-width="154px" :model="storeForm" ref="storeRef" :rules="storeRules"> <el-form label-width="154px" :model="storeForm" ref="storeRef" :rules="storeRules">
<el-form-item label="门店名称:">{{ storeForm.merchantName }}</el-form-item> <el-form-item label="门店名称:">{{ storeForm.merchantName }}</el-form-item>
<el-form-item label="权益销售模式:"> <el-form-item label="权益销售模式:">
<el-radio-group v-model="storeForm.mode"> <el-radio-group v-model="storeForm.mode" :disabled="isEdit">
<el-radio v-for="(item, index) in modeList" :label="item.value" :key="index">{{ item.label }}</el-radio> <el-radio v-for="(item, index) in modeList" :label="item.value" :key="index">{{ item.label }}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" class="label"> <el-col :span="4" class="label">
<el-button v-show="!isEdit" @click="deleteFormItem(index)">删除</el-button> <el-button v-show="!isEdit && index != 0" @click="deleteFormItem(index)">删除</el-button>
</el-col> </el-col>
</el-form-item> </el-form-item>
<el-form-item required label="建议售价:" :prop="'vdRuleIntervalList.' + index + '.recommendation'" <el-form-item required label="建议售价:" :prop="'vdRuleIntervalList.' + index + '.recommendation'"
...@@ -323,8 +323,10 @@ export default { ...@@ -323,8 +323,10 @@ export default {
}, },
methods: { methods: {
validateAccount(rule, value, callback, item) { validateAccount(rule, value, callback, item) {
console.log(item) // console.log(item)
value < item.low // console.log(value)
// 避免字符串转换问题
Number(value) < Number(item.low)
? callback(new Error(`价格不能小于${item.low}万元`)) ? callback(new Error(`价格不能小于${item.low}万元`))
: callback() : callback()
}, },
...@@ -333,8 +335,16 @@ export default { ...@@ -333,8 +335,16 @@ export default {
}, },
deleteFormItem(index) { deleteFormItem(index) {
if (index == 0 && this.form.vdRuleIntervalList.length == 1) return this.$message.error('至少保留一条价格区间') if (index == 0 && this.form.vdRuleIntervalList.length == 1) return this.$message.error('至少保留一条价格区间')
this.$confirm('是否确认删除?', '提示', {
confirmButtonText: '删除',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.form.vdRuleIntervalList = this.form.vdRuleIntervalList.filter((item, i) => i !== index)
}).catch(err => {
console.log(err)
})
// console.log(this.form.vdRuleIntervalList.filter((item, i) => i !== index)) // console.log(this.form.vdRuleIntervalList.filter((item, i) => i !== index))
this.form.vdRuleIntervalList = this.form.vdRuleIntervalList.filter((item, i) => i !== index)
}, },
addFormItem() { addFormItem() {
const vdRuleIntervalList = deepClone(this.form.vdRuleIntervalList) const vdRuleIntervalList = deepClone(this.form.vdRuleIntervalList)
......
...@@ -76,6 +76,21 @@ export default { ...@@ -76,6 +76,21 @@ export default {
keyFn: this.keyDowmGetList keyFn: this.keyDowmGetList
}, },
{ {
label: '配置状态',
name: 'status',
type: 'select',
optionList: [{
label: '待配置',
value: 0
}, {
label: '已配置',
value: 1
}],
optionId: 'value',
optionLabel: 'label'
// optionsName: 'productTypeList'
},
{
label: "创建时间", label: "创建时间",
name: "createTime", name: "createTime",
type: "datePicker", type: "datePicker",
......
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
label: '所属门店', label: '所属门店',
name: 'merchantId', name: 'merchantId',
type: 'select', type: 'select',
noDataText: '请先选择仓库', noDataText: '请先选择所属仓库',
optionList: [], optionList: [],
optionId: 'merchantId', optionId: 'merchantId',
optionLabel: 'merchantName', optionLabel: 'merchantName',
...@@ -153,6 +153,12 @@ export default { ...@@ -153,6 +153,12 @@ export default {
return (cellValue.warningValue || cellValue.warningValue == 0) ? parseFloat(cellValue.warningValue).toFixed(2) + (this.membraneTypeList.includes(cellValue.goodsType) ? '米' : '件') : '-' return (cellValue.warningValue || cellValue.warningValue == 0) ? parseFloat(cellValue.warningValue).toFixed(2) + (this.membraneTypeList.includes(cellValue.goodsType) ? '米' : '件') : '-'
} }
}, { }, {
label: '最高库存',
prop: 'warningValueMax',
formatter: (cellValue) => {
return (cellValue.warningValueMax || cellValue.warningValueMax == 0) ? parseFloat(cellValue.warningValueMax).toFixed(2) + (this.membraneTypeList.includes(cellValue.goodsType) ? '米' : '件') : '-'
}
}, {
label: '所属仓库', label: '所属仓库',
prop: 'yqMerchantName', prop: 'yqMerchantName',
width: '200px' width: '200px'
......
...@@ -118,7 +118,7 @@ export default { ...@@ -118,7 +118,7 @@ export default {
label: '出库门店', label: '出库门店',
name: 'merchantId', name: 'merchantId',
type: 'select', type: 'select',
noDataText: '请先选择仓库', noDataText: '请先选择出库仓库',
optionList: [], optionList: [],
optionId: 'merchantId', optionId: 'merchantId',
optionLabel: 'merchantName', optionLabel: 'merchantName',
......
...@@ -2,21 +2,13 @@ ...@@ -2,21 +2,13 @@
<template> <template>
<div> <div>
<d2-container> <d2-container>
<div class="header" <div class="header" slot="header" style="padding: 10px 20px;">
slot="header" <d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData" />
style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData" />
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" <el-button :id="tableParams.btnId" size="small" type="primary">
size="small"
type="primary">
查询 查询
</el-button> </el-button>
<el-button size="small" <el-button size="small" @click="handleReset">
@click="handleReset">
重置 重置
</el-button> </el-button>
</div> </div>
...@@ -25,14 +17,9 @@ ...@@ -25,14 +17,9 @@
<d2-table-header> <d2-table-header>
<auth-button category="Button" /> <auth-button category="Button" />
</d2-table-header> </d2-table-header>
<d2-table ref="recordTable" <d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:get-list-api="getListApi" :before-search-fn="beforeSearchFn">
:search-form="searchFormSearch" <auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button"
slot-scope="scope"
:data="scope.scope" />
</d2-table> </d2-table>
</div> </div>
</d2-container> </d2-container>
...@@ -146,7 +133,7 @@ export default { ...@@ -146,7 +133,7 @@ export default {
label: '入库门店', label: '入库门店',
name: 'merchantId', name: 'merchantId',
type: 'select', type: 'select',
noDataText: '请先选择仓库', noDataText: '请先选择入库仓库',
optionList: [], optionList: [],
optionId: 'merchantId', optionId: 'merchantId',
optionLabel: 'merchantName', optionLabel: 'merchantName',
...@@ -231,6 +218,10 @@ export default { ...@@ -231,6 +218,10 @@ export default {
{ {
confId: '3', confId: '3',
confLabel: '调拨入库' confLabel: '调拨入库'
},
{
confId: '4',
confLabel: '订单入库'
} }
], ],
productTypeList: [], productTypeList: [],
...@@ -276,10 +267,10 @@ export default { ...@@ -276,10 +267,10 @@ export default {
yqMerchantId: merchantId yqMerchantId: merchantId
}).then(res => { }).then(res => {
this.baseData.merchantIdList = 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 _headOffice.merchantId = _headOffice.merchantNo
//门店选项中加入总店 // 门店选项中加入总店
this.baseData.merchantIdList.push(_headOffice) this.baseData.merchantIdList.push(_headOffice)
this.getOptionsList() this.getOptionsList()
}) })
......
<!-- 发货单 -->
<template>
<div>
<d2-container>
<div class="header"
slot="header"
style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
labelWidth="100px"
:search-form="searchForm"
:form-data="showFormData" />
<div class="up-btns">
<el-button :id="tableParams.btnId"
size="small"
type="primary">
查询
</el-button>
<el-button size="small"
@click="handleReset">
重置
</el-button>
</div>
</div>
<div class="d2-container-content">
<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>
</div>
<baseDialog v-if="rejectVisible"
:is-show.sync="rejectVisible"
:config="rejectConfig.setting"
:dialog-config="rejectConfig.config"
@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-item>
</el-form>
</div>
<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>
</baseDialog>
</d2-container>
</div>
</template>
<script>
import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex'
import { getPurchaseOrderList } from '@/api/purchaseShopping.js'
import { applyStatus } from '@/common/constants.js'
export default {
name: 'OpenshopProcessIndex',
components: {
},
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
searchForm: {
deliveryNumber: '',
deliveryCompany: '',
deliveryDate: '',
orderCode: '',
merchantName: '',
putStatus: ''
},
searchFormSearch: {},
showFormData: [{
label: '商户名称',
name: 'deliveryNumber',
type: 'input',
maxlength: '20',
isClear: true
},
{
label: '所属服务商',
name: 'deliveryCompany',
type: 'input',
maxlength: '20',
isClear: true
}, {
label: '申请状态',
name: 'putStatus',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'applyStatus'
}],
getListApi: getPurchaseOrderList,
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableOption: true,
tableColumns: [{
label: '商户名称',
prop: 'deliveryNumber',
width: '200px'
}, {
label: '联系人',
prop: 'deliveryCompany',
width: '150px'
}, {
label: '联系电话',
prop: 'deliveryDate',
width: '150px'
}, {
label: '商户类型',
prop: 'orderCode',
width: '200px'
}, {
label: '所属服务中心',
prop: 'merchantName',
width: '150px'
}, {
label: '所属服务商',
prop: 'merchantName',
width: '150px'
}, {
label: '申请时间',
prop: 'orderTime',
width: '150px',
formatter: (cellValue) => {
return cellValue.orderTime ? Util.dateFormate(cellValue.orderTime, 'YYYY-MM-DD HH:mm:ss') : ''
}
}, {
label: '申请状态',
prop: 'putStatus',
formatter: (cellValue) => {
return this.baseData.applyStatus.find(item => item.confId === cellValue.putStatus)?.confName
},
className: (cellValue) => {
return {
1: 'yellowSpot',
2: 'greenSpot',
3: 'red'
}[cellValue.putStatus]
}
}, {
label: '审核人',
prop: 'merchantName',
width: '150px'
}, {
label: '审核时间',
prop: 'orderTime',
width: '150px',
formatter: (cellValue) => {
return cellValue.orderTime ? Util.dateFormate(cellValue.orderTime, 'YYYY-MM-DD HH:mm:ss') : ''
}
}
]
},
baseData: {
applyStatus: applyStatus,
},
detailVisible: false,
recordInfo: null,
rejectVisible: false,
rejectData: {},
// 驳回
rejectConfig: {
setting: {
showClose: true,
appendToBody: true,
btnList: [
]
},
config: {
title: '驳回提示',
width: '750px'
}
},
rejectRules: {
rejectCause: [{ required: true, message: '请输入驳回原因', trigger: 'blur' }]
},
}
},
computed: {
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList
})
},
mounted() {
this.getBaseData()
},
methods: {
...mapActions({
get: 'd2admin/base/get',
close: 'd2admin/page/close'
}),
...mapActions('d2admin/user', ['actionSetDownloadList']),
async getBaseData() {
this.getOptionsList()
},
beforeSearchFn() {
return new Promise(resolve => {
this.searchFormSearch = deepClone(this.searchForm)
if (this.searchFormSearch.deliveryDate) {
this.searchFormSearch.deliveryDateStart = Util.dateFormate(this.searchFormSearch.deliveryDate[0], 'YYYY-MM-DD 00:00:00')
this.searchFormSearch.deliveryDateEnd = Util.dateFormate(this.searchFormSearch.deliveryDate[1], 'YYYY-MM-DD 23:59:59')
delete this.searchFormSearch.deliveryDate
}
resolve()
})
},
getOptionsList() {
this.showFormData.forEach((item, index) => {
if (item.type === 'select') {
if (this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this.showFormData[index].optionLabel] !== '全部') {
const temp = {}
temp[this.showFormData[index].optionId] = ''
temp[this.showFormData[index].optionLabel] = '全部'
this.baseData[item.optionsName].unshift(temp)
}
this.$set(this.showFormData[index], 'optionList', this.baseData[item.optionsName])
}
})
},
handleSearch() {
this.$refs.recordTable.refreshTable()
},
handleReset() {
this.searchForm = {
deliveryNumber: '',
deliveryCompany: '',
deliveryDate: '',
orderCode: '',
merchantName: '',
putStatus: ''
}
this.$refs.recordTable.refreshTable()
},
// 审核
handleCheck(row) {
this.$confirm(`审核通过后,系统会自动创建对应的商户;是否确定审核?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
dangerouslyUseHTMLString: true
}).then(() => {
purchaseOrderCancelOrCheck({
orderCode: row.orderCode,
operateType: 1
}).then(() => {
this.notice.okTips()
this.$refs.purchasementReviewTable.refreshTable()
}).catch(() => { })
})
},
// 驳回
handleRejectClose() {
this.rejectVisible = !this.rejectVisible
},
handleReject(row) {
this.rejectData.orderCode = row.orderCode
this.handleRejectClose()
},
handleRejectConfirm() {
this.$refs['delivery-dialog-form'].validate(valid => {
if (valid) {
purchaseOrderReject({ ...this.rejectData }).then(res => {
this.handleRejectClose()
this.notice.okTips()
this.$refs.purchaseAndDeliveryTable.refreshTable()
}).catch(() => {
this.handleRejectClose()
})
}
})
},
}
}
</script>
<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;
}
}
.footer {
display: flex;
justify-content: end;
}
</style>
...@@ -344,6 +344,7 @@ export default { ...@@ -344,6 +344,7 @@ export default {
// 判空处理 // 判空处理
// result.goodsTypeGroupRules = [...result?.goodsTypeGroupRules, ...result?.goodsTypeGroupRules, ...result?.goodsTypeGroupRules] // result.goodsTypeGroupRules = [...result?.goodsTypeGroupRules, ...result?.goodsTypeGroupRules, ...result?.goodsTypeGroupRules]
const goodsTypeGroupRules = result?.goodsTypeGroupRules const goodsTypeGroupRules = result?.goodsTypeGroupRules
result = result || this.financialObj
// result.autoFlag = null // result.autoFlag = null
// result.settleTimeType = null // result.settleTimeType = null
// 解决老财务规则只做了一部分的问题 就不取老的了 // 解决老财务规则只做了一部分的问题 就不取老的了
......
...@@ -516,6 +516,8 @@ export default { ...@@ -516,6 +516,8 @@ export default {
} }
}) })
this.getSelectingList(upgradeArr) this.getSelectingList(upgradeArr)
} else {
this.getSelectingList()
} }
}, },
// 显示smcode弹框 // 显示smcode弹框
......
<!-- 服务商管理 --> <!-- 服务商管理 -->
<template> <template>
<d2-container class="service-manage"> <d2-container class="service-manage">
<div class="header" <div class="header" slot="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" />
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" <el-button :id="tableParams.btnId" size="small" type="primary">
size="small"
type="primary">
查询 查询
</el-button> </el-button>
<el-button size="small" <el-button size="small" @click="handleReset">
@click="handleReset">
重置 重置
</el-button> </el-button>
</div> </div>
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table ref="serviceStoreTable" <d2-table ref="serviceStoreTable" :search-form="searchForm" :table-params="tableParams" :get-list-api="getListApi"
:search-form="searchForm" :before-search-fn="beforeSearchFn">
:table-params="tableParams" <auth-button slot="auth-button" slot-scope="scope" :show-btn-ids="['9060503']" :data="scope.scope" />
: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> </d2-table>
</div> </div>
</d2-container> </d2-container>
...@@ -73,43 +60,66 @@ export default { ...@@ -73,43 +60,66 @@ export default {
tableOption: true, tableOption: true,
tableColumns: [{ tableColumns: [{
label: '服务商名称', label: '服务商名称',
width: 180,
prop: 'partnerMerchantName' prop: 'partnerMerchantName'
}, { }, {
label: '商户号', label: '商户号',
width: 150,
prop: 'partnerMerchantId' prop: 'partnerMerchantId'
}, { }, {
label: '登录账号', label: '登录账号',
width: 150,
prop: 'accountName' prop: 'accountName'
}, { }, {
label: '采购模式', label: '采购模式',
prop: 'merchantName', prop: 'merchantName',
formatter: (cellValue) => { formatter: (cellValue) => {
return this.procureModeList[cellValue?.procurementInfoDTO?.procurementType - 1]?.confName || '-' return this.procureModeList[cellValue?.procurementType - 1]?.confName || '-'
} }
}, { }, {
label: '发货主体', label: '发货主体',
prop: 'merchantId', prop: 'merchantId',
width: '200', width: '200',
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue?.procurementInfoDTO?.shippingEntity || '-' return cellValue?.shippingEntity || '-'
} }
}, { }, {
label: '下级园区店', label: '下级园区店',
prop: 'subMerchantName', prop: '',
html: true,
width: 200,
formatter: (cellValue) => { 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: '下级园区店商户号', label: '下级园区店商户号',
width: '180', width: '180',
prop: 'subMerchantName', prop: '',
html: true,
formatter: (cellValue) => { 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: '关联园区店', label: '关联园区店',
prop: 'yqMerchantId', prop: 'yqMerchantId',
html: true, html: true,
width: 200,
formatter: (cellValue) => { formatter: (cellValue) => {
var html = '' var html = ''
var list = [] var list = []
...@@ -139,20 +149,21 @@ export default { ...@@ -139,20 +149,21 @@ export default {
} }
}, { }, {
label: '最近更新时间', label: '最近更新时间',
prop: 'lastRefDate', prop: 'updatedDate',
// prop: 'lastRefDate',
width: '160', width: '160',
formatter: (cellValue) => { 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: { components: {
}, },
mounted() {}, mounted() { },
methods: { methods: {
...mapActions({ ...mapActions({
...@@ -179,7 +190,7 @@ export default { ...@@ -179,7 +190,7 @@ export default {
this.close({ tagName: '/editService' }) this.close({ tagName: '/editService' })
this.$router.push({ this.$router.push({
name: 'editService', name: 'editService',
params: { serviceMerchantId: row.partnerMerchantId} params: { serviceMerchantId: row.partnerMerchantId }
}) })
} }
} }
...@@ -188,6 +199,7 @@ export default { ...@@ -188,6 +199,7 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .service-manage { ::v-deep .service-manage {
/*下拉选择框-多选-内容过长-用...代替 begin */ /*下拉选择框-多选-内容过长-用...代替 begin */
.el-tag.el-tag--info { .el-tag.el-tag--info {
background-color: #f4f4f5; background-color: #f4f4f5;
...@@ -198,9 +210,11 @@ export default { ...@@ -198,9 +210,11 @@ export default {
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden;*/ overflow: hidden;*/
} }
.el-tag.el-tag--info { .el-tag.el-tag--info {
width: calc(100% - 200px); width: calc(100% - 200px);
} }
.el-tag.el-tag--info .el-select__tags-text { .el-tag.el-tag--info .el-select__tags-text {
width: calc(100% - 20px); width: calc(100% - 20px);
float: left; float: left;
...@@ -208,6 +222,7 @@ export default { ...@@ -208,6 +222,7 @@ export default {
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
} }
/*下拉选择框-多选-内容过长-用...代替 end */ /*下拉选择框-多选-内容过长-用...代替 end */
.el-select-dropdown__item { .el-select-dropdown__item {
......
...@@ -2,52 +2,34 @@ ...@@ -2,52 +2,34 @@
<template> <template>
<div> <div>
<d2-container> <d2-container>
<div class="header" <div class="header" slot="header" style="padding: 10px 20px">
slot="header" <d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData" />
style="padding: 10px 20px">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData" />
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" <el-button :id="tableParams.btnId" size="small" type="primary">
size="small"
type="primary">
查询 查询
</el-button> </el-button>
<el-button size="small" <el-button size="small" @click="handleReset"> 重置 </el-button>
@click="handleReset"> 重置 </el-button>
</div> </div>
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table-header> <d2-table-header>
<el-button class="default-blue-btn" <el-button class="default-blue-btn" plain @click="handleExport" size="small">导出</el-button>
plain
@click="handleExport"
size="small">导出</el-button>
</d2-table-header> </d2-table-header>
<d2-table ref="damageTable" <d2-table ref="damageTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:get-list-api="getListApi" :before-search-fn="beforeSearchFn">
:search-form="searchFormSearch" <div slot-scope="scope" slot="auth-button" class="btnClass">
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<div slot-scope="scope"
slot="auth-button"
class="btnClass">
<!-- 查看 --> <!-- 查看 -->
<!-- <auth-button <!-- <auth-button
v-if="[1, 2, 3, -1, 5].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)" v-if="[1, 2, 3, -1, 5].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)"
:show-btn-ids="['9040601']" :data="scope.scope" /> --> :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)" <auth-button
:show-btn-ids="['9040603']" v-if="[1, 2, 3, -1, 5].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)"
:data="scope.scope" /> :show-btn-ids="['9040603']" :data="scope.scope" />
<!-- 打印合同 --> <!-- 打印合同 -->
<auth-button v-if="[2].includes(scope.scope.equityOrderStatus) && [3, 5].includes(scope.scope.orderStatus)" <auth-button v-if="[2].includes(scope.scope.equityOrderStatus) && [3, 5].includes(scope.scope.orderStatus)"
:show-btn-ids="['9040605']" :show-btn-ids="['9040605']" :data="scope.scope" />
:data="scope.scope" /> <auth-button :show-btn-ids="['9040602']" :data="scope.scope" />
<auth-button :show-btn-ids="['9040602']"
:data="scope.scope" />
</div> </div>
</d2-table> </d2-table>
</div> </div>
...@@ -175,17 +157,26 @@ export default { ...@@ -175,17 +157,26 @@ export default {
{ {
label: "报价金额/元", label: "报价金额/元",
prop: "quotedPrice", prop: "quotedPrice",
width: "200px" width: "200px",
formatter: (cellValue) => {
return cellValue.quotedPrice ? (cellValue.quotedPrice / 100).toFixed(2) : "-"
}
}, },
{ {
label: "预计权益金额/元", label: "预计权益金额/元",
prop: "estEquityPrice", prop: "estEquityPrice",
width: "250px" width: "250px",
formatter: (cellValue) => {
return cellValue.estEquityPrice ? (cellValue.estEquityPrice / 100).toFixed(2) : "-"
}
}, },
{ {
label: "实际权益金额/元", label: "实际权益金额/元",
prop: "equityPrice", prop: "equityPrice",
width: "250px" width: "250px",
formatter: (cellValue) => {
return cellValue.equityPrice ? (cellValue.equityPrice / 100).toFixed(2) : "-"
}
}, },
{ {
label: "商户名称", label: "商户名称",
......
...@@ -74,19 +74,19 @@ module.exports = { ...@@ -74,19 +74,19 @@ module.exports = {
// lintOnSave: true, // lintOnSave: true,
lintOnSave: false, lintOnSave: false,
devServer: { devServer: {
// port: 8082,
// publicPath, // 和 publicPath 保持一致 // publicPath, // 和 publicPath 保持一致
// port: 8082,
// proxy: { // proxy: {
// "/dj-carlife-web": { // "/api": {
// // 拦截链接中有/musicApi // // target: "http://192.168.3.102:9203/rop-dj-smartcarlife/router", // API服务器的地址
// target: "http://192.168.3.226:9203/rop-dj-smartcarlife/router", // API服务器的地址 // target: "http://dj.glsx.com.cn/rop-dj-smartcarlife/router", // API服务器的地址
// changeOrigin: true, // changeOrigin: true,
// pathRewrite: { // pathRewrite: {
// // "^/dev-api/vue-admin-template/user/login": "/user" // "^/api": ""
// } // }
// } // }
// }, // },
https: false, // https: true,
host: getIpAddress() host: getIpAddress()
}, },
css: { css: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!