فهرست منبع

仓储费协议新增 新增业务员字段 仓库管理增加是否保税字段

lichao 3 سال پیش
والد
کامیت
b8a13a39bf

+ 58 - 48
src/components/fastStorage/fastOutStock/index.vue

@@ -290,13 +290,13 @@
             <span v-if="item.label == 'fGoodsid'">
               {{scope.row.fGoodsids}}
             </span>
-            <span v-else-if="item.label == 'fCntrno'">
-              <el-input
-                v-model="scope.row.fCntrno"
-                placeholder="请输入箱号"
-                clearable
-              ></el-input>
-            </span>
+<!--            <span v-else-if="item.label == 'fCntrno'">-->
+<!--              <el-input-->
+<!--                v-model="scope.row.fCntrno"-->
+<!--                placeholder="请输入箱号"-->
+<!--                clearable-->
+<!--              ></el-input>-->
+<!--            </span>-->
             <span v-else-if="item.label == 'fSealno'">
               <el-input
                 v-model="scope.row.fSealno"
@@ -702,8 +702,9 @@ export default {
           return this.$message.error("第" + (Number(item) + 1) + "行出库件数超出结余件数!");
         }
         this.balance = this.detailList[item].fPlanqty
+        console.log(this.detailList[item])
         for (let item1 in this.detailList) {
-          if (item.fId == item1.fId) {
+          if (this.detailList[item].fSrcid == this.detailList[item1].fSrcid) {
             this.balance = Number(this.balance) - Number(this.detailList[item].fQty)
             if (this.balance < 0) {
               return this.$message.error("第" + (Number(item1) + 1) + "行出库件数超出结余件数!");
@@ -756,13 +757,15 @@ export default {
             });
           });
           fProductName = [...new Set(fProductName)];
-          this.form.fProductName = fProductName.join(",");
+          // this.form.fProductName = fProductName.join(",");
+          this.$set(this.form, 'fProductName', fProductName.join(","))
           let fMarks = []
           this.detailList.map((e) => {
             fMarks.push(e.fMarks);
           });
           fMarks = [...new Set(fMarks)];
-          this.form.fMarks = fMarks.join(",");
+          // this.form.fMarks = fMarks.join(",");
+          this.$set(this.form, 'fMarks', fMarks.join(","))
           let data = {warehousebillsitemsList: this.detailList}
           data = Object.assign({}, data, this.form)
           fastOutStock(data).then(res => {
@@ -798,46 +801,52 @@ export default {
         // this.detailList = response.rows;
         let arr = [];
         response.rows.map(e => {
-          arr.push({
-            fId: null,
-            fBsdate: this.form.fBsdate,
-            fMblno: e.fMblno,
-            fGoodsid: e.fGoodsid,
-            fCntrtype: null,
-            fPlanqty: e.fQtyblc,
-            fPlannetweight: e.fNetweightblc,
-            fPlangrossweight: e.fGrossweightblc,
-            fWarehouseLocationids: e.fWarehouseLocationids,
-            fGoodsids: e.fGoodsids,
-            fBillingway: e.fBillingway,
-            fChargedate: e.fChargedate,
-            fMarks: e.fMarks,
-            fOriginalbilldate: e.fOriginalbilldate,
-            fOriginalbillno: e.fOriginalbillno,
-            fPackagespecs: e.fPackagespecs,
-            fGrossweight: e.fGrossweightblc2,
-            fNetweight: e.fNetweightblc2,
-            fQty: e.fQtyblc2,
-            fCntqty: 1,
-            fBillstatus: 10,
-            fWarehouselocid: e.fWarehouseLocationid,
-            fWarehouselocids: e.fWarehouseLocationids,
-            fCntrno: e.fCntrno,
-            fGoodsval: null,
-            fTruckno: response.rows.fTruckno,
-            remark: null,
-            fIsPass: "F",
-            fDriverName: response.rows.fDriverName,
-            fDriverTel: response.rows.fDriverTel,
-            fDriverIdCar: response.rows.fDriverIdCar,
-            fBusinessType: e.fBusinessType ? e.fBusinessType.toString() : null,
-            fWarehouseInformation: e.fWarehouseids,
-            fSrcid: e.fId,
-            fSrcBsdate: e.fBsdate,
-            deleteId: e.fId,
+          let index = this.detailList.findIndex(item => {
+            return item.fSrcid === e.fId
           })
+          if (index == -1) {
+            arr.push({
+              fId: null,
+              fBsdate: this.form.fBsdate,
+              fMblno: e.fMblno,
+              fGoodsid: e.fGoodsid,
+              fCntrtype: null,
+              fPlanqty: e.fQtyblc,
+              fPlannetweight: e.fNetweightblc,
+              fPlangrossweight: e.fGrossweightblc,
+              fWarehouseLocationids: e.fWarehouseLocationids,
+              fGoodsids: e.fGoodsids,
+              fBillingway: e.fBillingway,
+              fChargedate: e.fChargedate,
+              fMarks: e.fMarks,
+              fOriginalbilldate: e.fOriginalbilldate,
+              fOriginalbillno: e.fOriginalbillno,
+              fPackagespecs: e.fPackagespecs,
+              fGrossweight: e.fGrossweightblc2,
+              fNetweight: e.fNetweightblc2,
+              fQty: e.fQtyblc2,
+              fCntqty: 1,
+              fBillstatus: 10,
+              fWarehouselocid: e.fWarehouseLocationid,
+              fWarehouselocids: e.fWarehouseLocationids,
+              fCntrno: e.fCntrno,
+              fGoodsval: null,
+              fTruckno: response.rows.fTruckno,
+              remark: null,
+              fIsPass: "T",
+              fDriverName: response.rows.fDriverName,
+              fDriverTel: response.rows.fDriverTel,
+              fDriverIdCar: response.rows.fDriverIdCar,
+              fBusinessType: e.fBusinessType ? e.fBusinessType.toString() : null,
+              fWarehouseInformation: e.fWarehouseids,
+              fSrcid: e.fId,
+              fSrcBsdate: e.fBsdate,
+              deleteId: e.fId,
+            })
+          }
         })
         this.detailList = this.detailList.concat(arr)
+        console.log(this.detailList)
         this.disabled = false
       });
     },
@@ -921,8 +930,9 @@ export default {
         type: 'warning'
       }).then(() => {
         this.selection.forEach(item => {
+          console.log(item.deleteId)
           let index = this.detailList.findIndex(item1 => {
-            item.deleteId = item1.deleteId
+            return item1.deleteId == item.deleteId
           })
           this.detailList.splice(index,1)
         })

+ 64 - 8
src/views/Warehousing/inStock/AddOrUpdate.vue

@@ -1056,6 +1056,25 @@
               </el-date-picker>
             </el-form-item>
           </el-col>
+          <el-col :span="8">
+            <el-form-item prop="fSalesmanId" label="业务员">
+              <el-select
+                v-model="form.fSalesmanId"
+                clearable
+                filterable
+                placeholder="请选择业务员"
+                style="width: 80%"
+                :disabled="browseStatus || form.warehouseStatus > 3"
+              >
+                <el-option
+                  v-for="(item, index) in fSalesmanOption"
+                  :key="index.userId"
+                  :label="item.userName"
+                  :value="item.userId"
+                ></el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
         </el-row>
       </div>
     </el-form>
@@ -1580,12 +1599,15 @@
           </el-row>
           <el-row>
             <el-col :span="6">
-              <el-form-item label="包装规格" prop="fPackagespecs">
+              <el-form-item label="溢短重" prop="fActualWeight">
                 <el-input
-                    v-model="importList.fPackagespecs"
-                    style="width: 100%"
-                    placeholder="包装规格"
-                />
+                  v-model="importList.fActualWeight"
+                  style="width: 100%"
+                  placeholder="溢短重"
+                  v-input-limit="2"
+                >
+                  <template slot="append">{{ (importList.fActualWeight / 1000).toFixed(4) }}吨</template>
+                </el-input>
               </el-form-item>
             </el-col>
             <el-col :span="6">
@@ -1768,6 +1790,17 @@
             </el-col>
           </el-row>
           <el-row>
+            <el-col :span="6">
+              <el-form-item label="包装规格" prop="fPackagespecs">
+                <el-input
+                  v-model="importList.fPackagespecs"
+                  style="width: 100%"
+                  placeholder="包装规格"
+                />
+              </el-form-item>
+            </el-col>
+          </el-row>
+          <el-row>
             <el-col>
               <el-form-item label="备注" prop="remark">
                 <el-input
@@ -6183,6 +6216,7 @@
 
 <script>
 import print from "print-js";
+import {selectUserByRole} from "@/api/basicdata/warehouse"
 import {
   addWhgenleg,
   addJoblist,
@@ -6319,7 +6353,7 @@ export default {
       isrequired2: 2,
       detailsHidden: false,
       detailsHidden2: true,
-      fSalesmanId: [],
+      fSalesmanOption: [],
       CntrTable: [],
       cntrList: [],
       fTrademodeidOptions: [],
@@ -6377,6 +6411,7 @@ export default {
       fQty: 0,
       fNetweight: 0,
       fCntqty: 0,
+      fActualWeight: 0,
       activeIndex: "1",
       ifCntrnoStatus: null,
       addOrUpdateVisible: false,
@@ -6492,6 +6527,13 @@ export default {
           width: 120,
         },
         {
+          surface: "14",
+          label: "fActualWeight",
+          name: "溢短重(kg)",
+          checked: 0,
+          width: 120,
+        },
+        {
           surface: "15",
           label: "fPackagespecs",
           name: "包装规格",
@@ -6727,6 +6769,10 @@ export default {
     this.getConfigKey("instock.orders.approval").then((response) => {
       this.showApproval = response.msg;
     });
+    // 业务员获取
+    selectUserByRole().then(res => {
+      this.fSalesmanOption = res.rows
+    })
     listWarehousesss({fStatus: 0, delFlag: 0}).then((response) => {
       this.warehouseOptions = response.rows;
     });
@@ -8158,6 +8204,7 @@ export default {
             fPlanqty: this.importList.fPlanqty,
             fPlannetweight: this.importList.fPlannetweight,
             fPlangrossweight: this.importList.fPlangrossweight,
+            fActualWeight: this.importList.fActualWeight,
           });
           if (this.detailList[0].fGoodsid) {
             for (let item in this.goodsOptions) {
@@ -8283,11 +8330,15 @@ export default {
         if (column.property === "fCntqty") {
           values = data.map((item) => Number(item["fCntqty"]));
         }
+        if (column.property === "fActualWeight") {
+          values = data.map((item) => Number(item["fActualWeight"]));
+        }
         if (
             column.property === "fGrossweight" ||
             column.property === "fNetweight" ||
             column.property === "fQty" ||
-            column.property === "fCntqty"
+            column.property === "fCntqty" ||
+            column.property === "fActualWeight"
         ) {
           sums[index] = values.reduce((prev, curr) => {
             const value = Number(curr);
@@ -8305,6 +8356,9 @@ export default {
               if (column.property === "fCntqty") {
                 this.fCntqty = prev + curr;
               }
+              if (column.property === "fActualWeight") {
+                this.fActualWeight = prev + curr;
+              }
               return prev + curr;
             } else {
               return prev;
@@ -8314,7 +8368,9 @@ export default {
             sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
           } else if (column.property === "fNetweight") {
             sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
-          } else {
+          } else if (column.property === "fActualWeight") {
+            sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
+          }  else {
             // sums[index] = sums[index].toFixed(2);
             sums[index] = sums[index]
           }

+ 19 - 0
src/views/basicdata/dept/index.vue

@@ -63,6 +63,12 @@
           <span v-else>是</span>
         </template>
       </el-table-column>
+      <el-table-column prop="fIsBonded" label="保税" width="50">
+        <template slot-scope="scope">
+          <span v-if="scope.row.fIsBonded == 1">是</span>
+          <span v-else>否</span>
+        </template>
+      </el-table-column>
       <el-table-column prop="remark" label="备注" width="100"></el-table-column>
       <el-table-column prop="orderNum" label="排序" width="50"></el-table-column>
       <el-table-column prop="fStatus" label="状态" :formatter="statusFormat" width="50"></el-table-column>
@@ -203,6 +209,19 @@
             </el-form-item>
           </el-col>
         </el-row>
+        <el-row>
+          <el-col :span="8">
+            <el-form-item label="是否保税">
+              <el-select
+                v-model="form.fIsBonded"
+                style="width: 100%"
+              >
+                <el-option label="是" value="1" />
+                <el-option label="否" value="0" />
+              </el-select>
+            </el-form-item>
+          </el-col>
+        </el-row>
 
         <!--<el-form-item label="状态,默认 T ,正常T 停用F 下拉选择">
           <el-radio-group v-model="form.fStatus">

+ 37 - 30
src/views/reportManagement/profitGeneralLedger/index.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
-      <el-form-item label="货权方" prop="fCorpid">
+      <el-form-item label="客户" prop="fCorpid">
         <el-select
           v-model="queryParams.fCorpid"
           filterable
@@ -11,7 +11,7 @@
           size="small"
           @keyup.enter.native="handleQuery"
           :remote-method="corpsRemoteMethod"
-          placeholder="请选择货权方"
+          placeholder="请选择客户"
         >
           <el-option
             v-for="(dict, index) in fMblnoOptions"
@@ -31,26 +31,26 @@
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-      <el-form-item label="结算单位" prop="fToCorpid">
-        <el-select
-          v-model="queryParams.fToCorpid"
-          placeholder="请选择结算单位"
-          filterable
-          remote
-          clearable
-          style="width: 200px"
-          size="small"
-          @keyup.enter.native="handleQuery"
-          :remote-method="corpsRemoteMethod"
-        >
-          <el-option
-            v-for="(dict, index) in fMblnoOptions"
-            :key="index.fId"
-            :label="dict.fName"
-            :value="dict.fId"
-          ></el-option>
-        </el-select>
-      </el-form-item>
+<!--      <el-form-item label="结算单位" prop="fToCorpid">-->
+<!--        <el-select-->
+<!--          v-model="queryParams.fToCorpid"-->
+<!--          placeholder="请选择结算单位"-->
+<!--          filterable-->
+<!--          remote-->
+<!--          clearable-->
+<!--          style="width: 200px"-->
+<!--          size="small"-->
+<!--          @keyup.enter.native="handleQuery"-->
+<!--          :remote-method="corpsRemoteMethod"-->
+<!--        >-->
+<!--          <el-option-->
+<!--            v-for="(dict, index) in fMblnoOptions"-->
+<!--            :key="index.fId"-->
+<!--            :label="dict.fName"-->
+<!--            :value="dict.fId"-->
+<!--          ></el-option>-->
+<!--        </el-select>-->
+<!--      </el-form-item>-->
       <el-form-item label="货物名称" prop="fProductName">
         <el-select
           v-model="queryParams.fProductName"
@@ -478,17 +478,17 @@ export default {
         {
           surface: "1",
           label: "fName",
-          name: "货权方",
+          name: "客户",
           checked: 0,
           width: 150,
         },
-        {
-          surface: "2",
-          label: "fFeesName",
-          name: "结算单位",
-          checked: 0,
-          width: 120,
-        },
+        // {
+        //   surface: "2",
+        //   label: "fFeesName",
+        //   name: "结算单位",
+        //   checked: 0,
+        //   width: 120,
+        // },
         {
           surface: "3",
           label: "fMblno",
@@ -538,6 +538,13 @@ export default {
           checked: 0,
           width: 120,
         },
+        {
+          surface: "10",
+          label: "salesmanName",
+          name: "业务员",
+          checked: 0,
+          width: 120,
+        },
       ],
       allCheck: false,
       // 船名

+ 104 - 112
src/views/warehouseBusiness/agreement/index.vue

@@ -561,110 +561,98 @@
 <!--        </el-table-column>-->
 <!--      </el-table>-->
 
-<!--      <div class="dialogTableTitle flex a-center jlr">-->
-<!--        <h2>附件明细</h2>-->
-<!--        <el-button @click="addRelevt()" :disabled="notChange">新增</el-button>-->
-<!--      </div>-->
-<!--      <el-table-->
-<!--        :data="relevantAttachments"-->
-<!--      >-->
-<!--        <el-table-column label="序号" type="index" width="80"> </el-table-column>-->
-<!--        <el-table-column-->
-<!--          prop="fName"-->
-<!--          header-align="center"-->
-<!--          align="center"-->
-<!--          label="附件名称"-->
-<!--        >-->
-<!--          <template slot-scope="scope">-->
-<!--            <el-input-->
-<!--              v-model="scope.row.fName"-->
-<!--              :disabled="browseStatus"-->
-<!--              placeholder="附件名称"-->
-<!--              show-word-limit-->
-<!--            />-->
-<!--          </template>-->
-<!--        </el-table-column>-->
-<!--        <el-table-column-->
-<!--          prop="createBy"-->
-<!--          header-align="center"-->
-<!--          align="center"-->
-<!--          label="上传人"-->
-<!--        >-->
-<!--          <template slot-scope="scope">-->
-<!--            <el-input-->
-<!--              v-model="scope.row.createBy"-->
-<!--              disabled-->
-<!--              placeholder="上传人"-->
-<!--              show-word-limit-->
-<!--            />-->
-<!--          </template>-->
-<!--        </el-table-column>-->
-<!--        <el-table-column-->
-<!--          prop="createTime"-->
-<!--          header-align="center"-->
-<!--          align="center"-->
-<!--          label="上传时间"-->
-<!--        >-->
-<!--          <template slot-scope="scope">-->
-<!--            <el-date-picker-->
-<!--              v-model="scope.row.createTime"-->
-<!--              type="date"-->
-<!--              disabled-->
-<!--              placeholder="上传时间"-->
-<!--              format="yyyy-MM-dd HH:mm"-->
-<!--              value-format="timestamp"-->
-<!--            ></el-date-picker>-->
-<!--          </template>-->
-<!--        </el-table-column>-->
-<!--        <el-table-column-->
-<!--          prop="fUrl"-->
-<!--          header-align="center"-->
-<!--          align="center"-->
-<!--          label="上传附件"-->
-<!--        >-->
-<!--          <template slot-scope="scope">-->
-<!--            <div style="display: flex; justify-content: center">-->
-<!--              <el-upload-->
-<!--                :multiple="true"-->
-<!--                class="upload-demo"-->
-<!--                :action="uploadImgUrl"-->
-<!--                :on-success="-->
-<!--                (res, file) => {-->
-<!--                  handleSucces(scope, res, file);-->
-<!--                }-->
-<!--              "-->
-<!--                :headers="headers"-->
-<!--                :disabled="browseStatus"-->
-<!--                :show-file-list="false"-->
-<!--              >-->
-<!--                <el-button size="small" type="text" :disabled="browseStatus"-->
-<!--                >点击上传</el-button-->
-<!--                >-->
-<!--              </el-upload>-->
-<!--              <el-button size="small" type="text" @click="checkFile(scope)"-->
-<!--              >查看</el-button-->
-<!--              >-->
-<!--            </div>-->
-<!--          </template>-->
-<!--        </el-table-column>-->
-<!--        <el-table-column-->
-<!--          header-align="center"-->
-<!--          align="center"-->
-<!--          label="操作"-->
-<!--          width="130PX"-->
-<!--          fixed="right"-->
-<!--        >-->
-<!--          <template slot-scope="scope">-->
-<!--            <el-button-->
-<!--              @click.native.prevent="deleteRow(scope.$index, relevantAttachments)"-->
-<!--              :disabled="browseStatus"-->
-<!--              size="small"-->
-<!--              type="text"-->
-<!--            >删除-->
-<!--            </el-button>-->
-<!--          </template>-->
-<!--        </el-table-column>-->
-<!--      </el-table>-->
+<!--      附件明细-->
+      <div class="dialogTableTitle flex a-center jlr">
+        <h2>附件明细</h2>
+        <el-button @click="addRelevt" :disabled="notChange">新增</el-button>
+      </div>
+      <el-table
+        :data="relevantAttachments"
+        ref="table"
+        tooltip-effect="dark"
+        stripe
+        style="width: 100%"
+      >
+        <el-table-column label="序号" type="index" width="80"></el-table-column>
+        <el-table-column
+          prop="fName"
+          header-align="center"
+          align="center"
+          label="附件名称"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fName"
+              :disabled="browseStatus"
+              placeholder="附件名称"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+        <el-table-column
+          prop="fDesc"
+          header-align="center"
+          align="center"
+          label="附件描述"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fDesc"
+              :disabled="browseStatus"
+              placeholder="附件描述"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+        <el-table-column
+          prop="fUrl"
+          header-align="center"
+          align="center"
+          label="上传附件"
+        >
+          <template slot-scope="scope">
+            <div style="display: flex; justify-content: center">
+              <el-upload
+                class="upload-demo"
+                :action="uploadImgUrl"
+                :on-success="
+                (res, file) => {
+                  handleSucces(scope, res, file);
+                }
+              "
+                :headers="headers"
+                :disabled="browseStatus"
+                :show-file-list="false"
+                :limit="1"
+              >
+                <el-button size="small" type="text" :disabled="browseStatus"
+                >点击上传</el-button
+                >
+              </el-upload>
+              <el-button size="small" type="text" @click="checkFile(scope)"
+              >查看</el-button
+              >
+            </div>
+          </template>
+        </el-table-column>
+        <el-table-column
+          header-align="center"
+          align="center"
+          label="操作"
+          width="130PX"
+          fixed="right"
+        >
+          <template slot-scope="scope">
+            <el-button
+              @click.native.prevent="deleteUploadRow(scope.$index, relevantAttachments)"
+              :disabled="browseStatus"
+              size="small"
+              type="text"
+            >删除
+            </el-button>
+          </template>
+        </el-table-column>
+      </el-table>
 
       <div slot="footer" class="dialog-footer">
         <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
@@ -1035,6 +1023,7 @@ export default {
         // this.$set(this,'fMblnoOptions',response.data.corps)
         this.deptName = response.data.dept.deptName
         this.form = response.data.tWarehouseAgreement
+        this.relevantAttachments = response.data.attachList
         if (response.data.tWarehouseAgreement.tPackages) {
           // this.form.tPackages = this.form.tPackages
           //   .replace(/\[|]/g, "")
@@ -1416,6 +1405,7 @@ export default {
           }
           // this.fMblnoOptions = response.data.corps
           this.agreementitemsList = response.data.tWarehouseAgreementitems
+          this.relevantAttachments = response.data.attachList
           for (let item in this.agreementitemsList) {
             this.$set(this.agreementitemsList[item], 'fFeeunitid', this.agreementitemsList[item].fFeeunitid + '')
             // this.fWRemoteMethod(this.agreementitemsList[item].fFeeid)
@@ -1463,6 +1453,7 @@ export default {
           let formData = new window.FormData()
           formData.append('agreement', JSON.stringify(this.form))
           formData.append('agreementitems', JSON.stringify(this.agreementitemsList))
+          formData.append('attachments', JSON.stringify(this.relevantAttachments))
           addAgreement(formData).then(response => {
             this.msgSuccess('操作成功')
             this.$set(this.form, 'fId', response.data.tWarehouseAgreement.fId)
@@ -1503,7 +1494,6 @@ export default {
     },
     // 新增附件明细数据
     addRelevt() {
-      console.log(123)
       this.relevantAttachments.push({
         fUrl: null,
         fName: null,
@@ -1514,24 +1504,26 @@ export default {
     },
     //附件上传
     handleSucces(scope, res, file) {
-      console.log(scope)
-      console.log(res)
       this.relevantAttachments[scope.$index].fName = res.fileName;
       this.relevantAttachments[scope.$index].fUrl = res.url;
-      // if (!this.relevantAttachments[scope.$index].fUrl) {
-      //   this.$message.error("上传失败");
-      // } else {
-      //   this.$message.success("上传成功");
-      // }
+      if (!this.relevantAttachments[scope.$index].fUrl) {
+        this.$message.error("上传失败");
+      } else {
+        this.$message.success("上传成功");
+      }
     },
     //附件查看
     checkFile(scope) {
       if (this.relevantAttachments[scope.$index].fUrl) {
+        console.log(this.relevantAttachments[scope.$index].fUrl)
         window.open(this.relevantAttachments[scope.$index].fUrl);
       } else {
         this.$message.error("请上传附件");
       }
     },
+    deleteUploadRow(index, rows) {
+      rows.splice(index, 1);
+    },
   }
 }
 </script>