|
@@ -183,6 +183,8 @@
|
|
|
<dispatch-arrived v-if="arrivedVisible" ref="arrivedPage" @onChose="onChose" @refreshDataList="getDataList"/>
|
|
|
<!-- 发货详情 -->
|
|
|
<prod-management-details v-if="detailVisible" ref="detail" @onChose="onChose"/>
|
|
|
+ <!-- 确定发货 -->
|
|
|
+ <dispatching v-if="dispatchVisible" ref="dispatching" @refreshDataList="getDataList"/>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -194,10 +196,12 @@ import NoticeChangeSetting from './dispatch-notice-change-setting'
|
|
|
import DispatchArrived from './dispatch-arrived'
|
|
|
import DispatchDetail from './dispatch-detail'
|
|
|
import ProdManagementDetails from '@/views/modules/production/prod-management-details'
|
|
|
+import Dispatching from '@/views/modules/order/dispatching'
|
|
|
export default {
|
|
|
// 发货管理
|
|
|
name: 'dispatch',
|
|
|
components: {
|
|
|
+ Dispatching,
|
|
|
ProdManagementDetails,
|
|
|
AttachDetail,
|
|
|
PreviewComponent,
|
|
@@ -221,6 +225,7 @@ export default {
|
|
|
noticeChangeVisible: false,
|
|
|
arrivedVisible: false,
|
|
|
detailVisible: false,
|
|
|
+ dispatchVisible: false,
|
|
|
optionsState: [
|
|
|
{
|
|
|
code: null, value: '全部'
|
|
@@ -249,6 +254,7 @@ export default {
|
|
|
this.noticeChangeVisible = false
|
|
|
this.arrivedVisible = false
|
|
|
this.detailVisible = false
|
|
|
+ this.dispatchVisible = false
|
|
|
},
|
|
|
// 查询
|
|
|
queryData () {
|
|
@@ -321,30 +327,10 @@ export default {
|
|
|
},
|
|
|
// 发货
|
|
|
sendHandle (deliverId) {
|
|
|
- this.$confirm(`确定发货`, '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then(() => {
|
|
|
- this.$http({
|
|
|
- url: this.$http.adornUrl('/biz-service/deliver/deliver'),
|
|
|
- method: 'post',
|
|
|
- data: this.$http.adornData({deliverId: deliverId}, false)
|
|
|
- }).then(({data}) => {
|
|
|
- if (data && data.code === '200') {
|
|
|
- this.$message({
|
|
|
- message: '操作成功',
|
|
|
- type: 'success',
|
|
|
- duration: 1500,
|
|
|
- onClose: () => {
|
|
|
- this.getDataList()
|
|
|
- }
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.$message.error(data.msg)
|
|
|
- }
|
|
|
- })
|
|
|
- }).catch(() => {})
|
|
|
+ this.dispatchVisible = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.dispatching.init(deliverId)
|
|
|
+ })
|
|
|
},
|
|
|
// 转换属性“状态”
|
|
|
stateFormat (row) {
|