Commit e1afd9f3 by 前端

Merge branch 'SAAS+V4.56.0-0908' of http://192.168.3.233:8090/saas_plus/dj-car-l…

…ife-system into SAAS+V4.56.0-0908
2 parents 4b5aed6d 0a372b15
......@@ -320,7 +320,7 @@ export default {
console.log("this.settleTimeObj: ", this.settleTimeObj)
},
getExpenseCategoryCalculateType(value, num) {
if (!value || num == null) {
if (!value || value == 7 || num == null) {
return "-"
}
// console.log('num: ', num)
......
......@@ -74,7 +74,7 @@ export default {
},
methods: {
getExpenseCategoryCalculateType(value, num, name) {
if (!value || num == null) {
if (!value || value == 7 || num == null) {
return "-"
}
......
<!-- 仓库/工厂发货 -->
<template>
<d2-container class="container">
<div class="header"
slot="header">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData">
<div class="header" slot="header">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId"
size="small"
type="primary"
handle>
<el-button :id="tableParams.btnId" size="small" type="primary" handle>
查询
</el-button>
<el-button size="small"
@click="handleReset">
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
......@@ -33,26 +25,17 @@
</el-button>
</span> -->
</d2-table-header>
<d2-table ref="purchaseAndDeliveryTable"
:search-form="tableSearchForm"
:table-params="tableParams"
:table-data="tableData"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<div slot="auth-button"
slot-scope="scope">
<d2-table ref="purchaseAndDeliveryTable" :search-form="tableSearchForm" :table-params="tableParams"
:table-data="tableData" :get-list-api="getListApi" :before-search-fn="beforeSearchFn">
<div slot="auth-button" slot-scope="scope">
<!-- 查看 -->
<span style="margin-right: 10px;"
v-if="scope.scope.deliveryStatus != 1">
<auth-button :data="scope.scope"
:show-btn-ids="['9090701']" />
<span style="margin-right: 10px;" v-if="scope.scope.deliveryStatus != 1">
<auth-button :data="scope.scope" :show-btn-ids="['9090701']" />
</span>
<!-- 确认发货 -->
<!-- style="margin-right: 10px;" -->
<span v-show="scope.scope.deliveryStatus != 2"
style="margin-right: 10px;">
<auth-button :data="scope.scope"
:show-btn-ids="['9090702']" />
<span v-if="scope.scope.deliveryStatus == 1 || scope.scope.deliveryStatus == 3" style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9090702']" />
</span>
<!-- <el-button :data="scope.scope" type="text" @click="handleDelivery(scope.scope)">发货</el-button> -->
<!-- 发货 -->
......@@ -67,35 +50,19 @@
</div>
</d2-table>
</div>
<orderDeatilDialog :visible.sync="detailVisible"
v-if="detailVisible"
:record-info="paramsObj"></orderDeatilDialog>
<EditOrderDialog v-if="editVisible"
:page="'factory'"
:visible.sync="editVisible"
:params-obj="dialogData"
@editClose="editClose">
<orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :record-info="paramsObj"></orderDeatilDialog>
<EditOrderDialog v-if="editVisible" :page="'factory'" :visible.sync="editVisible" :params-obj="dialogData"
@editClose="editClose">
</EditOrderDialog>
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting"-->
<baseDialog :is-show.sync="rejectVisible"
:dialog-config="rejectConfig.config"
@handleClick="handleRejectConfirm">
<baseDialog :is-show.sync="rejectVisible" :dialog-config="rejectConfig.config" @handleClick="handleRejectConfirm">
<!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm"
@closeDialog="handleRejectClose"> -->
<div class="reject-dialog">
<el-form :rules="rejectRules"
:model="rejectData"
label-width="150px"
ref="delivery-dialog-form">
<el-form-item label="驳回原因:"
prop="rejectCause">
<el-input type="textarea"
placeholder="请输入驳回原因"
maxlength="50"
:rows="3"
show-word-limit
v-model.trim="rejectData.rejectCause"
class="dis-in-block reject-input" />
<el-form :rules="rejectRules" :model="rejectData" label-width="150px" ref="delivery-dialog-form">
<el-form-item label="驳回原因:" prop="rejectCause">
<el-input type="textarea" placeholder="请输入驳回原因" maxlength="50" :rows="3" show-word-limit
v-model.trim="rejectData.rejectCause" class="dis-in-block reject-input" />
</el-form-item>
</el-form>
</div>
......
......@@ -591,7 +591,7 @@ export default {
return dayjs(value).format('YYYY年MM月DD日')
},
getExpenseCategoryCalculateType(value, num) {
if (!value || num == null) {
if (!value || value == 7 || num == null) {
return '-'
}
// console.log('num: ', num)
......
......@@ -596,7 +596,7 @@ export default {
}
},
getExpenseCategoryCalculateType(value, num) {
if (!value || num == null) {
if (!value || value == 7 || num == null) {
return "-"
}
// 1按毛利比例 2按收入比例 3按固定金额 4按(产值-流量成本) 5按(产值-流量成本-其他费用不包含产品成本) 6按(产值-流量成本-其他费用包含产品成本) 8按(收入-自定义其他费用) 9按(收入-其他费用)
......
......@@ -556,7 +556,7 @@ export default {
}
},
getExpenseCategoryCalculateType(value, num) {
if (!value || num == null) {
if (!value || value == 7 || num == null) {
return '-'
}
let res
......
......@@ -691,7 +691,7 @@ export default {
}
},
getExpenseCategoryCalculateType(value, num) {
if (!value || num == null) {
if (!value || value == 7 || num == null) {
return "-"
}
// 1按毛利比例 2按收入比例 3按固定金额 4按(产值-流量成本) 5按(产值-流量成本-其他费用不包含产品成本) 6按(产值-流量成本-其他费用包含产品成本) 8按(收入-自定义其他费用) 9按(收入-其他费用)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!