|
@@ -246,6 +246,13 @@
|
|
v-if="record.printStatus=='UNABLE_PRINT'&&$hasPermissions('B_Sales_UNABLE_PRINT')"
|
|
v-if="record.printStatus=='UNABLE_PRINT'&&$hasPermissions('B_Sales_UNABLE_PRINT')"
|
|
@click="handlePrint(record)"
|
|
@click="handlePrint(record)"
|
|
>允许备货打印</a-button>
|
|
>允许备货打印</a-button>
|
|
|
|
+ <a-button
|
|
|
|
+ size="small"
|
|
|
|
+ type="link"
|
|
|
|
+ class="button-warning"
|
|
|
|
+ v-if="record.billStatus=='FINISH'"
|
|
|
|
+ @click="handleToExpense(record)"
|
|
|
|
+ >转费用报销单</a-button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</s-table>
|
|
</s-table>
|
|
@@ -306,6 +313,7 @@ export default {
|
|
showTipModal: false, // 备货打印弹框
|
|
showTipModal: false, // 备货打印弹框
|
|
showExport: false,
|
|
showExport: false,
|
|
exportLoading: false,
|
|
exportLoading: false,
|
|
|
|
+ expenseOption: false,
|
|
tableHeight: 0,
|
|
tableHeight: 0,
|
|
time: [
|
|
time: [
|
|
moment(getDate.getThreeMonthDays().starttime, 'YYYY-MM-DD'),
|
|
moment(getDate.getThreeMonthDays().starttime, 'YYYY-MM-DD'),
|
|
@@ -499,6 +507,42 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 转费用单
|
|
|
|
+ handleToExpense(){
|
|
|
|
+ const _this = this
|
|
|
|
+ this.$confirm({
|
|
|
|
+ title: '转费用报销单?',
|
|
|
|
+ centered: true,
|
|
|
|
+ class:'confirm-center',
|
|
|
|
+ content: <div>
|
|
|
|
+ <div style="padding:10px 0;text-align:center;">请选择费用报销单类型</div>
|
|
|
|
+ <div style="padding:0 0 10px 0;text-align:center;">
|
|
|
|
+ <aRadioGroup onChange={_this.changeDaOpt}>
|
|
|
|
+ <aRadio style="height: '30px';lineHeight: '30px';padding:5px 0;" value="1">
|
|
|
|
+ 采购额结余
|
|
|
|
+ </aRadio>
|
|
|
|
+ <aRadio style="height: '30px';lineHeight: '30px';padding:5px 0;" value="2">
|
|
|
|
+ 采购额超出
|
|
|
|
+ </aRadio>
|
|
|
|
+ </aRadioGroup>
|
|
|
|
+ </div>
|
|
|
|
+ </div>,
|
|
|
|
+ onOk() {
|
|
|
|
+ if(_this.expenseOption){
|
|
|
|
+ _this.expenseOption = null
|
|
|
|
+ }else{
|
|
|
|
+ _this.$message.info("请选择费用报销单类型!")
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ onCancel() {
|
|
|
|
+ _this.expenseOption = null
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ changeDaOpt(e){
|
|
|
|
+ this.expenseOption = e.target.value
|
|
|
|
+ },
|
|
// 允许备货打印
|
|
// 允许备货打印
|
|
handlePrint (row) {
|
|
handlePrint (row) {
|
|
// 获取关联的下推单
|
|
// 获取关联的下推单
|