修改bug
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
			
		||||
<!--
 | 
			
		||||
 * @Author: zhp
 | 
			
		||||
 * @Date: 2024-04-15 10:49:13
 | 
			
		||||
 * @LastEditTime: 2024-07-26 10:32:14
 | 
			
		||||
 * @LastEditTime: 2024-07-26 11:06:58
 | 
			
		||||
 * @LastEditors: zhp
 | 
			
		||||
 * @Description:
 | 
			
		||||
-->
 | 
			
		||||
@@ -394,6 +394,10 @@ export default {
 | 
			
		||||
      this.listQuery.yearPhaseEnd = this.listQuery.end ? this.listQuery.end.slice(0, 6) : undefined
 | 
			
		||||
      if (this.listQuery.end && this.listQuery.start) {
 | 
			
		||||
        if (this.listQuery.end.slice(0, 4) - this.listQuery.start.slice(0, 4) > 10) {
 | 
			
		||||
          this.listQuery.end = undefined
 | 
			
		||||
          this.listQuery.start = undefined
 | 
			
		||||
          this.listQuery.yearPhaseStart = undefined
 | 
			
		||||
          this.listQuery.yearPhaseEnd = undefined
 | 
			
		||||
          return this.$message({
 | 
			
		||||
            message: '起止年份不能超过十年',
 | 
			
		||||
            type: 'warning'
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
<!--
 | 
			
		||||
 * @Author: zhp
 | 
			
		||||
 * @Date: 2024-04-15 10:49:13
 | 
			
		||||
 * @LastEditTime: 2024-07-26 10:28:53
 | 
			
		||||
 * @LastEditTime: 2024-07-26 11:05:17
 | 
			
		||||
 * @LastEditors: zhp
 | 
			
		||||
 * @Description:
 | 
			
		||||
-->
 | 
			
		||||
@@ -10,7 +10,7 @@
 | 
			
		||||
    <div class="app-container" style="height: auto; flex-grow: 1;">
 | 
			
		||||
      <el-form :model="listQuery" :inline="true" ref="dataForm" class="blueTip">
 | 
			
		||||
        <el-form-item label="快捷查询" prop="mDType">
 | 
			
		||||
          <el-select size="small" v-model="listQuery.mDType" clearable>
 | 
			
		||||
          <el-select size="small" v-model="listQuery.mDType" clearable @change="handleChange">
 | 
			
		||||
            <el-option v-for="item in mDTypeList" :key="item.value" :label="item.label" :value="item.value">
 | 
			
		||||
            </el-option>
 | 
			
		||||
          </el-select>
 | 
			
		||||
@@ -283,6 +283,10 @@ export default {
 | 
			
		||||
    // this.changeTime()
 | 
			
		||||
  },
 | 
			
		||||
  methods: {
 | 
			
		||||
    handleChange() {
 | 
			
		||||
      this.listQuery.materialCode = undefined
 | 
			
		||||
      this.listQuery.materialName = undefined
 | 
			
		||||
    },
 | 
			
		||||
    async getDataList() {
 | 
			
		||||
        await getStockRealTimePage(this.listQuery).then(res => {
 | 
			
		||||
          if (res.code === 0) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user