Commit 8736d7a8 by wangzhihui

Merge branch 'SAAS+V4.50.0-0311' of http://192.168.3.233:8090/saas_plus/dj-car-l…

…ife-system into SAAS+V4.50.0-0311
2 parents 044552f3 dd2de0c0
...@@ -8,22 +8,41 @@ ...@@ -8,22 +8,41 @@
*/ */
import request from "./request" import request from "./request"
import RequestMethods from "./request.methods" import RequestMethods from "./request.methods"
const path = "dj.api.create.business.approve."
//嘀加上架查看详情(分账、对账配置) // 获取企微审批模版
export function getWorkwechatTemplate(data) {
data.method = `${path}workwechat.template`
return request(data, RequestMethods.POST)
}
// 分页查询嘀加上架列表
export function getPage(data) {
data.method = `${path}page`
return request(data, RequestMethods.POST)
}
// 驳回嘀加上架
export function reject(data) {
data.method = `${path}reject`
return request(data, RequestMethods.POST)
}
// 嘀加上架查看详情(分账、对账配置)
export function merchantSettleDistributeRuleLastRule(data) { export function merchantSettleDistributeRuleLastRule(data) {
data.method = `dj.api.create.business.approve.detail.rule` data.method = `dj.api.create.business.approve.detail.rule`
return request(data) return request(data)
} }
// 获取不同场景的商品分类 // 获取不同场景的商品分类
export function getGoodsCategoryConfiguration(data) { export function getGoodsCategoryConfiguration(data) {
data.currentPage = 1 data.currentPage = 1
data.pageSize = 999999 data.pageSize = 999999
// data.method = `${path}goodsCategoryConfiguration.page` // data.method = `${path}goodsCategoryConfiguration.page`
data.method = `${path}goodsCategoryConfiguration.page.new` data.method = `${path}goodsCategoryConfiguration.page.new`
return request(data) return request(data)
} }
// 财务 - 2 - 获取导流方 // 财务 - 2 - 获取导流方
export function getMerchantLevelApi(data) { export function getMerchantLevelApi(data) {
data.method = `dj.api.smartcarlife.get.merchantLevel`
return request(data, "post")
}
\ No newline at end of file \ No newline at end of file
data.method = `dj.api.smartcarlife.get.merchantLevel`
return request(data, "post")
}
...@@ -1072,22 +1072,22 @@ export const zyVoucherStatusOpt = [ ...@@ -1072,22 +1072,22 @@ export const zyVoucherStatusOpt = [
// 嘀加上架 审批类型 // 嘀加上架 审批类型
export const approveTypeOpt = [ export const approveTypeOpt = [
{ confId: "1", confValue: "嘀加上架与销售合同" }, { confId: 1, confValue: "嘀加上架与销售合同" },
{ confId: "2", confValue: "嘀加上架修改" } { confId: 2, confValue: "嘀加上架修改" }
] ]
// 嘀加上架 系统状态 // 嘀加上架 系统状态
export const systemStatusOpt = [ export const systemStatusOpt = [
{ confId: "1", confValue: "运营确认" }, { confId: 1, confValue: "运营确认" },
{ confId: "2", confValue: "已转OA" }, { confId: 2, confValue: "已转OA" },
{ confId: "3", confValue: "完成上架更新" }, { confId: 3, confValue: "完成上架更新" },
{ confId: "4", confValue: "驳回" } { confId: 4, confValue: "驳回" }
] ]
// 嘀加上架 审批状态 // 嘀加上架 审批状态
export const approveStatusOpt = [ export const approveStatusOpt = [
{ confId: "1", confValue: "审批中" }, { confId: 1, confValue: "审批中" },
{ confId: "2", confValue: "已通过" }, { confId: 2, confValue: "已通过" },
{ confId: "3", confValue: "已驳回" }, { confId: 3, confValue: "已驳回" },
{ confId: "4", confValue: "已撤销" } { confId: 4, confValue: "已撤销" }
] ]
...@@ -18,16 +18,14 @@ ...@@ -18,16 +18,14 @@
</template> </template>
<script> <script>
import { transferAccountsRecordUpdateStatus } from '@api/transferAccountsManage' import {
reject
} from "@api/shelfManage.js"
export default { export default {
name: 'RejectDialog', name: 'RejectDialog',
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
// statusObj: {
// 1: '运营驳回',
// 2: '财务驳回'
// },
infoForm: { infoForm: {
remark: '' remark: ''
}, },
...@@ -77,7 +75,6 @@ export default { ...@@ -77,7 +75,6 @@ export default {
mounted() { mounted() {
console.log('paramsObj', this.paramsObj) console.log('paramsObj', this.paramsObj)
// this.dialogConfig.title = this.statusObj[this.paramsObj.status]
}, },
methods: { methods: {
...@@ -86,11 +83,10 @@ export default { ...@@ -86,11 +83,10 @@ export default {
this.$refs.formRef.$refs[this.rejectRef].validate(valid => { this.$refs.formRef.$refs[this.rejectRef].validate(valid => {
if (valid) { if (valid) {
var params = {} var params = {}
params.remark = this.infoForm.remark params.rejectedReason = this.infoForm.remark
params.orderCode = this.paramsObj.orderCode params.id = this.paramsObj.id
params.status = 9
transferAccountsRecordUpdateStatus(params).then(res => { reject(params).then(res => {
this.notice.okTips('操作成功') this.notice.okTips('操作成功')
this.visible = true this.visible = true
}) })
......
...@@ -36,11 +36,9 @@ ...@@ -36,11 +36,9 @@
</span> </span>
</d2-table-header> </d2-table-header>
<d2-table ref="packageIndexTable" <d2-table ref="packageIndexTable"
:has-num="false"
:search-form="searchForm" :search-form="searchForm"
:table-params="tableParams" :table-params="tableParams"
:table-data="tableData" :get-list-api="getListApi"
:selectable-fn="selectableFn"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn">
<div slot="auth-button" <div slot="auth-button"
slot-scope="scope"> slot-scope="scope">
...@@ -82,6 +80,9 @@ import { Util, deepClone } from '@/common/util' ...@@ -82,6 +80,9 @@ import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { approveTypeOpt, systemStatusOpt, approveStatusOpt } from '@/common/constants.js' import { approveTypeOpt, systemStatusOpt, approveStatusOpt } from '@/common/constants.js'
import rejectDialog from './components/common/rejectDialog.vue' import rejectDialog from './components/common/rejectDialog.vue'
import {
getPage
} from "@api/shelfManage.js"
export default { export default {
name: 'ShelfManage', name: 'ShelfManage',
components: { components: {
...@@ -137,7 +138,7 @@ export default { ...@@ -137,7 +138,7 @@ export default {
optionLabel: 'confValue', optionLabel: 'confValue',
optionsName: 'approveStatusOpt' optionsName: 'approveStatusOpt'
}], }],
getListApi: '', getListApi: getPage,
// 表格参数 // 表格参数
tableParams: { tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
...@@ -276,8 +277,22 @@ export default { ...@@ -276,8 +277,22 @@ export default {
}) })
}, },
getShelfManageList() { }, getShelfManageList() { },
beforeSearchFn() { }, beforeSearchFn() {
handleReset() { }, return new Promise(resolve => {
this.searchFormSearch = deepClone(this.searchForm)
resolve()
})
},
handleReset() {
this.searchForm = {
businessCode: '',
workWechatApproveCode: '',
approveType: '',
systemStatus: '',
approveStatus: ''
}
this.$refs.recordTable.refreshTable(false, true)
},
// 确认 - 编辑合同 // 确认 - 编辑合同
handleEditContract(row) { handleEditContract(row) {
...@@ -309,8 +324,30 @@ export default { ...@@ -309,8 +324,30 @@ export default {
rejectDialogClose(obj) { rejectDialogClose(obj) {
this[obj.attrName] = !this[obj.attrName] this[obj.attrName] = !this[obj.attrName]
if (obj.flag) { if (obj.flag) {
this.$refs.recordTable.refreshTable() this.$refs.packageIndexTable.refreshTable()
} }
},
// 嘀加上架与销售合同
handleAdd() {
this.close({ tagName: '/editShelf' })
this.$router.push({
name: 'editShelf',
params: {
operate: 'add'
}
})
},
// 嘀加上架修改
handleEdit() {
this.close({ tagName: '/editShelf' })
this.$router.push({
name: 'editShelf',
params: {
operate: 'edit'
}
})
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!