Browse Source

页面问题修改

tong 4 years ago
parent
commit
2c89460261

+ 2 - 2
src/views/reportManagement/whgenleg/index.vue

@@ -170,8 +170,9 @@
     <el-table v-loading="loading" :data="whgenlegList">
       <el-table-column label="客户" align="center" prop="fCorpid" />
       <el-table-column label="提单号" align="center" prop="fMblno" />
+      <el-table-column label="唛头" align="center" prop="fMarks" />
       <el-table-column label="库区" align="center" prop="fWarehouseLocationids" />
-      <el-table-column label="货物品名" align="center" prop="fGoodsids" />
+      <el-table-column label="品名" align="center" prop="fGoodsids" />
       <el-table-column
         label="贸易方式"
         align="center"
@@ -190,7 +191,6 @@
       <el-table-column label="结余毛重" align="center" prop="fGrossweightblc" />
       <el-table-column label="结余净重" align="center" prop="fNetweightblc" />
       <el-table-column label="箱号" align="center" prop="fCntrno" />
-      <el-table-column label="唛头" align="center" prop="fMarks" />
       <el-table-column label="备注" align="center" prop="remark" />
       <!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
         <template slot-scope="scope">

+ 2 - 2
src/views/warehouseBusiness/goodsTransfer/index.vue

@@ -216,10 +216,10 @@
     >
       <el-table-column type="selection" width="55" align="center" />
       <el-table-column type="index" label="行号" align="center" />
-      <el-table-column label="货权方" align="center" prop="fCorpid" />
+      <el-table-column :show-overflow-tooltip="true" label="货权方" align="center" prop="fCorpid" />
       <el-table-column label="转货权方" align="center" prop="fTocorpid" />
       <el-table-column label="提单号" align="center" prop="fMblno" />
-      <el-table-column label="经营单位" align="center" prop="fSbu" />
+      <el-table-column :show-overflow-tooltip="true" label="经营单位" align="center" prop="fSbu" />
       <el-table-column
         label="货转日期"
         align="center"

+ 178 - 102
src/views/warehouseBusiness/inStock/index.vue

@@ -22,7 +22,7 @@
           filterable
           remote
           clearable
-          style="width: 250px"
+          style="width: 80%"
           :remote-method="userRemoteMethod"
           placeholder="请选择制单人"
         >
@@ -52,7 +52,7 @@
           v-model="queryParams.fTrademodeid"
           placeholder="请选择贸易方式"
           clearable
-          style="width: 250px"
+          style="width: 80%"
           @keyup.enter.native="handleQuery"
         >
           <el-option
@@ -69,10 +69,10 @@
           filterable
           remote
           clearable
-          style="width: 250px"
+          style="width: 80%"
           @keyup.enter.native="handleQuery"
           :remote-method="corpsRemoteMethod"
-          placeholder="请选择货权方"
+          placeholder="请输入"
         >
           <el-option
             v-for="(dict, index) in fMblnoOptions"
@@ -99,7 +99,7 @@
           clearable
           :remote-method="fSbuRemoteMethod"
           @keyup.enter.native="handleQuery"
-          style="width: 250px"
+          style="width: 80%"
           placeholder="请选择经营单位"
         >
           <el-option
@@ -135,10 +135,10 @@
           :disabled="browseStatus"
           remote
           clearable
-          style="width: 250px"
+          style="width: 80%"
           :remote-method="warehouseRemoteMethod"
           @keyup.enter.native="handleQuery"
-          placeholder="请选择仓库"
+          placeholder="请输入"
         >
           <el-option
             v-for="(dict, index) in warehouseOptions"
@@ -218,9 +218,9 @@
     >
       <el-table-column type="selection" width="55" align="center" />
       <el-table-column type="index" label="行号" align="center" />
-      <el-table-column label="货权方" align="center" prop="fCorpid" />
+      <el-table-column :show-overflow-tooltip="true" label="货权方" align="center" prop="fCorpid" />
       <el-table-column label="提单号" align="center" prop="fMblno" />
-      <el-table-column label="经营单位" align="center" prop="fSbu" />
+      <el-table-column :show-overflow-tooltip="true" label="经营单位" align="center" prop="fSbu" />
       <el-table-column
         label="入库日期"
         align="center"
@@ -230,12 +230,12 @@
           <span>{{ parseTime(scope.row.fBsdate, "{y}-{m}-{d}") }}</span>
         </template>
       </el-table-column>
-      <el-table-column
+      <!-- <el-table-column
         label="贸易方式"
         align="center"
         prop="fTrademodeid"
         :formatter="fTrademodeidFormat"
-      />
+      /> -->
       <el-table-column label="仓库" align="center" prop="fWarehouseid" />
       <el-table-column label="入库件数" align="center" prop="fQty" />
       <!--      <el-table-column label="入库毛重" align="center" prop="fGrossweight"/>-->
@@ -286,7 +286,7 @@
       :limit.sync="queryParams.pageSize"
       @pagination="getList"
     />
-    <!-- 添加或修改仓库主(出入库)对话框 -->
+    <!-- 新增或修改仓库主(出入库)对话框 -->
     <el-dialog
       :title="title"
       :visible.sync="open"
@@ -303,9 +303,9 @@
                 filterable
                 remote
                 :disabled="browseStatus"
-                style="width: 250px"
+                style="width: 80%"
                 :remote-method="corpsRemoteMethod"
-                placeholder="请选择货权方"
+                placeholder="请输入"
               >
                 <el-option
                   v-for="(dict, index) in fMblnoOptions"
@@ -323,7 +323,7 @@
                 placeholder="请选择结算方式"
                 clearable
                 :disabled="browseStatus"
-                style="width: 250px"
+                style="width: 80%"
               >
                 <el-option
                   v-for="(dict, index) in fStltypeOptions"
@@ -339,7 +339,7 @@
               <el-input
                 v-model="form.fMblno"
                 :disabled="browseStatus"
-                style="width: 250px"
+                style="width: 80%"
                 placeholder="手工输入"
               />
             </el-form-item>
@@ -350,7 +350,7 @@
             <el-form-item label="业务日期" prop="fBsdate">
               <el-date-picker
                 v-model="form.fBsdate"
-                style="width: 250px"
+                style="width: 80%"
                 type="date"
                 :disabled="browseStatus"
                 @change="changefBsdate"
@@ -368,9 +368,9 @@
                 filterable
                 remote
                 :disabled="browseStatus"
-                style="width: 250px"
+                style="width: 80%"
                 :remote-method="userRemoteMethod"
-                placeholder="请选择仓管员"
+                placeholder="请输入"
               >
                 <el-option
                   v-for="(dict, index) in userOptions"
@@ -388,9 +388,9 @@
                 filterable
                 :disabled="browseStatus"
                 remote
-                style="width: 250px"
+                style="width: 80%"
                 :remote-method="warehouseRemoteMethod"
-                placeholder="请选择仓库"
+                placeholder="请输入"
               >
                 <el-option
                   v-for="(dict, index) in warehouseOptions"
@@ -409,7 +409,7 @@
               <el-input
                 disabled
                 v-model="form.fBscorpno"
-                style="width: 250px"
+                style="width: 80%"
                 laceholder="存货编号"
               />
             </el-form-item>
@@ -421,7 +421,7 @@
                 placeholder="请选择是否破损"
                 clearable
                 :disabled="browseStatus"
-                style="width: 250px"
+                style="width: 80%"
               >
                 <el-option
                   v-for="(dict, index) in fIfdamageOptions"
@@ -439,7 +439,7 @@
                 placeholder="请选择是否过磅"
                 clearable
                 :disabled="browseStatus"
-                style="width: 250px"
+                style="width: 80%"
               >
                 <el-option
                   v-for="(dict, index) in fIfweighOptions"
@@ -460,7 +460,7 @@
                 placeholder="请选择是否过磅"
                 clearable
                 :disabled="browseStatus"
-                style="width: 250px"
+                style="width: 80%"
               >
                 <el-option
                   v-for="(dict, index) in fIfpledgeOptions"
@@ -473,12 +473,29 @@
           </el-col>
           <el-col :span="8">
             <el-form-item label="质押银行" prop="fBankcorpid">
-              <el-input
+              <!-- <el-input
                 v-model="form.fBankcorpid"
                 laceholder="质押银行"
                 :disabled="browseStatus"
-                style="width: 250px"
-              />
+                style="width: 80%"
+              /> -->
+              <el-select
+          v-model="queryParams.fBankcorpid"
+          filterable
+          remote
+          clearable
+          style="width: 80%"
+          @keyup.enter.native="handleQuery"
+          :remote-method="corpsRemoteMethod"
+          placeholder="请输入"
+        >
+          <el-option
+            v-for="(dict, index) in fMblnoOptions"
+            :key="index.fId"
+            :label="dict.fName"
+            :value="dict.fId"
+          ></el-option>
+        </el-select>
             </el-form-item>
           </el-col>
           <el-col :span="8">
@@ -488,7 +505,7 @@
                 placeholder="请选择计费单位"
                 clearable
                 :disabled="browseStatus"
-                style="width: 250px"
+                style="width: 80%"
               >
                 <el-option
                   v-for="(dict, index) in fFeetunitOptions"
@@ -499,6 +516,16 @@
               </el-select>
             </el-form-item>
           </el-col>
+          <el-col :span="8">
+              <el-form-item label="唛头" prop="fbarks">
+                <el-input
+                  v-model="form.fMarks"
+                  style="width: 80%"
+                  :disabled="browseStatus"
+                  placeholder="唛头"
+                />
+              </el-form-item>
+            </el-col>
         </el-row>
         <el-row>
           <el-form-item label="备注" prop="remark">
@@ -518,13 +545,33 @@
           "
           >展开</el-button
         >
+        <el-button
+          type="danger"
+          prop="打印"
+          @click="showEditDialog_ss"
+        >收货单
+        </el-button>
+        <el-button
+          type="danger"
+          prop="打印"
+          @click="showEditDialog_s"
+        >出库单
+        </el-button>
+        <el-button
+          type="danger"
+          prop="打印"
+          @click="showEditDialog_sss"
+          >作业单
+        </el-button>
+        <el-button type="primary" @click="submitForm(2)">保 存</el-button>
+        <el-button type="primary" @click="submitForm(6)">提交审核</el-button>
         <div v-if="detailsHidden">
           <el-row style="margin-top: 30px">
             <el-col :span="8">
               <el-form-item label="仓库联系人" prop="fContacts">
                 <el-input
                   v-model="form.fContacts"
-                  style="width: 250px"
+                  style="width: 80%"
                   :disabled="browseStatus"
                   placeholder="仓库联系人"
                 />
@@ -535,7 +582,7 @@
                 <el-input
                   v-model="form.fTel"
                   :disabled="browseStatus"
-                  style="width: 250px"
+                  style="width: 80%"
                   placeholder="请输仓库入电话"
                 />
               </el-form-item>
@@ -544,7 +591,7 @@
               <el-form-item label="船名航次" prop="fVslvoy">
                 <el-input
                   v-model="form.fVslvoy"
-                  style="width: 250px"
+                  style="width: 80%"
                   :disabled="browseStatus"
                   placeholder="船名航次"
                 />
@@ -556,7 +603,7 @@
               <el-form-item label="到港日期" prop="fEta">
                 <el-date-picker
                   v-model="form.fEta"
-                  style="width: 250px"
+                  style="width: 80%"
                   type="date"
                   :disabled="browseStatus"
                   value-format="timestamp"
@@ -569,7 +616,7 @@
               <el-form-item label="报关单号" prop="fCustomno">
                 <el-input
                   v-model="form.fCustomno"
-                  style="width: 250px"
+                  style="width: 80%"
                   :disabled="browseStatus"
                   laceholder="报关单号"
                 />
@@ -584,7 +631,7 @@
                   remote
                   :disabled="browseStatus"
                   :remote-method="fSbuRemoteMethod"
-                  style="width: 250px"
+                  style="width: 80%"
                   placeholder="请选择经营单位"
                 >
                   <el-option
@@ -603,7 +650,7 @@
                 <el-input
                   v-model="form.fBillno"
                   disabled
-                  style="width: 250px"
+                  style="width: 80%"
                   placeholder="单据编号"
                 />
               </el-form-item>
@@ -615,7 +662,7 @@
                   placeholder="请选择贸易方式"
                   :disabled="browseStatus"
                   clearable
-                  style="width: 250px"
+                  style="width: 80%"
                 >
                   <el-option
                     v-for="(dict, index) in fTrademodeidOptions"
@@ -631,7 +678,7 @@
                 <el-input
                   disabled
                   v-model="form.createBy"
-                  style="width: 250px"
+                  style="width: 80%"
                   placeholder="制单人"
                 />
               </el-form-item>
@@ -644,7 +691,7 @@
                   v-model="form.fDeptid"
                   filterable
                   disabled
-                  style="width: 250px"
+                  style="width: 80%"
                   remote
                 >
                   <el-option
@@ -670,16 +717,7 @@
                 </el-date-picker>
               </el-form-item>
             </el-col>
-            <el-col :span="8">
-              <el-form-item label="唛头" prop="fbarks">
-                <el-input
-                  v-model="form.fMarks"
-                  style="width: 250px"
-                  :disabled="browseStatus"
-                  placeholder="唛头"
-                />
-              </el-form-item>
-            </el-col>
+            
           </el-row>
         </div>
       </el-form>
@@ -687,7 +725,7 @@
       <div class="dialogTableTitle flex a-center jlr">
         <h2>库存明细</h2>
         <el-button :disabled="browseStatus" @click.prevent="addRelevant()"
-          >添加
+          >新增
         </el-button>
       </div>
       <el-table
@@ -707,13 +745,13 @@
           prop="fBsdate"
           header-align="center"
           align="center"
-          width="180px"
+          width="150px"
           label="入库日期"
         >
           <template slot-scope="scope">
             <el-date-picker
               v-model="scope.row.fBsdate"
-              style="width: 150px"
+              style="width: 138px"
               type="date"
               disabled
               value-format="timestamp"
@@ -785,7 +823,7 @@
           prop="fPlangrossweight"
           header-align="center"
           align="center"
-          width="180px"
+          width="150px"
           label="计划毛重"
         >
           <template slot-scope="scope">
@@ -802,7 +840,7 @@
           prop="fPlannetweight"
           header-align="center"
           align="center"
-          width="180px"
+          width="150px"
           label="计划净重"
         >
           <template slot-scope="scope">
@@ -818,7 +856,7 @@
         <el-table-column
           prop="fPlanvolumn"
           header-align="center"
-          width="180px"
+          width="150px"
           align="center"
           label="计划尺码"
         >
@@ -835,7 +873,7 @@
         <el-table-column
           prop="fPlanqty"
           header-align="center"
-          width="180px"
+          width="150px"
           align="center"
           label="计划件数"
         >
@@ -852,7 +890,7 @@
         <el-table-column
           prop="fGrossweight"
           header-align="center"
-          width="180px"
+          width="150px"
           align="center"
           label="入库毛重"
         >
@@ -869,7 +907,7 @@
         <el-table-column
           prop="fNetweight"
           header-align="center"
-          width="180px"
+          width="150px"
           align="center"
           label="入库净重"
         >
@@ -886,7 +924,7 @@
         <el-table-column
           prop="fQty"
           header-align="center"
-          width="180px"
+          width="150px"
           align="center"
           label="入库件数"
         >
@@ -903,7 +941,7 @@
         <el-table-column
           prop="fPackagespecs"
           header-align="center"
-          width="180px"
+          width="150px"
           align="center"
           label="包装规格"
         >
@@ -920,7 +958,7 @@
         <el-table-column
           prop="fWarehouselocid"
           header-align="center"
-          width="150px"
+          width="140px"
           align="center"
           label="库区"
         >
@@ -945,7 +983,7 @@
         <el-table-column
           prop="fCntrno"
           header-align="center"
-          width="150px"
+          width="130px"
           align="center"
           label="箱号"
         >
@@ -961,7 +999,7 @@
         <el-table-column
           prop="fGoodsval"
           header-align="center"
-          width="150px"
+          width="130px"
           align="center"
           label="货值"
         >
@@ -978,7 +1016,7 @@
         <el-table-column
           prop="fTruckno"
           header-align="center"
-          width="150px"
+          width="130px"
           align="center"
           label="车号"
         >
@@ -995,7 +1033,7 @@
         <el-table-column
           prop="remark"
           header-align="center"
-          width="150px"
+          width="130px"
           align="center"
           label="备注"
         >
@@ -1026,7 +1064,7 @@
       <div class="dialogTableTitle flex a-center jlr">
         <h2>附件上传</h2>
         <el-button :disabled="browseStatus" @click.prevent="addRelevt()"
-          >添加
+          >新增
         </el-button>
       </div>
       <el-table
@@ -1091,7 +1129,6 @@
           prop="fUrl"
           header-align="center"
           align="center"
-          width="250PX"
           label="上传附件"
         >
           <template slot-scope="scope">
@@ -1119,7 +1156,10 @@
       <div class="dialogTableTitle flex a-center jlr">
         <h2>收款信息</h2>
         <el-button :disabled="browseStatus" @click.prevent="addCollection()"
-          >添加
+          >新增
+        </el-button>
+        <el-button :disabled="browseStatus" @click.prevent="deleteRow(warehouseDrList)"
+          >删除
         </el-button>
       </div>
       <el-table
@@ -1129,8 +1169,10 @@
         border
         stripe
         show-summary
+        @selection-change="Collectionoptions"
         :summary-method="warehouseDrSummaries"
       >
+        <el-table-column type="selection" width="55" align="center" />
         <el-table-column label="序号" type="index" width="80">
         </el-table-column>
         <el-table-column
@@ -1211,7 +1253,7 @@
           prop="fQty"
           header-align="center"
           align="center"
-          width="150px"
+          width="130px"
           label="数量"
         >
           <template slot-scope="scope">
@@ -1229,7 +1271,7 @@
           prop="fUnitprice"
           header-align="center"
           align="center"
-          width="150px"
+          width="130px"
           label="单价"
         >
           <template slot-scope="scope">
@@ -1247,7 +1289,7 @@
           prop="fAmount"
           header-align="center"
           align="center"
-          width="150px"
+          width="130px"
           label="金额"
         >
           <template slot-scope="scope">
@@ -1264,7 +1306,7 @@
           prop="fCurrency"
           header-align="center"
           align="center"
-          width="150px"
+          width="130px"
           label="币别"
         >
           <template slot-scope="scope">
@@ -1280,7 +1322,7 @@
           prop="fExrate"
           header-align="center"
           align="center"
-          width="150px"
+          width="130px"
           label="汇率"
         >
           <template slot-scope="scope">
@@ -1296,7 +1338,7 @@
           prop="fTaxrate"
           header-align="center"
           align="center"
-          width="150px"
+          width="130px"
           label="税率"
         >
           <template slot-scope="scope">
@@ -1331,7 +1373,7 @@
           width="200px"
         >
           <template slot-scope="scope">
-            <el-button size="small">审核费用</el-button>
+            <!-- <el-button size="small">审核费用</el-button> -->
             <el-button
               @click.native.prevent="deleteRow(scope.$index, warehouseDrList)"
               size="small"
@@ -1343,7 +1385,10 @@
       <div class="dialogTableTitle flex a-center jlr">
         <h2>付款信息</h2>
         <el-button :disabled="browseStatus" @click.prevent="addpayment()"
-          >添加
+          >新增
+        </el-button>
+        <el-button :disabled="browseStatus" @click.prevent="deleteRow(warehouseCrList)"
+          >删除
         </el-button>
       </div>
       <el-table
@@ -1353,8 +1398,10 @@
         border
         stripe
         show-summary
+        @selection-change="Paymentoptions"
         :summary-method="warehouseDrSummaries"
       >
+        <el-table-column type="selection" width="55" align="center" />
         <el-table-column label="序号" type="index" width="80">
         </el-table-column>
         <el-table-column
@@ -1557,7 +1604,7 @@
           label="操作"
         >
           <template slot-scope="scope">
-            <el-button size="small">审核费用</el-button>
+            <!-- <el-button size="small">审核费用</el-button> -->
             <el-button
               @click.native.prevent="deleteRow(scope.$index, warehouseCrList)"
               size="small"
@@ -1945,13 +1992,14 @@ export default {
       // 选中数组
       ids: [],
       Printinglist: [],
+      Collectionoptionss: [],
       userVal: {
         userName: null,
         nickName: null,
         deptId: null,
       },
       queryForm: {},
-      // 添加用户对话框
+      // 新增用户对话框
       editDialogVisible_s: false,
       editDialogVisible_ss: false,
       editDialogVisible_sss: false,
@@ -2062,38 +2110,38 @@ export default {
       // 表单校验
       rules: {
         fDeptid: [
-          { required: true, message: "制单部门不能为空", trigger: "blur" },
+          { required: true, message: " ", trigger: "blur" },
         ],
-        fMblno: [{ required: true, message: "请输入提单号", trigger: "blur" }],
+        fMblno: [{ required: true, message: " ", trigger: "blur" }],
         fBsdeptid: [
-          { required: true, message: "业务所属部门不能为空", trigger: "blur" },
+          { required: true, message: " ", trigger: "blur" },
         ],
         fCorpid: [
           {
             required: true,
-            message: "请选择货权方",
+             message: " ",
             trigger: "blur",
           },
         ],
         fBsdate: [
-          { required: true, message: "请选择业务日期", trigger: "blur" },
+          { required: true, message: " ", trigger: "blur" },
         ],
         fTrademodeid: [
-          { required: true, message: "请选择贸易方式", trigger: "blur" },
+          { required: true, message: " ", trigger: "blur" },
         ],
-        fSbu: [{ required: true, message: "请选择经营单位", trigger: "blur" }],
+        fSbu: [{ required: true, message: " ", trigger: "blur" }],
         fStorekeeper: {
           required: true,
-          message: "请输入仓管员",
+          message: " ",
           trigger: "blur",
         },
         fWarehouseid: [
-          { required: true, message: "请选择仓库", trigger: "blur" },
+          { required: true, message: " ", trigger: "blur" },
         ],
         fbillingway: [
           {
             required: true,
-            message: "请选择结算方式",
+            message: " ",
             trigger: "blur",
           },
         ],
@@ -2101,7 +2149,7 @@ export default {
           {
             required: true,
             message:
-              "货转客户名称,t_corps 中的no或 name,模糊查找选择后,存储id,显示name,自有在货权转移是该字段有效不能为空",
+              " ",
             trigger: "blur",
           },
         ],
@@ -2122,6 +2170,7 @@ export default {
     });
     this.getDicts("data_ifweigh_status").then((response) => {
       this.fIfweighOptions = response.data;
+      console.log(this.fIfweighOptions)
     });
     this.getDicts("data_ifpledge_status").then((response) => {
       this.fIfpledgeOptions = response.data;
@@ -2153,7 +2202,7 @@ export default {
         scanStyles: false,
       });
     },
-    // 添加附件上传
+    // 新增附件上传
     addRelevt() {
       this.relevantAttachments.push({
         fUrl: null,
@@ -2162,7 +2211,7 @@ export default {
         createTime: Date.parse(new Date()),
       });
     },
-    // 添加list
+    // 新增list
     addRelevant() {
       let time = null;
       if (this.form.fBsdate) {
@@ -2208,7 +2257,8 @@ export default {
         fQty: null,
         fUnitprice: null,
         fAmount: null,
-        fCurrency: null,
+        fCurrency: "RMB",
+        fExrate: "1",
         fCxrate: null,
         fRate: null,
         remarks: null,
@@ -2222,7 +2272,8 @@ export default {
         fQty: null,
         fUnitprice: null,
         fAmount: null,
-        fCurrency: null,
+        fCurrency: 'RMB',
+        fExrate: "1",
         fCxrate: null,
         fRate: null,
         remarks: null,
@@ -2230,10 +2281,14 @@ export default {
     },
     queryUser() {
       queryUserVal().then((response) => {
+        console.log(response)
         if (response.user !== null) {
           this.userVal = response.user;
+          console.log(this.userVal)
           this.$set(this.form, "fDeptid", this.userVal.deptId);
           this.$set(this.form, "createBy", this.userVal.userName);
+          this.$set(this.form, "fIfdamage", "1");
+          this.$set(this.form, "fIfweigh", "1");
           // this.$set(this.relevantAttachments, "opUserName", this.userVal.userName);
           this.$set(this.form, "createTime", Date.parse(new Date()));
         }
@@ -2381,6 +2436,22 @@ export default {
       }
       
     },
+    // 收款选择
+    Collectionoptions(selection) {
+      console.log(selection)
+      console.log("666")
+      this.Collectionoptionss = selection
+
+    },
+    // 收款删除
+    deleteRow(row) {
+      console.log("$")
+      row.splice(this.Collectionoptionss);
+    },
+    // 付款选择
+    Paymentoptions(selection) {
+      console.log(selection)
+    },
     /** 新增按钮操作 */
     handleAdd(status) {
       this.browseStatus = status;
@@ -2400,6 +2471,7 @@ export default {
       this.reset();
       const fId = row.fId || this.ids;
       getWarehousebills(fId).then((response) => {
+        console.log(response)
         if (response.data.warehousebills) {
           this.form = response.data.warehousebills;
         }
@@ -2464,7 +2536,7 @@ export default {
       var values = [];
       columns.forEach((column, index) => {
         if (index === 0) {
-          sums[index] = "总价";
+          sums[index] = "";
           return;
         }
         if (column.property === "fPlangrossweight") {
@@ -2662,19 +2734,19 @@ export default {
           }
         } else {
           if (this.dataList.length === 0) {
-            this.$message.error("请添加库存明细!");
+            this.$message.error("请新增库存明细!");
             return false;
           }
           if (this.relevantAttachments.length === 0) {
-            this.$message.error("请添加附件上传!");
+            this.$message.error("请新增附件上传!");
             return false;
           }
           if (this.warehouseDrList.length === 0) {
-            this.$message.error("请添加收款信息!");
+            this.$message.error("请新增收款信息!");
             return false;
           }
           if (this.warehouseCrList.length === 0) {
-            this.$message.error("请添加付款信息!");
+            this.$message.error("请新增付款信息!");
             return false;
           }
           for (let list in this.dataList) {
@@ -2798,15 +2870,16 @@ export default {
           this.download(response.msg);
         });
     },
-    deleteRow(index, rows) {
-      rows.splice(index, 1);
-    },
+    // deleteRow(index, rows) {
+      
+    //   rows.splice(index, 1);
+    // },
     /* 远程模糊查询用户 */
     corpsRemoteMethod(name) {
       if (name == null || name === "") {
         return false;
       }
-      let queryParams = { pageNum: 1, pageSize: 10, fName: name };
+      let queryParams = { pageNum: 1, pageSize: 10, fName: name, type: 1 };
       listCorps(queryParams).then((response) => {
         this.fMblnoOptions = response.rows;
         this.KHblnoOptions = response.rows;
@@ -2904,4 +2977,7 @@ export default {
 .upload-demo {
   margin-left: 50px;
 }
+.el-form-item {
+  margin-bottom: 5px;
+}
 </style>

+ 108 - 77
src/views/warehouseBusiness/outStock/index.vue

@@ -22,7 +22,7 @@
           filterable
           remote
           clearable
-          style="width: 250px"
+          style="width: 80%"
           :remote-method="userRemoteMethod"
           placeholder="请选择制单人"
         >
@@ -51,7 +51,7 @@
           v-model="queryParams.fTrademodeid"
           placeholder="请选择贸易方式"
           clearable
-          style="width: 250px"
+          style="width: 80%"
           @keyup.enter.native="handleQuery"
         >
           <el-option
@@ -68,7 +68,7 @@
           filterable
           remote
           clearable
-          style="width: 250px"
+          style="width: 80%"
           @keyup.enter.native="handleQuery"
           :remote-method="corpsRemoteMethod"
           placeholder="请选择货权方"
@@ -98,7 +98,7 @@
           clearable
           :remote-method="fSbuRemoteMethod"
           @keyup.enter.native="handleQuery"
-          style="width: 250px"
+          style="width: 80%"
           placeholder="请选择经营单位"
         >
           <el-option
@@ -134,7 +134,7 @@
           :disabled="browseStatus"
           remote
           clearable
-          style="width: 250px"
+          style="width: 80%"
           :remote-method="warehouseRemoteMethod"
           @keyup.enter.native="handleQuery"
           placeholder="请选择仓库"
@@ -217,9 +217,9 @@
     >
       <el-table-column type="selection" width="55" align="center" />
       <el-table-column type="index" label="行号" align="center" />
-      <el-table-column label="货权方" align="center" prop="fCorpid" />
+      <el-table-column :show-overflow-tooltip="true" label="货权方" align="center" prop="fCorpid" />
       <el-table-column label="提单号" align="center" prop="fMblno" />
-      <el-table-column label="经营单位" align="center" prop="fSbu" />
+      <el-table-column :show-overflow-tooltip="true" label="经营单位" align="center" prop="fSbu" />
       <el-table-column
         label="出库日期"
         align="center"
@@ -229,12 +229,12 @@
         <span>{{ parseTime(scope.row.fBsdate, "{y}-{m}-{d}") }}</span>
       </template>
       </el-table-column>
-      <el-table-column
+      <!-- <el-table-column
         label="贸易方式"
         align="center"
         prop="fTrademodeid"
         :formatter="fTrademodeidFormat"
-      />
+      /> -->
       <el-table-column label="仓库" align="center" prop="fWarehouseid" />
 
       <el-table-column label="出库件数" align="center" prop="fQty" />
@@ -288,7 +288,7 @@
       :limit.sync="queryParams.pageSize"
       @pagination="getList"
     />
-    <!-- 添加或修改仓库主(出入库)对话框 -->
+    <!-- 新增或修改仓库主(出入库)对话框 -->
     <el-dialog
       :title="title"
       :visible.sync="open"
@@ -310,7 +310,7 @@
                 filterable
                 remote
                 :disabled="browseStatus"
-                style="width: 250px"
+                style="width: 80%"
                 :remote-method="corpsRemoteMethod"
                 placeholder="请选择原货权方"
               >
@@ -330,7 +330,7 @@
                 placeholder="请选择结算方式"
                 :disabled="browseStatus"
                 clearable
-                style="width: 250px"
+                style="width: 80%"
               >
                 <el-option
                   v-for="(dict,index) in fStltypeOptions"
@@ -345,7 +345,7 @@
             <el-form-item label="提单号" prop="fMblno">
               <el-input
                 v-model="form.fMblno"
-                style="width: 250px"
+                style="width: 80%"
                 :disabled="browseStatus"
                 placeholder="手工输入"
               />
@@ -357,7 +357,7 @@
             <el-form-item label="业务日期" prop="fBsdate">
               <el-date-picker
                 v-model="form.fBsdate"
-                style="width: 250px"
+                style="width: 80%"
                 type="date"
                 :disabled="browseStatus"
                 @change="changefBsdate"
@@ -375,7 +375,7 @@
                 filterable
                 remote
                 :disabled="browseStatus"
-                style="width: 250px"
+                style="width: 80%"
                 :remote-method="userRemoteMethod"
                 placeholder="请选择仓管员"
               >
@@ -395,7 +395,7 @@
                 filterable
                 remote
                 :disabled="browseStatus"
-                style="width: 250px"
+                style="width: 80%"
                 :remote-method="warehouseRemoteMethod"
                 placeholder="请选择仓库"
               >
@@ -416,7 +416,7 @@
               <el-input
                 disabled
                 v-model="form.fBscorpno"
-                style="width: 250px"
+                style="width: 80%"
                 laceholder="存货编号"
               />
             </el-form-item>
@@ -428,7 +428,7 @@
                 placeholder="请选择是否破损"
                 :disabled="browseStatus"
                 clearable
-                style="width: 250px"
+                style="width: 80%"
               >
                 <el-option
                   v-for="dict in fIfdamageOptions"
@@ -446,7 +446,7 @@
                 placeholder="请选择是否过磅"
                 :disabled="browseStatus"
                 clearable
-                style="width: 250px"
+                style="width: 80%"
               >
                 <el-option
                   v-for="dict in fIfweighOptions"
@@ -467,7 +467,7 @@
                 placeholder="请选择是否过磅"
                 :disabled="browseStatus"
                 clearable
-                style="width: 250px"
+                style="width: 80%"
               >
                 <el-option
                   v-for="dict in fIfpledgeOptions"
@@ -484,7 +484,7 @@
                 v-model="form.fBankcorpid"
                 :disabled="browseStatus"
                 laceholder="质押银行"
-                style="width: 250px"
+                style="width: 80%"
               />
             </el-form-item>
           </el-col>
@@ -495,7 +495,7 @@
                 placeholder="请选择计费单位"
                 :disabled="browseStatus"
                 clearable
-                style="width: 250px"
+                style="width: 80%"
               >
                 <el-option
                   v-for="dict in fFeetunitOptions"
@@ -506,6 +506,16 @@
               </el-select>
             </el-form-item>
           </el-col>
+          <el-col :span="8">
+            <el-form-item label="唛头" prop="fbarks">
+              <el-input
+                v-model="form.fMarks"
+                style="width: 80%"
+                :disabled="browseStatus"
+                placeholder="唛头"
+              />
+            </el-form-item>
+          </el-col>
         </el-row>
         <el-row>
           <el-form-item label="备注" prop="remark">
@@ -524,14 +534,35 @@
             detailsHidden ? (detailsHidden = false) : (detailsHidden = true)
           "
           >展开</el-button
+          
         >
+        <el-button
+          type="danger"
+          prop="打印"
+          @click="showEditDialog_ss"
+        >收货单
+        </el-button>
+        <el-button
+          type="danger"
+          prop="打印"
+          @click="showEditDialog_s"
+        >出库单
+        </el-button>
+        <el-button
+          type="danger"
+          prop="打印"
+          @click="showEditDialog_sss"
+          >作业单
+        </el-button>
+        <el-button type="primary" @click="submitForm(2)">保 存</el-button>
+        <el-button type="primary" @click="submitForm(6)">提交审核</el-button>
         <div v-if="detailsHidden">
         <el-row style="margin-top: 30px">
           <el-col :span="8">
             <el-form-item label="仓库联系人" prop="fContacts">
               <el-input
                 v-model="form.fContacts"
-                style="width: 250px"
+                style="width: 80%"
                 placeholder="仓库联系人"
               />
             </el-form-item>
@@ -541,7 +572,7 @@
               <el-input
                 v-model="form.fTel"
                 :disabled="browseStatus"
-                style="width: 250px"
+                style="width: 80%"
                 placeholder="请输仓库入电话"
               />
             </el-form-item>
@@ -551,7 +582,7 @@
               <el-input
                 v-model="form.fVslvoy"
                 :disabled="browseStatus"
-                style="width: 250px"
+                style="width: 80%"
                 placeholder="船名航次"
               />
             </el-form-item>
@@ -562,7 +593,7 @@
             <el-form-item label="到港日期" prop="feta">
               <el-date-picker
                 v-model="form.fEta"
-                style="width: 250px"
+                style="width: 80%"
                 type="date"
                 :disabled="browseStatus"
                 value-format="timestamp"
@@ -575,7 +606,7 @@
             <el-form-item label="报关单号" prop="fcustomno">
               <el-input
                 v-model="form.fCustomno"
-                style="width: 250px"
+                style="width: 80%"
                 :disabled="browseStatus"
                 laceholder="报关单号"
               />
@@ -590,7 +621,7 @@
                 remote
                 :disabled="browseStatus"
                 :remote-method="fSbuRemoteMethod"
-                style="width: 250px"
+                style="width: 80%"
                 placeholder="请选择经营单位"
               >
                 <el-option
@@ -608,7 +639,7 @@
             <el-form-item label="单据编号" prop="foriginalbillno">
               <el-input
                 v-model="form.fOriginalbillno"
-                style="width: 250px"
+                style="width: 80%"
                 disabled
                 placeholder="单据编号"
               />
@@ -621,7 +652,7 @@
                 placeholder="请选择贸易方式"
                 :disabled="browseStatus"
                 clearable
-                style="width: 250px"
+                style="width: 80%"
               >
                 <el-option
                   v-for="dict in fTrademodeidOptions"
@@ -637,7 +668,7 @@
               <el-input
                 disabled
                 v-model="form.createBy"
-                style="width: 250px"
+                style="width: 80%"
                 placeholder="制单人"
               />
             </el-form-item>
@@ -650,7 +681,7 @@
                 v-model="form.fDeptid"
                 filterable
                 disabled
-                style="width: 250px"
+                style="width: 80%"
                 remote
               >
                 <el-option
@@ -676,23 +707,15 @@
               </el-date-picker>
             </el-form-item>
           </el-col>
-          <el-col :span="8">
-            <el-form-item label="唛头" prop="fbarks">
-              <el-input
-                v-model="form.fMarks"
-                style="width: 250px"
-                :disabled="browseStatus"
-                placeholder="唛头"
-              />
-            </el-form-item>
-          </el-col>
+          
         </el-row>
         </div>
       </el-form>
+      
       <div class="dialogTableTitle flex a-center jlr">
         <h2>库存明细</h2>
         <el-button :disabled="browseStatus" @click.prevent="addRelevant()"
-        >添加
+          >新增
         </el-button>
       </div>
       <el-table
@@ -704,6 +727,7 @@
         :summary-method="getSummaries"
         show-summary
       >
+        <el-table-column type="selection" width="55" align="center" />
         <el-table-column label="序号" type="index" width="80">
         </el-table-column>
         <el-table-column
@@ -717,7 +741,7 @@
             <el-input
               disabled
               v-model="scope.row.fMblno"
-              style="width: 250px"
+              style="width: 80%"
               placeholder="手工输入"
             />
           </template>
@@ -984,7 +1008,7 @@
       <div class="dialogTableTitle flex a-center jlr">
         <h2>附件上传</h2>
         <el-button :disabled="browseStatus" @click.prevent="addRelevt()"
-        >添加
+        >新增
         </el-button>
       </div>
       <el-table
@@ -1049,7 +1073,7 @@
           prop="fUrl"
           header-align="center"
           align="center"
-          width="250PX"
+          width="80%"
           label="上传附件"
         >
           <template slot-scope="scope">
@@ -1077,7 +1101,7 @@
       <div class="dialogTableTitle flex a-center jlr">
         <h2>收款信息</h2>
         <el-button :disabled="browseStatus" @click.prevent="addCollection()"
-        >添加
+        >新增
         </el-button>
       </div>
       <el-table
@@ -1087,8 +1111,10 @@
         border
         stripe
         show-summary
+        @selection-change="Collectionoptions"
         :summary-method="warehouseDrSummaries"
       >
+       <el-table-column type="selection" width="55" align="center" />
         <el-table-column label="序号" type="index" width="80">
         </el-table-column>
         <el-table-column
@@ -1306,7 +1332,7 @@
       <div class="dialogTableTitle flex a-center jlr">
         <h2>付款信息</h2>
         <el-button :disabled="browseStatus" @click.prevent="addpayment()"
-        >添加
+        >新增
         </el-button>
       </div>
       <el-table
@@ -1316,8 +1342,10 @@
         border
         stripe
         show-summary
+        @selection-change="Collectionoptions"
         :summary-method="warehouseDrSummaries"
       >
+      <el-table-column type="selection" width="55" align="center" />
         <el-table-column label="序号" type="index" width="80">
         </el-table-column>
         <el-table-column
@@ -1530,27 +1558,24 @@
       <div slot="footer" class="dialog-footer">
         <el-button
           type="danger"
-          size="mini"
           prop="打印"
           @click="showEditDialog_ss"
         >收货单
         </el-button>
         <el-button
           type="danger"
-          size="mini"
           prop="打印"
           @click="showEditDialog_s"
         >出库单
         </el-button>
         <el-button
           type="danger"
-          size="mini"
           prop="打印"
           @click="showEditDialog_sss"
           >作业单
         </el-button>
-        <el-button type="primary" @click="submitForm(2)"> 存</el-button>
-        <el-button type="primary" @click="submitForm(6)">确 定</el-button>
+        <el-button type="primary" @click="submitForm(2)"> 存</el-button>
+        <el-button type="primary" @click="submitForm(6)">提交审核</el-button>
         <el-button @click="cancel">取 消</el-button>
       </div>
       <!-- 选择库存总账数据 -->
@@ -2024,6 +2049,7 @@
         fGrossweight: '',
         fNetweight: '',
         fQty: '',
+        fSbu: '',
         // 遮罩层
         loading: true,
         // 选中数组
@@ -2041,7 +2067,7 @@
         dialogWhgenlegList: [],
         // 库存总账对话框
         whgenlegVisible: false,
-        // 添加用户对话框
+        // 新增用户对话框
         editDialogVisible_s: false,
         editDialogVisible_ss: false,
         editDialogVisible_sss: false,
@@ -2165,35 +2191,35 @@
         // 表单校验
         rules: {
           fDeptid: [
-            { required: true, message: "制单部门不能为空", trigger: "blur" },
+            { required: true, message: " ", trigger: "blur" },
           ],
-          fMblno: [{ required: true, message: "请输入提单号", trigger: "blur" }],
+          fMblno: [{ required: true, message: " ", trigger: "blur" }],
           fBsdeptid: [
-            { required: true, message: "业务所属部门不能为空", trigger: "blur" },
+            { required: true, message: " ", trigger: "blur" },
           ],
           fCorpid: [
             {
               required: true,
-              message: "请选择货权方",
+              message: " ",
               trigger: "blur",
             },
           ],
           fBsdate: [
-            { required: true, message: "请选择业务日期", trigger: "blur" },
+            { required: true, message: " ", trigger: "blur" },
           ],
           fTrademodeid: [
-          { required: true, message: "请选择贸易方式", trigger: "blur" },
+          { required: true, message: " ", trigger: "blur" },
         ],
         fSbu: [
-          { required: true, message: "请选择经营方式", trigger: "blur" },
+          { required: true, message: " ", trigger: "blur" },
         ],
           fStorekeeper: {
             required: true,
-            message: "请输入仓管员",
+            message: " ",
             trigger: "blur",
           },
           fWarehouseid: [
-            { required: true, message: "请选择仓库", trigger: "blur" },
+            { required: true, message: " ", trigger: "blur" },
           ],
           // fBscorpno: [
           //   { required: true, message: "请输入存货编号", trigger: "blur" },
@@ -2201,7 +2227,7 @@
           fbillingway: [
             {
               required: true,
-              message: "请选择结算方式",
+              message: " ",
               trigger: "blur",
             },
           ],
@@ -2209,7 +2235,7 @@
             {
               required: true,
               message:
-                "货转客户名称,t_corps 中的no或 name,模糊查找选择后,存储id,显示name,自有在货权转移是该字段有效不能为空",
+                " ",
               trigger: "blur",
             },
           ],
@@ -2261,7 +2287,7 @@
           scanStyles: false,
         });
       },
-      // 添加附件上传
+      // 新增附件上传
       addRelevt() {
         this.relevantAttachments.push({
           fUrl: null,
@@ -2270,7 +2296,7 @@
           createTime: Date.parse(new Date()),
         });
       },
-      // 添加list
+      // 新增list
       addRelevant() {
         let corpidStatus = typeof this.form.fCorpid === 'undefined' || this.form.fCorpid == null || this.form.fCorpid === ''
         let ftrademodeids = typeof this.form.fTrademodeid === 'undefined' || this.form.fTrademodeid == null || this.form.fTrademodeid === ''
@@ -2329,8 +2355,9 @@
           fQty: null,
           funitprice: null,
           fAmount: null,
-          fCurrency: null,
-          fCxrate: null,
+          fCurrency: 'RMB',
+          fExrate: "1",
+          fCxrate: "1",
           fRate: null,
           remarks: null,
         });
@@ -2343,8 +2370,9 @@
           fQty: null,
           funitprice: null,
           fAmount: null,
-          fCurrency: null,
-          fCxrate: null,
+          fCurrency: 'RMB',
+          fExrate: "1",
+          fCxrate: "1",
           fRate: null,
           remarks: null,
         });
@@ -2613,7 +2641,7 @@
          var values = []
       columns.forEach((column, index) => {
       if (index === 0) {
-                  sums[index] = '总价'
+                  sums[index] = '合计'
                     return
                   }
         if (column.property === 'fgrossweight') {
@@ -2710,7 +2738,7 @@
       var values = [];
       columns.forEach((column, index) => {
         if (index === 0) {
-          sums[index] = "总价";
+          sums[index] = "合计";
           return;
         }
         if (index === 3) {
@@ -2790,19 +2818,19 @@
         }
       }else {
           if (this.dataList.length ===  0) {
-          this.$message.error('请添加库存明细!')
+          this.$message.error('请新增库存明细!')
           return false
         }
         if (this.relevantAttachments.length ===  0) {
-          this.$message.error('请添加附件上传!')
+          this.$message.error('请新增附件上传!')
           return false
         }
         if (this.warehouseDrList.length ===  0) {
-          this.$message.error('请添加收款信息!')
+          this.$message.error('请新增收款信息!')
           return false
         }
         if (this.warehouseCrList.length ===  0) {
-          this.$message.error('请添加付款信息!')
+          this.$message.error('请新增付款信息!')
           return false
         }
         for (let list in this.dataList) {
@@ -3003,4 +3031,7 @@
   .upload-demo {
     margin-left: 50px;
   }
+  .el-form-item {
+  margin-bottom: 5px;
+}
 </style>