Explorar o código

优化入库页面

阿伏兔 %!s(int64=4) %!d(string=hai) anos
pai
achega
3a0bcbc2aa
Modificáronse 1 ficheiros con 5 adicións e 31 borrados
  1. 5 31
      src/views/warehouseBusiness/inStock/index.vue

+ 5 - 31
src/views/warehouseBusiness/inStock/index.vue

@@ -819,7 +819,7 @@
           <el-button type="warning" prop="打印" @click="showEditDialog_s"
             >入库单
           </el-button>
-          <!-- 
+          <!--
           <el-button
             :disabled="browseStatus"
             type="primary"
@@ -4049,40 +4049,14 @@ export default {
               "tEnclosure",
               JSON.stringify(this.relevantAttachments)
             );
-            for (let li in this.dataListSelection) {
-              this.dataListSelection[li].fBillstatus = 30;
-            }
+            let dataSelection = JSON.parse(JSON.stringify(this.dataListSelection))
             if (!this.form.fId) {
               this.form.fId = this.fid;
             }
             disChargelist(formData).then((response) => {
-              for (let li in this.dataListSelection) {
-                for (let i in this.dataList) {
-                  let fQty =
-                    this.dataList[i].fQty === this.dataListSelection[li].fQty;
-                  let fBsdate =
-                    this.dataList[i].fBsdate ===
-                    this.dataListSelection[li].fBsdate;
-                  let fGoodsid =
-                    this.dataList[i].fGoodsid ===
-                    this.dataListSelection[li].fGoodsid;
-                  let fcntrtype =
-                    this.dataList[i].fcntrtype ===
-                    this.dataListSelection[li].fcntrtype;
-                  let fNetweight =
-                    this.dataList[i].fNetweight ===
-                    this.dataListSelection[li].fNetweight;
-                  let fGrossweight =
-                    this.dataList[i].fGrossweight ===
-                    this.dataListSelection[li].fGrossweight;
-                  if (
-                    fBsdate &&
-                    fGoodsid &&
-                    fcntrtype &&
-                    fGrossweight &&
-                    fNetweight &&
-                    fQty
-                  ) {
+              for (let dt in dataSelection) {
+                for (let li in this.dataList) {
+                  if (this.dataList[li].fId === dataSelection.fId) {
                     this.$set(this.dataList[i], "fBillstatus", 30);
                   }
                 }