guarantee-lsq il y a 1 an
Parent
commit
b533fe66a7
1 fichiers modifiés avec 14 ajouts et 10 suppressions
  1. 14 10
      src/views/purchase/inventory-list/InventoryList.vue

+ 14 - 10
src/views/purchase/inventory-list/InventoryList.vue

@@ -59,7 +59,7 @@
           showPagination="auto"
         >
           <template #action="record">
-            <a @click="handleView(record)">查看</a>
+<!--            <a @click="handleView(record)">查看</a>-->
             <operation-button
               v-if="record.status===1||record.status===3"
               @click="handlePush(record)"
@@ -71,7 +71,6 @@
         </s-table>
       </a-col>
     </a-row>
-    <detail ref="detailModal"/>
     <AddSpareForm ref="addSpareForm" @ok="handleOk" />
   </a-card>
 </template>
@@ -79,17 +78,12 @@
 <script>
 import { STable, Ellipsis } from '@/components'
 import AddSpareForm from './modules/AddSpareForm'
-import Detail from './modules/Detail'
-import { fetchSpareTypeTree } from '@/api/sqarepartmanage/sparetype'
-import { fetchStoreTree } from '@/api/store/store'
-
 import { getSpareAddPage, pushSpareStore } from '@/api/yongyou/yongyou'
 export default {
   name: 'SpareStoreSelectModalYY',
   components: {
     STable,
     Ellipsis,
-    Detail,
     AddSpareForm
   },
   data () {
@@ -130,6 +124,15 @@ export default {
           width: '100px',
           dataIndex: 'ggxh'
         },
+        {
+          title: '厂区',
+          checked: true,
+          width: '100px',
+          dataIndex: 'tokenType',
+          customRender: (text) => {
+            return this.flagMap[text]
+          }
+        },
         {
           title: '计量单位',
           checked: true,
@@ -140,7 +143,7 @@ export default {
           }
         },
         {
-          title: '成本默认计量单位编码',
+          title: '单位编码',
           checked: true,
           width: '100px',
           dataIndex: 'caComUnitCode',
@@ -225,7 +228,8 @@ export default {
       optionAlertShow: false,
       isCreated: false,
       statusMap: {},
-      unitMap: {}
+      unitMap: {},
+      flagMap: {},
     }
   },
   created () {
@@ -234,7 +238,7 @@ export default {
     this.unitMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SPARE_ADD_UNIT)
     this.policyMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.CSR_POLICY)
     this.planMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.PLAN_METHOD)
-    // this.tableOption()
+    this.flagMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.PROJECT_NEW_AND_OLD)
   },
   methods: {
     tableOption () {