From cf65a7d789f8887a407ca1060da9f0810b40ac3b Mon Sep 17 00:00:00 2001
From: wente <329538422@qq.com>
Date: 星期四, 23 十一月 2023 11:06:58 +0800
Subject: [PATCH] 项目表

---
 web/src/views/modules/itemCirculatOrder/ItemCirculatOrder-AddOrUpdate.vue |   52 +++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 35 insertions(+), 17 deletions(-)

diff --git a/web/src/views/modules/itemCirculatOrder/ItemCirculatOrder-AddOrUpdate.vue b/web/src/views/modules/itemCirculatOrder/ItemCirculatOrder-AddOrUpdate.vue
index b83ab23..f70a834 100644
--- a/web/src/views/modules/itemCirculatOrder/ItemCirculatOrder-AddOrUpdate.vue
+++ b/web/src/views/modules/itemCirculatOrder/ItemCirculatOrder-AddOrUpdate.vue
@@ -31,53 +31,61 @@
           <div style="padding-left:5px;padding-right:5px;">
             <div style="padding: 5px">鐗╁搧鎶�鏈祫鏂欏強鏁伴噺锛�</div>
             <div class="table-container">
-              <el-table ref="tableSoftwareList" class="el-software el-margin-top-bot" border :data="dataForm.technicalList"
+              <el-table ref="tableCirculatOrderList" class="el-software el-margin-top-bot" border :data="dataForm.technicalList"
                         stripe>
-                <el-table-column prop="no" align="center" width="80" label="搴忓彿">
+                <el-table-column prop="no" align="center" width="60" label="搴忓彿">
                   <template slot-scope="scope">
                     <span v-html="indexFormat(scope.$index)"></span>
                   </template>
                 </el-table-column>
-                <el-table-column prop="infoName" min-width="300" label="鎶�鏈祫鏂欏悕绉�">
+                <el-table-column prop="Name" min-width="180" label="鎶�鏈祫鏂欏悕绉�">
                   <template v-slot="{ row }">
-                    <el-input v-model="row.name" placeholder="鎶�鏈祫鏂欏悕绉�"></el-input>
+                    <el-input v-model="row.Name" placeholder="鎶�鏈祫鏂欏悕绉�"></el-input>
                   </template>
                 </el-table-column>
-                <el-table-column prop="identify" align="center" width="180" label="鏍囪瘑">
+                <el-table-column prop="identify" align="center" width="150" label="鏍囪瘑">
                   <template v-slot="{ row }">
-                    <el-input v-model="row.version" placeholder="鏍囪瘑"></el-input>
+                    <el-input v-model="row.identify" placeholder="鏍囪瘑"></el-input>
                   </template>
                 </el-table-column>
-                <el-table-column prop="version" align="center" width="180" label="鐗堟湰">
+                <el-table-column prop="version" align="center" width="120" label="鐗堟湰">
                   <template v-slot="{ row }">
-                    <el-input v-model="row.identify" placeholder="鐗堟湰"></el-input>
+                    <el-input v-model="row.version" placeholder="鐗堟湰"></el-input>
                   </template>
                 </el-table-column>
-                <el-table-column prop="secretClass" label="瀵嗙骇" width="180"  align="center">
+                <el-table-column prop="secretClass" label="瀵嗙骇" width="100"  align="center">
                   <template v-slot="{ row }">
-                    <el-input v-model="row.secretClass" placeholder="瀵嗙骇"></el-input>
+<!--                    <el-input v-model="row.secretClass" placeholder="瀵嗙骇"></el-input>-->
+                    <zt-dict v-model="row.secretClass" dict="secret_class"></zt-dict>
                   </template>
                 </el-table-column>
-                <el-table-column prop="medium" label="浠嬭川" width="180"  align="center">
+                <el-table-column prop="medium" label="浠嬭川" width="100"  align="center">
                   <template v-slot="{ row }">
                     <el-input v-model="row.medium" placeholder="浠嬭川"></el-input>
                   </template>
                 </el-table-column>
-                <el-table-column prop="amount" label="鏁伴噺" width="180"  align="center">
+                <el-table-column prop="amount" label="鏁伴噺" width="80"  align="center">
                   <template v-slot="{ row }">
                     <el-input v-model="row.amount" placeholder="鏁伴噺"></el-input>
                   </template>
                 </el-table-column>
-                <el-table-column prop="remark" label="澶囨敞" width="180"  align="center">
+                <el-table-column prop="remark" label="澶囨敞" width="100"  align="center">
                   <template v-slot="{ row }">
                     <el-input v-model="row.remark" placeholder="澶囨敞"></el-input>
                   </template>
                 </el-table-column>
+                <el-table-column fixed="right" prop="files" label="涓婁紶闄勪欢" width="80"  align="center">
+                  <template v-slot="{ row }">
+<!--                    <zt-table-button @click="files(row.id)">涓婁紶闄勪欢</zt-table-button>-->
+                    <table-uploader busi-type="test_order" model-name="dataForm" :dataForm="dataForm"
+                                     v-model="row.files"/>
+                  </template>
+                </el-table-column>
               </el-table>
-<!--              <div class="icon-container" @click="addSoftwareRow()">-->
-<!--                &lt;!&ndash; 鏀剧疆鍥哄畾鐨勫浘鏍� &ndash;&gt;-->
-<!--                <i class="el-icon-plus"></i>-->
-<!--              </div>-->
+              <div class="icon-container" @click="addCirculatRow()">
+                <!-- 鏀剧疆鍥哄畾鐨勫浘鏍� -->
+                <i class="el-icon-plus"></i>
+              </div>
             </div>
           </div>
         </div>
@@ -179,6 +187,9 @@
       }
     },
     methods: {
+      indexFormat(index){
+        return index += 1
+      },
       init(id,row){
         this.dataForm.id = row.id
         this.dataForm.projectId = row.projectId
@@ -186,6 +197,13 @@
         this.getInfo()
         console.log(this.dataForm.id,this.dataForm.projectId,'params params')
       },
+      addCirculatRow(){
+        this.dataForm.technicalList.push({})
+        this.$nextTick(()=>{
+          const tableBody=this.$refs.tableCirculatOrderList.$el.querySelector('.el-table__body-wrapper')
+          tableBody.scrollTop = tableBody.scrollHeight;
+        })
+      },
       // 鑾峰彇淇℃伅
       async getInfo() {
         let params = {

--
Gitblit v1.9.1