فهرست منبع

Merge branch 'master' of http://git.echepei.com/zhujiawei/Warehouse_management_ui

tong 4 سال پیش
والد
کامیت
7444155c61

+ 36 - 0
src/api/warehouseBusiness/warehouseOutStock.js

@@ -25,6 +25,42 @@ export function addWhgenleg(data) {
   })
 }
 
+// 货权转移提交
+export function warehouseSubmission(data) {
+  return request({
+    url: '/warehouseBusiness/outStock/warehouseSubmission',
+    method: 'post',
+    data: data
+  })
+}
+
+// 卸货接口
+export function disChargelist(data) {
+  return request({
+    url: '/warehouseBusiness/outStock/ischargeCargo',
+    method: 'post',
+    data: data
+  })
+}
+
+// 打印作业单
+export function addJoblist(data) {
+  return request({
+    url: '/warehouseBusiness/outStock/waitWarehousing',
+    method: 'post',
+    data: data
+  })
+}
+
+// 撤销出库
+export function updateCredit(data) {
+  return request({
+    url: '/warehouseBusiness/outStock/updateCredit',
+    method: 'post',
+    data: data
+  })
+}
+
 // 新增仓库主(出入库)
 export function addWarehousebills(data) {
   return request({

+ 61 - 22
src/views/finance/charge/index.vue

@@ -19,15 +19,6 @@
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-      <el-form-item label="对账日期" prop="fAccbilldate">
-        <el-date-picker clearable size="small" style="width: 200px"
-                        v-model="tableFilter.fAccbilldate"
-                        type="date"
-                        value-format="yyyy-MM-dd"
-                        placeholder="选择账单日期"
-        >
-        </el-date-picker>
-      </el-form-item>
       <el-form-item label="结算单位" prop="fCorpid">
         <el-select
           v-model="tableFilter.fCorpid"
@@ -47,6 +38,19 @@
           ></el-option>
         </el-select>
       </el-form-item>
+      <el-form-item label="对账日期" prop="fAccbilldate">
+        <el-date-picker
+          type="daterange"
+          size="small"
+          style="width: 300px"
+          v-model="tableFilter.fAccbilldate"
+          start-placeholder="开始日期"
+          end-placeholder="结束日期"
+          value-format="yyyy-MM-dd"
+          :default-time="['00:00:00', '23:59:59']"
+        >
+        </el-date-picker>
+      </el-form-item>
       <el-form-item>
         <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
         <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@@ -310,8 +314,8 @@
         </el-table-column>
       </el-table>
       <div slot="footer" class="dialog-footer">
-        <el-button v-if="approve = false" @click="addOrUpdateHand">审批</el-button>
-        <el-button type="info" v-if="notChange" @click="addOrUpdateHandle">查看审批流</el-button>
+        <el-button v-if="approve === true">审批</el-button>
+        <el-button type="primary" v-if="notChange" @click="addOrUpdateHandle">查看审批流</el-button>
         <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
         <el-button type="primary" @click="submitForm" :disabled="notChange">保 存</el-button>
         <el-button @click="cancel">取 消</el-button>
@@ -527,7 +531,7 @@ export default {
     return {
       Lander:'',
       Operator:'',
-      approve:true,
+      approve:false,
       addOrUpdateVisible: false,
       contrastId:220,
       tablefilter:false,
@@ -620,6 +624,7 @@ export default {
         fAccbilldate: null,
         fDeptid: null
       },
+      approval:[],
       // 表单参数
       form: {},
       // 表单校验
@@ -661,8 +666,40 @@ export default {
   created() {
     this.getList()
     this.register()
+    this.adoPt()
   },
   methods: {
+    adoPt(){
+      this.approval = this.$route.query.data
+      // this.approval = JSON.parse()
+      console.log(this.approval)
+      if (this.approval){
+        console.log('张三')
+        this.hide = false
+        this.notChange = true
+        this.approve = true
+        this.reset()
+        this.pass = {
+          fAmtdr: '',    //应收合计
+          fAmtcr: '',    //应付合计
+          fMblno: '',    //提单号
+          fName: '',      //货权方
+          fFeesName: '',   //结算单位
+          fCorpid: ''     //结算单位ID
+        }
+        getCharge(32).then(response => {
+          console.log(response)
+          this.Operator = response.data.tFee.createBy
+          this.increase_s = response.data.feeDoList
+          this.fWbuOptions = response.data.feesList
+          this.queryParams = response.data.tFee
+          this.fWbuOptions = response.data.feesList
+          this.fMblnoOptions = response.data.corps
+          this.open = true
+          this.title = '修改收费列表'
+        })
+      }
+    },
     register(){
       queryUserVal().then((response)=>{
         this.Lander = response.user.userName
@@ -918,20 +955,21 @@ export default {
     },
     /** 查询财务数据主列表 */
     getList() {
-      this.loading = true
-      this.getDicts('approval_process').then((response) => {
-        this.options = response.data
-      })
-      listCharge(this.tableFilter).then(response => {
-        console.log(response)
-        this.chargeList = response.rows
-        this.total = response.total
-        this.loading = false
-      })
+        this.loading = true
+        this.getDicts('approval_process').then((response) => {
+          this.options = response.data
+        })
+        listCharge(this.tableFilter).then(response => {
+          console.log(response)
+          this.chargeList = response.rows
+          this.total = response.total
+          this.loading = false
+        })
     },
     // 取消按钮
     cancel() {
       this.open = false
+      this.approve = false
       this.reset()
     },
     // 表单重置
@@ -961,6 +999,7 @@ export default {
     handleQuery() {
       this.queryParams.pageNum = 1
       this.getList()
+      console.log(this.tableFilter)
     },
     /** 导入搜索 */
     importSearch() {

+ 163 - 93
src/views/finance/contrast/index.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="app-container">
     <el-form
-      :model="queryParams_s"
+      :model="tablefilter"
       ref="queryParams_s"
       :inline="true"
       v-show="showSearch"
@@ -9,7 +9,7 @@
     >
       <el-form-item label="货权方" prop="fCtrlcorpid">
         <el-input
-          v-model="queryParams_s.fCtrlcorpid"
+          v-model="tablefilter.fCtrlcorpid"
           placeholder="请输入客户名称"
           filterable
           remote
@@ -30,7 +30,7 @@
 
       <el-form-item label="结算单位" prop="fCorpid">
         <el-select
-          v-model="queryParams_s.fCorpid"
+          v-model="tablefilter.fCorpid"
           placeholder="请选择结算单位"
           filterable
           remote
@@ -91,7 +91,7 @@
 
       <el-form-item label="对账日期" prop="dateRange">
         <el-date-picker
-          v-model="queryParams_s.dateRange"
+          v-model="tablefilter.dateRange"
           size="small"
           style="width: 240px"
           value-format="yyyy-MM-dd"
@@ -125,7 +125,7 @@
       </el-form-item>-->
       <el-form-item label="系统编号" prop="fBillno">
         <el-input
-          v-model="queryParams_s.fBillno"
+          v-model="tablefilter.fBillno"
           placeholder="请输入系统编号"
           clearable
           size="small"
@@ -236,14 +236,13 @@
         label="操作"
         align="center"
         class-name="small-padding fixed-width"
-        width="200"
       >
         <template slot-scope="scope">
           <el-button
             size="mini"
             type="text"
             icon="el-icon-view"
-            @click="check(scope.row)"
+            @click="check(scope.row,0)"
             v-hasPermi="['finance:contrast:edit']"
             v-if="scope.row.fBillstatus == 6"
           >查看</el-button
@@ -252,9 +251,9 @@
             size="mini"
             type="text"
             icon="el-icon-view"
-            @click="check(scope.row)"
+            @click="check(scope.row,1)"
             v-hasPermi="['finance:contrast:edit']"
-            v-if="scope.row.fBillstatus >= 3 && scope.row.fBillstatus <= 6"
+            v-if="scope.row.fBillstatus == 4 || scope.row.fBillstatus == 5"
           >审批进度</el-button>
           <el-button
             size="mini"
@@ -380,12 +379,12 @@
         </el-form-item>
 
         <div style="width: 100%">
-          <el-button type="warning" size="small" @click="reconciliation" :disabled="notChange"
+          <el-button type="warning" size="small" @click="reconciliation" :disabled="notChange" v-if="queryParams.fBillstatus < '4'"
             >对账</el-button>
-          <el-button type="primary" size="small" @click="confirmReconciliation" :disabled="notChange">确认对账</el-button>
+          <el-button type="primary" size="small" @click="confirmReconciliation" :disabled="notChange" v-if="queryParams.fBillstatus < '4'">确认对账</el-button>
           <el-button type="success" size="small" @click="backrRconciliation" v-if="queryParams.fBillstatus === '6'">撤销对账</el-button>
           <el-button type="info" size="small" @click="printing" :disabled="notChange">打印</el-button>
-          <el-button type="danger" size="small" v-show="Lander == Operator">撤销审批</el-button>
+          <el-button type="danger" size="small" :disabled="disappear" v-if="queryParams.fBillstatus === '4'" @click="backApproval">撤销审批</el-button>
         </div>
 
         <!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> -->
@@ -439,11 +438,13 @@
       </el-table>
 
       <div slot="footer" class="dialog-footer">
-        <el-button v-if="approve = false" @click="addOrUpdateHand">审批</el-button>
-        <el-button type="info" v-if="notChange" @click="addOrUpdateHandle">查看审批流</el-button>
+        <el-button v-if="approve === true" @click="addOrUpdateHand">审批</el-button>
+        <el-button type="info" v-show="notChange" @click="addOrUpdateHandle()">查看审批流</el-button>
         <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
+        <approval-comments v-if="addOrUpdateVisib" ref="ApprovalComments" @refreshDataList="returnData"></approval-comments>
         <el-button type="primary" @click="submitForm" :disabled="notChange">保 存</el-button>
         <el-button @click="cancel">取 消</el-button>
+<!--        <el-button>取1消</el-button>-->
       </div>
 
       <!-- 添加或修改财务数据主对话框 -->
@@ -763,12 +764,16 @@ export default {
 
   data() {
     return {
+      disappear:false,
+      addIndex:[],
       addOrUpdateVisible: false,
+      addOrUpdateVisib:false,
       contrastId:210,
       // 审批状态
-      approve:true,
+      approve:false,
       // 打印表
       printObject:[],
+      //登陆人
       Lander:'',
       openPrint:false,
       statrGo:true,
@@ -806,7 +811,7 @@ export default {
       selection: '',
       // 弹出层标题
       title: "",
-      //  登录
+      //  操作
       Operator:'',
       // 是否显示弹出层
       open: false,
@@ -860,7 +865,7 @@ export default {
         timeReconci: null
       },
       // 主表查询参数
-      queryParams_s: {
+      tablefilter: {
         pageNum: 1,
         pageSize: 10,
         fBillno: null,
@@ -891,10 +896,6 @@ export default {
         ]
       },
       feeListRules: {
-        // fCtrlcorpid: [
-        //   { required:true, message: '不能为空', trigger: 'blur'}
-        // ],
-
         fDc: [
           { required:true,message: '不能为空', trigger:'blur' }
         ],
@@ -907,15 +908,6 @@ export default {
         timeExamine: [
           { required: true, message: '审核日期不能为空', trigger: 'blur' }
         ]
-        // fBilltype: [
-        //   { required: true, message: "单据类型(对账单 收费 付费 付费申请 收费申请,发票申请 销项发票 进项发票)不能为空", trigger: "change" }
-        // ],
-        // fBillstatus: [
-        //   { required: true, message: "状态不能为空", trigger: "blur" }
-        // ]
-        // fDeptid: [
-        //   { required: true, message: "制单部门不能为空", trigger: "change" }
-        // ],
       }
     };
   },
@@ -928,17 +920,25 @@ export default {
     this.register()
   },
   methods: {
+    backApproval(){
+
+    },
+    returnData(){
+      this.addOrUpdateVisib = false
+    },
     getDataList(){
     this.addOrUpdateVisible = false
   },
-    // 审批
+    // 审批按钮
     addOrUpdateHand(){
       this.addOrUpdateVisib = true
       this.addOrUpdateVisible = false
       let id = '448'
       let actId = '110'
       this.$nextTick(() => {
-        this.$refs.ApprovalComments.init(id,actId)
+        console.log(this.queryParams.fId)
+        console.log(this.contrastId)
+        this.$refs.ApprovalComments.init(this.queryParams.fId,this.contrastId)
       })
     },
     // 查看审批流
@@ -995,18 +995,25 @@ export default {
     },
     // 确认对账按钮功能
     confirmReconciliation(){
-      this.queryParams.fBillstatus = '4'
-      let formDate = new window.FormData()
-        formDate.append('tFee',JSON.stringify(this.queryParams))
-        formDate.append("tFeeDo", JSON.stringify(this.DzfeeList))
-
-      Cfee(formDate).then(response=>{
-        console.log(response)
-        this.msgSuccess("操作成功")
+      this.$refs['ruless'].validate(valid => {
+        if(valid){
+          if(this.DzfeeList.length){
+            this.queryParams.fBillstatus = '4'
+            let formDate = new window.FormData()
+            formDate.append('tFee',JSON.stringify(this.queryParams))
+            formDate.append("tFeeDo", JSON.stringify(this.DzfeeList))
 
+            Cfee(formDate).then(response=>{
+            console.log(response)
+            this.open = false
+            this.msgSuccess("操作成功")
+            this.getList()
+          })
+        }else{
+            this.$message.error('表单为空不允许操作');
+          }
+        }
       })
-      this.open = false
-      this.getList()
     },
     // 对账按钮功能
     reconciliation(){
@@ -1018,13 +1025,13 @@ export default {
     // 默认录入人
     register() {
       queryUserVal().then((response)=>{
-        // this.Lander = response.user.userName
-        console.log(response)
         this.Lander = response.user.userName
-        this.queryParams_s.createBy = response.user.userName
-      this.queryParams.createBy = response.user.userName
-      console.log(this.DzfeeList.createBy)
-      console.log(response.user.userName)
+      //   console.log(response)
+      //   this.Lander = response.user.userName
+      //   this.queryParams_s.createBy = response.user.userName
+      // this.queryParams.createBy = response.user.userName
+      // console.log(this.DzfeeList.createBy)
+      // console.log(response.user.userName)
       })
     },
 
@@ -1089,13 +1096,12 @@ export default {
     },
     /** 查询财务数据主列表 */
     getList() {
-      console.log(this)
       this.loading = true;
        this.getDicts("approval_process").then(response => {
         // this.feeList = response.rows;
         this.options = response.data
       });
-      listFee(this.queryParams_s).then(response => {
+      listFee(this.tableFilter).then(response => {
         console.log(response)
         this.contrastList = response.rows
         this.total = response.total
@@ -1143,6 +1149,23 @@ export default {
     },
     /** 重置按钮操作 */
     resetQuery() {
+      // this.resetForm("queryParams_s");
+      this.tableFilter ={
+        pageNum: 1,
+          pageSize: 10,
+          fBillno: null,
+          fCtrlcorpid: null,
+          fId:null,
+          fCorpid: null,
+          tMblno: null,
+          fAmtdr: null,
+          fAmtcr: null,
+          fBilltype: null,
+          fBillstatus: null,
+          fRemarks: null,
+          fAccbilldate: null,
+          fDeptid: null,
+      }
       console.log(this.queryParams_s)
       this.queryParams_s = {
         pageNum: 1,
@@ -1237,55 +1260,100 @@ export default {
         createBy: null,
         timeReconci: null
       }
-      queryUserVal().then((response)=>{
-      this.contrastList.createBy = response.user.userName
-      console.log(response.user.userName)
-      this.queryParams = {
-        pageNum: 1,
-        pageSize: 10,
-        fBillno: null,
-        fCtrlcorpid: null,
-        fCorpid: null,
-        tMblno: null,
-        fAmtdr: null,
-        fId:null,
-        fAmtcr: null,
-        fBilltype: null,
-        fBillstatus: null,
-        fRemarks: null,
-        fAccbilldate: null,
-        fDeptid: null,
-        createBy: response.user.userName,
-        timeReconci: null
-      }
-      })
+      // queryUserVal().then((response)=>{
+      // this.contrastList.createBy = response.user.userName
+      // console.log(response.user.userName)
+      // this.queryParams = {
+      //   pageNum: 1,
+      //   pageSize: 10,
+      //   fBillno: null,
+      //   fCtrlcorpid: null,
+      //   fCorpid: null,
+      //   tMblno: null,
+      //   fAmtdr: null,
+      //   fId:null,
+      //   fAmtcr: null,
+      //   fBilltype: null,
+      //   fBillstatus: null,
+      //   fRemarks: null,
+      //   fAccbilldate: null,
+      //   fDeptid: null,
+      //   createBy: response.user.userName,
+      //   timeReconci: null
+      // }
+      // })
     },
+    // register(){
+    //   queryUserVal().then((response)=>{
+    //     this.Lander = response.user.userName
+    //   })
+    // },
     // 查看按钮
-    check(row) {
+    check(row,res) {
       this.notChange = true
-      this.reset();
-      this.pass={
-        fAmtdr:'',    //应收合计
-        fAmtcr:'',    //应付合计
-        fMblno:'',    //提单号
-        fName:'',      //货权方
-        fFeesName:'',   //结算单位
-        fCorpid:''     //结算单位ID
-      }
-      const fId = row.fId || this.ids
-      console.log(fId)
-      getFee(fId).then(response => {
-        console.log(this.DzfeeList)
-        console.log(response)
+      getFee(row.fId).then(response => {
+        this.Operator = response.data.tFee.createBy
         this.DzfeeList = response.data.feeDoList
         this.fWbuOptions = response.data.feesList
         this.queryParams = response.data.tFee
-        console.log(this.queryParams)
+        this.fWbuOptions = response.data.feesList
         this.fMblnoOptions = response.data.corps
         this.open = true;
+        this.disappear = true
         this.title = "修改财务数据主";
-      });
-      console.log(this.queryParams)
+        console.log(this.Operator)
+        console.log(this.Lander)
+        if (res == 1) {
+          this.notChange = true
+          console.log(this.notChange)
+          if (this.Operator == this.Lander) {
+            this.disappear = false
+            console.log(res)
+            this.reset()
+            this.pass = {
+              fAmtdr: '',    //应收合计
+              fAmtcr: '',    //应付合计
+              fMblno: '',    //提单号
+              fName: '',      //货权方
+              fFeesName: '',   //结算单位
+              fCorpid: ''     //结算单位ID
+            }
+            const fId = row.fId || this.ids
+            console.log(fId)
+            getFee(fId).then(response => {
+              this.DzfeeList = response.data.feeDoList
+              this.fWbuOptions = response.data.feesList
+              this.queryParams = response.data.tFee
+              this.fWbuOptions = response.data.feesList
+              this.fMblnoOptions = response.data.corps
+              this.open = true;
+            });
+          } else {
+            this.notChange = true
+          }
+        } else {
+          this.notChange = true
+          this.reset()
+          this.pass = {
+            fAmtdr: '',    //应收合计
+            fAmtcr: '',    //应付合计
+            fMblno: '',    //提单号
+            fName: '',      //货权方
+            fFeesName: '',   //结算单位
+            fCorpid: ''     //结算单位ID
+          }
+          const fId = row.fId || this.ids
+          console.log(fId)
+          getFee(fId).then(response => {
+            this.DzfeeList = response.data.feeDoList
+            this.fWbuOptions = response.data.feesList
+            this.queryParams = response.data.tFee
+            this.fWbuOptions = response.data.feesList
+            this.fMblnoOptions = response.data.corps
+            this.open = true;
+          })
+        }
+      })
     },
     /** 修改按钮操作 */
     handleUpdate(row) {
@@ -1346,8 +1414,10 @@ export default {
 
 
             updateFee(formDate).then(response => {
+              console.log(response)
+              this.queryParams = response.data.tFee
               this.msgSuccess("新增成功");
-              this.DzfeeList = []
+              // this.DzfeeList = []
               // this.open = false;
               this.getList();
             });
@@ -1360,8 +1430,8 @@ export default {
             console.log(this.queryParams)
             addFee(formDate).then(response => {
               this.msgSuccess("修改成功");
-              this.DzfeeList = []
-              this.open = false;
+              // this.DzfeeList = []
+              // this.open = false;
               this.getList();
             });
           }

+ 2 - 1
src/views/index.vue

@@ -217,7 +217,8 @@ export default {
           break
         }
         case 'DZ':{
-          this.$router.push({ path: '/finance/contrast',query:{data:row}})
+          this.$router.push({ path: '/finance/charge',query:{data:row}})
+          // this.$router.push({ path: '/finance/contrast',query:{data:row}})
           break
         }
         case 'FF':{

+ 4 - 1
src/views/system/auditConfiguration/index.vue

@@ -2,7 +2,7 @@
   <div class="app-container">
     <el-form inline :model="dataForm">
       <el-form-item>
-        <el-select v-model="dataForm.actId" placeholder="请选择活动名" filterable @change="getDataList()">
+        <el-select v-model="dataForm.actId" placeholder="请选择活动名" clearable filterable @change="getDataList()">
           <el-option
             v-for="item in actList"
             :key="item.actId"
@@ -12,6 +12,9 @@
         </el-select>
       </el-form-item>
       <el-form-item>
+        <el-button icon="el-icon-refresh-left" @click="getDataList">搜索</el-button>
+      </el-form-item>
+      <el-form-item>
         <el-button icon="el-icon-refresh-left" @click="resetSearch">重置</el-button>
       </el-form-item>
       <el-form-item>

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 131 - 422
src/views/warehouseBusiness/outStock/index.vue


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است