|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <page-meta root-font-size="system"/>
|
|
|
+ <page-meta root-font-size="system" />
|
|
|
<view class="process_detail_container">
|
|
|
<uni-card>
|
|
|
<view class="main_container">
|
|
|
@@ -19,14 +19,20 @@
|
|
|
v-model="elem.defaultValue" type="text"></uni-easyinput>
|
|
|
<!-- 审批签字板 -->
|
|
|
<view v-else-if="'13' == elem.type">
|
|
|
- <button v-if="elem.defaultValue == ''" type="primary" @click="handleSignature(index)">签名</button>
|
|
|
+ <button v-if="elem.defaultValue == ''" type="primary"
|
|
|
+ @click="handleSignature(index)">签名</button>
|
|
|
<view v-else class="signature_img">
|
|
|
- <img style="width: 100%;" mode="widthFix" @click="handleSignature(index)" :src="config.baseUrlPre + elem.sealImgPath" :alt="elem.elementName + '签名'" />
|
|
|
+ <img style="width: 100%;" mode="widthFix" @click="handleSignature(index)"
|
|
|
+ :src="config.baseUrlPre + elem.sealImgPath"
|
|
|
+ :alt="elem.elementName + '签名'" />
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-else-if="typeof elem.defaultValue === 'string' && elem.defaultValue.substring(0, 7) == '/shares'" class="signature_img">
|
|
|
- <img style="width: 100%;" mode="widthFix" :src="config.baseUrlPre + elem.defaultValue" />
|
|
|
+ <view
|
|
|
+ v-else-if="typeof elem.defaultValue === 'string' && elem.defaultValue.substring(0, 7) == '/shares'"
|
|
|
+ class="signature_img">
|
|
|
+ <img style="width: 100%;" mode="widthFix"
|
|
|
+ :src="config.baseUrlPre + elem.defaultValue" />
|
|
|
</view>
|
|
|
<text class="element_value" v-else>{{ elem.defaultValue }}</text>
|
|
|
</view>
|
|
|
@@ -77,10 +83,10 @@
|
|
|
<uni-section titleFontSize="1.3rem" title="流转过程" type="line"></uni-section>
|
|
|
<up-steps :current="stepActive" activeColor="#18bc37" inactiveColor="#2979ff" direction="column">
|
|
|
<view v-for="(step, index) in options">
|
|
|
- <up-steps-item :contentClass="'redcontent'" v-if="step.state == 3" :title="step.title + ' 退回'" :desc="step.desc"
|
|
|
- :key="index" error></up-steps-item>
|
|
|
- <up-steps-item :contentClass="'redcontent'" v-else-if="step.state == 0" :title="step.title + ' 撤销'" :desc="step.desc"
|
|
|
- :key="index" error></up-steps-item>
|
|
|
+ <up-steps-item :contentClass="'redcontent'" v-if="step.state == 3"
|
|
|
+ :title="step.title + ' 退回'" :desc="step.desc" :key="index" error></up-steps-item>
|
|
|
+ <up-steps-item :contentClass="'redcontent'" v-else-if="step.state == 0"
|
|
|
+ :title="step.title + ' 撤销'" :desc="step.desc" :key="index" error></up-steps-item>
|
|
|
<up-steps-item v-else-if="index == stepActive" :title="step.title" :desc="step.desc"
|
|
|
:key="index">
|
|
|
<template #icon>
|
|
|
@@ -107,7 +113,8 @@
|
|
|
</view>
|
|
|
<view v-if="processInfo.tinsId" class="approve_button">
|
|
|
<uni-card spacing="0" padding="0">
|
|
|
- <button :disabled="!button_state" :loading="!button_state" type="primary" @click="handleSubmitProcess('1')">通过</button>
|
|
|
+ <button :disabled="!button_state" :loading="!button_state" type="primary"
|
|
|
+ @click="handleSubmitProcess('1')">通过</button>
|
|
|
</uni-card>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -116,10 +123,12 @@
|
|
|
<uni-card spacing="0" padding="0" :is-shadow="false" :border="false">
|
|
|
<uni-row>
|
|
|
<uni-col :span="11">
|
|
|
- <button :disabled="!button_state" :loading="!button_state" type="warn" @click="handleSubmitProcess('0')">退回上一级</button>
|
|
|
+ <button :disabled="!button_state" :loading="!button_state" type="warn"
|
|
|
+ @click="handleSubmitProcess('0')">退回上一级</button>
|
|
|
</uni-col>
|
|
|
<uni-col :span="11" :offset="2">
|
|
|
- <button :disabled="!button_state" :loading="!button_state" type="warn" @click="handleSubmitProcess('2')">退回发起人</button>
|
|
|
+ <button :disabled="!button_state" :loading="!button_state" type="warn"
|
|
|
+ @click="handleSubmitProcess('2')">退回发起人</button>
|
|
|
</uni-col>
|
|
|
</uni-row>
|
|
|
</uni-card>
|
|
|
@@ -136,7 +145,8 @@
|
|
|
</view>
|
|
|
<view class="cancel_button_container">
|
|
|
<uni-card spacing="0" padding="0">
|
|
|
- <button :disabled="!button_state" :loading="!button_state" type="warn" @click="handleCancelProcess">撤销</button>
|
|
|
+ <button :disabled="!button_state" :loading="!button_state" type="warn"
|
|
|
+ @click="handleCancelProcess">撤销</button>
|
|
|
</uni-card>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -145,7 +155,8 @@
|
|
|
<uni-popup ref="signaturePopup" @maskClick="closeSignaturePopup">
|
|
|
<view class="signature_container" :class="isLandscape ? ' signature_container_landscape' : ''">
|
|
|
<view class="signature_content">
|
|
|
- <l-signature ref="signatureRef" v-if="signaturePopupShow" :landscape="isLandscape" :penSize="8" :minLineWidth="4" :maxLineWidth="12" :openSmooth="true" :preferToDataURL="true"
|
|
|
+ <l-signature ref="signatureRef" v-if="signaturePopupShow" :landscape="isLandscape" :penSize="8"
|
|
|
+ :minLineWidth="4" :maxLineWidth="12" :openSmooth="true" :preferToDataURL="true"
|
|
|
backgroundColor="#ffffff" penColor="black"></l-signature>
|
|
|
</view>
|
|
|
<view class="signature_button_container">
|
|
|
@@ -304,7 +315,7 @@ function initSignature() {
|
|
|
}, 100)
|
|
|
}
|
|
|
function onclickSignatureButton(event) {
|
|
|
- console.log('onclickSignatureButton: ',event);
|
|
|
+ console.log('onclickSignatureButton: ', event);
|
|
|
switch (event) {
|
|
|
case 'undo':
|
|
|
signatureRef.value.undo()
|
|
|
@@ -324,13 +335,13 @@ function onclickSignatureButton(event) {
|
|
|
if (res.tempFilePath.substring(0, 'data:image/png;base64,'.length) == 'data:image/png;base64,') {
|
|
|
const _fileData = res.tempFilePath
|
|
|
uploadSignatureBoardImg(userStore.user.useId, _fileData, formElements.value[signatureItemIndex.value].tableField)
|
|
|
- .then(({returnParams}) => {
|
|
|
- formElements.value[signatureItemIndex.value].defaultValue = returnParams.sealInsID
|
|
|
- formElements.value[signatureItemIndex.value].sealImgPath = returnParams.path
|
|
|
- signatureItemIndex.value = -1
|
|
|
- signaturePopupShow.value = false
|
|
|
- signaturePopup.value.close()
|
|
|
- })
|
|
|
+ .then(({ returnParams }) => {
|
|
|
+ formElements.value[signatureItemIndex.value].defaultValue = returnParams.sealInsID
|
|
|
+ formElements.value[signatureItemIndex.value].sealImgPath = returnParams.path
|
|
|
+ signatureItemIndex.value = -1
|
|
|
+ signaturePopupShow.value = false
|
|
|
+ signaturePopup.value.close()
|
|
|
+ })
|
|
|
} else {
|
|
|
// 转 base64
|
|
|
wx.getFileSystemManager().readFile({
|
|
|
@@ -339,13 +350,13 @@ function onclickSignatureButton(event) {
|
|
|
success: fileData => {
|
|
|
const _fileData = 'data:image/png;base64,' + fileData.data
|
|
|
uploadSignatureBoardImg(userStore.user.useId, _fileData, formElements.value[signatureItemIndex.value].tableField)
|
|
|
- .then(({returnParams}) => {
|
|
|
- formElements.value[signatureItemIndex.value].defaultValue = returnParams.sealInsID
|
|
|
- formElements.value[signatureItemIndex.value].sealImgPath = returnParams.path
|
|
|
- signatureItemIndex.value = -1
|
|
|
- signaturePopupShow.value = false
|
|
|
- signaturePopup.value.close()
|
|
|
- })
|
|
|
+ .then(({ returnParams }) => {
|
|
|
+ formElements.value[signatureItemIndex.value].defaultValue = returnParams.sealInsID
|
|
|
+ formElements.value[signatureItemIndex.value].sealImgPath = returnParams.path
|
|
|
+ signatureItemIndex.value = -1
|
|
|
+ signaturePopupShow.value = false
|
|
|
+ signaturePopup.value.close()
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
@@ -497,11 +508,14 @@ function cancelProcess() {
|
|
|
|
|
|
::v-deep .uni-forms {
|
|
|
.uni-forms-item__label {
|
|
|
- font-size: 1rem !important;
|
|
|
+ font-size: calc(1rem + 0px) !important;
|
|
|
+ line-height: calc(1rem + 0px) !important;
|
|
|
font-weight: 600;
|
|
|
}
|
|
|
+
|
|
|
.uni-forms-item__content {
|
|
|
font-size: calc(14px + .5*(1rem - 16px)) !important;
|
|
|
+
|
|
|
.uni-easyinput__content-input {
|
|
|
font-size: calc(14px + .5*(1rem - 16px)) !important;
|
|
|
}
|
|
|
@@ -540,18 +554,21 @@ function cancelProcess() {
|
|
|
|
|
|
::v-deep .flow_step_container {
|
|
|
min-height: 200px;
|
|
|
-
|
|
|
+
|
|
|
.u-steps {
|
|
|
.u-steps-item {
|
|
|
padding-bottom: 11px;
|
|
|
+
|
|
|
.u-text__value--tips {
|
|
|
font-size: calc(12px + .5*(1rem - 16px)) !important;
|
|
|
}
|
|
|
+
|
|
|
.redcontent {
|
|
|
.u-text__value--content {
|
|
|
color: #ff4500;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.active_step_circle {
|
|
|
width: 20px;
|
|
|
height: 20px;
|
|
|
@@ -603,9 +620,11 @@ function cancelProcess() {
|
|
|
bottom: 10px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
::v-deep button {
|
|
|
font-size: calc(18px + .5*(1rem - 16px));
|
|
|
}
|
|
|
+
|
|
|
.reject_button {
|
|
|
::v-deep .uni-card {
|
|
|
background-color: #f5f5f5;
|
|
|
@@ -615,6 +634,7 @@ function cancelProcess() {
|
|
|
.remark_container {
|
|
|
.remark_content {
|
|
|
margin-bottom: 10px;
|
|
|
+
|
|
|
::v-deep .uni-easyinput {
|
|
|
.uni-easyinput__content-textarea {
|
|
|
font-size: calc(14px + .5*(1rem - 16px)) !important;
|