wengyuwen 4 سال پیش
والد
کامیت
12a5fcde47

+ 4 - 4
src/views/purchaseIssue/index.vue

@@ -252,7 +252,7 @@ export default {
         }, {
           surface: '2',
           label: 'fBillno',
-          name: '申请编号',
+          name: '系统编号',
           checked: 0,
           width: 100,
           onabort: ''
@@ -287,7 +287,7 @@ export default {
         }, {
           surface: '7',
           label: 'createTime',
-          name: '申请日期',
+          name: '制单日期',
           checked: 0,
           width: 100,
           onabort: ''
@@ -423,7 +423,7 @@ export default {
         }, {
           surface: '10',
           label: 'createTime',
-          name: '申请日期',
+          name: '制单日期',
           checked: 0,
           disabled: false,
           width: 100,
@@ -573,7 +573,7 @@ export default {
         {
           span: 6,
           label: 'fBillno',
-          name: '申请编号',
+          name: '系统编号',
           inputType: 2,
           width: 200,
           labelSize: '80',

+ 20 - 5
src/views/purchaseRequest/index.vue

@@ -252,7 +252,7 @@ export default {
         }, {
           surface: '2',
           label: 'fBillno',
-          name: '申请编号',
+          name: '系统编号',
           checked: 0,
           width: 100,
           onabort: ''
@@ -278,9 +278,24 @@ export default {
           width: 100,
           onabort: ''
         }, {
+          surface: '5',
+          label: 'fBsdate',
+          name: '提货日期',
+          checked: 0,
+          width: 100,
+          onabort: ''
+        },{
+          surface: '5',
+          label: 'fsbuName',
+          name: '开票公司',
+          checked: 0,
+          width: 100,
+          onabort: ''
+        },
+        {
           surface: '6',
           label: 'createTime',
-          name: '申请日期',
+          name: '制单日期',
           checked: 0,
           width: 100,
           onabort: ''
@@ -415,7 +430,7 @@ export default {
         }, {
           surface: '11',
           label: 'createTime',
-          name: '申请日期',
+          name: '制单日期',
           checked: 0,
           disabled: false,
           width: 100,
@@ -572,7 +587,7 @@ export default {
         {
           span: 6,
           label: 'fBillno',
-          name: '申请编号',
+          name: '系统编号',
           inputType: 2,
           width: 200,
           labelSize: '80',
@@ -612,7 +627,7 @@ export default {
         }, {
           span: 6,
           label: 'cLoadDate',
-          name: '申请日期',
+          name: '制单日期',
           inputType: 3,
           width: 300,
           labelSize: '80',

+ 24 - 16
src/views/reportAnalysis/inventoryAccount.vue

@@ -122,92 +122,100 @@ export default {
           checked: 0,
           width: 100,
           onabort: ''
-        },{
+        },
+        {
           surface: '6',
+          label: 'feetypeName',
+          name: '货物类别',
+          checked: 0,
+          width: 100,
+          onabort: ''
+        },{
+          surface: '7',
           label: 'fCurrency',
           name: '包装单位',
           checked: 0,
           width: 100,
           onabort: ''
         },{
-          surface: '7',
+          surface: '8',
           label: 'feeUnitName',
           name: '计量单位',
           checked: 0,
           width: 100,
           onabort: ''
         },{
-          surface: '8',
+          surface: '9',
           label: 'fWarehouseName',
           name: '库区',
           checked: 0,
           width: 100,
           onabort: ''
         },{
-          surface: '9',
+          surface: '10',
           label: 'fBeginQty',
           name: '期初数量',
           checked: 0,
           width: 100,
           onabort: ''
         },{
-          surface: '10',
+          surface: '11',
           label: 'fBeginUnitprice',
           name: '期初单价',
           checked: 0,
           width: 100,
           onabort: ''
         },{
-          surface: '11',
+          surface: '12',
           label: 'fBeginAmount',
           name: '期初金额',
           checked: 0,
           width: 100,
           onabort: ''
         },{
-          surface: '12',
-          label: ' rQty',
+          surface: '13',
+          label: 'rQty',
           name: '入库数量',
           checked: 0,
           width: 100,
           onabort: ''
         },{
-          surface: '13',
+          surface: '14',
           label: 'rfAmount',
           name: '入库金额',
           checked: 0,
           width: 100,
           onabort: ''
         },{
-          surface: '14',
-          label: ' cQty',
+          surface: '15',
+          label: 'cQty',
           name: '出库数量',
           checked: 0,
           width: 100,
           onabort: ''
         },{
-          surface: '15',
+          surface: '16',
           label: 'cfAmount',
           name: '出库金额',
           checked: 0,
           width: 100,
           onabort: ''
         },{
-          surface: '16',
+          surface: '17',
           label: 'fAfterQty',
           name: '结余数量',
           checked: 0,
           width: 100,
           onabort: ''
         },{
-          surface: '17',
-          label: ' fAfterUnitprice',
+          surface: '18',
+          label: 'fAfterUnitprice',
           name: '结余单价',
           checked: 0,
           width: 100,
           onabort: ''
         },{
-          surface: '18',
+          surface: '19',
           label: 'fAfterAmount',
           name: '结余金额',
           checked: 0,

+ 44 - 21
src/views/reportAnalysis/monthEndClosing.vue

@@ -6,6 +6,7 @@
           v-model="form.fYear"
           type="year"
           format="yyyy"
+          @change="methodYear"
           value-format="yyyy"
           placeholder="选择年">
         </el-date-picker>
@@ -13,13 +14,13 @@
     </el-form>
     <el-row :gutter="10" class="mb8">
       <div class="tabSetting">
-        <el-button type="success"
-                   plain
-                   icon="el-icon-search"
-                   style="margin-right: 10px"
-                   @click="methodYear"
-                   v-hasPermi="['anpin:closing:list']"
-                   size="mini">查询</el-button>
+<!--        <el-button type="success"-->
+<!--                   plain-->
+<!--                   icon="el-icon-search"-->
+<!--                   style="margin-right: 10px"-->
+<!--                   @click="methodYear"-->
+<!--                   v-hasPermi="['anpin:closing:list']"-->
+<!--                   size="mini">查询</el-button>-->
         <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
         <div style="margin: 0 12px">
           <el-button
@@ -83,7 +84,7 @@
         <el-button type="primary" @click="save()">确 定</el-button>
       </span>
     </el-dialog>
-    <el-table v-loading="loading" :data="dataList" show-summary :summary-method="getSum">
+    <el-table v-loading="loading" :data="dataList" show-summary :summary-method="getSum" :row-class-name="tableRowClassName">
       <!-- <el-table-column type="selection" width="55" align="center" /> -->
       <el-table-column type="index" label="行号" align="center" width="100"/>
       <el-table-column
@@ -98,14 +99,13 @@
         :fixed="item.fixed"
       >
         <template slot-scope="scope">
-          <span v-if="'fStatusName' === item.label">{{scope.row[item.label]}}</span>
+          <span v-if="'fStatusName' === item.label" style="">{{scope.row[item.label]}}</span>
           <span v-else>{{scope.row[item.label]}}</span>
         </template>
       </el-table-column>
       <el-table-column label="操作" align="center">
         <template slot-scope="scope" v-hasPermi="['anpin:closing:edit']">
-          <el-button type="text" v-if="scope.row.fStatusName === '是'" @click="cDoperation(scope.row,1)">反结账</el-button>
-          <el-button type="text" v-else @click="cDoperation(scope.row,2)">结账</el-button>
+          <el-button type="text" @click="cDoperation(scope.row)">{{scope.row.fStatusName =='是'?'反结账':'结账' }}</el-button>
         </template>
       </el-table-column>
     </el-table>
@@ -188,6 +188,12 @@ export default {
     this.getRow();
   },
   methods: {
+    tableRowClassName({row, rowIndex}) {
+      if (row.fStatusName === '是') {
+        return 'warning-row';
+      }
+      return '';
+    },
     methodYear(){
       console.log(this.form.fYear)
       if (this.form.fYear !== undefined){
@@ -200,18 +206,31 @@ export default {
         this.$message.error('请选择年后再查询');
       }
     },
-    cDoperation(row,item){
+    cDoperation(row){
+      console.log(row)
       let list = row
-      if (item === 1){
-        list.fStatus = 'F'
-        operation(row).then(res=>{
-          console.log(res)
-        })
-      }else {
+      // if (item === 1){
+      //   list.fStatus = 'F'
+      //   operation(row).then(res=>{
+      //     console.log(res)
+      //   })
+      // }else {
+      //   list.fStatus = 'T'
+      //   operation(row).then(res=>{
+      //     console.log(res)
+      //   })
+      // }
+      if(row.fStatusName === '否'){
+        console.log("111")
         list.fStatus = 'T'
-        operation(row).then(res=>{
-          console.log(res)
-        })
+          operation(list).then(res=>{
+            console.log(res)
+          })
+      }else{
+        list.fStatus = 'F'
+          operation(list).then(res=>{
+            console.log(res)
+          })
       }
       this.methodYear()
     },
@@ -339,4 +358,8 @@ export default {
   background-color: rgba(0, 0, 0, 0.05);
   height: 100%;
 }
+.el-table ::v-deep .warning-row {
+  background: oldlace;
+}
 </style>
+

+ 64 - 25
src/views/warehouse/inStock/index.vue

@@ -249,7 +249,7 @@ export default {
         {
           span:6,
           label: 'cLoadDate',
-          name:"申请日期",
+          name:"制单日期",
           form:6,
           width:200,
           labelSize:'80',
@@ -311,7 +311,7 @@ export default {
         },{
           surface: "2",
           label: "fBillno",
-          name: "申请编号",
+          name: "系统编号",
           checked: 0,
           width: 100,
         }, {
@@ -339,7 +339,7 @@ export default {
         },{
           surface: "6",
           label: "createTime",
-          name: "申请日期",
+          name: "制单日期",
           checked: 0,
           width: 200,
           operation:1
@@ -410,7 +410,7 @@ export default {
         },{
           surface: "2",
           label: "fFeeid",
-          name: "品名",
+          name: "*品名",
           checked: 0,
           width: 200,
           changeable:1,
@@ -420,7 +420,7 @@ export default {
         {
           surface: "3",
           label: "fCurrencyName",
-          name: "规格",
+          name: "*规格",
           checked: 0,
           width: 100,
           disabled:false
@@ -428,7 +428,7 @@ export default {
         {
           surface: "4",
           label: "fUnitprice",
-          name: "单价",
+          name: "*单价",
           checked: 0,
           width: 100,
           operation:2,
@@ -438,7 +438,7 @@ export default {
         },{
           surface: "5",
           label: "fQty",
-          name: "数量",
+          name: "*数量",
           checked: 0,
           width: 100,
           operation:2,
@@ -448,7 +448,7 @@ export default {
         },{
           surface: "6",
           label: "fFeeunitid",
-          name: "计量单位",
+          name: "*计量单位",
           checked: 0,
           width: 100,
           changeable:1,
@@ -458,7 +458,7 @@ export default {
         },{
           surface: "7",
           label: "fWarehouseid",
-          name: "库区",
+          name: "*库区",
           checked: 0,
           width: 100,
           operation:2,
@@ -468,7 +468,7 @@ export default {
         },{
           surface: "8",
           label: "fAmount",
-          name: "金额",
+          name: "*金额",
           checked: 0,
           width: 100,
           operation:2,
@@ -818,14 +818,19 @@ export default {
   },
   activated(){
     if (this.$route.query.open === 'true'){
-      this.detailList.columnList = this.detailStyle
+      // this.detailList.columnList = this.detailStyle
       this.detailForm = {}
       this.detailData = []
-      this.inDex = this.detailOption.length
+      // this.inDex = this.detailOption.length
       //从表修改按钮
-      for(let li in this.detailStyle){
-        if(!this.detailStyle[li].doNot){
-          this.detailStyle[li].disabled = false
+      let data = {
+        tableName: this.detailList.tableName,
+        userId: Cookies.get('userName')
+      }
+      this.getRow(data,null,1)
+      for(let li in this.detailList.columnList){
+        if(!this.detailList.columnList[li].doNot){
+          this.detailList.columnList[li].disabled = false
         }
       }
       for(let item in this.detailOption){
@@ -1096,6 +1101,7 @@ export default {
             this.setRowList = res.data
             this.detailList.columnList = this.detailList.columnList.filter((e) => e.checked == 0);
             // this.waitFor = true
+            console.log("000")
           }else {
             // this.waitFor = true
             this.$set(this.detailList,'columnList',this.$options.data().detailStyle)
@@ -1104,7 +1110,14 @@ export default {
           this.isItHidden = false
           this.inDex = this.detailOption.length
           if (iem === undefined){
+            console.log("111")
             this.detailList.columnList.forEach(item => item.disabled = true)
+          }else if(iem == 1){
+            for(let li in this.detailList.columnList){
+              if(!this.detailList.columnList[li].doNot){
+                this.detailList.columnList[li].disabled = false
+              }
+            }
           }
         }else {
           if (res.data.length != 0) {
@@ -1122,6 +1135,7 @@ export default {
           this.inDex = 4
         }
         if(list){
+          console.log("333")
           this.detailForm = list.warehouseBills
           this.detailData = list.tWarehousebillsfees
           this.$set(this.detailForm,'fStorekeeper',JSON.parse(this.detailForm.fStorekeeper))
@@ -1201,17 +1215,19 @@ export default {
           }
           this.getRow(data,list,iem)
         }
-        getArea(this.detailForm.fWarehouseid).then(res=>{
-          if(res.code == 200){
-            this.listData.fWarehouseid = []
-            for(let item in res.data){
-              this.listData.fWarehouseid.push({
-                label:res.data[item].fWarehouseInformation,
-                value:res.data[item].id
-              })
+        if(res.data.warehouseBills){
+          getArea(res.data.warehouseBills.fWarehouseid).then(res=>{
+            if(res.code == 200){
+              this.listData.fWarehouseid = []
+              for(let item in res.data){
+                this.listData.fWarehouseid.push({
+                  label:res.data[item].fWarehouseInformation,
+                  value:res.data[item].id
+                })
+              }
             }
-          }
-        })
+          })
+        }
         this.MainTable = true
         this.inDex = this.detailOption.length
       })
@@ -1326,6 +1342,7 @@ export default {
             if(this.detailOption[li].disabled == true){
               this.inDex = 4
               this.getList();
+              this.isItHidden = true
               this.MainTable = false
             } else {
               this.$confirm("返回列表,是否保存?", "提示", {
@@ -1336,6 +1353,7 @@ export default {
                 this.$refs.detailForm.saveRules('1')
                 }).catch(() => {
                   this.inDex = 4
+                  this.isItHidden = true
                   this.MainTable = false
                   this.getList();
                 });
@@ -1399,6 +1417,7 @@ export default {
                 })
               }
               if(i == 1){
+                this.isItHidden = true
                 this.MainTable = false
                 this.inDex = 4
               }
@@ -1470,14 +1489,34 @@ export default {
           }else{
             for(let item in this.detailData) {
               let num = Number(item) + 1
+              if (!this.detailData[item].fFeeid) {
+                this.$message.error("请维护第" + num + "行品名")
+                return false
+              }
+              if (!this.detailData[item].fCurrencyName) {
+                this.$message.error("请维护第" + num + "行规格")
+                return false
+              }
+              if (!this.detailData[item].fUnitprice) {
+                this.$message.error("请维护第" + num + "行单价")
+                return false
+              }
               if(!this.detailData[item].fQty){
                 this.$message.error("请维护第" + num + "数量")
                 return false
               }
+              if (!this.detailData[item].fFeeunitid) {
+                this.$message.error("请维护第" + num + "行计量单位")
+                return false
+              }
               if (!this.detailData[item].fWarehouseid) {
                 this.$message.error("请维护第" + num + "行库区")
                 return false
               }
+              if (!this.detailData[item].fAmount) {
+                this.$message.error("请维护第" + num + "行金额")
+                return false
+              }
             }
             this.detailForm.fMoney = 0
             for(let li in this.detailData){

+ 58 - 22
src/views/warehouse/outStock/index.vue

@@ -249,7 +249,7 @@ export default {
         {
           span:6,
           label: 'cLoadDate',
-          name:"申请日期",
+          name:"制单日期",
           form:6,
           width:200,
           labelSize:'80',
@@ -311,7 +311,7 @@ export default {
         },{
           surface: "2",
           label: "fBillno",
-          name: "申请编号",
+          name: "系统编号",
           checked: 0,
           width: 100,
         }, {
@@ -339,7 +339,7 @@ export default {
         },{
           surface: "6",
           label: "createTime",
-          name: "申请日期",
+          name: "制单日期",
           checked: 0,
           width: 200,
           operation:1
@@ -410,7 +410,7 @@ export default {
         },{
           surface: "2",
           label: "fFeeid",
-          name: "品名",
+          name: "*品名",
           checked: 0,
           width: 200,
           changeable:1,
@@ -419,14 +419,14 @@ export default {
         {
           surface: "3",
           label: "fCurrencyName",
-          name: "规格",
+          name: "*规格",
           checked: 0,
           width: 100,
         },
         {
           surface: "4",
           label: "fUnitprice",
-          name: "单价",
+          name: "*单价",
           checked: 0,
           width: 100,
           operation:2,
@@ -436,7 +436,7 @@ export default {
         },{
           surface: "5",
           label: "fQty",
-          name: "数量",
+          name: "*数量",
           checked: 0,
           width: 100,
           operation:2,
@@ -446,7 +446,7 @@ export default {
         },{
           surface: "6",
           label: "fFeeunitid",
-          name: "计量单位",
+          name: "*计量单位",
           checked: 0,
           width: 100,
           changeable:1,
@@ -456,7 +456,7 @@ export default {
         },{
           surface: "7",
           label: "fWarehouseid",
-          name: "库区",
+          name: "*库区",
           checked: 0,
           width: 100,
           operation:2,
@@ -466,7 +466,7 @@ export default {
         },{
           surface: "8",
           label: "fAmount",
-          name: "金额",
+          name: "*金额",
           checked: 0,
           width: 100,
           operation:2,
@@ -813,11 +813,16 @@ export default {
   },
   activated(){
     if (this.$route.query.open === 'true'){
-      this.detailList.columnList = this.detailStyle
+      // this.detailList.columnList = this.detailStyle
       this.detailForm = {}
       this.detailData = []
-      this.inDex = this.detailOption.length
+      // this.inDex = this.detailOption.length
       //从表修改按钮
+      let data = {
+        tableName: this.detailList.tableName,
+        userId: Cookies.get('userName')
+      }
+      this.getRow(data,null,1)
       for(let li in this.detailStyle){
         if(!this.detailStyle[li].doNot){
           this.detailStyle[li].disabled = false
@@ -1100,6 +1105,12 @@ export default {
           this.inDex = this.detailOption.length
           if (iem === undefined){
             this.detailList.columnList.forEach(item => item.disabled = true)
+          }else if(iem == 1){
+            for(let li in this.detailList.columnList){
+              if(!this.detailList.columnList[li].doNot){
+                this.detailList.columnList[li].disabled = false
+              }
+            }
           }
         }else {
           if (res.data.length != 0) {
@@ -1196,17 +1207,19 @@ export default {
           }
           this.getRow(data,list,iem)
         }
-        getArea(this.detailForm.fWarehouseid).then(res=>{
-          if(res.code == 200){
-            this.listData.fWarehouseid = []
-            for(let item in res.data){
-              this.listData.fWarehouseid.push({
-                label:res.data[item].fWarehouseInformation,
-                value:res.data[item].id
-              })
+        if(res.data.warehouseBills){
+          getArea(res.data.warehouseBills.fWarehouseid).then(res=>{
+            if(res.code == 200){
+              this.listData.fWarehouseid = []
+              for(let item in res.data){
+                this.listData.fWarehouseid.push({
+                  label:res.data[item].fWarehouseInformation,
+                  value:res.data[item].id
+                })
+              }
             }
-          }
-        })
+          })
+        }
         this.MainTable = true
         this.inDex = this.detailOption.length
       })
@@ -1321,6 +1334,7 @@ export default {
           if(this.detailOption[li].disabled == true){
             this.inDex = 4
             this.getList();
+            this.isItHidden = true
             this.MainTable = false
           } else {
             this.$confirm("返回列表,是否保存?", "提示", {
@@ -1331,6 +1345,7 @@ export default {
               this.$refs.detailForm.saveRules('1')
             }).catch(() => {
               this.inDex = 4
+              this.isItHidden = true
               this.MainTable = false
               this.getList();
             });
@@ -1394,6 +1409,7 @@ export default {
           })
         }
         if(i == 1){
+          this.isItHidden = true
           this.MainTable = false
           this.inDex = 4
         }
@@ -1465,14 +1481,34 @@ export default {
           }else{
             for(let item in this.detailData) {
               let num = Number(item) + 1
+              if (!this.detailData[item].fFeeid) {
+                this.$message.error("请维护第" + num + "行品名")
+                return false
+              }
+              if (!this.detailData[item].fCurrencyName) {
+                this.$message.error("请维护第" + num + "行规格")
+                return false
+              }
+              if (!this.detailData[item].fUnitprice) {
+                this.$message.error("请维护第" + num + "行单价")
+                return false
+              }
               if(!this.detailData[item].fQty){
                 this.$message.error("请维护第" + num + "数量")
                 return false
               }
+              if (!this.detailData[item].fFeeunitid) {
+                this.$message.error("请维护第" + num + "行计量单位")
+                return false
+              }
               if (!this.detailData[item].fWarehouseid) {
                 this.$message.error("请维护第" + num + "行库区")
                 return false
               }
+              if (!this.detailData[item].fAmount) {
+                this.$message.error("请维护第" + num + "行金额")
+                return false
+              }
             }
             this.detailForm.fMoney = 0
             for(let li in this.detailData){