Browse Source

货转修改

wengyuwen 4 years ago
parent
commit
7ffe229651
1 changed files with 44 additions and 1 deletions
  1. 44 1
      src/views/warehouseBusiness/goodsTransfer/index.vue

+ 44 - 1
src/views/warehouseBusiness/goodsTransfer/index.vue

@@ -285,7 +285,7 @@
             size="mini"
             type="text"
             icon="el-icon-edit"
-            @click="check(scope.row,0)"
+            @click="check_s(scope.row,0)"
             v-hasPermi="['warehouseBusiness:goodsTransfer:edit']"
           >查看
           </el-button>
@@ -2139,6 +2139,49 @@
         this.relevantAttachments = []
         this.title = '货权转移'
       },
+      check_s(row) {
+        this.disappear = true
+        this.notChange = true
+        this.browseStatus = true
+        const fId = row.fId || this.ids
+        getGoodsTransfer(fId).then((response) => {
+          console.log(response.data.corps[0].createBy)
+          this.Operator = response.data.corps[0].createBy
+          this.form = response.data.warehousebills
+          this.$set(this.form, 'fStltypeid', this.form.fStltypeid + '')
+          this.$set(this.form, 'fFeetunit', Number(this.form.fFeetunit))
+          this.$set(this.form, 'fChargedate', Date.parse(this.form.fChargedate))
+          this.$set(this.form, 'fTrademodeid', this.form.fTrademodeid + '')
+          this.fMblnoOptions = response.data.corps
+          this.KHblnoOptions = response.data.corps
+          this.fWbuOptions = response.data.feesList
+          this.warehouseOptions = response.data.warehouse
+          this.dataList = response.data.warehouseBillsItem
+          for (let list in this.dataList) {
+            if (this.dataList[list].fBillstatus && this.dataList[list].fBillstatus === 6) {
+              this.formBrowseStatus = true
+            }
+            this.$set(this.dataList[list], 'fBsdate', Date.parse(this.dataList[list].fBsdate))
+          }
+          this.goodsOptions = response.data.goodsList
+          if (response.data.warehousebillsfeesDr) {
+            this.warehouseDrList = response.data.warehousebillsfeesDr
+          }
+          if (response.data.warehousebillsfeesCr) {
+            this.warehouseCrList = response.data.warehousebillsfeesCr
+          }
+          if (response.data.enclosures) {
+            this.relevantAttachments = response.data.enclosures;
+          }
+          this.userOptions = response.data.sysUser
+          this.$set(this.form, 'fBsdate', Date.parse(this.form.fBsdate))
+          this.open = true
+          this.title = '修改货存转移'
+          console.log(this.Operator)
+          console.log(this.Lander)
+        })
+      },
+
       // 查看按钮
       check(row) {
         this.disappear = false