Просмотр исходного кода

fix(采购订单): 修复委外发货单和收货单的显示条件及文本

liujt 7 месяцев назад
Родитель
Сommit
74ff169e59

+ 7 - 1
src/views/purchasingManage/purchaseOrder/components/addDialog.vue

@@ -1515,16 +1515,22 @@
       },
 
       sourceTypeChange() {
+        // if(this.showReturnRelation) {
+        //   this.form.relationType = '';
+        // }
         this.valueChange();
       },
       handleChangeRelationType(val) {
+        // if(this.showReturnRelation) {
+        //   this.form.relationType = val;
+        // }
         this.valueChange();
       },
       valueChange() {
         this.form.purchasePlanId = '';
         this.form.purchasePlanNo = '';
         this.form.purchasePlanName = '';
-        this.form.relationType = '';
+        // this.form.relationType = '';
 
         this.form.relationId = '';
         this.form.relationCode = '';

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

@@ -162,12 +162,12 @@
                   icon="el-icon-plus"
                   @click="handleCommand('outsourceSend', row)"
                   v-if="
-                    ['3', '4', '5', '6'].includes(row.sourceType) &&
+                    ['3', '4', '5', '6', '8', '9'].includes(row.sourceType) &&
                     [2].includes(row.orderStatus) &&
                     row.progress < 200
                   "
                 >
-                  创建委外发货单
+                  委外发货单
                 </el-link>
                 <el-link
                   type="primary"
@@ -175,12 +175,12 @@
                   icon="el-icon-plus"
                   @click="handleCommand('invoice', row)"
                   v-if="
-                    !['3', '4', '5', '6'].includes(row.sourceType) &&
+                    !['3', '4', '5', '6', '8', '9'].includes(row.sourceType) &&
                     [2].includes(row.orderStatus) &&
                     row.progress < 200
                   "
                 >
-                  创建收货单
+                  收货单
                 </el-link>
                 <el-link
                   type="primary"