| | |
| | | <div id="app"> |
| | | <el-card> |
| | | <el-form :inline="true"> |
| | | <el-form-item label="开工日期"> |
| | | <el-date-picker |
| | | v-model="tableSearchParam.time" |
| | | type="date" |
| | | placeholder="选择日期" |
| | | :default-value="defaultTime" |
| | | |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="生产单号"> |
| | | <el-input v-model="tableSearchParam.produce_no" placeholder="请输入生产单号"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="车间"> |
| | | <el-input v-model="tableSearchParam.produce_no" placeholder="请输入生产单号"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label=""> |
| | | <el-button type="primary" @click="page" circle > |
| | | <el-icon><Search /></el-icon> |
| | |
| | | </el-table-column> |
| | | <el-table-column type="index" width="50" > |
| | | </el-table-column> |
| | | <el-table-column prop="produceNo" label="生产单号" > |
| | | <el-table-column prop="Head.FSourceBillNo" label="生产单号" > |
| | | </el-table-column> |
| | | <el-table-column prop="jobNo" label="任务单号"> |
| | | <el-table-column prop="Head.FBillNo" label="任务单号"> |
| | | </el-table-column> |
| | | <el-table-column prop="matnr" label="物料编码"> |
| | | <el-table-column prop="Head.FItemID" label="物料编码"> |
| | | </el-table-column> |
| | | <el-table-column prop="name" label="物料名称"> |
| | | <el-table-column prop="Head.FItemID" label="物料名称"> |
| | | </el-table-column> |
| | | <el-table-column prop="specs" label="规格"> |
| | | <el-table-column prop="Head.FSourceBillNo" label="规格"> |
| | | </el-table-column> |
| | | <el-table-column prop="workshop" label="车间"> |
| | | <el-table-column prop="Head.FWorkShop" label="车间"> |
| | | </el-table-column> |
| | | <el-table-column prop="anfme" label="数量"> |
| | | <el-table-column prop="Head.Fauxqty" label="数量"> |
| | | </el-table-column> |
| | | <el-table-column prop="startTime" label="计划开工时间"> |
| | | <el-table-column prop="Head.FPlanCommitDate" label="计划开工时间"> |
| | | </el-table-column> |
| | | <el-table-column prop="endTime" label="计划完工时间"> |
| | | <el-table-column prop="Head.FPlanFinishDate" label="计划完工时间"> |
| | | </el-table-column> |
| | | <el-table-column prop="sync" label="是否同步"> |
| | | <el-table-column prop="Head.FSourceBillNo" label="是否同步"> |
| | | </el-table-column> |
| | | <el-table-column prop="matnrReturn" label="是否退料"> |
| | | <el-table-column prop="Head.FSourceBillNo" label="是否退料"> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div style="margin-top: 10px"> |
| | |
| | | const app = createApp({ |
| | | setup() { |
| | | const currentPage = ref(1) |
| | | const pageSizes = ref([16, 30, 50, 100, 150, 200]) |
| | | const pageSize = ref(16) |
| | | const pageSizes = ref([10, 20, 30, 50, 100, 200]) |
| | | const pageSize = ref(10) |
| | | const pageTotal = ref(0) |
| | | const tableSearchParam = ref({ |
| | | produce_no: null |
| | | produce_no: null, |
| | | time: new Date() |
| | | }) |
| | | const tableData = ref([]) |
| | | const defaultTime = ref(new Date()) |
| | | |
| | | function page(){ |
| | | let data = JSON.parse(JSON.stringify(tableSearchParam.value)) |
| | |
| | | data.create_time = tableSearchParam.value.datetime[0] + " - " + tableSearchParam.value.datetime[1] |
| | | } |
| | | $.ajax({ |
| | | url: baseUrl + "/erpReceiving/list/auth", |
| | | url: baseUrl + "/kingdee/get/manufacturingorder/list", |
| | | 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.List |
| | | pageTotal.value = res.data.TotalItems |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl + "/"; |
| | | } else { |
| | | ElMessage({ |
| | | ElementPlus.ElMessage({ |
| | | message: res.msg, |
| | | type: 'error' |
| | | }); |
| | |
| | | pageSize, |
| | | pageTotal, |
| | | tableSearchParam, |
| | | defaultTime, |
| | | page, |
| | | handleSizeChange, |
| | | handleCurrentChange, |