Forráskód Böngészése

修改车队样式

Qukaidi 4 éve
szülő
commit
05046c3500

+ 20 - 4
src/views/fleet/sendcar/AddOrUpdate.vue

@@ -482,11 +482,20 @@
                   prop="carcorPid"
                 >
                   <template slot-scope="scope">
-                    <el-input
+                    <el-select
                       v-model="scope.row.carcorPid"
-                      placeholder="车队名称"
+                      placeholder="请输入车队名称"
+                      :clearable="true"
+                      filterable
                       :disabled="disabled"
-                    />
+                    >
+                      <el-option
+                        v-for="(dict, index) in companyList"
+                        :key="index.id"
+                        :label="dict.companyName"
+                        :value="dict.id"
+                      />
+                    </el-select>
                   </template>
                 </el-table-column>
 
@@ -1260,7 +1269,7 @@ import {
   addFtmsorderbillscars,
   singleChangeFtmsorderbillscars,
 } from "@/api/fleet/ftmsorderbillscars";
-
+import { company } from "@/api/fleet/carManage";
 import { listFtmsorderbillss } from "@/api/fleet/carManage";
 import { driverList } from "@/api/fleet/driverMsg";
 import { listGoods } from "@/api/basicdata/goods";
@@ -1307,6 +1316,7 @@ export default {
   },
   data() {
     return {
+      companyList: [],
       lbStatus: {},
       dcList: [
         {
@@ -1428,6 +1438,12 @@ export default {
     listFtmsorderbillss().then((response) => {
       this.carManages = response.rows;
     });
+        company({
+      delFlag: "0",
+      billStatus: 6,
+    }).then((response) => {
+      this.companyList = response.rows;
+    });
     this.userType = Cookies.get("userType");
     this.username = Cookies.get("userName");
   },

+ 289 - 295
src/views/track/singleCost/AddOrUpdate.vue

@@ -259,32 +259,30 @@
           </el-col>
         </el-row>
       </el-form>
-       <template slot="title">
-              <i class="header-icon el-icon-circle-plus" style="font-size: 16px"
-              ><span
-                style="font-size: 16px; font-weight: bolder; margin-left: 5px"
-              >添加费用明细</span
-              >
-              </i>
-            </template>
-            <div>
-              <div
-                style="display: flex; justify-content: space-between;margin: 10px 0;">
-                <div>
-                  <el-button
-                    type="primary"
-                    icon="el-icon-plus"
-                    size="mini"
-                    @click="addRelevt"
-                    :disabled="disabled"
-                  >添加费用</el-button>
-                </div>
-              </div>
-            </div>
-      <el-table
-        :data="feesList"
-        style="width: 100%"
-      >
+      <template slot="title">
+        <i class="header-icon el-icon-circle-plus" style="font-size: 16px"
+          ><span style="font-size: 16px; font-weight: bolder; margin-left: 5px"
+            >添加费用明细</span
+          >
+        </i>
+      </template>
+      <div>
+        <div
+          style="display: flex; justify-content: space-between; margin: 10px 0"
+        >
+          <div>
+            <el-button
+              type="primary"
+              icon="el-icon-plus"
+              size="mini"
+              @click="addRelevt"
+              :disabled="disabled"
+              >添加费用</el-button
+            >
+          </div>
+        </div>
+      </div>
+      <el-table :data="feesList" style="width: 100%">
         <el-table-column
           prop="fCorpid"
           label="结算单位"
@@ -292,239 +290,238 @@
           width="180"
         >
           <template slot-scope="scope">
-          <el-select
-            v-model="scope.row.fCorpid"
-            placeholder="请输入客户名称"
-            :clearable="true"
-            filterable
-            size="mini"
-            style="width: 160px"
-            disabled
-          >
-                <el-option
-                  v-for="(dict, index) in fMblnoOptions"
-                  :key="index.fId"
-                  :label="dict.fName"
-                  :value="dict.fId"
-                />
-              </el-select>
+            <el-select
+              v-model="scope.row.fCorpid"
+              placeholder="请输入客户名称"
+              :clearable="true"
+              filterable
+              size="mini"
+              style="width: 160px"
+              disabled
+            >
+              <el-option
+                v-for="(dict, index) in fMblnoOptions"
+                :key="index.fId"
+                :label="dict.fName"
+                :value="dict.fId"
+              />
+            </el-select>
           </template>
-      </el-table-column>
-        <el-table-column
-          prop="fFeeid"
-          label="费用名称"
-          width="180"
-        >
+        </el-table-column>
+        <el-table-column prop="fFeeid" label="费用名称">
           <template slot-scope="scope">
-                <el-select
-                  v-model="scope.row.fFeeid"
-                  filterable
-                  :disabled="scope.row.actId != '1090' ? true : false || disabled"
-                  remote
-                  placeholder="费用名称"
-                >
-                  <el-option
-                    v-for="(dict, index) in fCNameOptions"
-                    :key="index.fId"
-                    :label="dict.fName"
-                    :value="dict.fId"
-                  ></el-option>
-                </el-select>
-              </template>
-      </el-table-column>
-        <el-table-column
-          prop="fDc"
-          label="收付"
-          width="180"
-        >
+            <el-select
+              v-model="scope.row.fFeeid"
+              filterable
+              :disabled="scope.row.actId != '1090' ? true : false || disabled"
+              remote
+              placeholder="费用名称"
+            >
+              <el-option
+                v-for="(dict, index) in fCNameOptions"
+                :key="index.fId"
+                :label="dict.fName"
+                :value="dict.fId"
+              ></el-option>
+            </el-select>
+          </template>
+        </el-table-column>
+        <el-table-column prop="fDc" label="收付">
           <template slot-scope="scope">
-            <el-select v-model="scope.row.fDc" placeholder="请选择" :disabled="scope.row.actId != '1090' ? true : false || disabled">
+            <el-select
+              v-model="scope.row.fDc"
+              placeholder="请选择"
+              :disabled="scope.row.actId != '1090' ? true : false || disabled"
+            >
               <el-option label="收" value="D"></el-option>
               <el-option label="付" value="C"></el-option>
             </el-select>
           </template>
-      </el-table-column>
-        <el-table-column
-          prop="fFeeunitid"
-          label="计费单位"
-          width="180"
-        >
+        </el-table-column>
+        <el-table-column prop="fFeeunitid" label="计费单位">
           <template slot-scope="scope">
-              <el-select
-                v-model="scope.row.fFeeunitid"
-                placeholder="请选择计费单位"
-                :disabled="scope.row.actId != '1090' ? true : false || disabled"
-                clearable
-              >
-                <el-option
-                  v-for="dict in jFeetunitOptions"
-                  :key="dict.dictValue"
-                  :label="dict.dictLabel"
-                  :value="dict.dictValue"
-                />
-              </el-select>
-            </template>
-      </el-table-column>
-        <el-table-column
-          prop="fBillingQty"
-          label="计费数量"
-          width="180"
-        >
+            <el-select
+              v-model="scope.row.fFeeunitid"
+              placeholder="请选择计费单位"
+              :disabled="scope.row.actId != '1090' ? true : false || disabled"
+              clearable
+            >
+              <el-option
+                v-for="dict in jFeetunitOptions"
+                :key="dict.dictValue"
+                :label="dict.dictLabel"
+                :value="dict.dictValue"
+              />
+            </el-select>
+          </template>
+        </el-table-column>
+        <el-table-column prop="fBillingQty" label="计费数量">
           <template slot-scope="scope">
-          <el-input v-model="scope.row.fBillingQty" :disabled="scope.row.actId != '1090' ? true : false || disabled" placeholder="请输入内容"></el-input>
+            <el-input
+              v-model="scope.row.fBillingQty"
+              :disabled="scope.row.actId != '1090' ? true : false || disabled"
+              placeholder="请输入内容"
+            ></el-input>
           </template>
-      </el-table-column>
-        <el-table-column
-          prop="fUnitprice"
-          label="单价"
-          width="180"
-        >
+        </el-table-column>
+        <el-table-column prop="fUnitprice" label="单价">
           <template slot-scope="scope">
-          <el-input v-model="scope.row.fUnitprice" :disabled="scope.row.actId != '1090' ? true : false || disabled" placeholder="请输入内容"></el-input>
+            <el-input
+              v-model="scope.row.fUnitprice"
+              :disabled="scope.row.actId != '1090' ? true : false || disabled"
+              placeholder="请输入内容"
+            ></el-input>
           </template>
-      </el-table-column>
-        <el-table-column
-          prop="fCurrency"
-          label="币种"
-          width="180"
-        >
+        </el-table-column>
+        <el-table-column prop="fCurrency" label="币种">
           <template slot-scope="scope">
-          <el-input v-model="scope.row.fCurrency" :disabled="scope.row.actId != '1090' ? true : false || disabled" placeholder="请输入内容"></el-input>
+            <el-input
+              v-model="scope.row.fCurrency"
+              :disabled="scope.row.actId != '1090' ? true : false || disabled"
+              placeholder="请输入内容"
+            ></el-input>
           </template>
-      </el-table-column>
-        <el-table-column
-          prop="fTaxrate"
-          label="税率"
-          width="180"
-        >
+        </el-table-column>
+        <el-table-column prop="fTaxrate" label="税率">
           <template slot-scope="scope">
-          <el-input v-model="scope.row.fTaxrate" :disabled="scope.row.actId != '1090' ? true : false || disabled" placeholder="请输入内容"></el-input>
+            <el-input
+              v-model="scope.row.fTaxrate"
+              :disabled="scope.row.actId != '1090' ? true : false || disabled"
+              placeholder="请输入内容"
+            ></el-input>
           </template>
-      </el-table-column>
-        <el-table-column
-          prop="fAmount"
-          label="金额"
-          width="180"
-        >
+        </el-table-column>
+        <el-table-column prop="fAmount" label="金额">
           <template slot-scope="scope">
-          <el-input v-model="scope.row.fAmount" :disabled="scope.row.actId != '1090' ? true : false || disabled" placeholder="请输入内容"></el-input>
+            <el-input
+              v-model="scope.row.fAmount"
+              :disabled="scope.row.actId != '1090' ? true : false || disabled"
+              placeholder="请输入内容"
+            ></el-input>
           </template>
-      </el-table-column>
-        <el-table-column
-          prop="fExrate"
-          label="汇率"
-          width="180"
-        >
+        </el-table-column>
+        <el-table-column prop="fExrate" label="汇率">
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fExrate"
+              :disabled="scope.row.actId != '1090' ? true : false || disabled"
+              placeholder="请输入内容"
+            ></el-input>
+          </template>
+        </el-table-column>
+        <el-table-column prop="remarks" label="备注">
           <template slot-scope="scope">
-          <el-input v-model="scope.row.fExrate" :disabled="scope.row.actId != '1090' ? true : false || disabled" placeholder="请输入内容"></el-input>
+            <el-input
+              v-model="scope.row.remarks"
+              :disabled="scope.row.actId != '1090' ? true : false || disabled"
+              placeholder="请输入内容"
+            ></el-input>
           </template>
-      </el-table-column>
+        </el-table-column>
         <el-table-column
-          prop="remarks"
-          label="备注"
-          width="180"
+          label="操作"
+          align="center"
+          class-name="small-padding fixed-width"
+          fixed="right"
+          width="100px"
         >
           <template slot-scope="scope">
-          <el-input v-model="scope.row.remarks" :disabled="scope.row.actId != '1090' ? true : false || disabled" placeholder="请输入内容"></el-input>
+            <el-button
+              size="mini"
+              type="text"
+              icon="el-icon-delete"
+              :disabled="scope.row.actId != '1090' ? true : false || disabled"
+              @click.native.prevent="deleteRow(scope.$index)"
+              >删除</el-button
+            >
           </template>
-      </el-table-column>
-       <el-table-column
-         label="操作"
-         align="center"
-         class-name="small-padding fixed-width"
-         fixed="right"
-         width="150px"
-       >
-        <template slot-scope="scope">
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-delete"
-            :disabled="scope.row.actId != '1090' ? true : false || disabled"
-            @click.native.prevent="deleteRow(scope.$index)"
-          >删除</el-button>
-        </template>
-      </el-table-column>
-    </el-table>
+        </el-table-column>
+      </el-table>
     </span>
     <span slot="footer" class="dialog-footer">
-      <el-button type="primary" :disabled="disabled" @click="submitForm">提交</el-button>
+      <el-button type="primary" :disabled="disabled" @click="submitForm"
+        >提交</el-button
+      >
       <el-button type="success" @click="submitAllowChanges">修改</el-button>
-      <el-button type="info" :disabled="disabled" @click="submitSave">保 存</el-button>
-      <el-button type="warning" :disabled="disabled" @click="submitRetreat">撤 回</el-button>
+      <el-button type="info" :disabled="disabled" @click="submitSave"
+        >保 存</el-button
+      >
+      <el-button type="warning" :disabled="disabled" @click="submitRetreat"
+        >撤 回</el-button
+      >
       <el-button @click="showDialog = false">取 消</el-button>
     </span>
   </el-dialog>
 </template>
 
 <script>
-import { removeFtmsorderbillscars } from '@/api/fleet/ftmsorderbillscars'
-import { query,submit} from '@/api/track/singleCost'
-import { listGoods } from '@/api/basicdata/goods'
-import { listCorps } from '@/api/basicdata/corps'
-import { listFees } from '@/api/basicdata/fees'
-import UploadFile from '@/components/Uploadfile'
-import Cookies from 'js-cookie'
+import { removeFtmsorderbillscars } from "@/api/fleet/ftmsorderbillscars";
+import { query, submit } from "@/api/track/singleCost";
+import { listGoods } from "@/api/basicdata/goods";
+import { listCorps } from "@/api/basicdata/corps";
+import { listFees } from "@/api/basicdata/fees";
+import UploadFile from "@/components/Uploadfile";
+import Cookies from "js-cookie";
 
 export default {
-  name: 'plans',
+  name: "plans",
   props: {
     addOrUpdateVisible: {
       type: Boolean,
-      default: false
+      default: false,
     },
     title: {
       type: String,
-      required: ''
+      required: "",
     },
-    fname: Object
+    fname: Object,
   },
   components: {
-    UploadFile
+    UploadFile,
   },
   data() {
     return {
-      jFeetunitOptions:[],
+      jFeetunitOptions: [],
       form: {},
-      feesList:[],
+      feesList: [],
       // 控制弹出框显示隐藏
       showDialog: false,
       disabled: true,
       // 表单校验
       rules: {
         corpId: [
-          { required: true, message: '请输入客户名称', trigger: 'blur' }
+          { required: true, message: "请输入客户名称", trigger: "blur" },
         ],
         billType: [
-          { required: true, message: '请选择业务类型', trigger: 'blur' }
+          { required: true, message: "请选择业务类型", trigger: "blur" },
         ],
         transType: [
-          { required: true, message: '请选择运输方式', trigger: 'blur' }
+          { required: true, message: "请选择运输方式", trigger: "blur" },
         ],
         loadAddr: [
-          { required: true, message: '请输入提箱地点', trigger: 'blur' }
+          { required: true, message: "请输入提箱地点", trigger: "blur" },
         ],
         loadAttntel: [
           {
             pattern: /^((0\d{2,3}-\d{7,8})|(1[3584]\d{9}))$/,
-            message: '请正确输入手机号',
-            trigger: 'blur'
-          }
+            message: "请正确输入手机号",
+            trigger: "blur",
+          },
         ],
         mdLoadAttnTel: [
           {
             pattern: /^((0\d{2,3}-\d{7,8})|(1[3584]\d{9}))$/,
-            message: '请正确输入手机号',
-            trigger: 'blur'
-          }
+            message: "请正确输入手机号",
+            trigger: "blur",
+          },
         ],
         unLoadAttnTel: [
           {
             pattern: /^((0\d{2,3}-\d{7,8})|(1[3584]\d{9}))$/,
-            message: '请正确输入手机号',
-            trigger: 'blur'
-          }
-        ]
+            message: "请正确输入手机号",
+            trigger: "blur",
+          },
+        ],
       },
       billTypeList: [],
       transTypeList: [],
@@ -539,203 +536,200 @@ export default {
       fMblnoOptions: [],
       cntrId2List: [],
       goodsOptions: [],
-      fWbuOptions: []
-    }
+      fWbuOptions: [],
+    };
   },
   created() {
     this.getDicts("data_unitfees").then((response) => {
-      if (response.data){
+      if (response.data) {
         this.jFeetunitOptions = response.data;
       }
     });
     listFees().then((response) => {
       this.fCNameOptions = response.rows;
     });
-    this.getDicts('data_billType').then((response) => {
-      this.billTypeList = response.data
-    })
-    this.getDicts('data_transType').then((response) => {
-      this.transTypeList = response.data
-    })
-    this.getDicts('data_transProp').then((response) => {
-      this.transPropList = response.data
-    })
-    this.getDicts('data_goodsLossType').then((response) => {
-      this.goodsLossTypeList = response.data
-    })
-    this.getDicts('data_cntrId').then((response) => {
+    this.getDicts("data_billType").then((response) => {
+      this.billTypeList = response.data;
+    });
+    this.getDicts("data_transType").then((response) => {
+      this.transTypeList = response.data;
+    });
+    this.getDicts("data_transProp").then((response) => {
+      this.transPropList = response.data;
+    });
+    this.getDicts("data_goodsLossType").then((response) => {
+      this.goodsLossTypeList = response.data;
+    });
+    this.getDicts("data_cntrId").then((response) => {
       if (response.data) {
-        response.data.map((e) => (e.noOption = false))
-        this.cntrIdList = response.data
+        response.data.map((e) => (e.noOption = false));
+        this.cntrIdList = response.data;
       }
-    })
-    this.getDicts('data_priceType').then((response) => {
-      this.priceTypeList = response.data
-    })
+    });
+    this.getDicts("data_priceType").then((response) => {
+      this.priceTypeList = response.data;
+    });
     listCorps().then((response) => {
-      this.fMblnoOptions = response.rows
-    })
+      this.fMblnoOptions = response.rows;
+    });
     listGoods().then((response) => {
-      this.goodsOptions = response.rows
-    })
+      this.goodsOptions = response.rows;
+    });
     listFees().then((response) => {
-      this.fWbuOptions = response.rows
-    })
-    this.userType = Cookies.get('userType')
-    this.username = Cookies.get('userName')
+      this.fWbuOptions = response.rows;
+    });
+    this.userType = Cookies.get("userType");
+    this.username = Cookies.get("userName");
   },
   methods: {
     deleteRow(index) {
       this.feesList.splice(index, 1);
     },
     init() {
-      this.showDialog = true
-      query(this.fname.id).then(data => {
-        this.form = data.data
-        this.feesList = data.data.ftmsorderbillsfees
-        for (let item in this.feesList){
-          this.feesList[item].fFeeunitid = this.feesList[item].fFeeunitid + ""
+      this.showDialog = true;
+      query(this.fname.id).then((data) => {
+        this.form = data.data;
+        this.feesList = data.data.ftmsorderbillsfees;
+        for (let item in this.feesList) {
+          this.feesList[item].fFeeunitid = this.feesList[item].fFeeunitid + "";
         }
-      })
+      });
     },
     //选中时赋值pid
     checkPid(row) {
-      let arr = this.schedulingList
-      let arr2 = arr.filter((e) => e.cntrId == row.cntrId)
-      row['pid'] = arr2[0].id
+      let arr = this.schedulingList;
+      let arr2 = arr.filter((e) => e.cntrId == row.cntrId);
+      row["pid"] = arr2[0].id;
     },
     noMorecntrId(e) {
-      this.cntrIdList.forEach((item) => (item.noOption = false))
-      let arrIds = e.map((item) => item.cntrId)
+      this.cntrIdList.forEach((item) => (item.noOption = false));
+      let arrIds = e.map((item) => item.cntrId);
       this.cntrIdList
         .filter((item) => arrIds.indexOf(item.dictValue) > -1)
-        .forEach((item) => (item.noOption = true))
+        .forEach((item) => (item.noOption = true));
     },
     showSure(val) {
-      let pidList = val.filter((e) => e.pid != null)
-      let arr1 = pidList
-      let arr1Ids = arr1.map((item) => item.cntrId)
-      arr1Ids = [...new Set(arr1Ids)]
-      let arr2 = this.cntrIdList
+      let pidList = val.filter((e) => e.pid != null);
+      let arr1 = pidList;
+      let arr1Ids = arr1.map((item) => item.cntrId);
+      arr1Ids = [...new Set(arr1Ids)];
+      let arr2 = this.cntrIdList;
       this.cntrId2List = arr2.filter(
         (item) => arr1Ids.indexOf(item.dictValue) > -1
-      )
+      );
     },
     // 新增附件上传
     addRelevt() {
       this.feesList.push({
-        actId:'1090',
+        actId: "1090",
         fCorpid: this.form.corpId,
-        fFeeid:'',
-        fDc:'',
-        fFeeunitid:"1",
+        fFeeid: "",
+        fDc: "",
+        fFeeunitid: "1",
         fBillingQty: 0,
         fUnitprice: 0,
-        fCurrency:'RMB',
+        fCurrency: "RMB",
         fTaxrate: null,
         fAmount: 0,
-        fExrate:1,
-        remarks:''
-      })
+        fExrate: 1,
+        remarks: "",
+      });
     },
     deleteplansRow(index, rows, row) {
-      let arr = this.schedulingList
-      let arr2 = arr.filter((e) => e.cntrId == row.cntrId && e.cntrId != null)
+      let arr = this.schedulingList;
+      let arr2 = arr.filter((e) => e.cntrId == row.cntrId && e.cntrId != null);
       if (arr2.length != 0) {
-        this.msgSuccess('调度安排已插入此箱型数据,不能删除')
+        this.msgSuccess("调度安排已插入此箱型数据,不能删除");
       } else {
         this.cntrIdList
           .filter((item) => item.dictValue == row.cntrId)
-          .forEach((item) => (item.noOption = false))
-        rows.splice(index, 1)
+          .forEach((item) => (item.noOption = false));
+        rows.splice(index, 1);
       }
     },
     // 上传成功返回数据
     showFile(row) {
       for (let list in this.relevantAttachments) {
-        this.$set(this.relevantAttachments[list], 'attachUrl', row.url)
-        this.$set(this.relevantAttachments[list], 'attachName', row.fileName)
+        this.$set(this.relevantAttachments[list], "attachUrl", row.url);
+        this.$set(this.relevantAttachments[list], "attachName", row.fileName);
       }
     },
     // 弹出框关闭后触发
     handleClose() {
       // 子组件调用父组件方法,并传递参数
-      this.$emit('changeShow', 'false')
-      this.cntrIdList.forEach((item) => (item.noOption = false))
-      this.collapses = []
+      this.$emit("changeShow", "false");
+      this.cntrIdList.forEach((item) => (item.noOption = false));
+      this.collapses = [];
     },
     /** 提交按钮 */
     submitForm() {
-      this.$refs['form'].validate((valid) => {
+      this.$refs["form"].validate((valid) => {
         if (valid) {
-          let formDatae = new window.FormData()
-          formDatae.append('status', 6)
-          formDatae.append('cars', JSON.stringify(this.form))
-          formDatae.append('ftmsorderbillsfees', JSON.stringify(this.feesList))
-          submit(formDatae).then(data=>{
-            this.feesList = data.data.ftmsorderbillsfeesList
-            for (let item in this.feesList){
-              this.feesList[item].fFeeunitid = this.feesList[item].fFeeunitid + ""
+          let formDatae = new window.FormData();
+          formDatae.append("status", 6);
+          formDatae.append("cars", JSON.stringify(this.form));
+          formDatae.append("ftmsorderbillsfees", JSON.stringify(this.feesList));
+          submit(formDatae).then((data) => {
+            this.feesList = data.data.ftmsorderbillsfeesList;
+            for (let item in this.feesList) {
+              this.feesList[item].fFeeunitid =
+                this.feesList[item].fFeeunitid + "";
             }
-            this.$message.success('保存成功');
-          })
+            this.$message.success("保存成功");
+          });
         }
-      })
+      });
     },
     //修改
     submitFix() {
-      this.$refs['form'].validate((valid) => {
+      this.$refs["form"].validate((valid) => {
         if (valid) {
         }
-      })
+      });
     },
     //保存
     submitSave() {
-      let formDatae = new window.FormData()
-      formDatae.append('status', 2)
-      formDatae.append('cars', JSON.stringify(this.form))
-      formDatae.append('ftmsorderbillsfees', JSON.stringify(this.feesList))
-      submit(formDatae).then(data=>{
-        this.feesList = data.data.ftmsorderbillsfeesList
-        for (let item in this.feesList){
-          this.feesList[item].fFeeunitid = this.feesList[item].fFeeunitid + ""
+      let formDatae = new window.FormData();
+      formDatae.append("status", 2);
+      formDatae.append("cars", JSON.stringify(this.form));
+      formDatae.append("ftmsorderbillsfees", JSON.stringify(this.feesList));
+      submit(formDatae).then((data) => {
+        this.feesList = data.data.ftmsorderbillsfeesList;
+        for (let item in this.feesList) {
+          this.feesList[item].fFeeunitid = this.feesList[item].fFeeunitid + "";
         }
-        this.$message.success('保存成功');
-      })
+        this.$message.success("保存成功");
+      });
     },
     //撤回
-    submitRetreat() {
-    },
+    submitRetreat() {},
     //修改
     submitAllowChanges() {
-      this.disabled = !this.disabled
+      this.disabled = !this.disabled;
     },
 
     //单条订单调度提交
-    addscarsRow(row) {
-    },
+    addscarsRow(row) {},
     delscarsRow(index, rows, row) {
       if (row.billStatus != 6 && row.id != null) {
         removeFtmsorderbillscars(row).then((response) => {
           if (response.code == 200) {
-            rows.splice(index, 1)
-            this.msgSuccess('成功删除')
+            rows.splice(index, 1);
+            this.msgSuccess("成功删除");
           }
-        })
+        });
       } else {
-        rows.splice(index, 1)
+        rows.splice(index, 1);
       }
     },
-    revokescarsRow(index, rows, row) {
-    },
-    changescarsRow(row) {
-    }
+    revokescarsRow(index, rows, row) {},
+    changescarsRow(row) {},
   },
   watch: {
     // 监听 addOrUpdateVisible 改变
     addOrUpdateVisible(oldVal, newVal) {
-      this.showDialog = this.addOrUpdateVisible
-    }
-  }
-}
+      this.showDialog = this.addOrUpdateVisible;
+    },
+  },
+};
 </script>