Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
39830676
Commit
39830676
authored
Aug 07, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改合同
parent
2d03a983
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
119 additions
and
87 deletions
+119
-87
ElectronicContract.vue
src/components/Contract/ElectronicContract.vue
+24
-44
TravelContract.vue
src/components/Contract/TravelContract.vue
+17
-6
groupTourOrder.vue
src/components/SalesModule/groupTourOrder.vue
+1
-1
ElectronicAudit.vue
src/components/administrative/ElectronicAudit.vue
+71
-35
clientConfirm.vue
src/components/clientConfirm.vue
+1
-1
index.js
src/plug/index.js
+5
-0
No files found.
src/components/Contract/ElectronicContract.vue
View file @
39830676
...
...
@@ -321,8 +321,8 @@
/*弹出层*/
.qrCodeDiv
{
width
:
2
00
px
;
height
:
2
3
5px
;
width
:
2
36
px
;
height
:
2
7
5px
;
background-color
:
#fff
;
text-align
:
center
;
border
:
1px
solid
#d1d1d1
;
...
...
@@ -355,7 +355,7 @@
</
style
>
<
template
>
<div
class=
"ECMain clearfix"
>
<div
class=
"ECMain clearfix"
v-loading=
"pdfLoading"
>
<div
class=
"EC_left"
>
<ul>
<li
:class=
"
{'CMcked':cked==1}" @click="cked=1">使用说明
</li>
...
...
@@ -1170,9 +1170,9 @@
</p>
</div>
<div
class=
"EC_floatdiv"
>
<input
type=
"button"
class=
"normalBtn"
@
click=
"getinvalid()"
value=
"作废"
/>
<input
type=
"button"
class=
"normalBtn"
@
click=
"isShowFade=true"
value=
"客户签字"
/>
<input
type=
"button"
class=
"normalBtn"
v
alue=
"下载"
@
click=
"toContractPDF('测试一下'
)"
/>
<input
type=
"button"
class=
"normalBtn"
v-if=
"dataList.status==1"
@
click=
"getinvalid()"
value=
"作废"
/>
<input
type=
"button"
class=
"normalBtn"
@
click=
"isShowFade=true
,GetQrCode()
"
value=
"客户签字"
/>
<input
type=
"button"
class=
"normalBtn"
v
-if=
"dataList.companySignature!=''"
value=
"下载"
@
click=
"toContractPDF(dataList.contractNum
)"
/>
</div>
</div>
<div
class=
"fade"
v-show=
"isShowFade"
></div>
...
...
@@ -1181,13 +1181,12 @@
<div
id=
"qrcode"
style=
"margin:25px;"
ref=
"qrcode"
>
<img
class=
"WeiXinShare"
:src=
"'data:image/png;base64,'+QRCodeStr"
/>
</div>
<i
class=
"iconfont icon-cha Ec_cha"
></i>
<i
class=
"iconfont icon-cha Ec_cha"
@
click=
"isShowFade=false"
></i>
</div>
</div>
</template>
<
script
>
import
moment
from
'moment'
// import QRCode from 'qrcodejs2' // 引入qrcode
export
default
{
data
()
{
return
{
...
...
@@ -1202,11 +1201,12 @@
dataList
:
[],
isShowFade
:
false
,
QRCodeStr
:
""
,
pdfLoading
:
false
};
},
methods
:
{
// 生成
pdf
// 生成
二维码
GetQrCode
:
function
()
{
let
urlObj
=
this
.
domainManager
();
let
msg
=
{
...
...
@@ -1240,6 +1240,7 @@
TCID
:
this
.
$route
.
query
.
TCID
,
orderID
:
this
.
$route
.
query
.
orderID
,
};
this
.
pdfLoading
=
true
;
this
.
$http
({
headers
:
{
'Content-Type'
:
'application/json'
...
...
@@ -1258,36 +1259,19 @@
'.pdf&&fPath='
+
res
.
data
.
data
);
a
.
click
();
}
else
{
this
.
$message
.
e
rror
(
'PDF获取失败'
);
this
.
E
rror
(
'PDF获取失败'
);
}
this
.
pdfLoading
=
false
}).
catch
(
err
=>
{
})
},
// qrcode () {
// let qrcode = new QRCode('qrcode', {
// width: 150,
// height: 150,
// // text: "http://test.erp.viitto.com/#/clientConfirm?"+'TCID='+this.msg.TCID+'&'+'orderID='+this.msg.orderID, // 二维码地址
// // text: "http://www.test.com/#/clientConfirm?"+'TCID='+this.msg.TCID+'&'+'orderID='+this.msg.orderID, // 二维码地址
// // text: "192.168.0.119:8080/#/clientConfirm?"+'TCID='+this.msg.TCID+'&'+'orderID='+this.msg.orderID, // 二维码地址
// //text: "https://baidu.com", // 二维码地址
// text: "http://192.168.0.119:8080/#/clientConfirm?"+'TCID='+this.msg.TCID+'&'+'orderID='+this.msg.orderID, // 二维码地址
// colorDark : "#000",
// colorLight : "#fff",
// })
// },
// disQrCode(){
// this.isShowFade=false;
// this.$refs.qrcode.innerHTML='';
// },
//获取数据
getList
()
{
this
.
apiJavaPost
(
"/api/contract/getContractInfo"
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
dataList
=
res
.
data
.
data
;
console
.
log
(
this
.
dataList
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
...
...
@@ -1334,23 +1318,20 @@
//作废
getinvalid
()
{
this
.
$confirm
(
'是否作废?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
CtObj
.
status
=
0
;
this
.
apiJavaPost
(
"/api/contract/dosaveOrUpdate"
,
this
.
CtObj
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
this
.
dataList
.
status
=
0
;
this
.
apiJavaPost
(
"/api/contract/dosaveOrUpdate"
,
this
.
dataList
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消删除'
});
this
.
$message
.
info
(
'取消删除'
);
});
}
},
...
...
@@ -1358,7 +1339,6 @@
this
.
msg
.
TCID
=
this
.
$route
.
query
.
TCID
;
this
.
msg
.
orderID
=
this
.
$route
.
query
.
orderID
;
this
.
getList
();
this
.
GetQrCode
();
}
};
...
...
src/components/Contract/TravelContract.vue
View file @
39830676
...
...
@@ -751,7 +751,7 @@
<th>
手机号
</th>
</tr>
<tr
v-for=
"item in guestList"
>
<td>
{{
item
.
name
}}
</td>
<td>
{{
item
.
surName
+
''
+
item
.
name
}}
</td>
<td>
{{
item
.
nationalityName
}}
</td>
<td></td>
<td>
{{
item
.
sex
==
1
?
'男'
:
'女'
}}
</td>
...
...
@@ -821,9 +821,9 @@
</div>
</el-form>
<div>
<input
type=
"button"
class=
"normalBtn"
style=
"margin:40px 0 30px 60px;
"
value=
"提交审核"
/>
<input
type=
"button"
v-if=
"CtObj.status==1&&CtObj.auditContract==0"
class=
"normalBtn"
style=
"margin:40px 0 30px 60px;"
@
click=
"sendAudit()
"
value=
"提交审核"
/>
<input
type=
"button"
class=
"normalBtn"
@
click=
"submitForm('CtObj')"
value=
"保存"
/>
<input
type=
"button"
class=
"normalBtn"
@
click=
"goUrl()"
value=
"预览"
>
<input
type=
"button"
class=
"normalBtn"
v-if=
"CtObj.status==1"
@
click=
"goUrl()"
value=
"预览"
>
<input
type=
"button"
class=
"normalBtn"
v-if=
"CtObj.status==1"
@
click=
"getinvalid()"
value=
"作废"
>
</div>
</div>
...
...
@@ -1047,7 +1047,6 @@
//获取数据
getList
(){
this
.
apiJavaPost
(
"/api/contract/getContractInfo"
,
this
.
msg
,
res
=>
{
console
.
log
(
res
,
'resss'
);
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
CtObj
=
res
.
data
.
data
;
this
.
guestList
=
res
.
data
.
data
.
guestList
;
...
...
@@ -1055,7 +1054,6 @@
this
.
CtObj
.
businessCertificate
=
'0000000'
;
this
.
CtObj
.
tcid
=
this
.
$route
.
query
.
TCID
;
this
.
CtObj
.
orderId
=
this
.
$route
.
query
.
orderID
;
console
.
log
(
this
.
CtObj
,
'ctobjjjjjjj'
);
if
(
this
.
CtObj
.
clientCountryid
>
0
){
this
.
GetSubAreaList
(
this
.
CtObj
.
clientCountryid
,
1
,
1
);
}
...
...
@@ -1191,6 +1189,7 @@
console
.
log
(
res
,
'ressss'
);
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
getList
();
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
...
...
@@ -1219,6 +1218,7 @@
console
.
log
(
res
,
'ressss'
);
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
getList
();
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
...
...
@@ -1240,7 +1240,18 @@
return
false
;
}
});
},
},
sendAudit
(){
this
.
CtObj
.
auditContract
=
1
;
this
.
apiJavaPost
(
"/api/contract/dosaveOrUpdate"
,
this
.
CtObj
,
res
=>
{
console
.
log
(
res
,
'ressss'
);
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
}
},
mounted
()
{
this
.
GetCounrty
();
...
...
src/components/SalesModule/groupTourOrder.vue
View file @
39830676
...
...
@@ -1819,7 +1819,7 @@
</span>
</div>
<span
class=
"GO_Contract"
@
click=
"goContract(item)"
style=
"display:none;"
>
领取合同
</span>
<span
class=
"GO_Contract"
@
click=
"goContract(item)"
>
领取合同
</span>
</td>
</tr>
<tr>
...
...
src/components/administrative/ElectronicAudit.vue
View file @
39830676
...
...
@@ -22,16 +22,12 @@
<el-input
:placeholder=
"$t('system.ph_in')"
v-model=
"msg.tcid"
@
keyup
.
native
.
enter=
"getList"
class=
"w210"
></el-input>
</li>
<li>
<el-date-picker
@
change=
"dateChange"
size=
"small"
value-format=
"yyyy-MM-dd"
v-model=
"DateList"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"返回日期"
>
</el-date-picker>
<label>
日期
</label>
<el-date-picker
v-model=
'msg.startDate'
class=
'w135'
value-format=
"yyyy-MM-dd"
type=
"date"
:picker-options=
"pickerBeginDateBefore"
></el-date-picker>
-
<el-date-picker
v-model=
'msg.returnDate'
class=
'w135'
value-format=
"yyyy-MM-dd"
type=
"date"
:picker-options=
"pickerBeginDateAfter"
></el-date-picker>
</li>
<li>
<input
type=
"button"
class=
"hollowFixedBtn"
value=
"查询"
@
click=
"getList()"
/>
...
...
@@ -49,33 +45,38 @@
<th>
返回日期
</th>
<th
width=
"200"
>
操作
</th>
</tr>
<tr>
<td>
123
</td>
<td>
456
</td>
<td>
123123213
</td>
<td>
123
</td>
<td>
2019-08-06
</td>
<td>
2019-08-13
</td>
<tr
v-for=
"item in dataList"
>
<td>
{{
item
.
contractNum
}}
</td>
<td>
{{
item
.
orderId
}}
</td>
<td>
{{
item
.
tcid
}}
</td>
<td>
{{
item
.
productName
}}
</td>
<td>
{{
getDate
(
item
.
startDate
)
}}
</td>
<td>
{{
getDate
(
item
.
returnDate
)
}}
</td>
<td>
<el-row>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"审核通过"
placement=
"top-start"
>
<el-button
type=
"primary"
icon=
"iconfont icon-shenpi"
circle
></el-button>
<el-button
type=
"primary"
icon=
"iconfont icon-shenpi"
@
click=
"AuditElec(2)"
circle
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"驳回"
placement=
"top-start"
>
<el-button
type=
"danger"
icon=
"iconfont icon-shenhebohui"
@
click=
"AuditElec(0)"
circle
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"查看"
placement=
"top-start"
>
<el-button
type=
"danger"
icon=
"iconfont icon-chakan"
@
click=
"goToDetail()"
circle
></el-button>
<el-button
type=
"danger"
icon=
"iconfont icon-chakan"
@
click=
"goToDetail(
item
)"
circle
></el-button>
</el-tooltip>
</el-row>
</td>
</tr>
</table>
<!--
<div
class=
"noData"
v-show=
"noData"
>
{{
$t
(
'system.content_noData'
)
}}
</div>
-->
<div
class=
"noData"
v-show=
"dataList.length
<1
"
>
<i
class=
"iconfont icon-kong"
style=
"font-size:100px;"
></i>
<p>
{{
$t
(
"active.ld_noData"
)
}}
</p>
</div>
</div>
</div>
</
template
>
<
script
>
import
moment
from
'moment'
export
default
{
data
()
{
return
{
...
...
@@ -87,12 +88,24 @@ export default {
startDate
:
''
,
returnDate
:
''
},
DateList
:[],
// pickerOptions0: {
// disabledDate(time) {
// return time.getTime()
<
Date
.
now
()
-
8.64e7
;
// }
// },
dataList
:[],
loading
:
false
,
pickerBeginDateBefore
:
{
disabledDate
:
time
=>
{
if
(
this
.
msg
.
returnDate
==
null
)
{
return
false
;
}
else
{
let
endTime
=
new
Date
(
this
.
msg
.
returnDate
)
return
endTime
.
getTime
()
<
time
.
getTime
()
}
}
},
pickerBeginDateAfter
:
{
disabledDate
:
time
=>
{
let
startTime
=
new
Date
(
this
.
msg
.
startDate
)
return
startTime
.
getTime
()
>=
time
.
getTime
()
}
}
};
},
methods
:
{
...
...
@@ -103,23 +116,46 @@ export default {
}
},
//跳转至详情
goToDetail
(){
goToDetail
(
item
){
this
.
$router
.
push
({
name
:
'ElectronicContract'
,
query
:
{
// TCID: this.$route.query.TCID,
// orderID: this.$route.query.orderID,
TCID
:
5560
,
orderID
:
28807
,
TCID
:
item
.
tcid
,
orderID
:
item
.
orderId
,
blank
:
"y"
,
}
});
},
getList
()
{
this
.
loading
=
true
;
this
.
apiJavaPost
(
"/api/contract/auditContract"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
console
.
log
(
res
,
'ressss'
);
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
dataList
=
res
.
data
.
data
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
},
//审核通过或者驳回
AuditElec
(
type
){
let
msg
=
this
.
dataList
[
0
];
msg
.
auditContract
=
type
;
this
.
apiJavaPost
(
"/api/contract/dosaveOrUpdate"
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
getList
();
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
},
getDate
(
date
)
{
return
moment
(
date
).
format
(
"YYYY-MM-DD"
);
},
},
mounted
()
{
this
.
getList
();
}
...
...
src/components/clientConfirm.vue
View file @
39830676
...
...
@@ -784,7 +784,7 @@
methods
:
{
//获取数据
getList
(){
this
.
apiJavaPost
(
"/api/contract/getContractInfo"
,
this
.
msg
,
res
=>
{
this
.
apiJavaPost
(
"/api/contract/getContractInfo
ForCode
"
,
this
.
msg
,
res
=>
{
console
.
log
(
res
,
'resss'
);
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
dataList
=
res
.
data
.
data
;
...
...
src/plug/index.js
View file @
39830676
...
...
@@ -121,6 +121,7 @@ export default {
domainUrl
=
"http://192.168.2.214:8082"
;
domainUrl
=
"http://192.168.2.65:8025"
;
domainUrl
=
"http://192.168.2.16:8083"
;
if
(
locationName
.
indexOf
(
'oytour'
)
!==
-
1
)
{
domainUrl
=
"http://reborn.oytour.com"
;
}
else
if
(
locationName
.
indexOf
(
'viitto'
)
!==
-
1
)
{
...
...
@@ -401,6 +402,10 @@ export default {
})
}
else
if
(
res
.
resultCode
==
10005
)
{
this
.
$router
.
go
(
-
1
)
}
else
if
(
res
.
data
.
data
.
isJumpTwoCode
==
1
){
this
.
$router
.
push
({
path
:
'/clientConfirm'
})
}
else
{
successCall
(
res
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment