222
schangxiang@126.com
2024-12-23 ac5f3574affb06666b9f3a6b76a961ffa69802e4
222
已修改3个文件
41 ■■■■■ 文件已修改
LA24030_LuLiPackageLine_Pda/api/putIn/artificial.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
LA24030_LuLiPackageLine_Pda/components/buttonModal.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
LA24030_LuLiPackageLine_Pda/pages/untie/untie.vue 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
LA24030_LuLiPackageLine_Pda/api/putIn/artificial.js
@@ -259,4 +259,12 @@
        method: 'post',
        data: data
     })
}
export function UnlineForNGPackage(data){
    return request({
        url: `/api/WmsOperationTask/UnlineForNGPackage`,
        method: 'post',
        data: data
     })
}
LA24030_LuLiPackageLine_Pda/components/buttonModal.vue
@@ -8,7 +8,8 @@
        </view>
        <view v-if="subShow" class="flex justify-around transition" style="padding-top: 10rpx;">
            <button class="width95 bg-f18202" @click="$emit('submit')">{{garmenTitle}}</button>
            <button class="width45 bg-f18202" @click="$emit('submit')">{{garmenTitle}}</button>
            <button class="width45 bg-grey" @click="$emit('reset')">整包NG下线</button>
        </view>
        <view v-if="empTytowerShow" class="flex justify-around transition">
            <button class="width45 bg-grey" @click="$emit('reset')">{{cleaningTitle}}</button>
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 = [];