|
|
@@ -25,76 +25,107 @@
|
|
|
</el-tag>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <div class="eleModalBox">
|
|
|
- <fm-generate-form
|
|
|
- v-if="Object.keys(form?.formJson || {}).length !== 0"
|
|
|
- :data="jsonData"
|
|
|
- :value="form.valueJson"
|
|
|
- :edit="false"
|
|
|
- ref="generateForm"
|
|
|
- >
|
|
|
- <template v-slot:blank_adopzrdd="scope">
|
|
|
- <div v-for="(item, index) in scope.model.blank_adopzrdd" :key="index">
|
|
|
- <div class="blank_adopzrdd">
|
|
|
- <span>{{ index + 1 }}报销事项:</span>
|
|
|
- <el-input
|
|
|
- v-model="scope.model.blank_adopzrdd[index].remark"
|
|
|
- type="textarea"
|
|
|
- style="width: calc(100% - 80px)"
|
|
|
- ></el-input>
|
|
|
- </div>
|
|
|
- <div class="blank_adopzrdd">
|
|
|
- <span>金额:</span>
|
|
|
- <el-input
|
|
|
- v-model="scope.model.blank_adopzrdd[index].price"
|
|
|
- type="number"
|
|
|
- style="width: calc(100% - 80px)"
|
|
|
- ></el-input>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <!-- 客户名称 -->
|
|
|
- <template v-slot:eom_contact="scope">
|
|
|
- <div class="eom_contact">
|
|
|
- <el-input
|
|
|
- v-model="scope.model.eom_contact.name"
|
|
|
- style="width: 100%"
|
|
|
+ <div style="display: flex; height: 100%; justify-content: space-between">
|
|
|
+ <div class="form-box">
|
|
|
+ <fm-generate-form
|
|
|
+ v-if="Object.keys(form?.formJson || {}).length !== 0"
|
|
|
+ :data="jsonData"
|
|
|
+ :value="form.valueJson"
|
|
|
+ :edit="false"
|
|
|
+ ref="generateForm"
|
|
|
+ >
|
|
|
+ <template v-slot:blank_adopzrdd="scope">
|
|
|
+ <div v-for="(item, index) in scope.model.blank_adopzrdd" :key="index">
|
|
|
+ <div class="blank_adopzrdd">
|
|
|
+ <span>{{ index + 1 }}报销事项:</span>
|
|
|
+ <el-input
|
|
|
+ v-model="scope.model.blank_adopzrdd[index].remark"
|
|
|
+ type="textarea"
|
|
|
+ style="width: calc(100% - 80px)"
|
|
|
+ ></el-input>
|
|
|
+ </div>
|
|
|
+ <div class="blank_adopzrdd">
|
|
|
+ <span>金额:</span>
|
|
|
+ <el-input
|
|
|
+ v-model="scope.model.blank_adopzrdd[index].price"
|
|
|
+ type="number"
|
|
|
+ style="width: calc(100% - 80px)"
|
|
|
></el-input>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
+ <!-- 客户名称 -->
|
|
|
+ <template v-slot:eom_contact="scope">
|
|
|
+ <div class="eom_contact">
|
|
|
+ <el-input
|
|
|
+ v-model="scope.model.eom_contact.name"
|
|
|
+ style="width: 100%"
|
|
|
+ ></el-input>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
|
|
|
- <!-- 差旅 -->
|
|
|
- <template v-slot:blank_business_component="scope">
|
|
|
- <businessComponent ref="blank_business_component" id="blank_business_component" :generateForm="$refs.generateForm" :info="scope.model" :view="view"></businessComponent>
|
|
|
- </template>
|
|
|
+ <!-- 差旅 -->
|
|
|
+ <template v-slot:blank_business_component="scope">
|
|
|
+ <businessComponent ref="blank_business_component" id="blank_business_component" :generateForm="$refs.generateForm" :info="scope.model" :view="view"></businessComponent>
|
|
|
+ </template>
|
|
|
|
|
|
- <!-- 印章使用 -->
|
|
|
- <template v-slot:blank_use_seal="scope">
|
|
|
- <useSealComponent ref="blank_use_seal" id="blank_use_seal" :generateForm="$refs.generateForm" :info="scope.model" :view="view"></useSealComponent>
|
|
|
- </template>
|
|
|
+ <!-- 印章使用 -->
|
|
|
+ <template v-slot:blank_use_seal="scope">
|
|
|
+ <useSealComponent ref="blank_use_seal" id="blank_use_seal" :generateForm="$refs.generateForm" :info="scope.model" :view="view"></useSealComponent>
|
|
|
+ </template>
|
|
|
|
|
|
- <!-- 资质使用 -->
|
|
|
- <template v-slot:blank_use_qualification="scope">
|
|
|
- <useQualificationComponent ref="blank_use_qualification" id="blank_use_qualification" :generateForm="$refs.generateForm" :info="scope.model" :view="view"></useQualificationComponent>
|
|
|
- </template>
|
|
|
+ <!-- 资质使用 -->
|
|
|
+ <template v-slot:blank_use_qualification="scope">
|
|
|
+ <useQualificationComponent ref="blank_use_qualification" id="blank_use_qualification" :generateForm="$refs.generateForm" :info="scope.model" :view="view"></useQualificationComponent>
|
|
|
+ </template>
|
|
|
|
|
|
- <!-- 产品规格 -->
|
|
|
- <template v-slot:blank_product_specification="scope">
|
|
|
- <productSpecificationComponent ref="blank_product_specification" id="blank_product_specification" :generateForm="$refs.generateForm" :info="scope.model" :view="view"></productSpecificationComponent>
|
|
|
- </template>
|
|
|
+ <!-- 产品规格 -->
|
|
|
+ <template v-slot:blank_product_specification="scope">
|
|
|
+ <productSpecificationComponent ref="blank_product_specification" id="blank_product_specification" :generateForm="$refs.generateForm" :info="scope.model" :view="view"></productSpecificationComponent>
|
|
|
+ </template>
|
|
|
|
|
|
- <!-- 事件 -->
|
|
|
- <template v-slot:blank_event_component="scope">
|
|
|
- <eventComponent ref="blank_event_component" id="blank_event_component" :generateForm="$refs.generateForm" :info="scope.model" :view="view"></eventComponent>
|
|
|
- </template>
|
|
|
+ <!-- 事件 -->
|
|
|
+ <template v-slot:blank_event_component="scope">
|
|
|
+ <eventComponent ref="blank_event_component" id="blank_event_component" :generateForm="$refs.generateForm" :info="scope.model" :view="view"></eventComponent>
|
|
|
+ </template>
|
|
|
|
|
|
- <!-- 补发 -->
|
|
|
- <template v-slot:blank_reissue_component="scope">
|
|
|
- <reissueComponent ref="blank_reissue_component" id="blank_reissue_component" :generateForm="$refs.generateForm" :info="scope.model" :view="view"></reissueComponent>
|
|
|
- </template>
|
|
|
+ <!-- 补发 -->
|
|
|
+ <template v-slot:blank_reissue_component="scope">
|
|
|
+ <reissueComponent ref="blank_reissue_component" id="blank_reissue_component" :generateForm="$refs.generateForm" :info="scope.model" :view="view"></reissueComponent>
|
|
|
+ </template>
|
|
|
|
|
|
- </fm-generate-form>
|
|
|
+ </fm-generate-form>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ align-self: center;
|
|
|
+ display: flex;
|
|
|
+ color: #1890ff;
|
|
|
+ cursor: pointer;
|
|
|
+ width: 15px;
|
|
|
+ "
|
|
|
+ @click="() => (isRight = !isRight)"
|
|
|
+ >
|
|
|
+ <span
|
|
|
+ style="
|
|
|
+ align-self: center;
|
|
|
+
|
|
|
+ transform: scale(1.5);
|
|
|
+ "
|
|
|
+ :class="isRight ? 'el-icon-caret-left' : 'el-icon-caret-right'"
|
|
|
+ >
|
|
|
+ </span>
|
|
|
+ <span style="writing-mode: vertical-rl">选择流程</span>
|
|
|
+ </div>
|
|
|
+ <div style="flex: 1" v-if="isRight">
|
|
|
+ <Detail
|
|
|
+ :view="true"
|
|
|
+ :id="form.id"
|
|
|
+ ref="formDetailDialogRef"
|
|
|
+ ></Detail>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+
|
|
|
<outgoingDetails
|
|
|
v-if="outgoingData.id"
|
|
|
:business-id="outgoingData.id"
|
|
|
@@ -116,10 +147,11 @@
|
|
|
import productSpecificationComponent from '@/BIZComponents/processSubmitDialog/components/productSpecificationComponent.vue';
|
|
|
import eventComponent from '@/BIZComponents/processSubmitDialog/components/eventComponent.vue';
|
|
|
import reissueComponent from '@/BIZComponents/processSubmitDialog/components/reissueComponent.vue';
|
|
|
+ import Detail from '@/views/bpm/processInstance/detailNew.vue';
|
|
|
|
|
|
export default {
|
|
|
name: 'formDetailDialog',
|
|
|
- components: {outgoingDetails, businessComponent, useSealComponent, useQualificationComponent, productSpecificationComponent, eventComponent, reissueComponent},
|
|
|
+ components: {outgoingDetails, businessComponent, useSealComponent, useQualificationComponent, productSpecificationComponent, eventComponent, reissueComponent, Detail},
|
|
|
props: {
|
|
|
formDetailDialogFlag: {
|
|
|
type: Boolean,
|
|
|
@@ -135,12 +167,21 @@
|
|
|
return {
|
|
|
form: {},
|
|
|
jsonData: {},
|
|
|
- outgoingData:{}
|
|
|
+ outgoingData:{},
|
|
|
+ isRight: false,
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
+ // modelWidth() {
|
|
|
+ // return (this.outgoingData?.id || this.jsonData.config?.platform && this.jsonData.config.platform === 'pc') ? '80%' : '400px';
|
|
|
+ // }
|
|
|
modelWidth() {
|
|
|
- return (this.outgoingData?.id || this.jsonData.config?.platform && this.jsonData.config.platform === 'pc') ? '80%' : '400px';
|
|
|
+ let width = this.jsonData.config?.platform && this.jsonData.config.platform === 'pc' ? 1100 : 450;
|
|
|
+ if(this.isRight) {
|
|
|
+ return width + 750 + 'px'
|
|
|
+ } else {
|
|
|
+ return width + 'px'
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -189,6 +230,13 @@
|
|
|
overflow: auto;
|
|
|
}
|
|
|
|
|
|
+ .form-box {
|
|
|
+ // max-height: 500px;
|
|
|
+ min-width: 400px;
|
|
|
+ overflow: auto;
|
|
|
+ background: #4298fd0d;
|
|
|
+ }
|
|
|
+
|
|
|
::v-deep .el-dialog__header {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|