浏览代码

停用现货品种

huangbin 4 年之前
父节点
当前提交
5f9f281f83

+ 7 - 8
src/views/information/goods/components/disable/index.vue

@@ -1,7 +1,7 @@
 <template>
-  <!-- 停用客户资料-->
+  <!-- 停用现货品种-->
   <a-modal class="commonModal warehouse-disable"
-           title="停用客户资料"
+           title="停用现货品种"
            v-model:visible="visible"
            centered
            :maskClosable="maskClosableFlag"
@@ -117,8 +117,8 @@ import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
 import { formatValue } from '@/common/methods';
 import { getStatusName } from '@/views/information/custom/setup';
 import { Modal } from 'ant-design-vue';
-import {stopDeliveryGoods} from "@/views/information/goods/components/setup";
-import {ErmcpDeliveryGoodsDetailEx} from "@/services/go/ermcp/goodsInfo/interface";
+import { stopDeliveryGoods } from '@/views/information/goods/components/setup';
+import { ErmcpDeliveryGoodsDetailEx } from '@/services/go/ermcp/goodsInfo/interface';
 
 export default defineComponent({
     name: 'custom-disable',
@@ -139,10 +139,9 @@ export default defineComponent({
                 okText: '确认停用',
                 cancelText: '取消',
                 onOk() {
-                    stopDeliveryGoods(props.selectedRow.data.deliverygoodsid.toString(), loading)
-                    .then(res => {
-                        cancel()
-                    })
+                    stopDeliveryGoods(props.selectedRow.data.deliverygoodsid.toString(), loading).then((res) => {
+                        cancel();
+                    });
                 },
                 onCancel() {
                     console.log('Cancel');

+ 1 - 1
src/views/information/goods/components/rightSpot/index.vue

@@ -113,7 +113,7 @@
       </a-collapse>
     </div>
     <Modify :selctedDeliveryGoods="selctedDeliveryGoods" />
-    <Disable :selctedDeliveryGoods="selctedDeliveryGoods" />
+    <Disable :selectedRow="selctedDeliveryGoods" />
     <SpotDetail />
   </div>
 </template>