Просмотр исходного кода

🐞 fix(【drp-价格申报单】): 复制单据,清空附件

	复制历史单据JG202307104800,点保存-点提交,提示提交成功,但单据状态还是自由态。核查原因是历史订单附件不存在,但数据库附件字段又存了值  解决方案:复制单据,清空附件  测试环境复现单据为:JG202407230180

本次修改:
1.复制单据之后清空附件信息
2.复制、编辑页面子表按钮样式改为text

20240723230
002390 10 месяцев назад
Родитель
Сommit
b02fc98bee
2 измененных файлов с 21 добавлено и 5 удалено
  1. 15 4
      src/views/purchase/apply/copy/index.vue
  2. 6 1
      src/views/purchase/apply/edit/index.vue

+ 15 - 4
src/views/purchase/apply/copy/index.vue

@@ -1,7 +1,13 @@
 <script>
 import useColumns from "./columns";
 import { EXIST } from "@/api/business/purchase/catalogue";
-import { ITEM, SAVE, PRICE, BATCHPRICE,BATCHPRICEISEXIST } from "@/api/business/purchase/apply";
+import {
+  ITEM,
+  SAVE,
+  PRICE,
+  BATCHPRICE,
+  BATCHPRICEISEXIST,
+} from "@/api/business/purchase/apply";
 import { tax, unit, currency } from "@/components/popover-select-v2/fetch";
 // 用于回显参照框数据
 import { getRefer } from "@/api/purchase/basic.js";
@@ -173,7 +179,7 @@ export default {
         console.log("看看prop", prop);
         const { code, data } = await ITEM(prop, true);
         if (code === 200) {
-          this.params = data;
+          this.params = { ...data, file: null };
           this.params.priceApplyItems = data.priceApplyItems.map((item) => ({
             ...this.$init.params(TableColumns),
             ...item,
@@ -653,7 +659,7 @@ export default {
         label-position="right"
         style="padding: 18px"
       >
-      <template slot="supplierName" slot-scope="scope">
+        <template slot="supplierName" slot-scope="scope">
           <component
             v-bind="scope.attr"
             v-model="scope.row[scope.item.key]"
@@ -837,12 +843,17 @@ export default {
               </template>
               <ux-table-column fixed="right" label="操作" width="100">
                 <template slot="header" slot-scope="scope">
-                  <el-button :size="$attrs.size" @click="onRowAdd(tabName)">
+                  <el-button
+                    type="text"
+                    :size="$attrs.size"
+                    @click="onRowAdd(tabName)"
+                  >
                     新增
                   </el-button>
                 </template>
                 <template slot-scope="scope">
                   <el-button
+                    type="text"
                     :size="$attrs.size"
                     @click.native.prevent="onRowRemove(tabName, scope)"
                   >

+ 6 - 1
src/views/purchase/apply/edit/index.vue

@@ -857,12 +857,17 @@ export default {
               </template>
               <ux-table-column fixed="right" title="操作" width="100">
                 <template slot="header" slot-scope="scope">
-                  <el-button :size="$attrs.size" @click="onRowAdd(tabName)">
+                  <el-button
+                    type="text"
+                    :size="$attrs.size"
+                    @click="onRowAdd(tabName)"
+                  >
                     新增
                   </el-button>
                 </template>
                 <template slot-scope="scope">
                   <el-button
+                    type="text"
                     :size="$attrs.size"
                     @click.native.prevent="onRowRemove(tabName, scope)"
                   >