From 9aa6fe72192ec6b5160a127070002fde1765115b Mon Sep 17 00:00:00 2001
From: lixiangyu <lixiangyu@xalxzn.com>
Date: 星期二, 09 九月 2025 17:55:30 +0800
Subject: [PATCH] feat(cms): 选择刀具库存替代刀具信息

---
 src/views/cms/CuttingReceiveList.vue |  328 +++++++++++++++++++++++++++---------------------------
 1 files changed, 165 insertions(+), 163 deletions(-)

diff --git a/src/views/cms/CuttingReceiveList.vue b/src/views/cms/CuttingReceiveList.vue
index a12e0e6..36899db 100644
--- a/src/views/cms/CuttingReceiveList.vue
+++ b/src/views/cms/CuttingReceiveList.vue
@@ -7,22 +7,22 @@
           <a-col :md="6" :sm="8">
             <a-form-item label="棰嗙敤鍗曠姸鎬�">
               <j-search-select-tag
-                  placeholder="璇烽�夋嫨棰嗙敤鍗曠姸鎬�"
-                  v-model="queryParam.orderStatus"
-                  dict="order_status"
-                />
+                placeholder="璇烽�夋嫨棰嗙敤鍗曠姸鎬�"
+                v-model="queryParam.orderStatus"
+                dict="order_status"
+              />
             </a-form-item>
           </a-col>
           <a-col :md="6" :sm="8">
-              <a-form-item label="棰嗙敤浜�">
-                <j-search-select-tag
-                  placeholder="璇烽�夋嫨棰嗙敤浜�"
-                  v-model="queryParam.receiver"
-                  dict="sys_user,realname,id,del_flag!=1"
-                />
-              </a-form-item>
-            </a-col>
-            <a-col
+            <a-form-item label="棰嗙敤浜�">
+              <j-search-select-tag
+                placeholder="璇烽�夋嫨棰嗙敤浜�"
+                v-model="queryParam.receiver"
+                dict="sys_user,realname,id,del_flag!=1"
+              />
+            </a-form-item>
+          </a-col>
+          <a-col
             :md="6"
             :sm="8"
           >
@@ -60,11 +60,12 @@
     <!-- table鍖哄煙-begin -->
     <div>
       <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
-        <i class="anticon anticon-info-circle ant-alert-icon"></i> 宸查�夋嫨 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>椤�
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 宸查�夋嫨 <a
+        style="font-weight: 600">{{ selectedRowKeys.length }}</a>椤�
         <a style="margin-left: 24px" @click="onClearSelected">娓呯┖</a>
       </div>
 
-     <a-table
+      <a-table
         ref="table"
         size="middle"
         :scroll="{x:true}"
@@ -83,7 +84,8 @@
         </template>
         <template slot="imgSlot" slot-scope="text,record">
           <span v-if="!text" style="font-size: 12px;font-style: italic;">鏃犲浘鐗�</span>
-          <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
+          <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt=""
+               style="max-width:80px;font-size: 12px;font-style: italic;" />
         </template>
         <template slot="fileSlot" slot-scope="text">
           <span v-if="!text" style="font-size: 12px;font-style: italic;">鏃犳枃浠�</span>
@@ -119,7 +121,7 @@
 
       </a-table>
     </div>
-<a-tabs defaultActiveKey="1">
+    <a-tabs defaultActiveKey="1">
       <a-tab-pane tab="鍒�鍏烽鐢ㄦ槑缁�" key="1">
         <cutting-receive-detail-list ref="cuttingReceiveDetailList"></cutting-receive-detail-list>
       </a-tab-pane>
@@ -130,162 +132,162 @@
 
 <script>
 
-  import '@/assets/less/TableExpand.less'
-  import { mixinDevice } from '@/utils/mixin'
-  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
-  import CuttingReceiveModal from './modules/CuttingReceiveModal'
-  import CuttingReceiveDetailList from './CuttingReceiveDetailList'
+import '@/assets/less/TableExpand.less'
+import { mixinDevice } from '@/utils/mixin'
+import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+import CuttingReceiveModal from './modules/CuttingReceiveModal'
+import CuttingReceiveDetailList from './CuttingReceiveDetailList'
 
-  export default {
-    name: 'CuttingReceiveList',
-    mixins:[JeecgListMixin, mixinDevice],
-    components: {
-      CuttingReceiveModal,
-      CuttingReceiveDetailList
-    },
-    data () {
-      return {
-        description: '鍒�鍏烽鐢ㄥ崟绠$悊椤甸潰',
-        // 琛ㄥご
-        columns: [
-          {
-            title: '#',
-            dataIndex: '',
-            key:'rowIndex',
-            width:60,
-            align:"center",
-            customRender:function (t,r,index) {
-              return parseInt(index)+1;
-            }
-          },
-          {
-            title:'棰嗙敤浜�',
-            align:"center",
-            dataIndex: 'receiver_dictText'
-          },
-          {
-            title:'棰嗙敤鏃堕棿',
-            align:"center",
-            dataIndex: 'receiveTime',
-            customRender:function (text) {
-              return !text?"":(text.length>10?text.substr(0,10):text)
-            }
-          },
-          {
-            title:'棰嗙敤璇存槑',
-            align:"center",
-            dataIndex: 'receiveComment'
-          },
-          {
-            title:'纭浜�',
-            align:"center",
-            dataIndex: 'confirmer_dictText'
-          },
-          {
-            title:'纭鏃堕棿',
-            align:"center",
-            dataIndex: 'confirmTime',
-            customRender:function (text) {
-              return !text?"":(text.length>10?text.substr(0,10):text)
-            }
-          },
-          {
-            title:'纭鎰忚',
-            align:"center",
-            dataIndex: 'confirmComment'
-          },
-          {
-            title:'鏄惁浼氬綊杩�',
-            align:"center",
-            dataIndex: 'returnFlag'
-          },
-          {
-            title:'褰掕繕鏃堕棿',
-            align:"center",
-            dataIndex: 'returnTime',
-            customRender:function (text) {
-              return !text?"":(text.length>10?text.substr(0,10):text)
-            }
-          },
-          {
-            title:'褰掕繕璇存槑',
-            align:"center",
-            dataIndex: 'returnComment'
-          },
-          {
-            title:'褰掕繕纭浜�',
-            align:"center",
-            dataIndex: 'returnConfirmer_dictText'
-          },
-          {
-            title:'褰掕繕纭鏃堕棿',
-            align:"center",
-            dataIndex: 'returnConfirmTime',
-            customRender:function (text) {
-              return !text?"":(text.length>10?text.substr(0,10):text)
-            }
-          },
-          {
-            title:'褰掕繕纭鎰忚',
-            align:"center",
-            dataIndex: 'returnConfirmComment'
-          },
-          {
-            title:'棰嗙敤鍗曠姸鎬�',
-            align:"center",
-            dataIndex: 'orderStatus'
-          },
-          {
-            title: '鎿嶄綔',
-            dataIndex: 'action',
-            align:"center",
-            fixed:"right",
-            width:147,
-            scopedSlots: { customRender: 'action' }
+export default {
+  name: 'CuttingReceiveList',
+  mixins: [JeecgListMixin, mixinDevice],
+  components: {
+    CuttingReceiveModal,
+    CuttingReceiveDetailList
+  },
+  data() {
+    return {
+      description: '鍒�鍏烽鐢ㄥ崟绠$悊椤甸潰',
+      // 琛ㄥご
+      columns: [
+        {
+          title: '#',
+          dataIndex: '',
+          key: 'rowIndex',
+          width: 60,
+          align: 'center',
+          customRender: function(t, r, index) {
+            return parseInt(index) + 1
           }
-        ],
-        url: {
-          list: "/cms/cuttingReceive/list",
-          delete: "/cms/cuttingReceive/delete",
-          deleteBatch: "/cms/cuttingReceive/deleteBatch",
-          exportXlsUrl: "/cms/cuttingReceive/exportXls",
-          importExcelUrl: "cms/cuttingReceive/importExcel",
-          
         },
-        dictOptions:{},
-        superFieldList:[],
-      }
-    },
-    created() {
-    this.getSuperFieldList();
-    },
-    computed: {
-      importExcelUrl: function(){
-        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+        {
+          title: '棰嗙敤浜�',
+          align: 'center',
+          dataIndex: 'receiver_dictText'
+        },
+        {
+          title: '棰嗙敤鏃堕棿',
+          align: 'center',
+          dataIndex: 'receiveTime',
+          customRender: function(text) {
+            return !text ? '' : (text.length > 10 ? text.substr(0, 10) : text)
+          }
+        },
+        {
+          title: '棰嗙敤璇存槑',
+          align: 'center',
+          dataIndex: 'receiveComment'
+        },
+        {
+          title: '纭浜�',
+          align: 'center',
+          dataIndex: 'confirmer_dictText'
+        },
+        {
+          title: '纭鏃堕棿',
+          align: 'center',
+          dataIndex: 'confirmTime',
+          customRender: function(text) {
+            return !text ? '' : (text.length > 10 ? text.substr(0, 10) : text)
+          }
+        },
+        {
+          title: '纭鎰忚',
+          align: 'center',
+          dataIndex: 'confirmComment'
+        },
+        {
+          title: '鏄惁浼氬綊杩�',
+          align: 'center',
+          dataIndex: 'returnFlag'
+        },
+        {
+          title: '褰掕繕鏃堕棿',
+          align: 'center',
+          dataIndex: 'returnTime',
+          customRender: function(text) {
+            return !text ? '' : (text.length > 10 ? text.substr(0, 10) : text)
+          }
+        },
+        {
+          title: '褰掕繕璇存槑',
+          align: 'center',
+          dataIndex: 'returnComment'
+        },
+        {
+          title: '褰掕繕纭浜�',
+          align: 'center',
+          dataIndex: 'returnConfirmer_dictText'
+        },
+        {
+          title: '褰掕繕纭鏃堕棿',
+          align: 'center',
+          dataIndex: 'returnConfirmTime',
+          customRender: function(text) {
+            return !text ? '' : (text.length > 10 ? text.substr(0, 10) : text)
+          }
+        },
+        {
+          title: '褰掕繕纭鎰忚',
+          align: 'center',
+          dataIndex: 'returnConfirmComment'
+        },
+        {
+          title: '棰嗙敤鍗曠姸鎬�',
+          align: 'center',
+          dataIndex: 'orderStatus'
+        },
+        {
+          title: '鎿嶄綔',
+          dataIndex: 'action',
+          align: 'center',
+          fixed: 'right',
+          width: 147,
+          scopedSlots: { customRender: 'action' }
+        }
+      ],
+      url: {
+        list: '/cms/cuttingReceive/list',
+        delete: '/cms/cuttingReceive/delete',
+        deleteBatch: '/cms/cuttingReceive/deleteBatch',
+        exportXlsUrl: '/cms/cuttingReceive/exportXls',
+        importExcelUrl: 'cms/cuttingReceive/importExcel'
+
       },
-    },
-    methods: {
-     searchReset() {
+      dictOptions: {},
+      superFieldList: []
+    }
+  },
+  created() {
+    this.getSuperFieldList()
+  },
+  computed: {
+    importExcelUrl: function() {
+      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
+    }
+  },
+  methods: {
+    searchReset() {
       this.queryParam = {}
       this.$refs.cuttingReceiveDetailList.dataSource = []
-      this.loadData(1);
+      this.loadData(1)
     },
-      handleEdit: function (record) {
-        this.$refs.modalForm.edit(record)
-        this.$refs.modalForm.title = '缂栬緫'
-        this.$refs.modalForm.disableSubmit = false
+    handleEdit: function(record) {
+      this.$refs.modalForm.edit(record)
+      this.$refs.modalForm.title = '缂栬緫'
+      this.$refs.modalForm.disableSubmit = false
     },
     handleAdd() {
       this.$refs.modalForm.add()
       this.$refs.modalForm.title = '鏂板'
       this.$refs.modalForm.disableSubmit = false
     },
-    handleDetail:function(record){
-      this.$refs.modalForm.edit(record);
-      this.$refs.modalForm.title="璇︽儏";
-      this.$refs.modalForm.disableSubmit = true;
+    handleDetail: function(record) {
+      this.$refs.modalForm.edit(record)
+      this.$refs.modalForm.title = '璇︽儏'
+      this.$refs.modalForm.disableSubmit = true
     },
-     customRow(record) {
+    customRow(record) {
       return {
         on: {
           click: (e) => {
@@ -302,13 +304,13 @@
             for (let i = 0; i < children.length; i++) {
               children[i].classList.add('checked-td-of-add-table')
             }
-          },
-        },
+          }
+        }
       }
-    },
     }
   }
+}
 </script>
 <style scoped>
-  @import '~@assets/less/common.less';
+@import '~@assets/less/common.less';
 </style>
\ No newline at end of file

--
Gitblit v1.9.3