| | |
| | | <el-form :inline="true"> |
| | | <el-form-item label="开工日期"> |
| | | <el-date-picker |
| | | v-model="tableSearchParam.FPlanCommitDate" |
| | | v-model="tableSearchParam.fplancommitdate" |
| | | type="date" |
| | | placeholder="选择日期" |
| | | :default-value="defaultTime" |
| | |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="生产单号"> |
| | | <el-input v-model="tableSearchParam.FSourceBillNo" placeholder="请输入生产单号"></el-input> |
| | | <el-input v-model="tableSearchParam.soCode" placeholder="请输入生产单号"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="车间"> |
| | | <el-select v-model="tableSearchParam.FWorkShop" placeholder="选择车间" style="width: 240px" > |
| | | <el-select v-model="tableSearchParam.depName" placeholder="选择车间" style="width: 240px" > |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | |
| | | </el-form> |
| | | <el-form :inline="true"> |
| | | <el-form-item label=""> |
| | | <el-button type="primary">同步</el-button> |
| | | <el-button type="primary" @click="tongbu">同步</el-button> |
| | | </el-form-item> |
| | | <el-form-item label=""> |
| | | <el-button type="primary">撤销同步</el-button> |
| | |
| | | <el-button type="primary">撤销退料</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table :data="tableData" border style="width: 100%" row-key="finterID" @selection-change="handleSelectionChange"> |
| | | <el-table :data="tableData" border style="width: 100%" row-key="finterid" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" > |
| | | </el-table-column> |
| | | <el-table-column type="index" width="50" > |
| | | </el-table-column> |
| | | <el-table-column prop="fsourceBillNo" label="生产单号" > |
| | | <el-table-column prop="soCode" label="生产单号" > |
| | | </el-table-column> |
| | | <el-table-column prop="fbillNo" label="任务单号"> |
| | | <el-table-column prop="fbillno" label="任务单号"> |
| | | </el-table-column> |
| | | <el-table-column prop="icitemCore.fnumber" label="物料编码"> |
| | | <el-table-column prop="invCode" label="物料编码"> |
| | | </el-table-column> |
| | | <el-table-column prop="icitemCore.fname" label="物料名称" width="300" show-overflow-tooltip="true"> |
| | | <el-table-column prop="invName" label="物料名称" width="300" show-overflow-tooltip="true"> |
| | | </el-table-column> |
| | | <el-table-column prop="icitemCore.fmodel" label="规格" width="200" show-overflow-tooltip="true"> |
| | | <el-table-column prop="invStd" label="规格" width="200" show-overflow-tooltip="true"> |
| | | </el-table-column> |
| | | <el-table-column prop="department.fname" label="车间"> |
| | | <el-table-column prop="depName" label="车间"> |
| | | </el-table-column> |
| | | <el-table-column prop="fauxQty" label="数量" width="90"> |
| | | <el-table-column prop="fauxqty" label="数量" width="90"> |
| | | </el-table-column> |
| | | <el-table-column prop="fplanCommitDate$" label="计划开工时间"> |
| | | <el-table-column prop="fplancommitdate" label="计划开工时间"> |
| | | </el-table-column> |
| | | <el-table-column prop="fplanFinishDate$" label="计划完工时间"> |
| | | <el-table-column prop="fplanfinishdate" label="计划完工时间"> |
| | | </el-table-column> |
| | | <el-table-column prop="izSyncReceive" label="是否同步" width="90"> |
| | | <el-table-column prop="iz_sync_receive" label="是否同步" width="90"> |
| | | </el-table-column> |
| | | <el-table-column prop="izSyncReceiveReturn" label="是否退料" width="90"> |
| | | <el-table-column prop="iz_sync_receive_return" label="是否退料" width="90"> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div style="margin-top: 10px"> |
| | | <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" |
| | | :current-page="currentPage" :page-sizes="pageSizes" :page-size="pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" :total="pageTotal"> |
| | | </el-pagination> |
| | | </div> |
| | | <!-- <div style="margin-top: 10px">--> |
| | | <!-- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"--> |
| | | <!-- :current-page="currentPage" :page-sizes="pageSizes" :page-size="pageSize"--> |
| | | <!-- layout="total, sizes, prev, pager, next, jumper" :total="pageTotal">--> |
| | | <!-- </el-pagination>--> |
| | | <!-- </div>--> |
| | | |
| | | |
| | | </el-card> |
| | |
| | | const pageSize = ref(15) |
| | | const pageTotal = ref(0) |
| | | const tableSearchParam = ref({ |
| | | FSourceBillNo: null, |
| | | FPlanCommitDate: new Date(), |
| | | FWorkShop:null |
| | | soCode: null, |
| | | fplancommitdate: new Date(), |
| | | depName:null |
| | | }) |
| | | const tableData = ref([]) |
| | | const defaultTime = ref(new Date()) |
| | | |
| | | const options = [ |
| | | { |
| | | value: '16979', |
| | | value: '南区车间', |
| | | label: '南区车间' |
| | | }, |
| | | { |
| | | value: '16980', |
| | | value: '北区车间', |
| | | label: '北区车间' |
| | | }, |
| | | |
| | | ] |
| | | |
| | | const selectList = ref([]) |
| | | |
| | | function page(){ |
| | | let data = JSON.parse(JSON.stringify(tableSearchParam.value)) |
| | |
| | | data.create_time = tableSearchParam.value.datetime[0] + " - " + tableSearchParam.value.datetime[1] |
| | | } |
| | | $.ajax({ |
| | | url: baseUrl + "/iCMO/list/auth", |
| | | url: baseUrl + "/iCMO/getList/auth", |
| | | headers: { |
| | | 'token': localStorage.getItem('token') |
| | | }, |
| | |
| | | method: 'GET', |
| | | success: function(res) { |
| | | if (res.code == 200) { |
| | | tableData.value = res.data.records |
| | | pageTotal.value = res.data.total |
| | | tableData.value = res.data |
| | | |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl + "/"; |
| | | } else { |
| | | ElementPlus.ElMessage({ |
| | | message: res.msg, |
| | | type: 'error' |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | |
| | | function tongbu(){ |
| | | $.ajax({ |
| | | url: baseUrl + "/other/tongbu/v1", |
| | | headers: { |
| | | 'token': localStorage.getItem('token') |
| | | }, |
| | | data: JSON.stringify(selectList.value), |
| | | dataType: 'json', |
| | | contentType: 'application/json;charset=UTF-8', |
| | | method: 'POST', |
| | | success: function(res) { |
| | | if (res.code == 200) { |
| | | ElementPlus.ElMessage({ |
| | | message: res.msg, |
| | | type: 'success' |
| | | }); |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl + "/"; |
| | | } else { |
| | |
| | | currentPage.value = val |
| | | page() |
| | | } |
| | | function handleSelectionChange(val) { |
| | | function handleSelectionChange(val) { |
| | | console.log(val) |
| | | selectList.value = val |
| | | } |
| | | |
| | | onMounted(() => { |
| | |
| | | defaultTime, |
| | | options, |
| | | page, |
| | | tongbu, |
| | | handleSizeChange, |
| | | handleCurrentChange, |
| | | handleSelectionChange |