PLC读取字段:
@@ -296,6 +355,59 @@ export default {
deviceList: [],
data1: [],
data2: [],
+ requestMethodList: [],
+ modeform: {
+ tableData: [
+ // {
+ // mode: '3',
+ // request: 'order_verify'
+ // },
+ // {
+ // mode: '4',
+ // request: 'order_finish'
+ // },
+ {
+ mode: '5',
+ request: 'apply_put_full_vehicle'
+ },
+ {
+ mode: '6',
+ request: 'apply_put_empty_vehicle'
+ },
+ {
+ mode: '7',
+ request: 'apply_take_empty_vehicle'
+ },
+ {
+ mode: '8',
+ request: 'apply_take_full_vehicle'
+ },
+ {
+ mode: '9',
+ request: 'apply_force_take_full_vehicle'
+ },
+ {
+ mode: '10',
+ request: 'apply_force_take_full_vehicle_in_storage'
+ },
+ {
+ mode: '11',
+ request: 'barcode_success_apply'
+ },
+ {
+ mode: '12',
+ request: 'get_vehicle_info'
+ },
+ {
+ mode: '13',
+ request: 'force_no_package'
+ },
+ {
+ mode: '14',
+ request: 'apply_labelling'
+ }
+ ]
+ },
form: {
inspect_in_stocck: true,
ignore_pickup_check: true,
@@ -349,9 +461,18 @@ export default {
deviceCrud.selectDeviceList().then(data => {
this.deviceList = data
})
+ deviceCrud.selectRequestMethodList().then(data => {
+ this.requestMethodList = data
+ })
})
},
methods: {
+ insertdtl() {
+ this.modeform.tableData.push({mode: '', request: '' })
+ },
+ deleteRow(index, rows) {
+ rows.splice(index, 1)
+ },
finishReadEdit(data) {
// 编辑的是code列,并且值包含mode
if (data.code.indexOf('mode') !== -1) {