222
schangxiang@126.com
2024-12-23 ac5f3574affb06666b9f3a6b76a961ffa69802e4
LA24030_LuLiPackageLine_Pda/pages/untie/untie.vue
@@ -298,8 +298,9 @@
    <button-modal
      :subShow="true"
      garmenTitle="重置"
     subTitle="确认NG"
      @submit="rest"
      @reset="rest"
      @reset="do_UnlineForNGPackage"
    />
  </view>
</template>
@@ -314,6 +315,7 @@
  onlyUpdateDutyCycle,
  getBhbMaterialList,
  getenumDataList,
  UnlineForNGPackage
} from "../../api/putIn/artificial.js";
export default {
  data() {
@@ -384,6 +386,31 @@
  mounted() {},
  methods: {
     do_UnlineForNGPackage() {
         //debugger
         const params = {
           PackageCode:this.singlist[0].packageCode,
           IsNG:true
         };
        //debugger
         uni.showModal({
           title: "整包NG下线",
           content: "是否确认 整包NG下线?",
           showCancel: true,
           cancelColor: "#333333",
           success: (res) => {
             if (res.confirm) {
               UnlineForNGPackage(params).then((res) => {
                 this.rescode = 200;
                 this.$refs.resmodal.show = true;
                 this.resmessage = "整包NG下线成功";
               });
             } else if (res.cancel) {
             }
           },
         });
       },
    getEnumName(value) {
      const name = this.enumList.find((item) => item.value === value);
      return name ? name.name : "";
@@ -415,6 +442,7 @@
    },
    rest() {
      //alert(11)
      this.warehouse.upi = "";
      this.warehouse.upi = "";
      this.singlist = [];