Browse Source

需求优化

chen 1 week ago
parent
commit
ad9a76f03a

+ 2 - 0
src/utils/dict.js

@@ -63,6 +63,8 @@ export const DICT_TYPE = {
   INVOICE_CONTRACT_TYPE: 'invoice_contract_type', // 发票合同类型
   INVOICE_CONTRACT_STATUS: 'invoice_contract_status', // 发票合同状态
 
+  // ==========  export_contract 模块 ==========
+  C_AUARTT:'c_auartt',
 }
 
 /**

+ 5 - 0
src/views/contract/client/ClientForm.vue

@@ -100,6 +100,11 @@
               <el-input v-model="formData.bahne" placeholder="请输入销售组" />
             </el-form-item>
           </el-col>
+          <el-col :span="12" >
+            <el-form-item label="信用期" prop="zmonth">
+              <el-input v-model="formData.zmonth" placeholder="请输入信用期" />
+            </el-form-item>
+          </el-col>
         </el-row>
       </el-form>
               <div slot="footer" class="dialog-footer">

+ 1 - 0
src/views/contract/contractTemplate/TemplateForm.vue

@@ -198,6 +198,7 @@
                     <el-button type="danger"  size="small" @click="addValue('借贷项发票号码')"> 借贷项发票号码 </el-button>
                     <el-button type="danger"  size="small" @click="addValue('借贷项金额')"> 借贷项金额</el-button>
                     <el-button type="danger"  size="small" @click="addValue('借贷项类型')"> 借贷项类型</el-button>
+                    <el-button type="danger"  size="small" @click="addValue('借贷项总金额')"> 借贷项总金额</el-button>
                   </el-collapse-item>
                 </el-collapse>
               </el-collapse-item>

+ 16 - 6
src/views/contract/exportContract/orderIndex.vue

@@ -17,7 +17,7 @@
           </el-form-item>
         </el-col>
         <el-col :span="4">
-          <el-form-item label="售达方" prop="kuinfo">
+          <el-form-item label="售达方" prop="kunnr">
             <el-input placeholder="销售凭证" v-model="queryParams.kunnr" class="input-with-select"  style="width: 100%;" size="mini">
               <el-select v-model="queryParams.kunnrType" slot="prepend" placeholder="请选择" style="width: 75px;">
                 <el-option label="模糊" value="1">
@@ -60,7 +60,7 @@
           <el-form-item label="凭证类型" prop="auarttList">
             <!-- <el-input v-model="queryParams.pzinfo" placeholder="请输入销售凭证类型" clearable @keyup.enter.native="handleQuery" style="width: 260px;"/> -->
             <el-select v-model="queryParams.auarttList" placeholder="请选择凭证类型" multiple collapse-tags style="width: 100%;" size="mini">
-              <el-option v-for="dict in this.getDictDatas(DICT_TYPE.AUARTT) "
+              <el-option v-for="dict in this.getDictDatas(DICT_TYPE.C_AUARTT) "
                           :key="dict.value" :label="dict.label" :value="dict.value"/>
             </el-select>
           </el-form-item>
@@ -165,7 +165,12 @@
       <!-- <el-button type="success" plain icon="el-icon-bottom" size="mini" @click="openSyncForm(undefined)"
                    v-hasPermi="['contract:order:sync']">同步</el-button> -->
                    
-      <el-button type="success" plain icon="el-icon-bottom" size="mini" @click="openGenerateForm()" :disabled="multiple" >合同生成</el-button>
+      <el-col :span="1.5">
+        <el-button type="success" plain icon="el-icon-bottom" size="mini" @click="openGenerateForm()" :disabled="multiple" >合同生成</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading" >导出</el-button>
+      </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
@@ -218,7 +223,7 @@
       <el-table-column label="信用期" align="center" prop="zmonth" width="90" show-overflow-tooltip sortable="custom"/>
       <el-table-column label="订单原因" align="center" prop="augru" width="100" show-overflow-tooltip sortable="custom"/>
       <el-table-column label="订单原因解释" align="center" prop="augrut" width="140" show-overflow-tooltip sortable="custom"/>
-      <el-table-column label="合同打印模板" align="center" prop="htdymb" width="130" show-overflow-tooltip sortable="custom"/>
+      <!-- <el-table-column label="合同打印模板" align="center" prop="htdymb" width="130" show-overflow-tooltip sortable="custom"/> -->
       <el-table-column label="运输方式费用负担" align="center" prop="yffd" width="250" show-overflow-tooltip sortable="custom"	/>
       <el-table-column label="付款方式" align="center" prop="fkfs" width="140" show-overflow-tooltip sortable="custom"	/>
       <el-table-column label="产品质量" align="center" prop="cpzl" width="250" show-overflow-tooltip sortable="custom"	/>
@@ -259,6 +264,7 @@ import * as ExportOrderApi from '@/api/contract/exportContract/orderIndex';
 // import OrderForm from './OrderForm';
 import ContractGenerateForm from './components/ContractGenerateForm.vue';
 import * as CompanyApi from '@/api/contract/company';
+import {Loading} from 'element-ui'
 
 import OrderDetailsList from './components/OrderDetailsList.vue';
 import {DICT_TYPE, getDictDatas} from "@/utils/dict";
@@ -298,7 +304,7 @@ export default {
         pageNo: 1,
         pageSize: 200,
         buinfoList: [],
-        audat: null,
+        audat: [],
         kuinfo: null,
         vbeln:null,
         vbelnType:"1",
@@ -416,6 +422,7 @@ export default {
     /** 导出按钮操作 */
     async handleExport() {
       await this.$modal.confirm('是否确认导出所有订单数据项?');
+      let downloadLoadingInstance;
       try {
         this.exportLoading = true;
         if(this.queryParams.zzhtgklxList){
@@ -433,11 +440,14 @@ export default {
         if(this.queryParams.vkinfoList){
           this.queryParams.vkinfo = this.queryParams.vkinfoList.join(",")
         }
+        this.exportLoading = true;
+        downloadLoadingInstance = Loading.service({ text: "正在导出数据,请稍候", spinner: "el-icon-loading", background: "rgba(0, 0, 0, 0.7)", })
         const res = await ExportOrderApi.exportExportOrdertExcel(this.queryParams);
-        this.$download.excel(res, '订单.xls');
+        this.$download.excel(res, '出口订单.xls');
       } catch {
       } finally {
         this.exportLoading = false;
+        downloadLoadingInstance.close();
       }
     },
     selectable(row, index) {

+ 60 - 27
src/views/contract/frameworkAgreement/index.vue

@@ -1,33 +1,55 @@
 <template>
   <div class="app-container">
     <!-- 搜索工作栏 -->
-    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
-      <el-form-item label="合同模板名称" prop="contractTemplateName">
-        <el-input v-model="queryParams.contractTemplateName" placeholder="请输入合同模板名称" clearable @keyup.enter.native="handleQuery"/>
-      </el-form-item>
-      <el-form-item label="合同编号" prop="contractNo">
-        <el-input v-model="queryParams.contractNo" placeholder="请输入合同编号" clearable @keyup.enter.native="handleQuery"/>
-      </el-form-item>
-      <el-form-item label="客户名称" prop="clientName">
-        <el-input v-model="queryParams.clientName" placeholder="请输入客户名称" clearable @keyup.enter.native="handleQuery"/>
-      </el-form-item>
-      <el-form-item label="公司名称" prop="companyNames">
-        <el-input v-model="queryParams.companyNames" placeholder="请输入公司名称" clearable @keyup.enter.native="handleQuery"/>
-      </el-form-item>
-      <el-form-item label="是否生效" prop="isValid">
-        <el-select v-model="queryParams.isValid" placeholder="请选择是否生效">
-          <el-option label="是" value="1"></el-option>
-          <el-option label="否" value="0"></el-option>
-        </el-select>
-      </el-form-item>
-      <el-form-item label="创建时间" prop="createTime">
-        <el-date-picker v-model="queryParams.createTime" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss" type="daterange"
-                        range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']" />
-      </el-form-item>
-      <el-form-item>
-        <el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
-        <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
-      </el-form-item>
+    <el-form :model="queryParams" ref="queryForm" size="small"  v-show="showSearch" label-width="90px" label-position="right"  class="queryForm">
+      <el-row>
+        <el-col :span="4">
+          <el-form-item label="模板名称" prop="contractTemplateName">
+            <el-input v-model="queryParams.contractTemplateName" placeholder="请输入合同模板名称" clearable @keyup.enter.native="handleQuery" style="width: 100%;" size="mini"/>
+          </el-form-item>
+        </el-col>
+        <el-col :span="4">
+          <el-form-item label="合同编号" prop="contractNo">
+            <el-input v-model="queryParams.contractNo" placeholder="请输入合同编号" clearable @keyup.enter.native="handleQuery" style="width: 100%;" size="mini"/>
+          </el-form-item>
+        </el-col>
+        <el-col :span="4">
+          <el-form-item label="客户名称" prop="clientName">
+            <el-input v-model="queryParams.clientName" placeholder="请输入客户名称" clearable @keyup.enter.native="handleQuery" style="width: 100%;" size="mini"/>
+          </el-form-item>
+        </el-col>
+        <el-col :span="4">
+          <el-form-item label="公司名称" prop="companyNames">
+            <el-input v-model="queryParams.companyNames" placeholder="请输入公司名称" clearable @keyup.enter.native="handleQuery" style="width: 100%;" size="mini"/>
+          </el-form-item>
+        </el-col>
+        <el-col :span="4">
+          <el-form-item label="是否生效" prop="isValid" >
+            <el-select v-model="queryParams.isValid" placeholder="请选择是否生效" style="width: 100%;" size="mini">
+              <el-option label="是" value="1"></el-option>
+              <el-option label="否" value="0"></el-option>
+            </el-select>
+          </el-form-item>
+        </el-col>
+        <el-col :span="4">
+          <el-form-item label="有效起期" prop="agreementStartDate">
+            <el-date-picker v-model="queryParams.agreementStartDate" value-format="yyyy-MM-dd HH:mm:ss" type="daterange"
+                            range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']"  style="width: 100%;" size="mini"/>
+          </el-form-item>
+        </el-col>
+        <el-col :span="4">
+          <el-form-item label="创建时间" prop="createTime">
+            <el-date-picker v-model="queryParams.createTime" value-format="yyyy-MM-dd HH:mm:ss" type="daterange"
+                            range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']"  style="width: 100%;" size="mini"/>
+          </el-form-item>
+        </el-col>
+        <el-col :span="4">
+          <el-form-item>
+            <el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
+            <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
+          </el-form-item>
+        </el-col>
+      </el-row>
     </el-form>
 
     <!-- 操作工具栏 -->
@@ -543,4 +565,15 @@ table {
   font-weight: bold;
   color: rgb(30, 160, 225)
 }
+</style>
+
+<style lang="scss">
+.queryForm{
+  .el-col-4{
+    width: 20%;
+  }
+  .el-form-item__content{
+    font-size: 12px;
+  }
+}
 </style>

+ 2 - 2
src/views/contract/invoiceContract/index.vue

@@ -239,8 +239,8 @@
       <el-button type="primary" icon="el-icon-download" @click="downloadPdfFile(form)">下载pdf</el-button>
       <div id="printContent" v-if="openPreview">
         <div class="watermark"></div>
-        <div class="watermarked-container"  v-for="(i) in 1" :key="i" style="page-break-after:always">
-          <div id="htmlContent" v-html="form.contractHtml"></div>
+        <div class="watermarked-container"  v-for="(i) in 1" :key="i" style="page-break-after:always"  id="htmlContent">
+          <div v-html="form.contractHtml"></div>
         </div>
       </div>
     </el-dialog>