汪菘 3 years ago
parent
commit
0a4b1620f0
  1. 2
      nladmin-system/src/main/java/org/nl/acs/device_driver/hailiang/hailiang_feeding_trunk/HaiLiangFeedingTrunkDeviceDriver.java
  2. 3
      qd/src/views/acs/order/AddDialog.vue
  3. 14
      qd/src/views/acs/order/index.vue

2
nladmin-system/src/main/java/org/nl/acs/device_driver/hailiang/hailiang_feeding_trunk/HaiLiangFeedingTrunkDeviceDriver.java

@ -392,12 +392,14 @@ public class HaiLiangFeedingTrunkDeviceDriver extends AbstractOpcDeviceDriver im
case 3: case 3:
//申请工单 //申请工单
if(!requireSucess && ready == 1 && order ==0 && order_detail ==0 ){ if(!requireSucess && ready == 1 && order ==0 && order_detail ==0 ){
logServer.deviceLogToacs(this.device_code,"","","开始申请工单");
apply_order(); apply_order();
} }
break; break;
case 4: case 4:
//申请工单明细 //申请工单明细
if(!requireSucess && ready == 1 && order != 0 ) { if(!requireSucess && ready == 1 && order != 0 ) {
logServer.deviceLogToacs(this.device_code,"","","开始申请工单明细");
apply_orderDetail(order); apply_orderDetail(order);
} }
break; break;

3
qd/src/views/acs/order/AddDialog.vue

@ -326,8 +326,7 @@ export default {
this.nowrow.cust_code = row.cust_code this.nowrow.cust_code = row.cust_code
this.nowrow.cust_id = row.cust_id this.nowrow.cust_id = row.cust_id
this.nowrow.cust_name = row.cust_name this.nowrow.cust_name = row.cust_name
this.form.tableData.splice(this.nowindex, 1, this.nowrow) // splice this.form.tableData.splice(this.nowindex, 1, row) // splice
this.$forceUpdate()
}, },
[CRUD.HOOK.afterToEdit]() { [CRUD.HOOK.afterToEdit]() {
// //

14
qd/src/views/acs/order/index.vue

@ -82,6 +82,7 @@
<span v-if="scope.row.order_status==='06' && scope.row.is_flag ==='1' ">下发强制完成</span> <span v-if="scope.row.order_status==='06' && scope.row.is_flag ==='1' ">下发强制完成</span>
<span v-if="scope.row.order_status==='07' && scope.row.is_flag ==='1' ">强制完成</span> <span v-if="scope.row.order_status==='07' && scope.row.is_flag ==='1' ">强制完成</span>
<span v-if="scope.row.order_status==='08' && scope.row.is_flag ==='1' ">自动完成</span> <span v-if="scope.row.order_status==='08' && scope.row.is_flag ==='1' ">自动完成</span>
<span v-if="scope.row.order_status==='09' && scope.row.is_flag ==='1' ">取消</span>
<span v-if="scope.row.order_status==='00' && scope.row.is_flag ==='0' ">就绪</span> <span v-if="scope.row.order_status==='00' && scope.row.is_flag ==='0' ">就绪</span>
<span v-if="scope.row.order_status==='01' && scope.row.is_flag ==='0' ">分拣中</span> <span v-if="scope.row.order_status==='01' && scope.row.is_flag ==='0' ">分拣中</span>
<span v-if="scope.row.order_status==='02' && scope.row.is_flag ==='0' ">下发暂停</span> <span v-if="scope.row.order_status==='02' && scope.row.is_flag ==='0' ">下发暂停</span>
@ -89,6 +90,7 @@
<span v-if="scope.row.order_status==='04' && scope.row.is_flag ==='0' ">下发强制完成</span> <span v-if="scope.row.order_status==='04' && scope.row.is_flag ==='0' ">下发强制完成</span>
<span v-if="scope.row.order_status==='05' && scope.row.is_flag ==='0' ">强制完成</span> <span v-if="scope.row.order_status==='05' && scope.row.is_flag ==='0' ">强制完成</span>
<span v-if="scope.row.order_status==='06' && scope.row.is_flag ==='0' ">自动完成</span> <span v-if="scope.row.order_status==='06' && scope.row.is_flag ==='0' ">自动完成</span>
<span v-if="scope.row.order_status==='07' && scope.row.is_flag ==='0' ">取消</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="material_code" label="物料编码" /> <el-table-column prop="material_code" label="物料编码" />
@ -101,12 +103,12 @@
<el-table-column prop="cust_name" label="客户名称" /> <el-table-column prop="cust_name" label="客户名称" />
<el-table-column prop="create_by" label="创建者" /> <el-table-column prop="create_by" label="创建者" />
<el-table-column prop="create_time" label="创建时间" /> <el-table-column prop="create_time" label="创建时间" />
<!-- <el-table-column label="操作" width="200px" align="center" fixed="right">--> <el-table-column label="操作" width="200px" align="center" fixed="right">
<!-- <template slot-scope="scope">--> <template slot-scope="scope">
<!-- <el-button v-if="scope.row.is_flag =='1'" type="text" size="small" @click="handleClick(scope.row,'1')">修改</el-button>--> <el-button v-if="scope.row.is_flag ==='0'" type="text" size="small" @click="handleClick(scope.row,'1')">修改</el-button>
<!-- <el-button v-if="scope.row.is_flag =='1'" type="text" size="small" @click="handleClick(scope.row,'2')">删除</el-button>--> <el-button v-if="scope.row.is_flag ==='0'" type="text" size="small" @click="handleClick(scope.row,'2')">删除</el-button>
<!-- </template>--> </template>
<!-- </el-table-column>--> </el-table-column>
</el-table> </el-table>
<!--分页组件--> <!--分页组件-->
<pagination /> <pagination />

Loading…
Cancel
Save