Bladeren bron

配置是否根据物流信息修改订单状态 默认是

ct 6 dagen geleden
bovenliggende
commit
ca0c0d6b55
2 gewijzigde bestanden met toevoegingen van 19 en 3 verwijderingen
  1. 2 2
      src/views/his/storeOrder/order1.vue
  2. 17 1
      src/views/system/config/config.vue

+ 2 - 2
src/views/his/storeOrder/order1.vue

@@ -1243,7 +1243,7 @@ export default {
     // 设置erp账户
     showErpAccountSetDialog() {
       this.erpAccountDialog.open = true;
-      this.erpAccountDialog.loading = true;
+      // this.erpAccountDialog.loading = true;
       this.erpSettingType = 'set'
       // this.getErpAccountList();
       this.calculateOrderSummary();
@@ -1251,7 +1251,7 @@ export default {
     //显示ERP账户选择对话框
     showErpAccountDialog() {
       this.erpAccountDialog.open = true;
-      this.erpAccountDialog.loading = true;
+      // this.erpAccountDialog.loading = true;
       this.erpSettingType = 'push'
       // this.getErpAccountList();
       this.calculateOrderSummary();

+ 17 - 1
src/views/system/config/config.vue

@@ -327,6 +327,15 @@
               <el-input-number  v-model="form7.followRate" :min="0" :max="1000"    ></el-input-number>
             </el-tooltip>
           </el-form-item>
+          <el-form-item  label="是否需要根据物流信息更新订单完成状态" prop="followRate">
+            <el-switch
+              v-model="form7.isUpdateOrder"
+              active-color="#13ce66"
+              inactive-color="#ff4949"
+              :active-value=1
+              :inactive-value=0>
+            </el-switch>
+          </el-form-item>
          <div   class="footer">
             <el-button type="primary" @click="submitForm7">提  交</el-button>
           </div>
@@ -1723,7 +1732,14 @@ export default {
               });
           }
           if(key=="his.store"){
-              this.form7 =JSON.parse(response.data.configValue);
+              // this.form7 =JSON.parse(response.data.configValue);
+              const parsed = JSON.parse(response.data.configValue);
+              if (parsed.isUpdateOrder != null) {
+                parsed.isUpdateOrder = Number(parsed.isUpdateOrder);
+              } else {
+                parsed.isUpdateOrder = 1; // 默认值
+              }
+              this.form7 = parsed
           }
           if(key=="his.package"){
               this.form8 =JSON.parse(response.data.configValue);