Commit 3dfb2cec authored by Mac's avatar Mac

修改样式

parent f45ba81a
...@@ -87,14 +87,22 @@ ...@@ -87,14 +87,22 @@
:total="total"> :total="total">
</el-pagination> </el-pagination>
</div> </div>
<el-dialog title="物料详情" top="0" :visible.sync="CheckDetailState" width="1150px">
<wlDetails ref="mychild"></wlDetails>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import wlDetails from "@/components/global/wlDetails.vue";
export default { export default {
name: 'InventoryChange', name: 'InventoryChange',
components: {
wlDetails
},
data(){ data(){
return{ return{
CheckDetailState:false, CheckDetailState:false,
...@@ -131,7 +139,8 @@ ...@@ -131,7 +139,8 @@
SupplierName:'' SupplierName:''
}, },
wulaioList:[], wulaioList:[],
PropertyId:'',
CheckDetailState:false,
} }
}, },
...@@ -167,6 +176,13 @@ ...@@ -167,6 +176,13 @@
null null
); );
}, },
getCheckDes(item){
this.PropertyId=item.SuppliesId;
this.CheckDetailState=true;
setTimeout(()=>{
this.$refs.mychild.InitData(this.PropertyId);
},10)
},
currentChange(val) { currentChange(val) {
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getList(); this.getList();
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
<el-col :span="12"> <el-col :span="12">
<span>仓库名称 :</span> <span>仓库名称 :</span>
<span>{{GetDetail.WareHouseName}}</span> <span>{{GetDetail.WareHouseName}}</span>
<span v-if="prohibit==true && compType=='shenpi'" style="color: #FF4048">(此仓库正在盘点)</span>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<span>金额:</span> <span>金额:</span>
...@@ -454,6 +455,8 @@ ...@@ -454,6 +455,8 @@
endDate:'', endDate:'',
PropertyId:'', PropertyId:'',
CheckDetailState:false, CheckDetailState:false,
WarehouseList:[],
prohibit:false,
} }
}, },
created(){ created(){
...@@ -467,8 +470,8 @@ ...@@ -467,8 +470,8 @@
this.addMsg.Id=this.$route.query.Id; this.addMsg.Id=this.$route.query.Id;
this.danjuMsg.ResourceId=this.$route.query.Id; this.danjuMsg.ResourceId=this.$route.query.Id;
} }
this.getDetail();
this.getdanjuList(); this.getdanjuList();
this.getSuppliesCheckList();
}, },
...@@ -481,6 +484,21 @@ ...@@ -481,6 +484,21 @@
}, },
methods:{ methods:{
getSuppliesCheckList(){//获取盘点中的仓库
this.apiJavaPost("/api/WarehouseOut/GetSuppliesCheckList",{},
res => {
if (res.data.resultCode === 1) {
this.WarehouseList = res.data.data && res.data.data.length>0 ? res.data.data:[]
} else {
this.Error(res.data.message);
}
},
null
);
this.getDetail();//获取盘点仓库了再获取详情
},
inited (viewer){ inited (viewer){
this.$viewer = viewer this.$viewer = viewer
}, },
...@@ -696,6 +714,10 @@ ...@@ -696,6 +714,10 @@
); );
}, },
approvalOrder(num){ approvalOrder(num){
if(this.prohibit==true){
this.Error("仓库正在盘点,不能审核/驳回!");
return;
}
if(this.GetDetail.Is_AuditSelf==1){ if(this.GetDetail.Is_AuditSelf==1){
this.Error("制单人跟审核人不能相同哟,请转交!"); this.Error("制单人跟审核人不能相同哟,请转交!");
return; return;
...@@ -782,6 +804,14 @@ ...@@ -782,6 +804,14 @@
this.endDate = newTime.replace("前",""); this.endDate = newTime.replace("前","");
} }
let list = []; let list = [];
if(this.WarehouseList.length>0){//盘点详情的仓库是否在盘点中
this.WarehouseList.forEach(x=>{
if(x.WarehouseId == data.WarehouseId){
this.prohibit = true
}
})
}
for ( let i = 0; i < this.GetDetail.AuditSteps.length ; i++ ){ for ( let i = 0; i < this.GetDetail.AuditSteps.length ; i++ ){
list.push(this.GetDetail.AuditSteps[i]); list.push(this.GetDetail.AuditSteps[i]);
if(this.GetDetail.AuditSteps[i].Status==4){ if(this.GetDetail.AuditSteps[i].Status==4){
......
...@@ -90,10 +90,10 @@ ...@@ -90,10 +90,10 @@
<div>{{item.WareHouseName}}</div> <div>{{item.WareHouseName}}</div>
<div>{{item.SupplierName}}</div> <div>{{item.SupplierName}}</div>
</td> </td>
<td>{{delist.SuppliesNum}}</td> <td @click="getCheckDes(delist)" style="text-decoration: underline;cursor: pointer;">{{delist.SuppliesNum}}</td>
<td style="width:300px">{{delist.SuppliesName}}</td> <td style="width:300px">{{delist.SuppliesName}}</td>
<td> <td>
<p v-for="(x,y) in delist.GoodsSpecificationList" :key="y">{{x}}{{y+1==delist.GoodsSpecificationList.length?'':','}}</p> <span v-for="(x,y) in delist.GoodsSpecificationList" :key="y">{{x}}{{y+1==delist.GoodsSpecificationList.length?'':','}}</span>
</td> </td>
<td>{{delist.CategoryName}}</td> <td>{{delist.CategoryName}}</td>
<td>{{delist.BrandName}}</td> <td>{{delist.BrandName}}</td>
...@@ -164,15 +164,22 @@ ...@@ -164,15 +164,22 @@
</div> </div>
</el-form> </el-form>
</el-dialog> </el-dialog>
<el-dialog title="物料详情" top="0" :visible.sync="CheckDetailState" width="1150px">
<wlDetails ref="mychild"></wlDetails>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import "@riophae/vue-treeselect/dist/vue-treeselect.css"; import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import wlDetails from "@/components/global/wlDetails.vue";
export default { export default {
name: "rukuExamine", name: "rukuExamine",
components: {
wlDetails
},
data(){ data(){
return{ return{
showTable:1, showTable:1,
...@@ -206,6 +213,9 @@ ...@@ -206,6 +213,9 @@
Description:'', Description:'',
}, },
dialogState:false, dialogState:false,
PropertyId:'',
CheckDetailState:false,
} }
}, },
mounted(){ mounted(){
...@@ -229,6 +239,13 @@ ...@@ -229,6 +239,13 @@
this.getYishenpi(); this.getYishenpi();
} }
}, },
getCheckDes(item){
this.PropertyId=item.SuppliesId;
this.CheckDetailState=true;
setTimeout(()=>{
this.$refs.mychild.InitData(this.PropertyId);
},10)
},
getDaishenpi(){ getDaishenpi(){
this.loading=true; this.loading=true;
this.apiJavaPost("/api/Supplies/GetStockInWaitMyAuditPageList",this.msg, this.apiJavaPost("/api/Supplies/GetStockInWaitMyAuditPageList",this.msg,
......
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