This commit is contained in:
liushuai
2020-06-08 17:57:49 +08:00
parent 6966adb952
commit fa5f12d664
16 changed files with 679 additions and 87 deletions

View File

@@ -27,6 +27,9 @@
<el-badge :value="value" :max="99" class="item">
<el-button size="small" type="text" @click="PartCallbackInformation;dialogFormVisible1 = true">基本件打回信息</el-button>
</el-badge>
<el-badge :value="unallocatedQuantity" :max="99" class="item">
<el-button size="small" type="text" @click="hreftwo">今日未分配零件信息</el-button>
</el-badge>
</el-row>
</el-card>
<el-tabs type="border-card" @tab-click="selectPart">
@@ -496,7 +499,7 @@
</template>
<script>
import { inPart, searchBillNumber, DeliveryTimeSelect, initProject, searchgroup, searchTable, searchPart, searchPart1, searchTable1, addData, editData, deleteData, searchDetailed1, purchaseRequisition, purchaseRequisition1, purchaseRequisition2, MoveOut, MoveOut1, PurchasingDepartment, Production, PartCallbackInformation, PartCallbackInformation1, Delete, Delete1, editStock, editNum, OutPart, PurchasingDepartmentBack, purchaseRequisition2Back } from '@/api/ManufacturingCenter/PartAssignment'
import { getunallocated, inPart, searchBillNumber, DeliveryTimeSelect, initProject, searchgroup, searchTable, searchPart, searchPart1, searchTable1, addData, editData, deleteData, searchDetailed1, purchaseRequisition, purchaseRequisition1, purchaseRequisition2, MoveOut, MoveOut1, PurchasingDepartment, Production, PartCallbackInformation, PartCallbackInformation1, Delete, Delete1, editStock, editNum, OutPart, PurchasingDepartmentBack, purchaseRequisition2Back } from '@/api/ManufacturingCenter/PartAssignment'
import { mapGetters } from 'vuex'
import { getNowShotTime } from '@/utils/tool'
import Cookie from 'js-cookie'
@@ -505,6 +508,7 @@ export default {
inject: ['reload'],
data() {
return {
unallocatedQuantity: 0,
purchaseRequisition_loading: false,
Production_loading: false,
PurchasingDepartment_loading: false,
@@ -631,8 +635,17 @@ export default {
this.fetchData()
this.PartCallbackInformation()
this.PartCallbackInformation1()
this.getUnallocated()
},
methods: {
hreftwo() {
this.$router.push({ path: '/ManufacturingCenter/MaterialAllocation' })
},
getUnallocated() {
getunallocated().then(response => {
this.unallocatedQuantity = response.data[0].未分配数量
})
},
// EXCEL 导出
// 姜福壮
exportExcel() {