|  | @@ -138,9 +138,9 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <el-table v-loading="loading" :data="agreementList" @selection-change="handleSelectionChange">
 | 
	
		
			
				|  |  |        <el-table-column type="selection" width="55" align="center"/>
 | 
	
		
			
				|  |  | -      <el-table-column label="合同编号" align="center" prop="fContractno"/>
 | 
	
		
			
				|  |  |        <el-table-column label="客户名称" align="center" prop="fCorpid"/>
 | 
	
		
			
				|  |  | -      <el-table-column label="货物品名" align="center" prop="fGoodsid"/>
 | 
	
		
			
				|  |  | +      <el-table-column label="协议编号" align="center" prop="fContractno"/>
 | 
	
		
			
				|  |  | +      <el-table-column label="费用名称" align="center" prop="fFeeid"/>
 | 
	
		
			
				|  |  |        <el-table-column label="有效期起" align="center" prop="fBegindate" width="180">
 | 
	
		
			
				|  |  |          <template slot-scope="scope">
 | 
	
		
			
				|  |  |            <span>{{ parseTime(scope.row.fBegindate, '{y}-{m}-{d}') }}</span>
 | 
	
	
		
			
				|  | @@ -216,30 +216,8 @@
 | 
	
		
			
				|  |  |            </el-select>
 | 
	
		
			
				|  |  |          </el-form-item>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        <el-form-item label="货物品名" prop="fGoodsid">
 | 
	
		
			
				|  |  | -<!--          <el-input v-model="form.fGoodsid" placeholder="请输入货物品名" style="width: 200px"/>-->
 | 
	
		
			
				|  |  | -          <el-select
 | 
	
		
			
				|  |  | -            v-model="form.fGoodsid"
 | 
	
		
			
				|  |  | -            filterable
 | 
	
		
			
				|  |  | -            remote
 | 
	
		
			
				|  |  | -            clearable
 | 
	
		
			
				|  |  | -            style="width: 200px"
 | 
	
		
			
				|  |  | -            :remote-method="goodsRemoteMethod"
 | 
	
		
			
				|  |  | -            @keyup.enter.native="handleQuery"
 | 
	
		
			
				|  |  | -            placeholder="请输入货物品名"
 | 
	
		
			
				|  |  | -          >
 | 
	
		
			
				|  |  | -            <el-option
 | 
	
		
			
				|  |  | -              v-for="(dict, index) in goodsOptions"
 | 
	
		
			
				|  |  | -              :key="index.fId"
 | 
	
		
			
				|  |  | -              :label="dict.fName"
 | 
	
		
			
				|  |  | -              :value="dict.fId"
 | 
	
		
			
				|  |  | -            ></el-option>
 | 
	
		
			
				|  |  | -          </el-select>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        </el-form-item>
 | 
	
		
			
				|  |  | -        <el-form-item label="制单部门" prop="fDeptid">
 | 
	
		
			
				|  |  | -          <el-input v-model="form.fDeptid" :disabled="true" placeholder="请输入制单部门" style="width: 200px"/>
 | 
	
		
			
				|  |  | +        <el-form-item label="制单部门">
 | 
	
		
			
				|  |  | +          <el-input v-model="deptName" :disabled="true" placeholder="请输入制单部门" style="width: 200px"/>
 | 
	
		
			
				|  |  |          </el-form-item>
 | 
	
		
			
				|  |  |          <el-form-item label="有效期起" prop="fBegindate">
 | 
	
		
			
				|  |  |            <el-date-picker clearable size="small" style="width: 200px"
 | 
	
	
		
			
				|  | @@ -259,10 +237,21 @@
 | 
	
		
			
				|  |  |            >
 | 
	
		
			
				|  |  |            </el-date-picker>
 | 
	
		
			
				|  |  |          </el-form-item>
 | 
	
		
			
				|  |  | -        <el-form-item label="合同编号" prop="fContractno">
 | 
	
		
			
				|  |  | -          <el-input v-model="form.fContractno" placeholder="请输入合同编号" style="width: 200px"/>
 | 
	
		
			
				|  |  | +        <el-form-item label="协议编号" prop="fContractno">
 | 
	
		
			
				|  |  | +          <el-input v-model="form.fContractno" placeholder="请输入协议编号" style="width: 200px"/>
 | 
	
		
			
				|  |  |          </el-form-item>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +        <el-form-item label="商品类别" prop="tPackages">
 | 
	
		
			
				|  |  | +          <el-select v-model="form.tPackages" placeholder="请选择商品类别">
 | 
	
		
			
				|  |  | +            <el-option
 | 
	
		
			
				|  |  | +              v-for="dict in fTypeidOptions"
 | 
	
		
			
				|  |  | +              :key="dict.dictValue"
 | 
	
		
			
				|  |  | +              :label="dict.dictLabel"
 | 
	
		
			
				|  |  | +              :value="dict.dictValue"
 | 
	
		
			
				|  |  | +              style="width: 210px;"
 | 
	
		
			
				|  |  | +            ></el-option>
 | 
	
		
			
				|  |  | +          </el-select>
 | 
	
		
			
				|  |  | +        </el-form-item>
 | 
	
		
			
				|  |  |        </el-form>
 | 
	
		
			
				|  |  |        <el-button type="primary" @click="">请 核</el-button>
 | 
	
		
			
				|  |  |        <div class="dialogTableTitle flex a-center jlr">
 | 
	
	
		
			
				|  | @@ -270,18 +259,59 @@
 | 
	
		
			
				|  |  |          <el-button @click="getList_s()">新增</el-button>
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  |        <el-table v-loading="loading_s" :data="agreementitemsList" @selection-change="handleSelectionChange">
 | 
	
		
			
				|  |  | -<!--        <el-table-column type="selection" width="55" align="center"/>-->
 | 
	
		
			
				|  |  | +        <!--        <el-table-column type="selection" width="55" align="center"/>-->
 | 
	
		
			
				|  |  |          <el-table-column label="行号" align="center" type="index"/>
 | 
	
		
			
				|  |  | -        <el-table-column label="计价单位" align="center">
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        <el-table-column
 | 
	
		
			
				|  |  | +          prop="fFeeid"
 | 
	
		
			
				|  |  | +          header-align="center"
 | 
	
		
			
				|  |  | +          align="center"
 | 
	
		
			
				|  |  | +          width="180px"
 | 
	
		
			
				|  |  | +          label="费用名称"
 | 
	
		
			
				|  |  | +        >
 | 
	
		
			
				|  |  | +          <template slot-scope="scope">
 | 
	
		
			
				|  |  | +            <el-select
 | 
	
		
			
				|  |  | +              v-model="scope.row.fFeeid"
 | 
	
		
			
				|  |  | +              filterable
 | 
	
		
			
				|  |  | +              :disabled="browseStatus"
 | 
	
		
			
				|  |  | +              remote
 | 
	
		
			
				|  |  | +              :remote-method="fWRemoteMethod"
 | 
	
		
			
				|  |  | +              placeholder="费用名称"
 | 
	
		
			
				|  |  | +            >
 | 
	
		
			
				|  |  | +              <el-option
 | 
	
		
			
				|  |  | +                v-for="(dict, index) in fWbuOptions"
 | 
	
		
			
				|  |  | +                :key="index.fId"
 | 
	
		
			
				|  |  | +                :label="dict.fName"
 | 
	
		
			
				|  |  | +                :value="dict.fId"
 | 
	
		
			
				|  |  | +              ></el-option>
 | 
	
		
			
				|  |  | +            </el-select>
 | 
	
		
			
				|  |  | +          </template>
 | 
	
		
			
				|  |  | +        </el-table-column>
 | 
	
		
			
				|  |  | +        <el-table-column
 | 
	
		
			
				|  |  | +          prop="fFeeunitid"
 | 
	
		
			
				|  |  | +          header-align="center"
 | 
	
		
			
				|  |  | +          align="center"
 | 
	
		
			
				|  |  | +          width="180px"
 | 
	
		
			
				|  |  | +          label="计价单位"
 | 
	
		
			
				|  |  | +        >
 | 
	
		
			
				|  |  |            <template slot-scope="scope">
 | 
	
		
			
				|  |  | -            <el-input
 | 
	
		
			
				|  |  | +            <el-select
 | 
	
		
			
				|  |  |                v-model="scope.row.fFeeunitid"
 | 
	
		
			
				|  |  | -              placeholder="请输入计价单位"
 | 
	
		
			
				|  |  | +              placeholder="请选择计价单位"
 | 
	
		
			
				|  |  | +              @change="changeFeeUnit(scope.row)"
 | 
	
		
			
				|  |  |                clearable
 | 
	
		
			
				|  |  | -              size="small"
 | 
	
		
			
				|  |  | -            />
 | 
	
		
			
				|  |  | +              :disabled="browseStatus"
 | 
	
		
			
				|  |  | +            >
 | 
	
		
			
				|  |  | +              <el-option
 | 
	
		
			
				|  |  | +                v-for="(dict, index) in jFeetunitOptions"
 | 
	
		
			
				|  |  | +                :key="index.dictValue"
 | 
	
		
			
				|  |  | +                :label="dict.dictLabel"
 | 
	
		
			
				|  |  | +                :value="dict.dictValue"
 | 
	
		
			
				|  |  | +              />
 | 
	
		
			
				|  |  | +            </el-select>
 | 
	
		
			
				|  |  |            </template>
 | 
	
		
			
				|  |  |          </el-table-column>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          <el-table-column label="单价" align="center">
 | 
	
		
			
				|  |  |            <el-input
 | 
	
		
			
				|  |  |              slot-scope="scope"
 | 
	
	
		
			
				|  | @@ -293,7 +323,8 @@
 | 
	
		
			
				|  |  |          </el-table-column>
 | 
	
		
			
				|  |  |          <el-table-column label="录入人" align="center">
 | 
	
		
			
				|  |  |            <el-input
 | 
	
		
			
				|  |  | -            v-model="agreementitemsList.createBy"
 | 
	
		
			
				|  |  | +            slot-scope="scope"
 | 
	
		
			
				|  |  | +            v-model="scope.row.createBy"
 | 
	
		
			
				|  |  |              :disabled="true"
 | 
	
		
			
				|  |  |              placeholder="默认录入人"
 | 
	
		
			
				|  |  |              clearable
 | 
	
	
		
			
				|  | @@ -302,22 +333,15 @@
 | 
	
		
			
				|  |  |          </el-table-column>
 | 
	
		
			
				|  |  |          <el-table-column label="录入时间" align="center">
 | 
	
		
			
				|  |  |            <el-input
 | 
	
		
			
				|  |  | -            v-model="createTime"
 | 
	
		
			
				|  |  | +            slot-scope="scope"
 | 
	
		
			
				|  |  | +            v-model="scope.row.createTime"
 | 
	
		
			
				|  |  |              placeholder="默认录入时间"
 | 
	
		
			
				|  |  |              :disabled="true"
 | 
	
		
			
				|  |  |              clearable
 | 
	
		
			
				|  |  |              size="small"
 | 
	
		
			
				|  |  |            />
 | 
	
		
			
				|  |  |          </el-table-column>
 | 
	
		
			
				|  |  | -        <el-table-column label="费用名称" align="center">
 | 
	
		
			
				|  |  | -          <el-input
 | 
	
		
			
				|  |  | -            slot-scope="scope"
 | 
	
		
			
				|  |  | -            v-model="scope.row.fFeeid"
 | 
	
		
			
				|  |  | -            placeholder="请输入费用名称"
 | 
	
		
			
				|  |  | -            clearable
 | 
	
		
			
				|  |  | -            size="small"
 | 
	
		
			
				|  |  | -          />
 | 
	
		
			
				|  |  | -        </el-table-column>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
 | 
	
		
			
				|  |  |            <template slot-scope="scope">
 | 
	
	
		
			
				|  | @@ -355,6 +379,7 @@ import { listCorps } from '@/api/basicdata/corps'
 | 
	
		
			
				|  |  |  import { listGoods } from '@/api/basicdata/goods'
 | 
	
		
			
				|  |  |  import { delWarehousebills } from '@/api/warehouseBusiness/warehouseInStock'
 | 
	
		
			
				|  |  |  import { listGoodsTransfer } from '@/api/warehouseBusiness/goodsTransfer'
 | 
	
		
			
				|  |  | +import { listFees } from '@/api/basicdata/fees'
 | 
	
		
			
				|  |  |  // import { listUser, queryUserVal } from '@/api/system/user'
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  export default {
 | 
	
	
		
			
				|  | @@ -366,12 +391,17 @@ export default {
 | 
	
		
			
				|  |  |        // 遮罩层
 | 
	
		
			
				|  |  |        loading: true,
 | 
	
		
			
				|  |  |        loading_s: false,
 | 
	
		
			
				|  |  | +      browseStatus: false,
 | 
	
		
			
				|  |  | +      jFeetunitOptions:[],
 | 
	
		
			
				|  |  |        goodsOptions:[],
 | 
	
		
			
				|  |  | -      createTime:'',
 | 
	
		
			
				|  |  | +      fTypeidOptions: [],
 | 
	
		
			
				|  |  |        // 选中数组
 | 
	
		
			
				|  |  |        ids: [],
 | 
	
		
			
				|  |  | +      deptName:'',
 | 
	
		
			
				|  |  |        // 客户(客户数据)
 | 
	
		
			
				|  |  |        fMblnoOptions: [],
 | 
	
		
			
				|  |  | +      fFeeunitidOptions: [],
 | 
	
		
			
				|  |  | +      fWbuOptions: [],
 | 
	
		
			
				|  |  |        // 非单个禁用
 | 
	
		
			
				|  |  |        single: true,
 | 
	
		
			
				|  |  |        // 非多个禁用
 | 
	
	
		
			
				|  | @@ -440,6 +470,12 @@ export default {
 | 
	
		
			
				|  |  |      this.getDicts('data_trademodes').then(response => {
 | 
	
		
			
				|  |  |        this.fTrademodeidOptions = response.data
 | 
	
		
			
				|  |  |      })
 | 
	
		
			
				|  |  | +    this.getDicts("data_goods_category").then(response => {
 | 
	
		
			
				|  |  | +      this.fTypeidOptions = response.data;
 | 
	
		
			
				|  |  | +    });
 | 
	
		
			
				|  |  | +    this.getDicts("data_unitfees").then(response => {
 | 
	
		
			
				|  |  | +      this.jFeetunitOptions = response.data;
 | 
	
		
			
				|  |  | +    });
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  |      test_s(){
 | 
	
	
		
			
				|  | @@ -448,28 +484,38 @@ export default {
 | 
	
		
			
				|  |  |      /** 创建仓储费明细表列表 */
 | 
	
		
			
				|  |  |      getList_s() {
 | 
	
		
			
				|  |  |        console.log(this.agreementitemsList)
 | 
	
		
			
				|  |  | -      this.agreementitemsList.push({
 | 
	
		
			
				|  |  | -        //行号
 | 
	
		
			
				|  |  | -        fLineno:'',
 | 
	
		
			
				|  |  | -        //计价单位
 | 
	
		
			
				|  |  | -        fFeeunitid:'',
 | 
	
		
			
				|  |  | -        //费用名称
 | 
	
		
			
				|  |  | -        fFeeid:'',
 | 
	
		
			
				|  |  | -        //开始天数
 | 
	
		
			
				|  |  | -        fFromdays:'',
 | 
	
		
			
				|  |  | -        //结束天数
 | 
	
		
			
				|  |  | -        fEndays:'',
 | 
	
		
			
				|  |  | -        //单价
 | 
	
		
			
				|  |  | -        fPrice:'',
 | 
	
		
			
				|  |  | -        //录入人
 | 
	
		
			
				|  |  | -        createBy:'',
 | 
	
		
			
				|  |  | -        //创建时间
 | 
	
		
			
				|  |  | -        createTime:''
 | 
	
		
			
				|  |  | -      })
 | 
	
		
			
				|  |  | +      queryUserVal().then((response) => {
 | 
	
		
			
				|  |  | +        this.agreementitemsList.push({
 | 
	
		
			
				|  |  | +          //行号
 | 
	
		
			
				|  |  | +          fLineno:'',
 | 
	
		
			
				|  |  | +          //计价单位
 | 
	
		
			
				|  |  | +          fFeeunitid:'',
 | 
	
		
			
				|  |  | +          //费用名称
 | 
	
		
			
				|  |  | +          fFeeid:'',
 | 
	
		
			
				|  |  | +          //开始天数
 | 
	
		
			
				|  |  | +          fFromdays:'',
 | 
	
		
			
				|  |  | +          //结束天数
 | 
	
		
			
				|  |  | +          fEndays:'',
 | 
	
		
			
				|  |  | +          //单价
 | 
	
		
			
				|  |  | +          fPrice: '',
 | 
	
		
			
				|  |  | +          //录入人
 | 
	
		
			
				|  |  | +          createBy:response.user.userName,
 | 
	
		
			
				|  |  | +          //创建时间
 | 
	
		
			
				|  |  | +          createTime:moment(Date.parse(new Date())).format("YYYY-MM-DD HH:mm:ss")
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  | +        // this.$set("deptName", response.dept.deptName);
 | 
	
		
			
				|  |  | +        this.deptName = response.dept.deptName
 | 
	
		
			
				|  |  | +        this.form.fDeptid = response.dept.deptId
 | 
	
		
			
				|  |  | +        this.agreementitemsList.createBy = response.user.userName
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        // this.$set(this.agreementitemsList, "createBy", response.user.userName);
 | 
	
		
			
				|  |  | +        //格式化时间戳
 | 
	
		
			
				|  |  | +        // this.$set(this.agreementitemsList, "createTime", moment(Date.parse(new Date())).format("YYYY-MM-DD HH:mm:ss"));
 | 
	
		
			
				|  |  | +      });
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        listAgreementitems(this.queryParams).then(response => {
 | 
	
		
			
				|  |  |          console.log(response)
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      /* 远程模糊查询商品 */
 | 
	
	
		
			
				|  | @@ -479,15 +525,17 @@ export default {
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        let queryParams = { pageNum: 1, pageSize: 10, fName: name };
 | 
	
		
			
				|  |  |        listGoods(queryParams).then((response) => {
 | 
	
		
			
				|  |  | -        console.log(response)
 | 
	
		
			
				|  |  |          this.goodsOptions = response.rows;
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    // 计价单位
 | 
	
		
			
				|  |  | +    fFeeunitidFormat(row, column) {
 | 
	
		
			
				|  |  | +      return this.selectDictLabel(this.fFeeunitidOptions, row.fFeeunitid);
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      /** 查询仓储费列表 */
 | 
	
		
			
				|  |  |      getList() {
 | 
	
		
			
				|  |  |        this.loading = true
 | 
	
		
			
				|  |  |        listAgreement(this.queryParams).then(response => {
 | 
	
		
			
				|  |  | -        console.log(response)
 | 
	
		
			
				|  |  |          this.agreementList = response.rows
 | 
	
		
			
				|  |  |          this.total = response.total
 | 
	
		
			
				|  |  |          this.loading = false
 | 
	
	
		
			
				|  | @@ -548,6 +596,26 @@ export default {
 | 
	
		
			
				|  |  |        this.queryParams.pageNum = 1
 | 
	
		
			
				|  |  |        this.getList()
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    // 变更计价单位
 | 
	
		
			
				|  |  | +    changeFeeUnit(row) {
 | 
	
		
			
				|  |  | +      console.log(this.fCntqty);
 | 
	
		
			
				|  |  | +      console.log(row);
 | 
	
		
			
				|  |  | +      if (!row.fFeeUnitid) {
 | 
	
		
			
				|  |  | +        return false;
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      if (row.fFeeUnitid === "0") {
 | 
	
		
			
				|  |  | +        this.$set(row, "fQty", this.fCntqty);
 | 
	
		
			
				|  |  | +      } else if (row.fFeeUnitid === "1") {
 | 
	
		
			
				|  |  | +        this.$set(row, "fQty", this.fGrossweight);
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      if (row.fUnitprice) {
 | 
	
		
			
				|  |  | +        this.$set(
 | 
	
		
			
				|  |  | +          row,
 | 
	
		
			
				|  |  | +          "fAmount",
 | 
	
		
			
				|  |  | +          parseFloat(Number(row.fUnitprice) * Number(row.fQty)).toFixed(2)
 | 
	
		
			
				|  |  | +        );
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      /** 重置按钮操作 */
 | 
	
		
			
				|  |  |      resetQuery() {
 | 
	
		
			
				|  |  |        this.resetForm('queryForm')
 | 
	
	
		
			
				|  | @@ -559,18 +627,29 @@ export default {
 | 
	
		
			
				|  |  |        this.single = selection.length !== 1
 | 
	
		
			
				|  |  |        this.multiple = !selection.length
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    // 远程模糊查询费用名称
 | 
	
		
			
				|  |  | +    fWRemoteMethod(name) {
 | 
	
		
			
				|  |  | +      if (name == null || name === "") {
 | 
	
		
			
				|  |  | +        return false;
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      let queryParams = { pageNum: 1, pageSize: 10, fName: name };
 | 
	
		
			
				|  |  | +      listFees(queryParams).then((response) => {
 | 
	
		
			
				|  |  | +        this.fWbuOptions = response.rows;
 | 
	
		
			
				|  |  | +      });
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      /** 新增按钮操作 */
 | 
	
		
			
				|  |  |      handleAdd() {
 | 
	
		
			
				|  |  |        this.reset()
 | 
	
		
			
				|  |  |        this.open = true
 | 
	
		
			
				|  |  |        this.title = '添加仓储费'
 | 
	
		
			
				|  |  |        queryUserVal().then((response) => {
 | 
	
		
			
				|  |  | -        console.log(response)
 | 
	
		
			
				|  |  | -        this.$set(this.form, "fDeptid", response.dept.deptId);
 | 
	
		
			
				|  |  | -        this.$set(this.agreementitemsList, "createBy", response.user.userName);
 | 
	
		
			
				|  |  | +        // this.$set("deptName", response.dept.deptName);
 | 
	
		
			
				|  |  | +        this.deptName = response.dept.deptName
 | 
	
		
			
				|  |  | +        this.form.fDeptid = response.dept.deptId
 | 
	
		
			
				|  |  | +        // this.agreementitemsList.createBy = response.user.userName
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        // this.$set(this.agreementitemsList, "createBy", response.user.userName);
 | 
	
		
			
				|  |  |          //格式化时间戳
 | 
	
		
			
				|  |  | -        this.agreementitemsList.createTime = Date.parse(new Date())
 | 
	
		
			
				|  |  | -        this.createTime = moment(Date.parse(new Date())).format("YYYY-MM-DD HH:mm:ss")
 | 
	
		
			
				|  |  |          // this.$set(this.agreementitemsList, "createTime", moment(Date.parse(new Date())).format("YYYY-MM-DD HH:mm:ss"));
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
	
		
			
				|  | @@ -579,12 +658,18 @@ export default {
 | 
	
		
			
				|  |  |        this.reset()
 | 
	
		
			
				|  |  |        const fId = row.fId || this.ids
 | 
	
		
			
				|  |  |        getAgreement(fId).then(response => {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        console.log(this.deptName)
 | 
	
		
			
				|  |  |          console.log(response)
 | 
	
		
			
				|  |  | +        this.deptName = response.data.dept.deptName
 | 
	
		
			
				|  |  |          this.form = response.data.tWarehouseAgreement
 | 
	
		
			
				|  |  |          this.fMblnoOptions = response.data.corps
 | 
	
		
			
				|  |  | -        // this.goodsOptions  = response.data.corps
 | 
	
		
			
				|  |  |          this.agreementitemsList = response.data.tWarehouseAgreementitems
 | 
	
		
			
				|  |  | -        console.log(this.form)
 | 
	
		
			
				|  |  | +        for (let item in this.agreementitemsList) {
 | 
	
		
			
				|  |  | +          this.$set(this.agreementitemsList[item], 'fFeeunitid', this.agreementitemsList[item].fFeeunitid + '')
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        console.log(JSON.stringify(this.agreementitemsList))
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          this.open = true
 | 
	
		
			
				|  |  |          this.title = '修改仓储费'
 | 
	
		
			
				|  |  |        })
 | 
	
	
		
			
				|  | @@ -596,13 +681,13 @@ export default {
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        let queryParams = { pageNum: 1, pageSize: 10, fName: name, type: 1 };
 | 
	
		
			
				|  |  |        listCorps(queryParams).then((response) => {
 | 
	
		
			
				|  |  | -        console.log(response)
 | 
	
		
			
				|  |  |          this.fMblnoOptions = response.rows;
 | 
	
		
			
				|  |  |          this.KHblnoOptions = response.rows;
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      /** 提交按钮 */
 | 
	
		
			
				|  |  |      submitForm() {
 | 
	
		
			
				|  |  | +      console.log(this.form)
 | 
	
		
			
				|  |  |        this.$refs['form'].validate(valid => {
 | 
	
		
			
				|  |  |          if (valid) {
 | 
	
		
			
				|  |  |            if (this.form.fId != null) {
 | 
	
	
		
			
				|  | @@ -613,16 +698,10 @@ export default {
 | 
	
		
			
				|  |  |                formData.append("agreementitems", JSON.stringify(this.agreementitemsList));
 | 
	
		
			
				|  |  |                addAgreement(formData).then(response => {
 | 
	
		
			
				|  |  |                  this.msgSuccess('修改成功')
 | 
	
		
			
				|  |  | -                console.log(this.form)
 | 
	
		
			
				|  |  |                  this.open = false
 | 
	
		
			
				|  |  |                  this.getList()
 | 
	
		
			
				|  |  |                  this.agreementitemsList = []
 | 
	
		
			
				|  |  |                })
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -              // this.open = false
 | 
	
		
			
				|  |  | -              // this.getList()
 | 
	
		
			
				|  |  | -              // this.agreementitemsList = []
 | 
	
		
			
				|  |  |              })
 | 
	
		
			
				|  |  |            } else {
 | 
	
		
			
				|  |  |              let formData = new window.FormData();
 | 
	
	
		
			
				|  | @@ -667,7 +746,6 @@ export default {
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      deleteRow(index, rows) {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |        rows.splice(index, 1);
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |    }
 |