Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
G
GangShi-un2
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
黄旭新
GangShi-un2
Commits
bbd0e115
提交
bbd0e115
authored
4月 22, 2021
作者:
彭涛
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
电客企业合同
上级
fa078dd6
全部展开
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
49 行增加
和
49 行删除
+49
-49
LssueContracts.vue
pagesA/Contracts/LssueContracts/LssueContracts.vue
+23
-23
LssueContracts.js.map
...xin/pagesA/Contracts/LssueContracts/LssueContracts.js.map
+1
-1
LssueContracts.js
...-weixin/pagesA/Contracts/LssueContracts/LssueContracts.js
+25
-25
没有找到文件。
pagesA/Contracts/LssueContracts/LssueContracts.vue
浏览文件 @
bbd0e115
...
...
@@ -152,29 +152,29 @@
}).
then
(
res
=>
{
console
.
log
(
'获取合同信息'
)
console
.
log
(
res
.
data
)
//
if (res.code == 200) {
//
that.contractA = res.data.contractA
//
that.companyValue = res.data.ename
//
// console.log(that.companys)
//
for (let i = 0; i
<
that
.
companys
.
length
;
i
++
)
{
//
if (that.companys[i].eName == that.companyValue) {
//
console.log(that.companys[i].userId)
//
that.userId = that.companys[i].userId
//
}
//
}
//
console.log(that.userId)
//
that.electricity = res.data.electricity
//
that.contractStartTime = res.data.contractStartTime.replace(new RegExp('-', 'g'), '/')
//
that.contractEndTime = res.data.contractEndTime.replace(new RegExp('-', 'g'), '/')
//
that.contractType = res.data.contractType
//
if (that.contractType == 1) {
//
that.typeValue = '固定价差'
//
that.fixedSpread = res.data.fixedSpread
//
} else {
//
that.typeValue = '月竞分成'
//
that.shareRatio = res.data.shareRatio
//
}
//
}
if
(
res
.
code
==
200
)
{
that
.
contractA
=
res
.
data
.
contractA
that
.
companyValue
=
res
.
data
.
ename
// console.log(that.companys)
for
(
let
i
=
0
;
i
<
that
.
companys
.
length
;
i
++
)
{
if
(
that
.
companys
[
i
].
eName
==
that
.
companyValue
)
{
console
.
log
(
that
.
companys
[
i
].
userId
)
that
.
userId
=
that
.
companys
[
i
].
userId
}
}
console
.
log
(
that
.
userId
)
that
.
electricity
=
res
.
data
.
electricity
that
.
contractStartTime
=
res
.
data
.
contractStartTime
.
replace
(
new
RegExp
(
'-'
,
'g'
),
'/'
)
that
.
contractEndTime
=
res
.
data
.
contractEndTime
.
replace
(
new
RegExp
(
'-'
,
'g'
),
'/'
)
that
.
contractType
=
res
.
data
.
contractType
if
(
that
.
contractType
==
1
)
{
that
.
typeValue
=
'固定价差'
that
.
fixedSpread
=
res
.
data
.
fixedSpread
}
else
{
that
.
typeValue
=
'月竞分成'
that
.
shareRatio
=
res
.
data
.
shareRatio
}
}
})
},
//选择合同类型
...
...
unpackage/dist/dev/.sourcemap/mp-weixin/pagesA/Contracts/LssueContracts/LssueContracts.js.map
浏览文件 @
bbd0e115
差异被折叠。
点击展开。
unpackage/dist/dev/mp-weixin/pagesA/Contracts/LssueContracts/LssueContracts.js
浏览文件 @
bbd0e115
...
...
@@ -287,31 +287,31 @@ var _default = { onLoad: function onLoad(options) {var that = this;that.contract
onSubmint
:
false
// 是否正在上传
};},
computed
:
{
startDate
:
function
startDate
()
{
var
year
=
new
Date
().
getFullYear
();
var
month
=
new
Date
().
getMonth
()
+
1
;
var
day
=
new
Date
().
getDay
();
if
(
month
==
13
)
{
year
=
year
+
1
;
month
=
1
;}
month
=
month
>
9
?
month
:
'0'
+
month
;
day
=
day
>
9
?
day
:
'0'
+
day
;
return
year
+
'-'
+
month
+
'-'
+
day
;},
endDate
:
function
endDate
()
{
var
year
=
new
Date
().
getFullYear
()
+
10
;
return
year
+
'-12-31'
;}
},
methods
:
{
//数据回显
datashow
:
function
datashow
()
{
var
that
=
this
;
// 编辑合同的数据回显
(
0
,
_fun
.
get
)(
_api
.
default
.
contractDetail
,
{
contractId
:
that
.
contractId
}).
then
(
function
(
res
)
{
console
.
log
(
'获取合同信息'
);
console
.
log
(
res
.
data
);
// if (res.code == 200) {
// that.contractA = res.data.contractA
// that.companyValue = res.data.ename
// // console.log(that.companys)
// for (let i = 0; i < that.companys.length; i++) {
// if (that.companys[i].eName == that.companyValue) {
// console.log(that.companys[i].userId)
// that.userId = that.companys[i].userId
// }
// }
// console.log(that.userId)
// that.electricity = res.data.electricity
// that.contractStartTime = res.data.contractStartTime.replace(new RegExp('-', 'g'), '/')
// that.contractEndTime = res.data.contractEndTime.replace(new RegExp('-', 'g'), '/')
// that.contractType = res.data.contractType
// if (that.contractType == 1)
{
// that.typeValue = '固定价差'
// that.fixedSpread = res.data.fixedSpread
// } else {
// that.typeValue = '月竞分成'
// that.shareRatio = res.data.shareRatio
// }
// }
});},
//选择合同类型
bindTypeChange
:
function
bindTypeChange
(
event
)
{
// console.log(event)
(
0
,
_fun
.
get
)(
_api
.
default
.
contractDetail
,
{
contractId
:
that
.
contractId
}).
then
(
function
(
res
)
{
console
.
log
(
'获取合同信息'
);
console
.
log
(
res
.
data
);
if
(
res
.
code
==
200
)
{
that
.
contractA
=
res
.
data
.
contractA
;
that
.
companyValue
=
res
.
data
.
ename
;
// console.log(that.companys)
for
(
var
i
=
0
;
i
<
that
.
companys
.
length
;
i
++
)
{
if
(
that
.
companys
[
i
].
eName
==
that
.
companyValue
)
{
console
.
log
(
that
.
companys
[
i
].
userId
);
that
.
userId
=
that
.
companys
[
i
].
userId
;
}
}
console
.
log
(
that
.
userId
);
that
.
electricity
=
res
.
data
.
electricity
;
that
.
contractStartTime
=
res
.
data
.
contractStartTime
.
replace
(
new
RegExp
(
'-'
,
'g'
),
'/'
);
that
.
contractEndTime
=
res
.
data
.
contractEndTime
.
replace
(
new
RegExp
(
'-'
,
'g'
),
'/'
);
that
.
contractType
=
res
.
data
.
contractType
;
if
(
that
.
contractType
==
1
)
{
that
.
typeValue
=
'固定价差'
;
that
.
fixedSpread
=
res
.
data
.
fixedSpread
;
}
else
{
that
.
typeValue
=
'月竞分成'
;
that
.
shareRatio
=
res
.
data
.
shareRatio
;
}
}
});
},
//选择合同类型
bindTypeChange
:
function
bindTypeChange
(
event
)
{
// console.log(event)
var
i
=
event
.
detail
.
value
;
this
.
typeValue
=
this
.
typeOptions
[
i
];
switch
(
this
.
typeValue
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论