起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1740|回复: 4

[处理中] 关于流程问题

[复制链接]

146

主题

732

帖子

1101

积分

金牌会员

Rank: 6Rank: 6

积分
1101
QQ
发表于 2016-6-21 11:26:16 | 显示全部楼层 |阅读模式
如图,好好的流程有的时候只要在formgruop的bindvisible加点内容就报图2的错误,求指点,谢谢,版本v3.4
again.png
again2.png

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35942
发表于 2016-6-21 11:39:52 | 显示全部楼层
去掉设置就正确了吗?
把设置了属性的.w发一下看看
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

146

主题

732

帖子

1101

积分

金牌会员

Rank: 6Rank: 6

积分
1101
QQ
 楼主| 发表于 2016-6-21 13:42:36 | 显示全部楼层
本帖最后由 shuaigej 于 2016-6-21 14:00 编辑

没有加的
<?xml version="1.0" encoding="utf-8"?>
<div xmlns="http://www.w3.org/1999/xhtml" xmlns:xui="http://www.justep.com/xui" xmlns:xu="http://www.xmldb.org/xupdate" component="$UI/system/components/justep/window/window" xid="window" extends="businessActivity3.w"
  __id="id_1" design="device:pc">  
  <div xid="formGroup1_1" xui:update-mode="delete"/>  
  <div xid="formGroup2" xui:update-mode="delete"/>  
  <div xid="gridSelect1" xui:update-mode="delete"/>  
  <div xid="input5" xui:update-mode="delete"/>  
  <div xid="input9" xui:update-mode="delete"/>  
  <div xid="controlLabel11" xui:update-mode="delete"/>  
  <div xid="gscx" xui:update-mode="delete"/>  
  <div xid="controlLabel12" xui:update-mode="delete"/>  
  <div xid="gridSelect2" xui:update-mode="delete"/>  
  <div xid="controlLabel13" xui:update-mode="delete"/>  
  <div xid="radioGroup2" xui:update-mode="delete"/>  
  <div xid="model" onModelConstructDone="processBeforeAdvanceQuery" style="height:auto;top:-13px;left:37px;"
    xui:update-mode="merge"/>  
  <div autoLoad="false" component="$UI/system/components/justep/data/bizData"
    concept="QB_SJXX" xid="sjData" xui:parent="model" xui:update-mode="insert">
    <reader action="/qbnamis/yxd/logic/action/queryQB_SJXXAction" xid="default1_11"/>  
    <reader action="/qbnamis/yxd/sjxxwh/logic/action/queryQB_SJXXAction" xid="default101_11"/>  
    <rule xid="rule111_11">
      <col name="fXM" xid="ruleCol2211_11">
        <required xid="required411_11">
          <expr xid="default2911_11">true</expr>  
          <message xid="default3011_11">请选择司机</message>
        </required>
      </col>  
      <col name="fLXDH" xid="ruleCol21_11">
        <required xid="required21_11">
          <expr xid="default31_11">true</expr>  
          <message xid="default41_11">请选择司机</message>
        </required>
      </col>
    </rule>
  </div>  
  <div xid="mainData" confirmRefresh="false" xui:update-mode="merge"/>  
  <col name="fSJXM" parent="rule1" update-mode="insert" xid="ruleCol111111_14"
    xui:parent="rule1" xui:update-mode="insert">
    <required xid="required111111_14">
      <expr xid="default111111_14">true</expr>  
      <message xid="default211111_14">请输入司机信息!</message>
    </required>
  </col>  
  <col name="fFY" parent="rule1" update-mode="insert" xid="ruleCol1111_14"
    xui:parent="rule1" xui:update-mode="insert">
    <required xid="required1111_14">
      <expr xid="default1111_14">true</expr>  
      <message xid="default2111_14">请输入费用!</message>
    </required>
  </col>  
  <div xid="process" onBeforeAdvanceQuery="processBeforeAdvanceQuery" xui:update-mode="merge"/>  
  <div class="form-group" xid="formGroup2_3" xui:before="formGroup1" xui:parent="mainForm"
    xui:update-mode="insert">
    <div class="col-sm-2" xid="col7_3">
      <label bind-text="mainData.label('fSQBM')" class="control-label" xid="controlLabel51_3"/>
    </div>  
    <div class="col-sm-4" xid="col8_3">
      <div bind-ref="mainData.ref('fSQBM')" class="x-output" component="$UI/system/components/justep/output/output"
        xid="output1_3"/>
    </div>  
    <div class="col-sm-2" xid="col9_3">
      <label bind-text="mainData.label('fSQR')" class="control-label" xid="controlLabel41_3"/>
    </div>  
    <div class="col-sm-4" xid="col10_3">
      <div bind-ref="mainData.ref('fSQR')" class="x-output" component="$UI/system/components/justep/output/output"
        xid="output4_3"/>  
      <div class="x-output" component="$UI/system/components/justep/output/output"
        xid="output3_3"/>
    </div>
  </div>  
  <div bind-visible="$model.mainData.val("fSQDZT") !="申请中"" class="form-group"
    xid="formGroup1_5" xui:before="formGroup11" xui:parent="mainForm" xui:update-mode="insert">
    <div class="col-sm-2" xid="col1_5">
      <label bind-text="mainData.label('fSJXM')" class="control-label" xid="controlLabel31_5"/>
    </div>  
    <div class="col-sm-4" xid="col2_5">
      <div bind-extRef="mainData.ref('fSJLXDH')" bind-labelRef="mainData.ref('fSJXM')"
        bind-ref="mainData.ref('fSJXM')" class="x-gridSelect" component="$UI/system/components/justep/gridSelect/gridSelect"
        xid="gs">
        <option data="sjData" ext="fLXDH" label="fXM" value="fXM" xid="option11_5"/>
      </div>
    </div>  
    <div class="col-sm-2" xid="col3_5">
      <label bind-text="mainData.label('fSJLXDH')" class="control-label" xid="controlLabel21_5"/>
    </div>  
    <div class="col-sm-4" xid="col4_5">
      <input bind-ref="mainData.ref('fSJLXDH')" class="form-control" component="$UI/system/components/justep/input/input"
        xid="input1_5"/>
    </div>
  </div>  
  <a bind-visible="$model.mainData.val("fSQDZT") =="申请中"" class="btn btn-default"
    component="$UI/system/components/justep/button/button" label="接单"
    xid="button1_3" xui:parent="col12" xui:update-mode="insert">
    <i xid="i1_3"/>  
    <span xid="span1_3">接单</span>
  </a>  
  <a bind-visible="$model.mainData.val("fSQDZT") =="待派车"" class="btn btn-default"
    component="$UI/system/components/justep/button/button" label="派车"
    xid="button1_2" xui:parent="col15" xui:update-mode="insert">
    <i xid="i1_2"/>  
    <span xid="span1_2">派车</span>
  </a>  
  <a bind-visible="$model.mainData.val("fSQDZT") =="费用待确认"" class="btn btn-default"
    component="$UI/system/components/justep/button/button" label="确认费用"
    xid="button2_2" xui:parent="col15" xui:update-mode="insert">
    <i xid="i2_2"/>  
    <span xid="span2_2">确认费用</span>
  </a>  
  <div bind-ref="mainData.ref('fPXBBH')" class="x-output" component="$UI/system/components/justep/output/output"
    xid="output1_11" xui:parent="col14" xui:update-mode="insert"/>  
  <div bind-ref="$model.mainData.ref("fCCRQ")" class="x-output" component="$UI/system/components/justep/output/output"
    xid="output1_5" xui:parent="col17" xui:update-mode="insert"/>  
  <div bind-ref="$model.mainData.ref("fCCSJ")" class="x-output" component="$UI/system/components/justep/output/output"
    xid="output2_5" xui:parent="col19" xui:update-mode="insert"/>  
  <input xid="input2" readonly="true" xui:update-mode="merge"/>  
  <input xid="input1" readonly="true" xui:update-mode="merge"/>  
  <input xid="input4" readonly="true" xui:update-mode="merge"/>  
  <div class="col-sm-2" xid="col21_9" xui:parent="col33" xui:update-mode="insert"></div>  
  <label bind-text="mainData.label('fCX') " class="control-label" xid="controlLabel11111_14"
    xui:parent="col33" xui:update-mode="insert"/>  
  <input bind-ref="$model.mainData.ref("fCX")" class="form-control" component="$UI/system/components/justep/input/input"
    readonly="true" xid="input2_5" xui:parent="col35" xui:update-mode="insert"/>  
  <label bind-text="mainData.label('fLX')" class="control-label" xid="controlLabel21_9"
    xui:parent="col38" xui:update-mode="insert"/>  
  <input bind-ref="$model.mainData.ref("fLX")" class="form-control" component="$UI/system/components/justep/input/input"
    readonly="true" xid="input3_5" xui:parent="col39" xui:update-mode="insert"/>  
  <label bind-text="mainData.label('fFYLB')" class="control-label" xid="controlLabel13"
    xui:parent="col1_8" xui:update-mode="insert"/>  
  <span bind-itemset="FYtype" bind-itemsetLabel="ref('账项')" bind-itemsetValue="ref('账项')"
    bind-ref="mainData.ref('fFYLB')" class="x-radio-group" component="$UI/system/components/justep/select/radioGroup"
    xid="radioGroup2" xui:parent="col2_8" xui:update-mode="insert"/>  
  <xu:modifications>
    <xu:remove select="//*[@xid='formGroup1_8']/@bind-visible"/>  
    <xu:remove select="//*[@xid='input1_2']/@readonly"/>
  </xu:modifications>
</div>


回复 支持 反对

使用道具 举报

146

主题

732

帖子

1101

积分

金牌会员

Rank: 6Rank: 6

积分
1101
QQ
 楼主| 发表于 2016-6-21 14:00:33 | 显示全部楼层
加过的,其实这个页面中也有同样的应用,但是加了这个后就报错
<div
  xmlns:xui="http://www.justep.com/xui"
  xmlns:xu="http://www.xmldb.org/xupdate"
  xmlns="http://www.w3.org/1999/xhtml"
  component="$UI/system/components/justep/window/window"
  xid="window"
  extends="businessActivity3.w"
  __id="id_1"
  design="device:pc" >

  <div xid="formGroup1_1" xui:update-mode="delete"/>
  <div xid="formGroup2" xui:update-mode="delete"/>
  <div xid="gridSelect1" xui:update-mode="delete"/>
  <div xid="input5" xui:update-mode="delete"/>
  <div xid="input9" xui:update-mode="delete"/>
  <div xid="controlLabel11" xui:update-mode="delete"/>
  <div xid="gscx" xui:update-mode="delete"/>
  <div xid="controlLabel12" xui:update-mode="delete"/>
  <div xid="gridSelect2" xui:update-mode="delete"/>
  <div xid="controlLabel13" xui:update-mode="delete"/>
  <div xid="radioGroup2" xui:update-mode="delete"/>
   <div xid="model" onModelConstructDone="processBeforeAdvanceQuery" style="height:auto;top:-13px;left:37px;"  xui:update-mode="merge"/>
    <div autoLoad="false" component="$UI/system/components/justep/data/bizData" concept="QB_SJXX" xid="sjData" xui:parent="model" xui:update-mode="insert" >
<reader action="/qbnamis/yxd/logic/action/queryQB_SJXXAction" xid="default1_11" />
<reader action="/qbnamis/yxd/sjxxwh/logic/action/queryQB_SJXXAction" xid="default101_11" />
<rule xid="rule111_11" >
<col name="fXM" xid="ruleCol2211_11" >
<required xid="required411_11" >
<expr xid="default2911_11" >

true</expr>
<message xid="default3011_11" >

请选择司机</message>
</required>
</col>
<col name="fLXDH" xid="ruleCol21_11" >
<required xid="required21_11" >
<expr xid="default31_11" >

true</expr>
<message xid="default41_11" >

请选择司机</message>
</required>
</col>
</rule>
</div>
   <div xid="mainData" confirmRefresh="false"  xui:update-mode="merge"/>
    <col name="fSJXM" parent="rule1" update-mode="insert" xid="ruleCol111111_14" xui:parent="rule1" xui:update-mode="insert" >
<required xid="required111111_14" >
<expr xid="default111111_14" >

true</expr>
<message xid="default211111_14" >

请输入司机信息!</message>
</required>
</col>
    <col name="fFY" parent="rule1" update-mode="insert" xid="ruleCol1111_14" xui:parent="rule1" xui:update-mode="insert" >
<required xid="required1111_14" >
<expr xid="default1111_14" >

true</expr>
<message xid="default2111_14" >

请输入费用!</message>
</required>
</col>
   <div xid="process" onBeforeAdvanceQuery="processBeforeAdvanceQuery"  xui:update-mode="merge"/>
    <div class="form-group" xid="formGroup2_3" xui:before="formGroup1" xui:parent="mainForm" xui:update-mode="insert" >
<div class="col-sm-2" xid="col7_3" >
<label bind-text="mainData.label('fSQBM')" class="control-label" xid="controlLabel51_3" />
</div>
<div class="col-sm-4" xid="col8_3" >
<div bind-ref="mainData.ref('fSQBM')" class="x-output" component="$UI/system/components/justep/output/output" xid="output1_3" />
</div>
<div class="col-sm-2" xid="col9_3" >
<label bind-text="mainData.label('fSQR')" class="control-label" xid="controlLabel41_3" />
</div>
<div class="col-sm-4" xid="col10_3" >
<div bind-ref="mainData.ref('fSQR')" class="x-output" component="$UI/system/components/justep/output/output" xid="output4_3" />
<div class="x-output" component="$UI/system/components/justep/output/output" xid="output3_3" />
</div>
</div>
    <div bind-visible="$model.mainData.val("fSQDZT") !="申请中"" class="form-group" xid="formGroup1_5" xui:before="formGroup11" xui:parent="mainForm" xui:update-mode="insert" >
<div class="col-sm-2" xid="col1_5" >
<label bind-text="mainData.label('fSJXM')" class="control-label" xid="controlLabel31_5" />
</div>
<div class="col-sm-4" xid="col2_5" >
<div bind-extRef="mainData.ref('fSJLXDH')" bind-labelRef="mainData.ref('fSJXM')" bind-ref="mainData.ref('fSJXM')" class="x-gridSelect" component="$UI/system/components/justep/gridSelect/gridSelect" xid="gs" >
<option data="sjData" ext="fLXDH" label="fXM" value="fXM" xid="option11_5" />
</div>
</div>
<div class="col-sm-2" xid="col3_5" >
<label bind-text="mainData.label('fSJLXDH')" class="control-label" xid="controlLabel21_5" />
</div>
<div class="col-sm-4" xid="col4_5" >
<input bind-ref="mainData.ref('fSJLXDH')" class="form-control" component="$UI/system/components/justep/input/input" xid="input1_5" />
</div>
</div>
    <a bind-visible="$model.mainData.val("fSQDZT") =="申请中"" class="btn btn-default" component="$UI/system/components/justep/button/button" label="接单" xid="button1_3" xui:parent="col12" xui:update-mode="insert" >
<i xid="i1_3" />
<span xid="span1_3" >

接单</span>
</a>
    <a bind-visible="$model.mainData.val("fSQDZT") =="待派车"" class="btn btn-default" component="$UI/system/components/justep/button/button" label="派车" xid="button1_2" xui:parent="col15" xui:update-mode="insert" >
<i xid="i1_2" />
<span xid="span1_2" >

派车</span>
</a>
    <a bind-visible="$model.mainData.val("fSQDZT") =="费用待确认"" class="btn btn-default" component="$UI/system/components/justep/button/button" label="确认费用" xid="button2_2" xui:parent="col15" xui:update-mode="insert" >
<i xid="i2_2" />
<span xid="span2_2" >

确认费用</span>
</a>
    <div bind-ref="mainData.ref('fPXBBH')" class="x-output" component="$UI/system/components/justep/output/output" xid="output1_11" xui:parent="col14" xui:update-mode="insert" />
    <div bind-ref="$model.mainData.ref("fCCRQ")" class="x-output" component="$UI/system/components/justep/output/output" xid="output1_5" xui:parent="col17" xui:update-mode="insert" />
    <div bind-ref="$model.mainData.ref("fCCSJ")" class="x-output" component="$UI/system/components/justep/output/output" xid="output2_5" xui:parent="col19" xui:update-mode="insert" />
   <input xid="input2" readonly="true"  xui:update-mode="merge"/>
   <input xid="input1" readonly="true"  xui:update-mode="merge"/>
   <input xid="input4" readonly="true"  xui:update-mode="merge"/>
    <div class="col-sm-2" xid="col21_9" xui:parent="col33" xui:update-mode="insert" />
    <label bind-text="mainData.label('fCX') " class="control-label" xid="controlLabel11111_14" xui:parent="col33" xui:update-mode="insert" />
    <input bind-ref="$model.mainData.ref("fCX")" class="form-control" component="$UI/system/components/justep/input/input" readonly="true" xid="input2_5" xui:parent="col35" xui:update-mode="insert" />
    <label bind-text="mainData.label('fLX')" class="control-label" xid="controlLabel21_9" xui:parent="col38" xui:update-mode="insert" />
    <input bind-ref="$model.mainData.ref("fLX")" class="form-control" component="$UI/system/components/justep/input/input" readonly="true" xid="input3_5" xui:parent="col39" xui:update-mode="insert" />
   <div xid="formGroup1_8" bind-visible=" $model.mainData.val("fSQDZT") !="申请中""  xui:update-mode="merge"/>
    <label bind-text="mainData.label('fFYLB')" class="control-label" xid="controlLabel13" xui:parent="col1_8" xui:update-mode="insert" />
    <span bind-itemset="FYtype" bind-itemsetLabel="ref('账项')" bind-itemsetValue="ref('账项')" bind-ref="mainData.ref('fFYLB')" class="x-radio-group" component="$UI/system/components/justep/select/radioGroup" xid="radioGroup2" xui:parent="col2_8" xui:update-mode="insert" />
<xu:modifications>
  <xu:remove select="//*[@xid='input1_2']/@readonly"/>
</xu:modifications>

</div>
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35942
发表于 2016-6-21 14:14:11 | 显示全部楼层
bind-visible="$model.mainData.val('fSQDZT') =='申请中'"

bind-visible="$model.mainData.val('fSQDZT') =='待派车'"

bind-visible="$model.mainData.val('fSQDZT') =='费用待确认'"

bind-visible="$model.mainData.val('fSQDZT') !='申请中'"

bind-ref="$model.mainData.ref('fCCRQ')"

bind-ref="$model.mainData.ref('fCCSJ')"

bind-ref="$model.mainData.ref('fCX')"

bind-ref="$model.mainData.ref('fLX')"

参照这个写法,自己找一下按照我发的写

自己写属性值的时候有引用的都用'',不要用"",平台默认会在外层加"",里面在用""就有问题
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-5-19 09:08 , Processed in 0.064651 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表