qymljy 3 yıl önce
ebeveyn
işleme
63cf54e696

+ 1 - 4
src/Form/QuotedPrice/edit.vue

@@ -169,7 +169,7 @@
               </el-form-item>
             </el-col>
             <el-col :span="6">
-              <el-form-item label="联系人:" label-width="90px" prop="contactsname">
+              <el-form-item label="联系人:" label-width="90px" >
                 <el-popover
                     placement="bottom"
                     width="700"
@@ -358,9 +358,6 @@ export default {
         ],
         enterprisename:[
           { required: true, message: '请选择客户', trigger: 'change'},
-        ],
-        contactsname:[
-          { required: true, message: '请选择联系人', trigger: 'change'},
         ]
       },
     }

+ 1 - 1
src/Form/projectChange/add.vue

@@ -4,7 +4,7 @@
     <el-drawer
         title="新建项目"
         :visible.sync="dialogFormVisible"
-        size="25%"
+        size="600px"
         direction="rtl"
         append-to-body
         :show-close="false"

+ 2 - 2
src/Form/projectChange/edit.vue

@@ -4,7 +4,7 @@
     <el-drawer
         title="编辑项目"
         :visible.sync="dialogFormVisible"
-        size="25%"
+        size="600px"
         direction="rtl"
         :show-close="false"
         append-to-body
@@ -89,7 +89,7 @@
         </el-row>
       </div>
       <div class="fixed__btn__panel">
-        <el-button size="small" @click="dialogFormVisible = false" class="normal-btn-width">取 消</el-button>
+        <el-button size="small" @click="dialogFormVisible = false" class="normal-btn-width inline-16">取 消</el-button>
         <duplicateCheck :data="form"></duplicateCheck>
         <el-button size="small" type="warning" @click="onSave" class="normal-btn-width">保 存</el-button>
       </div>

+ 1 - 1
src/HDrpManagement/projectChange/components/duplicateCheck.vue

@@ -19,7 +19,7 @@
         </el-pagination>
       </div>
       <div slot="footer" class="dialog-footer">
-        <el-button type="primary" class="normal-btn-width" size="mini" @click="dialogTableVisible = false" >确 定</el-button>
+        <el-button  type="primary" class="normal-btn-width " size="mini" @click="dialogTableVisible = false" >确 定</el-button>
       </div>
     </el-dialog>
   </div>

+ 0 - 3
src/HDrpManagement/projectChange/modules/modules/andEnterprise/index.vue

@@ -20,9 +20,6 @@
           <div v-if="scope.column.columnname === 'province'">
             <p>{{ scope.column.data.province + '-' + scope.column.data.city + '-' + scope.column.data.county}}</p>
           </div>
-          <div v-else-if="scope.column.columnname === 'important'">
-            <span>{{scope.column.data[scope.column.columnname] === 1 ? '是' : '否'}}</span>
-          </div>
           <div v-else-if="scope.column.columnname === 'operation'">
             <span>{{scope.column.data[scope.column.columnname]}}</span>
           </div>

+ 1 - 4
src/HDrpManagement/projectChange/modules/modules/quotation/modules/add.vue

@@ -153,7 +153,7 @@
               </el-form-item>
             </el-col>
             <el-col   :span="6">
-              <el-form-item label="联系人:" label-width="90px" prop="name">
+              <el-form-item label="联系人:" label-width="90px" >
                 <el-popover
                     placement="bottom"
                     width="580"
@@ -336,9 +336,6 @@ export default {
         ],
         enterprisename:[
           { required: true, message: '请选择客户', trigger: 'change'},
-        ],
-        name:[
-          { required: true, message: '请选择联系人', trigger: 'change'},
         ]
       },
     }

+ 16 - 14
src/HDrpManagement/projectChange/modules/modules/rival/index.vue

@@ -13,25 +13,27 @@
           @clear="listData(params.content.pageNumber= 1)"
           clearable></el-input>
     </div>
-    <tableLayout :layout="tablecols" :data="list" :opwidth="200" :custom="true"  height="calc(100vh - 340px)" >
+    <tableLayout :layout="tablecols" :data="list" :opwidth="200" :custom="true"  >
       <template v-slot:customcol="scope">
-        <p >{{scope.column.data[scope.column.columnname]}}</p>
+        <div v-if="scope.column.columnname === 'important'">
+          <span>{{scope.column.data[scope.column.columnname] === 1 ? '是' : '否'}}</span>
+        </div>
+        <p v-else>{{scope.column.data[scope.column.columnname]?scope.column.data[scope.column.columnname]:'--'}}</p>
       </template>
       <template v-slot:opreation="scope">
       </template>
-      <div style="margin-top:16px;text-align:right">
-        <el-pagination
-            background
-            small
-            @size-change="handleSizeChange"
-            @current-change="handleCurrentChange"
-            :current-page="currentPage"
-            :page-size="params.content.pageSize"
-            layout="total, prev, pager, next, jumper"
-            :total="total">
-        </el-pagination>
-      </div>
     </tableLayout>
+    <div class="container normal-panel" style="text-align:right">
+      <el-pagination
+          background
+          @size-change="handleSizeChange"
+          @current-change="handleCurrentChange"
+          :current-page="currentPage"
+          :page-sizes="[20, 50, 100, 200]"
+          layout="total,sizes, prev, pager, next, jumper"
+          :total="total">
+      </el-pagination>
+    </div>
   </div>
 </template>
 

+ 1 - 1
src/SDrpManagement/QuotedPrice/components/edit/productTable.vue

@@ -2,7 +2,7 @@
   <div>
     <el-button size="small"  type="primary" icon="el-icon-plus" @click="queryProduct">自产品档案添加</el-button>
     <el-drawer
-        title="选择商品"
+        title="产品档案"
         :visible.sync="dialogProductVisible"
         append-to-body
         size="80%"

+ 1 - 1
src/SDrpManagement/QuotedPrice/components/edit/productTableProject.vue

@@ -2,7 +2,7 @@
   <div>
     <el-button size="small"  type="primary" icon="el-icon-plus" @click="queryProduct">自项目产品添加</el-button>
     <el-drawer
-        title="选择商品"
+        title="项目产品"
         :visible.sync="dialogProductVisible"
         append-to-body
         size="80%"

+ 1 - 1
src/SDrpManagement/QuotedPrice/components/productTable.vue

@@ -2,7 +2,7 @@
   <div>
     <el-button size="small"  type="primary" icon="el-icon-plus" @click="onShow">自产品档案添加</el-button>
     <el-drawer
-        title="选择商品"
+        title="产品档案"
         :visible.sync="dialogProductVisible"
         append-to-body
         size="80%"

+ 2 - 2
src/SDrpManagement/QuotedPrice/components/productTableProject.vue

@@ -2,7 +2,7 @@
   <div>
     <el-button size="small"  type="primary" icon="el-icon-plus" @click="onShow">自项目产品添加</el-button>
     <el-drawer
-        title="选择商品"
+        title="项目产品"
         :visible.sync="dialogProductVisible"
         append-to-body
         size="80%"
@@ -169,7 +169,7 @@ export default {
     onShow(){
      /* this.dialogProjectVisible = true*/
       console.log(this.id,"项目编号")
-      this.$emit('checkForm')
+      this.$emit('checkFormProject')
       /*this.productData()*/
 
     },

+ 6 - 2
src/SDrpManagement/QuotedPrice/components/quotedPriceProduct.vue

@@ -13,7 +13,7 @@
       </el-input>
 
       <importExcel style="float: right" @onSuccess="onSuccess" v-if="type === '客户报价'" ref="quoterImport" @checkForm="checkFormImport"></importExcel>
-      <productTableProject style="float: right;margin-right: 10px;margin-bottom: 10px" :id="sa_projectid" @checkForm="checkForm" ref="quoterPriceProject" @productAdd="productData"></productTableProject>
+      <productTableProject style="float: right;margin-right: 10px;margin-bottom: 10px" :id="sa_projectid" @checkFormProject="checkFormProject" ref="quoterPriceProject" @productAdd="productData"></productTableProject>
       <productTable style="float: right;margin-right: 10px;margin-bottom: 10px" :id="sa_projectid" @checkForm="checkForm" ref="quoterPrice" @productAdd="productData"></productTable>
       <delProduct style="float: right;margin-right: 10px" :data="selectDel" @delSuccess="delSuccess"></delProduct>
     </div>
@@ -251,6 +251,7 @@ export default {
       this.total = res.total
       this.totalPrice = 0
       for (var i=0 ;i<this.list.length;i++){
+        console.log(this.list[i].discountrate,"循环折扣")
         this.list[i].discountrate = this.list[i].discountrate * 100
         this.totalPrice = this.totalPrice + this.list[i].qty * this.list[i].price
       }
@@ -305,6 +306,9 @@ export default {
     checkForm(){
       this.$emit('checkForm')
     },
+    checkFormProject(){
+      this.$emit('checkFormProject')
+    },
     checkFormImport(){
       this.$emit('checkFormImport')
     },
@@ -423,7 +427,7 @@ export default {
     }
   },
   mounted() {
-    this.productData()
+    /*this.productData()*/
   }
 }
 </script>

+ 18 - 14
src/SDrpManagement/QuotedPrice/modules/ProjectQuotationAdd.vue

@@ -168,7 +168,7 @@
               </el-form-item>
             </el-col>
             <el-col   :span="6">
-              <el-form-item label="联系人:" label-width="90px" prop="name">
+              <el-form-item label="联系人:" label-width="90px" >
                 <el-popover
                     placement="bottom"
                     width="700"
@@ -243,7 +243,7 @@
         <el-divider></el-divider>
       </div>
       <div style="margin:30px 20px 20px 20px">
-        <quoted_price_product :sa_projectid="form.sa_projectid" :type="form.type" ref="quoterPrice" @checkFormImport="onCheckFormImport" @checkForm="onSubmit" @productData="productDataChange"></quoted_price_product>
+        <quoted_price_product :sa_projectid="form.sa_projectid" :type="form.type" ref="quoterPrice" @checkFormImport="onCheckFormImport" @checkForm="onSubmit" @checkFormProject="onSubmit" @productData="productDataChange"></quoted_price_product>
       </div>
       <div class="fixed__btn__panel">
         <el-button size="small" @click="onClose" class="normal-btn-width">取 消</el-button>
@@ -342,7 +342,7 @@ export default {
         specialOffer:'否',
         sa_quotedpriceid:0,     //sat_notice_classid<=0时 为新增
         sys_enterpriseid: "",
-        contactsid:8,
+        contactsid:0,
         sa_projectid: "0",
         discountrate: 0,
         remarks: "",
@@ -355,13 +355,10 @@ export default {
       },
       rules:{
         projectname:[
-          { required: true, message: '请选择项目', trigger: 'blur,change'},
+          { required: true, message: '请选择项目', trigger: 'change'},
         ],
         enterprisename:[
-          { required: true, message: '请选择客户', trigger: 'blur,change'},
-        ],
-        name:[
-          { required: true, message: '请选择联系人', trigger: 'blur,change'},
+          { required: true, message: '请选择客户', trigger: 'change'},
         ]
       },
     }
@@ -373,15 +370,18 @@ export default {
     },
     /*创建报价单,获取商品信息*/
     onSubmit(){
+      console.log(this.form,"表单123444")
       console.log(this.date)
       if (this.date.length === 0){
         this.form.begdate = ''
         this.form.enddate = ''
+        this.form.sa_quotedpriceid = 0
       }else {
         this.form.begdate = this.date[0]
         this.form.enddate = this.date[1]
+        this.form.sa_quotedpriceid = 0
       }
-      console.log(this.form,"表单")
+      console.log(this.form,"表单123")
       this.$refs.form.validate(async (valid) => {
         if (!valid) return false
         const res = await this.$api.requested({
@@ -389,8 +389,11 @@ export default {
           "version":1,
           "content": this.form
         })
-        this.$refs.quoterPrice.quoterPrice(res.data.sa_quotedpriceid,this.form.type)
-        this.form.sa_quotedpriceid = res.data.sa_quotedpriceid
+        console.log(res,"报价单创建数据")
+        setTimeout(()=>{
+          this.$refs.quoterPrice.quoterPrice(res.data.sa_quotedpriceid,this.form.type)
+          this.form.sa_quotedpriceid = res.data.sa_quotedpriceid
+        },500)
       })
     },
     /*导入创建报价单校验*/
@@ -512,7 +515,7 @@ export default {
       this.form.projectnum = val.projectnum
       this.form.sys_enterpriseid = ''
       this.form.enterprisename = ''
-      this.form.contactsid = ''
+      this.form.contactsid = 0
       this.form.name = ''
       this.form.phonenumber = ''
       this.projectShow = false
@@ -521,7 +524,7 @@ export default {
     customerData(val){
       this.form.sys_enterpriseid = val.sys_enterpriseid
       this.form.enterprisename = val.enterprisename
-      this.form.contactsid = ''
+      this.form.contactsid = 0
       this.form.name = ''
       this.form.phonenumber = ''
       this.customerShow = false
@@ -587,7 +590,8 @@ export default {
     const date = new Date()
     console.log(date)
     this.form.billdate = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate()
-    console.log(this.form)
+    this.form.sa_quotedpriceid = 0
+    console.log(this.form,"保定11111")
   },
   created() {