|  | @@ -245,7 +245,7 @@
 | 
											
												
													
														|  |                    placeholder="费用名称"
 |  |                    placeholder="费用名称"
 | 
											
												
													
														|  |                  >
 |  |                  >
 | 
											
												
													
														|  |                      <el-option
 |  |                      <el-option
 | 
											
												
													
														|  | -                      v-for="(dict, index) in fCNameOptions"
 |  | 
 | 
											
												
													
														|  | 
 |  | +                      v-for="(dict, index) in fNameOptions"
 | 
											
												
													
														|  |                        :key="index.fId"
 |  |                        :key="index.fId"
 | 
											
												
													
														|  |                        :label="dict.fName"
 |  |                        :label="dict.fName"
 | 
											
												
													
														|  |                        :value="dict.fId"
 |  |                        :value="dict.fId"
 | 
											
										
											
												
													
														|  | @@ -374,6 +374,14 @@
 | 
											
												
													
														|  |                    @click="handleSave"
 |  |                    @click="handleSave"
 | 
											
												
													
														|  |                    v-hasPermi="['warehouse:modify:remove']"
 |  |                    v-hasPermi="['warehouse:modify:remove']"
 | 
											
												
													
														|  |                  >保 存</el-button>
 |  |                  >保 存</el-button>
 | 
											
												
													
														|  | 
 |  | +                <el-button
 | 
											
												
													
														|  | 
 |  | +                  type="primary"
 | 
											
												
													
														|  | 
 |  | +                  icon="el-icon-plus"
 | 
											
												
													
														|  | 
 |  | +                  size="mini"
 | 
											
												
													
														|  | 
 |  | +                  @click="hanldeAdd"
 | 
											
												
													
														|  | 
 |  | +                  v-hasPermi="['warehouse:modify:remove']"
 | 
											
												
													
														|  | 
 |  | +                  :disabled="form.fStatus > 3"
 | 
											
												
													
														|  | 
 |  | +                >新 行</el-button>
 | 
											
												
													
														|  |                </div>
 |  |                </div>
 | 
											
												
													
														|  |              </div>
 |  |              </div>
 | 
											
												
													
														|  |            </div>
 |  |            </div>
 | 
											
										
											
												
													
														|  | @@ -418,7 +426,7 @@
 | 
											
												
													
														|  |                    placeholder="费用名称"
 |  |                    placeholder="费用名称"
 | 
											
												
													
														|  |                  >
 |  |                  >
 | 
											
												
													
														|  |                    <el-option
 |  |                    <el-option
 | 
											
												
													
														|  | -                    v-for="(dict, index) in fCNameOptions"
 |  | 
 | 
											
												
													
														|  | 
 |  | +                    v-for="(dict, index) in fNameOptions"
 | 
											
												
													
														|  |                      :key="index.fId"
 |  |                      :key="index.fId"
 | 
											
												
													
														|  |                      :label="dict.fName"
 |  |                      :label="dict.fName"
 | 
											
												
													
														|  |                      :value="dict.fId"
 |  |                      :value="dict.fId"
 | 
											
										
											
												
													
														|  | @@ -426,12 +434,12 @@
 | 
											
												
													
														|  |                  </el-select>
 |  |                  </el-select>
 | 
											
												
													
														|  |                </template>
 |  |                </template>
 | 
											
												
													
														|  |              </el-table-column>
 |  |              </el-table-column>
 | 
											
												
													
														|  | -            <el-table-column prop="fdc" label="收付" align="center" width="100">
 |  | 
 | 
											
												
													
														|  | 
 |  | +            <el-table-column prop="fDc" label="收付" align="center" width="100">
 | 
											
												
													
														|  |                <template slot-scope="scope">
 |  |                <template slot-scope="scope">
 | 
											
												
													
														|  |                  <el-select
 |  |                  <el-select
 | 
											
												
													
														|  |                    v-model="scope.row.fDc"
 |  |                    v-model="scope.row.fDc"
 | 
											
												
													
														|  |                    placeholder="请选择"
 |  |                    placeholder="请选择"
 | 
											
												
													
														|  | -                  :disabled="disabledtwo"
 |  | 
 | 
											
												
													
														|  | 
 |  | +                  disabled
 | 
											
												
													
														|  |                  >
 |  |                  >
 | 
											
												
													
														|  |                    <el-option label="收" value="D"></el-option>
 |  |                    <el-option label="收" value="D"></el-option>
 | 
											
												
													
														|  |                    <el-option label="付" value="C"></el-option>
 |  |                    <el-option label="付" value="C"></el-option>
 | 
											
										
											
												
													
														|  | @@ -803,7 +811,7 @@ export default {
 | 
											
												
													
														|  |        //自定义列宽
 |  |        //自定义列宽
 | 
											
												
													
														|  |        allCheck: false,
 |  |        allCheck: false,
 | 
											
												
													
														|  |        drag: false,
 |  |        drag: false,
 | 
											
												
													
														|  | -      fCNameOptions: [],
 |  | 
 | 
											
												
													
														|  | 
 |  | +      fNameOptions: [],
 | 
											
												
													
														|  |        jFeetunitOptions: [],
 |  |        jFeetunitOptions: [],
 | 
											
												
													
														|  |        veiwVisible: false,
 |  |        veiwVisible: false,
 | 
											
												
													
														|  |        addOrUpdateVisib: false
 |  |        addOrUpdateVisib: false
 | 
											
										
											
												
													
														|  | @@ -827,9 +835,18 @@ export default {
 | 
											
												
													
														|  |      listCorps().then((response) => {
 |  |      listCorps().then((response) => {
 | 
											
												
													
														|  |        this.fMblnoOptions = response.rows;
 |  |        this.fMblnoOptions = response.rows;
 | 
											
												
													
														|  |      });
 |  |      });
 | 
											
												
													
														|  | -    listFees().then((response) => {
 |  | 
 | 
											
												
													
														|  | -      this.fCNameOptions = response.rows;
 |  | 
 | 
											
												
													
														|  | -    });
 |  | 
 | 
											
												
													
														|  | 
 |  | +    // this.$nextTick(() => {
 | 
											
												
													
														|  | 
 |  | +    //   console.log(this.fDc)
 | 
											
												
													
														|  | 
 |  | +    //   if (this.fDc == 'D') {
 | 
											
												
													
														|  | 
 |  | +    //     listFees({fDc: "D"}).then((response) => {
 | 
											
												
													
														|  | 
 |  | +    //       this.fNameOptions = response.rows;
 | 
											
												
													
														|  | 
 |  | +    //     });
 | 
											
												
													
														|  | 
 |  | +    //   } else if(this.fDc == 'C') {
 | 
											
												
													
														|  | 
 |  | +    //     listFees({fDc: "C"}).then((response) => {
 | 
											
												
													
														|  | 
 |  | +    //       this.fNameOptions = response.rows;
 | 
											
												
													
														|  | 
 |  | +    //     });
 | 
											
												
													
														|  | 
 |  | +    //   }
 | 
											
												
													
														|  | 
 |  | +    // })
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    watch: {
 |  |    watch: {
 | 
											
												
													
														|  |      addOrUpdateVisible(oldVal, newWal) {
 |  |      addOrUpdateVisible(oldVal, newWal) {
 | 
											
										
											
												
													
														|  | @@ -837,6 +854,17 @@ export default {
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    methods: {
 |  |    methods: {
 | 
											
												
													
														|  | 
 |  | +    init() {
 | 
											
												
													
														|  | 
 |  | +      let fDc = '';
 | 
											
												
													
														|  | 
 |  | +      if (this.fDc) {
 | 
											
												
													
														|  | 
 |  | +        fDc = this.fDc
 | 
											
												
													
														|  | 
 |  | +      } else {
 | 
											
												
													
														|  | 
 |  | +        fDc = this.form.fDc
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  | 
 |  | +      listFees({fDc: fDc}).then((response) => {
 | 
											
												
													
														|  | 
 |  | +        this.fNameOptions = response.rows;
 | 
											
												
													
														|  | 
 |  | +      });
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  |      // 弹出框关闭后触发
 |  |      // 弹出框关闭后触发
 | 
											
												
													
														|  |      handleClose() {
 |  |      handleClose() {
 | 
											
												
													
														|  |        // 子组件调用父组件方法,并传递参数
 |  |        // 子组件调用父组件方法,并传递参数
 | 
											
										
											
												
													
														|  | @@ -844,31 +872,40 @@ export default {
 | 
											
												
													
														|  |        this.$emit("changeShow", "false");
 |  |        this.$emit("changeShow", "false");
 | 
											
												
													
														|  |        this.collapses = [];
 |  |        this.collapses = [];
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  | 
 |  | +    // 添加新行
 | 
											
												
													
														|  | 
 |  | +    hanldeAdd() {
 | 
											
												
													
														|  | 
 |  | +      let DC = null
 | 
											
												
													
														|  | 
 |  | +      if (this.form.fDc) {
 | 
											
												
													
														|  | 
 |  | +        DC = this.form.fDc
 | 
											
												
													
														|  | 
 |  | +      } else {
 | 
											
												
													
														|  | 
 |  | +        DC = this.fDc
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  | 
 |  | +      let list = {
 | 
											
												
													
														|  | 
 |  | +        fId: null,
 | 
											
												
													
														|  | 
 |  | +        fCorpid: null,
 | 
											
												
													
														|  | 
 |  | +        fDc: DC,
 | 
											
												
													
														|  | 
 |  | +        fFeeunitid: null,
 | 
											
												
													
														|  | 
 |  | +        fQty: null,
 | 
											
												
													
														|  | 
 |  | +        fUnitprice: null,
 | 
											
												
													
														|  | 
 |  | +        fCurrency: null,
 | 
											
												
													
														|  | 
 |  | +        fExrate: null,
 | 
											
												
													
														|  | 
 |  | +        fAmount: null,
 | 
											
												
													
														|  | 
 |  | +        fTaxrate: null,
 | 
											
												
													
														|  | 
 |  | +        fSrcTypeId: 10,
 | 
											
												
													
														|  | 
 |  | +        fBillstatus: null,
 | 
											
												
													
														|  | 
 |  | +        actId: 1000,
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  | 
 |  | +      console.log(list)
 | 
											
												
													
														|  | 
 |  | +      this.formfeesList.push(list)
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  |      //变更按钮
 |  |      //变更按钮
 | 
											
												
													
														|  |      change(row){
 |  |      change(row){
 | 
											
												
													
														|  |        console.log(row)
 |  |        console.log(row)
 | 
											
												
													
														|  |        let list = JSON.parse(JSON.stringify(row))
 |  |        let list = JSON.parse(JSON.stringify(row))
 | 
											
												
													
														|  | -      // let list1 = {
 |  | 
 | 
											
												
													
														|  | -      //   fid: null,
 |  | 
 | 
											
												
													
														|  | -      //   fcorpid: list.fCorpid,
 |  | 
 | 
											
												
													
														|  | -      //   ffeeid: list.fFeeid,
 |  | 
 | 
											
												
													
														|  | -      //   fdc: list.fDc,
 |  | 
 | 
											
												
													
														|  | -      //   ffeeunitid: list.fFeeunitid,
 |  | 
 | 
											
												
													
														|  | -      //   fqty: list.fQty,
 |  | 
 | 
											
												
													
														|  | -      //   funitprice: list.fUnitprice,
 |  | 
 | 
											
												
													
														|  | -      //   fcurrency: list.fCurrency,
 |  | 
 | 
											
												
													
														|  | -      //   fexrate: list.fExrate,
 |  | 
 | 
											
												
													
														|  | -      //   famount: list.fAmount,
 |  | 
 | 
											
												
													
														|  | -      //   ftaxrate: list.fTaxrate,
 |  | 
 | 
											
												
													
														|  | -      //   remarks: list.remarks,
 |  | 
 | 
											
												
													
														|  | -      //   fbillstatus: '',
 |  | 
 | 
											
												
													
														|  | -      //   actid: ''
 |  | 
 | 
											
												
													
														|  | -      // }
 |  | 
 | 
											
												
													
														|  |        list.fId = ''
 |  |        list.fId = ''
 | 
											
												
													
														|  |        list.fBillstatus = ''
 |  |        list.fBillstatus = ''
 | 
											
												
													
														|  |        list.actId = 1100
 |  |        list.actId = 1100
 | 
											
												
													
														|  |        list.fSrcTypeId = 10
 |  |        list.fSrcTypeId = 10
 | 
											
												
													
														|  | -      // list1 = Object.assign(list, list1)
 |  | 
 | 
											
												
													
														|  |        this.formfeesList.push(list)
 |  |        this.formfeesList.push(list)
 | 
											
												
													
														|  |        // for (let item in this.formfeesList){
 |  |        // for (let item in this.formfeesList){
 | 
											
												
													
														|  |        //   if (scope.row.fId === this.formfeesList[item].fId) {
 |  |        //   if (scope.row.fId === this.formfeesList[item].fId) {
 |