Commit f283b54a by 袁成

fix: 页签新建单据传参

parent 1ab07d34
...@@ -24,6 +24,8 @@ export default { ...@@ -24,6 +24,8 @@ export default {
"runner-bill-form", "runner-bill-form",
{ {
templateName: templateName, templateName: templateName,
init: true,
state: '',
}, },
{ {
openWay: "FUNCTAB", openWay: "FUNCTAB",
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
v-if="init" v-if="init"
:templateName="templateName" :templateName="templateName"
:id="billId" :id="billId"
:type="type" :type="billId ? 'load' : 'init'"
:state="state" :state="state"
@loadFinish="loadFinishFun" @loadFinish="loadFinishFun"
></gms-bill-form> ></gms-bill-form>
...@@ -49,11 +49,11 @@ export default { ...@@ -49,11 +49,11 @@ export default {
if (billId !== undefined) { if (billId !== undefined) {
this.billId = billId; this.billId = billId;
} }
this.state = state || ''; this.state = state ;
this.init = false; this.init = false;
this.$nextTick(() => { this.$nextTick(() => {
this.init = true; this.init = true;
this.type = 'load' // this.type = 'load'
}); });
}); });
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment