Эх сурвалжийг харах

fix:发票管理导出添加账套,页面修改样式

ly 11 сар өмнө
parent
commit
b53e134ad3

+ 14 - 7
src/views/business/invoice/form.vue

@@ -236,16 +236,20 @@
 
 
                     </el-row>
                     </el-row>
                 </el-form>
                 </el-form>
-              <el-table :data="tableData" style="width: 800px; display: flex; margin: 0 auto auto auto;">
-                <el-table-column type="index" width="50" />
-                <el-table-column prop="createTime" label="操作时间" width="180" />
-                <el-table-column prop="nickName" label="操作人" width="180" />
-                <el-table-column prop="invoiceStatus" label="操作内容" >
+              <div style="margin: 10px 0px 10px 0px;" v-if="form.id !== null ||(form.status!=null &&form.status !== 0)">
+                <span style="font-size: 14px;">审核履历</span>
+
+              </div>
+              <el-table v-if="form.id !== null" :data="tableData" :table-layout="tableLayout">
+                <el-table-column type="index" label="序号"  align="center"/>
+                <el-table-column prop="createTime" label="操作时间" align="center" />
+                <el-table-column prop="nickName" label="操作人" align="center" />
+                <el-table-column prop="invoiceStatus" label="操作内容" align="center" >
                   <template #default="scope">
                   <template #default="scope">
                     {{statusFormat(scope.row.invoiceStatus)}}
                     {{statusFormat(scope.row.invoiceStatus)}}
                   </template>
                   </template>
                 </el-table-column>
                 </el-table-column>
-                <el-table-column prop="remark" label="说明" />
+                <el-table-column prop="remark" label="说明" align="center"/>
               </el-table>
               </el-table>
             </div>
             </div>
         </el-drawer>
         </el-drawer>
@@ -292,7 +296,7 @@
             <el-col :span="12">
             <el-col :span="12">
               <el-form-item label="反审核原因" prop="uauditReason">
               <el-form-item label="反审核原因" prop="uauditReason">
                 <el-input :autosize="{ minRows: 2, maxRows: 4 }" type="textarea" v-model="form.uauditReason"
                 <el-input :autosize="{ minRows: 2, maxRows: 4 }" type="textarea" v-model="form.uauditReason"
-                          placeholder="请输入退回原因" size="small" />
+                          placeholder="请输入反审核原因" size="small" />
               </el-form-item>
               </el-form-item>
             </el-col>
             </el-col>
           </el-row>
           </el-row>
@@ -381,6 +385,7 @@
     import dragUpload from "@/components/dragUpload"
     import dragUpload from "@/components/dragUpload"
     import useUserStore from "@/store/modules/user";
     import useUserStore from "@/store/modules/user";
     import { uploadFile } from "@/api/tool/file";
     import { uploadFile } from "@/api/tool/file";
+
     const { proxy } = getCurrentInstance()
     const { proxy } = getCurrentInstance()
     const baseUrl = import.meta.env.VITE_APP_BASE_API;
     const baseUrl = import.meta.env.VITE_APP_BASE_API;
     /** 父组件传参 */
     /** 父组件传参 */
@@ -408,6 +413,7 @@
     const fileList = ref([]);
     const fileList = ref([]);
     const isFullscreen = ref(false)
     const isFullscreen = ref(false)
     const tableData = ref([]);
     const tableData = ref([]);
+    const tableLayout = ref('fixed')
     const webHost = import.meta.env.VITE_APP_BASE_API
     const webHost = import.meta.env.VITE_APP_BASE_API
     const data = reactive({
     const data = reactive({
         form: {},
         form: {},
@@ -444,6 +450,7 @@
     function open(id) {
     function open(id) {
         reset();
         reset();
         visible.value = true;
         visible.value = true;
+        tableData.value = [];
         if (id) {
         if (id) {
             getInvoice(id).then(response => {
             getInvoice(id).then(response => {
                 form.value = response.data;
                 form.value = response.data;