yyb
2026-04-27 e8bdfff302459126b01a6c61176efcf4597f2860
pages/wareHouse/nuclearScale/createwriteoffform.vue
@@ -538,15 +538,16 @@
     */
    fetchForkliftOperators() {
      this.$u.api
        .dictData({
          dictType: "forklift",
        .NuclearScaleEntry.listStaff({
          postNames: ["叉车工"],
        })
        .then((res) => {
          if (res.code === 0 && res.data.length > 0) {
            res.data.forEach((i) => {
          const list = res?.data?.records || res?.data || [];
          if (res.code === 0 && Array.isArray(list) && list.length > 0) {
            list.forEach((i) => {
              const obj = Object.assign({
                label: i.label,
                value: i.label,
                label: i.staffName,
                value: i.staffName,
              });
              this.checkboxList.push(obj);
            });
@@ -571,15 +572,16 @@
     */
    fetchWeighmen() {
      this.$u.api
        .dictData({
          dictType: "weighing",
        .NuclearScaleEntry.listStaff({
          postNames: ["司磅员"],
        })
        .then((res) => {
          if (res.code === 0 && res.data.length > 0) {
            res.data.forEach((i) => {
          const list = res?.data?.records || res?.data || [];
          if (res.code === 0 && Array.isArray(list) && list.length > 0) {
            list.forEach((i) => {
              const obj = Object.assign({
                label: i.label,
                value: i.label,
                label: i.staffName,
                value: i.staffName,
              });
              this.weighmanList.push(obj);
            });