Commit 8ab1228c authored by zhengke's avatar zhengke
parents d27b222f b576a0a1
...@@ -176,6 +176,49 @@ ...@@ -176,6 +176,49 @@
</div> </div>
</el-form> </el-form>
</el-dialog> </el-dialog>
<el-dialog
title="复盘时间"
:close-on-click-modal="false"
:visible.sync="dialogState2"
top="0"
width="680px"
>
<el-form
class="MyEditForm"
:model="addMsg"
:rules="rules"
ref="addMsg"
label-width="0px"
>
<div class="basefix">
<div class="baseform">
<el-form-item class="dateList" label="" style="width:450px">
<span class="label">计划时间</span>
<div>
<el-date-picker style="width:450px"
v-model="dateList2"
type="datetimerange"
range-separator="至"
value-format="yyyy-MM-dd HH:mm:ss"
start-placeholder="开始日期"
end-placeholder="结束日期"
:default-time="['09:30:00', '18:00:00']"
>
</el-date-picker>
</div>
</el-form-item>
</div>
</div>
<div class="btnformItem">
<span v-loading="queryLoad2" class="submitBtn" type="primary" @click="analyseForm()"
>确定</span
>
<span class="exitBtn" @click="dialogState2 = false">取消</span>
</div>
</el-form>
</el-dialog>
</div> </div>
</template> </template>
...@@ -192,6 +235,7 @@ export default { ...@@ -192,6 +235,7 @@ export default {
return { return {
valueConsistsOf: 'ALL', valueConsistsOf: 'ALL',
queryLoad:false, queryLoad:false,
queryLoad2:false,
addMsg: { addMsg: {
Id: 0, Id: 0,
WarehouseId:'', WarehouseId:'',
...@@ -200,6 +244,7 @@ export default { ...@@ -200,6 +244,7 @@ export default {
}, },
morequery: false, morequery: false,
dateList: [], dateList: [],
dateList2:[],
currentPage: 1, currentPage: 1,
tableData: [], tableData: [],
loading: false, loading: false,
...@@ -212,13 +257,16 @@ export default { ...@@ -212,13 +257,16 @@ export default {
CheckState:0, CheckState:0,
}, },
repeatMsg:{ repeatMsg:{
CheckId:0,
StartTime:'',
EndTime:''
}, },
getWareHouseList:[], getWareHouseList:[],
getCheckStatusList:[], getCheckStatusList:[],
dialogtitle: "新增", dialogtitle: "新增",
dialogState: false, dialogState: false,
dialogState2: false,
rules: { rules: {
Name: [{ required: true, message: "请输入名称", trigger: "blur" }], Name: [{ required: true, message: "请输入名称", trigger: "blur" }],
WarehouseId: [ WarehouseId: [
...@@ -230,6 +278,7 @@ export default { ...@@ -230,6 +278,7 @@ export default {
dialogdisabled:false, dialogdisabled:false,
}; };
}, },
mounted() { mounted() {
...@@ -334,19 +383,30 @@ export default { ...@@ -334,19 +383,30 @@ export default {
}); });
}, },
analyse(item){ analyse(item){
let Id = item.Id; this.repeatMsg.CheckId = item.Id;
this.$confirm("确认复盘?", "提示", { this.repeatMsg.StartTime = '';
confirmButtonText: "确定", this.repeatMsg.EndTime = '';
cancelButtonText: "取消", this.dialogState2 = true;
type: "warning" this.dateList2 = [];
})
.then(() => { },
this.apiJavaPost( analyseForm(){
"/api/supplies/RepeatSuppliesCheck", if(this.dateList2 && this.dateList2.length>0){
{ CheckId: Id }, this.repeatMsg.StartTime=this.dateList2[0];
this.repeatMsg.EndTime=this.dateList2[1];
}
if( this.repeatMsg.StartTime=='' && this.repeatMsg.EndTime==''){
this.Error('请选择时间!')
return
}
this.queryLoad2 = true
this.apiJavaPost(
"/api/supplies/RepeatSuppliesCheck", this.repeatMsg,
res => { res => {
this.queryLoad2 = false
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.getList(); this.getList();
this.dialogState2 = false;
this.Success(res.data.message); this.Success(res.data.message);
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
...@@ -354,10 +414,7 @@ export default { ...@@ -354,10 +414,7 @@ export default {
}, },
null null
); );
})
.catch(() => {
this.$message.info("已取消复盘!");
});
}, },
submitForm(formName) { submitForm(formName) {
this.$refs[formName].validate(valid => { this.$refs[formName].validate(valid => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment