Browse Source

销售报价单-附件字段修改/foraData初始化修改/船子表删行修改/添加提交,取消提交权限

jingbb 5 months ago
parent
commit
f07970b40e

+ 3 - 3
src/views/saleCode/saleInquiryForm/SaleInquiryFormList.vue

@@ -138,12 +138,12 @@
           <a-button type="primary" v-auth="'saleCode:sale_inquiry_form:add'"  @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增(add)</a-button>
           <a-button  type="primary" v-auth="'saleCode:sale_inquiry_form:exportXls'"  preIcon="ant-design:export-outlined" @click="onExportXls"> 导出(export)</a-button>
           <a-button  type="primary"  @click="setStatus"> 设置其他状态(set other status)</a-button>
-          <a-button  type="primary"  @click="submit"> 提交(submit)</a-button>
-          <a-button  type="primary"  @click="cancelSubmit"> 取消提交(cancelSubmit)</a-button>
+          <a-button  type="primary"  @click="submit" v-auth="'saleCode:sale_inquiry_form:submitBatch'"> 提交(submit)</a-button>
+          <a-button  type="primary"  @click="cancelSubmit" v-auth="'saleCode:sale_inquiry_form:returnSubmitBatch'"> 取消提交(cancelSubmit)</a-button>
           <a-dropdown v-if="selectedRowKeys.length > 0">
               <template #overlay>
                 <a-menu>
-                  <a-menu-item key="1" @click="batchHandleDelete">
+                  <a-menu-item key="1" @click="batchHandleDelete"  v-auth="'saleCode:sale_inquiry_form:deleteBatch'">
                     <Icon icon="ant-design:delete-outlined"></Icon>
                     删除(delete)
                   </a-menu-item>

+ 6 - 5
src/views/saleCode/saleInquiryForm/components/SaleInquiryFormForm.vue

@@ -87,7 +87,7 @@
 						</a-col>
 						<a-col :span="12">
 							<a-form-item label="附件(attachs)" v-bind="validateInfos.attachs" id="SaleInquiryFormForm-attachs" name="attachs">
-								<JUpload v-model:value="formData.attachsn"></JUpload>
+								<JUpload v-model:value="formData.attachs"></JUpload>
 							</a-form-item>
 						</a-col>
           </a-row>
@@ -226,12 +226,13 @@
         billDate: moment(new Date()).format('YYYY-MM-DD'),   
         billCode: '',   
         inquiryProject: '',   
-        inquiryCustomer: '',   
+        projectName:"",
+        inquiryCustomer: '', 
+        customerName:'',  
         inquiryPlatform: '',   
         customerInquiryNumber: '',   
         inquiryPeriodEnd: '',   
-        inquiryPeriodBegin: '',   
-        busynessType: '',   
+        inquiryPeriodBegin: '',     
         priority: '',   
         productionClass: '',   
         model: '',   
@@ -356,7 +357,7 @@
         formData[key] = value;
       }
       async function handleDelete(prop) {
-        var newArray = [...saleInquiryFormProductTable.dataSource]
+        var newArray = [...saleInquiryFormShipTable.dataSource]
         newArray.splice(prop.rowIndex, 1)
         saleInquiryFormShipTable.dataSource = newArray 
       }