Procházet zdrojové kódy

Merge branch 'master' of 121.41.102.225:Nidong/jiufang into hw

mushencc před 3 roky
rodič
revize
4025bd4ff3

+ 21 - 3
src/views/ProductionOrderList/ProductionsOrder/Decorationlist.vue

@@ -1532,9 +1532,27 @@ export default {
         printparamsJsonArray.push({ PTK_CloseConnect: "" });
         data.printparams = printparamsJsonArray;
         // data.printparams = JSON.stringify(printparamsJsonArray);
-        this.test_content = JSON.stringify(data);
-        this.test_url = url;
-        this.test_modal = true;
+        let sub_data = JSON.parse(JSON.stringify(data));
+        sub_data.printparams = JSON.stringify(sub_data.printparams);
+        let _this = this;
+        $.ajax({
+          type: "post",
+          url,
+          data: sub_data,
+          dataType: "json",
+          timeout: 5000,
+          success: function(result) {
+            if (result.retval == "0") {
+              _this.$Message.success("发送成功");
+              _this.getChipDetail();
+            } else {
+              _this.$Message.error("发送失败,返回结果:" + result.msg);
+            }
+          },
+        });
+        // this.test_content = JSON.stringify(data);
+        // this.test_url = url;
+        // this.test_modal = true;
       });
     },
     handleConnectPrinter() {

+ 1 - 1
vue.config.js

@@ -2,7 +2,7 @@ const axios_default_ip =
   process.env.NODE_ENV == "dev"
     ? "http://121.37.173.82:82"
     : process.env.NODE_ENV == "test-prd"
-    ? "http://121.41.102.225:82" //测试服
+    ? "http://121.37.173.82:82" //测试服
     : process.env.NODE_ENV == "prd_other"
     ? "http://121.37.173.82:82" //贝斯特
     : "http://124.71.176.88:82";