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) { ...@@ -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"
/** /**
* 调后端接口,请使用以下代码。 * 调后端接口,请使用以下代码。
*/ */
......
...@@ -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",
......
...@@ -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")
......
...@@ -42,7 +42,7 @@ export const routerName = { ...@@ -42,7 +42,7 @@ export const routerName = {
ruleObj: { ruleObj: {
attr: "status", attr: "status",
rule: { rule: {
0: "待编辑", 0: "待配置",
1: "编辑" 1: "编辑"
} }
// disabledStatusList: [0] // disabledStatusList: [0]
......
...@@ -40,8 +40,8 @@ export const routerName = { ...@@ -40,8 +40,8 @@ export const routerName = {
ruleObj: { ruleObj: {
attr: "mode", attr: "mode",
rule: { rule: {
0: "查看", 0: "打印",
1: "查看" 1: "打印"
}, },
disabledStatusList: [1] disabledStatusList: [1]
} }
......
...@@ -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"
class="accountDailog"
@closeDialog="handleClose"
@confirmDialog="handleAddConfirm"> @confirmDialog="handleAddConfirm">
<el-form ref="refundForm" <el-form ref="refundForm" :model="infoForm" :rules="formRules">
: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"
:rows="5"
placeholder="不超过100个字。"
maxlength="100"
show-word-limit
v-model="infoForm.remark" /> v-model="infoForm.remark" />
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -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;
} }
......
...@@ -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]
......
...@@ -84,6 +84,9 @@ export default { ...@@ -84,6 +84,9 @@ export default {
} }
} }
}, },
mounted() {
this.dynamicParams()
},
data() { data() {
return { return {
dialogConfig: { dialogConfig: {
...@@ -143,16 +146,6 @@ export default { ...@@ -143,16 +146,6 @@ export default {
formatter: (cellValue) => { formatter: (cellValue) => {
return "¥" + cellValue.goodsTotalPrice return "¥" + cellValue.goodsTotalPrice
} }
},
{
label: '已发货数量',
prop: 'purchaseNumber',
width: 110
},
{
label: '已入库数量',
prop: 'inputNumber',
width: 110
} }
] ]
}, },
...@@ -165,6 +158,42 @@ export default { ...@@ -165,6 +158,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
}, },
......
<!-- 驳回 --> <!-- 驳回 -->
<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;
} }
......
...@@ -69,7 +69,7 @@ export const defaultDeliveryStatusOptions = [ ...@@ -69,7 +69,7 @@ export const defaultDeliveryStatusOptions = [
}, },
{ {
id: 2, id: 2,
label: "已发货" label: "全部发货"
}, },
{ {
id: 3, id: 3,
...@@ -85,7 +85,11 @@ export const defaultPutStatusOptions = [ ...@@ -85,7 +85,11 @@ export const defaultPutStatusOptions = [
}, },
{ {
id: 2, id: 2,
label: "已入库" label: "全部入库"
},
{
id: 3,
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"
class="show-search"
:search-form="searchForm"
@handleChangeSelect="handleChangeSelect"
:form-data="showFormData"> :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,30 +21,18 @@ ...@@ -29,30 +21,18 @@
<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>
...@@ -139,7 +119,8 @@ export default { ...@@ -139,7 +119,8 @@ export default {
optionId: 'id', optionId: 'id',
optionLabel: 'label', optionLabel: 'label',
optionsName: 'purchasingPatternOptions' optionsName: 'purchasingPatternOptions'
}, { },
{
label: '发货主体', label: '发货主体',
name: 'sendOutMerchantName', name: 'sendOutMerchantName',
type: 'input', type: 'input',
...@@ -198,7 +179,10 @@ export default { ...@@ -198,7 +179,10 @@ export default {
}, },
{ {
label: '发货主体', label: '发货主体',
prop: 'sendOutMerchantName' prop: 'sendOutMerchantName',
formatter: (cellValue) => {
return cellValue.sendOutMerchantName ? cellValue.sendOutMerchantName : '-'
}
}, },
{ {
label: '发货状态', label: '发货状态',
...@@ -208,8 +192,9 @@ export default { ...@@ -208,8 +192,9 @@ export default {
}, },
className: (cellValue) => { className: (cellValue) => {
return { return {
1: 'yellowSpot', 1: 'ashSpot',
2: 'greenSpot' 2: 'greenSpot',
3: 'yellowSpot'
}[cellValue.deliveryStatus] }[cellValue.deliveryStatus]
} }
}, },
...@@ -360,11 +345,12 @@ export default { ...@@ -360,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
...@@ -372,14 +358,14 @@ export default { ...@@ -372,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>
<!-- 采购发货 --> <!-- 采购发货 -->
<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" :form-data="showFormData">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
: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>
...@@ -28,75 +20,51 @@ ...@@ -28,75 +20,51 @@
<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="purchaseAndDeliveryTable" <d2-table ref="purchaseAndDeliveryTable" :search-form="tableSearchForm" :table-params="tableParams"
:search-form="tableSearchForm" :table-data="tableData" :get-list-api="getListApi" :before-search-fn="beforeSearchFn">
:table-params="tableParams" <div slot="auth-button" slot-scope="scope">
:table-data="tableData"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<div slot="auth-button"
slot-scope="scope">
<!-- 查看 --> <!-- 查看 -->
<span style="margin-right: 10px;"> <span style="margin-right: 10px;">
<auth-button :data="scope.scope" <auth-button :data="scope.scope" :show-btn-ids="['9090401']" />
:show-btn-ids="['9090401']" />
</span> </span>
<!-- 确认发货 --> <!-- 确认发货 -->
<span v-show="scope.scope.status == 2" <span v-show="scope.scope.status == 2" style="margin-right: 10px;">
style="margin-right: 10px;"> <auth-button :data="scope.scope" :show-btn-ids="['9090402']" />
<auth-button :data="scope.scope"
:show-btn-ids="['9090402']" />
</span> </span>
<!-- 驳回 --> <!-- 驳回 -->
<span v-show="scope.scope.deliveryStatus == 1"> <span v-show="scope.scope.deliveryStatus == 1">
<!-- <el-button :data="scope.scope" type="text" @click="handleReject(scope.scope)">驳回</el-button> --> <!-- <el-button :data="scope.scope" type="text" @click="handleReject(scope.scope)">驳回</el-button> -->
<auth-button :data="scope.scope" <auth-button :data="scope.scope" :show-btn-ids="['9090403']" />
:show-btn-ids="['9090403']" />
</span> </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> <EditOrderDialog v-if="editVisible" :visible.sync="editVisible" :params-obj="dialogData" @editClose="editClose">
<EditOrderDialog v-if="editVisible" </EditOrderDialog>
:visible.sync="editVisible" <!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting"-->
:params-obj="dialogData" <baseDialog :is-show.sync="rejectVisible" :dialog-config="rejectConfig.config" @handleClick="handleRejectConfirm">
@editClose="editClose"></EditOrderDialog> <!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm"
<baseDialog v-if="rejectVisible" @closeDialog="handleRejectClose"> -->
:is-show.sync="rejectVisible"
:config="rejectConfig.setting"
:dialog-config="rejectConfig.config"
@closeDialog="handleRejectClose">
<div class="reject-dialog"> <div class="reject-dialog">
<el-form :rules="rejectRules" <el-form :rules="rejectRules" :model="rejectData" label-width="150px" ref="delivery-dialog-form">
:model="rejectData" <el-form-item label="驳回原因:" prop="rejectCause">
label-width="150px" <el-input type="textarea" placeholder="请输入驳回原因" maxlength="50" :rows="3" show-word-limit
ref="delivery-dialog-form"> v-model.trim="rejectData.rejectCause" class="dis-in-block reject-input" />
<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-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" <el-button @click="handleRejectConfirm" type="primary" v-preventReClick
type="primary"
v-preventReClick
:loading="$store.state.d2admin.loading.value">确认</el-button> :loading="$store.state.d2admin.loading.value">确认</el-button>
</div> </div> -->
<!-- </d2-dialog> -->
</baseDialog> </baseDialog>
</d2-container> </d2-container>
</template> </template>
...@@ -125,9 +93,10 @@ export default { ...@@ -125,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: '驳回提示',
...@@ -272,9 +241,9 @@ export default { ...@@ -272,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]
} }
}, },
...@@ -433,6 +402,8 @@ export default { ...@@ -433,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()
...@@ -455,26 +426,30 @@ export default { ...@@ -455,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,14 +56,21 @@ ...@@ -56,14 +56,21 @@
: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>
...@@ -230,8 +237,9 @@ export default { ...@@ -230,8 +237,9 @@ export default {
}, },
className: (cellValue) => { className: (cellValue) => {
return { return {
1: 'yellowSpot', 1: 'ashSpot',
2: 'greenSpot' 2: 'greenSpot',
3: 'yellowSpot'
}[cellValue.deliveryStatus] }[cellValue.deliveryStatus]
} }
}, },
...@@ -257,8 +265,9 @@ export default { ...@@ -257,8 +265,9 @@ export default {
}, },
className: (cellValue) => { className: (cellValue) => {
return { return {
1: 'yellowSpot', 1: 'ashSpot',
2: 'greenSpot' 2: 'greenSpot',
3: 'yellowSpot'
}[cellValue.putStatus] }[cellValue.putStatus]
} }
}, },
...@@ -445,6 +454,15 @@ export default { ...@@ -445,6 +454,15 @@ export default {
purchaseType: row.purchaseType purchaseType: row.purchaseType
} }
this.detailVisible = true this.detailVisible = true
},
//发货单
handleSendgoods(row) {
this.$router.push({
name: 'invoiceRecord',
params: {
orderCode: row.orderCode
}
})
} }
} }
} }
......
...@@ -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()
}, },
......
...@@ -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"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" <auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
slot-scope="scope"
:data="scope.scope" />
</d2-table> </d2-table>
</div> </div>
</d2-container> </d2-container>
...@@ -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> <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"
:table-params="tableParams"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" <auth-button slot="auth-button" slot-scope="scope" :show-btn-ids="['9060503']" :data="scope.scope" />
slot-scope="scope"
:show-btn-ids="['9060503']"
:data="scope.scope" />
</d2-table> </d2-table>
</div> </div>
</d2-container> </d2-container>
...@@ -73,12 +60,15 @@ export default { ...@@ -73,12 +60,15 @@ 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: '采购模式',
...@@ -95,21 +85,41 @@ export default { ...@@ -95,21 +85,41 @@ export default {
} }
}, { }, {
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"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn">
<div slot-scope="scope" <div slot-scope="scope" slot="auth-button" class="btnClass">
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!