|
@@ -5,8 +5,11 @@
|
|
:operation="operation" :exportList="exportList">
|
|
:operation="operation" :exportList="exportList">
|
|
</template-page>
|
|
</template-page>
|
|
<div class="detail" v-if="formDialog">
|
|
<div class="detail" v-if="formDialog">
|
|
- <auxiliarySalesOrderDetail v-if="goodsType == 'M'" :id="id" @back="backList" :formType="2" title="辅材销售订单详情"></auxiliarySalesOrderDetail>
|
|
|
|
- <attachmentSalesOrderDetail v-if="goodsType == 'P'" :id="id" @back="backList" :formType="2" title="配件销售订单详情"></attachmentSalesOrderDetail>
|
|
|
|
|
|
+ <auxiliarySalesOrderDetail v-if="orderSource == 'M_SALES'" :id="id" @back="backList" :formType="2" title="辅材销售订单详情"></auxiliarySalesOrderDetail>
|
|
|
|
+ <attachmentSalesOrderDetail v-if="orderSource == 'P_SALES'" :id="id" @back="backList" :formType="2" title="配件销售订单详情"></attachmentSalesOrderDetail>
|
|
|
|
+ <auxiliarySalesReturnOrderDetail v-if="orderSource == 'SALES_RET'" :id="id" @back="backList" :formType="2" title="辅材销售退货单详情"></auxiliarySalesReturnOrderDetail>
|
|
|
|
+ <attachmentNewReturnDetail v-if="orderSource == 'NEW_PARTS_RET'" :id="id" @back="backList" :formType="2" title="配件新件返还详情"></attachmentNewReturnDetail>
|
|
|
|
+ <attachmentOldReturnDetail v-if="orderSource == 'OLD_PARTS_RET'" :id="id" @back="backList" :formType="2" title="配件旧件返还详情"></attachmentOldReturnDetail>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -16,10 +19,13 @@ import TemplatePage from '@/components/template/template-page-1.vue'
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
import auxiliarySalesOrderDetail from '../components/auxiliarySalesOrderDetail.vue'
|
|
import auxiliarySalesOrderDetail from '../components/auxiliarySalesOrderDetail.vue'
|
|
import attachmentSalesOrderDetail from '../components/attachmentSalesOrderDetail.vue'
|
|
import attachmentSalesOrderDetail from '../components/attachmentSalesOrderDetail.vue'
|
|
|
|
+import auxiliarySalesReturnOrderDetail from '../components/auxiliarySalesReturnOrderDetail.vue'
|
|
|
|
+import attachmentNewReturnDetail from '../components/attachmentNewReturnDetail.vue'
|
|
|
|
+import attachmentOldReturnDetail from '../components/attachmentOldReturnDetail.vue'
|
|
import { downloadFiles } from '@/utils/util'
|
|
import { downloadFiles } from '@/utils/util'
|
|
import { listPageV2,pageExport } from "@/api/auxiliaryFittings/transaction";
|
|
import { listPageV2,pageExport } from "@/api/auxiliaryFittings/transaction";
|
|
export default {
|
|
export default {
|
|
- components: { TemplatePage, auxiliarySalesOrderDetail, attachmentSalesOrderDetail},
|
|
|
|
|
|
+ components: { TemplatePage, auxiliarySalesOrderDetail, attachmentSalesOrderDetail, auxiliarySalesReturnOrderDetail, attachmentNewReturnDetail, attachmentOldReturnDetail},
|
|
mixins: [import_mixin],
|
|
mixins: [import_mixin],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -38,7 +44,7 @@ export default {
|
|
recordSelected: [],
|
|
recordSelected: [],
|
|
/** 表单变量 */
|
|
/** 表单变量 */
|
|
id: '',
|
|
id: '',
|
|
- goodsType: 'P',
|
|
|
|
|
|
+ orderSource: '',
|
|
formDialog: false
|
|
formDialog: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -67,8 +73,12 @@ export default {
|
|
<div class='operation-btns'>
|
|
<div class='operation-btns'>
|
|
<el-button type="text" onClick={() => {
|
|
<el-button type="text" onClick={() => {
|
|
this.id = row.orderId
|
|
this.id = row.orderId
|
|
- this.goodsType = row.goodsType
|
|
|
|
- this.formDialog = true
|
|
|
|
|
|
+ this.orderSource = row.orderSource
|
|
|
|
+ if(row.orderSource){
|
|
|
|
+ this.formDialog = true
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.warning('订单来源为空!')
|
|
|
|
+ }
|
|
}}>查看</el-button>
|
|
}}>查看</el-button>
|
|
</div>
|
|
</div>
|
|
)
|
|
)
|