| | |
| | | <el-form :model="dataForm" :rules="dataRule" ref="dataForm" class="l-mes"> |
| | | <div class="avue-crud"> |
| | | <el-table |
| | | border |
| | | :data="dataForm.customer" |
| | | style="width: 100%" |
| | | class="mps-table" |
| | |
| | | header-align="center" |
| | | align="center" |
| | | label="客户订单编号" |
| | | width="120px" |
| | | min-width="130px" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-form-item>{{ scope.row.customerOrderNo }}</el-form-item> |
| | | <el-form-item>{{ scope.row.contractNo }}</el-form-item> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | header-align="center" |
| | | align="center" |
| | | label="零件号" |
| | | width="120px" |
| | | min-width="130" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-form-item>{{ scope.row.partNo }}</el-form-item> |
| | |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-form-item class="inline-el-hidden">{{ |
| | | scope.row.partName |
| | | scope.row.productName |
| | | }}</el-form-item> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <el-form-item>{{ scope.row.buyQtyDue }}</el-form-item> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | <!-- <el-table-column |
| | | header-align="center" |
| | | align="center" |
| | | label="已计划数量" |
| | | width="120px" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-form-item>{{ scope.row.requireNumber }}</el-form-item> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column> --> |
| | | <el-table-column |
| | | prop="remainderRequired" |
| | | header-align="center" |
| | | align="center" |
| | | label="本次计划数量" |
| | | width="170px" |
| | | > |
| | | label="本次计划数量"> |
| | | <template scope="scope"> |
| | | <el-form-item |
| | | :prop="'customer.' + scope.$index" |
| | | :rules="rules.qtyPlaned" |
| | | > |
| | | <!-- <el-form-item>{{ scope.row.qtyPlaned }}</el-form-item> --> |
| | | <el-form-item :prop="'customer.' + scope.$index" :rules="rules.qtyPlaned"> |
| | | <el-input |
| | | v-model="scope.row.qtyPlaned" |
| | | placeholder="" |
| | | ></el-input> |
| | | placeholder="请输入本次计划数量"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | header-align="center" |
| | | align="center" |
| | | label="单位" |
| | | width="60px" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.unit }}</span> |
| | | <span>{{ scope.row.otcUnit }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | header-align="center" |
| | | align="center" |
| | | label="制造属性" |
| | | width="170px" |
| | | > |
| | | <template scope="scope"> |
| | | <el-form-item :prop="'manufactureAttr.' + scope.$index"> |
| | |
| | | <el-table-column |
| | | header-align="center" |
| | | align="center" |
| | | label="需求日期" |
| | | width="160px" |
| | | label="计划日期" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-form-item>{{ scope.row.deliveryDate }}</el-form-item> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | header-align="center" |
| | | align="center" |
| | | label="客户需求日期" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-form-item>{{ scope.row.wantedDeliveryDate }}</el-form-item> |
| | |
| | | align="center" |
| | | show-overflow-tooltip |
| | | label="备注" |
| | | min-width="140" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-form-item> |
| | |
| | | const _that = this |
| | | customer.forEach((item) => { |
| | | const outPutBatchList = [] |
| | | item.qtyPlaned = Number(item.buyQtyDue) |
| | | _that.$set(item, 'outPutBatchList', outPutBatchList) |
| | | customerList.push(item) |
| | | }) |
| | |
| | | if (valid) { |
| | | checkSchedule(this.dataForm.customer) |
| | | .then((res) => { |
| | | console.log(this.dataForm.customer); |
| | | return |
| | | if (res.data.data.success) { |
| | | createMasterProductionSchedule(this.dataForm.customer) |
| | | .then((res) => { |