Quellcode durchsuchen

修改国内贸易

lichao vor 3 Jahren
Ursprung
Commit
77635cde68

+ 1 - 0
src/views/businessManagement/deliveryNotice/configuration/mainList.json

@@ -1,6 +1,7 @@
 {
   "lazy": true,
   "tip": false,
+  "addBtnText": "创建单据",
   "simplePage": true,
   "searchShow": true,
   "searchMenuPosition": "right",

+ 74 - 65
src/views/businessManagement/deliveryNotice/detailsPageEdit.vue

@@ -35,7 +35,7 @@
           size="small"
           type="success" @click="copyOrder"
           :disabled="detailData.seeDisabled || !form.id">
-          复制
+          复制单
         </el-button>
         <el-button
           class="el-button--small-yh"
@@ -44,7 +44,7 @@
           @click="editCustomer(false)"
           :loading="saveLoading"
           size="small"
-        >{{ form.id ? '确认修改' : '确认新增' }}
+        >保 存
         </el-button>
       </div>
     </div>
@@ -193,69 +193,75 @@
             </template>
           </avue-crud>
         </basic-container>
-        <containerTitle title="费用明细"></containerTitle>
-        <basic-container style="margin-bottom: 10px">
-          <avue-crud
-              :option="advantageProject"
-              v-model="advantageProjectForm"
-              :data="advantageProjectData"
-              ref="crudProject"
-              @row-save="rowSaveProject"
-              @row-update="rowUpdateProject"
-              @row-del="rowDelProject"
-              @saveColumn="saveColumn('fees')"
-          >
-            <template slot="code" slot-scope="{row,index}">
-              <el-button type="text" size="mini" style="padding:4px 10px;float:left" @click="choice(row)" :disabled="detailData.seeDisabled || !row.$cellEdit">选择</el-button>
-              <span>{{ row.code }}</span>
-            </template>
-            <template slot="corpId" slot-scope="{ row }">
-              <selectComponent v-if="row.$cellEdit" v-model="row.corpId"
-                               :configuration="configuration" @receiveList="receiveList"/>
-              <span v-else>
-                <span v-for="item in configuration.dicData" v-if="item.id == row.corpId">{{ item.cname }}</span>
-              </span>
-            </template>
-            <template slot="amount" slot-scope="{ row }">
-              <el-input v-if="row.$cellEdit" v-model.trim="row.amount"
-                        size="small" v-input-limit="2"
-              ></el-input>
-              <span v-else>{{ row.amount }}</span>
-            </template>
-            <template slot="settlmentAmount" slot-scope="{ row }">
-              <el-input v-if="row.$cellEdit" v-model.trim="row.settlmentAmount"
-                        size="small" v-input-limit="2"
-              ></el-input>
-              <span v-else>{{ row.settlmentAmount }}</span>
-            </template>
-            <template slot-scope="{row,index}" slot="menu">
-              <el-button
-                  type="text"
-                  size="small"
-                  @click="rowCellTwo(row,index)"
-                  :disabled="detailData.seeDisabled"
-              >{{ row.$cellEdit ? '保存' : '修改' }}
-              </el-button>
-              <el-button
-                size="small"
-                icon="el-icon-delete"
-                type="text"
-                @click="rowDelProject(row, index)"
-                :disabled="detailData.seeDisabled"
-                v-if="!row.$cellEdit"
-              >删 除</el-button>
-            </template>
-            <template slot="menuLeft" slot-scope="{size}">
-              <el-button type="primary"
-                         icon="el-icon-plus"
-                         size="small"
-                         @click="costIncrease"
-                         :disabled="detailData.seeDisabled"
-              >录入明细
-              </el-button>
-            </template>
-          </avue-crud>
-        </basic-container>
+        <fee-info
+          ref="feeInfo"
+          :orderFeesList="advantageProjectData"
+          :disabled="detailData.seeDisabled"
+          feeUrl="/blade-deliver-goods/deliveryfees/update"
+        />
+<!--        <containerTitle title="费用明细"></containerTitle>-->
+<!--        <basic-container style="margin-bottom: 10px">-->
+<!--          <avue-crud-->
+<!--              :option="advantageProject"-->
+<!--              v-model="advantageProjectForm"-->
+<!--              :data="advantageProjectData"-->
+<!--              ref="crudProject"-->
+<!--              @row-save="rowSaveProject"-->
+<!--              @row-update="rowUpdateProject"-->
+<!--              @row-del="rowDelProject"-->
+<!--              @saveColumn="saveColumn('fees')"-->
+<!--          >-->
+<!--            <template slot="code" slot-scope="{row,index}">-->
+<!--              <el-button type="text" size="mini" style="padding:4px 10px;float:left" @click="choice(row)" :disabled="detailData.seeDisabled || !row.$cellEdit">选择</el-button>-->
+<!--              <span>{{ row.code }}</span>-->
+<!--            </template>-->
+<!--            <template slot="corpId" slot-scope="{ row }">-->
+<!--              <selectComponent v-if="row.$cellEdit" v-model="row.corpId"-->
+<!--                               :configuration="configuration" @receiveList="receiveList"/>-->
+<!--              <span v-else>-->
+<!--                <span v-for="item in configuration.dicData" v-if="item.id == row.corpId">{{ item.cname }}</span>-->
+<!--              </span>-->
+<!--            </template>-->
+<!--            <template slot="amount" slot-scope="{ row }">-->
+<!--              <el-input v-if="row.$cellEdit" v-model.trim="row.amount"-->
+<!--                        size="small" v-input-limit="2"-->
+<!--              ></el-input>-->
+<!--              <span v-else>{{ row.amount }}</span>-->
+<!--            </template>-->
+<!--            <template slot="settlmentAmount" slot-scope="{ row }">-->
+<!--              <el-input v-if="row.$cellEdit" v-model.trim="row.settlmentAmount"-->
+<!--                        size="small" v-input-limit="2"-->
+<!--              ></el-input>-->
+<!--              <span v-else>{{ row.settlmentAmount }}</span>-->
+<!--            </template>-->
+<!--            <template slot-scope="{row,index}" slot="menu">-->
+<!--              <el-button-->
+<!--                  type="text"-->
+<!--                  size="small"-->
+<!--                  @click="rowCellTwo(row,index)"-->
+<!--                  :disabled="detailData.seeDisabled"-->
+<!--              >{{ row.$cellEdit ? '保存' : '修改' }}-->
+<!--              </el-button>-->
+<!--              <el-button-->
+<!--                size="small"-->
+<!--                icon="el-icon-delete"-->
+<!--                type="text"-->
+<!--                @click="rowDelProject(row, index)"-->
+<!--                :disabled="detailData.seeDisabled"-->
+<!--                v-if="!row.$cellEdit"-->
+<!--              >删 除</el-button>-->
+<!--            </template>-->
+<!--            <template slot="menuLeft" slot-scope="{size}">-->
+<!--              <el-button type="primary"-->
+<!--                         icon="el-icon-plus"-->
+<!--                         size="small"-->
+<!--                         @click="costIncrease"-->
+<!--                         :disabled="detailData.seeDisabled"-->
+<!--              >录入明细-->
+<!--              </el-button>-->
+<!--            </template>-->
+<!--          </avue-crud>-->
+<!--        </basic-container>-->
         <containerTitle title="附件上传"></containerTitle>
         <basic-container style="margin-bottom: 40px">
           <avue-crud
@@ -427,6 +433,7 @@ import {customerList as selectWareHouse} from "@/api/basicData/basicStorageDesc"
 import {selectGoodsNum} from "@/api/basicData/inventoryAccount"
 import { contrastObj, contrastList } from "@/util/contrastData";
 import  marketDetail from "@/components/procurement/market";
+import feeInfo from "@/components/fee-info/main";
 
 export default {
   name: "detailsPage",
@@ -437,6 +444,7 @@ export default {
   },
   components: {
     marketDetail,
+    feeInfo,
   },
   data() {
     return {
@@ -1002,6 +1010,7 @@ export default {
     },
     getcorpId(row) {
       this.contactsData[row.index].corpId = row.id;
+      this.contactsData[row.index].corpName = row.cname;
     },
     // 出库数量变化时调用
     actualQuantityChange(row) {

+ 1 - 1
src/views/businessManagement/deliveryNotice/index.vue

@@ -23,7 +23,7 @@
                  @tree-load="treeLoad"
                  @saveColumn="saveColumn">
         <template slot="menuLeft" slot-scope="{size}">
-          <el-button type="success" :size="size" @click="copyOrder" :disabled="single">复制单</el-button>
+          <el-button type="success" :size="size" @click="copyOrder" :disabled="single">复制单</el-button>
           <el-button type="info" :size="size" icon="el-icon-printer">报 表</el-button>
         </template>
         <template slot-scope="scope" slot="orgOrderNo">

+ 1 - 0
src/views/businessManagement/purchaseOrder/configuration/mainList.json

@@ -1,6 +1,7 @@
 {
   "lazy": true,
   "tip": false,
+  "addBtnText": "创建单据",
   "simplePage": true,
   "searchShow": true,
   "searchMenuPosition": "right",

+ 87 - 75
src/views/businessManagement/purchaseOrder/detailsPageEdit.vue

@@ -23,7 +23,9 @@
             审核处理<i class="el-icon-arrow-down el-icon--right"></i>
           </el-button>
           <el-dropdown-menu slot="dropdown">
-            <el-dropdown-item :disabled="true">请核</el-dropdown-item>
+            <el-dropdown-item :disabled="true">请核数据</el-dropdown-item>
+            <el-dropdown-item v-if="false">审核进度</el-dropdown-item>
+            <el-dropdown-item v-if="false">撤销请核</el-dropdown-item>
           </el-dropdown-menu>
         </el-dropdown>
         <el-dropdown style="margin-right: 8px;">
@@ -36,19 +38,19 @@
           <el-dropdown-menu slot="dropdown">
             <el-dropdown-item
               :disabled="detailData.seeDisabled || !form.id"
-              @click="applyPayment('申请')"
+              @click.native="applyPayment('申请')"
             >
               申请货款
             </el-dropdown-item>
             <el-dropdown-item
-               @click="openApplicationDialog"
-               :disabled="!form.id"
-            >查看申请记录
+              @click.stop.native="applyPayment('收费')"
+              :disabled="!this.form.id"
+            >申请退款
             </el-dropdown-item>
             <el-dropdown-item
-               @click.stop="applyPayment('收费')"
-               :disabled="!this.form.id"
-            >退款
+               @click.native="openApplicationDialog"
+               :disabled="!form.id"
+            >查看账单
             </el-dropdown-item>
           </el-dropdown-menu>
         </el-dropdown>
@@ -59,7 +61,7 @@
           @click="copyOrder"
           :disabled="detailData.seeDisabled || !this.form.id"
         >
-          复制
+          复制单
         </el-button>
         <el-button
           size="small"
@@ -68,7 +70,7 @@
           :disabled="disabled || detailData.seeDisabled"
           @click="editCustomer(false)"
           :loading="saveLoading"
-        >{{ form.id ? '确认修改' : '确认新增' }}
+        >保 存
         </el-button>
       </div>
     </div>
@@ -218,69 +220,75 @@
             </template>
           </avue-crud>
         </basic-container>
-        <containerTitle title="费用明细"></containerTitle>
-        <basic-container style="margin-bottom: 10px">
-          <avue-crud
-              :option="advantageProject"
-              v-model="advantageProjectForm"
-              :data="advantageProjectData"
-              ref="crudProject"
-              @row-save="rowSaveProject"
-              @row-update="rowUpdateProject"
-              @row-del="rowDelProject"
-              @saveColumn="saveColumn('fees')"
-          >
-            <template slot="code" slot-scope="{row,index}">
-              <el-button type="text" size="mini" style="padding:4px 10px;float:left" @click="choice(row)" :disabled="detailData.seeDisabled || !row.$cellEdit">选择</el-button>
-              <span>{{ row.code }}</span>
-            </template>
-            <template slot="corpId" slot-scope="{ row }">
-              <selectComponent v-if="row.$cellEdit" v-model="row.corpId"
-                               :configuration="configuration" @receiveList="receiveList" typeData="GYS"/>
-              <span v-else>
-                <span v-for="item in configuration.dicData" v-if="item.id == row.corpId">{{ item.cname }}</span>
-              </span>
-            </template>
-            <template slot="amount" slot-scope="{ row }">
-              <el-input v-if="row.$cellEdit" v-model.trim="row.amount"
-                        size="small" v-input-limit="2"
-              ></el-input>
-              <span v-else>{{ row.amount }}</span>
-            </template>
-            <template slot="settlmentAmount" slot-scope="{ row }">
-              <el-input v-if="row.$cellEdit" v-model.trim="row.settlmentAmount"
-                        size="small" v-input-limit="2"
-              ></el-input>
-              <span v-else>{{ row.settlmentAmount }}</span>
-            </template>
-            <template slot-scope="{row,index}" slot="menu">
-              <el-button
-                  type="text"
-                  size="small"
-                  @click="rowCellTwo(row,index)"
-                  :disabled="detailData.seeDisabled"
-              >{{ row.$cellEdit ? '保存' : '修改' }}
-              </el-button>
-              <el-button
-                size="small"
-                icon="el-icon-delete"
-                type="text"
-                @click="rowDelProject(row, index)"
-                :disabled="detailData.seeDisabled"
-                v-if="!row.$cellEdit"
-              >删 除</el-button>
-            </template>
-            <template slot="menuLeft" slot-scope="{size}">
-              <el-button type="primary"
-                         icon="el-icon-plus"
-                         size="small"
-                         @click="costIncrease"
-                         :disabled="detailData.seeDisabled"
-              >录入明细
-              </el-button>
-            </template>
-          </avue-crud>
-        </basic-container>
+        <fee-info
+          ref="feeInfo"
+          :orderFeesList="advantageProjectData"
+          :disabled="detailData.seeDisabled"
+          feeUrl="/trade-purchase/purchase-order/removeByFees"
+        />
+<!--        <containerTitle title="费用明细"></containerTitle>-->
+<!--        <basic-container style="margin-bottom: 10px">-->
+<!--          <avue-crud-->
+<!--              :option="advantageProject"-->
+<!--              v-model="advantageProjectForm"-->
+<!--              :data="advantageProjectData"-->
+<!--              ref="crudProject"-->
+<!--              @row-save="rowSaveProject"-->
+<!--              @row-update="rowUpdateProject"-->
+<!--              @row-del="rowDelProject"-->
+<!--              @saveColumn="saveColumn('fees')"-->
+<!--          >-->
+<!--            <template slot="code" slot-scope="{row,index}">-->
+<!--              <el-button type="text" size="mini" style="padding:4px 10px;float:left" @click="choice(row)" :disabled="detailData.seeDisabled || !row.$cellEdit">选择</el-button>-->
+<!--              <span>{{ row.code }}</span>-->
+<!--            </template>-->
+<!--            <template slot="corpId" slot-scope="{ row }">-->
+<!--              <selectComponent v-if="row.$cellEdit" v-model="row.corpId"-->
+<!--                               :configuration="configuration" @receiveList="receiveList" typeData="GYS"/>-->
+<!--              <span v-else>-->
+<!--                <span v-for="item in configuration.dicData" v-if="item.id == row.corpId">{{ item.cname }}</span>-->
+<!--              </span>-->
+<!--            </template>-->
+<!--            <template slot="amount" slot-scope="{ row }">-->
+<!--              <el-input v-if="row.$cellEdit" v-model.trim="row.amount"-->
+<!--                        size="small" v-input-limit="2"-->
+<!--              ></el-input>-->
+<!--              <span v-else>{{ row.amount }}</span>-->
+<!--            </template>-->
+<!--            <template slot="settlmentAmount" slot-scope="{ row }">-->
+<!--              <el-input v-if="row.$cellEdit" v-model.trim="row.settlmentAmount"-->
+<!--                        size="small" v-input-limit="2"-->
+<!--              ></el-input>-->
+<!--              <span v-else>{{ row.settlmentAmount }}</span>-->
+<!--            </template>-->
+<!--            <template slot-scope="{row,index}" slot="menu">-->
+<!--              <el-button-->
+<!--                  type="text"-->
+<!--                  size="small"-->
+<!--                  @click="rowCellTwo(row,index)"-->
+<!--                  :disabled="detailData.seeDisabled"-->
+<!--              >{{ row.$cellEdit ? '保存' : '修改' }}-->
+<!--              </el-button>-->
+<!--              <el-button-->
+<!--                size="small"-->
+<!--                icon="el-icon-delete"-->
+<!--                type="text"-->
+<!--                @click="rowDelProject(row, index)"-->
+<!--                :disabled="detailData.seeDisabled"-->
+<!--                v-if="!row.$cellEdit"-->
+<!--              >删 除</el-button>-->
+<!--            </template>-->
+<!--            <template slot="menuLeft" slot-scope="{size}">-->
+<!--              <el-button type="primary"-->
+<!--                         icon="el-icon-plus"-->
+<!--                         size="small"-->
+<!--                         @click="costIncrease"-->
+<!--                         :disabled="detailData.seeDisabled"-->
+<!--              >录入明细-->
+<!--              </el-button>-->
+<!--            </template>-->
+<!--          </avue-crud>-->
+<!--        </basic-container>-->
         <containerTitle title="附件上传"></containerTitle>
         <basic-container style="margin-bottom: 40px">
           <avue-crud
@@ -472,6 +480,7 @@ import { contrastObj, contrastList } from "@/util/contrastData";
 import ApplyPayment from "../../../components/finance/applyPayment";
 import  billApplication from "@/components/bill/billApplication";
 import { getlistBankBy } from "@/api/basicData/configuration"
+import feeInfo from "@/components/fee-info/main";
 
 export default {
   name: "detailsPage",
@@ -485,7 +494,8 @@ export default {
   },
   components:{
     ApplyPayment,
-    billApplication
+    billApplication,
+    feeInfo,
   },
   data() {
     return {
@@ -644,7 +654,7 @@ export default {
             prop: 'packageRemarks',
             rules: [
               {
-                required: true,
+                required: false,
                 message: ' ',
                 trigger: 'blur'
               }
@@ -1331,6 +1341,8 @@ export default {
                 });
               })
             }
+          }).catch(() => {
+            this.saveLoading = false
           })
         } else {
           return false;

+ 1 - 1
src/views/businessManagement/purchaseOrder/index.vue

@@ -21,7 +21,7 @@
                  @tree-load="treeLoad"
                  @saveColumn="saveColumn">
         <template slot="menuLeft" slot-scope="{size}">
-          <el-button type="success" :size="size" icon="el-icon-copy-document" @click="copyOrder" :disabled="single">复制单</el-button>
+          <el-button type="success" :size="size" icon="el-icon-copy-document" @click="copyOrder" :disabled="single">复制单</el-button>
           <el-button type="info" :size="size" icon="el-icon-printer">报 表</el-button>
           <el-button type="warning" :size="size" icon="el-icon-thumb" :disabled="multiple" @click="applyPayment">申请货款</el-button>
         </template>

+ 1 - 0
src/views/businessManagement/receipt/configuration/mainList.json

@@ -1,6 +1,7 @@
 {
   "lazy": true,
   "tip": false,
+  "addBtnText": "创建单据",
   "simplePage": true,
   "searchShow": true,
   "searchMenuPosition": "right",

+ 75 - 67
src/views/businessManagement/receipt/detailsPageEdit.vue

@@ -35,7 +35,7 @@
           size="small"
           type="success" @click="copyOrder"
           :disabled="detailData.seeDisabled || !this.form.id">
-          复制
+          复制单
         </el-button>
         <el-button
           class="el-button--small-yh"
@@ -44,7 +44,7 @@
           @click="editCustomer(false)"
           size="small"
           :loading="saveLoading"
-        >{{ form.id ? '确认修改' : '确认新增' }}
+        >保 存
         </el-button>
       </div>
     </div>
@@ -155,69 +155,75 @@
             </template>
           </avue-crud>
         </basic-container>
-        <containerTitle title="费用明细"></containerTitle>
-        <basic-container style="margin-bottom: 10px">
-          <avue-crud
-              :option="advantageProject"
-              v-model="advantageProjectForm"
-              :data="advantageProjectData"
-              ref="crudProject"
-              @row-save="rowSaveProject"
-              @row-update="rowUpdateProject"
-              @row-del="rowDelProject"
-              @saveColumn="saveColumn('fees')"
-          >
-            <template slot="code" slot-scope="{row,index}">
-              <el-button type="text" size="mini" style="padding:4px 10px;float:left" @click="choice(row)" :disabled="detailData.seeDisabled || !row.$cellEdit">选择</el-button>
-              <span>{{ row.code }}</span>
-            </template>
-            <template slot="corpId" slot-scope="{ row }">
-              <selectComponent v-if="row.$cellEdit" v-model="row.corpId"
-                               :configuration="configuration" @receiveList="receiveList"/>
-              <span v-else>
-                <span v-for="(item, index) in configuration.dicData" :key="index" v-if="item.id == row.corpId">{{ item.cname }}</span>
-              </span>
-            </template>
-            <template slot="amount" slot-scope="{ row }">
-              <el-input v-if="row.$cellEdit" v-model.trim="row.amount"
-                        size="small" v-input-limit="2"
-              ></el-input>
-              <span v-else>{{ row.amount }}</span>
-            </template>
-            <template slot="settlmentAmount" slot-scope="{ row }">
-              <el-input v-if="row.$cellEdit" v-model.trim="row.settlmentAmount"
-                        size="small" v-input-limit="2"
-              ></el-input>
-              <span v-else>{{ row.settlmentAmount }}</span>
-            </template>
-            <template slot-scope="{row,index}" slot="menu">
-              <el-button
-                  type="text"
-                  size="small"
-                  @click="rowCellTwo(row,index)"
-                  :disabled="detailData.seeDisabled"
-              >{{ row.$cellEdit ? '保存' : '修改' }}
-              </el-button>
-              <el-button
-                size="small"
-                icon="el-icon-delete"
-                type="text"
-                @click="rowDelProject(row, index)"
-                :disabled="detailData.seeDisabled"
-                v-if="!row.$cellEdit"
-              >删 除</el-button>
-            </template>
-            <template slot="menuLeft" slot-scope="{size}">
-              <el-button type="primary"
-                         icon="el-icon-plus"
-                         size="small"
-                         @click="costIncrease"
-                         :disabled="detailData.seeDisabled"
-              >录入明细
-              </el-button>
-            </template>
-          </avue-crud>
-        </basic-container>
+        <fee-info
+          ref="feeInfo"
+          :orderFeesList="advantageProjectData"
+          :disabled="detailData.seeDisabled"
+          feeUrl="/blade-deliver-goods/deliveryfees/update"
+        />
+<!--        <containerTitle title="费用明细"></containerTitle>-->
+<!--        <basic-container style="margin-bottom: 10px">-->
+<!--          <avue-crud-->
+<!--              :option="advantageProject"-->
+<!--              v-model="advantageProjectForm"-->
+<!--              :data="advantageProjectData"-->
+<!--              ref="crudProject"-->
+<!--              @row-save="rowSaveProject"-->
+<!--              @row-update="rowUpdateProject"-->
+<!--              @row-del="rowDelProject"-->
+<!--              @saveColumn="saveColumn('fees')"-->
+<!--          >-->
+<!--            <template slot="code" slot-scope="{row,index}">-->
+<!--              <el-button type="text" size="mini" style="padding:4px 10px;float:left" @click="choice(row)" :disabled="detailData.seeDisabled || !row.$cellEdit">选择</el-button>-->
+<!--              <span>{{ row.code }}</span>-->
+<!--            </template>-->
+<!--            <template slot="corpId" slot-scope="{ row }">-->
+<!--              <selectComponent v-if="row.$cellEdit" v-model="row.corpId"-->
+<!--                               :configuration="configuration" @receiveList="receiveList"/>-->
+<!--              <span v-else>-->
+<!--                <span v-for="(item, index) in configuration.dicData" :key="index" v-if="item.id == row.corpId">{{ item.cname }}</span>-->
+<!--              </span>-->
+<!--            </template>-->
+<!--            <template slot="amount" slot-scope="{ row }">-->
+<!--              <el-input v-if="row.$cellEdit" v-model.trim="row.amount"-->
+<!--                        size="small" v-input-limit="2"-->
+<!--              ></el-input>-->
+<!--              <span v-else>{{ row.amount }}</span>-->
+<!--            </template>-->
+<!--            <template slot="settlmentAmount" slot-scope="{ row }">-->
+<!--              <el-input v-if="row.$cellEdit" v-model.trim="row.settlmentAmount"-->
+<!--                        size="small" v-input-limit="2"-->
+<!--              ></el-input>-->
+<!--              <span v-else>{{ row.settlmentAmount }}</span>-->
+<!--            </template>-->
+<!--            <template slot-scope="{row,index}" slot="menu">-->
+<!--              <el-button-->
+<!--                  type="text"-->
+<!--                  size="small"-->
+<!--                  @click="rowCellTwo(row,index)"-->
+<!--                  :disabled="detailData.seeDisabled"-->
+<!--              >{{ row.$cellEdit ? '保存' : '修改' }}-->
+<!--              </el-button>-->
+<!--              <el-button-->
+<!--                size="small"-->
+<!--                icon="el-icon-delete"-->
+<!--                type="text"-->
+<!--                @click="rowDelProject(row, index)"-->
+<!--                :disabled="detailData.seeDisabled"-->
+<!--                v-if="!row.$cellEdit"-->
+<!--              >删 除</el-button>-->
+<!--            </template>-->
+<!--            <template slot="menuLeft" slot-scope="{size}">-->
+<!--              <el-button type="primary"-->
+<!--                         icon="el-icon-plus"-->
+<!--                         size="small"-->
+<!--                         @click="costIncrease"-->
+<!--                         :disabled="detailData.seeDisabled"-->
+<!--              >录入明细-->
+<!--              </el-button>-->
+<!--            </template>-->
+<!--          </avue-crud>-->
+<!--        </basic-container>-->
         <containerTitle title="附件上传"></containerTitle>
         <basic-container style="margin-bottom: 40px">
           <avue-crud
@@ -370,6 +376,7 @@ import {customerList as wareHouseType} from "@/api/basicData/basicStorageType"
 import {customerList as selectWareHouse} from "@/api/basicData/basicStorageDesc"
 import {selectGoodsNum} from "@/api/basicData/inventoryAccount"
 import { contrastObj, contrastList } from "@/util/contrastData";
+import feeInfo from "@/components/fee-info/main";
 
 export default {
   name: "detailsPage",
@@ -378,6 +385,9 @@ export default {
       type: Object
     }
   },
+  components: {
+    feeInfo,
+  },
   data() {
     return {
       saveLoading: false,
@@ -1054,8 +1064,6 @@ export default {
     },
     //新增商品信息保存触发
     rowSave(row, done, loading) {
-      console.log(row)
-      console.log(this.contactsData)
       // this.contactsData.push(row)
       done()
     },

+ 1 - 1
src/views/businessManagement/receipt/index.vue

@@ -23,7 +23,7 @@
                  @tree-load="treeLoad"
                  @saveColumn="saveColumn">
         <template slot="menuLeft" slot-scope="{size}">
-          <el-button type="success" :size="size" @click="copyOrder" :disabled="single">复制单</el-button>
+          <el-button type="success" :size="size" @click="copyOrder" :disabled="single">复制单</el-button>
           <el-button type="info" :size="size" icon="el-icon-printer">报 表</el-button>
         </template>
         <template slot-scope="scope" slot="orgOrderNo">

+ 1 - 1
src/views/businessManagement/salesOrder/configuration/mainList.json

@@ -1,6 +1,6 @@
 {
   "height": "auto",
-  "addBtnText": "新单",
+  "addBtnText": "创建单据",
   "lazy": true,
   "tip": false,
   "searchMenuPosition": "right",

+ 145 - 77
src/views/businessManagement/salesOrder/detailsPageEdit.vue

@@ -23,7 +23,9 @@
             审核处理<i class="el-icon-arrow-down el-icon--right"></i>
           </el-button>
           <el-dropdown-menu slot="dropdown">
-            <el-dropdown-item :disabled="true">请核</el-dropdown-item>
+            <el-dropdown-item :disabled="true">请核数据</el-dropdown-item>
+            <el-dropdown-item v-if="false">审核进度</el-dropdown-item>
+            <el-dropdown-item v-if="false">撤销请核</el-dropdown-item>
           </el-dropdown-menu>
         </el-dropdown>
         <el-dropdown style="margin-right: 8px;">
@@ -36,12 +38,12 @@
           <el-dropdown-menu slot="dropdown">
             <el-dropdown-item
               :disabled="detailData.seeDisabled"
-              @click="applySettlement('收费')">生成账单
+              @click.native="applySettlement('收费')">生成账单
             </el-dropdown-item>
             <el-dropdown-item
               :disabled="detailData.seeDisabled"
-              @click="applySettlement('申请')"
-            >退款</el-dropdown-item>
+              @click.native="applySettlement('申请')"
+            >申请退款</el-dropdown-item>
           </el-dropdown-menu>
         </el-dropdown>
         <el-dropdown style="margin-right: 8px;">
@@ -54,12 +56,12 @@
           <el-dropdown-menu slot="dropdown">
             <el-dropdown-item
               :disabled="detailData.seeDisabled"
-              @click="saveSell">生成采购
+              @click.native="saveSell">生成采购
             </el-dropdown-item>
             <el-dropdown-item
               :disabled="detailData.seeDisabled || !this.form.id"
-              @click="copyOrder"
-            >复制单</el-dropdown-item>
+              @click.native="copyOrder"
+            >复制单</el-dropdown-item>
           </el-dropdown-menu>
         </el-dropdown>
         <el-button
@@ -69,7 +71,7 @@
           :loading="saveLoading"
           size="small"
           @click="editCustomer(false)"
-        >{{ form.id ? '确认修改' : '确认新增' }}
+        >保 存
         </el-button>
       </div>
     </div>
@@ -130,6 +132,12 @@
                 <el-select v-else-if="item.prop === 'paymentType'" v-model="form[item.prop]" placeholder="请选择" clearable filterable style="width: 100%" size="small" :disabled="detailData.seeDisabled">
                   <el-option v-for="(item,index) in paymentOption" :key="index" :label="item.dictValue" :value="item.dictValue"></el-option>
                 </el-select>
+                <el-select v-else-if="item.prop === 'arrivalAddress'" v-model="form[item.prop]" placeholder="请选择" clearable filterable style="width: 100%" size="small" :disabled="detailData.seeDisabled" allow-create default-first-option>
+                  <el-option v-for="(item,index) in arrivalOptions" :key="index" :label="item.label" :value="item.label"></el-option>
+                </el-select>
+                <el-select v-else-if="item.prop === 'shippingAddress'" v-model="form[item.prop]" placeholder="请选择" clearable filterable style="width: 100%" size="small" :disabled="detailData.seeDisabled" allow-create default-first-option>
+                  <el-option v-for="(item,index) in shippingOptions" :key="index" :label="item.label" :value="item.label"></el-option>
+                </el-select>
                 <el-select v-else-if="item.prop === 'banks'"
                            v-model="form[item.prop]" placeholder="请选择"
                            clearable
@@ -167,12 +175,28 @@
                                 value-format="yyyy-MM-dd HH:mm:ss"
                                 :disabled="detailData.seeDisabled"/>
                 <el-input
-                  v-else-if="(item.prop === 'advancePayment') || (item.prop === 'orderAmount') || (item.prop === 'settlmentAmount') || (item.prop === 'overPayment')"
+                  v-else-if="(item.prop === 'advancePayment') || (item.prop === 'orderAmount') || (item.prop === 'settlmentAmount')"
                   v-model.trim="form[item.prop]" size="small" autocomplete="off"
                   @change="computedCost"
                   :disabled="detailData.seeDisabled"
                   v-input-limit="2"
                 ></el-input>
+                <span v-else-if="item.prop === 'overPayment'">
+                  <el-input
+                    v-model="form['overPayment']"
+                    size="small"
+                    autocomplete="off"
+                    @change="computedCost"
+                    :disabled="detailData.seeDisabled"
+                    style="width: 50%"
+                    v-input-limit="2"></el-input>
+                   <el-input
+                     v-model="form['abc']"
+                     size="small"
+                     autocomplete="off"
+                     disabled
+                     style="width: 50%"></el-input>
+                </span>
                 <el-select v-else-if="item.prop === 'orderStatus'" v-model="form[item.prop]" placeholder="请选择" clearable filterable style="width: 100%" size="small" :disabled="detailData.seeDisabled">
                   <el-option v-for="(item,index) in statusOption" :key="index" :label="item.dictValue" :value="item.dictValue"></el-option>
                 </el-select>
@@ -364,69 +388,75 @@
             </template>
           </avue-crud>
         </basic-container>
-        <containerTitle title="费用明细"></containerTitle>
-        <basic-container style="margin-bottom: 10px">
-          <avue-crud
-              :option="advantageProject"
-              v-model="advantageProjectForm"
-              :data="advantageProjectData"
-              ref="crudProject"
-              @row-save="rowSaveProject"
-              @row-update="rowUpdateProject"
-              @row-del="rowDelProject"
-              @saveColumn="saveColumn('fees')"
-          >
-            <template slot="code" slot-scope="{row,index}">
-              <el-button type="text" size="mini" style="padding:4px 10px;float:left" @click="choice(row)" :disabled="detailData.seeDisabled || !row.$cellEdit">选择</el-button>
-              <span>{{ row.code }}</span>
-            </template>
-            <template slot="corpId" slot-scope="{ row }">
-              <selectComponent v-if="row.$cellEdit" v-model="row.corpId"
-                               :configuration="configuration" @receiveList="receiveList"/>
-              <span v-else>
-                <span v-for="item in configuration.dicData" v-if="item.id == row.corpId">{{ item.cname }}</span>
-              </span>
-            </template>
-            <template slot="amount" slot-scope="{ row }">
-              <el-input v-if="row.$cellEdit" v-model.trim="row.amount"
-                        size="small" v-input-limit="2"
-              ></el-input>
-              <span v-else>{{ row.amount }}</span>
-            </template>
-            <template slot="settlmentAmount" slot-scope="{ row }">
-              <el-input v-if="row.$cellEdit" v-model.trim="row.settlmentAmount"
-                        size="small" v-input-limit="2"
-              ></el-input>
-              <span v-else>{{ row.settlmentAmount }}</span>
-            </template>
-            <template slot-scope="{row,index}" slot="menu">
-              <el-button
-                  type="text"
-                  size="small"
-                  @click="rowCellTwo(row,index)"
-                  :disabled="detailData.seeDisabled"
-              >{{ row.$cellEdit ? '保 存' : '修 改 ' }}
-              </el-button>
-              <el-button
-                size="small"
-                icon="el-icon-delete"
-                type="text"
-                @click="rowDelProject(row, index)"
-                :disabled="detailData.seeDisabled"
-                v-if="!row.$cellEdit"
-              >删 除</el-button>
-            </template>
-            <template slot="menuLeft" slot-scope="{size}">
-              <el-button type="primary"
-                         icon="el-icon-plus"
-                         size="small"
-                         @click="costIncrease"
-                         :disabled="detailData.seeDisabled"
-              >录入明细
-              </el-button>
-            </template>
-          </avue-crud>
-        </basic-container>
+        <fee-info
+          ref="feeInfo"
+          :orderFeesList="advantageProjectData"
+          :disabled="detailData.seeDisabled"
+          feeUrl="/blade-purchase-sales/orderfees/update"
+        />
+<!--        <containerTitle title="费用明细"></containerTitle>-->
+<!--        <basic-container style="margin-bottom: 10px">-->
+<!--          <avue-crud-->
+<!--              :option="advantageProject"-->
+<!--              v-model="advantageProjectForm"-->
+<!--              :data="advantageProjectData"-->
+<!--              ref="crudProject"-->
+<!--              @row-save="rowSaveProject"-->
+<!--              @row-update="rowUpdateProject"-->
+<!--              @row-del="rowDelProject"-->
+<!--              @saveColumn="saveColumn('fees')"-->
+<!--          >-->
+<!--            <template slot="code" slot-scope="{row,index}">-->
+<!--              <el-button type="text" size="mini" style="padding:4px 10px;float:left" @click="choice(row)" :disabled="detailData.seeDisabled || !row.$cellEdit">选择</el-button>-->
+<!--              <span>{{ row.code }}</span>-->
+<!--            </template>-->
+<!--            <template slot="corpId" slot-scope="{ row }">-->
+<!--              <selectComponent v-if="row.$cellEdit" v-model="row.corpId"-->
+<!--                               :configuration="configuration" @receiveList="receiveList"/>-->
+<!--              <span v-else>-->
+<!--                <span v-for="item in configuration.dicData" v-if="item.id == row.corpId">{{ item.cname }}</span>-->
+<!--              </span>-->
+<!--            </template>-->
+<!--            <template slot="amount" slot-scope="{ row }">-->
+<!--              <el-input v-if="row.$cellEdit" v-model.trim="row.amount"-->
+<!--                        size="small" v-input-limit="2"-->
+<!--              ></el-input>-->
+<!--              <span v-else>{{ row.amount }}</span>-->
+<!--            </template>-->
+<!--            <template slot="settlmentAmount" slot-scope="{ row }">-->
+<!--              <el-input v-if="row.$cellEdit" v-model.trim="row.settlmentAmount"-->
+<!--                        size="small" v-input-limit="2"-->
+<!--              ></el-input>-->
+<!--              <span v-else>{{ row.settlmentAmount }}</span>-->
+<!--            </template>-->
+<!--            <template slot-scope="{row,index}" slot="menu">-->
+<!--              <el-button-->
+<!--                  type="text"-->
+<!--                  size="small"-->
+<!--                  @click="rowCellTwo(row,index)"-->
+<!--                  :disabled="detailData.seeDisabled"-->
+<!--              >{{ row.$cellEdit ? '保 存' : '修 改 ' }}-->
+<!--              </el-button>-->
+<!--              <el-button-->
+<!--                size="small"-->
+<!--                icon="el-icon-delete"-->
+<!--                type="text"-->
+<!--                @click="rowDelProject(row, index)"-->
+<!--                :disabled="detailData.seeDisabled"-->
+<!--                v-if="!row.$cellEdit"-->
+<!--              >删 除</el-button>-->
+<!--            </template>-->
+<!--            <template slot="menuLeft" slot-scope="{size}">-->
+<!--              <el-button type="primary"-->
+<!--                         icon="el-icon-plus"-->
+<!--                         size="small"-->
+<!--                         @click="costIncrease"-->
+<!--                         :disabled="detailData.seeDisabled"-->
+<!--              >录入明细-->
+<!--              </el-button>-->
+<!--            </template>-->
+<!--          </avue-crud>-->
+<!--        </basic-container>-->
         <containerTitle title="附件上传"></containerTitle>
         <basic-container style="margin-bottom: 40px">
           <avue-crud
@@ -698,6 +728,8 @@ import ApplyPayment from "../../../components/finance/applyPayment";
 import reportDialog from "@/components/report-dialog/main";
 import { getToken } from "@/util/auth";
 import Cookies from 'js-cookie'
+import feeInfo from "@/components/fee-info/main";
+import {corpsAddrSelect}  from "@/api/basicData/customerInformation";
 
 export default {
   name: "detailsPage",
@@ -710,6 +742,7 @@ export default {
     customerDialog,
     ApplyPayment,
     reportDialog,
+    feeInfo,
   },
   data() {
     return {
@@ -1338,6 +1371,8 @@ export default {
       giftData: [],
       // 商品信息展示数据
       goodsShowData: [],
+      arrivalOptions: [],
+      shippingOptions: [],
     }
   },
   mounted() {
@@ -1512,6 +1547,7 @@ export default {
     },
     getcorpId(row) {
       this.contactsData[row.index].corpId = row.id;
+      this.contactsData[row.index].corpName = row.cname;
     },
     // 采购金额获取
     getPurchasePrice(row) {
@@ -1799,13 +1835,46 @@ export default {
       this.goodsConfiguration.dicData = this.goodsConfiguration.dicData.concat(data)
       this.removeGoodsRepeat()
     },
-    getCorpRow(data) {
+    async getCorpRow(data) {
+      this.arrivalOptions = [];
+      this.arrivalOptions = await this.corpAddr(data.id)
       this.$set(this.form, 'paymentType', data.paymentType)
       this.$set(this.form, 'packageRemarks', data.packageRemarks)
-      this.$set(this.form, 'arrivalAddress', data.storageAddr)
+      if (this.arrivalOptions.length > 0) {
+        this.$set(this.form, 'arrivalAddress', this.arrivalOptions[0].label)
+      } else {
+        this.$set(this.form, 'arrivalAddress', null)
+      }
+      // if (data.storageAddr) {
+      //   this.arrivalOptions.push({
+      //     label: data.storageAddr
+      //   })
+      // }
+      // corpsAddrSelect({pid: data.id}).then(res => {
+      //   if (res.data.data.records.length > 0) {
+      //     res.data.data.records.forEach(item => {
+      //       this.arrivalOptions.push({
+      //         label: item.addr
+      //       })
+      //     })
+      //   }
+      //   this.$set(this.form, 'paymentType', data.paymentType)
+      //   this.$set(this.form, 'packageRemarks', data.packageRemarks)
+      //   if (this.arrivalOptions.length > 0) {
+      //     this.$set(this.form, 'arrivalAddress', this.arrivalOptions[0].label)
+      //   } else {
+      //     this.$set(this.form, 'arrivalAddress', null)
+      //   }
+      // })
     },
-    getPlantRow(data) {
-      this.$set(this.form, 'shippingAddress', data.storageAddr)
+    async getPlantRow(data) {
+      this.shippingOptions = [];
+      this.shippingOptions = await this.corpAddr(data.id)
+      if (this.shippingOptions.length > 0) {
+        this.$set(this.form, 'shippingAddress', this.shippingOptions[0].label)
+      } else {
+        this.$set(this.form, 'shippingAddress', null)
+      }
     },
     getRow(event,row) {
       row.priceCategory = event[0].goodsTypeName
@@ -1856,7 +1925,6 @@ export default {
       // this.advantageProjectForm = this.advantageProjectForm.concat(this.tableDataCost)
       if (this.tableDataCost.length > 0) {
         for (let item in this.tableDataCost) {
-          console.log(this.tableDataCost[item])
           this.tableDataCost[item].itemId = this.tableDataCost[item].id
           this.tableDataCost[item].feeName = this.tableDataCost[item].cname
           this.$set(this.tableDataCost[item], 'amount', 0)

+ 41 - 30
src/views/businessManagement/salesOrder/index.vue

@@ -25,6 +25,7 @@
                  :cell-style="tableRowClassName"
                  :table-loading="loading"
                  @expand-change="expandChange"
+                 @resetColumn="resetColumn"
       >
         <template slot-scope="scope" slot="expand">
           <el-table :data="scope.row.insideList" v-loading="scope.row.loading">
@@ -58,7 +59,7 @@
           {{ scope.row.createUserName }}
         </template>
         <template slot="menuLeft" slot-scope="{size}">
-          <el-button type="success" :size="size" @click="copyOrder" :disabled="single">复制单</el-button>
+          <el-button type="success" :size="size" @click="copyOrder" :disabled="single">复制单</el-button>
           <el-button type="info" :size="size" icon="el-icon-printer">报 表</el-button>
         </template>
         <template slot-scope="scope" slot="menu">
@@ -237,23 +238,6 @@ export default {
         done()
       })
     },
-    //列保存触发
-    async saveColumn() {
-      /**
-       * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
-       * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
-       * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
-       */
-      const inSave = await this.saveColumnData(
-        this.getColumnName(14),
-        this.option
-      );
-      if (inSave) {
-        this.$message.success("保存成功");
-        //关闭窗口
-        this.$refs.crud.$refs.dialogColumn.columnBox = false;
-      }
-    },
     //查询全部
     initData() {
       customerList().then(res => {
@@ -372,16 +356,11 @@ export default {
     onLoad(page, params) {
       if (this.search.businesDate && this.search.businesDate.length > 0) {
         params = {
-          // ...this.search,
           ...params,
           orderStartDate: this.search.businesDate[0]+ " " + "00:00:00",
           orderEndDate: this.search.businesDate[1]+ " " + "23:59:59",
         }
-        // delete params.businesDate;
-        // delete params.actualDeliveryDate;
-        // delete params.requiredDeliveryDate;
-        // delete params.requiredArrivalDate;
-        // delete params.createTime;
+        delete params.businesDate;
       }
 
       let queryParams = Object.assign({}, params, {
@@ -411,18 +390,21 @@ export default {
     },
     goBack() {
       this.detailData=this.$options.data().detailData
+      this.dataList.forEach(item => {
+        this.$refs.crud.toggleRowExpansion(item, false)
+      })
       this.isShow = true;
       this.gobackSearch(this.search)
     },
     gobackSearch(params) {
       let data = {};
       data = Object.assign({}, params)
-      console.log(data.businesDate)
-      if (data.businesDate && data.businessDate != '') {
-        data.orderStartDate = data.businesDate[0]+ " " + "00:00:00"
-        data.orderEndDate = data.businesDate[1]+ " " + "23:59:59"
-        delete data.businesDate;
-      }
+      // console.log(data.businesDate)
+      // if (data.businesDate && data.businessDate != '') {
+      //   data.orderStartDate = data.businesDate[0]+ " " + "00:00:00"
+      //   data.orderEndDate = data.businesDate[1]+ " " + "23:59:59"
+      //   delete data.businesDate;
+      // }
       if (data.requiredDeliveryDate && data.requiredDeliveryDate != '') {
         data.deliveryStartDate = data.requiredDeliveryDate[0]+ " " + "00:00:00"
         data.deliveryEndDate = data.requiredDeliveryDate[1]+ " " + "23:59:59"
@@ -446,6 +428,35 @@ export default {
       this.page.currentPage = 1;
       this.onLoad(this.page, data);
     },
+    //列保存触发
+    async saveColumn() {
+      /**
+       * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
+       * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
+       * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
+       */
+      const inSave = await this.saveColumnData(
+        this.getColumnName(14),
+        this.option
+      );
+      if (inSave) {
+        this.$message.success("保存成功");
+        //关闭窗口
+        this.$refs.crud.$refs.dialogColumn.columnBox = false;
+      }
+    },
+    async resetColumn() {
+      const inSave = await this.delColumnData(
+        this.getColumnName(14),
+        option
+      );
+      if (inSave) {
+        this.$message.success("重置成功");
+        this.option = option;
+        //关闭窗口
+        this.$refs.crud.$refs.dialogColumn.columnBox = false;
+      }
+    },
   }
 }
 </script>