Bladeren bron

项目合同新增自产品类别添加功能

qymljy 1 jaar geleden
bovenliggende
commit
56a49b784a

+ 1 - 2
src/HDrpManagement/contractManage/components/itemClass/add.vue

@@ -3,9 +3,8 @@
     <el-button
       size="small"
       type="primary"
-      icon="el-icon-plus"
       @click="onShow"
-      >{{ $t("添加") }}</el-button
+      >{{ $t("自报价单添加") }}</el-button
     >
     <el-drawer
       :title="$t(`添加`)"

+ 5 - 5
src/HDrpManagement/contractManage/components/productClassList/addProduct.vue

@@ -1,10 +1,10 @@
 <template>
   <div>
-    <el-button type="primary" size="small" :disabled="disabled" @click="addBtn">{{$t('添 加')}}</el-button>
+    <el-button type="primary" size="small" :disabled="disabled" @click="addBtn">{{title?$t(title):$t('添 加')}}</el-button>
     <el-drawer append-to-body size="80%" :with-header="false" :visible.sync="drawer" @close="onClose">
       <div class="container ">
         <p class="normal-title normal-margin">{{$t(`产品类别`)}}</p>
-        <div class="drawer__panel">
+        <div class="drawer__panel" style="margin-bottom: 0 !important;">
           <div style="margin-bottom: 10px">
             <uploadAllData
                 style="display: inline-block !important;"
@@ -16,7 +16,7 @@
             <el-button type="primary" class="inline-16" size="small" :disabled="selectProductLength == 0" @click="onSumit">{{$t(`批 量 添 加`)}}</el-button>
             <el-input size="small" style="width:200px;margin-bottom:10px" v-model="params.content.where.condition" :placeholder="`${$t(`编号`)}、${$t(`类别名称`)}、${$t(`品牌`)}`" @clear="getProductList(params.content.pageNumber = 1)" @keyup.native.enter="getProductList(params.content.pageNumber = 1)" clearable></el-input>
           </div>
-          <Table :checkbox="true" height="600" @selectionChange="selectArr" ref="table" id="itemclassid"  v-model="itemno" :layout="tablecols" :data="productList" :custom="true"   @upDateData="upDateData">
+          <Table :checkbox="true"  height="calc(100vh - 220px)" @selectionChange="selectArr" ref="table" id="itemclassid"  v-model="itemno" :layout="tablecols" :data="productList" :custom="true"   @upDateData="upDateData">
             <template v-slot:customcol="scope">
               <div v-if="scope.column.columnname == 'attinfos'">
                 <previewImage
@@ -67,11 +67,11 @@
 
 <script>
 // import Table from './table'
-import Table from '@/components/table/index5'
+import Table from '@/components/table/index6'
 import previewImage from '@/components/previewImage/index'
 import uploadAllData from '@/components/uploadAllData/index'
 export default {
-  props:['disabled','typeName'],
+  props:['disabled','typeName','title'],
   name: '',
   components:{Table,previewImage,uploadAllData},
   data() {

+ 1 - 0
src/HDrpManagement/contractManage/modules/detail.vue

@@ -182,6 +182,7 @@
           <!--    产品类别折扣    -->
           <itemClass ref="itemClass" :data="mainData"  :isLeader="isLeader" >
             <template v-slot:cooperate="scope">
+              <addClass class="inline-16" v-if="tool.checkAuth($route.name,'productClassManage') && mainData.status === '新建' && isLeader" :disabled="mainData.status != '新建' || !isLeader" :typeName="mainData.type" slot="addProduct" @onSuccess="$refs.itemClass.listData()" title="自产品类别添加"  ref="addProduct" @closeDrawer="closeDrawer"/>
               <el-button :disabled="mainData.status !== '新建'" size="small" :type="mainData.status === '新建'?'primary':''" @click="cooperateVisible = true" v-if="tool.checkAuth($route.name,'productClassManage') && isLeader">{{$t('同步合作协议')}}</el-button>
               <el-dialog :title="$t('同步合作协议')" :visible.sync="cooperateVisible" append-to-body width="703px">
                 <span style="color: #8C8C8C;font-size: 14px">{{$t('请选择同步更新经销商/直销客户合作协议产品类别的方式')}}:</span>