123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <template>
- <el-dialog
- v-loading="loading"
- :title="title"
- :center="true"
- align="left"
- top="10vh"
- width="1040px"
- :close-on-click-modal="false"
- :visible.sync="showModelThis"
- element-loading-text="拼命加载中"
- element-loading-spinner="el-icon-loading"
- element-loading-background="rgba(0, 0, 0, 0.8)"
- @close="closeModel"
- >
- <el-card style="margin-top: -15px;height:685px">
- <stepBar
- :id="modelId"
- :payNo="payNo"
- @refresh="searchList"
- :dstatus="dstatus"
- ></stepBar>
- <el-collapse v-model="activeNames" accordion>
- <el-collapse-item title="对账详情" name="1">
- <add-view
- style="margin:0 0 -28px 0;"
- :id="id"
- :isDetail="isDetail"
- :newTime="newTime"
- :payNo="payNo"
- @refreshAll="refreshAll"
- ></add-view>
- </el-collapse-item>
- <el-collapse-item title="业务审核" name="2">
- <exam-view
- :id="id"
- :newTime="newTime"
- :payNo="payNo"
- @refreshAll="refreshAll"
- ></exam-view>
- </el-collapse-item>
- </el-collapse>
- </el-card>
- </el-dialog>
- </template>
- <script>
- import addView from "@/views/purchase/orderRecord/components/addView";
- import examView from "@/views/purchase/orderRecord/components/examView";
- import stepBar from "@/views/purchase/orderRecord/components/stepBar";
- export default {
- name: "orderRecord",
- props: ["showModel", "id", "isDetail", "dstatus", "payNo","companyNo"],
- components: {
- addView,
- examView,
- stepBar,
- },
- data() {
- return {
- activeNames: "2",
- newTime: 0,
- activeName: "-1",
- loading: false,
- title: "业务审核",
- showModelThis: this.showModel,
- };
- },
- watch: {
- showModel: function (val) {
- this.showModelThis = val;
- if (val) {
- this.initForm();
- }
- },
- showModelThis(val) {
- if (!val) {
- this.$emit("cancel");
- }
- },
- },
- methods: {
- closeModel() {
- console.log("closeModel!!");
- },
- refreshAll() {
- this.showModelThis = false;
- this.$emit("refresh");
- },
- async initForm() {
- console.log(this.id);
- // this.active = this.dstatusOptions.findIndex((v) => v.id === this.dstatus);
- this.changea();
- // this.setActiveName();
- },
- changea() {
- this.newTime = new Date().valueOf();
- },
- },
- };
- </script>
- <style lang="scss" scoped>
- .orderRecord {
- .setWidth {
- width: 100% !important;
- // display: flex;
- // display: block !important;
- // .el-input__inner {
- // display: flex;
- // width: 1000px !important;
- // display: block !important;
- // }
- }
- }
- </style>
|