Commit 243281dc authored by hiyonx's avatar hiyonx

销售订单同步功能优化

parent 3a344aae
This diff is collapsed.
......@@ -29,7 +29,7 @@
</el-form-item>
<el-form-item label="跟单人" prop="merchandiser">
<el-select v-model="queryParams.merchandiser" clearable filterable remote :remote-method="getUserList" placeholder="请选择跟单人">
<el-option v-for="item in userList" :key="item.nickName" :label="item.nickName" :value="item.nickName"/>
<el-option v-for="item in userList" :key="item.userId" :label="item.nickName" :value="item.nickName"/>
</el-select>
</el-form-item>
<el-form-item label="订单状态" prop="state">
......@@ -124,14 +124,14 @@
v-hasPermi="['od:salesOrder:remove']"
>删除
</el-button>
<!-- <el-button
<el-button
size="mini"
type="text"
icon="el-icon-refresh"
@click="onSync(scope.row)"
v-hasPermi="['od:salesOrder:edit']"
>同步
</el-button>-->
</el-button>
</template>
</el-table-column>
</el-table>
......@@ -221,13 +221,7 @@ export default {
},
/** 同步数据 */
onSync(row) {
const ids = row.id || this.ids
this.$modal.confirm('是否确认同步销售订单编号为"' + ids + '"的数据项?').then(() => {
syncOrder(ids).then(() => {
this.getList()
this.$modal.msgSuccess('删除成功')
})
})
this.$router.push('/order/sales/sync?id=' + row.id)
},
/** 删除按钮操作 */
handleDelete(row) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment