Commit 1f3d539c authored by liudong1993's avatar liudong1993

1

parent 1289d0af
...@@ -599,6 +599,8 @@ ...@@ -599,6 +599,8 @@
<el-popover placement="bottom-start" trigger="click" width="100"> <el-popover placement="bottom-start" trigger="click" width="100">
<div class="recpayQueryMore" v-if="Finance_ExpenseType==true && (scope.row.Type==2 || scope.row.Type==1)" <div class="recpayQueryMore" v-if="Finance_ExpenseType==true && (scope.row.Type==2 || scope.row.Type==1)"
@click="showfeiy(scope.row)">{{$t('fnc.feiyongleixing')}}</div> @click="showfeiy(scope.row)">{{$t('fnc.feiyongleixing')}}</div>
<div class="recpayQueryMore" v-if="Finance_ExpenseType==true && (scope.row.Type==2 || scope.row.Type==1)"
@click="showUpCreateDialog(scope.row.FrID)">修改制单日期</div>
<div class="recpayQueryMore" v-if="F_Update_CurrencyRate==true && (scope.row.Type==2 || scope.row.Type==1)" <div class="recpayQueryMore" v-if="F_Update_CurrencyRate==true && (scope.row.Type==2 || scope.row.Type==1)"
@click="editRate(scope.row)">{{$t('objFill.modifytheexchangerate')}}</div> @click="editRate(scope.row)">{{$t('objFill.modifytheexchangerate')}}</div>
<div class="recpayQueryMore" v-if="scope.row.Type==1&&(istransaction == true || isJapanCommission == true)" <div class="recpayQueryMore" v-if="scope.row.Type==1&&(istransaction == true || isJapanCommission == true)"
...@@ -899,6 +901,24 @@ ...@@ -899,6 +901,24 @@
<el-button class="normalBtn" type="primary" @click="setFixedAssets" :loading="transTax.loading">{{$t('pub.sureBtn')}}</el-button> <el-button class="normalBtn" type="primary" @click="setFixedAssets" :loading="transTax.loading">{{$t('pub.sureBtn')}}</el-button>
</div> </div>
</el-dialog> </el-dialog>
<!--修改制单日期-->
<el-dialog title="修改制单日期" width="400px" :visible.sync="showUpdateCreate" center >
<el-form class="cdForm" label-width="110px">
<el-form-item label="制单日期" prop="CreateDate">
<el-date-picker
v-model="FixedAssetsMsg.CreateDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择新制单日期">
</el-date-picker>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button class="hollowFixedBtn" @click="showUpdateCreate=false">{{$t('pub.cancelBtn')}}</el-button>
<el-button class="normalBtn" type="primary" @click="setUpdateCreate" :loading="transTax.loading">{{$t('pub.sureBtn')}}</el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -1074,6 +1094,7 @@ ...@@ -1074,6 +1094,7 @@
multipleSelection: [], multipleSelection: [],
isBatchPrinting: false, isBatchPrinting: false,
ShowFixedAssets: false, ShowFixedAssets: false,
showUpdateCreate:false,
FixedAssetsMsg:{ FixedAssetsMsg:{
BaseFinanceId:0, BaseFinanceId:0,
RelevanceFrId2:0, RelevanceFrId2:0,
...@@ -1348,6 +1369,11 @@ ...@@ -1348,6 +1369,11 @@
} }
); );
}, },
showUpCreateDialog(FrId){
this.FixedAssetsMsg.BaseFinanceId = FrId;
this.FixedAssetsMsg.CreateDate='';
this.showUpdateCreate=true;
},
// 确定垫付对象 // 确定垫付对象
setFixedAssets() { setFixedAssets() {
if (this.transTax.loading) return; if (this.transTax.loading) return;
...@@ -1370,7 +1396,27 @@ ...@@ -1370,7 +1396,27 @@
this.Error(`请输入起始月份以及折旧月数`) ; this.Error(`请输入起始月份以及折旧月数`) ;
} }
}, },
setUpdateCreate(){
if (this.transTax.loading) return;
this.transTax.loading = true;
if (this.FixedAssetsMsg.BaseFinanceId && this.FixedAssetsMsg.CreateDate) {
this.apipost(
"Financial_post_SetFinanceCreateDate", {FrIds:this.FixedAssetsMsg.BaseFinanceId,CreateDate:this.FixedAssetsMsg.CreateDate},res => {
if (res.data.resultCode == 1) {
this.Success(`更新成功`) ;
this.showUpdateCreate = false;
}
this.transTax.loading = false;
},
err => {
this.transTax.loading = false;
}
);
} else {
this.transTax.loading = false;
this.Error(`请选择新制单日期`) ;
}
},
showHelpBranch(item) { showHelpBranch(item) {
//弹出付款对象修改 //弹出付款对象修改
this.HelpBranchMsg.FrId = item.FrID; this.HelpBranchMsg.FrId = item.FrID;
......
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