Răsfoiți Sursa

采购订单优化:调整创建收货单条件,新增是否来料检验列并格式化显示

yusheng 10 luni în urmă
părinte
comite
175548f345

+ 1 - 1
src/views/purchasingManage/purchaseOrder/index.vue

@@ -154,7 +154,7 @@
                   @click="handleCommand('invoice', row)"
                   v-if="
                     !['3', '4', '5', '6'].includes(row.sourceType) &&
-                    [2].includes(row.orderStatus)
+                    [2].includes(row.orderStatus)&&row.progress<200
                   "
                 >
                   创建收货单

+ 12 - 4
src/views/purchasingManage/purchaseOrder/invoice/components/detailDialog.vue

@@ -50,7 +50,6 @@
             <el-form-item label="附件:" prop="receiveFiles">
               <fileMain v-model="form.receiveFiles" type="view"></fileMain>
             </el-form-item>
-          
           </el-col>
 
           <el-col :span="8">
@@ -95,7 +94,7 @@
             </el-form-item>
             <el-form-item label="质检合格率:" prop="qmsPassRate">
               <el-input v-model="form.qmsPassRate" disabled>
-              <template #append>%</template>
+                <template #append>%</template>
               </el-input>
             </el-form-item>
           </el-col>
@@ -195,7 +194,7 @@
         },
         rules: {},
         detailData: {},
-        columnsVersion:1
+        columnsVersion: 1
       };
     },
     created() {
@@ -205,7 +204,7 @@
     computed: {
       columns() {
         return (v) => {
-          let columnsVersion=this.columnsVersion
+          let columnsVersion = this.columnsVersion;
 
           return [
             {
@@ -511,6 +510,15 @@
               align: 'center',
               show: v != 2
             },
+            {
+              width: 120,
+              prop: 'isComeCheck',
+              label: '是否来料检验',
+              align: 'center',
+              formatter: (_row, _column, cellValue) => {
+                return _row.isComeCheck == 1 ? '是' : '否';
+              }
+            },
             {
               width: 130,
               prop: 'technicalAnswerName',

+ 10 - 0
src/views/purchasingManage/purchaseOrder/invoice/components/inventoryTable.vue

@@ -741,6 +741,16 @@
             slot: 'guaranteePeriodDeadline',
             align: 'center'
           },
+          {
+            width: 120,
+            prop: 'isComeCheck',
+            label: '是否来料检验',
+            align: 'center',
+            formatter: (_row, _column, cellValue) => {
+              return _row.isComeCheck == 1 ? '是' : '否';
+            }
+          },
+
           {
             width: 130,
             prop: 'technicalAnswerName',