소스 검색

取消编辑/修订页面中执行结果保存不能为空的校验

002390 2 년 전
부모
커밋
e4aad2a956
2개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 1
      src/views/purchase/purchase-order/column.js
  2. 2 1
      src/views/purchase/purchase-order/edit/index.vue

+ 5 - 1
src/views/purchase/purchase-order/column.js

@@ -42,7 +42,11 @@ export const TableColumns = [
   { key: "puDeptName", title: "采购部门" },
   // { key: "customer", title: "收货客户" },
   { key: "customerName", title: "收货客户" },
-  { key: "isDeliver", title: "是否发货" },
+  { 
+    key: "isDeliver", 
+    title: "是否发货",
+    inputType: 'Checkbox',
+   },
   {
     key: "isArrival",
     title: "到货超期",

+ 2 - 1
src/views/purchase/purchase-order/edit/index.vue

@@ -164,7 +164,8 @@ export default {
       this.$refs['orderEditForm'].validate(async (valid) => {
         if (valid) {
 
-          if(!this.params['puOrderItemList'].length || !this.params['puOrderExecuteList'].length){
+          // 执行结果在审批之后出现 !this.params['puOrderExecuteList'].length
+          if(!this.params['puOrderItemList'].length ){
 
             this.$message.error('请填写订单行!');
             return false;