Commit bc989bd5 by 张立顺

bug修复

1 parent db6c0eca
......@@ -66,7 +66,8 @@ export function getMerchantOutputValueTarget(data) {
export function setMerchantOutputValueTarget(data) {
data.method = `${path2}workbench.inputMerchantOutputValueTarget`
return request(data)
return request(data, "post")
// return request(data)
}
// 隐私协议标题查询
......
......@@ -57,6 +57,7 @@ const request = (
* 调后端接口 - url = ''
*/
const url = baseConfig[baseApiName].baseURL
// const url = "/api"
/**
* 调后端接口,请使用以下代码。
*/
......
......@@ -5,7 +5,7 @@
<div class="searchWrap">
<el-col :span="11">
<el-date-picker v-model="search.targetDate" :clearable="false" type="month" format="yyyy 年 MM 月"
value-format="yyyy-MM" :picker-options="pickerOptions" placeholder="选择月" />
@change="getList" value-format="yyyy-MM" :picker-options="pickerOptions" placeholder="选择月" />
</el-col>
<el-col :span="9">
<el-input v-model="search.keyword" clearable placeholder="输入门店名称搜索" />
......@@ -165,16 +165,31 @@ export default {
return 'background:#F4F6FC'
},
async handleConfirmImport() {
const filterList = this.tableData.filter((item) => {
let filterList = this.tableData.filter((item) => {
// 删除无需字段 避免后台类型报错
delete item.createdDate
delete item.updatedDate
// delete item.createdDate
// delete item.updatedDate
// delete item.createdBy
// delete item.updatedBy
// delete item.deletedFlag
// delete item.targetDate
return (item.isEdit && item.outputValue) || item.deployScene || item.businessScene
})
filterList = filterList.map((item) => {
return {
merchantName: item.merchantName,
merchantId: item.merchantId,
outputValue: item.outputValue,
deployScene: item.deployScene,
businessScene: item.businessScene,
dataMonth: item.dataMonth
}
})
if (filterList.length) {
// console.log('请求修改')
// const result =
await setMerchantOutputValueTarget({ list: filterList })
// await setMerchantOutputValueTarget({ list: filterList })
await setMerchantOutputValueTarget({ dataString: JSON.stringify(filterList) })
// console.log(result)
}
// else {
......
<!-- 驳回 -->
<template>
<d2-dialog title="驳回提示" :is-visible="rejectVisible" class="accountDailog" @closeDialog="handleClose"
@confirmDialog="handleAddConfirm">
<baseDialog :dialog-config="dialogConfig" :is-show.sync="visible" class="accountDailog" @handleClick="handleAddConfirm">
<div class="reject-dialog">
<el-form ref="refundForm" label-width="150px" :model="infoForm" :rules="formRules">
<el-form-item label="驳回原因:" prop="rejectCause">
<el-input type="textarea" placeholder="请输入驳回原因" maxlength="50" show-word-limit v-model="infoForm.rejectCause"
class="dis-in-block reject-input" />
:row="3" class="dis-in-block reject-input" />
</el-form-item>
</el-form>
</div>
</d2-dialog>
</baseDialog>
</template>
<script>
......@@ -24,7 +23,10 @@ export default {
infoForm: {
rejectCause: ''
},
dialogConfig: {
title: '驳回提示',
width: '750px'
},
formRules: {
rejectCause: [{ required: true, message: '请输入驳回原因', trigger: 'change' }]
}
......@@ -41,6 +43,21 @@ export default {
default: {}
}
},
computed: {
visible: {
get() {
// if (this.visible) {
// // 注册全局监听事件 [ 目前只考虑鼠标解除触发 ]
// window.addEventListener('mousedown', this.watchContextmenu)
// }
return this.rejectVisible
},
set(newVal) {
this.$emit('dialogClose', newVal)
// this.$emit('update:visible', newVal)
}
}
},
watch: {
},
......@@ -56,15 +73,19 @@ export default {
methods: {
handleAddConfirm() {
// return
this.$refs.refundForm.validate(valid => {
if (valid) {
// console.log(valid)
// return
var infoForm = deepClone(this.infoForm)
var params = {}
params.rejectCause = infoForm.rejectCause
params.orderCode = this.paramsObj.orderCode
purchaseOrderReject(params).then(res => {
this.notice.okTips('操作成功')
this.handleClose(true)
// this.handleClose(true)
this.visible = true
})
}
})
......
......@@ -357,6 +357,7 @@ export default {
this.rejectVisible = true
},
dialogClose(flag) {
console.log(flag)
this.rejectVisible = !this.rejectVisible
if (flag) {
this.$refs.purchasementReviewTable.refreshTable()
......
......@@ -47,13 +47,14 @@
<orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :params-obj="paramsObj"></orderDeatilDialog>
<EditOrderDialog v-if="editVisible" :visible.sync="editVisible" :params-obj="dialogData" @editClose="editClose">
</EditOrderDialog>
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config"-->
<d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提示" @confirmDialog="handleRejectConfirm"
@closeDialog="handleRejectClose">
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting"-->
<baseDialog :is-show.sync="rejectVisible" :dialog-config="rejectConfig.config" @handleClick="handleRejectConfirm">
<!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm"
@closeDialog="handleRejectClose"> -->
<div class="reject-dialog">
<el-form :rules="rejectRules" :model="rejectData" label-width="150px" ref="delivery-dialog-form">
<el-form-item label="驳回原因:" prop="rejectCause">
<el-input type="textarea" placeholder="请输入驳回原因" maxlength="50" show-word-limit
<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>
......@@ -63,7 +64,8 @@
<el-button @click="handleRejectConfirm" type="primary" v-preventReClick
:loading="$store.state.d2admin.loading.value">确认</el-button>
</div> -->
</d2-dialog>
<!-- </d2-dialog> -->
</baseDialog>
</d2-container>
</template>
......@@ -91,9 +93,10 @@ export default {
rejectConfig: {
setting: {
showClose: true,
appendToBody: true,
btnList: [
]
// appendToBody: true,
isShowFooter: true
// btnList: [
// ]
},
config: {
title: '驳回提示',
......@@ -399,6 +402,8 @@ export default {
handleRejectConfirm() {
this.$refs['delivery-dialog-form'].validate(valid => {
if (valid) {
// console.log(valid)
// return
purchaseOrderReject({ ...this.rejectData }).then(res => {
this.handleRejectClose()
this.notice.okTips()
......
......@@ -323,8 +323,10 @@ export default {
},
methods: {
validateAccount(rule, value, callback, item) {
console.log(item)
value < item.low
// console.log(item)
// console.log(value)
// 避免字符串转换问题
Number(value) < Number(item.low)
? callback(new Error(`价格不能小于${item.low}万元`))
: callback()
},
......
......@@ -74,19 +74,19 @@ module.exports = {
// lintOnSave: true,
lintOnSave: false,
devServer: {
// port: 8082,
// publicPath, // 和 publicPath 保持一致
// port: 8082,
// proxy: {
// "/dj-carlife-web": {
// // 拦截链接中有/musicApi
// target: "http://192.168.3.226:9203/rop-dj-smartcarlife/router", // API服务器的地址
// "/api": {
// // target: "http://192.168.3.102:9203/rop-dj-smartcarlife/router", // API服务器的地址
// target: "http://dj.glsx.com.cn/rop-dj-smartcarlife/router", // API服务器的地址
// changeOrigin: true,
// pathRewrite: {
// // "^/dev-api/vue-admin-template/user/login": "/user"
// "^/api": ""
// }
// }
// },
https: false,
// https: true,
host: getIpAddress()
},
css: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!