Commit 83d2995e by 王志慧

fixed

1 parent 29a6f2c8
...@@ -50,11 +50,21 @@ const copyTemplateApi = params => { ...@@ -50,11 +50,21 @@ const copyTemplateApi = params => {
sign: true sign: true
}) })
} }
const exportContractApi = params => {
params.method = `scrm.api.equity.service.contract.template.list.export`
return http({
url: CUR_BASE_URL,
method: 'POST',
data: params,
sign: true
})
}
export default { export default {
getContractListApi, getContractListApi,
saveContractTemplateApi, saveContractTemplateApi,
getContractDetailApi, getContractDetailApi,
printContractApi, printContractApi,
copyTemplateApi copyTemplateApi,
exportContractApi
} }
\ No newline at end of file \ No newline at end of file
...@@ -33,9 +33,20 @@ const modWorryDetailList = params => { ...@@ -33,9 +33,20 @@ const modWorryDetailList = params => {
returnAll:true returnAll:true
}) })
} }
//清空无忧卡使用状态
const clearWorryStatus = params => {
params.method = `${defaultPath}service.cfc.clear`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
returnAll:true
})
}
export default { export default {
getWorryDetailList, getWorryDetailList,
getdetailTotal, getdetailTotal,
selWorryDetailList, selWorryDetailList,
modWorryDetailList modWorryDetailList,
clearWorryStatus
} }
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
<div class="table_wrapper"> <div class="table_wrapper">
<div class="operate_wrap"> <div class="operate_wrap">
<span class="table_title">合同列表</span> <span class="table_title">合同列表</span>
<!-- <div class="operate_btn"> <div class="operate_btn">
<el-button :size="size" @click="handleExport">导出</el-button> <el-button :size="size" @click="handleExport">导出</el-button>
</div> --> </div>
</div> </div>
<GLTable ref="equityRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="equityRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div slot="serviceContent" slot-scope="scope"> <div slot="serviceContent" slot-scope="scope">
...@@ -83,6 +83,7 @@ ...@@ -83,6 +83,7 @@
], ],
searchForm: { searchForm: {
merchantName: '', merchantName: '',
packageName:'',
createdDate: '', createdDate: '',
updatedDate: '' updatedDate: ''
}, },
...@@ -95,6 +96,12 @@ ...@@ -95,6 +96,12 @@
isClear: true, isClear: true,
}, },
{ {
label: '商品名称',
name: 'packageName',
type: 'input',
isClear: true,
},
{
label: '创建时间', label: '创建时间',
name: 'createdDate', name: 'createdDate',
type: 'datePicker', type: 'datePicker',
...@@ -109,7 +116,7 @@ ...@@ -109,7 +116,7 @@
labelWidth: 95, labelWidth: 95,
isClear: true, isClear: true,
pickerOptions: 'beforeRangePickerOptions' pickerOptions: 'beforeRangePickerOptions'
} },
], ],
// 表格 // 表格
getListApi: this.$apis.contractManager.getContractListApi, getListApi: this.$apis.contractManager.getContractListApi,
...@@ -209,7 +216,7 @@ ...@@ -209,7 +216,7 @@
// 导出 // 导出
handleExport() { handleExport() {
var params = this.getParams() var params = this.getParams()
this.$apis.serviceConfig.exportEquityApi(params).then(res => { this.$apis.contractManager.exportContractApi(params).then(res => {
// window.open(res) // window.open(res)
let tempaa = utils.getExplorer() let tempaa = utils.getExplorer()
if (tempaa == 'QQ') { if (tempaa == 'QQ') {
...@@ -230,6 +237,7 @@ ...@@ -230,6 +237,7 @@
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
serviceName: '', serviceName: '',
packageName:'',
createdDate: '', createdDate: '',
updatedDate: '' updatedDate: ''
} }
......
...@@ -35,6 +35,10 @@ export default { ...@@ -35,6 +35,10 @@ export default {
{ {
key: 'merchantAddr', key: 'merchantAddr',
label: '店面地址:' label: '店面地址:'
},
{
key: 'sapCode',
label: '门店代码:'
} }
] ]
}, },
......
...@@ -392,6 +392,7 @@ export default { ...@@ -392,6 +392,7 @@ export default {
status: '', status: '',
commitDate: '', commitDate: '',
shopDate: '', shopDate: '',
merchantUpdatedDate:'',
cityMerchantId: '', cityMerchantId: '',
provinceMerchantId: '', provinceMerchantId: '',
merchantId: '' merchantId: ''
...@@ -432,6 +433,13 @@ export default { ...@@ -432,6 +433,13 @@ export default {
isClear: true isClear: true
}, },
{ {
label: '门店更新时间',
name: 'merchantUpdatedDate',
type: 'datePicker',
pickerOptions: 'beforeRangePickerOptions',
isClear: true
},
{
label: '大区', label: '大区',
name: 'provinceMerchantId', name: 'provinceMerchantId',
type: 'select', type: 'select',
...@@ -535,6 +543,14 @@ export default { ...@@ -535,6 +543,14 @@ export default {
} }
}, },
{ {
label: '门店更新时间',
prop: 'merchantUpdatedDate',
width: 180,
formatter: cellValue => {
return cellValue.merchantUpdatedDate ? cellValue.merchantUpdatedDate: '-'
}
},
{
label: '提交国任时间', label: '提交国任时间',
prop: 'commitGuoRenDate', prop: 'commitGuoRenDate',
width: 180, width: 180,
...@@ -850,6 +866,7 @@ export default { ...@@ -850,6 +866,7 @@ export default {
status: '', status: '',
commitDate: '', commitDate: '',
shopDate: '', shopDate: '',
merchantUpdatedDate:'',
cityMerchantId: '', cityMerchantId: '',
provinceMerchantId: '', provinceMerchantId: '',
merchantId: '' merchantId: ''
...@@ -868,12 +885,17 @@ export default { ...@@ -868,12 +885,17 @@ export default {
params.commitTimeStart = dayjs(params.commitDate[0]).format('YYYY-MM-DD') + ' 00:00:00' params.commitTimeStart = dayjs(params.commitDate[0]).format('YYYY-MM-DD') + ' 00:00:00'
params.commitTimeEnd = dayjs(params.commitDate[1]).format('YYYY-MM-DD') + ' 23:59:59' params.commitTimeEnd = dayjs(params.commitDate[1]).format('YYYY-MM-DD') + ' 23:59:59'
} }
if (Array.isArray(params.merchantUpdatedDate) && params.merchantUpdatedDate.length > 0) {
params.merchantUpdatedStart = dayjs(params.merchantUpdatedDate[0]).format('YYYY-MM-DD') + ' 00:00:00'
params.merchantUpdatedEnd = dayjs(params.merchantUpdatedDate[1]).format('YYYY-MM-DD') + ' 23:59:59'
}
if (Array.isArray(params.shopDate) && params.shopDate.length > 0) { if (Array.isArray(params.shopDate) && params.shopDate.length > 0) {
params.merchantCommitStart = dayjs(params.shopDate[0]).format('YYYY-MM-DD') + ' 00:00:00' params.merchantCommitStart = dayjs(params.shopDate[0]).format('YYYY-MM-DD') + ' 00:00:00'
params.merchantCommitEnd = dayjs(params.shopDate[1]).format('YYYY-MM-DD') + ' 23:59:59' params.merchantCommitEnd = dayjs(params.shopDate[1]).format('YYYY-MM-DD') + ' 23:59:59'
} }
delete params.commitDate delete params.commitDate
delete params.shopDate delete params.shopDate
delete params.merchantUpdatedDate
return params return params
}, },
getTableData() { getTableData() {
......
...@@ -47,7 +47,7 @@ const validatorActualPrice = (rule, value, callback) => { ...@@ -47,7 +47,7 @@ const validatorActualPrice = (rule, value, callback) => {
} }
export default { export default {
name: '', name: '',
components:{ components: {
glsxCombiForm glsxCombiForm
}, },
data() { data() {
...@@ -62,13 +62,28 @@ export default { ...@@ -62,13 +62,28 @@ export default {
}, },
attrs: { attrs: {
type: 'text', type: 'text',
disabled:(row)=>{ disabled: row => {
return row.scope.status return row.scope.status
} }
}, },
listeners: { listeners: {
click: row => this.modify(row.scope) click: row => this.modify(row.scope)
} }
},
{
type: 'el-button',
name: row => {
return '恢复未使用'
},
attrs: {
type: 'text'
},
condition: row => {
return row.scope.status == 1
},
listeners: {
click: row => this.clearStatus(row.scope)
}
} }
], ],
line: { line: {
...@@ -105,7 +120,8 @@ export default { ...@@ -105,7 +120,8 @@ export default {
name: 'batchType', name: 'batchType',
type: 'select', type: 'select',
isClear: true, isClear: true,
optionList: [ { optionList: [
{
confId: '', confId: '',
confName: '全部' confName: '全部'
}, },
...@@ -390,7 +406,7 @@ export default { ...@@ -390,7 +406,7 @@ export default {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list', listName: 'list',
tableOption: { tableOption: {
width: 70 width: 150
}, },
tableColumns: [ tableColumns: [
{ {
...@@ -470,13 +486,13 @@ export default { ...@@ -470,13 +486,13 @@ export default {
this.getTypelist() this.getTypelist()
}, },
methods: { methods: {
getTypelist(){ getTypelist() {
this.$apis.addWorryFree.getTypelistApi({}).then(res => { this.$apis.addWorryFree.getTypelistApi({}).then(res => {
if(!res?.length) return; if (!res?.length) return
let target = this.addDialogFormData.find(item => item.name == 'packageCode') let target = this.addDialogFormData.find(item => item.name == 'packageCode')
target.optionList = res target.optionList = res
let serachTarget = this.detailFormData.find(item => item.name == 'packageCode') let serachTarget = this.detailFormData.find(item => item.name == 'packageCode')
serachTarget.optionList = [{packageCode: '',packageName: '全部'}, ...res] serachTarget.optionList = [{ packageCode: '', packageName: '全部' }, ...res]
this.applyTypelist = res this.applyTypelist = res
}) })
}, },
...@@ -551,7 +567,7 @@ export default { ...@@ -551,7 +567,7 @@ export default {
// this.changePgCode(e.packageCode) // this.changePgCode(e.packageCode)
let obj = JSON.parse(JSON.stringify(e)) let obj = JSON.parse(JSON.stringify(e))
this.detailDialog = true this.detailDialog = true
obj.servicePeriod = obj.servicePeriod +'' obj.servicePeriod = obj.servicePeriod + ''
this.detailDialogForm = obj this.detailDialogForm = obj
if (obj.batchType == '1') { if (obj.batchType == '1') {
this.detailDialogForm.batchType = '尊享版' this.detailDialogForm.batchType = '尊享版'
...@@ -559,6 +575,24 @@ export default { ...@@ -559,6 +575,24 @@ export default {
this.detailDialogForm.batchType = '畅享版' this.detailDialogForm.batchType = '畅享版'
} }
}, },
// 清空无忧卡使用状态
clearStatus(row) {
this.$apis.worryDetailApi.clearWorryStatus({ id: row.id }).then(res => {
console.log(res)
if (res.code == '0') {
this.$message({
message: '操作成功',
type: 'success'
})
this.$refs.detailTable.refreshTable()
} else {
this.$message({
message: '操作失败',
type: 'error'
})
}
})
},
// 详情table搜索回调方法 // 详情table搜索回调方法
detailFormat() {}, detailFormat() {},
// 关闭弹窗界面 // 关闭弹窗界面
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!