|  | @@ -135,7 +135,6 @@
 | 
	
		
			
				|  |  |          <el-select
 | 
	
		
			
				|  |  |            v-model="queryParams.fWarehouseid"
 | 
	
		
			
				|  |  |            filterable
 | 
	
		
			
				|  |  | -          :disabled="browseStatus"
 | 
	
		
			
				|  |  |            remote
 | 
	
		
			
				|  |  |            clearable
 | 
	
		
			
				|  |  |            style="width: 80%"
 | 
	
	
		
			
				|  | @@ -349,7 +348,7 @@
 | 
	
		
			
				|  |  |                  v-model="form.fCorpid"
 | 
	
		
			
				|  |  |                  filterable
 | 
	
		
			
				|  |  |                  remote
 | 
	
		
			
				|  |  | -                :disabled="notChange"
 | 
	
		
			
				|  |  | +                :disabled="notChange || formBrowseStatus"
 | 
	
		
			
				|  |  |                  @change="changefCorpid(form)"
 | 
	
		
			
				|  |  |                  style="width: 80%"
 | 
	
		
			
				|  |  |                  :remote-method="corpsRemoteMethod"
 | 
	
	
		
			
				|  | @@ -369,7 +368,7 @@
 | 
	
		
			
				|  |  |                <el-select
 | 
	
		
			
				|  |  |                  v-model="form.fStltypeid"
 | 
	
		
			
				|  |  |                  placeholder="请选择结算方式"
 | 
	
		
			
				|  |  | -                :disabled="notChange"
 | 
	
		
			
				|  |  | +                :disabled="notChange || formBrowseStatus"
 | 
	
		
			
				|  |  |                  clearable
 | 
	
		
			
				|  |  |                  style="width: 80%"
 | 
	
		
			
				|  |  |                >
 | 
	
	
		
			
				|  | @@ -387,7 +386,7 @@
 | 
	
		
			
				|  |  |                <el-input
 | 
	
		
			
				|  |  |                  v-model="form.fMblno"
 | 
	
		
			
				|  |  |                  style="width: 80%"
 | 
	
		
			
				|  |  | -                :disabled="notChange"
 | 
	
		
			
				|  |  | +                :disabled="notChange || formBrowseStatus"
 | 
	
		
			
				|  |  |                  placeholder="手工输入"
 | 
	
		
			
				|  |  |                />
 | 
	
		
			
				|  |  |              </el-form-item>
 | 
	
	
		
			
				|  | @@ -400,7 +399,7 @@
 | 
	
		
			
				|  |  |                  v-model="form.fBsdate"
 | 
	
		
			
				|  |  |                  style="width: 80%"
 | 
	
		
			
				|  |  |                  type="date"
 | 
	
		
			
				|  |  | -                :disabled="notChange"
 | 
	
		
			
				|  |  | +                :disabled="notChange || formBrowseStatus"
 | 
	
		
			
				|  |  |                  @change="changefBsdate"
 | 
	
		
			
				|  |  |                  value-format="timestamp"
 | 
	
		
			
				|  |  |                  placeholder="业务日期"
 | 
	
	
		
			
				|  | @@ -414,7 +413,7 @@
 | 
	
		
			
				|  |  |                  v-model="form.fStorekeeper"
 | 
	
		
			
				|  |  |                  filterable
 | 
	
		
			
				|  |  |                  remote
 | 
	
		
			
				|  |  | -                :disabled="notChange"
 | 
	
		
			
				|  |  | +                :disabled="notChange || formBrowseStatus"
 | 
	
		
			
				|  |  |                  style="width: 80%"
 | 
	
		
			
				|  |  |                  :remote-method="userRemoteMethod"
 | 
	
		
			
				|  |  |                  placeholder="请输入模糊查找"
 | 
	
	
		
			
				|  | @@ -435,7 +434,7 @@
 | 
	
		
			
				|  |  |                  filterable
 | 
	
		
			
				|  |  |                  remote
 | 
	
		
			
				|  |  |                  @change="changefWarehouseid(form)"
 | 
	
		
			
				|  |  | -                :disabled="notChange"
 | 
	
		
			
				|  |  | +                :disabled="notChange || formBrowseStatus"
 | 
	
		
			
				|  |  |                  style="width: 80%"
 | 
	
		
			
				|  |  |                  :remote-method="warehouseRemoteMethod"
 | 
	
		
			
				|  |  |                  placeholder="请输入模糊查找"
 | 
	
	
		
			
				|  | @@ -466,7 +465,7 @@
 | 
	
		
			
				|  |  |                <el-select
 | 
	
		
			
				|  |  |                  v-model="form.fIfdamage"
 | 
	
		
			
				|  |  |                  placeholder="请选择是否破损"
 | 
	
		
			
				|  |  | -                :disabled="notChange"
 | 
	
		
			
				|  |  | +                :disabled="notChange || formBrowseStatus"
 | 
	
		
			
				|  |  |                  clearable
 | 
	
		
			
				|  |  |                  style="width: 80%"
 | 
	
		
			
				|  |  |                >
 | 
	
	
		
			
				|  | @@ -484,7 +483,7 @@
 | 
	
		
			
				|  |  |                <el-select
 | 
	
		
			
				|  |  |                  v-model="form.fIfweigh"
 | 
	
		
			
				|  |  |                  placeholder="请选择是否过磅"
 | 
	
		
			
				|  |  | -                :disabled="notChange"
 | 
	
		
			
				|  |  | +                :disabled="notChange || formBrowseStatus"
 | 
	
		
			
				|  |  |                  clearable
 | 
	
		
			
				|  |  |                  style="width: 80%"
 | 
	
		
			
				|  |  |                >
 | 
	
	
		
			
				|  | @@ -504,7 +503,7 @@
 | 
	
		
			
				|  |  |                <el-select
 | 
	
		
			
				|  |  |                  v-model="form.fTrademodeid"
 | 
	
		
			
				|  |  |                  placeholder="请选择贸易方式"
 | 
	
		
			
				|  |  | -                :disabled="notChange"
 | 
	
		
			
				|  |  | +                :disabled="notChange || formBrowseStatus"
 | 
	
		
			
				|  |  |                  clearable
 | 
	
		
			
				|  |  |                  style="width: 80%"
 | 
	
		
			
				|  |  |                >
 | 
	
	
		
			
				|  | @@ -543,7 +542,7 @@
 | 
	
		
			
				|  |  |              <el-input
 | 
	
		
			
				|  |  |                style="width: 100%"
 | 
	
		
			
				|  |  |                v-model="form.remark"
 | 
	
		
			
				|  |  | -              :disabled="notChange"
 | 
	
		
			
				|  |  | +              :disabled="notChange || formBrowseStatus"
 | 
	
		
			
				|  |  |                type="textarea"
 | 
	
		
			
				|  |  |                placeholder="请输入内容"
 | 
	
		
			
				|  |  |              />
 | 
	
	
		
			
				|  | @@ -555,7 +554,7 @@
 | 
	
		
			
				|  |  |                <el-form-item label="仓库联系人" prop="fContacts">
 | 
	
		
			
				|  |  |                  <el-input
 | 
	
		
			
				|  |  |                    v-model="form.fContacts"
 | 
	
		
			
				|  |  | -                  :disabled="notChange"
 | 
	
		
			
				|  |  | +                  :disabled="notChange || formBrowseStatus"
 | 
	
		
			
				|  |  |                    style="width: 80%"
 | 
	
		
			
				|  |  |                    placeholder="仓库联系人"
 | 
	
		
			
				|  |  |                  />
 | 
	
	
		
			
				|  | @@ -565,7 +564,7 @@
 | 
	
		
			
				|  |  |                <el-form-item label="仓库电话" prop="ftel">
 | 
	
		
			
				|  |  |                  <el-input
 | 
	
		
			
				|  |  |                    v-model="form.fTel"
 | 
	
		
			
				|  |  | -                  :disabled="notChange"
 | 
	
		
			
				|  |  | +                  :disabled="notChange || formBrowseStatus"
 | 
	
		
			
				|  |  |                    style="width: 80%"
 | 
	
		
			
				|  |  |                    placeholder="请输仓库入电话"
 | 
	
		
			
				|  |  |                  />
 | 
	
	
		
			
				|  | @@ -1548,10 +1547,10 @@
 | 
	
		
			
				|  |  |          </el-button>-->
 | 
	
		
			
				|  |  |          <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
 | 
	
		
			
				|  |  |          <approval-comments v-if="addOrUpdateVisib" ref="ApprovalComments" @refreshDataList="returnData"></approval-comments>
 | 
	
		
			
				|  |  | +        <el-button type="primary" v-if="notChange" @click="addOrUpdateHandle()">查看审批流</el-button>
 | 
	
		
			
				|  |  |          <el-button v-if="approve === true" @click="goApproval">审批</el-button>
 | 
	
		
			
				|  |  |          <el-button type="danger" :disabled="disappear" v-if="form.fBillstatus == '4' && Operator == Lander" @click="backApproval">撤销审批</el-button>
 | 
	
		
			
				|  |  |          <el-button type="success" @click="backrRconciliation" v-if="form.fBillstatus == '6'">撤销请核</el-button>
 | 
	
		
			
				|  |  | -        <el-button type="primary" v-if="notChange" @click="addOrUpdateHandle()">查看审批流</el-button>
 | 
	
		
			
				|  |  |          <el-button type="primary" :disabled="browseStatus" @click="saveForm">保 存</el-button>
 | 
	
		
			
				|  |  |          <el-button
 | 
	
		
			
				|  |  |            style="background-color: #008000; color: #fff"
 | 
	
	
		
			
				|  | @@ -2593,15 +2592,19 @@ export default {
 | 
	
		
			
				|  |  |      // 新增作业费协议
 | 
	
		
			
				|  |  |      addAgreement(status) {
 | 
	
		
			
				|  |  |        this.costStatus = status
 | 
	
		
			
				|  |  | +      if (this.dataList.length === 0 || !this.dataList[0].fGoodsid) {
 | 
	
		
			
				|  |  | +        this.$message({ message: "请维护库存明细,或第一行品名", type: "warning", });
 | 
	
		
			
				|  |  | +        return false
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |        if (!this.form.fCorpid) {
 | 
	
		
			
				|  |  |          this.$message({ message: "请维护货权方", type: "warning", });
 | 
	
		
			
				|  |  | -      } else {
 | 
	
		
			
				|  |  | -        this.whgenlegList = [];
 | 
	
		
			
				|  |  | -        this.dialogWhgenlegList = [];
 | 
	
		
			
				|  |  | -        this.whgenlegTotal = 0;
 | 
	
		
			
				|  |  | -        this.warehousingagreements = true;
 | 
	
		
			
				|  |  | -        this.getWhgenlegListt();
 | 
	
		
			
				|  |  | +        return false
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | +      this.whgenlegList = []
 | 
	
		
			
				|  |  | +      this.dialogWhgenlegList = []
 | 
	
		
			
				|  |  | +      this.whgenlegTotal = 0
 | 
	
		
			
				|  |  | +      this.warehousingagreements = true
 | 
	
		
			
				|  |  | +      this.getWhgenlegListt()
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      // 新增仓储费协议
 | 
	
		
			
				|  |  |      addStorages() {
 | 
	
	
		
			
				|  | @@ -2625,8 +2628,13 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      // 查询作业费信息
 | 
	
		
			
				|  |  |      getWhgenlegListt() {
 | 
	
		
			
				|  |  | -      this.queryParams.fLineno = this.form.fCorpid;
 | 
	
		
			
				|  |  | -      operationAgreement(this.queryParams).then((response) => {
 | 
	
		
			
				|  |  | +      let data = {
 | 
	
		
			
				|  |  | +        pageNum:1,
 | 
	
		
			
				|  |  | +        pageSize:10,
 | 
	
		
			
				|  |  | +        fLineno:this.form.fCorpid,
 | 
	
		
			
				|  |  | +        fFeeid:this.dataList[0].fGoodsid
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      operationAgreement(data).then((response) => {
 | 
	
		
			
				|  |  |          this.tasklegList = response.rows;
 | 
	
		
			
				|  |  |          this.whgenlegTotal = response.total;
 | 
	
		
			
				|  |  |        });
 | 
	
	
		
			
				|  | @@ -3195,7 +3203,6 @@ export default {
 | 
	
		
			
				|  |  |        this.detailsHidden = false;
 | 
	
		
			
				|  |  |        let data = row || this.ids;
 | 
	
		
			
				|  |  |        getStockTransfer(data.fId).then((response) => {
 | 
	
		
			
				|  |  | -        console.log(response.data.corps[0].createBy)
 | 
	
		
			
				|  |  |          this.Operator = response.data.corps[0].createBy
 | 
	
		
			
				|  |  |          if (response.data.warehousebills) {
 | 
	
		
			
				|  |  |            this.form = response.data.warehousebills;
 | 
	
	
		
			
				|  | @@ -3346,8 +3353,6 @@ export default {
 | 
	
		
			
				|  |  |        this.detailsHidden = false;
 | 
	
		
			
				|  |  |        let data = row || this.ids;
 | 
	
		
			
				|  |  |        getStockTransfer(data.fId).then((response) => {
 | 
	
		
			
				|  |  | -        console.log(response)
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |          if (response.data.warehousebills) {
 | 
	
		
			
				|  |  |            this.form = response.data.warehousebills;
 | 
	
		
			
				|  |  |            this.$set(this.form, "fEta", Date.parse(this.form.fEta));
 | 
	
	
		
			
				|  | @@ -3619,29 +3624,20 @@ export default {
 | 
	
		
			
				|  |  |            formData.append("warehousebillsfeesCr", JSON.stringify(this.warehouseCrList));
 | 
	
		
			
				|  |  |            formData.append("warehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
 | 
	
		
			
				|  |  |            addWhgenleg(formData).then((response) => {
 | 
	
		
			
				|  |  | -            this.fid = response.data.fPid;
 | 
	
		
			
				|  |  | -            // 暂时注释掉,后续可能会加回来 仓储费得出的明细
 | 
	
		
			
				|  |  | -            /* this.fWbuOptions = response.data.fees;
 | 
	
		
			
				|  |  | -            let warehousebillsfees = response.data.warehousebillsfees;
 | 
	
		
			
				|  |  | -            for (let fees in warehousebillsfees) {
 | 
	
		
			
				|  |  | -              this.$set(warehousebillsfees[fees], "fFeeid", warehousebillsfees[fees].fFeeid + "");
 | 
	
		
			
				|  |  | -              this.$set(warehousebillsfees[fees], "fCorpid", warehousebillsfees[fees].fCorpid + "");
 | 
	
		
			
				|  |  | -              this.$set(warehousebillsfees[fees], "fFeeUnitid", warehousebillsfees[fees].fFeeUnitid + "");
 | 
	
		
			
				|  |  | -              this.warehouseDrList.push(warehousebillsfees[fees]);
 | 
	
		
			
				|  |  | -            } */
 | 
	
		
			
				|  |  | +            this.fid = response.data.fPid
 | 
	
		
			
				|  |  |              this.dataWithdrawList = []
 | 
	
		
			
				|  |  |              this.dataListSelection = []
 | 
	
		
			
				|  |  | -            this.msgSuccess("调拨成功");
 | 
	
		
			
				|  |  | -            this.$refs.tableList.clearSelection();
 | 
	
		
			
				|  |  | -            this.formBrowseStatus = true;
 | 
	
		
			
				|  |  | +            this.msgSuccess('调拨成功')
 | 
	
		
			
				|  |  | +            this.$refs.tableList.clearSelection()
 | 
	
		
			
				|  |  | +            this.formBrowseStatus = true
 | 
	
		
			
				|  |  |              for (let li in listSelection) {
 | 
	
		
			
				|  |  |                for (let i in this.dataList) {
 | 
	
		
			
				|  |  |                  if (listSelection[li].fId === this.dataList[i].fId) {
 | 
	
		
			
				|  |  | -                  this.$set(this.dataList[i], "fBillstatus", 6);
 | 
	
		
			
				|  |  | +                  this.$set(this.dataList[i], 'fBillstatus', 6)
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -          });
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 |