质量时间查询优化

master
shaoyong 7 months ago
parent 7e535faab7
commit dc1675c02f

@ -184,7 +184,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="total>0" v-show="total>0"
:total="total" :total="total"
@ -244,9 +244,9 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="抽样数量" prop="sampleQuality"> <el-form-item label="抽样数量" prop="sampleQuality">
<el-input type="number" v-model="form.sampleQuality" placeholder="请输入抽样数量"/> <el-input type="number" v-model="form.sampleQuality" placeholder="请输入抽样数量"/>
</el-form-item> </el-form-item>
@ -265,7 +265,7 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="仓库编码" prop="supplierCode"> <el-form-item label="仓库编码" prop="supplierCode">
<el-input v-model="form.supplierCode" placeholder="请输入供应商编码" disabled/> <el-input v-model="form.supplierCode" placeholder="请输入供应商编码" disabled/>
</el-form-item> </el-form-item>
@ -284,7 +284,7 @@
<el-input v-model="form.checkManCode" placeholder="请输入检测人工号" disabled/> <el-input v-model="form.checkManCode" placeholder="请输入检测人工号" disabled/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="检测地点" prop="checkLoc"> <el-form-item label="检测地点" prop="checkLoc">
<el-input v-model="form.checkLoc" placeholder="请输入检测地点" /> <el-input v-model="form.checkLoc" placeholder="请输入检测地点" />
</el-form-item> </el-form-item>
@ -388,7 +388,7 @@ export default {
// //
rules: { rules: {
checkType:[ checkType:[
{ required: true, message: "检验类型不能为空", trigger: "blur" } { required: true, message: "检验类型不能为空", trigger: "blur" }
], ],
incomeBatchNo: [ incomeBatchNo: [
{ required: true, message: "批次号不能为空", trigger: "blur" } { required: true, message: "批次号不能为空", trigger: "blur" }
@ -452,12 +452,12 @@ export default {
/** 查询库存检验列表 */ /** 查询库存检验列表 */
getList() { getList() {
this.loading = true; this.loading = true;
console.log("--------"+this.queryParams)
if(this.queryParams.incomeTimeArray!=null && this.queryParams.incomeTimeArray.length>0){ if(this.queryParams.incomeTimeArray!=null && this.queryParams.incomeTimeArray.length>0){
this.queryParams.incomeTimeStart = moment(this.queryParams.incomeTimeArray[0]).format('YYYY-MM-DD HH:mm:ss'); this.queryParams.incomeTimeStart = moment(this.queryParams.incomeTimeArray[0]).format('YYYY-MM-DD HH:mm:ss');
this.queryParams.incomeTimeEnd = moment(this.queryParams.incomeTimeArray[1]).format('YYYY-MM-DD HH:mm:ss'); this.queryParams.incomeTimeEnd = moment(this.queryParams.incomeTimeArray[1]).format('YYYY-MM-DD HH:mm:ss');
}else{ }else{
this.queryParams.incomeTimeStart = null; this.queryParams.incomeTimeStart = null;
this.queryParams.incomeTimeEnd = null; this.queryParams.incomeTimeEnd = null;
} }
@ -619,7 +619,7 @@ export default {
this.form.supplierCode = obj.code; this.form.supplierCode = obj.code;
this.form.supplierName = obj.name; this.form.supplierName = obj.name;
}, },
/**人员选择弹出框**/ /**人员选择弹出框**/
handleSelectUser() { handleSelectUser() {
this.$refs.itemSelectUser.showFlag = true; this.$refs.itemSelectUser.showFlag = true;

@ -185,7 +185,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="total>0" v-show="total>0"
:total="total" :total="total"
@ -427,7 +427,7 @@ export default {
// //
rules: { rules: {
checkType:[ checkType:[
{ required: true, message: "检验类型不能为空", trigger: "blur" } { required: true, message: "检验类型不能为空", trigger: "blur" }
], ],
incomeBatchNo: [ incomeBatchNo: [
{ required: true, message: "批次号不能为空", trigger: "blur" } { required: true, message: "批次号不能为空", trigger: "blur" }
@ -498,7 +498,7 @@ export default {
this.queryParams.incomeTimeStart = moment(this.queryParams.incomeTimeArray[0]).format('YYYY-MM-DD HH:mm:ss'); this.queryParams.incomeTimeStart = moment(this.queryParams.incomeTimeArray[0]).format('YYYY-MM-DD HH:mm:ss');
this.queryParams.incomeTimeEnd = moment(this.queryParams.incomeTimeArray[1]).format('YYYY-MM-DD HH:mm:ss'); this.queryParams.incomeTimeEnd = moment(this.queryParams.incomeTimeArray[1]).format('YYYY-MM-DD HH:mm:ss');
}else{ }else{
this.queryParams.incomeTimeStart = null; this.queryParams.incomeTimeStart = null;
this.queryParams.incomeTimeEnd = null; this.queryParams.incomeTimeEnd = null;
} }
@ -665,7 +665,7 @@ export default {
this.form.supplierCode = obj.code; this.form.supplierCode = obj.code;
this.form.supplierName = obj.name; this.form.supplierName = obj.name;
}, },
/**人员选择弹出框**/ /**人员选择弹出框**/
handleSelectUser() { handleSelectUser() {
this.$refs.itemSelectUser.showFlag = true; this.$refs.itemSelectUser.showFlag = true;

@ -523,15 +523,21 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
if(this.queryParams.incomeTimeArray.length>0){ if(this.queryParams.incomeTimeArray != null && this.queryParams.incomeTimeArray.length>0){
this.queryParams.incomeTimeStart = moment(this.queryParams.incomeTimeArray[0]).format('YYYY-MM-DD HH:mm:ss'); this.queryParams.incomeTimeStart = moment(this.queryParams.incomeTimeArray[0]).format('YYYY-MM-DD HH:mm:ss');
this.queryParams.incomeTimeEnd = moment(this.queryParams.incomeTimeArray[1]).format('YYYY-MM-DD HH:mm:ss'); this.queryParams.incomeTimeEnd = moment(this.queryParams.incomeTimeArray[1]).format('YYYY-MM-DD HH:mm:ss');
} }else{
this.queryParams.incomeTimeStart = null;
this.queryParams.incomeTimeEnd = null;
}
if(this.queryParams.checkTimeArray.length>0){ if(this.queryParams.checkTimeArray != null && this.queryParams.checkTimeArray.length>0){
this.queryParams.checkTimeStart = moment(this.queryParams.checkTimeArray[0]).format('YYYY-MM-DD HH:mm:ss'); this.queryParams.checkTimeStart = moment(this.queryParams.checkTimeArray[0]).format('YYYY-MM-DD HH:mm:ss');
this.queryParams.checkTimeEnd = moment(this.queryParams.checkTimeArray[1]).format('YYYY-MM-DD HH:mm:ss'); this.queryParams.checkTimeEnd = moment(this.queryParams.checkTimeArray[1]).format('YYYY-MM-DD HH:mm:ss');
} }else{
this.queryParams.checkTimeStart = null;
this.queryParams.checkTimeEnd = null;
}
listWarehousing(this.queryParams).then(response => { listWarehousing(this.queryParams).then(response => {
this.warehousingList = response.rows; this.warehousingList = response.rows;

@ -389,10 +389,13 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
if(this.queryParams.checkTimeArray.length>0){ if(this.queryParams.checkTimeArray != null && this.queryParams.checkTimeArray.length>0){
this.queryParams.checkTimeStart = moment(this.queryParams.checkTimeArray[0]).format('YYYY-MM-DD HH:mm:ss'); this.queryParams.checkTimeStart = moment(this.queryParams.checkTimeArray[0]).format('YYYY-MM-DD HH:mm:ss');
this.queryParams.checkTimeEnd = moment(this.queryParams.checkTimeArray[1]).format('YYYY-MM-DD HH:mm:ss'); this.queryParams.checkTimeEnd = moment(this.queryParams.checkTimeArray[1]).format('YYYY-MM-DD HH:mm:ss');
} }else {
this.queryParams.checkTimeStart = null;
this.queryParams.checkTimeEnd = null;
}
listUnqualified(this.queryParams).then(response => { listUnqualified(this.queryParams).then(response => {
this.unqualifiedList = response.rows; this.unqualifiedList = response.rows;

@ -128,7 +128,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="total>0" v-show="total>0"
:total="total" :total="total"
@ -172,6 +172,9 @@
<el-form-item label="数据源名称" prop="parkName"> <el-form-item label="数据源名称" prop="parkName">
<el-input v-model="form.parkName" placeholder="请输入数据源名称" disabled/> <el-input v-model="form.parkName" placeholder="请输入数据源名称" disabled/>
</el-form-item> </el-form-item>
<el-form-item label="数据源名称" prop="parkName">
<el-input v-model="form.poolName" placeholder="请输入数据源标识"/>
</el-form-item>
<el-form-item label="备注" prop="remark"> <el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" /> <el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
</el-form-item> </el-form-item>

Loading…
Cancel
Save