Commit 83d2995e by 王志慧

fixed

1 parent 29a6f2c8
......@@ -50,11 +50,21 @@ const copyTemplateApi = params => {
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 {
getContractListApi,
saveContractTemplateApi,
getContractDetailApi,
printContractApi,
copyTemplateApi
copyTemplateApi,
exportContractApi
}
\ No newline at end of file
......@@ -33,9 +33,20 @@ const modWorryDetailList = params => {
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 {
getWorryDetailList,
getdetailTotal,
selWorryDetailList,
modWorryDetailList
modWorryDetailList,
clearWorryStatus
}
......@@ -6,9 +6,9 @@
<div class="table_wrapper">
<div class="operate_wrap">
<span class="table_title">合同列表</span>
<!-- <div class="operate_btn">
<div class="operate_btn">
<el-button :size="size" @click="handleExport">导出</el-button>
</div> -->
</div>
</div>
<GLTable ref="equityRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div slot="serviceContent" slot-scope="scope">
......@@ -83,6 +83,7 @@
],
searchForm: {
merchantName: '',
packageName:'',
createdDate: '',
updatedDate: ''
},
......@@ -95,6 +96,12 @@
isClear: true,
},
{
label: '商品名称',
name: 'packageName',
type: 'input',
isClear: true,
},
{
label: '创建时间',
name: 'createdDate',
type: 'datePicker',
......@@ -109,7 +116,7 @@
labelWidth: 95,
isClear: true,
pickerOptions: 'beforeRangePickerOptions'
}
},
],
// 表格
getListApi: this.$apis.contractManager.getContractListApi,
......@@ -209,7 +216,7 @@
// 导出
handleExport() {
var params = this.getParams()
this.$apis.serviceConfig.exportEquityApi(params).then(res => {
this.$apis.contractManager.exportContractApi(params).then(res => {
// window.open(res)
let tempaa = utils.getExplorer()
if (tempaa == 'QQ') {
......@@ -230,6 +237,7 @@
handleReset() {
this.searchForm = {
serviceName: '',
packageName:'',
createdDate: '',
updatedDate: ''
}
......
......@@ -35,6 +35,10 @@ export default {
{
key: 'merchantAddr',
label: '店面地址:'
},
{
key: 'sapCode',
label: '门店代码:'
}
]
},
......
......@@ -392,6 +392,7 @@ export default {
status: '',
commitDate: '',
shopDate: '',
merchantUpdatedDate:'',
cityMerchantId: '',
provinceMerchantId: '',
merchantId: ''
......@@ -432,6 +433,13 @@ export default {
isClear: true
},
{
label: '门店更新时间',
name: 'merchantUpdatedDate',
type: 'datePicker',
pickerOptions: 'beforeRangePickerOptions',
isClear: true
},
{
label: '大区',
name: 'provinceMerchantId',
type: 'select',
......@@ -535,6 +543,14 @@ export default {
}
},
{
label: '门店更新时间',
prop: 'merchantUpdatedDate',
width: 180,
formatter: cellValue => {
return cellValue.merchantUpdatedDate ? cellValue.merchantUpdatedDate: '-'
}
},
{
label: '提交国任时间',
prop: 'commitGuoRenDate',
width: 180,
......@@ -850,6 +866,7 @@ export default {
status: '',
commitDate: '',
shopDate: '',
merchantUpdatedDate:'',
cityMerchantId: '',
provinceMerchantId: '',
merchantId: ''
......@@ -868,12 +885,17 @@ export default {
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'
}
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) {
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'
}
delete params.commitDate
delete params.shopDate
delete params.merchantUpdatedDate
return params
},
getTableData() {
......
......@@ -47,7 +47,7 @@ const validatorActualPrice = (rule, value, callback) => {
}
export default {
name: '',
components:{
components: {
glsxCombiForm
},
data() {
......@@ -55,20 +55,35 @@ export default {
applyTypelist: [],
date_format,
buttonList: [
{
{
type: 'el-button',
name: row => {
return '修改'
},
attrs: {
type: 'text',
disabled:(row)=>{
disabled: row => {
return row.scope.status
}
},
listeners: {
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: {
......@@ -105,18 +120,19 @@ export default {
name: 'batchType',
type: 'select',
isClear: true,
optionList: [ {
confId: '',
confName: '全部'
},
{
confId: '1',
confName: '尊享版'
},
{
confId: '2',
confName: '畅享版'
}
optionList: [
{
confId: '',
confName: '全部'
},
{
confId: '1',
confName: '尊享版'
},
{
confId: '2',
confName: '畅享版'
}
],
optionId: 'confId',
optionLabel: 'confName'
......@@ -199,7 +215,7 @@ export default {
actualPrice: '',
servicePeriod: ''
},
addDialogFormData: [
addDialogFormData: [
{
label: '版本',
name: 'batchType',
......@@ -390,7 +406,7 @@ export default {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableOption: {
width: 70
width: 150
},
tableColumns: [
{
......@@ -429,7 +445,7 @@ export default {
prop: 'packageCode',
formatter: cellValue => {
let targer = this.applyTypelist.find(item => item.packageCode == cellValue.packageCode)
return targer && targer.packageName ? targer.packageName : '--'
return targer && targer.packageName ? targer.packageName : '--'
},
width: 220
},
......@@ -470,13 +486,13 @@ export default {
this.getTypelist()
},
methods: {
getTypelist(){
getTypelist() {
this.$apis.addWorryFree.getTypelistApi({}).then(res => {
if(!res?.length) return;
if (!res?.length) return
let target = this.addDialogFormData.find(item => item.name == 'packageCode')
target.optionList = res
let serachTarget = this.detailFormData.find(item => item.name == 'packageCode')
serachTarget.optionList = [{packageCode: '',packageName: '全部'}, ...res]
serachTarget.optionList = [{ packageCode: '', packageName: '全部' }, ...res]
this.applyTypelist = res
})
},
......@@ -551,7 +567,7 @@ export default {
// this.changePgCode(e.packageCode)
let obj = JSON.parse(JSON.stringify(e))
this.detailDialog = true
obj.servicePeriod = obj.servicePeriod +''
obj.servicePeriod = obj.servicePeriod + ''
this.detailDialogForm = obj
if (obj.batchType == '1') {
this.detailDialogForm.batchType = '尊享版'
......@@ -559,6 +575,24 @@ export default {
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搜索回调方法
detailFormat() {},
// 关闭弹窗界面
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!