|
@@ -264,6 +264,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="page-footer">
|
|
<div class="page-footer">
|
|
<div class="footer" :class="classObj">
|
|
<div class="footer" :class="classObj">
|
|
|
|
+ <el-button type="success" @click="toCheckOrder">联查单据</el-button>
|
|
<el-button
|
|
<el-button
|
|
:type="status ? 'info' : 'primary'"
|
|
:type="status ? 'info' : 'primary'"
|
|
:disabled="detailData.examineStatus !== 'OK' || status"
|
|
:disabled="detailData.examineStatus !== 'OK' || status"
|
|
@@ -499,6 +500,7 @@
|
|
<el-button type="primary" @click="submitDeliverForm">确 定</el-button>
|
|
<el-button type="primary" @click="submitDeliverForm">确 定</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <CheckOrder :checkOrderId="checkOrderId" v-if="isShowCheckOrder" @backDetail="backDetail" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -506,10 +508,14 @@
|
|
import { getDetail } from '@/api/supply/policy'
|
|
import { getDetail } from '@/api/supply/policy'
|
|
import { adjustDeliver, finishData, getPositionList, getWarehouseList } from '@/api/supply/retail'
|
|
import { adjustDeliver, finishData, getPositionList, getWarehouseList } from '@/api/supply/retail'
|
|
import { mapState } from 'vuex'
|
|
import { mapState } from 'vuex'
|
|
|
|
+import CheckOrder from '@/components/Common/check-order'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'RetailDetail',
|
|
name: 'RetailDetail',
|
|
componentName: 'RetailDetail',
|
|
componentName: 'RetailDetail',
|
|
|
|
+ components: {
|
|
|
|
+ CheckOrder,
|
|
|
|
+ },
|
|
filters: {
|
|
filters: {
|
|
statusFilter(val) {
|
|
statusFilter(val) {
|
|
const statusList = [
|
|
const statusList = [
|
|
@@ -545,7 +551,9 @@ export default {
|
|
positionList: [],
|
|
positionList: [],
|
|
|
|
|
|
goodsList: [],
|
|
goodsList: [],
|
|
- status: false
|
|
|
|
|
|
+ status: false,
|
|
|
|
+ checkOrderId: {},
|
|
|
|
+ isShowCheckOrder: false,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -564,6 +572,10 @@ export default {
|
|
this.detailData.examineStatus === 'OK' ||
|
|
this.detailData.examineStatus === 'OK' ||
|
|
this.detailData.examineStatus === 'FAIL'
|
|
this.detailData.examineStatus === 'FAIL'
|
|
)
|
|
)
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ isDealer() {
|
|
|
|
+ return JSON.parse(localStorage.getItem("supply_user")).isCustomer
|
|
},
|
|
},
|
|
progress() {
|
|
progress() {
|
|
if (this.detailData.totalQty == 0) return 0
|
|
if (this.detailData.totalQty == 0) return 0
|
|
@@ -673,6 +685,16 @@ export default {
|
|
closeDeliverDialog() {
|
|
closeDeliverDialog() {
|
|
this.isShowDeliverDialog = false
|
|
this.isShowDeliverDialog = false
|
|
},
|
|
},
|
|
|
|
+ // 联查单据
|
|
|
|
+ toCheckOrder() {
|
|
|
|
+ this.checkOrderId = this.detailData.id;
|
|
|
|
+ this.isShowCheckOrder = true;
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ backDetail() {
|
|
|
|
+ this.isShowCheckOrder = false;
|
|
|
|
+ },
|
|
|
|
+
|
|
// 提交 直调发货
|
|
// 提交 直调发货
|
|
submitDeliverForm() {
|
|
submitDeliverForm() {
|
|
this.$refs.deliverForm.validate((valid) => {
|
|
this.$refs.deliverForm.validate((valid) => {
|