yyb
2 天以前 967de5f211a1e7c5b320e3d54b3df0229e3e13f7
报工页面取工序的自动报告选项
已修改1个文件
63 ■■■■■ 文件已修改
pages/product/report/index.vue 63 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/product/report/index.vue
@@ -74,7 +74,13 @@
          <u-radio name="投料">投料</u-radio>
        </u-radio-group>
      </u-form-item>
      <u-form-item label="工序">
      <u-form-item label="简化物料检查" prop="simplifyMaterials">
        <u-radio-group v-model="form.simplifyMaterials" :disabled="subdisabled || simplifyDisabled" @change="radioChange">
          <u-radio name="true">是</u-radio>
          <u-radio name="false">否</u-radio>
        </u-radio-group>
      </u-form-item>
<!--      <u-form-item label="工序">
        <u-checkbox-group>
          <u-checkbox
            :name="item.name"
@@ -87,7 +93,7 @@
            {{ item.name }}
          </u-checkbox>
        </u-checkbox-group>
      </u-form-item>
      </u-form-item> -->
      <u-form-item label="产出列表" :border-bottom="false"></u-form-item>
    </u-form>
    <view class="wrap">
@@ -215,18 +221,19 @@
  },
  data() {
    return {
      checkboxList: [
        {
          name: "工序的自动报告",
          value: false,
          disabled: false,
        },
        {
          name: "简化物料检查",
          value: false,
          disabled: false,
        },
      ],
        simplifyDisabled:false,
      // checkboxList: [
      //   {
      //     name: "工序的自动报告",
      //     value: false,
      //     disabled: false,
      //   },
      //   {
      //     name: "简化物料检查",
      //     value: false,
      //     disabled: false,
      //   },
      // ],
      InventoryReceiptList: [],
      form: {
        workstationId: "",
@@ -242,8 +249,8 @@
        productType: "dep",
        receive: "mo",
        materialCost: "",
        autoReport: false,
        simplifyMaterials: false,
        // autoReport: false,
        simplifyMaterials: 'false',
      },
      rules: {
        work: [
@@ -419,14 +426,14 @@
        });
    },
    // 多选处理
    changeCheckbox(val) {
      if (val.name === "工序的自动报告") {
        this.form.autoReport = val.value;
      }
      if (val.name === "简化物料检查") {
        this.form.simplifyMaterials = val.value;
      }
    },
    // changeCheckbox(val) {
      // if (val.name === "工序的自动报告") {
      //   this.form.autoReport = val.value;
      // }
      // if (val.name === "简化物料检查") {
      //   this.form.simplifyMaterials = val.value;
      // }
    // },
    handleUpdate() {
      this.subdisabled = true;
      this.getHandelList();
@@ -469,15 +476,15 @@
        Jianqtyfinished: val.qtyRequired - val.qtyFinished,
        proposedLocation: val.proposedLocation,
        productType: "dep",
        receive: "mo", // 复选框组的值
        receive: "mo",
        materialCost: val.materialCost,
        autoReport: false,
        simplifyMaterials: false,
        // autoReport: false,
        simplifyMaterials: 'false',
      };
      this.checkboxList[1].value = false;
      this.checkboxList[0].value = false;
      if (this.form.materialCost == "倒冲") {
        this.checkboxList[1].disabled = true;
        this.simplifyDisabled = true;
      }
    },
  },